├── .npmignore ├── tools ├── slackbot │ ├── README.md │ ├── src │ │ ├── index.ts │ │ └── release-bot │ │ │ ├── index.ts │ │ │ └── utils │ │ │ └── utils.ts │ ├── bin │ │ └── slackbot.js │ └── tsconfig.json ├── test-harnesses │ ├── src │ │ ├── queries │ │ │ └── index.ts │ │ ├── utils │ │ │ └── index.ts │ │ ├── testUtils │ │ │ └── index.ts │ │ ├── types │ │ │ └── index.ts │ │ └── index.ts │ ├── README.md │ └── tsconfig.json ├── test │ ├── config │ │ ├── mocks │ │ │ ├── fileMock.js │ │ │ └── svgTransformer.js │ │ ├── babel.config.js │ │ └── common.setup.js │ └── tsconfig.json ├── install │ ├── src │ │ └── index.ts │ └── turbo.json ├── link │ ├── bin │ │ ├── link.js │ │ └── unlink.js │ └── src │ │ ├── index.ts │ │ └── utils │ │ ├── types.ts │ │ ├── formatLog.ts │ │ └── mocks.testutils.ts ├── prompt-kit │ └── src │ │ ├── index.ts │ │ └── settings │ │ ├── index.ts │ │ └── mergePromptsVSCode.types.ts ├── build │ ├── bin │ │ ├── build.js │ │ └── build-package.js │ ├── scripts │ │ ├── build.sh │ │ └── tsconfig.json │ ├── tsconfig.json │ ├── rollup.config.mjs │ └── config │ │ └── node.tsconfig.json ├── cli │ └── bin │ │ └── index.js ├── meta │ └── src │ │ ├── getPackageJson │ │ └── index.ts │ │ ├── getPackageName │ │ └── index.ts │ │ ├── getLGConfig │ │ └── index.ts │ │ ├── getAllPackages │ │ └── index.ts │ │ ├── getRootPackageJson │ │ └── index.ts │ │ ├── getPackageManager │ │ └── index.ts │ │ └── exitWithErrorMessage.ts ├── storybook-addon │ ├── preset.js │ ├── static │ │ └── favicon.ico │ └── src │ │ └── manager │ │ └── index.ts ├── codemods │ ├── src │ │ ├── utils │ │ │ ├── jsx │ │ │ │ ├── insertJSXComment │ │ │ │ │ ├── index.ts │ │ │ │ │ └── tests │ │ │ │ │ │ └── transform.spec.ts │ │ │ │ └── index.ts │ │ │ ├── transformations │ │ │ │ ├── addJSXAttributes │ │ │ │ │ └── index.ts │ │ │ │ ├── removeJSXAttributes │ │ │ │ │ └── index.ts │ │ │ │ ├── replaceJSXAttributes │ │ │ │ │ └── index.ts │ │ │ │ └── consolidateJSXAttributes │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── imports │ │ │ │ └── index.ts │ │ ├── constants.ts │ │ └── examples │ │ │ ├── consolidate-props │ │ │ └── tests │ │ │ │ └── transform.spec.ts │ │ │ ├── rename-component-prop │ │ │ └── tests │ │ │ │ └── transform.spec.ts │ │ │ └── update-component-prop-value │ │ │ └── tests │ │ │ └── transform.spec.ts │ └── transform.config.js ├── lint │ ├── babel.config.js │ ├── tsconfig.json │ ├── config │ │ └── prettier.config.js │ └── README.md ├── eslint-plugin │ └── src │ │ ├── utils │ │ ├── RuleContext.d.ts │ │ ├── createRule.ts │ │ └── typescript-eslint.ts │ │ └── tests │ │ └── utils │ │ └── ruleTester.testutils.ts ├── create │ ├── src │ │ └── templates │ │ │ └── component │ │ │ └── src │ │ │ ├── testing │ │ │ ├── getTestUtils.types.template.ts │ │ │ └── getTestUtils.index.template.ts │ │ │ └── Component │ │ │ ├── component.styles.template.ts │ │ │ └── component.types.template.ts │ └── tsconfig.json ├── storybook-decorators │ └── src │ │ └── decorators │ │ ├── PropCombinations │ │ ├── constants.ts │ │ ├── docs │ │ │ └── decorator-demo.png │ │ ├── components │ │ │ └── index.ts │ │ ├── index.tsx │ │ └── utils │ │ │ └── index.ts │ │ └── ReactStrictMode.tsx ├── validate │ └── src │ │ ├── validate.types.ts │ │ └── builds │ │ └── modules.types.ts └── update │ └── src │ └── utils │ └── getAllPackageNames.ts ├── chat ├── suggestions │ └── src │ │ ├── testing │ │ ├── index.ts │ │ └── getTestUtils.types.ts │ │ ├── SuggestedActions │ │ └── index.ts │ │ └── index.ts ├── message │ └── src │ │ ├── MessageContext │ │ └── index.ts │ │ ├── Message │ │ └── index.ts │ │ ├── MessageActions │ │ ├── MessageActions.constants.ts │ │ └── index.ts │ │ ├── MessageLinks │ │ └── index.ts │ │ ├── MessagePromotion │ │ └── index.ts │ │ ├── MessageContent │ │ └── index.ts │ │ └── MessageBanner │ │ └── MessageVerifiedBanner.styles.ts ├── title-bar │ └── src │ │ ├── index.ts │ │ └── TitleBar │ │ └── index.ts ├── chat-window │ └── src │ │ ├── index.ts │ │ ├── ChatWindow │ │ └── index.tsx │ │ └── rollup.config.mjs ├── input-bar │ └── src │ │ ├── DisclaimerText │ │ ├── index.ts │ │ ├── DisclaimerText.styles.ts │ │ └── DisclaimerText.types.ts │ │ ├── InputBarFeedback │ │ └── index.ts │ │ ├── InputBarSendButton │ │ ├── index.ts │ │ └── InputBarSendButton.types.ts │ │ ├── SuggestedPrompt │ │ └── index.ts │ │ ├── SuggestedPrompts │ │ └── index.ts │ │ ├── InputBar │ │ └── index.ts │ │ └── InputBarStopButton │ │ ├── index.ts │ │ └── InputBarStopButton.types.ts ├── lg-markdown │ └── src │ │ ├── index.ts │ │ └── LGMarkdown │ │ └── index.tsx ├── message-feed │ └── src │ │ ├── index.ts │ │ ├── MessageFeed │ │ ├── index.tsx │ │ └── MessageFeed.types.ts │ │ └── ScrollToLatestButton │ │ ├── index.ts │ │ └── ScrollToLatestButton.types.ts ├── chat-button │ └── src │ │ ├── index.ts │ │ └── ChatButton │ │ └── index.ts ├── chat-layout │ └── src │ │ ├── ChatSideNav │ │ ├── ChatSideNavContent │ │ │ └── index.ts │ │ ├── ChatSideNavFooter │ │ │ └── index.ts │ │ ├── ChatSideNavHeader │ │ │ └── index.ts │ │ └── ChatSideNavItem │ │ │ └── index.ts │ │ ├── ChatMain │ │ ├── index.ts │ │ └── ChatMain.types.ts │ │ └── ChatLayout │ │ └── index.ts ├── message-feedback │ └── src │ │ ├── InlineMessageFeedback │ │ ├── SubmittedState │ │ │ └── index.ts │ │ └── index.ts │ │ └── index.ts ├── message-rating │ └── src │ │ ├── index.ts │ │ └── MessageRating │ │ └── index.ts ├── message-prompts │ └── src │ │ ├── MessagePromptsContext │ │ ├── MessagePromptsContext.types.ts │ │ └── index.ts │ │ ├── MessagePrompt │ │ └── index.ts │ │ ├── MessagePrompts │ │ └── index.ts │ │ └── index.ts ├── rich-links │ └── src │ │ ├── RichLinksArea │ │ └── index.ts │ │ └── RichLink │ │ ├── RichLinkBadge │ │ └── index.ts │ │ └── index.ts └── leafygreen-chat-provider │ └── src │ ├── index.ts │ └── LeafyGreenChatProvider │ └── index.tsx ├── .tool-versions ├── typings ├── copy.d.ts ├── svgr.d.ts ├── mergeRefs.d.ts └── images.d.ts ├── .gitattributes ├── packages ├── emotion │ ├── src │ │ └── version.ts │ └── scripts │ │ └── tsconfig.json ├── icon │ ├── src │ │ ├── types │ │ │ ├── svgr.d.ts │ │ │ ├── index.ts │ │ │ ├── svg.d.ts │ │ │ └── SVGR.ts │ │ └── glyphs │ │ │ ├── Circle.svg │ │ │ ├── Stop.svg │ │ │ └── Apps.svg │ ├── rollup.config.mjs │ └── scripts │ │ ├── build │ │ └── constants.ts │ │ ├── prebuild │ │ └── prebuild.types.ts │ │ └── tsconfig.json ├── modal │ └── src │ │ ├── testing │ │ ├── index.ts │ │ └── getTestUtils.types.ts │ │ ├── CloseButton │ │ ├── index.ts │ │ └── CloseButton.types.ts │ │ ├── Footer │ │ ├── index.ts │ │ └── Footer.types.ts │ │ ├── utils │ │ └── index.ts │ │ └── Modal │ │ └── index.ts ├── pipeline │ └── src │ │ ├── Stage │ │ └── index.ts │ │ ├── Counter │ │ └── index.ts │ │ ├── Pipeline │ │ └── index.ts │ │ ├── TooltipText │ │ ├── index.ts │ │ ├── TooltipText.types.ts │ │ └── TooltipText.styles.ts │ │ ├── index.ts │ │ └── svgs │ │ └── index.ts ├── progress-bar │ └── src │ │ ├── index.ts │ │ ├── testing │ │ └── index.ts │ │ ├── ProgressBar │ │ ├── utils │ │ │ └── index.ts │ │ ├── constants │ │ │ └── index.ts │ │ ├── index.ts │ │ └── hooks │ │ │ └── index.ts │ │ └── test.constants.ts ├── stepper │ └── src │ │ ├── Step │ │ ├── index.ts │ │ └── Step.tsx │ │ ├── StepIcon │ │ ├── index.ts │ │ └── StepIcon.types.ts │ │ ├── StepLabel │ │ ├── index.ts │ │ └── StepLabel.types.ts │ │ ├── InternalStep │ │ └── index.ts │ │ ├── Stepper │ │ ├── index.ts │ │ └── Stepper.styles.ts │ │ ├── EllipsesStep │ │ └── index.ts │ │ ├── constants.ts │ │ └── types.ts ├── toggle │ └── src │ │ ├── testing │ │ └── index.ts │ │ └── utils │ │ └── index.ts ├── button │ └── src │ │ ├── Button │ │ └── index.ts │ │ ├── testing │ │ ├── index.ts │ │ ├── getLgIds.ts │ │ └── getTestUtils.types.ts │ │ ├── styles.ts │ │ └── constants.ts ├── date-utils │ └── src │ │ ├── newUTC │ │ ├── index.ts │ │ └── newUTC.ts │ │ ├── toDate │ │ └── index.ts │ │ ├── maxDate │ │ └── index.ts │ │ ├── minDate │ │ └── index.ts │ │ ├── isTodayTZ │ │ └── index.ts │ │ ├── newTZDate │ │ └── index.ts │ │ ├── sortDates │ │ └── index.ts │ │ ├── addDaysUTC │ │ ├── index.ts │ │ └── addDaysUTC.ts │ │ ├── getISODate │ │ └── index.ts │ │ ├── isOnOrAfter │ │ └── index.ts │ │ ├── isSameTZDay │ │ └── index.ts │ │ ├── setUTCDate │ │ ├── index.ts │ │ └── setUTCDate.ts │ │ ├── setUTCMonth │ │ ├── index.ts │ │ └── setUTCMonth.ts │ │ ├── setUTCYear │ │ ├── index.ts │ │ └── setUTCYear.ts │ │ ├── addMonthsUTC │ │ ├── index.ts │ │ └── addMonthsUTC.ts │ │ ├── getISODateTZ │ │ └── index.ts │ │ ├── getMonthName │ │ └── index.ts │ │ ├── isOnOrBefore │ │ └── index.ts │ │ ├── isSameUTCDay │ │ └── index.ts │ │ ├── getLastOfMonth │ │ └── index.ts │ │ ├── getMonthIndex │ │ └── index.ts │ │ ├── getWeekdayName │ │ └── index.ts │ │ ├── getWeeksArray │ │ └── index.ts │ │ ├── isSameTZMonth │ │ └── index.ts │ │ ├── isSameUTCMonth │ │ └── index.ts │ │ ├── isSameUTCRange │ │ └── index.ts │ │ ├── isValidLocale │ │ └── index.ts │ │ ├── getLocaleMonths │ │ └── index.ts │ │ ├── getUTCDateString │ │ └── index.ts │ │ ├── isCurrentUTCDay │ │ └── index.ts │ │ ├── normalizeLocale │ │ └── index.ts │ │ ├── setToUTCMidnight │ │ └── index.ts │ │ ├── getDaysInUTCMonth │ │ └── index.ts │ │ ├── getFullMonthLabel │ │ ├── index.ts │ │ └── getFullMonthLabel.ts │ │ ├── getLocaleWeekdays │ │ └── index.ts │ │ ├── getFirstOfUTCMonth │ │ └── index.ts │ │ ├── getSimulatedTZDate │ │ └── index.ts │ │ ├── getSimulatedUTCDate │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ ├── isValidDate │ │ └── index.ts │ │ └── types │ │ └── locales.ts ├── split-button │ └── src │ │ ├── Menu │ │ └── index.ts │ │ ├── utils │ │ └── index.ts │ │ └── SplitButton │ │ └── index.tsx ├── tabs │ └── src │ │ ├── TabPanel │ │ ├── index.ts │ │ ├── TabPanel.types.ts │ │ └── TabPanel.styles.ts │ │ ├── TabTitle │ │ └── index.ts │ │ ├── utils │ │ ├── getSelectedIndex │ │ │ └── index.ts │ │ ├── getEnabledIndices │ │ │ └── index.ts │ │ └── index.ts │ │ ├── Tab │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ └── Tabs │ │ └── index.ts ├── text-area │ └── src │ │ ├── testing │ │ └── index.ts │ │ ├── utils │ │ └── index.ts │ │ └── TextArea │ │ └── index.ts ├── text-input │ └── src │ │ ├── testing │ │ ├── index.ts │ │ └── getTestUtils.types.ts │ │ ├── utils │ │ └── index.ts │ │ └── TextInput │ │ ├── TextInput.styles.ts │ │ └── index.ts ├── code │ ├── src │ │ ├── Panel │ │ │ └── index.ts │ │ ├── Syntax │ │ │ └── index.ts │ │ ├── CopyButton │ │ │ ├── index.ts │ │ │ ├── constants.ts │ │ │ └── CopyButton.types.ts │ │ ├── utils │ │ │ └── index.ts │ │ ├── Code │ │ │ ├── index.ts │ │ │ └── utils │ │ │ │ ├── index.ts │ │ │ │ └── hasMultipleLines.ts │ │ └── testing │ │ │ └── index.ts │ └── scripts │ │ └── tsconfig.json ├── form-field │ └── src │ │ ├── utils │ │ └── index.ts │ │ ├── constants.ts │ │ ├── FormFieldFeedback │ │ └── index.ts │ │ ├── FormFieldInputContainer │ │ └── index.ts │ │ ├── FormFieldContext │ │ └── index.ts │ │ └── FormField │ │ └── index.ts ├── gallery-indicator │ └── src │ │ ├── testing │ │ ├── index.ts │ │ └── getTestUtils.types.ts │ │ ├── utils │ │ └── index.ts │ │ ├── GalleryIndicator │ │ └── index.ts │ │ └── index.ts ├── hooks │ └── src │ │ ├── useMobile │ │ └── index.ts │ │ ├── useAutoScroll │ │ ├── constants.test.ts │ │ └── index.ts │ │ ├── useControlled │ │ └── index.ts │ │ ├── useFirstRender │ │ └── index.ts │ │ ├── useForceRerender │ │ └── index.ts │ │ └── useControlledValue │ │ └── index.ts ├── menu │ └── src │ │ ├── MenuGroup │ │ └── index.ts │ │ ├── MenuSeparator │ │ └── index.ts │ │ ├── FocusableMenuItem │ │ └── index.ts │ │ ├── utils │ │ └── index.ts │ │ ├── Menu │ │ └── index.ts │ │ ├── MenuItem │ │ └── index.ts │ │ ├── SubMenu │ │ └── index.ts │ │ └── HighlightReducer │ │ └── index.ts ├── number-input │ └── src │ │ ├── Arrows │ │ └── index.tsx │ │ ├── index.ts │ │ ├── UnitSelectButton │ │ └── index.tsx │ │ ├── Input │ │ └── index.tsx │ │ ├── UnitSelect │ │ └── index.tsx │ │ └── NumberInput │ │ └── index.tsx ├── popover │ └── src │ │ └── Popover │ │ └── hooks │ │ └── index.ts ├── ripple │ └── src │ │ └── index.ts ├── canvas-header │ └── src │ │ ├── Resource │ │ ├── index.ts │ │ └── Resource.types.ts │ │ ├── index.ts │ │ ├── CanvasHeader │ │ └── index.ts │ │ └── constants.ts ├── lib │ └── src │ │ ├── helpers │ │ ├── deepOmit │ │ │ └── index.ts │ │ ├── consoleOnce │ │ │ └── index.ts │ │ ├── cloneReverse │ │ │ └── index.ts │ │ └── allEqual │ │ │ └── index.ts │ │ ├── childQueries │ │ ├── findChild │ │ │ └── index.ts │ │ ├── findChildren │ │ │ └── index.ts │ │ ├── filterChildren │ │ │ └── index.ts │ │ ├── isChildWithProperty │ │ │ └── index.ts │ │ ├── unwrapRootFragment │ │ │ └── index.ts │ │ └── hasStaticProperty │ │ │ └── index.ts │ │ ├── deepMapValues │ │ └── index.ts │ │ ├── formatCssSize │ │ └── index.ts │ │ ├── createSyntheticEvent │ │ └── index.ts │ │ ├── getMobileMediaQuery │ │ └── index.ts │ │ ├── getClosestFocusableElement │ │ └── index.ts │ │ ├── types │ │ ├── ValuesOf.types.ts │ │ ├── Mutable.types.ts │ │ ├── Concat.types.ts │ │ ├── Exists.types.ts │ │ └── Optional.types.ts │ │ └── queryFocusableElements │ │ └── index.ts ├── polymorphic │ └── src │ │ ├── Polymorphic │ │ └── constants.ts │ │ └── Example │ │ └── index.ts ├── table │ └── src │ │ ├── testing │ │ └── index.ts │ │ ├── utils │ │ ├── index.ts │ │ └── types.ts │ │ ├── Table │ │ └── index.ts │ │ ├── TableHead │ │ ├── index.ts │ │ └── TableHead.types.ts │ │ ├── Row │ │ ├── HeaderRow │ │ │ ├── index.ts │ │ │ └── HeaderRow.types.ts │ │ └── index.ts │ │ ├── TableBody │ │ ├── TableBody.types.ts │ │ ├── index.ts │ │ └── TableBody.styles.ts │ │ ├── TableContext │ │ └── index.ts │ │ ├── Cell │ │ └── HeaderCell │ │ │ └── index.ts │ │ ├── useLeafyGreenTable │ │ └── index.ts │ │ ├── useLeafyGreenVirtualTable │ │ ├── ReactVirtual.types.ts │ │ └── index.ts │ │ ├── ExpandedContent │ │ └── index.ts │ │ └── ToggleExpandedIcon │ │ └── index.ts ├── copyable │ └── src │ │ └── Copyable │ │ ├── constants.ts │ │ └── index.ts ├── radio-box-group │ └── src │ │ ├── RadioBox │ │ └── index.ts │ │ ├── RadioBoxGroup │ │ ├── index.ts │ │ └── RadioBoxGroup.styles.ts │ │ └── index.ts ├── resizable │ └── src │ │ ├── index.ts │ │ └── useResizable │ │ ├── utils │ │ ├── calculateNewSize │ │ │ └── index.ts │ │ ├── getNextKeyboardSize │ │ │ └── index.ts │ │ └── index.ts │ │ └── index.ts ├── toast │ └── src │ │ ├── ToastContext │ │ ├── useToast │ │ │ └── index.ts │ │ ├── ToastProvider │ │ │ └── index.ts │ │ └── ToastReducer │ │ │ └── index.ts │ │ ├── InternalToast │ │ ├── ProgressBar │ │ │ └── index.ts │ │ └── index.ts │ │ ├── ToastContainer │ │ ├── index.ts │ │ ├── NotificationBar │ │ │ └── index.ts │ │ └── utils │ │ │ └── index.ts │ │ └── ControlledToast │ │ └── index.ts ├── combobox │ └── src │ │ ├── ComboboxChip │ │ ├── index.ts │ │ └── ComboboxChip.types.ts │ │ ├── ComboboxMenu │ │ └── index.ts │ │ ├── ComboboxContext │ │ └── index.ts │ │ ├── ComboboxGroup │ │ └── index.ts │ │ ├── ComboboxOption │ │ └── index.ts │ │ └── Combobox │ │ └── index.ts ├── drawer │ └── src │ │ ├── utils │ │ └── index.ts │ │ ├── LayoutComponent │ │ ├── PanelGrid │ │ │ ├── index.ts │ │ │ └── PanelGrid.types.ts │ │ ├── index.ts │ │ ├── OverlayDrawerLayout │ │ │ ├── index.ts │ │ │ └── OverlayDrawerLayout.types.ts │ │ ├── EmbeddedDrawerLayout │ │ │ ├── index.tsx │ │ │ └── EmbeddedDrawerLayout.types.ts │ │ └── LayoutComponent.styles.tsx │ │ ├── testing │ │ └── index.ts │ │ ├── DrawerToolbarLayout │ │ ├── DrawerToolbarContext │ │ │ └── index.ts │ │ └── index.ts │ │ ├── Drawer │ │ └── index.ts │ │ ├── DrawerStackContext │ │ └── index.ts │ │ └── DrawerLayout │ │ └── index.ts ├── guide-cue │ └── src │ │ ├── GuideCueTooltip │ │ └── index.ts │ │ ├── index.ts │ │ └── GuideCue │ │ └── index.ts ├── portal │ └── src │ │ └── Portal │ │ └── index.ts ├── code-editor │ └── src │ │ ├── ShortcutTable │ │ └── index.ts │ │ ├── CodeEditorContextMenu │ │ └── index.ts │ │ ├── utils │ │ └── index.ts │ │ ├── SearchPanel │ │ └── index.ts │ │ ├── ContextMenu │ │ └── index.ts │ │ ├── Panel │ │ └── index.ts │ │ ├── CodeEditorTooltip │ │ └── index.ts │ │ ├── CodeEditorCopyButton │ │ └── index.ts │ │ ├── CodeEditorCopyButtonTrigger │ │ └── index.ts │ │ └── testing │ │ └── index.ts ├── compound-component │ ├── src │ │ ├── utils │ │ │ ├── findChild │ │ │ │ └── index.ts │ │ │ ├── findChildren │ │ │ │ └── index.ts │ │ │ ├── filterChildren │ │ │ │ └── index.ts │ │ │ ├── unwrapRootFragment │ │ │ │ └── index.ts │ │ │ ├── isChildWithProperty │ │ │ │ └── index.ts │ │ │ └── hasStaticProperty │ │ │ │ └── index.ts │ │ └── CompoundComponent │ │ │ └── index.ts │ └── CHANGELOG.md ├── form-footer │ └── src │ │ └── utils │ │ └── index.ts ├── side-nav │ └── src │ │ ├── AccessibleGlyph │ │ ├── index.ts │ │ └── AccessibleGlyph.types.ts │ │ ├── CollapseToggle │ │ ├── index.ts │ │ └── CollapseToggle.types.ts │ │ ├── SideNavGroupOpen │ │ └── index.ts │ │ ├── SideNavGroupHeader │ │ ├── index.ts │ │ └── SideNavGroupHeader.types.ts │ │ ├── CollapsedSideNavItem │ │ └── index.ts │ │ ├── SideNavGroupCollapsed │ │ └── index.ts │ │ ├── SideNavGroup │ │ └── index.ts │ │ └── SideNavItem │ │ └── index.ts ├── avatar │ └── src │ │ ├── Avatar │ │ └── AvatarContents │ │ │ └── index.ts │ │ ├── utils │ │ └── getInitials │ │ │ └── index.ts │ │ ├── AssistantAvatar │ │ └── index.ts │ │ └── index.ts ├── password-input │ └── src │ │ ├── PasswordToggle │ │ ├── index.ts │ │ └── PasswordToggle.types.ts │ │ ├── utils │ │ └── index.ts │ │ ├── StateNotifications │ │ └── index.ts │ │ ├── PasswordInputFeedback │ │ └── index.ts │ │ ├── PasswordInput │ │ └── index.tsx │ │ └── index.ts ├── tooltip │ └── src │ │ └── Notch │ │ └── index.ts ├── banner │ └── src │ │ ├── BannerIcon │ │ └── index.ts │ │ ├── Banner │ │ └── index.ts │ │ └── BannerDismissButton │ │ └── index.ts ├── search-input │ └── src │ │ ├── SearchResultsMenu │ │ ├── EmptyOption │ │ │ └── index.ts │ │ ├── LoadingOption │ │ │ └── index.ts │ │ ├── index.ts │ │ └── SearchResultsMenu.types.ts │ │ ├── SearchResult │ │ └── index.ts │ │ ├── SearchInput │ │ └── index.ts │ │ └── SearchResultGroup │ │ └── index.ts ├── testing-lib │ └── src │ │ ├── waitForTransition │ │ └── index.ts │ │ ├── ReactTestingLibrary │ │ └── utils │ │ │ ├── isReact17.ts │ │ │ └── getReactVersion.ts │ │ ├── eventContainingTargetValue │ │ └── index.ts │ │ └── tabNTimes │ │ └── index.ts ├── toolbar │ └── src │ │ ├── constants.ts │ │ ├── utils │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ ├── ToolbarIconButton │ │ └── index.ts │ │ ├── Toolbar │ │ └── index.ts │ │ ├── Context │ │ └── index.ts │ │ └── index.ts ├── date-picker │ └── src │ │ ├── shared │ │ ├── hooks │ │ │ ├── useDateSegments │ │ │ │ └── index.ts │ │ │ ├── useControlledValue │ │ │ │ └── index.ts │ │ │ ├── useSegmentRefs │ │ │ │ ├── index.ts │ │ │ │ └── segmentRefs.types.ts │ │ │ └── index.ts │ │ ├── components │ │ │ ├── DateInput │ │ │ │ ├── CalendarButton │ │ │ │ │ ├── index.ts │ │ │ │ │ └── CalendarButton.styles.ts │ │ │ │ ├── DateFormField │ │ │ │ │ └── index.ts │ │ │ │ ├── DateInputSegment │ │ │ │ │ ├── utils │ │ │ │ │ │ └── index.ts │ │ │ │ │ └── index.ts │ │ │ │ └── DateInputBox │ │ │ │ │ └── index.ts │ │ │ ├── MenuWrapper │ │ │ │ └── index.ts │ │ │ └── Calendar │ │ │ │ ├── CalendarGrid │ │ │ │ └── index.ts │ │ │ │ ├── CalendarCell │ │ │ │ └── index.ts │ │ │ │ └── index.ts │ │ ├── utils │ │ │ ├── isEverySegmentValid │ │ │ │ └── index.ts │ │ │ ├── newDateFromSegments │ │ │ │ └── index.ts │ │ │ ├── isEverySegmentFilled │ │ │ │ └── index.ts │ │ │ ├── doSegmentsFormValidDate │ │ │ │ └── index.ts │ │ │ ├── getSegmentStateFromRefs │ │ │ │ └── index.ts │ │ │ ├── isEverySegmentValueExplicit │ │ │ │ └── index.ts │ │ │ ├── getSegmentsFromDate │ │ │ │ └── index.ts │ │ │ └── getFormattedDateString │ │ │ │ └── index.ts │ │ └── index.ts │ │ ├── DatePicker │ │ ├── DatePickerMenu │ │ │ ├── DatePickerMenuHeader │ │ │ │ ├── index.ts │ │ │ │ └── utils │ │ │ │ │ └── index.ts │ │ │ ├── index.ts │ │ │ └── DatePickerMenuSelect │ │ │ │ └── index.ts │ │ ├── index.ts │ │ ├── DatePickerInput │ │ │ └── index.ts │ │ ├── DatePickerContent │ │ │ └── index.ts │ │ └── DatePickerContext │ │ │ └── index.ts │ │ └── index.ts ├── vertical-stepper │ └── src │ │ ├── VerticalStepActions │ │ ├── index.ts │ │ └── VerticalStepActions.types.ts │ │ ├── StepIcon │ │ ├── index.ts │ │ └── StepIcon.types.ts │ │ ├── VerticalStepper │ │ ├── index.ts │ │ └── VerticalStepper.styles.ts │ │ ├── index.ts │ │ ├── context │ │ └── index.ts │ │ └── VerticalStep │ │ └── index.ts ├── card │ └── src │ │ └── Card │ │ └── index.ts ├── feature-walls │ └── src │ │ ├── ActivationSteps │ │ ├── constants.ts │ │ └── index.ts │ │ ├── InfoBlock │ │ └── index.ts │ │ ├── Header │ │ └── index.ts │ │ ├── Section │ │ ├── index.ts │ │ └── constants.ts │ │ ├── UseCases │ │ ├── index.ts │ │ └── constants.ts │ │ ├── Templates │ │ ├── constants.ts │ │ ├── index.ts │ │ └── Templates.styles.ts │ │ ├── ExpandableGrid │ │ └── index.ts │ │ ├── Accordion │ │ ├── AccordionItem │ │ │ └── index.ts │ │ ├── AccordionPanel │ │ │ └── index.ts │ │ └── AccordionButton │ │ │ └── index.ts │ │ └── FeatureOverview │ │ └── index.ts ├── leafygreen-provider │ └── src │ │ ├── DarkModeContext │ │ └── index.ts │ │ ├── PopoverContext │ │ └── index.ts │ │ ├── UsingKeyboardContext │ │ └── index.ts │ │ ├── LeafyGreenContext │ │ └── index.ts │ │ ├── TypographyContext │ │ └── index.ts │ │ ├── PortalContext │ │ └── index.ts │ │ ├── MigrationContext │ │ ├── index.ts │ │ └── MigrationContext.types.ts │ │ └── PopoverPropsContext │ │ └── index.ts ├── wizard │ └── src │ │ ├── Wizard │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ ├── WizardFooter │ │ ├── index.ts │ │ └── WizardFooter.styles.ts │ │ ├── WizardContext │ │ └── index.ts │ │ ├── WizardStep │ │ ├── index.ts │ │ └── WizardStep.styles.ts │ │ └── constants.ts ├── radio-group │ └── src │ │ ├── Radio │ │ └── index.ts │ │ ├── RadioGroup │ │ ├── index.ts │ │ └── RadioGroup.styles.ts │ │ ├── types.ts │ │ └── index.ts ├── typography │ └── src │ │ ├── Link │ │ ├── Link │ │ │ └── index.ts │ │ ├── BackLink │ │ │ ├── index.ts │ │ │ └── BackLink.styles.ts │ │ └── index.ts │ │ ├── utils │ │ └── index.ts │ │ ├── Disclaimer │ │ └── Disclaimer.types.ts │ │ ├── InlineKeyCode │ │ └── InlineKeyCode.types.ts │ │ ├── H3 │ │ └── H3.styles.ts │ │ ├── Description │ │ └── Description.types.ts │ │ └── Subtitle │ │ └── Subtitle.styles.ts ├── select │ └── src │ │ ├── utils │ │ └── index.ts │ │ ├── ListMenu │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ ├── Option │ │ ├── Options.styles.ts │ │ └── index.ts │ │ ├── MenuButton │ │ └── index.ts │ │ ├── OptionGroup │ │ └── index.ts │ │ └── Select │ │ └── index.ts ├── tokens │ └── src │ │ ├── color │ │ └── index.ts │ │ ├── breakpoints.ts │ │ ├── shadows │ │ └── index.ts │ │ ├── transitions.ts │ │ ├── size.ts │ │ ├── borderRadius.ts │ │ ├── scrollbars │ │ └── index.ts │ │ ├── mode.ts │ │ └── fontFamilies.ts ├── context-drawer │ └── src │ │ ├── ButtonCorner │ │ ├── index.ts │ │ └── ButtonCorner.types.ts │ │ ├── testing │ │ └── index.ts │ │ ├── constants.ts │ │ ├── ContextDrawerButton │ │ └── index.ts │ │ ├── ContextDrawer │ │ └── index.ts │ │ └── index.ts ├── section-nav │ └── src │ │ ├── utils │ │ ├── getFlatLevelDataToNestedData │ │ │ └── index.ts │ │ ├── index.ts │ │ └── transformToNestedData │ │ │ └── index.ts │ │ ├── SectionNav │ │ └── index.ts │ │ ├── SectionNavItem │ │ └── index.ts │ │ ├── testing │ │ └── index.ts │ │ └── index.ts ├── confirmation-modal │ └── src │ │ └── utils │ │ └── index.ts ├── expandable-card │ └── src │ │ ├── testing │ │ └── index.ts │ │ └── ExpandableCard │ │ └── index.ts ├── info-sprinkle │ └── src │ │ ├── index.ts │ │ └── InfoSprinkle │ │ └── index.ts ├── ordered-list │ └── src │ │ ├── OrderedListContext │ │ └── index.ts │ │ ├── OrderedList │ │ ├── index.ts │ │ └── OrderedList.types.ts │ │ ├── OrderedListItem │ │ └── index.ts │ │ └── index.ts ├── preview-card │ └── src │ │ ├── index.ts │ │ ├── testing │ │ └── index.ts │ │ └── PreviewCard │ │ └── index.ts ├── chip │ └── src │ │ ├── DismissButton │ │ ├── index.ts │ │ └── DismissButton.types.ts │ │ ├── index.ts │ │ └── Chip │ │ └── index.ts ├── loading-indicator │ └── src │ │ ├── testing │ │ └── index.ts │ │ ├── PageLoader │ │ └── index.ts │ │ ├── Spinner │ │ └── index.ts │ │ └── constants.ts ├── skeleton-loader │ └── src │ │ ├── CardSkeleton │ │ ├── index.ts │ │ └── CardSkeleton.styles.ts │ │ ├── CodeSkeleton │ │ └── index.ts │ │ ├── FormSkeleton │ │ └── index.ts │ │ ├── IconSkeleton │ │ └── index.ts │ │ ├── ListSkeleton │ │ └── index.ts │ │ ├── TableSkeleton │ │ └── index.ts │ │ ├── ParagraphSkeleton │ │ └── index.ts │ │ └── Skeleton │ │ └── index.ts ├── empty-state │ └── src │ │ ├── BasicEmptyState │ │ └── index.tsx │ │ ├── FeaturesEmptyState │ │ └── index.tsx │ │ ├── index.ts │ │ └── example-graphics │ │ └── svg.d.ts ├── inline-definition │ └── src │ │ └── InlineDefinition │ │ └── index.ts ├── pagination │ └── src │ │ └── Pagination │ │ └── index.tsx ├── checkbox │ └── src │ │ ├── utils │ │ └── index.ts │ │ └── Checkbox │ │ └── index.ts ├── segmented-control │ └── src │ │ ├── SegmentedControl │ │ └── index.ts │ │ ├── SegmentedControlOption │ │ └── index.ts │ │ └── index.ts ├── input-option │ ├── README.md │ └── src │ │ └── InputOption │ │ └── index.ts ├── icon-button │ └── src │ │ └── IconButton │ │ └── index.ts ├── palette │ └── src │ │ └── index.ts └── descendants │ └── src │ └── Highlight │ └── reducer │ └── index.ts ├── charts ├── core │ └── src │ │ ├── Echart │ │ └── utils │ │ │ └── index.ts │ │ ├── Chart │ │ ├── hooks │ │ │ └── index.ts │ │ ├── config │ │ │ └── index.ts │ │ └── index.ts │ │ ├── Series │ │ ├── Bar │ │ │ └── index.ts │ │ ├── Line │ │ │ └── index.ts │ │ └── index.ts │ │ ├── testUtils │ │ └── index.ts │ │ ├── ChartContext │ │ ├── index.ts │ │ └── ChartContext.types.ts │ │ ├── ChartGrid │ │ ├── ChartGrid.types.ts │ │ └── index.ts │ │ ├── ChartTooltip │ │ ├── CustomTooltip │ │ │ ├── SeriesListItemColorDot │ │ │ │ ├── index.ts │ │ │ │ └── SeriesListItemColorDot.types.ts │ │ │ ├── SeriesList │ │ │ │ └── index.ts │ │ │ ├── SeriesListItem │ │ │ │ └── index.ts │ │ │ └── index.ts │ │ └── index.ts │ │ ├── ChartHeader │ │ └── index.ts │ │ ├── ThresholdLine │ │ └── index.ts │ │ ├── EventMarkers │ │ ├── EventMarkerLine │ │ │ ├── index.ts │ │ │ └── EventMarkerLine.types.ts │ │ ├── EventMarkerPoint │ │ │ ├── index.ts │ │ │ └── EventMarkerPoint.types.ts │ │ ├── BaseEventMarker │ │ │ └── index.ts │ │ └── index.ts │ │ └── Axis │ │ ├── XAxis.types.ts │ │ └── YAxis.types.ts ├── legend │ └── src │ │ ├── index.ts │ │ ├── Legend │ │ └── index.ts │ │ └── LegendCheckbox │ │ └── index.ts ├── drag-provider │ └── src │ │ ├── index.ts │ │ └── DragProvider.types.ts ├── colors │ └── src │ │ └── index.ts ├── chart-card │ └── src │ │ ├── index.ts │ │ └── ChartCard │ │ └── index.tsx └── series-provider │ └── src │ └── index.ts ├── eslint.config.mjs ├── babel.config.js ├── deprecated-packages ├── box │ └── src │ │ └── index.ts ├── chat-disclaimer │ └── src │ │ ├── index.ts │ │ └── DisclaimerText │ │ └── index.ts ├── message-actions │ └── src │ │ ├── constants.ts │ │ ├── MessageActions │ │ └── index.ts │ │ └── index.ts ├── fixed-chat-window │ └── src │ │ ├── ChatTrigger │ │ ├── index.ts │ │ └── ChatTrigger.types.ts │ │ ├── FixedChatWindow │ │ └── index.ts │ │ └── index.ts └── avatar │ └── src │ ├── index.ts │ └── Avatar │ └── index.ts ├── .storybook ├── static │ ├── examples │ │ ├── DataLake.png │ │ ├── Realm_Rebrand_Image.png │ │ ├── marketing-fill-dark.jpg │ │ ├── feature-walls-sample.png │ │ └── marketing-fill-light.jpg │ └── leafygreen-ui-banner.png └── main.ts ├── prettier.config.js ├── pnpm-workspace.yaml ├── .changeset └── config.json └── .prettierignore /.npmignore: -------------------------------------------------------------------------------- 1 | .turbo 2 | -------------------------------------------------------------------------------- /tools/slackbot/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /chat/suggestions/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.tool-versions: -------------------------------------------------------------------------------- 1 | nodejs 22.21.1 2 | pnpm 10.18.3 3 | -------------------------------------------------------------------------------- /typings/copy.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'clipboard'; 2 | -------------------------------------------------------------------------------- /typings/svgr.d.ts: -------------------------------------------------------------------------------- 1 | declare module '@svgr/core'; 2 | -------------------------------------------------------------------------------- /typings/mergeRefs.d.ts: -------------------------------------------------------------------------------- 1 | declare module 'react-merge-refs'; 2 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | packages/icon/src/generated/* linguist-generated=true -------------------------------------------------------------------------------- /packages/emotion/src/version.ts: -------------------------------------------------------------------------------- 1 | export const VERSION = '5.1.0'; 2 | -------------------------------------------------------------------------------- /packages/icon/src/types/svgr.d.ts: -------------------------------------------------------------------------------- 1 | declare module '@svgr/core'; 2 | -------------------------------------------------------------------------------- /charts/core/src/Echart/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './updateUtils'; 2 | -------------------------------------------------------------------------------- /packages/modal/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /packages/pipeline/src/Stage/index.ts: -------------------------------------------------------------------------------- 1 | export { Stage } from './Stage'; 2 | -------------------------------------------------------------------------------- /packages/progress-bar/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './ProgressBar'; 2 | -------------------------------------------------------------------------------- /packages/stepper/src/Step/index.ts: -------------------------------------------------------------------------------- 1 | export { Step } from './Step'; 2 | -------------------------------------------------------------------------------- /packages/toggle/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /tools/test-harnesses/src/queries/index.ts: -------------------------------------------------------------------------------- 1 | export * from './lgId'; 2 | -------------------------------------------------------------------------------- /chat/message/src/MessageContext/index.ts: -------------------------------------------------------------------------------- 1 | export * from './MessageContext'; 2 | -------------------------------------------------------------------------------- /packages/button/src/Button/index.ts: -------------------------------------------------------------------------------- 1 | export { Button } from './Button'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/newUTC/index.ts: -------------------------------------------------------------------------------- 1 | export { newUTC } from './newUTC'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/toDate/index.ts: -------------------------------------------------------------------------------- 1 | export { toDate } from './toDate'; 2 | -------------------------------------------------------------------------------- /packages/progress-bar/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /packages/split-button/src/Menu/index.ts: -------------------------------------------------------------------------------- 1 | export { Menu } from './Menu'; 2 | -------------------------------------------------------------------------------- /packages/tabs/src/TabPanel/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './TabPanel'; 2 | -------------------------------------------------------------------------------- /packages/tabs/src/TabTitle/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './TabTitle'; 2 | -------------------------------------------------------------------------------- /packages/text-area/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /packages/text-input/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /tools/test/config/mocks/fileMock.js: -------------------------------------------------------------------------------- 1 | module.exports = 'test-file-stub'; 2 | -------------------------------------------------------------------------------- /charts/core/src/Chart/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export { useChart } from './useChart'; 2 | -------------------------------------------------------------------------------- /charts/legend/src/index.ts: -------------------------------------------------------------------------------- 1 | export { Legend, type LegendProps } from './Legend'; 2 | -------------------------------------------------------------------------------- /packages/code/src/Panel/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Panel } from './Panel'; 2 | -------------------------------------------------------------------------------- /packages/code/src/Syntax/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Syntax } from './Syntax'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/maxDate/index.ts: -------------------------------------------------------------------------------- 1 | export { maxDate } from './maxDate'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/minDate/index.ts: -------------------------------------------------------------------------------- 1 | export { minDate } from './minDate'; 2 | -------------------------------------------------------------------------------- /packages/form-field/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/gallery-indicator/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useMobile/index.ts: -------------------------------------------------------------------------------- 1 | export { useMobile } from './useMobile'; 2 | -------------------------------------------------------------------------------- /packages/menu/src/MenuGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { MenuGroup } from './MenuGroup'; 2 | -------------------------------------------------------------------------------- /packages/number-input/src/Arrows/index.tsx: -------------------------------------------------------------------------------- 1 | export { Arrows } from './Arrows'; 2 | -------------------------------------------------------------------------------- /packages/pipeline/src/Counter/index.ts: -------------------------------------------------------------------------------- 1 | export { Counter } from './Counter'; 2 | -------------------------------------------------------------------------------- /packages/pipeline/src/Pipeline/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Pipeline'; 2 | -------------------------------------------------------------------------------- /packages/popover/src/Popover/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Popover.hooks'; 2 | -------------------------------------------------------------------------------- /packages/progress-bar/src/ProgressBar/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './utils'; 2 | -------------------------------------------------------------------------------- /packages/ripple/src/index.ts: -------------------------------------------------------------------------------- 1 | export { registerRipple } from './registerRipple'; 2 | -------------------------------------------------------------------------------- /tools/install/src/index.ts: -------------------------------------------------------------------------------- 1 | export { installLeafyGreen } from './installLG'; 2 | -------------------------------------------------------------------------------- /tools/link/bin/link.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('../dist/umd/link.js'); 3 | -------------------------------------------------------------------------------- /tools/prompt-kit/src/index.ts: -------------------------------------------------------------------------------- 1 | export { mergePromptsVSCode } from './settings'; 2 | -------------------------------------------------------------------------------- /charts/drag-provider/src/index.ts: -------------------------------------------------------------------------------- 1 | export { DragProvider } from './DragProvider'; 2 | -------------------------------------------------------------------------------- /packages/canvas-header/src/Resource/index.ts: -------------------------------------------------------------------------------- 1 | export { Resource } from './Resource'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isTodayTZ/index.ts: -------------------------------------------------------------------------------- 1 | export { isTodayTZ } from './isTodayTZ'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/newTZDate/index.ts: -------------------------------------------------------------------------------- 1 | export { newTZDate } from './newTZDate'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/sortDates/index.ts: -------------------------------------------------------------------------------- 1 | export { sortDates } from './sortDates'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useAutoScroll/constants.test.ts: -------------------------------------------------------------------------------- 1 | export const testItemHeight = 25; 2 | -------------------------------------------------------------------------------- /packages/lib/src/helpers/deepOmit/index.ts: -------------------------------------------------------------------------------- 1 | export { deepOmit } from './deepOmit'; 2 | -------------------------------------------------------------------------------- /packages/modal/src/CloseButton/index.ts: -------------------------------------------------------------------------------- 1 | export { CloseButton } from './CloseButton'; 2 | -------------------------------------------------------------------------------- /packages/modal/src/Footer/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Footer } from './Footer'; 2 | -------------------------------------------------------------------------------- /packages/polymorphic/src/Polymorphic/constants.ts: -------------------------------------------------------------------------------- 1 | export const FALLBACK = 'div'; 2 | -------------------------------------------------------------------------------- /packages/table/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | -------------------------------------------------------------------------------- /tools/build/bin/build.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('../dist/umd/cli.js'); 3 | -------------------------------------------------------------------------------- /tools/cli/bin/index.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('../dist/umd/index.js'); 3 | -------------------------------------------------------------------------------- /tools/link/bin/unlink.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | require('../dist/umd/unlink.js'); 3 | -------------------------------------------------------------------------------- /tools/slackbot/src/index.ts: -------------------------------------------------------------------------------- 1 | export { Channels, releaseBot } from './release-bot'; 2 | -------------------------------------------------------------------------------- /chat/title-bar/src/index.ts: -------------------------------------------------------------------------------- 1 | export { TitleBar, type TitleBarProps } from './TitleBar'; 2 | -------------------------------------------------------------------------------- /packages/copyable/src/Copyable/constants.ts: -------------------------------------------------------------------------------- 1 | export const TOOLTIP_VISIBLE_DURATION = 1500; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/addDaysUTC/index.ts: -------------------------------------------------------------------------------- 1 | export { addDaysUTC } from './addDaysUTC'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getISODate/index.ts: -------------------------------------------------------------------------------- 1 | export { getISODate } from './getISODate'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isOnOrAfter/index.ts: -------------------------------------------------------------------------------- 1 | export { isOnOrAfter } from './isOnOrAfter'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isSameTZDay/index.ts: -------------------------------------------------------------------------------- 1 | export { isSameTZDay } from './isSameTZDay'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCDate/index.ts: -------------------------------------------------------------------------------- 1 | export { setUTCDate } from './setUTCDate'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { setUTCMonth } from './setUTCMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCYear/index.ts: -------------------------------------------------------------------------------- 1 | export { setUTCYear } from './setUTCYear'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/findChild/index.ts: -------------------------------------------------------------------------------- 1 | export { findChild } from './findChild'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/deepMapValues/index.ts: -------------------------------------------------------------------------------- 1 | export { deepMapValues } from './deepMapValues'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/formatCssSize/index.ts: -------------------------------------------------------------------------------- 1 | export { formatCssSize } from './formatCssSize'; 2 | -------------------------------------------------------------------------------- /packages/menu/src/MenuSeparator/index.ts: -------------------------------------------------------------------------------- 1 | export { MenuSeparator } from './MenuSeparator'; 2 | -------------------------------------------------------------------------------- /packages/pipeline/src/TooltipText/index.ts: -------------------------------------------------------------------------------- 1 | export { TooltipText } from './TooltipText'; 2 | -------------------------------------------------------------------------------- /packages/radio-box-group/src/RadioBox/index.ts: -------------------------------------------------------------------------------- 1 | export { RadioBox } from './RadioBox'; 2 | -------------------------------------------------------------------------------- /packages/resizable/src/index.ts: -------------------------------------------------------------------------------- 1 | export { Position, useResizable } from './useResizable/'; 2 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContext/useToast/index.ts: -------------------------------------------------------------------------------- 1 | export { useToast } from './useToast'; 2 | -------------------------------------------------------------------------------- /tools/meta/src/getPackageJson/index.ts: -------------------------------------------------------------------------------- 1 | export { getPackageJson } from './getPackageJson'; 2 | -------------------------------------------------------------------------------- /tools/meta/src/getPackageName/index.ts: -------------------------------------------------------------------------------- 1 | export { getPackageName } from './getPackageName'; 2 | -------------------------------------------------------------------------------- /tools/slackbot/bin/slackbot.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | require('../dist/umd/index.js'); 3 | -------------------------------------------------------------------------------- /chat/chat-window/src/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatWindow, type ChatWindowProps } from './ChatWindow'; 2 | -------------------------------------------------------------------------------- /chat/input-bar/src/DisclaimerText/index.ts: -------------------------------------------------------------------------------- 1 | export { DisclaimerText } from './DisclaimerText'; 2 | -------------------------------------------------------------------------------- /chat/lg-markdown/src/index.ts: -------------------------------------------------------------------------------- 1 | export { LGMarkdown, type LGMarkdownProps } from './LGMarkdown'; 2 | -------------------------------------------------------------------------------- /chat/suggestions/src/testing/getTestUtils.types.ts: -------------------------------------------------------------------------------- 1 | export interface TestUtilsReturnType {} 2 | -------------------------------------------------------------------------------- /packages/code/src/CopyButton/index.ts: -------------------------------------------------------------------------------- 1 | export { default as CopyButton } from './CopyButton'; 2 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxChip/index.ts: -------------------------------------------------------------------------------- 1 | export { ComboboxChip } from './ComboboxChip'; 2 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { ComboboxMenu } from './ComboboxMenu'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/addMonthsUTC/index.ts: -------------------------------------------------------------------------------- 1 | export { addMonthsUTC } from './addMonthsUTC'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getISODateTZ/index.ts: -------------------------------------------------------------------------------- 1 | export { getISODateTZ } from './getISODateTZ'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getMonthName/index.ts: -------------------------------------------------------------------------------- 1 | export { getMonthName } from './getMonthName'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isOnOrBefore/index.ts: -------------------------------------------------------------------------------- 1 | export { isOnOrBefore } from './isOnOrBefore'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isSameUTCDay/index.ts: -------------------------------------------------------------------------------- 1 | export { isSameUTCDay } from './isSameUTCDay'; 2 | -------------------------------------------------------------------------------- /packages/drawer/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/guide-cue/src/GuideCueTooltip/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './GuideCueTooltip'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useAutoScroll/index.ts: -------------------------------------------------------------------------------- 1 | export { useAutoScroll } from './useAutoScroll'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useControlled/index.ts: -------------------------------------------------------------------------------- 1 | export { useControlled } from './useControlled'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useFirstRender/index.ts: -------------------------------------------------------------------------------- 1 | export { useFirstRender } from './useFirstRender'; 2 | -------------------------------------------------------------------------------- /packages/portal/src/Portal/index.ts: -------------------------------------------------------------------------------- 1 | export { default, usePortalContainer } from './Portal'; 2 | -------------------------------------------------------------------------------- /packages/toggle/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /charts/core/src/Series/Bar/index.ts: -------------------------------------------------------------------------------- 1 | export { Bar, BarHoverBehavior, type BarProps } from './Bar'; 2 | -------------------------------------------------------------------------------- /charts/core/src/testUtils/index.ts: -------------------------------------------------------------------------------- 1 | export { makeSeriesData } from './makeSeriesData.testUtils'; 2 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBarFeedback/index.ts: -------------------------------------------------------------------------------- 1 | export { InputBarFeedback } from './InputBarFeedback'; 2 | -------------------------------------------------------------------------------- /chat/message-feed/src/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageFeed, type MessageFeedProps } from './MessageFeed'; 2 | -------------------------------------------------------------------------------- /packages/code-editor/src/ShortcutTable/index.ts: -------------------------------------------------------------------------------- 1 | export { ShortcutTable } from './ShortcutTable'; 2 | -------------------------------------------------------------------------------- /packages/code/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getLgIds, type GetLgIdsReturnType } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/findChild/index.ts: -------------------------------------------------------------------------------- 1 | export { findChild } from './findChild'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getLastOfMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { getLastOfMonth } from './getLastOfMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getMonthIndex/index.ts: -------------------------------------------------------------------------------- 1 | export { getMonthIndex } from './getMonthIndex'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getWeekdayName/index.ts: -------------------------------------------------------------------------------- 1 | export { getWeekdayName } from './getWeekdayName'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getWeeksArray/index.ts: -------------------------------------------------------------------------------- 1 | export { getWeeksArray } from './getWeeksArray'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isSameTZMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { isSameTZMonth } from './isSameTZMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isSameUTCMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { isSameUTCMonth } from './isSameUTCMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isSameUTCRange/index.ts: -------------------------------------------------------------------------------- 1 | export { isSameUTCRange } from './isSameUTCRange'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isValidLocale/index.ts: -------------------------------------------------------------------------------- 1 | export { isValidLocale } from './isValidLocale'; 2 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/PanelGrid/index.ts: -------------------------------------------------------------------------------- 1 | export { PanelGrid } from './PanelGrid'; 2 | -------------------------------------------------------------------------------- /packages/form-footer/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useForceRerender/index.ts: -------------------------------------------------------------------------------- 1 | export { useForceRerender } from './useForceRerender'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/findChildren/index.ts: -------------------------------------------------------------------------------- 1 | export { findChildren } from './findChildren'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/AccessibleGlyph/index.ts: -------------------------------------------------------------------------------- 1 | export { AccessibleGlyph } from './AccessibleGlyph'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/CollapseToggle/index.ts: -------------------------------------------------------------------------------- 1 | export { CollapseToggle } from './CollapseToggle'; 2 | -------------------------------------------------------------------------------- /packages/text-area/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/text-input/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /tools/meta/src/getLGConfig/index.ts: -------------------------------------------------------------------------------- 1 | export { getLGConfig, type LGConfig } from './getLGConfig'; 2 | -------------------------------------------------------------------------------- /tools/prompt-kit/src/settings/index.ts: -------------------------------------------------------------------------------- 1 | export { mergePromptsVSCode } from './mergePromptsVSCode'; 2 | -------------------------------------------------------------------------------- /tools/storybook-addon/preset.js: -------------------------------------------------------------------------------- 1 | // @ts-nocheck 2 | module.exports = require('./dist/umd/index.js'); 3 | -------------------------------------------------------------------------------- /charts/core/src/Chart/config/index.ts: -------------------------------------------------------------------------------- 1 | export { getDefaultChartOptions } from './getDefaultChartOptions'; 2 | -------------------------------------------------------------------------------- /charts/core/src/ChartContext/index.ts: -------------------------------------------------------------------------------- 1 | export { ChartProvider, useChartContext } from './ChartContext'; 2 | -------------------------------------------------------------------------------- /packages/avatar/src/Avatar/AvatarContents/index.ts: -------------------------------------------------------------------------------- 1 | export { AvatarContents } from './AvatarContents'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getLocaleMonths/index.ts: -------------------------------------------------------------------------------- 1 | export { getLocaleMonths } from './getLocaleMonths'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getUTCDateString/index.ts: -------------------------------------------------------------------------------- 1 | export { getUTCDateString } from './getUTCDateString'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/isCurrentUTCDay/index.ts: -------------------------------------------------------------------------------- 1 | export { isCurrentUTCDay } from './isCurrentUTCDay'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/normalizeLocale/index.ts: -------------------------------------------------------------------------------- 1 | export { normalizeLocale } from './normalizeLocale'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/setToUTCMidnight/index.ts: -------------------------------------------------------------------------------- 1 | export { setToUTCMidnight } from './setToUTCMidnight'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/filterChildren/index.ts: -------------------------------------------------------------------------------- 1 | export { filterChildren } from './filterChildren'; 2 | -------------------------------------------------------------------------------- /packages/menu/src/FocusableMenuItem/index.ts: -------------------------------------------------------------------------------- 1 | export { FocusableMenuItem } from './FocusableMenuItem'; 2 | -------------------------------------------------------------------------------- /packages/number-input/src/index.ts: -------------------------------------------------------------------------------- 1 | export { NumberInput, type NumberInputProps } from './NumberInput'; 2 | -------------------------------------------------------------------------------- /packages/password-input/src/PasswordToggle/index.ts: -------------------------------------------------------------------------------- 1 | export { PasswordToggle } from './PasswordToggle'; 2 | -------------------------------------------------------------------------------- /packages/password-input/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 2 | -------------------------------------------------------------------------------- /packages/radio-box-group/src/RadioBoxGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { RadioBoxGroup } from './RadioBoxGroup'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavGroupOpen/index.ts: -------------------------------------------------------------------------------- 1 | export { SideNavGroupOpen } from './SideNavGroupOpen'; 2 | -------------------------------------------------------------------------------- /packages/tabs/src/utils/getSelectedIndex/index.ts: -------------------------------------------------------------------------------- 1 | export { getSelectedIndex } from './getSelectedIndex'; 2 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContext/ToastProvider/index.ts: -------------------------------------------------------------------------------- 1 | export { ToastProvider } from './ToastProvider'; 2 | -------------------------------------------------------------------------------- /packages/tooltip/src/Notch/index.ts: -------------------------------------------------------------------------------- 1 | import SvgNotch from './Notch'; 2 | 3 | export default SvgNotch; 4 | -------------------------------------------------------------------------------- /chat/chat-button/src/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatButton, type ChatButtonProps, Size, Variant } from './ChatButton'; 2 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBarSendButton/index.ts: -------------------------------------------------------------------------------- 1 | export { InputBarSendButton } from './InputBarSendButton'; 2 | -------------------------------------------------------------------------------- /eslint.config.mjs: -------------------------------------------------------------------------------- 1 | import config from '@lg-tools/lint/config/eslint.config.mjs'; 2 | export default config; 3 | -------------------------------------------------------------------------------- /packages/banner/src/BannerIcon/index.ts: -------------------------------------------------------------------------------- 1 | import BannerIcon from './BannerIcon'; 2 | export default BannerIcon; 3 | -------------------------------------------------------------------------------- /packages/canvas-header/src/index.ts: -------------------------------------------------------------------------------- 1 | export { CanvasHeader, type CanvasHeaderProps } from './CanvasHeader'; 2 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/findChildren/index.ts: -------------------------------------------------------------------------------- 1 | export { findChildren } from './findChildren'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getDaysInUTCMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { getDaysInUTCMonth } from './getDaysInUTCMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getFullMonthLabel/index.ts: -------------------------------------------------------------------------------- 1 | export { getFullMonthLabel } from './getFullMonthLabel'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getLocaleWeekdays/index.ts: -------------------------------------------------------------------------------- 1 | export { getLocaleWeekdays } from './getLocaleWeekdays'; 2 | -------------------------------------------------------------------------------- /packages/hooks/src/useControlledValue/index.ts: -------------------------------------------------------------------------------- 1 | export { useControlledValue } from './useControlledValue'; 2 | -------------------------------------------------------------------------------- /packages/icon/src/types/index.ts: -------------------------------------------------------------------------------- 1 | export * as LGGlyph from './LGGlyph'; 2 | export * as SVGR from './SVGR'; 3 | -------------------------------------------------------------------------------- /packages/lib/src/createSyntheticEvent/index.ts: -------------------------------------------------------------------------------- 1 | export { createSyntheticEvent } from './createSyntheticEvent'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/getMobileMediaQuery/index.ts: -------------------------------------------------------------------------------- 1 | export { getMobileMediaQuery } from './getMobileMediaQuery'; 2 | -------------------------------------------------------------------------------- /packages/number-input/src/UnitSelectButton/index.tsx: -------------------------------------------------------------------------------- 1 | export { UnitSelectButton } from './UnitSelectButton'; 2 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResultsMenu/EmptyOption/index.ts: -------------------------------------------------------------------------------- 1 | export { EmptyOption } from './EmptyOption'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavGroupHeader/index.ts: -------------------------------------------------------------------------------- 1 | export { SideNavGroupHeader } from './SideNavGroupHeader'; 2 | -------------------------------------------------------------------------------- /packages/stepper/src/Step/Step.tsx: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export const Step = React.Fragment; 4 | -------------------------------------------------------------------------------- /packages/tabs/src/utils/getEnabledIndices/index.ts: -------------------------------------------------------------------------------- 1 | export { getEnabledIndices } from './getEnabledIndices'; 2 | -------------------------------------------------------------------------------- /packages/testing-lib/src/waitForTransition/index.ts: -------------------------------------------------------------------------------- 1 | export { waitForTransition } from './waitForTransition'; 2 | -------------------------------------------------------------------------------- /packages/toast/src/InternalToast/ProgressBar/index.ts: -------------------------------------------------------------------------------- 1 | export { default as ProgressBar } from './ProgressBar'; 2 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContext/ToastReducer/index.ts: -------------------------------------------------------------------------------- 1 | export { useToastReducer } from './useToastReducer'; 2 | -------------------------------------------------------------------------------- /packages/toolbar/src/constants.ts: -------------------------------------------------------------------------------- 1 | export const TOOLBAR_WIDTH = 48; 2 | export const ICON_BUTTON_HEIGHT = 48; 3 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/jsx/insertJSXComment/index.ts: -------------------------------------------------------------------------------- 1 | export { insertJSXComment } from './insertJSXComment'; 2 | -------------------------------------------------------------------------------- /tools/link/src/index.ts: -------------------------------------------------------------------------------- 1 | export { linkPackages } from './link'; 2 | export { unlinkPackages } from './unlink'; 3 | -------------------------------------------------------------------------------- /tools/meta/src/getAllPackages/index.ts: -------------------------------------------------------------------------------- 1 | export { getAllPackageNames, getAllPackages } from './getAllPackages'; 2 | -------------------------------------------------------------------------------- /charts/core/src/Series/Line/index.ts: -------------------------------------------------------------------------------- 1 | export type { LineProps } from './Line'; 2 | export { Line } from './Line'; 3 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/filterChildren/index.ts: -------------------------------------------------------------------------------- 1 | export { filterChildren } from './filterChildren'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getFirstOfUTCMonth/index.ts: -------------------------------------------------------------------------------- 1 | export { getFirstOfUTCMonth } from './getFirstOfUTCMonth'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getSimulatedTZDate/index.ts: -------------------------------------------------------------------------------- 1 | export { getSimulatedTZDate } from './getSimulatedTZDate'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/getSimulatedUTCDate/index.ts: -------------------------------------------------------------------------------- 1 | export { getSimulatedUTCDate } from './getSimulatedUTCDate'; 2 | -------------------------------------------------------------------------------- /packages/password-input/src/StateNotifications/index.ts: -------------------------------------------------------------------------------- 1 | export { StateNotifications } from './StateNotifications'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/CollapsedSideNavItem/index.ts: -------------------------------------------------------------------------------- 1 | export { CollapsedSideNavItem } from './CollapsedSideNavItem'; 2 | -------------------------------------------------------------------------------- /packages/tabs/src/Tab/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Tab'; 2 | export type { TabProps } from './Tab.types'; 3 | -------------------------------------------------------------------------------- /packages/tabs/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | export type * from './getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /tools/meta/src/getRootPackageJson/index.ts: -------------------------------------------------------------------------------- 1 | export { getRootPackageJson, isValidJSON } from './getRootPackageJson'; 2 | -------------------------------------------------------------------------------- /babel.config.js: -------------------------------------------------------------------------------- 1 | const babelConfig = require('@lg-tools/build/config/babel.config'); 2 | module.exports = babelConfig; 3 | -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatSideNav/ChatSideNavContent/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatSideNavContent } from './ChatSideNavContent'; 2 | -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatSideNav/ChatSideNavFooter/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatSideNavFooter } from './ChatSideNavFooter'; 2 | -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatSideNav/ChatSideNavHeader/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatSideNavHeader } from './ChatSideNavHeader'; 2 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxContext/index.ts: -------------------------------------------------------------------------------- 1 | export { ComboboxContext, defaultContext } from './ComboboxContext'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/hooks/useDateSegments/index.ts: -------------------------------------------------------------------------------- 1 | export { useDateSegments } from './useDateSegments'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/isChildWithProperty/index.ts: -------------------------------------------------------------------------------- 1 | export { isChildWithProperty } from './isChildWithProperty'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/unwrapRootFragment/index.ts: -------------------------------------------------------------------------------- 1 | export { unwrapRootFragment } from './unwrapRootFragment'; 2 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResultsMenu/LoadingOption/index.ts: -------------------------------------------------------------------------------- 1 | export { LoadingOption } from './LoadingOption'; 2 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavGroupCollapsed/index.ts: -------------------------------------------------------------------------------- 1 | export { SideNavGroupCollapsed } from './SideNavGroupCollapsed'; 2 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContainer/index.ts: -------------------------------------------------------------------------------- 1 | export { ToastContainer, toastPortalClassName } from './ToastContainer'; 2 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/VerticalStepActions/index.ts: -------------------------------------------------------------------------------- 1 | export { VerticalStepActions } from './VerticalStepActions'; 2 | -------------------------------------------------------------------------------- /tools/lint/babel.config.js: -------------------------------------------------------------------------------- 1 | const babel = require('@lg-tools/build/config/babel.config'); 2 | module.exports = babel; 3 | -------------------------------------------------------------------------------- /charts/legend/src/Legend/index.ts: -------------------------------------------------------------------------------- 1 | export { Legend } from './Legend'; 2 | export { type LegendProps } from './Legend.types'; 3 | -------------------------------------------------------------------------------- /chat/message-feedback/src/InlineMessageFeedback/SubmittedState/index.ts: -------------------------------------------------------------------------------- 1 | export { SubmittedState } from './SubmittedState'; 2 | -------------------------------------------------------------------------------- /packages/card/src/Card/index.ts: -------------------------------------------------------------------------------- 1 | export { Card } from './Card'; 2 | export { type CardProps, ContentStyle } from './types'; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/CodeEditorContextMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { CodeEditorContextMenu } from './CodeEditorContextMenu'; 2 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/unwrapRootFragment/index.ts: -------------------------------------------------------------------------------- 1 | export { unwrapRootFragment } from './unwrapRootFragment'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/hooks/useControlledValue/index.ts: -------------------------------------------------------------------------------- 1 | export { useControlledValue } from './useControlledValue'; 2 | -------------------------------------------------------------------------------- /packages/date-utils/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { mockTimeZone } from './mockTimeZone'; 2 | export * from './testValues'; 3 | -------------------------------------------------------------------------------- /packages/password-input/src/PasswordInputFeedback/index.ts: -------------------------------------------------------------------------------- 1 | export { PasswordInputFeedback } from './PasswordInputFeedback'; 2 | -------------------------------------------------------------------------------- /packages/resizable/src/useResizable/utils/calculateNewSize/index.ts: -------------------------------------------------------------------------------- 1 | export { calculateNewSize } from './calculateNewSize'; 2 | -------------------------------------------------------------------------------- /tools/test/config/babel.config.js: -------------------------------------------------------------------------------- 1 | const babel = require('@lg-tools/build/config/babel.config'); 2 | module.exports = babel; 3 | -------------------------------------------------------------------------------- /chat/message/src/Message/index.ts: -------------------------------------------------------------------------------- 1 | export { Message } from './Message'; 2 | export { type MessageProps } from './Message.types'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/box/src/index.ts: -------------------------------------------------------------------------------- 1 | export type { BoxProps, ExtendableBox } from './Box'; 2 | export { default } from './Box'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/chat-disclaimer/src/index.ts: -------------------------------------------------------------------------------- 1 | export { DisclaimerText, type DisclaimerTextProps } from './DisclaimerText'; 2 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/isChildWithProperty/index.ts: -------------------------------------------------------------------------------- 1 | export { isChildWithProperty } from './isChildWithProperty'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/CalendarButton/index.ts: -------------------------------------------------------------------------------- 1 | export { CalendarButton } from './CalendarButton'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/isEverySegmentValid/index.ts: -------------------------------------------------------------------------------- 1 | export { isEverySegmentValid } from './isEverySegmentValid'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/newDateFromSegments/index.ts: -------------------------------------------------------------------------------- 1 | export { newDateFromSegments } from './newDateFromSegments'; 2 | -------------------------------------------------------------------------------- /packages/feature-walls/src/ActivationSteps/constants.ts: -------------------------------------------------------------------------------- 1 | export const DEFAULT_COMPLETED_MESSAGE = "You've completed all steps!"; 2 | -------------------------------------------------------------------------------- /packages/feature-walls/src/InfoBlock/index.ts: -------------------------------------------------------------------------------- 1 | export { InfoBlock } from './InfoBlock'; 2 | export * from './InfoBlock.types'; 3 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/DarkModeContext/index.ts: -------------------------------------------------------------------------------- 1 | export { useDarkMode, useDarkModeContext } from './DarkModeContext'; 2 | -------------------------------------------------------------------------------- /packages/lib/src/getClosestFocusableElement/index.ts: -------------------------------------------------------------------------------- 1 | export { getClosestFocusableElement } from './getClosestFocusableElement'; 2 | -------------------------------------------------------------------------------- /packages/number-input/src/Input/index.tsx: -------------------------------------------------------------------------------- 1 | export { Input } from './Input'; 2 | export { type InputProps } from './Input.types'; 3 | -------------------------------------------------------------------------------- /packages/wizard/src/Wizard/index.ts: -------------------------------------------------------------------------------- 1 | export { Wizard } from './Wizard'; 2 | export { type WizardProps } from './Wizard.types'; 3 | -------------------------------------------------------------------------------- /tools/test-harnesses/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getQueries'; 2 | export { queryBySelector } from './queryBySelector'; 3 | -------------------------------------------------------------------------------- /.storybook/static/examples/DataLake.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/examples/DataLake.png -------------------------------------------------------------------------------- /chat/title-bar/src/TitleBar/index.ts: -------------------------------------------------------------------------------- 1 | export { TitleBar } from './TitleBar'; 2 | export { type TitleBarProps } from './TitleBar.types'; 3 | -------------------------------------------------------------------------------- /packages/code/src/Code/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Code } from './Code'; 2 | export { CopyButtonAppearance } from './Code.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/isEverySegmentFilled/index.ts: -------------------------------------------------------------------------------- 1 | export { isEverySegmentFilled } from './isEverySegmentFilled'; 2 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Header/index.ts: -------------------------------------------------------------------------------- 1 | export { Header } from './Header'; 2 | export { type HeaderProps } from './Header.types'; 3 | -------------------------------------------------------------------------------- /packages/resizable/src/useResizable/utils/getNextKeyboardSize/index.ts: -------------------------------------------------------------------------------- 1 | export { getNextKeyboardSize } from './getNextKeyboardSize'; 2 | -------------------------------------------------------------------------------- /packages/tabs/src/TabPanel/TabPanel.types.ts: -------------------------------------------------------------------------------- 1 | export interface TabPanelProps { 2 | disabled?: boolean; 3 | index?: number; 4 | } 5 | -------------------------------------------------------------------------------- /tools/storybook-addon/static/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/tools/storybook-addon/static/favicon.ico -------------------------------------------------------------------------------- /.storybook/static/leafygreen-ui-banner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/leafygreen-ui-banner.png -------------------------------------------------------------------------------- /charts/core/src/ChartGrid/ChartGrid.types.ts: -------------------------------------------------------------------------------- 1 | export interface ChartGridProps { 2 | vertical?: boolean; 3 | horizontal?: boolean; 4 | } 5 | -------------------------------------------------------------------------------- /charts/core/src/ChartGrid/index.ts: -------------------------------------------------------------------------------- 1 | export { ChartGrid } from './ChartGrid'; 2 | export type { ChartGridProps } from './ChartGrid.types'; 3 | -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatMain/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatMain } from './ChatMain'; 2 | export { type ChatMainProps } from './ChatMain.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/doSegmentsFormValidDate/index.ts: -------------------------------------------------------------------------------- 1 | export { doSegmentsFormValidDate } from './doSegmentsFormValidDate'; 2 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/getSegmentStateFromRefs/index.ts: -------------------------------------------------------------------------------- 1 | export { getSegmentStateFromRefs } from './getSegmentStateFromRefs'; 2 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Section/index.ts: -------------------------------------------------------------------------------- 1 | export { Section } from './Section'; 2 | export { type SectionProps } from './Section.types'; 3 | -------------------------------------------------------------------------------- /packages/lib/src/childQueries/hasStaticProperty/index.ts: -------------------------------------------------------------------------------- 1 | export { hasAnyStaticProperty, hasStaticProperty } from './hasStaticProperty'; 2 | -------------------------------------------------------------------------------- /packages/menu/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/modal/src/Footer/Footer.types.ts: -------------------------------------------------------------------------------- 1 | export interface FooterProps { 2 | children: React.ReactNode; 3 | className?: string; 4 | } 5 | -------------------------------------------------------------------------------- /packages/pipeline/src/TooltipText/TooltipText.types.ts: -------------------------------------------------------------------------------- 1 | export interface TooltipTextProps { 2 | hiddenStages: Array; 3 | } 4 | -------------------------------------------------------------------------------- /packages/radio-group/src/Radio/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Radio } from './Radio'; 2 | export type { RadioProps } from './Radio.types'; 3 | -------------------------------------------------------------------------------- /packages/stepper/src/StepIcon/index.ts: -------------------------------------------------------------------------------- 1 | export { StepIcon } from './StepIcon'; 2 | export { type StepIconProps } from './StepIcon.types'; 3 | -------------------------------------------------------------------------------- /packages/table/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/typography/src/Link/Link/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Link } from './Link'; 2 | export { type LinkProps } from './Link.types'; 3 | -------------------------------------------------------------------------------- /prettier.config.js: -------------------------------------------------------------------------------- 1 | const config = require('@lg-tools/lint/config/prettier.config.js'); 2 | 3 | module.exports = { 4 | ...config, 5 | }; 6 | -------------------------------------------------------------------------------- /tools/slackbot/src/release-bot/index.ts: -------------------------------------------------------------------------------- 1 | export { releaseBot } from './release-bot'; 2 | export { Channels } from './release-bot.types'; 3 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/CustomTooltip/SeriesListItemColorDot/index.ts: -------------------------------------------------------------------------------- 1 | export { SeriesListItemColorDot } from './SeriesListItemColorDot'; 2 | -------------------------------------------------------------------------------- /deprecated-packages/message-actions/src/constants.ts: -------------------------------------------------------------------------------- 1 | export const FEEDBACK_TEXTAREA_TEST_ID = 2 | 'lg-chat-message_actions-feedback_textarea'; 3 | -------------------------------------------------------------------------------- /packages/banner/src/Banner/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Banner'; 2 | export { bannerChildrenContainerClassName } from './Banner.styles'; 3 | -------------------------------------------------------------------------------- /packages/button/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getLgIds'; 2 | export * from './getTestUtils'; 3 | export * from './getTestUtils.types'; 4 | -------------------------------------------------------------------------------- /packages/compound-component/src/utils/hasStaticProperty/index.ts: -------------------------------------------------------------------------------- 1 | export { hasAnyStaticProperty, hasStaticProperty } from './hasStaticProperty'; 2 | -------------------------------------------------------------------------------- /packages/copyable/src/Copyable/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Copyable'; 2 | export { type CopyableProps, Size } from './Copyable.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenuHeader/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePickerMenuHeader } from './DatePickerMenuHeader'; 2 | -------------------------------------------------------------------------------- /packages/select/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/stepper/src/StepLabel/index.ts: -------------------------------------------------------------------------------- 1 | export { StepLabel } from './StepLabel'; 2 | export { type StepLabelProps } from './StepLabel.types'; 3 | -------------------------------------------------------------------------------- /packages/tokens/src/color/index.ts: -------------------------------------------------------------------------------- 1 | export { color } from './color'; 2 | export { InteractionState, Property, Variant } from './color.types'; 3 | -------------------------------------------------------------------------------- /packages/toolbar/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/typography/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/transformations/addJSXAttributes/index.ts: -------------------------------------------------------------------------------- 1 | export { addJSXAttributes, AddJSXAttributesType } from './addJSXAttributes'; 2 | -------------------------------------------------------------------------------- /charts/core/src/ChartHeader/index.ts: -------------------------------------------------------------------------------- 1 | export { ChartHeader } from './ChartHeader'; 2 | export type { ChartHeaderProps } from './ChartHeader.types'; 3 | -------------------------------------------------------------------------------- /chat/chat-window/src/ChatWindow/index.tsx: -------------------------------------------------------------------------------- 1 | export { ChatWindow } from './ChatWindow'; 2 | export { type ChatWindowProps } from './ChatWindow.types'; 3 | -------------------------------------------------------------------------------- /chat/lg-markdown/src/LGMarkdown/index.tsx: -------------------------------------------------------------------------------- 1 | export { LGMarkdown } from './LGMarkdown'; 2 | export type { LGMarkdownProps } from './LGMarkdown.types'; 3 | -------------------------------------------------------------------------------- /chat/message-rating/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | MessageRating, 3 | type MessageRatingProps, 4 | MessageRatingValue, 5 | } from './MessageRating'; 6 | -------------------------------------------------------------------------------- /packages/avatar/src/utils/getInitials/index.ts: -------------------------------------------------------------------------------- 1 | export { getInitials } from './getInitials'; 2 | export { supportedLatinRegex } from './latinRegex'; 3 | -------------------------------------------------------------------------------- /packages/banner/src/BannerDismissButton/index.ts: -------------------------------------------------------------------------------- 1 | import BannerDismissButton from './BannerDismissButton'; 2 | export default BannerDismissButton; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/context-drawer/src/ButtonCorner/index.ts: -------------------------------------------------------------------------------- 1 | export { ButtonCorner } from './ButtonCorner'; 2 | export { Side } from './ButtonCorner.types'; 3 | -------------------------------------------------------------------------------- /packages/section-nav/src/utils/getFlatLevelDataToNestedData/index.ts: -------------------------------------------------------------------------------- 1 | export { getFlatLevelDataToNestedData } from './getFlatLevelDataToNestedData'; 2 | -------------------------------------------------------------------------------- /packages/split-button/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/table/src/Table/index.ts: -------------------------------------------------------------------------------- 1 | import Table from './Table'; 2 | export { type TableProps } from './Table.types'; 3 | 4 | export default Table; 5 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/StepIcon/index.ts: -------------------------------------------------------------------------------- 1 | export { StepIcon } from './StepIcon'; 2 | export { stepIconClassName } from './StepIcon.styles'; 3 | -------------------------------------------------------------------------------- /tools/eslint-plugin/src/utils/RuleContext.d.ts: -------------------------------------------------------------------------------- 1 | export type RuleContext = Parameters< 2 | TModule['create'] 3 | >[0]; 4 | -------------------------------------------------------------------------------- /tools/link/src/utils/types.ts: -------------------------------------------------------------------------------- 1 | export interface PackageDetails { 2 | scopeName: string; 3 | packageName: string; 4 | scopePath: string; 5 | } 6 | -------------------------------------------------------------------------------- /tools/meta/src/getPackageManager/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | getPackageManager, 3 | type SupportedPackageManager, 4 | } from './getPackageManager'; 5 | -------------------------------------------------------------------------------- /tools/prompt-kit/src/settings/mergePromptsVSCode.types.ts: -------------------------------------------------------------------------------- 1 | export interface MergePromptsOptions { 2 | dry: boolean; 3 | verbose: boolean; 4 | } 5 | -------------------------------------------------------------------------------- /tools/test-harnesses/src/testUtils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | renderAsyncTest, 3 | type RenderAsyncTestReturnType, 4 | } from './renderAsyncTest'; 5 | -------------------------------------------------------------------------------- /.storybook/static/examples/Realm_Rebrand_Image.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/examples/Realm_Rebrand_Image.png -------------------------------------------------------------------------------- /.storybook/static/examples/marketing-fill-dark.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/examples/marketing-fill-dark.jpg -------------------------------------------------------------------------------- /charts/colors/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | colors, 3 | type DarkColor, 4 | darkColors, 5 | type LightColor, 6 | lightColors, 7 | } from './colors'; 8 | -------------------------------------------------------------------------------- /chat/message-feed/src/MessageFeed/index.tsx: -------------------------------------------------------------------------------- 1 | export { MessageFeed } from './MessageFeed'; 2 | export type { MessageFeedProps } from './MessageFeed.types'; 3 | -------------------------------------------------------------------------------- /chat/message/src/MessageActions/MessageActions.constants.ts: -------------------------------------------------------------------------------- 1 | export const FEEDBACK_TEXTAREA_TEST_ID = 2 | 'lg-chat-message-actions-feedback_textarea'; 3 | -------------------------------------------------------------------------------- /chat/message/src/MessageLinks/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageLinks } from './MessageLinks'; 2 | export { type MessageLinksProps } from './MessageLinks.types'; 3 | -------------------------------------------------------------------------------- /packages/code/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './Code.testutils'; 2 | export * from './getTestUtils'; 3 | export type * from './getTestUtils.types'; 4 | -------------------------------------------------------------------------------- /packages/confirmation-modal/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/context-drawer/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | export type * from './getTestUtils.types'; 3 | export * from './utils'; 4 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePicker } from './DatePicker'; 2 | export { type DatePickerProps } from './DatePicker.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/isEverySegmentValueExplicit/index.ts: -------------------------------------------------------------------------------- 1 | export { isEverySegmentValueExplicit } from './isEverySegmentValueExplicit'; 2 | -------------------------------------------------------------------------------- /packages/expandable-card/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | export type * from './getTestUtils.types'; 3 | export * from './utils'; 4 | -------------------------------------------------------------------------------- /packages/gallery-indicator/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | -------------------------------------------------------------------------------- /packages/icon/src/glyphs/Circle.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/info-sprinkle/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | Align, 3 | InfoSprinkle, 4 | type InfoSprinkleProps, 5 | Justify, 6 | } from './InfoSprinkle'; 7 | -------------------------------------------------------------------------------- /packages/number-input/src/UnitSelect/index.tsx: -------------------------------------------------------------------------------- 1 | export { UnitSelect } from './UnitSelect'; 2 | export { type UnitSelectProps } from './UnitSelect.types'; 3 | -------------------------------------------------------------------------------- /packages/ordered-list/src/OrderedListContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | OrderedListContext, 3 | useOrderedListContext, 4 | } from './OrderedListContext'; 5 | -------------------------------------------------------------------------------- /packages/preview-card/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | contentWrapperClassName, 3 | PreviewCard, 4 | type PreviewCardProps, 5 | } from './PreviewCard'; 6 | -------------------------------------------------------------------------------- /packages/preview-card/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export * from './getTestUtils'; 2 | export type * from './getTestUtils.types'; 3 | export * from './utils'; 4 | -------------------------------------------------------------------------------- /packages/section-nav/src/SectionNav/index.ts: -------------------------------------------------------------------------------- 1 | export { SectionNav } from './SectionNav'; 2 | export { type SectionNavProps } from './SectionNav.types'; 3 | -------------------------------------------------------------------------------- /packages/toolbar/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | export { type TestUtilsReturnType } from './getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /packages/wizard/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | export { type TestUtilsReturnType } from './getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /tools/build/scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | # lg-build can't use itself as a dependency in the build process 3 | rollup -c ./rollup.config.mjs 4 | exit 0 5 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getJSXAttributes, insertJSXComment } from './jsx'; 2 | export { transformTest } from './tests/transformTest'; 3 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/jsx/index.ts: -------------------------------------------------------------------------------- 1 | export { getJSXAttributes } from './getJSXAttributes'; 2 | export { insertJSXComment } from './insertJSXComment'; 3 | -------------------------------------------------------------------------------- /.storybook/static/examples/feature-walls-sample.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/examples/feature-walls-sample.png -------------------------------------------------------------------------------- /.storybook/static/examples/marketing-fill-light.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/.storybook/static/examples/marketing-fill-light.jpg -------------------------------------------------------------------------------- /charts/core/src/ThresholdLine/index.ts: -------------------------------------------------------------------------------- 1 | export { ThresholdLine } from './ThresholdLine'; 2 | export type { ThresholdLineProps } from './ThresholdLine.types'; 3 | -------------------------------------------------------------------------------- /packages/chip/src/DismissButton/index.ts: -------------------------------------------------------------------------------- 1 | export { DismissButton } from './DismissButton'; 2 | export { type DismissButtonProps } from './DismissButton.types'; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/SearchPanel/index.ts: -------------------------------------------------------------------------------- 1 | export { SearchPanel } from './SearchPanel'; 2 | export { type SearchPanelProps } from './SearchPanel.types'; 3 | -------------------------------------------------------------------------------- /packages/drawer/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | export type { GetTestUtilsReturnType } from './getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/UseCases/index.ts: -------------------------------------------------------------------------------- 1 | export { UseCases } from './UseCases'; 2 | export { type UseCase, type UseCasesProps } from './UseCases.types'; 3 | -------------------------------------------------------------------------------- /packages/number-input/src/NumberInput/index.tsx: -------------------------------------------------------------------------------- 1 | export { NumberInput } from './NumberInput'; 2 | export { type NumberInputProps } from './NumberInput.types'; 3 | -------------------------------------------------------------------------------- /packages/ordered-list/src/OrderedList/index.ts: -------------------------------------------------------------------------------- 1 | export { OrderedList } from './OrderedList'; 2 | export { type OrderedListProps } from './OrderedList.types'; 3 | -------------------------------------------------------------------------------- /packages/stepper/src/InternalStep/index.ts: -------------------------------------------------------------------------------- 1 | export { InternalStep } from './InternalStep'; 2 | export { type InternalStepProps } from './InternalStep.types'; 3 | -------------------------------------------------------------------------------- /packages/typography/src/Link/BackLink/index.ts: -------------------------------------------------------------------------------- 1 | export { default as BackLink } from './BackLink'; 2 | export { type BackLinkProps } from './BackLink.types'; 3 | -------------------------------------------------------------------------------- /packages/wizard/src/WizardFooter/index.ts: -------------------------------------------------------------------------------- 1 | export { WizardFooter } from './WizardFooter'; 2 | export { type WizardFooterProps } from './WizardFooter.types'; 3 | -------------------------------------------------------------------------------- /tools/create/src/templates/component/src/testing/getTestUtils.types.template.ts: -------------------------------------------------------------------------------- 1 | export const testingTypes = () => `export interface TestUtilsReturnType {}`; 2 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/index.ts: -------------------------------------------------------------------------------- 1 | export { ChartTooltip } from './ChartTooltip'; 2 | export type { ChartTooltipProps, SeriesInfo } from './ChartTooltip.types'; 3 | -------------------------------------------------------------------------------- /charts/legend/src/LegendCheckbox/index.ts: -------------------------------------------------------------------------------- 1 | export { LegendCheckbox } from './LegendCheckbox'; 2 | export { type LegendCheckboxProps } from './LegendCheckbox.types'; 3 | -------------------------------------------------------------------------------- /chat/chat-button/src/ChatButton/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatButton } from './ChatButton'; 2 | export { type ChatButtonProps, Size, Variant } from './ChatButton.types'; 3 | -------------------------------------------------------------------------------- /chat/message-prompts/src/MessagePromptsContext/MessagePromptsContext.types.ts: -------------------------------------------------------------------------------- 1 | export interface MessagePromptsContextProps { 2 | hasSelectedPrompt: boolean; 3 | } 4 | -------------------------------------------------------------------------------- /chat/message/src/MessageActions/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageActions } from './MessageActions'; 2 | export { type MessageActionsProps } from './MessageActions.types'; 3 | -------------------------------------------------------------------------------- /chat/rich-links/src/RichLinksArea/index.ts: -------------------------------------------------------------------------------- 1 | export { RichLinksArea } from './RichLinksArea'; 2 | export { type RichLinksAreaProps } from './RichLinksArea.types'; 3 | -------------------------------------------------------------------------------- /packages/button/src/styles.ts: -------------------------------------------------------------------------------- 1 | import { createUniqueClassName } from '@leafygreen-ui/lib'; 2 | 3 | export const ButtonClassName = createUniqueClassName('button'); 4 | -------------------------------------------------------------------------------- /packages/canvas-header/src/CanvasHeader/index.ts: -------------------------------------------------------------------------------- 1 | export { CanvasHeader } from './CanvasHeader'; 2 | export { type CanvasHeaderProps } from './CanvasHeader.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Templates/constants.ts: -------------------------------------------------------------------------------- 1 | const LGID_ROOT = 'lg-templates'; 2 | 3 | export const LGIDS_TEMPLATES = { 4 | root: LGID_ROOT, 5 | } as const; 6 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Templates/index.ts: -------------------------------------------------------------------------------- 1 | export { Templates } from './Templates'; 2 | export { type Template, type TemplatesProps } from './Templates.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/UseCases/constants.ts: -------------------------------------------------------------------------------- 1 | const LGID_ROOT = 'lg-use_cases'; 2 | 3 | export const LGIDS_USE_CASES = { 4 | root: LGID_ROOT, 5 | } as const; 6 | -------------------------------------------------------------------------------- /packages/form-field/src/constants.ts: -------------------------------------------------------------------------------- 1 | export const DEFAULT_MESSAGES = { 2 | error: 'This input needs your attention', 3 | success: 'Success', 4 | } as const; 5 | -------------------------------------------------------------------------------- /packages/lib/src/types/ValuesOf.types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Constructs a union type from the possible values of type `T` 3 | */ 4 | export type ValuesOf = T[keyof T]; 5 | -------------------------------------------------------------------------------- /packages/loading-indicator/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | export { type TestUtilsReturnType } from './getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /packages/modal/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { focusModalChildElement } from './focusModalChildElement'; 2 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 3 | -------------------------------------------------------------------------------- /packages/radio-group/src/RadioGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { default as RadioGroup } from './RadioGroup'; 2 | export type { RadioGroupProps } from './RadioGroup.types'; 3 | -------------------------------------------------------------------------------- /packages/resizable/src/useResizable/index.ts: -------------------------------------------------------------------------------- 1 | export { useResizable } from './useResizable'; 2 | export { Position, ResizableProps } from './useResizable.types'; 3 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResult/index.ts: -------------------------------------------------------------------------------- 1 | export { SearchResult } from './SearchResult'; 2 | export type { SearchResultProps } from './SearchResult.types'; 3 | -------------------------------------------------------------------------------- /packages/select/src/ListMenu/index.ts: -------------------------------------------------------------------------------- 1 | import ListMenu from './ListMenu'; 2 | 3 | export default ListMenu; 4 | export { popoverClassName } from './ListMenu.styles'; 5 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/CardSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { CardSkeleton } from './CardSkeleton'; 2 | export { type CardSkeletonProps } from './CardSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/CodeSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { CodeSkeleton } from './CodeSkeleton'; 2 | export { type CodeSkeletonProps } from './CodeSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/FormSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { FormSkeleton } from './FormSkeleton'; 2 | export { type FormSkeletonProps } from './FormSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/IconSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { IconSkeleton } from './IconSkeleton'; 2 | export { type IconSkeletonProps } from './IconSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/ListSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { ListSkeleton } from './ListSkeleton'; 2 | export { type ListSkeletonProps } from './ListSkeleton.types'; 3 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/PropCombinations/constants.ts: -------------------------------------------------------------------------------- 1 | export const PARAM_NAME = 'generate'; 2 | export const GENERATED_STORY_NAME = 'Generated'; 3 | -------------------------------------------------------------------------------- /tools/test/config/mocks/svgTransformer.js: -------------------------------------------------------------------------------- 1 | exports.process = svg => { 2 | return { 3 | code: `module.exports = ${JSON.stringify({ svg })};`, 4 | }; 5 | }; 6 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/CustomTooltip/SeriesList/index.ts: -------------------------------------------------------------------------------- 1 | export { SeriesList } from './SeriesList'; 2 | export type { SeriesListProps } from './SeriesList.types'; 3 | -------------------------------------------------------------------------------- /chat/input-bar/src/SuggestedPrompt/index.ts: -------------------------------------------------------------------------------- 1 | export { SuggestedPrompt } from './SuggestedPrompt'; 2 | export { type SuggestedPromptProps } from './SuggestedPrompt.types'; 3 | -------------------------------------------------------------------------------- /chat/message-prompts/src/MessagePrompt/index.ts: -------------------------------------------------------------------------------- 1 | export { MessagePrompt } from './MessagePrompt'; 2 | export { type MessagePromptProps } from './MessagePrompt.types'; 3 | -------------------------------------------------------------------------------- /chat/rich-links/src/RichLink/RichLinkBadge/index.ts: -------------------------------------------------------------------------------- 1 | export { RichLinkBadge } from './RichLinkBadge'; 2 | export { type RichLinkBadgeProps } from './RichLinkBadge.types'; 3 | -------------------------------------------------------------------------------- /packages/code/src/CopyButton/constants.ts: -------------------------------------------------------------------------------- 1 | export const COPIED_SUCCESS_DURATION = 1500; 2 | export const COPIED_TEXT = 'Copied!'; 3 | export const COPY_TEXT = 'Copy'; 4 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/MenuWrapper/index.ts: -------------------------------------------------------------------------------- 1 | export { MenuWrapper } from './MenuWrapper'; 2 | export { type MenuWrapperProps } from './MenuWrapper'; 3 | -------------------------------------------------------------------------------- /packages/emotion/scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/script.tsconfig.json", 3 | "compilerOptions": { 4 | "baseUrl": ".", 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /packages/expandable-card/src/ExpandableCard/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './ExpandableCard'; 2 | export type { ExpandableCardProps } from './ExpandableCard.types'; 3 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/PopoverContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | PopoverContext, 3 | PopoverProvider, 4 | usePopoverContext, 5 | } from './PopoverContext'; 6 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/UsingKeyboardContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | useUsingKeyboardContext, 3 | UsingKeyboardProvider, 4 | } from './UsingKeyboardContext'; 5 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchInput/index.ts: -------------------------------------------------------------------------------- 1 | export { SearchInput } from './SearchInput'; 2 | export { type SearchInputProps, Size, State } from './SearchInput.types'; 3 | -------------------------------------------------------------------------------- /packages/section-nav/src/SectionNavItem/index.ts: -------------------------------------------------------------------------------- 1 | export { SectionNavItem } from './SectionNavItem'; 2 | export { SectionNavItemProps } from './SectionNavItem.types'; 3 | -------------------------------------------------------------------------------- /packages/select/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './utils/getTestUtils'; 2 | export type { GetTestUtilsReturnType } from './utils/getTestUtils.types'; 3 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { default as SideNavGroup } from './SideNavGroup'; 2 | export { type SideNavGroupProps } from './SideNavGroup.types'; 3 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/TableSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { TableSkeleton } from './TableSkeleton'; 2 | export { type TableSkeletonProps } from './TableSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/table/src/TableHead/index.ts: -------------------------------------------------------------------------------- 1 | import TableHead from './TableHead'; 2 | export { type TableHeadProps } from './TableHead.types'; 3 | export default TableHead; 4 | -------------------------------------------------------------------------------- /packages/text-input/src/TextInput/TextInput.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const textInputStyle = css` 4 | width: 100%; 5 | `; 6 | -------------------------------------------------------------------------------- /packages/wizard/src/WizardFooter/WizardFooter.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const baseStyles = css` 4 | width: 100%; 5 | `; 6 | -------------------------------------------------------------------------------- /tools/eslint-plugin/src/utils/createRule.ts: -------------------------------------------------------------------------------- 1 | import { ESLintUtils } from '../utils/typescript-eslint'; 2 | 3 | export const createRule = ESLintUtils.RuleCreator(n => n); 4 | -------------------------------------------------------------------------------- /chat/input-bar/src/SuggestedPrompts/index.ts: -------------------------------------------------------------------------------- 1 | export { SuggestedPrompts } from './SuggestedPrompts'; 2 | export { type SuggestedPromptsProps } from './SuggestedPrompts.types'; 3 | -------------------------------------------------------------------------------- /chat/message-prompts/src/MessagePrompts/index.ts: -------------------------------------------------------------------------------- 1 | export { MessagePrompts } from './MessagePrompts'; 2 | export { type MessagePromptsProps } from './MessagePrompts.types'; 3 | -------------------------------------------------------------------------------- /chat/message/src/MessagePromotion/index.ts: -------------------------------------------------------------------------------- 1 | export { MessagePromotion } from './MessagePromotion'; 2 | export { type MessagePromotionProps } from './MessagePromotion.types'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/fixed-chat-window/src/ChatTrigger/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatTrigger } from './ChatTrigger'; 2 | export { type ChatTriggerProps } from './ChatTrigger.types'; 3 | -------------------------------------------------------------------------------- /packages/avatar/src/AssistantAvatar/index.ts: -------------------------------------------------------------------------------- 1 | export { AssistantAvatar } from './AssistantAvatar'; 2 | export type { AssistantAvatarProps } from './AssistantAvatar.types'; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/ContextMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { ContextMenu } from './ContextMenu'; 2 | export type { ContextMenuItem, ContextMenuProps } from './ContextMenu.types'; 3 | -------------------------------------------------------------------------------- /packages/context-drawer/src/constants.ts: -------------------------------------------------------------------------------- 1 | import { transitionDuration } from '@leafygreen-ui/tokens'; 2 | 3 | export const TRANSITION_DURATION = transitionDuration.slower; 4 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/hooks/useSegmentRefs/index.ts: -------------------------------------------------------------------------------- 1 | export { type SegmentRefs } from './segmentRefs.types'; 2 | export { useSegmentRefs } from './useSegmentRefs'; 3 | -------------------------------------------------------------------------------- /packages/date-utils/src/isValidDate/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | isDateObject, 3 | isInvalidDateObject, 4 | isValidDate, 5 | isValidDateString, 6 | } from './isValidDate'; 7 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/index.ts: -------------------------------------------------------------------------------- 1 | export { LayoutComponent } from './LayoutComponent'; 2 | export { type LayoutComponentProps } from './LayoutComponent.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/ExpandableGrid/index.ts: -------------------------------------------------------------------------------- 1 | export { ExpandableGrid } from './ExpandableGrid'; 2 | export { type ExpandableGridProps } from './ExpandableGrid.types'; 3 | -------------------------------------------------------------------------------- /packages/lib/src/types/Mutable.types.ts: -------------------------------------------------------------------------------- 1 | /** Redefine a Readonly type as mutable */ 2 | export type Mutable = { 3 | -readonly [Key in keyof Type]: Type[Key]; 4 | }; 5 | -------------------------------------------------------------------------------- /packages/stepper/src/StepLabel/StepLabel.types.ts: -------------------------------------------------------------------------------- 1 | import { InternalStepProps } from '../InternalStep'; 2 | 3 | export type StepLabelProps = Pick; 4 | -------------------------------------------------------------------------------- /packages/table/src/Row/HeaderRow/index.ts: -------------------------------------------------------------------------------- 1 | import HeaderRow from './HeaderRow'; 2 | export { type HeaderRowProps } from './HeaderRow.types'; 3 | 4 | export default HeaderRow; 5 | -------------------------------------------------------------------------------- /packages/table/src/TableBody/TableBody.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export interface TableBodyProps 4 | extends React.ComponentPropsWithoutRef<'tbody'> {} 5 | -------------------------------------------------------------------------------- /packages/table/src/TableBody/index.ts: -------------------------------------------------------------------------------- 1 | import TableBody from './TableBody'; 2 | export { type TableBodyProps } from './TableBody.types'; 3 | 4 | export default TableBody; 5 | -------------------------------------------------------------------------------- /packages/table/src/TableContext/index.ts: -------------------------------------------------------------------------------- 1 | import TableContextProvider, { useTableContext } from './TableContext'; 2 | 3 | export { TableContextProvider, useTableContext }; 4 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/transformations/removeJSXAttributes/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | removeJSXAttributes, 3 | RemoveJSXAttributesType, 4 | } from './removeJSXAttributes'; 5 | -------------------------------------------------------------------------------- /tools/test-harnesses/README.md: -------------------------------------------------------------------------------- 1 | # `@lg-tools/test-harnesses` 2 | 3 | This package provides several fundamental queries that will be utilized by every test harness we ship. 4 | -------------------------------------------------------------------------------- /tools/test/config/common.setup.js: -------------------------------------------------------------------------------- 1 | require('@testing-library/jest-dom'); 2 | 3 | const { toHaveNoViolations } = require('jest-axe'); 4 | expect.extend(toHaveNoViolations); 5 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/EventMarkerLine/index.ts: -------------------------------------------------------------------------------- 1 | export { EventMarkerLine } from './EventMarkerLine'; 2 | export { type EventMarkerLineProps } from './EventMarkerLine.types'; 3 | -------------------------------------------------------------------------------- /chat/input-bar/src/DisclaimerText/DisclaimerText.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const linkStyles = css` 4 | font-size: inherit; 5 | `; 6 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBar/index.ts: -------------------------------------------------------------------------------- 1 | export { InputBar } from './InputBar'; 2 | export { 3 | type InputBarProps, 4 | type TextareaAutosizeProps, 5 | } from './InputBar.types'; 6 | -------------------------------------------------------------------------------- /packages/code-editor/src/Panel/index.ts: -------------------------------------------------------------------------------- 1 | export { Panel } from './Panel'; 2 | export { PANEL_HEIGHT } from './Panel.styles'; 3 | export { type PanelProps } from './Panel.types'; 4 | -------------------------------------------------------------------------------- /packages/code/src/Code/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getHorizontalScrollbarHeight } from './getHorizontalScrollbarHeight'; 2 | export { hasMultipleLines } from './hasMultipleLines'; 3 | -------------------------------------------------------------------------------- /packages/drawer/src/DrawerToolbarLayout/DrawerToolbarContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DrawerToolbarProvider, 3 | useDrawerToolbarContext, 4 | } from './DrawerToolbarContext'; 5 | -------------------------------------------------------------------------------- /packages/empty-state/src/BasicEmptyState/index.tsx: -------------------------------------------------------------------------------- 1 | export { BasicEmptyState } from './BasicEmptyState'; 2 | export { type BasicEmptyStateProps } from './BasicEmptyState.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Accordion/AccordionItem/index.ts: -------------------------------------------------------------------------------- 1 | export { AccordionItem } from './AccordionItem'; 2 | export { type AccordionItemProps } from './AccordionItem.types'; 3 | -------------------------------------------------------------------------------- /packages/guide-cue/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | BeaconAlign, 3 | default as GuideCue, 4 | type GuideCueProps, 5 | TooltipAlign, 6 | TooltipJustify, 7 | } from './GuideCue'; 8 | -------------------------------------------------------------------------------- /packages/info-sprinkle/src/InfoSprinkle/index.ts: -------------------------------------------------------------------------------- 1 | export { InfoSprinkle } from './InfoSprinkle'; 2 | export { Align, type InfoSprinkleProps, Justify } from './InfoSprinkle.types'; 3 | -------------------------------------------------------------------------------- /packages/inline-definition/src/InlineDefinition/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './InlineDefinition'; 2 | export { type InlineDefinitionProps } from './InlineDefinition.types'; 3 | -------------------------------------------------------------------------------- /packages/ordered-list/src/OrderedListItem/index.ts: -------------------------------------------------------------------------------- 1 | export { OrderedListItem } from './OrderedListItem'; 2 | export { type OrderedListItemProps } from './OrderedListItem.types'; 3 | -------------------------------------------------------------------------------- /packages/pagination/src/Pagination/index.tsx: -------------------------------------------------------------------------------- 1 | import Pagination from './Pagination'; 2 | export { type PaginationProps } from './Pagination.types'; 3 | export default Pagination; 4 | -------------------------------------------------------------------------------- /packages/progress-bar/src/ProgressBar/constants/index.ts: -------------------------------------------------------------------------------- 1 | export * from './animations.constants'; 2 | export * from './defaults.constants'; 3 | export * from './styles.constants'; 4 | -------------------------------------------------------------------------------- /packages/select/src/Option/Options.styles.ts: -------------------------------------------------------------------------------- 1 | import { createUniqueClassName } from '@leafygreen-ui/lib'; 2 | 3 | export const OptionClassName = createUniqueClassName('option'); 4 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/CardSkeleton/CardSkeleton.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const rootStyles = css` 4 | width: 100%; 5 | `; 6 | -------------------------------------------------------------------------------- /packages/table/src/Row/HeaderRow/HeaderRow.types.ts: -------------------------------------------------------------------------------- 1 | import { ComponentPropsWithRef } from 'react'; 2 | 3 | export interface HeaderRowProps extends ComponentPropsWithRef<'tr'> {} 4 | -------------------------------------------------------------------------------- /packages/toast/src/ControlledToast/index.ts: -------------------------------------------------------------------------------- 1 | export { ControlledToast as Toast } from './ControlledToast'; 2 | export type { ControlledToastProps } from './ControlledToast.types'; 3 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/VerticalStepper/index.ts: -------------------------------------------------------------------------------- 1 | export { VerticalStepper } from './VerticalStepper'; 2 | export { VerticalStepperProps } from './VerticalStepper.types'; 3 | -------------------------------------------------------------------------------- /packages/wizard/src/WizardContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | useWizardContext, 3 | WizardContext, 4 | type WizardContextData, 5 | WizardProvider, 6 | } from './WizardContext'; 7 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/transformations/replaceJSXAttributes/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | replaceJSXAttributes, 3 | ReplaceJSXAttributesType, 4 | } from './replaceJSXAttributes'; 5 | -------------------------------------------------------------------------------- /tools/eslint-plugin/src/tests/utils/ruleTester.testutils.ts: -------------------------------------------------------------------------------- 1 | import { RuleTester } from '@typescript-eslint/rule-tester'; 2 | 3 | export const ruleTester = new RuleTester({}); 4 | -------------------------------------------------------------------------------- /charts/chart-card/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | ChartCard, 3 | type ChartCardProps, 4 | ChartCardProvider, 5 | ChartCardStates, 6 | useChartCardContext, 7 | } from './ChartCard'; 8 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/EventMarkerPoint/index.ts: -------------------------------------------------------------------------------- 1 | export { EventMarkerPoint } from './EventMarkerPoint'; 2 | export { type EventMarkerPointProps } from './EventMarkerPoint.types'; 3 | -------------------------------------------------------------------------------- /charts/core/src/Series/index.ts: -------------------------------------------------------------------------------- 1 | export { Bar, BarHoverBehavior, type BarProps } from './Bar'; 2 | export { Line, type LineProps } from './Line'; 3 | export { Series } from './Series'; 4 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBarStopButton/index.ts: -------------------------------------------------------------------------------- 1 | export { InputBarStopButton } from './InputBarStopButton'; 2 | export type { InputBarStopButtonProps } from './InputBarStopButton.types'; 3 | -------------------------------------------------------------------------------- /packages/compound-component/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | # @leafygreen-ui/compound-component 2 | 3 | ## 0.1.0 4 | 5 | ### Minor Changes 6 | 7 | - a565b3f: Initial release of `CompoundComponent` 8 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePickerMenu } from './DatePickerMenu'; 2 | export { type DatePickerMenuProps } from './DatePickerMenu.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Accordion/AccordionPanel/index.ts: -------------------------------------------------------------------------------- 1 | export { AccordionPanel } from './AccordionPanel'; 2 | export { type AccordionPanelProps } from './AccordionPanel.types'; 3 | -------------------------------------------------------------------------------- /packages/form-field/src/FormFieldFeedback/index.ts: -------------------------------------------------------------------------------- 1 | export { FormFieldFeedback } from './FormFieldFeedback'; 2 | export { type FormFieldFeedbackProps } from './FormFieldFeedback.types'; 3 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/LeafyGreenContext/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './LeafyGreenContext'; 2 | export { type LeafyGreenProviderProps } from './LeafyGreenContext.types'; 3 | -------------------------------------------------------------------------------- /packages/loading-indicator/src/PageLoader/index.ts: -------------------------------------------------------------------------------- 1 | import PageLoader from './PageLoader'; 2 | export { type PageLoaderProps } from './PageLoader.types'; 3 | export default PageLoader; 4 | -------------------------------------------------------------------------------- /packages/pipeline/src/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Pipeline } from './Pipeline/Pipeline'; 2 | export { Stage } from './Stage'; 3 | export { type PipelineProps, Size } from './types'; 4 | -------------------------------------------------------------------------------- /packages/radio-box-group/src/RadioBoxGroup/RadioBoxGroup.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const baseGroupStyle = css` 4 | display: flex; 5 | `; 6 | -------------------------------------------------------------------------------- /packages/select/src/MenuButton/index.ts: -------------------------------------------------------------------------------- 1 | import MenuButton from './MenuButton'; 2 | 3 | export default MenuButton; 4 | export { menuButtonTextClassName } from './MenuButton.styles'; 5 | -------------------------------------------------------------------------------- /packages/table/src/Cell/HeaderCell/index.ts: -------------------------------------------------------------------------------- 1 | import HeaderCell from './HeaderCell'; 2 | export { type HeaderCellProps } from './HeaderCell.types'; 3 | 4 | export default HeaderCell; 5 | -------------------------------------------------------------------------------- /packages/table/src/utils/types.ts: -------------------------------------------------------------------------------- 1 | // Used in Storybook files to simulate a sample data shape type provided by the user. 2 | export interface AnyDict { 3 | [key: string]: any; 4 | } 5 | -------------------------------------------------------------------------------- /packages/text-area/src/TextArea/index.ts: -------------------------------------------------------------------------------- 1 | export { TextArea } from './TextArea'; 2 | export { type TextAreaProps } from './TextArea.types'; 3 | export { State } from './TextArea.types'; 4 | -------------------------------------------------------------------------------- /packages/toolbar/src/ToolbarIconButton/index.ts: -------------------------------------------------------------------------------- 1 | export { ToolbarIconButton } from './ToolbarIconButton'; 2 | export { type ToolbarIconButtonProps } from './ToolbarIconButton.types'; 3 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/CustomTooltip/SeriesListItem/index.ts: -------------------------------------------------------------------------------- 1 | export { SeriesListItem } from './SeriesListItem'; 2 | export type { SeriesListItemProps } from './SeriesListItem.types'; 3 | -------------------------------------------------------------------------------- /chat/message-feedback/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | FormState, 3 | InlineMessageFeedback, 4 | type InlineMessageFeedbackProps, 5 | SubmittedState, 6 | } from './InlineMessageFeedback'; 7 | -------------------------------------------------------------------------------- /chat/message-prompts/src/index.ts: -------------------------------------------------------------------------------- 1 | export { MessagePrompt, type MessagePromptProps } from './MessagePrompt'; 2 | export { MessagePrompts, type MessagePromptsProps } from './MessagePrompts'; 3 | -------------------------------------------------------------------------------- /chat/suggestions/src/SuggestedActions/index.ts: -------------------------------------------------------------------------------- 1 | export { default as SuggestedActions } from './SuggestedActions'; 2 | export { type SuggestedActionsProps } from './SuggestedActions.types'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/chat-disclaimer/src/DisclaimerText/index.ts: -------------------------------------------------------------------------------- 1 | export { DisclaimerText } from './DisclaimerText'; 2 | export { type DisclaimerTextProps } from './DisclaimerText.types'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/message-actions/src/MessageActions/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageActions } from './MessageActions'; 2 | export { type MessageActionsProps } from './MessageActions.types'; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/CodeEditorTooltip/index.ts: -------------------------------------------------------------------------------- 1 | export { CodeEditorTooltip } from './CodeEditorTooltip'; 2 | export { type CodeEditorTooltipProps } from './CodeEditorTooltip.types'; 3 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { ComboboxGroup, InternalComboboxGroup } from './ComboboxGroup'; 2 | export { type ComboboxGroupProps } from './ComboboxGroup.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerInput/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePickerInput } from './DatePickerInput'; 2 | export { type DatePickerInputProps } from './DatePickerInput.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/Calendar/CalendarGrid/index.ts: -------------------------------------------------------------------------------- 1 | export { CalendarGrid } from './CalendarGrid'; 2 | export { type CalendarGridProps } from './CalendarGrid.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/CalendarButton/CalendarButton.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const iconButtonStyles = css``; 4 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/TypographyContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | TypographyProvider, 3 | type TypographyProviderProps, 4 | useBaseFontSize, 5 | } from './TypographyContext'; 6 | -------------------------------------------------------------------------------- /packages/modal/src/Modal/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Modal'; 2 | export { type ModalProps, ModalSize } from './Modal.types'; 3 | export { default as ModalView } from './ModalView'; 4 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResultGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { SearchResultGroup } from './SearchResultGroup'; 2 | export type { SearchResultGroupProps } from './SearchResultGroup.types'; 3 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResultsMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { SearchResultsMenu } from './SearchResultsMenu'; 2 | export { type SearchResultsMenuProps } from './SearchResultsMenu.types'; 3 | -------------------------------------------------------------------------------- /packages/section-nav/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getLgIds } from './getLgIds'; 2 | export { 3 | type TransformDataType, 4 | transformToNestedData, 5 | } from './transformToNestedData'; 6 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/ParagraphSkeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { ParagraphSkeleton } from './ParagraphSkeleton'; 2 | export { type ParagraphSkeletonProps } from './ParagraphSkeleton.types'; 3 | -------------------------------------------------------------------------------- /packages/table/src/useLeafyGreenTable/index.ts: -------------------------------------------------------------------------------- 1 | import useLeafyGreenTable from './useLeafyGreenTable'; 2 | export * from './useLeafyGreenTable.types'; 3 | export default useLeafyGreenTable; 4 | -------------------------------------------------------------------------------- /packages/toolbar/src/Toolbar/index.ts: -------------------------------------------------------------------------------- 1 | export { Toolbar } from './Toolbar'; 2 | export { toolbarClassName } from './Toolbar.styles'; 3 | export { type ToolbarProps } from './Toolbar.types'; 4 | -------------------------------------------------------------------------------- /charts/core/src/ChartContext/ChartContext.types.ts: -------------------------------------------------------------------------------- 1 | import { ChartInstance } from '../Chart/hooks/useChart.types'; 2 | 3 | export interface ChartContextType { 4 | chart: ChartInstance; 5 | } 6 | -------------------------------------------------------------------------------- /deprecated-packages/fixed-chat-window/src/FixedChatWindow/index.ts: -------------------------------------------------------------------------------- 1 | export { FixedChatWindow } from './FixedChatWindow'; 2 | export { type FixedChatWindowProps } from './FixedChatWindow.types'; 3 | -------------------------------------------------------------------------------- /packages/checkbox/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DEFAULT_LGID_ROOT, 3 | getLgIds, 4 | type GetLgIdsReturnType, 5 | } from './getLgIds'; 6 | export { getTestUtils } from './getTestUtils'; 7 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/DateFormField/index.ts: -------------------------------------------------------------------------------- 1 | export { DateFormField } from './DateFormField'; 2 | export { type DateFormFieldProps } from './DateFormField.types'; 3 | -------------------------------------------------------------------------------- /packages/empty-state/src/FeaturesEmptyState/index.tsx: -------------------------------------------------------------------------------- 1 | export { FeaturesEmptyState } from './FeaturesEmptyState'; 2 | export { type FeaturesEmptyStateProps } from './FeaturesEmptyState.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Section/constants.ts: -------------------------------------------------------------------------------- 1 | const LGID_ROOT = 'lg-section'; 2 | 3 | export const LGIDS_SECTION = { 4 | root: LGID_ROOT, 5 | card: `${LGID_ROOT}-card`, 6 | } as const; 7 | -------------------------------------------------------------------------------- /packages/segmented-control/src/SegmentedControl/index.ts: -------------------------------------------------------------------------------- 1 | export { SegmentedControl } from './SegmentedControl'; 2 | export { type SegmentedControlProps, Size } from './SegmentedControl.types'; 3 | -------------------------------------------------------------------------------- /packages/stepper/src/Stepper/index.ts: -------------------------------------------------------------------------------- 1 | export { type StepState, StepStates } from '../types'; 2 | export { Stepper } from './Stepper'; 3 | export { type StepperProps } from './Stepper.types'; 4 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContainer/NotificationBar/index.ts: -------------------------------------------------------------------------------- 1 | export { NotificationBar } from './NotificationBar'; 2 | export { notificationBarTransitionStyles } from './NotificationBar.styles'; 3 | -------------------------------------------------------------------------------- /packages/tokens/src/breakpoints.ts: -------------------------------------------------------------------------------- 1 | const breakpoints = { 2 | Mobile: 320, 3 | Tablet: 768, 4 | Desktop: 1024, 5 | XLDesktop: 1440, 6 | } as const; 7 | 8 | export default breakpoints; 9 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/index.ts: -------------------------------------------------------------------------------- 1 | export { VerticalStep, type VerticalStepProps } from './VerticalStep'; 2 | export { VerticalStepper, type VerticalStepperProps } from './VerticalStepper'; 3 | -------------------------------------------------------------------------------- /tools/eslint-plugin/src/utils/typescript-eslint.ts: -------------------------------------------------------------------------------- 1 | // Re-exporting these to ensure they're imported consistently by rules 2 | export { ESLintUtils, TSESLint } from '@typescript-eslint/utils'; 3 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBarSendButton/InputBarSendButton.types.ts: -------------------------------------------------------------------------------- 1 | export interface InputBarSendButtonProps { 2 | /** 3 | * Whether the button is disabled 4 | */ 5 | disabled: boolean; 6 | } 7 | -------------------------------------------------------------------------------- /chat/message-feed/src/ScrollToLatestButton/index.ts: -------------------------------------------------------------------------------- 1 | export { ScrollToLatestButton } from './ScrollToLatestButton'; 2 | export { type ScrollToLatestButtonProps } from './ScrollToLatestButton.types'; 3 | -------------------------------------------------------------------------------- /chat/message/src/MessageContent/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageContent } from './MessageContent'; 2 | export { 3 | type MessageContentProps, 4 | MessageSourceType, 5 | } from './MessageContent.types'; 6 | -------------------------------------------------------------------------------- /packages/checkbox/src/Checkbox/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Checkbox'; 2 | export { checkWrapperClassName } from './Checkbox.style'; 3 | export { type CheckboxProps } from './Checkbox.types'; 4 | -------------------------------------------------------------------------------- /packages/context-drawer/src/ButtonCorner/ButtonCorner.types.ts: -------------------------------------------------------------------------------- 1 | export const Side = { 2 | Left: 'left', 3 | Right: 'right', 4 | } as const; 5 | export type Side = (typeof Side)[keyof typeof Side]; 6 | -------------------------------------------------------------------------------- /packages/context-drawer/src/ContextDrawerButton/index.ts: -------------------------------------------------------------------------------- 1 | export { ContextDrawerButton } from './ContextDrawerButton'; 2 | export { type ContextDrawerButtonProps } from './ContextDrawerButton.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerContent/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePickerContent } from './DatePickerContent'; 2 | export { type DatePickerContentProps } from './DatePickerContent.types'; 3 | -------------------------------------------------------------------------------- /packages/date-utils/src/newUTC/newUTC.ts: -------------------------------------------------------------------------------- 1 | /** Creates a new UTC date */ 2 | export const newUTC = (...args: Parameters): Date => { 3 | return new Date(Date.UTC(...args)); 4 | }; 5 | -------------------------------------------------------------------------------- /packages/drawer/src/Drawer/index.ts: -------------------------------------------------------------------------------- 1 | export { Drawer } from './Drawer'; 2 | export { drawerClassName } from './Drawer.styles'; 3 | export { DisplayMode, type DrawerProps, Size } from './Drawer.types'; 4 | -------------------------------------------------------------------------------- /packages/gallery-indicator/src/GalleryIndicator/index.ts: -------------------------------------------------------------------------------- 1 | export { GalleryIndicator } from './GalleryIndicator'; 2 | export { type GalleryIndicatorProps, Variant } from './GalleryIndicator.types'; 3 | -------------------------------------------------------------------------------- /chat/message-rating/src/MessageRating/index.ts: -------------------------------------------------------------------------------- 1 | export { MessageRating } from './MessageRating'; 2 | export { 3 | type MessageRatingProps, 4 | MessageRatingValue, 5 | } from './MessageRating.types'; 6 | -------------------------------------------------------------------------------- /chat/message/src/MessageBanner/MessageVerifiedBanner.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const textStyles = css` 4 | display: inline; 5 | color: inherit; 6 | `; 7 | -------------------------------------------------------------------------------- /deprecated-packages/fixed-chat-window/src/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatTrigger, type ChatTriggerProps } from './ChatTrigger'; 2 | export { FixedChatWindow, type FixedChatWindowProps } from './FixedChatWindow'; 3 | -------------------------------------------------------------------------------- /deprecated-packages/message-actions/src/index.ts: -------------------------------------------------------------------------------- 1 | /* @deprecated - use `Message.Actions` from @lg-chat/message instead */ 2 | export { MessageActions, type MessageActionsProps } from './MessageActions'; 3 | -------------------------------------------------------------------------------- /packages/code-editor/src/CodeEditorCopyButton/index.ts: -------------------------------------------------------------------------------- 1 | export { CodeEditorCopyButton } from './CodeEditorCopyButton'; 2 | export type { CodeEditorCopyButtonProps } from './CodeEditorCopyButton.types'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/DateInputSegment/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getNewSegmentValueFromInputValue } from './getNewSegmentValueFromInputValue/getNewSegmentValueFromInputValue'; 2 | -------------------------------------------------------------------------------- /packages/menu/src/Menu/index.ts: -------------------------------------------------------------------------------- 1 | export { default as Menu } from './Menu'; 2 | export { 3 | Align, 4 | Justify, 5 | type MenuProps, 6 | MenuVariant, 7 | RenderMode, 8 | } from './Menu.types'; 9 | -------------------------------------------------------------------------------- /packages/menu/src/MenuItem/index.ts: -------------------------------------------------------------------------------- 1 | export { MenuItem } from './MenuItem'; 2 | export { menuItemClassName } from './MenuItem.styles'; 3 | export { type MenuItemProps, Variant } from './MenuItem.types'; 4 | -------------------------------------------------------------------------------- /packages/section-nav/src/utils/transformToNestedData/index.ts: -------------------------------------------------------------------------------- 1 | export { transformToNestedData } from './transformToNestedData'; 2 | export type { TransformDataType } from './transformToNestedData.types'; 3 | -------------------------------------------------------------------------------- /packages/table/src/useLeafyGreenVirtualTable/ReactVirtual.types.ts: -------------------------------------------------------------------------------- 1 | import { useVirtualizer } from '@tanstack/react-virtual'; 2 | 3 | export type VirtualizerValues = ReturnType; 4 | -------------------------------------------------------------------------------- /packages/testing-lib/src/ReactTestingLibrary/utils/isReact17.ts: -------------------------------------------------------------------------------- 1 | import { getReactVersion } from './getReactVersion'; 2 | 3 | export const isReact17 = () => { 4 | return getReactVersion() === 17; 5 | }; 6 | -------------------------------------------------------------------------------- /packages/tokens/src/shadows/index.ts: -------------------------------------------------------------------------------- 1 | export { addOverflowShadow, Side } from './addOverflowShadow'; 2 | export type { ShadowKey } from './shadows'; 3 | export { boxShadows, shadows } from './shadows'; 4 | -------------------------------------------------------------------------------- /packages/tokens/src/transitions.ts: -------------------------------------------------------------------------------- 1 | const transitionDuration = { 2 | faster: 100, 3 | default: 150, 4 | slower: 300, 5 | slowest: 500, 6 | } as const; 7 | 8 | export default transitionDuration; 9 | -------------------------------------------------------------------------------- /tools/codemods/src/constants.ts: -------------------------------------------------------------------------------- 1 | export const MIGRATOR_ERROR = { 2 | manualAdd: 'Please manually add', 3 | manualRemove: 'Please manually remove', 4 | manualUpdate: 'Please manually update', 5 | }; 6 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/transformations/consolidateJSXAttributes/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | consolidateJSXAttributes, 3 | type ConsolidateJSXAttributesOptions, 4 | } from './consolidateJSXAttributes'; 5 | -------------------------------------------------------------------------------- /tools/create/src/templates/component/src/Component/component.styles.template.ts: -------------------------------------------------------------------------------- 1 | export const styles = ` 2 | import { css } from '@leafygreen-ui/emotion'; 3 | 4 | export const baseStyles = css\`\`; 5 | `; 6 | -------------------------------------------------------------------------------- /packages/code-editor/src/CodeEditorCopyButtonTrigger/index.ts: -------------------------------------------------------------------------------- 1 | export type { CopyButtonTriggerProps } from './CodeEditorCopyButtonTrigger'; 2 | export { CopyButtonTrigger } from './CodeEditorCopyButtonTrigger'; 3 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxChip/ComboboxChip.types.ts: -------------------------------------------------------------------------------- 1 | export interface ComboboxChipProps { 2 | displayName: string; 3 | isFocused: boolean; 4 | onRemove: () => void; 5 | onFocus: () => void; 6 | } 7 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCDate/setUTCDate.ts: -------------------------------------------------------------------------------- 1 | export const setUTCDate = (date: Date, update: number) => { 2 | const newDate = new Date(date); 3 | newDate.setUTCDate(update); 4 | return newDate; 5 | }; 6 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/OverlayDrawerLayout/index.ts: -------------------------------------------------------------------------------- 1 | export { OverlayDrawerLayout } from './OverlayDrawerLayout'; 2 | export { type OverlayDrawerLayoutProps } from './OverlayDrawerLayout.types'; 3 | -------------------------------------------------------------------------------- /packages/feature-walls/src/FeatureOverview/index.ts: -------------------------------------------------------------------------------- 1 | export { FeatureOverview } from './FeatureOverview'; 2 | export { 3 | type Feature, 4 | type FeatureOverviewProps, 5 | } from './FeatureOverview.types'; 6 | -------------------------------------------------------------------------------- /packages/guide-cue/src/GuideCue/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './GuideCue'; 2 | export { 3 | BeaconAlign, 4 | type GuideCueProps, 5 | TooltipAlign, 6 | TooltipJustify, 7 | } from './GuideCue.types'; 8 | -------------------------------------------------------------------------------- /packages/icon/src/glyphs/Stop.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/pipeline/src/svgs/index.ts: -------------------------------------------------------------------------------- 1 | export { SegmentL } from './SegmentL'; 2 | export { SegmentM } from './SegmentM'; 3 | export { SegmentS } from './SegmentS'; 4 | export { SegmentXs } from './SegmentXs'; 5 | -------------------------------------------------------------------------------- /packages/radio-group/src/types.ts: -------------------------------------------------------------------------------- 1 | export const Size = { 2 | XSmall: 'xsmall', 3 | Small: 'small', 4 | Default: 'default', 5 | } as const; 6 | 7 | export type Size = (typeof Size)[keyof typeof Size]; 8 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavItem/index.ts: -------------------------------------------------------------------------------- 1 | export { default as SideNavItem } from './SideNavItem'; 2 | export { 3 | type BaseSideNavItemProps, 4 | type SideNavItemProps, 5 | } from './SideNavItem.types'; 6 | -------------------------------------------------------------------------------- /packages/table/src/ExpandedContent/index.ts: -------------------------------------------------------------------------------- 1 | import ExpandedContent from './ExpandedContent'; 2 | export { type ExpandedContentProps } from './ExpandedContent.types'; 3 | 4 | export default ExpandedContent; 5 | -------------------------------------------------------------------------------- /packages/testing-lib/src/ReactTestingLibrary/utils/getReactVersion.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export const getReactVersion = () => { 4 | return parseInt(React.version.split('.')[0], 10); 5 | }; 6 | -------------------------------------------------------------------------------- /packages/wizard/src/WizardStep/index.ts: -------------------------------------------------------------------------------- 1 | export { WizardStep } from './WizardStep'; 2 | export { type WizardStepProps } from './WizardStep.types'; 3 | export { useWizardStepContext } from './WizardStepContext'; 4 | -------------------------------------------------------------------------------- /tools/build/scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../config/script.tsconfig.json", 3 | "compilerOptions": { 4 | "noUnusedLocals": false, 5 | "strict": true, 6 | "baseUrl": ".", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tools/validate/src/validate.types.ts: -------------------------------------------------------------------------------- 1 | export interface ValidateCommandOptions { 2 | buildsOnly: boolean; 3 | depsOnly: boolean; 4 | fix: boolean; 5 | fixTsconfig: boolean; 6 | verbose: boolean; 7 | } 8 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/getSegmentsFromDate/index.ts: -------------------------------------------------------------------------------- 1 | export { getFormattedSegmentsFromDate } from './getFormattedSegmentsFromDate'; 2 | export { getSegmentsFromDate } from './getSegmentsFromDate'; 3 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/EmbeddedDrawerLayout/index.tsx: -------------------------------------------------------------------------------- 1 | export { EmbeddedDrawerLayout } from './EmbeddedDrawerLayout'; 2 | export { type EmbeddedDrawerLayoutProps } from './EmbeddedDrawerLayout.types'; 3 | -------------------------------------------------------------------------------- /packages/form-field/src/FormFieldInputContainer/index.ts: -------------------------------------------------------------------------------- 1 | export { FormFieldInputContainer } from './FormFieldInputContainer'; 2 | export { type FormFieldInputContainerProps } from './FormFieldInputContainer.types'; 3 | -------------------------------------------------------------------------------- /packages/icon/rollup.config.mjs: -------------------------------------------------------------------------------- 1 | import { 2 | esmConfig, 3 | storiesConfig, 4 | umdConfig, 5 | } from '@lg-tools/build/config/rollup.config.mjs'; 6 | 7 | export default [esmConfig, umdConfig, storiesConfig]; 8 | -------------------------------------------------------------------------------- /packages/icon/scripts/build/constants.ts: -------------------------------------------------------------------------------- 1 | export const BATCH_SIZE = 10; 2 | export const NUM_WORKERS = 4; 3 | export const GENERATED_DIR = 'src/generated'; 4 | export const CHECKSUMS_FILE = 'dist/checksums.json'; 5 | -------------------------------------------------------------------------------- /packages/input-option/README.md: -------------------------------------------------------------------------------- 1 | # Internal Input Option 2 | 3 | An internal component intended to be used by any dropdown menu option component. 4 | I.e. `ComboboxOption`, `SelectOption`, `SearchInputResult` etc. 5 | -------------------------------------------------------------------------------- /packages/modal/src/testing/getTestUtils.types.ts: -------------------------------------------------------------------------------- 1 | export interface GetTestUtilsReturnType { 2 | findModal: () => Promise; 3 | getModal: () => T; 4 | queryModal: () => T | null; 5 | } 6 | -------------------------------------------------------------------------------- /packages/tabs/src/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getEnabledIndices } from './getEnabledIndices'; 2 | export { DEFAULT_LGID_ROOT, getLgIds } from './getLgIds'; 3 | export { getSelectedIndex } from './getSelectedIndex'; 4 | -------------------------------------------------------------------------------- /pnpm-workspace.yaml: -------------------------------------------------------------------------------- 1 | packages: 2 | # all packages in direct subdirectories of apps/, charts/, chat/, packages/, & tools/ 3 | - 'apps/*' 4 | - 'charts/*' 5 | - 'chat/*' 6 | - 'packages/*' 7 | - 'tools/*' 8 | -------------------------------------------------------------------------------- /packages/feature-walls/src/ActivationSteps/index.ts: -------------------------------------------------------------------------------- 1 | export { ActivationSteps } from './ActivationSteps'; 2 | export { 3 | type ActivationStep, 4 | type ActivationStepsProps, 5 | } from './ActivationSteps.types'; 6 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/PortalContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | type PortalContextInterface, 3 | PortalContextProvider, 4 | PortalContextValues, 5 | usePopoverPortalContainer, 6 | } from './PortalContext'; 7 | -------------------------------------------------------------------------------- /packages/section-nav/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { getTestUtils } from './getTestUtils'; 2 | export type { TestUtilsReturnType } from './getTestUtils.types'; 3 | export { renderSectionNav } from './render.testUtils'; 4 | -------------------------------------------------------------------------------- /packages/segmented-control/src/SegmentedControlOption/index.ts: -------------------------------------------------------------------------------- 1 | export { SegmentedControlOption } from './SegmentedControlOption'; 2 | export type { SegmentedControlOptionProps } from './SegmentedControlOption.types'; 3 | -------------------------------------------------------------------------------- /packages/select/src/OptionGroup/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | InternalOptionGroup, 3 | OptionGroup, 4 | type OptionGroupElement, 5 | } from './OptionGroup'; 6 | export { type OptionGroupProps } from './OptionGroup.types'; 7 | -------------------------------------------------------------------------------- /packages/side-nav/src/AccessibleGlyph/AccessibleGlyph.types.ts: -------------------------------------------------------------------------------- 1 | export interface AccessibleGlyphProps { 2 | isActiveGroup: boolean; 3 | className?: string; 4 | accessibleGlyph?: React.ReactElement | null; 5 | } 6 | -------------------------------------------------------------------------------- /packages/table/src/ToggleExpandedIcon/index.ts: -------------------------------------------------------------------------------- 1 | import ToggleExpandedIcon from './ToggleExpandedIcon'; 2 | export { type ToggleExpandedIconProps } from './ToggleExpandedIcon.types'; 3 | export default ToggleExpandedIcon; 4 | -------------------------------------------------------------------------------- /packages/toast/src/InternalToast/index.ts: -------------------------------------------------------------------------------- 1 | export { InternalToast } from './InternalToast'; 2 | export { toastBGColor } from './InternalToast.styles'; 3 | export { type InternalToastProps } from './InternalToast.types'; 4 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/PropCombinations/docs/decorator-demo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mongodb/leafygreen-ui/HEAD/tools/storybook-decorators/src/decorators/PropCombinations/docs/decorator-demo.png -------------------------------------------------------------------------------- /charts/series-provider/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | SeriesContext, 3 | SeriesProvider, 4 | useSeriesContext, 5 | } from './SeriesContext'; 6 | export type { SeriesName, SeriesProviderProps } from './SeriesContext.types'; 7 | -------------------------------------------------------------------------------- /chat/input-bar/src/DisclaimerText/DisclaimerText.types.ts: -------------------------------------------------------------------------------- 1 | import { ComponentPropsWithoutRef } from 'react'; 2 | 3 | export interface DisclaimerTextProps 4 | extends Omit, 'children'> {} 5 | -------------------------------------------------------------------------------- /packages/chip/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | BaseFontSize, 3 | Chip, 4 | chipInlineDefinitionClassName, 5 | type ChipProps, 6 | chipTextClassName, 7 | TruncationLocation, 8 | Variant, 9 | } from './Chip'; 10 | -------------------------------------------------------------------------------- /packages/code/scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/script.tsconfig.json", 3 | "compilerOptions": { 4 | "noUnusedLocals": false, 5 | "strict": true, 6 | "baseUrl": ".", 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenuHeader/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { shouldChevronBeDisabled } from './shouldChevronBeDisabled'; 2 | export { shouldMonthBeEnabled } from './shouldMonthBeEnabled'; 3 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/index.ts: -------------------------------------------------------------------------------- 1 | export * from './components'; 2 | export * from './constants'; 3 | export * from './context'; 4 | export * from './hooks'; 5 | export * from './types'; 6 | export * from './utils'; 7 | -------------------------------------------------------------------------------- /packages/empty-state/src/index.ts: -------------------------------------------------------------------------------- 1 | export { BasicEmptyState, type BasicEmptyStateProps } from './BasicEmptyState'; 2 | export { 3 | FeaturesEmptyState, 4 | type FeaturesEmptyStateProps, 5 | } from './FeaturesEmptyState'; 6 | -------------------------------------------------------------------------------- /packages/preview-card/src/PreviewCard/index.ts: -------------------------------------------------------------------------------- 1 | export { PreviewCard } from './PreviewCard'; 2 | export { contentWrapperClassName } from './PreviewCard.styles'; 3 | export { type PreviewCardProps } from './PreviewCard.types'; 4 | -------------------------------------------------------------------------------- /packages/select/src/Option/index.ts: -------------------------------------------------------------------------------- 1 | export { InternalOption, Option, type OptionElement } from './Option'; 2 | export { 3 | type InternalProps, 4 | type OptionProps, 5 | type ReactEmpty, 6 | } from './Option.types'; 7 | -------------------------------------------------------------------------------- /packages/stepper/src/EllipsesStep/index.ts: -------------------------------------------------------------------------------- 1 | export { EllipsesStep } from './EllipsesStep'; 2 | export { 3 | type EllipsesStepProps, 4 | type EllipsesStepState, 5 | EllipsesStepStates, 6 | } from './EllipsesStep.types'; 7 | -------------------------------------------------------------------------------- /packages/stepper/src/constants.ts: -------------------------------------------------------------------------------- 1 | import { createUniqueClassName } from '@leafygreen-ui/lib'; 2 | 3 | export const stepLabelClassName = createUniqueClassName(); 4 | export const stepIconClassName = createUniqueClassName(); 5 | -------------------------------------------------------------------------------- /packages/tokens/src/size.ts: -------------------------------------------------------------------------------- 1 | export const Size = { 2 | XSmall: 'xsmall', 3 | Small: 'small', 4 | Default: 'default', 5 | Large: 'large', 6 | } as const; 7 | 8 | export type Size = (typeof Size)[keyof typeof Size]; 9 | -------------------------------------------------------------------------------- /tools/build/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "./config/node.tsconfig.json", 3 | "compilerOptions": {}, 4 | "include": [ 5 | "src/**/*" 6 | ], 7 | "exclude": [ 8 | "**/*.stories.*" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/PropCombinations/components/index.ts: -------------------------------------------------------------------------------- 1 | export { Err } from './Err'; 2 | export { PropCombinations } from './PropCombinations'; 3 | export { PropDetailsComponent } from './PropDetails'; 4 | -------------------------------------------------------------------------------- /.changeset/config.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json", 3 | "changelog": "@changesets/cli/changelog", 4 | "commit": false, 5 | "access": "restricted", 6 | "baseBranch": "main" 7 | } -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatSideNav/ChatSideNavItem/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatSideNavItem } from './ChatSideNavItem'; 2 | export type { 3 | BaseChatSideNavItemProps, 4 | ChatSideNavItemProps, 5 | } from './ChatSideNavItem.types'; 6 | -------------------------------------------------------------------------------- /packages/button/src/constants.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Off-palette value specific to primary button instances 3 | * @see TODO: https://jira.mongodb.org/browse/LG-5388 4 | */ 5 | export const PRIMARY_BUTTON_INTERACTIVE_GREEN = '#00593F'; 6 | -------------------------------------------------------------------------------- /packages/combobox/src/ComboboxOption/index.ts: -------------------------------------------------------------------------------- 1 | export { ComboboxOption, InternalComboboxOption } from './ComboboxOption'; 2 | export { 3 | type ComboboxOptionProps, 4 | type OptionObject, 5 | } from './ComboboxOption.types'; 6 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerMenu/DatePickerMenuSelect/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePickerMenuSelectMonth } from './DatePickerMenuSelectMonth'; 2 | export { DatePickerMenuSelectYear } from './DatePickerMenuSelectYear'; 3 | -------------------------------------------------------------------------------- /packages/lib/src/queryFocusableElements/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | focusableElementSelector, 3 | queryAllFocusableElements, 4 | queryFirstFocusableElement, 5 | queryLastFocusableElement, 6 | } from './queryFocusableElements'; 7 | -------------------------------------------------------------------------------- /packages/password-input/src/PasswordInput/index.tsx: -------------------------------------------------------------------------------- 1 | export { PasswordInput } from './PasswordInput'; 2 | export { 3 | type NotificationProps, 4 | Size, 5 | type StateNotificationProps, 6 | } from './PasswordInput.types'; 7 | -------------------------------------------------------------------------------- /packages/password-input/src/index.ts: -------------------------------------------------------------------------------- 1 | export { PasswordInput } from './PasswordInput'; 2 | export { type PasswordInputProps } from './PasswordInput/PasswordInput.types'; 3 | export { DEFAULT_LGID_ROOT, getLgIds } from './utils'; 4 | -------------------------------------------------------------------------------- /packages/skeleton-loader/src/Skeleton/index.ts: -------------------------------------------------------------------------------- 1 | export { Skeleton } from './Skeleton'; 2 | export { getSkeletonBaseStyles, themeStyles } from './Skeleton.styles'; 3 | export { Size, type SkeletonProps } from './Skeleton.types'; 4 | -------------------------------------------------------------------------------- /packages/table/src/useLeafyGreenVirtualTable/index.ts: -------------------------------------------------------------------------------- 1 | import useLeafyGreenVirtualTable from './useLeafyGreenVirtualTable'; 2 | export * from './useLeafyGreenVirtualTable.types'; 3 | 4 | export default useLeafyGreenVirtualTable; 5 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/VerticalStepper/VerticalStepper.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const baseStyles = css` 4 | list-style-type: none; 5 | padding: 0; 6 | margin: 0; 7 | `; 8 | -------------------------------------------------------------------------------- /tools/storybook-addon/src/manager/index.ts: -------------------------------------------------------------------------------- 1 | import { addons } from '@storybook/manager-api'; 2 | 3 | import { darkTheme } from '../themes'; 4 | 5 | addons.setConfig({ 6 | name: 'LeafyGreen UI', 7 | theme: darkTheme, 8 | }); 9 | -------------------------------------------------------------------------------- /tools/test/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "extends": "@lg-tools/build/config/node.tsconfig.json", 4 | "compilerOptions": {}, 5 | "include": [ 6 | "src/**/*" 7 | ] 8 | } 9 | -------------------------------------------------------------------------------- /chat/leafygreen-chat-provider/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | type LeafyGreenChatContextProps, 3 | LeafyGreenChatProvider, 4 | type LeafyGreenChatProviderProps, 5 | useLeafyGreenChatContext, 6 | } from './LeafyGreenChatProvider'; 7 | -------------------------------------------------------------------------------- /packages/combobox/src/Combobox/index.ts: -------------------------------------------------------------------------------- 1 | export { Combobox } from './Combobox'; 2 | export { 3 | type BaseComboboxProps, 4 | type ComboboxMultiselectProps, 5 | type ComboboxProps, 6 | RenderMode, 7 | } from './Combobox.types'; 8 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/DateInputBox/index.ts: -------------------------------------------------------------------------------- 1 | export { DateInputBox } from './DateInputBox'; 2 | export type { 3 | DateInputBoxProps, 4 | DateInputChangeEventHandler, 5 | } from './DateInputBox.types'; 6 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/utils/getFormattedDateString/index.ts: -------------------------------------------------------------------------------- 1 | export { getFormattedDateString } from './getFormattedDateString'; 2 | export { getFormattedDateStringFromSegments } from './getFormattedDateStringFromSegments'; 3 | -------------------------------------------------------------------------------- /packages/form-field/src/FormFieldContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | defaultFormFieldContext, 3 | FormFieldContext, 4 | type FormFieldContextProps, 5 | FormFieldProvider, 6 | useFormFieldContext, 7 | } from './FormFieldContext'; 8 | -------------------------------------------------------------------------------- /packages/icon/scripts/prebuild/prebuild.types.ts: -------------------------------------------------------------------------------- 1 | export interface PrebuildOptions { 2 | outDir?: string; 3 | verbose?: boolean; 4 | } 5 | 6 | export interface FileObject { 7 | name: string; 8 | path: string; 9 | } 10 | -------------------------------------------------------------------------------- /packages/ordered-list/src/OrderedList/OrderedList.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { DarkModeProps } from '@leafygreen-ui/lib'; 4 | 5 | export type OrderedListProps = React.ComponentProps<'ol'> & DarkModeProps; 6 | -------------------------------------------------------------------------------- /packages/select/src/Select/index.ts: -------------------------------------------------------------------------------- 1 | export { Select } from './Select'; 2 | export { 3 | DismissMode, 4 | DropdownWidthBasis, 5 | RenderMode, 6 | type SelectProps, 7 | Size, 8 | State, 9 | } from './Select.types'; 10 | -------------------------------------------------------------------------------- /packages/side-nav/src/SideNavGroupHeader/SideNavGroupHeader.types.ts: -------------------------------------------------------------------------------- 1 | export interface SideNavGroupHeaderProps { 2 | isActiveGroup: boolean; 3 | accessibleGlyph?: React.ReactElement | null; 4 | header?: React.ReactNode; 5 | } 6 | -------------------------------------------------------------------------------- /packages/typography/src/Link/index.ts: -------------------------------------------------------------------------------- 1 | export { BackLink, type BackLinkProps } from './BackLink'; 2 | export { Link, type LinkProps } from './Link'; 3 | export { anchorClassName, linkModeStyles, linkStyles } from './shared.styles'; 4 | -------------------------------------------------------------------------------- /packages/wizard/src/WizardStep/WizardStep.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { spacing } from '@leafygreen-ui/tokens'; 3 | 4 | export const stepStyles = css` 5 | padding: 0 ${spacing[1800]}px; 6 | `; 7 | -------------------------------------------------------------------------------- /tools/build/rollup.config.mjs: -------------------------------------------------------------------------------- 1 | import { esmConfig, umdConfig } from './config/rollup.config.mjs'; 2 | 3 | const cli = { 4 | ...umdConfig, 5 | input: ['./src/cli.ts'], 6 | }; 7 | 8 | export default [esmConfig, umdConfig, cli]; 9 | -------------------------------------------------------------------------------- /tools/lint/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/node.tsconfig.json", 3 | "compilerOptions": {}, 4 | "include": [ 5 | "src/**/*" 6 | ], 7 | "exclude": [ 8 | "**/*.stories.*" 9 | ] 10 | } 11 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/CustomTooltip/index.ts: -------------------------------------------------------------------------------- 1 | export { CustomTooltip } from './CustomTooltip'; 2 | export { sampleTooltipParams } from './CustomTooltip.testUtils'; 3 | export type { CustomTooltipProps } from './CustomTooltip.types'; 4 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/EventMarkerLine/EventMarkerLine.types.ts: -------------------------------------------------------------------------------- 1 | import { BaseEventMarkerLineProps } from '../BaseEventMarker'; 2 | 3 | export interface EventMarkerLineProps 4 | extends Omit {} 5 | -------------------------------------------------------------------------------- /packages/canvas-header/src/Resource/Resource.types.ts: -------------------------------------------------------------------------------- 1 | import { CanvasHeaderProps } from '../CanvasHeader'; 2 | 3 | export type ResourceProps = Pick< 4 | CanvasHeaderProps, 5 | 'resourceName' | 'resourceIcon' | 'resourceBadges' 6 | >; 7 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export { useControlledValue } from './useControlledValue'; 2 | export { useDateSegments } from './useDateSegments'; 3 | export { type SegmentRefs, useSegmentRefs } from './useSegmentRefs'; 4 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/OverlayDrawerLayout/OverlayDrawerLayout.types.ts: -------------------------------------------------------------------------------- 1 | import { LayoutComponentProps } from '../../LayoutComponent/LayoutComponent.types'; 2 | 3 | export type OverlayDrawerLayoutProps = LayoutComponentProps; 4 | -------------------------------------------------------------------------------- /packages/radio-box-group/src/index.ts: -------------------------------------------------------------------------------- 1 | export { RadioBox } from './RadioBox'; 2 | export { RadioBoxGroup } from './RadioBoxGroup'; 3 | export type { RadioBoxGroupProps, RadioBoxProps } from './types'; 4 | export { Size } from './types'; 5 | -------------------------------------------------------------------------------- /packages/resizable/src/useResizable/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { calculateNewSize } from './calculateNewSize'; 2 | export { getResizerAriaAttributes } from './getResizerAriaAttributes'; 3 | export { getResizerStyles } from './getResizerStyles'; 4 | -------------------------------------------------------------------------------- /packages/toolbar/src/Context/index.ts: -------------------------------------------------------------------------------- 1 | export { ToolbarContextProvider, useToolbarContext } from './ToolbarContext'; 2 | export { 3 | ToolbarDescendantsContext, 4 | useToolbarDescendantsContext, 5 | } from './ToolbarDescendantsContext'; 6 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/PropCombinations/index.tsx: -------------------------------------------------------------------------------- 1 | export { GENERATED_STORY_NAME, PARAM_NAME } from './constants'; 2 | export { default } from './PropCombinationsDecorator'; 3 | export { isGeneratedStory } from './utils'; 4 | -------------------------------------------------------------------------------- /charts/chart-card/src/ChartCard/index.tsx: -------------------------------------------------------------------------------- 1 | export { ChartCard } from './ChartCard'; 2 | export { type ChartCardProps, ChartCardStates } from './ChartCard.types'; 3 | export { ChartCardProvider, useChartCardContext } from './ChartCardContext'; 4 | -------------------------------------------------------------------------------- /charts/core/src/Axis/XAxis.types.ts: -------------------------------------------------------------------------------- 1 | import { AxisProps, AxisType } from './Axis.types'; 2 | 3 | export const XAxisType = AxisType; 4 | type XAxisType = (typeof XAxisType)[keyof typeof XAxisType]; 5 | 6 | export type XAxisProps = AxisProps; 7 | -------------------------------------------------------------------------------- /charts/core/src/Axis/YAxis.types.ts: -------------------------------------------------------------------------------- 1 | import { AxisProps, AxisType } from './Axis.types'; 2 | 3 | export const YAxisType = AxisType; 4 | type YAxisType = (typeof YAxisType)[keyof typeof YAxisType]; 5 | 6 | export type YAxisProps = AxisProps; 7 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/EventMarkerPoint/EventMarkerPoint.types.ts: -------------------------------------------------------------------------------- 1 | import { BaseEventMarkerPointProps } from '../BaseEventMarker'; 2 | 3 | export interface EventMarkerPointProps 4 | extends Omit {} 5 | -------------------------------------------------------------------------------- /chat/input-bar/src/InputBarStopButton/InputBarStopButton.types.ts: -------------------------------------------------------------------------------- 1 | import { IconButtonProps } from '@leafygreen-ui/icon-button'; 2 | 3 | export interface InputBarStopButtonProps 4 | extends Pick {} 5 | -------------------------------------------------------------------------------- /packages/canvas-header/src/constants.ts: -------------------------------------------------------------------------------- 1 | const LGID_ROOT = 'lg-canvas_header'; 2 | 3 | export const LGIDS = { 4 | root: LGID_ROOT, 5 | pageTitle: `${LGID_ROOT}-page_title`, 6 | resourceName: `${LGID_ROOT}-resource_name`, 7 | } as const; 8 | -------------------------------------------------------------------------------- /packages/compound-component/src/CompoundComponent/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | CompoundComponent, 3 | type CompoundComponentType, 4 | } from './CompoundComponent'; 5 | export { CompoundSubComponent, type SubComponentType } from './SubComponent'; 6 | -------------------------------------------------------------------------------- /packages/context-drawer/src/ContextDrawer/index.ts: -------------------------------------------------------------------------------- 1 | export { ContextDrawer } from './ContextDrawer'; 2 | export { referenceWrapperClassName } from './ContextDrawer.styles'; 3 | export { type ContextDrawerProps } from './ContextDrawer.types'; 4 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/EmbeddedDrawerLayout/EmbeddedDrawerLayout.types.ts: -------------------------------------------------------------------------------- 1 | import { LayoutComponentProps } from '../../LayoutComponent/LayoutComponent.types'; 2 | 3 | export type EmbeddedDrawerLayoutProps = LayoutComponentProps; 4 | -------------------------------------------------------------------------------- /tools/build/config/node.tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "extends": "./package.tsconfig.json", 4 | "compilerOptions": { 5 | "resolveJsonModule": true, 6 | "lib": ["ES2020"] 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /tools/create/src/templates/component/src/testing/getTestUtils.index.template.ts: -------------------------------------------------------------------------------- 1 | export const testingIndex = 2 | () => `export { getTestUtils } from './getTestUtils'; 3 | export { type TestUtilsReturnType } from './getTestUtils.types'; 4 | `; 5 | -------------------------------------------------------------------------------- /tools/test-harnesses/src/types/index.ts: -------------------------------------------------------------------------------- 1 | export { type DropdownElements } from './dropdown/dropdownElements.types'; 2 | export { type FormElements } from './form/formElements.types'; 3 | export { type FormUtils } from './form/formUtils.types'; 4 | -------------------------------------------------------------------------------- /tools/update/src/utils/getAllPackageNames.ts: -------------------------------------------------------------------------------- 1 | import fse from 'fs-extra'; 2 | import path from 'path'; 3 | const rootDir = process.cwd(); 4 | 5 | export const getAllPackageNames = () => 6 | fse.readdirSync(path.join(rootDir, 'packages/')); 7 | -------------------------------------------------------------------------------- /chat/message-prompts/src/MessagePromptsContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | MessagePromptsProvider, 3 | useMessagePromptsContext, 4 | } from './MessagePromptsContext'; 5 | export { type MessagePromptsContextProps } from './MessagePromptsContext.types'; 6 | -------------------------------------------------------------------------------- /deprecated-packages/avatar/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | ChatAvatar as Avatar, 3 | type ChatAvatarProps as AvatarProps, 4 | chatAvatarSizeMap as avatarSizes, 5 | ChatAvatarSize as Size, 6 | ChatAvatarVariant as Variant, 7 | } from './Avatar'; 8 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/PanelGrid/PanelGrid.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export type PanelGridProps = Omit< 4 | React.ComponentPropsWithoutRef<'div'>, 5 | 'children' 6 | > & { 7 | children: React.ReactNode; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/empty-state/src/example-graphics/svg.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.svg' { 2 | const content: 3 | | { 4 | svg: string; 5 | } 6 | | React.FunctionComponent>; 7 | export default content; 8 | } 9 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/BaseEventMarker/index.ts: -------------------------------------------------------------------------------- 1 | export { BaseEventMarker } from './BaseEventMarker'; 2 | export { 3 | type BaseEventMarkerLineProps, 4 | type BaseEventMarkerPointProps, 5 | EventLevel, 6 | } from './BaseEventMarker.types'; 7 | -------------------------------------------------------------------------------- /packages/code-editor/src/testing/index.ts: -------------------------------------------------------------------------------- 1 | export { codeSnippets } from './codeSnippets'; 2 | export { getTestUtils } from './getTestUtils'; 3 | export type { 4 | GetTestUtilsReturnType, 5 | PanelTestUtilsReturnType, 6 | } from './getTestUtils.types'; 7 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/Calendar/CalendarCell/index.ts: -------------------------------------------------------------------------------- 1 | export { CalendarCell } from './CalendarCell'; 2 | export { 3 | type CalendarCellProps, 4 | CalendarCellRangeState, 5 | CalendarCellState, 6 | } from './CalendarCell.types'; 7 | -------------------------------------------------------------------------------- /packages/drawer/src/DrawerStackContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DrawerStackContext, 3 | DrawerStackProvider, 4 | useDrawerStackContext, 5 | } from './DrawerStackContext'; 6 | export { type DrawerStackContextType } from './DrawerStackContext.types'; 7 | -------------------------------------------------------------------------------- /packages/form-field/src/FormField/index.ts: -------------------------------------------------------------------------------- 1 | export { FormField } from './FormField'; 2 | export { 3 | type FormFieldChildrenProps, 4 | type FormFieldInputWrapperProps, 5 | type FormFieldProps, 6 | FormFieldState, 7 | } from './FormField.types'; 8 | -------------------------------------------------------------------------------- /packages/icon-button/src/IconButton/index.ts: -------------------------------------------------------------------------------- 1 | export { IconButton as default } from './IconButton'; 2 | export { 3 | type AccessibleIconButtonProps, 4 | type BaseIconButtonProps, 5 | type IconButtonProps, 6 | Size, 7 | } from './IconButton.types'; 8 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/MigrationContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | MigrationContext, 3 | MigrationProvider, 4 | useMigrationContext, 5 | } from './MigrationContext'; 6 | export { type MigrationContextType } from './MigrationContext.types'; 7 | -------------------------------------------------------------------------------- /packages/lib/src/helpers/consoleOnce/index.ts: -------------------------------------------------------------------------------- 1 | import once from 'lodash/once'; 2 | 3 | export const consoleOnce = { 4 | error: once(console.error), 5 | warn: once(console.warn), 6 | log: once(console.log), // eslint-disable-line no-console 7 | }; 8 | -------------------------------------------------------------------------------- /packages/side-nav/src/CollapseToggle/CollapseToggle.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export interface CollapseToggleProps 4 | extends React.ComponentPropsWithoutRef<'button'> { 5 | collapsed?: boolean; 6 | hideTooltip?: boolean; 7 | } 8 | -------------------------------------------------------------------------------- /packages/tokens/src/borderRadius.ts: -------------------------------------------------------------------------------- 1 | const borderRadius = { 2 | 0: 0, 3 | 50: 2, 4 | 100: 4, 5 | 150: 6, 6 | 200: 8, 7 | 300: 12, 8 | 400: 16, 9 | 500: 20, 10 | 600: 24, 11 | } as const; 12 | 13 | export default borderRadius; 14 | -------------------------------------------------------------------------------- /packages/tokens/src/scrollbars/index.ts: -------------------------------------------------------------------------------- 1 | export { addScrollbarStyles } from './addScrollbarStyles'; 2 | export { 3 | scrollbarColor, 4 | type ScrollbarColorRecord, 5 | ScrollbarProperty, 6 | type ScrollbarVariant, 7 | } from './scrollbarColor'; 8 | -------------------------------------------------------------------------------- /packages/typography/src/Disclaimer/Disclaimer.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { CommonTypographyProps } from '../types'; 4 | 5 | export type DisclaimerProps = React.ComponentPropsWithoutRef<'small'> & 6 | CommonTypographyProps; 7 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/context/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | useVerticalStepperContext, 3 | VerticalStepperProvider, 4 | } from './VerticalStepperContext'; 5 | export { VerticalStepperDescendantsContext } from './VerticalStepperDescendantsContext'; 6 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/imports/index.ts: -------------------------------------------------------------------------------- 1 | export { getImportSpecifiersForDeclaration } from './getImportSpecifiersForDeclaration'; 2 | export { hasNamedImport } from './hasNamedImport'; 3 | export { mergeImportSpecifiers } from './mergeImportSpecifiers'; 4 | -------------------------------------------------------------------------------- /tools/codemods/src/utils/jsx/insertJSXComment/tests/transform.spec.ts: -------------------------------------------------------------------------------- 1 | import { transformTest } from '../../../tests/transformTest'; 2 | 3 | transformTest(__dirname, { 4 | fixture: 'insert-jsx-comment', 5 | transform: 'insert-jsx-comment', 6 | }); 7 | -------------------------------------------------------------------------------- /tools/meta/src/exitWithErrorMessage.ts: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-console */ 2 | import chalk from 'chalk'; 3 | 4 | export function exitWithErrorMessage(message: string, code = 1) { 5 | console.log(chalk.red.bold(message)); 6 | process.exit(code); 7 | } 8 | -------------------------------------------------------------------------------- /tools/test-harnesses/src/index.ts: -------------------------------------------------------------------------------- 1 | export { renderAsyncTest, type RenderAsyncTestReturnType } from './testUtils'; 2 | export { 3 | type DropdownElements, 4 | type FormElements, 5 | type FormUtils, 6 | } from './types'; 7 | export * from './utils'; 8 | -------------------------------------------------------------------------------- /.storybook/main.ts: -------------------------------------------------------------------------------- 1 | export default { 2 | addons: ['@lg-tools/storybook-addon'], 3 | framework: { 4 | name: '@storybook/react-webpack5', 5 | options: { 6 | fastRefresh: true, 7 | strictMode: true, 8 | }, 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /packages/input-option/src/InputOption/index.ts: -------------------------------------------------------------------------------- 1 | export { InputOption } from './InputOption'; 2 | export { inputOptionClassName } from './InputOption.style'; 3 | export type { 4 | BaseInputOptionProps, 5 | InputOptionProps, 6 | } from './InputOption.types'; 7 | -------------------------------------------------------------------------------- /tools/codemods/src/examples/consolidate-props/tests/transform.spec.ts: -------------------------------------------------------------------------------- 1 | import { transformTest } from '../../../utils/tests/transformTest'; 2 | 3 | transformTest(__dirname, { 4 | fixture: 'consolidate-props', 5 | transform: 'consolidate-props', 6 | }); 7 | -------------------------------------------------------------------------------- /tools/create/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/node.tsconfig.json", 3 | "compilerOptions": {}, 4 | "include": [ 5 | "src/**/*" 6 | ], 7 | "references": [ 8 | { 9 | "path": "../meta" 10 | } 11 | ] 12 | } -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatMain/ChatMain.types.ts: -------------------------------------------------------------------------------- 1 | import { ComponentPropsWithRef } from 'react'; 2 | 3 | import { DarkModeProps } from '@leafygreen-ui/lib'; 4 | 5 | export interface ChatMainProps 6 | extends ComponentPropsWithRef<'div'>, 7 | DarkModeProps {} 8 | -------------------------------------------------------------------------------- /chat/message-feed/src/MessageFeed/MessageFeed.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { DarkModeProps } from '@leafygreen-ui/lib'; 4 | 5 | export interface MessageFeedProps 6 | extends React.ComponentPropsWithRef<'div'>, 7 | DarkModeProps {} 8 | -------------------------------------------------------------------------------- /deprecated-packages/fixed-chat-window/src/ChatTrigger/ChatTrigger.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { DarkModeProps } from '@leafygreen-ui/lib'; 4 | 5 | export type ChatTriggerProps = DarkModeProps & 6 | React.ComponentProps<'button'> & {}; 7 | -------------------------------------------------------------------------------- /packages/date-utils/src/types/locales.ts: -------------------------------------------------------------------------------- 1 | export const SupportedLocales = { 2 | ISO_8601: 'iso-8601', 3 | en_US: 'en-US', 4 | en_GB: 'en-GB', 5 | } as const; 6 | export type SupportedLocales = 7 | (typeof SupportedLocales)[keyof typeof SupportedLocales]; 8 | -------------------------------------------------------------------------------- /packages/loading-indicator/src/Spinner/index.ts: -------------------------------------------------------------------------------- 1 | export { Spinner } from './Spinner'; 2 | export { SpinnerDirection, type SpinnerProps } from './Spinner.types'; 3 | /** Re-exported from tokens for convenience */ 4 | export { Size } from '@leafygreen-ui/tokens'; 5 | -------------------------------------------------------------------------------- /packages/menu/src/SubMenu/index.ts: -------------------------------------------------------------------------------- 1 | export { SubMenu } from './SubMenu'; 2 | export { 3 | subMenuContainerClassName, 4 | subMenuToggleClassName, 5 | } from './SubMenu.styles'; 6 | export { type InternalSubMenuProps, type SubMenuProps } from './SubMenu.types'; 7 | -------------------------------------------------------------------------------- /packages/progress-bar/src/ProgressBar/index.ts: -------------------------------------------------------------------------------- 1 | export { ProgressBar } from './ProgressBar'; 2 | export { 3 | AnimatedVariant, 4 | FormatValueType, 5 | type ProgressBarProps, 6 | Role, 7 | Size, 8 | Variant, 9 | } from './ProgressBar.types'; 10 | -------------------------------------------------------------------------------- /packages/stepper/src/StepIcon/StepIcon.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { StepState } from '../Stepper'; 4 | 5 | export interface StepIconProps extends React.ComponentPropsWithoutRef<'div'> { 6 | state: StepState; 7 | size?: number; 8 | } 9 | -------------------------------------------------------------------------------- /packages/tokens/src/mode.ts: -------------------------------------------------------------------------------- 1 | /** @deprecated prefer Theme */ 2 | const Mode = { 3 | Dark: 'dark', 4 | Light: 'light', 5 | } as const; 6 | 7 | /** @deprecated prefer Theme */ 8 | type Mode = (typeof Mode)[keyof typeof Mode]; 9 | 10 | export { Mode }; 11 | -------------------------------------------------------------------------------- /packages/typography/src/InlineKeyCode/InlineKeyCode.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { ResponsiveTypographyProps } from '../types'; 4 | 5 | export type InlineKeyCodeProps = React.ComponentPropsWithoutRef<'h1'> & 6 | ResponsiveTypographyProps; 7 | -------------------------------------------------------------------------------- /tools/link/src/utils/formatLog.ts: -------------------------------------------------------------------------------- 1 | import chalk from 'chalk'; 2 | 3 | export const formatLog = { 4 | scope: (scope: string) => chalk.blue.bold(scope), 5 | path: (path: string) => chalk.bold(path), 6 | cmd: (cmd: string) => chalk.bgGray.black(cmd), 7 | }; 8 | -------------------------------------------------------------------------------- /chat/rich-links/src/RichLink/index.ts: -------------------------------------------------------------------------------- 1 | export { RichLink } from './RichLink'; 2 | export { type RichLinkProps } from './RichLink.types'; 3 | export { 4 | isRichLinkVariantName, 5 | type RichLinkVariantName, 6 | richLinkVariants, 7 | } from './richLinkVariants'; 8 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/DateInput/DateInputSegment/index.ts: -------------------------------------------------------------------------------- 1 | export { DateInputSegment } from './DateInputSegment'; 2 | export { 3 | type DateInputSegmentChangeEventHandler, 4 | type DateInputSegmentProps, 5 | } from './DateInputSegment.types'; 6 | -------------------------------------------------------------------------------- /packages/icon/src/glyphs/Apps.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /packages/loading-indicator/src/constants.ts: -------------------------------------------------------------------------------- 1 | import type { LottieProps } from 'react-lottie-player'; 2 | 3 | type RendererSettings = LottieProps['rendererSettings']; 4 | 5 | export const lottieRendererSettings: RendererSettings = { 6 | runExpressions: false, 7 | }; 8 | -------------------------------------------------------------------------------- /packages/palette/src/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * JS objects and less files containing colors used in Leafygreen. 3 | * 4 | * @packageDocumentation 5 | */ 6 | 7 | import './palette.less'; 8 | 9 | import palette from './palette'; 10 | 11 | export { palette }; 12 | -------------------------------------------------------------------------------- /packages/radio-group/src/index.ts: -------------------------------------------------------------------------------- 1 | import { Radio, RadioProps } from './Radio'; 2 | import { RadioGroup, RadioGroupProps } from './RadioGroup'; 3 | import { Size } from './types'; 4 | export { Radio, RadioGroup, Size }; 5 | export type { RadioGroupProps, RadioProps }; 6 | -------------------------------------------------------------------------------- /packages/typography/src/Link/BackLink/BackLink.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { spacing } from '@leafygreen-ui/tokens'; 3 | 4 | export const backLinkBaseStyles = css` 5 | gap: ${spacing[100]}px; 6 | display: inline-flex; 7 | `; 8 | -------------------------------------------------------------------------------- /tools/codemods/src/examples/rename-component-prop/tests/transform.spec.ts: -------------------------------------------------------------------------------- 1 | import { transformTest } from '../../../utils/tests/transformTest'; 2 | 3 | transformTest(__dirname, { 4 | fixture: 'rename-component-prop', 5 | transform: 'rename-component-prop', 6 | }); 7 | -------------------------------------------------------------------------------- /charts/core/src/ChartTooltip/CustomTooltip/SeriesListItemColorDot/SeriesListItemColorDot.types.ts: -------------------------------------------------------------------------------- 1 | import { CallbackSeriesDataPoint } from '../../ChartTooltip.types'; 2 | 3 | export interface SeriesListItemColorDotProps { 4 | color: CallbackSeriesDataPoint['color']; 5 | } 6 | -------------------------------------------------------------------------------- /charts/core/src/EventMarkers/index.ts: -------------------------------------------------------------------------------- 1 | export { EventLevel } from './BaseEventMarker'; 2 | export { EventMarkerLine, type EventMarkerLineProps } from './EventMarkerLine'; 3 | export { 4 | EventMarkerPoint, 5 | type EventMarkerPointProps, 6 | } from './EventMarkerPoint'; 7 | -------------------------------------------------------------------------------- /packages/chip/src/DismissButton/DismissButton.types.ts: -------------------------------------------------------------------------------- 1 | import { ChipProps } from '../Chip'; 2 | 3 | export type DismissButtonProps = Required< 4 | Pick 5 | > & 6 | Pick; 7 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Accordion/AccordionButton/index.ts: -------------------------------------------------------------------------------- 1 | export { AccordionButton } from './AccordionButton'; 2 | export { HORIZONTAL_SPACING, VERTICAL_SPACING } from './AccordionButton.styles'; 3 | export { type AccordionButtonProps } from './AccordionButton.types'; 4 | -------------------------------------------------------------------------------- /packages/gallery-indicator/src/index.ts: -------------------------------------------------------------------------------- 1 | export { GalleryIndicator } from './GalleryIndicator'; 2 | export { 3 | type GalleryIndicatorProps, 4 | Variant, 5 | } from './GalleryIndicator/GalleryIndicator.types'; 6 | export { DEFAULT_LGID_ROOT, getLgIds } from './utils'; 7 | -------------------------------------------------------------------------------- /packages/password-input/src/PasswordToggle/PasswordToggle.types.ts: -------------------------------------------------------------------------------- 1 | import { Size } from '../PasswordInput/PasswordInput.types'; 2 | 3 | export interface PasswordToggleProps { 4 | showPassword: boolean; 5 | handlePasswordToggleClick: () => void; 6 | size: Size; 7 | } 8 | -------------------------------------------------------------------------------- /packages/progress-bar/src/test.constants.ts: -------------------------------------------------------------------------------- 1 | export const STORY_TIMEOUT_BUFFER = 500; 2 | 3 | export const storyValues = { 4 | value: 53, 5 | maxValue: 200, 6 | }; 7 | 8 | export const requiredA11yArgs = { 9 | 'aria-label': 'my required aria label', 10 | }; 11 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | dist/* 3 | package.json 4 | packages/icon/src/glyphs/*.svg 5 | packages/icon/src/generated/*.tsx 6 | storybook-static/* 7 | .changeset/ 8 | **/package.json 9 | **/tsconfig.json 10 | **/tsdoc.json 11 | packages/**/stories.js* 12 | .turbo/* -------------------------------------------------------------------------------- /charts/drag-provider/src/DragProvider.types.ts: -------------------------------------------------------------------------------- 1 | import { PropsWithChildren } from 'react'; 2 | 3 | export type DragProviderProps = PropsWithChildren<{ 4 | onDragStart?(event: { active: string }): void; 5 | onDragEnd?(event: { active: string; over: string }): void; 6 | }>; 7 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/components/Calendar/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | CalendarCell, 3 | type CalendarCellProps, 4 | CalendarCellRangeState, 5 | CalendarCellState, 6 | } from './CalendarCell'; 7 | export { CalendarGrid, type CalendarGridProps } from './CalendarGrid'; 8 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCYear/setUTCYear.ts: -------------------------------------------------------------------------------- 1 | /** Returns a new date from the provided date and year */ 2 | export const setUTCYear = (date: Date, year: number): Date => { 3 | const newDate = new Date(date); 4 | newDate.setUTCFullYear(year); 5 | return newDate; 6 | }; 7 | -------------------------------------------------------------------------------- /packages/icon/src/types/svg.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.svg' { 2 | const value: React.ComponentType< 3 | React.SVGProps & { 4 | title?: string | null; 5 | role?: 'img' | 'presentation'; 6 | } 7 | >; 8 | 9 | export = value; 10 | } 11 | -------------------------------------------------------------------------------- /packages/lib/src/types/Concat.types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Concatenates two string literals with a separator. 3 | */ 4 | export type Concat< 5 | S1 extends string, 6 | S2 extends string, 7 | Separator extends string = '.', 8 | > = S1 extends '' ? S2 : `${S1}${Separator}${S2}`; 9 | -------------------------------------------------------------------------------- /packages/lib/src/types/Exists.types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Utility type that returns `X.Y` if it exists, otherwise defaults to fallback type `Z`, or `any` 3 | */ 4 | export type Exists< 5 | X, 6 | Y extends keyof X | string, 7 | Z = unknown, 8 | > = Y extends keyof X ? X[Y] : Z; 9 | -------------------------------------------------------------------------------- /packages/toast/src/ToastContainer/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { getDividedStack } from './getDividedStack'; 2 | export { useToastHeights } from './useToastHeights'; 3 | export { useToastTimers } from './useToastTimers'; 4 | export { useToastTransitions } from './useToastTransitions'; 5 | -------------------------------------------------------------------------------- /packages/typography/src/H3/H3.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { fontWeights } from '@leafygreen-ui/tokens'; 3 | 4 | export const h3Styles = css` 5 | font-size: 24px; 6 | line-height: 32px; 7 | font-weight: ${fontWeights.medium}; 8 | `; 9 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/VerticalStepActions/VerticalStepActions.types.ts: -------------------------------------------------------------------------------- 1 | import { InternalVerticalStepProps } from '../VerticalStep/VerticalStep.types'; 2 | 3 | export type VerticalStepActionsProps = Pick< 4 | InternalVerticalStepProps, 5 | 'actions' | 'state' 6 | >; 7 | -------------------------------------------------------------------------------- /tools/install/turbo.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://turbo.build/schema.json", 3 | "extends": ["//"], 4 | "tasks": { 5 | "prebuild": { 6 | "dependsOn": ["^prebuild", "^build", "^tsc"], 7 | "outputs": ["src/ALL_PACKAGES.ts"] 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /tools/lint/config/prettier.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | printWidth: 80, 3 | tabWidth: 2, 4 | singleQuote: true, 5 | trailingComma: 'all', 6 | bracketSpacing: true, 7 | bracketSameLine: false, 8 | arrowParens: 'avoid', 9 | endOfLine: 'lf', 10 | }; 11 | -------------------------------------------------------------------------------- /chat/chat-layout/src/ChatLayout/index.ts: -------------------------------------------------------------------------------- 1 | export { ChatLayout } from './ChatLayout'; 2 | export { type ChatLayoutProps } from './ChatLayout.types'; 3 | export { 4 | ChatLayoutContext, 5 | type ChatLayoutContextProps, 6 | useChatLayoutContext, 7 | } from './ChatLayoutContext'; 8 | -------------------------------------------------------------------------------- /packages/button/src/testing/getLgIds.ts: -------------------------------------------------------------------------------- 1 | import { LgIdString } from '@leafygreen-ui/lib'; 2 | 3 | export const DEFAULT_LGID_ROOT = 'lg-button'; 4 | 5 | export const getLgIds = (root: LgIdString = DEFAULT_LGID_ROOT) => { 6 | return { 7 | root, 8 | } as const; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/context-drawer/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | ContextDrawer, 3 | type ContextDrawerProps, 4 | referenceWrapperClassName, 5 | } from './ContextDrawer'; 6 | export { 7 | ContextDrawerButton, 8 | type ContextDrawerButtonProps, 9 | } from './ContextDrawerButton'; 10 | -------------------------------------------------------------------------------- /packages/drawer/src/DrawerLayout/index.ts: -------------------------------------------------------------------------------- 1 | export { DrawerLayout } from './DrawerLayout'; 2 | export type { DrawerLayoutProps } from './DrawerLayout.types'; 3 | export { 4 | DrawerLayoutProvider, 5 | useDrawerLayoutContext, 6 | } from './DrawerLayoutContext/DrawerLayoutContext'; 7 | -------------------------------------------------------------------------------- /packages/icon/scripts/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/script.tsconfig.json", 3 | "compilerOptions": { 4 | "baseUrl": ".", 5 | }, 6 | "include": [ 7 | "./prebuild/**/*", 8 | "./build/**/*", 9 | "./postbuild/**/*" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /packages/segmented-control/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | SegmentedControl, 3 | type SegmentedControlProps, 4 | Size, 5 | } from './SegmentedControl'; 6 | export { 7 | SegmentedControlOption, 8 | type SegmentedControlOptionProps, 9 | } from './SegmentedControlOption'; 10 | -------------------------------------------------------------------------------- /packages/typography/src/Description/Description.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | import { ResponsiveTypographyProps } from '../types'; 4 | 5 | export type DescriptionProps = React.ComponentPropsWithoutRef<'p'> & 6 | ResponsiveTypographyProps & { disabled?: boolean }; 7 | -------------------------------------------------------------------------------- /tools/build/bin/build-package.js: -------------------------------------------------------------------------------- 1 | #! /usr/bin/env node 2 | // Use this bin to build packages that are dependencies of `@lg-tools/cli` 3 | // and therefore can't use `lg build-package` 4 | const { buildPackage } = require('../dist/umd/index.js'); 5 | buildPackage({ direct: true }); 6 | -------------------------------------------------------------------------------- /tools/validate/src/builds/modules.types.ts: -------------------------------------------------------------------------------- 1 | export const ModuleType = { 2 | esm: 'esm', 3 | umd: 'umd', 4 | cjs: 'cjs', 5 | yui: 'yui', 6 | amd: 'amd', 7 | steal: 'steal', 8 | } as const; 9 | export type ModuleType = (typeof ModuleType)[keyof typeof ModuleType]; 10 | -------------------------------------------------------------------------------- /chat/message-feedback/src/InlineMessageFeedback/index.ts: -------------------------------------------------------------------------------- 1 | export { InlineMessageFeedback } from './InlineMessageFeedback'; 2 | export { 3 | FormState, 4 | type InlineMessageFeedbackProps, 5 | } from './InlineMessageFeedback.types'; 6 | export { SubmittedState } from './SubmittedState'; 7 | -------------------------------------------------------------------------------- /deprecated-packages/avatar/src/Avatar/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | ChatAvatar, 3 | chatAvatarSizeMap, 4 | variantToAvatarFormatMap, 5 | } from './ChatAvatar'; 6 | export { 7 | type ChatAvatarProps, 8 | ChatAvatarSize, 9 | ChatAvatarVariant, 10 | } from './ChatAvatar.types'; 11 | -------------------------------------------------------------------------------- /packages/date-picker/src/index.ts: -------------------------------------------------------------------------------- 1 | export { DatePicker, type DatePickerProps } from './DatePicker'; 2 | export * from './shared/components'; 3 | export * from './shared/constants'; 4 | export * from './shared/hooks'; 5 | export * from './shared/types'; 6 | export * from './shared/utils'; 7 | -------------------------------------------------------------------------------- /packages/feature-walls/src/Templates/Templates.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { spacing } from '@leafygreen-ui/tokens'; 3 | 4 | export const templatesContainerStyles = css` 5 | width: 100%; 6 | display: flex; 7 | gap: ${spacing[400]}px; 8 | `; 9 | -------------------------------------------------------------------------------- /packages/lib/src/helpers/cloneReverse/index.ts: -------------------------------------------------------------------------------- 1 | export const cloneReverse = ( 2 | arr?: Array, 3 | ): Array | undefined => { 4 | if (!(arr && Array.isArray(arr))) return; 5 | 6 | const clone = [...arr]; 7 | clone.reverse(); 8 | return clone; 9 | }; 10 | -------------------------------------------------------------------------------- /packages/menu/src/HighlightReducer/index.ts: -------------------------------------------------------------------------------- 1 | export type { 2 | HighlightChangeHandler, 3 | HighlightReducerFunction, 4 | HighlightReducerReturnType, 5 | Index, 6 | UpdateHighlightAction, 7 | } from './highlight.types'; 8 | export { useHighlightReducer } from './HighlightReducer'; 9 | -------------------------------------------------------------------------------- /packages/ordered-list/src/index.ts: -------------------------------------------------------------------------------- 1 | export { OrderedList, type OrderedListProps } from './OrderedList'; 2 | export { 3 | OrderedListContext, 4 | useOrderedListContext, 5 | } from './OrderedListContext'; 6 | export { OrderedListItem, type OrderedListItemProps } from './OrderedListItem'; 7 | -------------------------------------------------------------------------------- /packages/radio-group/src/RadioGroup/RadioGroup.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { spacing } from '@leafygreen-ui/tokens'; 3 | 4 | export const radioGroupStyles = css` 5 | display: flex; 6 | flex-direction: column; 7 | gap: ${spacing[2]}px; 8 | `; 9 | -------------------------------------------------------------------------------- /packages/stepper/src/Stepper/Stepper.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const baseStyles = css` 4 | list-style: none; 5 | padding-inline-start: 0; 6 | width: 100%; 7 | display: flex; 8 | & > * { 9 | flex: 1; 10 | } 11 | `; 12 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/VerticalStep/index.ts: -------------------------------------------------------------------------------- 1 | export { InternalVerticalStep } from './InternalVerticalStep'; 2 | export { VerticalStep } from './VerticalStep'; 3 | export { 4 | InternalVerticalStepProps, 5 | State, 6 | type VerticalStepProps, 7 | } from './VerticalStep.types'; 8 | -------------------------------------------------------------------------------- /packages/wizard/src/constants.ts: -------------------------------------------------------------------------------- 1 | export const WizardSubComponentProperties = { 2 | Step: 'isWizardStep', 3 | Footer: 'isWizardFooter', 4 | } as const; 5 | export type WizardSubComponentProperties = 6 | (typeof WizardSubComponentProperties)[keyof typeof WizardSubComponentProperties]; 7 | -------------------------------------------------------------------------------- /tools/codemods/src/examples/update-component-prop-value/tests/transform.spec.ts: -------------------------------------------------------------------------------- 1 | import { transformTest } from '../../../utils/tests/transformTest'; 2 | 3 | transformTest(__dirname, { 4 | fixture: 'update-component-prop-value', 5 | transform: 'update-component-prop-value', 6 | }); 7 | -------------------------------------------------------------------------------- /tools/slackbot/src/release-bot/utils/utils.ts: -------------------------------------------------------------------------------- 1 | import isUndefined from 'lodash/isUndefined'; 2 | 3 | /* UTILS */ 4 | 5 | export function exists>( 6 | arg: T | undefined, 7 | ): arg is T { 8 | return !isUndefined(arg) && arg.length > 0; 9 | } 10 | -------------------------------------------------------------------------------- /packages/code/src/CopyButton/CopyButton.types.ts: -------------------------------------------------------------------------------- 1 | import { ComponentPropsWithoutRef } from 'react'; 2 | 3 | export interface CopyProps 4 | extends Omit, 'onCopy'> { 5 | onCopy?: Function; 6 | contents: string; 7 | withLanguageSwitcher?: boolean; 8 | } 9 | -------------------------------------------------------------------------------- /packages/icon/src/types/SVGR.ts: -------------------------------------------------------------------------------- 1 | import { ComponentType, SVGProps } from 'react'; 2 | 3 | export interface ComponentProps extends SVGProps { 4 | title?: string | null; 5 | role?: 'presentation' | 'img'; 6 | } 7 | 8 | export type Component = ComponentType; 9 | -------------------------------------------------------------------------------- /packages/section-nav/src/index.ts: -------------------------------------------------------------------------------- 1 | export { SectionNav, type SectionNavProps } from './SectionNav'; 2 | export { SectionNavItem, type SectionNavItemProps } from './SectionNavItem'; 3 | export { 4 | getLgIds, 5 | type TransformDataType, 6 | transformToNestedData, 7 | } from './utils/'; 8 | -------------------------------------------------------------------------------- /packages/testing-lib/src/eventContainingTargetValue/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Returns a jest object containing the expected target value 3 | */ 4 | export const eventContainingTargetValue = (value: any) => 5 | expect.objectContaining({ 6 | target: expect.objectContaining({ value }), 7 | }); 8 | -------------------------------------------------------------------------------- /tools/link/src/utils/mocks.testutils.ts: -------------------------------------------------------------------------------- 1 | import { ChildProcess } from 'child_process'; 2 | 3 | export class MockChildProcess extends ChildProcess { 4 | on = jest.fn().mockImplementation((event: string, cb: Function) => { 5 | cb(); 6 | return new MockChildProcess(); 7 | }); 8 | } 9 | -------------------------------------------------------------------------------- /typings/images.d.ts: -------------------------------------------------------------------------------- 1 | declare module '*.png' { 2 | const value: string; 3 | export = value; 4 | } 5 | 6 | declare module '*.jpg' { 7 | const value: string; 8 | export = value; 9 | } 10 | 11 | declare module '*.gif' { 12 | const value: string; 13 | export = value; 14 | } 15 | -------------------------------------------------------------------------------- /charts/core/src/Chart/index.ts: -------------------------------------------------------------------------------- 1 | export { Chart } from './Chart'; 2 | export { chartWrapperClassName } from './Chart.styles'; 3 | export { 4 | type ChartOptions, 5 | type ChartProps, 6 | ChartStates, 7 | type SeriesOption, 8 | type ZoomSelectionEvent, 9 | } from './Chart.types'; 10 | -------------------------------------------------------------------------------- /chat/message-feed/src/ScrollToLatestButton/ScrollToLatestButton.types.ts: -------------------------------------------------------------------------------- 1 | import { BaseButtonProps } from '@leafygreen-ui/button'; 2 | 3 | export interface ScrollToLatestButtonProps extends BaseButtonProps { 4 | /** 5 | * Whether the button is visible 6 | */ 7 | visible: boolean; 8 | } 9 | -------------------------------------------------------------------------------- /packages/date-utils/src/addDaysUTC/addDaysUTC.ts: -------------------------------------------------------------------------------- 1 | export const addDaysUTC = (date: Date, daysToAdd: number): Date => { 2 | const newDate = new Date(date); 3 | const day = newDate.getUTCDate(); 4 | const newDay = day + daysToAdd; 5 | newDate.setUTCDate(newDay); 6 | return newDate; 7 | }; 8 | -------------------------------------------------------------------------------- /packages/date-utils/src/setUTCMonth/setUTCMonth.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Equivalent to `date-fns.setMonth`, but strictly for UTC 3 | */ 4 | export const setUTCMonth = (date: Date, month: number): Date => { 5 | const newDate = new Date(date); 6 | newDate.setUTCMonth(month); 7 | return newDate; 8 | }; 9 | -------------------------------------------------------------------------------- /packages/modal/src/CloseButton/CloseButton.types.ts: -------------------------------------------------------------------------------- 1 | import { type BaseIconButtonProps } from '@leafygreen-ui/icon-button'; 2 | 3 | import { type CloseIconColorProp } from '../shared.types'; 4 | 5 | export interface CloseButtonProps 6 | extends BaseIconButtonProps, 7 | CloseIconColorProp {} 8 | -------------------------------------------------------------------------------- /packages/table/src/Row/index.ts: -------------------------------------------------------------------------------- 1 | import HeaderRow from './HeaderRow/HeaderRow'; 2 | import { type HeaderRowProps } from './HeaderRow/HeaderRow.types'; 3 | import Row from './Row'; 4 | import { type RowProps } from './Row.types'; 5 | 6 | export { HeaderRow, type HeaderRowProps, Row, type RowProps }; 7 | -------------------------------------------------------------------------------- /packages/text-input/src/testing/getTestUtils.types.ts: -------------------------------------------------------------------------------- 1 | import { type FormElements, type FormUtils } from '@lg-tools/test-harnesses'; 2 | 3 | type TextInputElements = FormElements; 4 | type TextInputUtils = FormUtils; 5 | 6 | export type TestUtilsReturnType = TextInputElements & TextInputUtils; 7 | -------------------------------------------------------------------------------- /packages/typography/src/Subtitle/Subtitle.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | import { fontWeights } from '@leafygreen-ui/tokens'; 3 | 4 | export const subtitleStyles = css` 5 | font-size: 18px; 6 | line-height: 24px; 7 | font-weight: ${fontWeights.semiBold}; 8 | `; 9 | -------------------------------------------------------------------------------- /tools/codemods/transform.config.js: -------------------------------------------------------------------------------- 1 | //TODO: is this doing anything? 2 | function resolve(transform) { 3 | return require.resolve(`./dist/codemods/${transform}/transform`); 4 | } 5 | 6 | module.exports = { 7 | presets: { 8 | 'popover-v12': resolve('popover-v12'), 9 | }, 10 | }; 11 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/ReactStrictMode.tsx: -------------------------------------------------------------------------------- 1 | import React, { StrictMode } from 'react'; 2 | import { Decorator } from '@storybook/react'; 3 | 4 | const ReactStrictMode: Decorator = storyFn => ( 5 | {storyFn()} 6 | ); 7 | export default ReactStrictMode; 8 | -------------------------------------------------------------------------------- /chat/suggestions/src/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | type ConfigurationParameter, 3 | type ConfigurationParameters, 4 | State, 5 | } from './shared.types'; 6 | export { SuggestedActions } from './SuggestedActions'; 7 | export { type SuggestedActionsProps } from './SuggestedActions/SuggestedActions.types'; 8 | -------------------------------------------------------------------------------- /packages/chip/src/Chip/index.ts: -------------------------------------------------------------------------------- 1 | export { Chip } from './Chip'; 2 | export { 3 | chipInlineDefinitionClassName, 4 | chipTextClassName, 5 | } from './Chip.styles'; 6 | export { 7 | BaseFontSize, 8 | type ChipProps, 9 | TruncationLocation, 10 | Variant, 11 | } from './Chip.types'; 12 | -------------------------------------------------------------------------------- /packages/date-picker/src/shared/hooks/useSegmentRefs/segmentRefs.types.ts: -------------------------------------------------------------------------------- 1 | import { DynamicRefGetter } from '@leafygreen-ui/hooks'; 2 | 3 | import { DateSegment } from '../../types'; 4 | 5 | export type SegmentRefs = Record< 6 | DateSegment, 7 | ReturnType> 8 | >; 9 | -------------------------------------------------------------------------------- /packages/drawer/src/DrawerToolbarLayout/index.ts: -------------------------------------------------------------------------------- 1 | export { DrawerToolbarLayout } from '../DrawerToolbarLayout/DrawerToolbarLayout/DrawerToolbarLayout'; 2 | export type { 3 | DrawerToolbarLayoutProps, 4 | LayoutData, 5 | } from '../DrawerToolbarLayout/DrawerToolbarLayout/DrawerToolbarLayout.types'; 6 | -------------------------------------------------------------------------------- /packages/split-button/src/SplitButton/index.tsx: -------------------------------------------------------------------------------- 1 | export { SplitButton } from './SplitButton'; 2 | export { 3 | Align, 4 | type InternalSplitButtonProps, 5 | Justify, 6 | type MenuItemType, 7 | RenderMode, 8 | type SplitButtonProps, 9 | Variant, 10 | } from './SplitButton.types'; 11 | -------------------------------------------------------------------------------- /tools/storybook-decorators/src/decorators/PropCombinations/utils/index.ts: -------------------------------------------------------------------------------- 1 | export { isGeneratedStory } from './isGeneratedStory'; 2 | export { shouldExcludePropCombo } from './shouldExcludePropCombo'; 3 | export type { PropCombination, PropName } from './types'; 4 | export { valStr } from './valStr'; 5 | -------------------------------------------------------------------------------- /packages/date-utils/src/addMonthsUTC/addMonthsUTC.ts: -------------------------------------------------------------------------------- 1 | import { setUTCMonth } from '../setUTCMonth'; 2 | 3 | export const addMonthsUTC = (date: Date, months: number): Date => { 4 | const utcMonth = date.getUTCMonth(); 5 | const newDate = setUTCMonth(date, utcMonth + months); 6 | return newDate; 7 | }; 8 | -------------------------------------------------------------------------------- /packages/drawer/src/LayoutComponent/LayoutComponent.styles.tsx: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | import { GRID_AREA } from '../constants'; 4 | 5 | export const contentStyles = css` 6 | grid-area: ${GRID_AREA.content}; 7 | overflow: scroll; 8 | height: inherit; 9 | `; 10 | -------------------------------------------------------------------------------- /packages/lib/src/types/Optional.types.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Constructs a type consisting of all properties of type `T`, 3 | * with a subset set of properties `K` marked optional. 4 | * 5 | * The inverse of `PartialRequired` 6 | */ 7 | export type Optional = Partial> & Omit; 8 | -------------------------------------------------------------------------------- /packages/search-input/src/SearchResultsMenu/SearchResultsMenu.types.ts: -------------------------------------------------------------------------------- 1 | import React, { ReactElement } from 'react'; 2 | 3 | export type SearchResultsMenuProps = React.ComponentPropsWithoutRef<'ul'> & { 4 | refEl: React.RefObject; 5 | open?: boolean; 6 | footerSlot?: ReactElement; 7 | }; 8 | -------------------------------------------------------------------------------- /packages/tabs/src/TabPanel/TabPanel.styles.ts: -------------------------------------------------------------------------------- 1 | import { css, cx } from '@leafygreen-ui/emotion'; 2 | 3 | const hiddenTabPanelStyle = css` 4 | display: none; 5 | `; 6 | 7 | export const getTabPanelStyles = (isSelected: boolean) => 8 | cx({ 9 | [hiddenTabPanelStyle]: !isSelected, 10 | }); 11 | -------------------------------------------------------------------------------- /tools/test-harnesses/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/tsconfig", 3 | "extends": "@lg-tools/build/config/package.tsconfig.json", 4 | "compilerOptions": {}, 5 | "include": [ 6 | "src/**/*" 7 | ], 8 | "exclude": [ 9 | "**/*.stories.*" 10 | ] 11 | } 12 | -------------------------------------------------------------------------------- /chat/leafygreen-chat-provider/src/LeafyGreenChatProvider/index.tsx: -------------------------------------------------------------------------------- 1 | export { 2 | LeafyGreenChatProvider, 3 | useLeafyGreenChatContext, 4 | } from './LeafyGreenChatProvider'; 5 | export { 6 | type LeafyGreenChatContextProps, 7 | type LeafyGreenChatProviderProps, 8 | } from './LeafyGreenChatProvider.types'; 9 | -------------------------------------------------------------------------------- /packages/descendants/src/Highlight/reducer/index.ts: -------------------------------------------------------------------------------- 1 | export { makeHighlightReducerFunction } from './makeHighlightReducerFunction'; 2 | export type { 3 | AbsoluteHighlightSetter, 4 | AbsoluteSetterArg, 5 | ActionType, 6 | RelativeHighlightSetter, 7 | UpdateHighlightAction, 8 | } from './reducer.types'; 9 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/PopoverPropsContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | PopoverPropsContext, 3 | PopoverPropsProvider, 4 | usePopoverPropsContext, 5 | } from './PopoverPropsContext'; 6 | export { 7 | type PopoverPropsProviderProps, 8 | RenderMode, 9 | } from './PopoverPropsContext.types'; 10 | -------------------------------------------------------------------------------- /packages/lib/src/helpers/allEqual/index.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Utility function that checks if the values in an array are all equal 3 | * 4 | * 5 | * @param arr `Array` 6 | * @returns boolean 7 | */ 8 | export function allEqual(arr: Array): boolean { 9 | return new Set(arr).size == 1; 10 | } 11 | -------------------------------------------------------------------------------- /packages/pipeline/src/TooltipText/TooltipText.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const tooltipTextStyles = css` 4 | display: flex; 5 | flex-wrap: wrap; 6 | align-items: center; 7 | gap: 2px; 8 | 9 | span { 10 | display: inline-flex; 11 | } 12 | `; 13 | -------------------------------------------------------------------------------- /packages/table/src/TableHead/TableHead.types.ts: -------------------------------------------------------------------------------- 1 | import React from 'react'; 2 | 3 | export interface TableHeadProps 4 | extends React.ComponentPropsWithoutRef<'thead'> { 5 | /** 6 | * Determines whether the table head will stick as the user scrolls down. 7 | */ 8 | isSticky?: boolean; 9 | } 10 | -------------------------------------------------------------------------------- /packages/tokens/src/fontFamilies.ts: -------------------------------------------------------------------------------- 1 | const fontFamilies = { 2 | default: `'Euclid Circular A', 'Helvetica Neue', Helvetica, Arial, sans-serif`, 3 | serif: `'MongoDB Value Serif', 'Times New Roman', serif`, 4 | code: `'Source Code Pro', Menlo, monospace`, 5 | } as const; 6 | 7 | export default fontFamilies; 8 | -------------------------------------------------------------------------------- /tools/create/src/templates/component/src/Component/component.types.template.ts: -------------------------------------------------------------------------------- 1 | import { TemplateParameters } from '../../../../create.types'; 2 | 3 | export const types = ({ 4 | packageNamePascal, 5 | }: Pick) => 6 | `export interface ${packageNamePascal}Props {}`; 7 | -------------------------------------------------------------------------------- /packages/date-picker/src/DatePicker/DatePickerContext/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | DatePickerContext, 3 | DatePickerProvider, 4 | useDatePickerContext, 5 | } from './DatePickerContext'; 6 | export { 7 | type DatePickerContextProps, 8 | type DatePickerProviderProps, 9 | } from './DatePickerContext.types'; 10 | -------------------------------------------------------------------------------- /packages/button/src/testing/getTestUtils.types.ts: -------------------------------------------------------------------------------- 1 | import { FormUtils } from '@lg-tools/test-harnesses'; 2 | 3 | export interface GetTestUtilsReturnType { 4 | findButton: () => Promise; 5 | getButton: () => T; 6 | queryButton: () => T | null; 7 | isDisabled: FormUtils['isDisabled']; 8 | } 9 | -------------------------------------------------------------------------------- /packages/polymorphic/src/Example/index.ts: -------------------------------------------------------------------------------- 1 | export { 2 | AdvancedPolymorphic, 3 | AdvancedPolymorphicWithRef, 4 | ExampleInferred, 5 | ExampleInferredDefaultButton, 6 | ExamplePolymorphic, 7 | ExamplePolymorphicWithRef, 8 | RestrictedExample, 9 | StyledExample, 10 | } from './Polymorphic.example'; 11 | -------------------------------------------------------------------------------- /packages/tabs/src/Tabs/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './Tabs'; 2 | export { 3 | inlineChildrenContainerClassName, 4 | tabContainerClassName, 5 | tabListElementClassName, 6 | tabPanelsElementClassName, 7 | } from './Tabs.styles'; 8 | export { type AccessibleTabsProps, Size, type TabsProps } from './Tabs.types'; 9 | -------------------------------------------------------------------------------- /packages/testing-lib/src/tabNTimes/index.ts: -------------------------------------------------------------------------------- 1 | import userEvent from '@testing-library/user-event'; 2 | import range from 'lodash/range'; 3 | 4 | /** Presses the `tab` key `count` times */ 5 | export const tabNTimes = (count: number) => { 6 | for (const _ in range(count)) { 7 | userEvent.tab(); 8 | } 9 | }; 10 | -------------------------------------------------------------------------------- /packages/text-input/src/TextInput/index.ts: -------------------------------------------------------------------------------- 1 | export { default } from './TextInput'; 2 | // Export types 3 | export type { TextInputProps } from './TextInput.types'; 4 | // Export constants 5 | export { 6 | SizeVariant, 7 | State, 8 | TextInputFontSize, 9 | TextInputType, 10 | } from './TextInput.types'; 11 | -------------------------------------------------------------------------------- /tools/lint/README.md: -------------------------------------------------------------------------------- 1 | # `@lg-tools/lint` 2 | 3 | Shared Lint config & tooling for LeafyGreen 4 | 5 | ## Usage 6 | 7 | Use from `@lg-tools/cli`. 8 | 9 | ```bash 10 | > lg lint 11 | ``` 12 | 13 | ### `fix` flag 14 | 15 | Fix fixable ESlint or Prettier issues 16 | 17 | ```bash 18 | > lg lint --fix 19 | ``` 20 | -------------------------------------------------------------------------------- /tools/slackbot/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "@lg-tools/build/config/node.tsconfig.json", 3 | "compilerOptions": {}, 4 | "include": [ 5 | "src/**/*" 6 | ], 7 | "exclude": [ 8 | "**/*.stories.*" 9 | ], 10 | "references": [ 11 | { 12 | "path": "../meta" 13 | } 14 | ] 15 | } 16 | -------------------------------------------------------------------------------- /chat/chat-window/src/rollup.config.mjs: -------------------------------------------------------------------------------- 1 | import sharedConfig from '@lg-tools/build/config/rollup.config.mjs'; 2 | import { nodeResolve } from '@rollup/plugin-node-resolve'; 3 | 4 | const config = sharedConfig.map(c => ({ 5 | ...c, 6 | plugins: [...c.plugins, nodeResolve()], 7 | })); 8 | 9 | export default config; 10 | -------------------------------------------------------------------------------- /packages/avatar/src/index.ts: -------------------------------------------------------------------------------- 1 | export { AssistantAvatar, type AssistantAvatarProps } from './AssistantAvatar'; 2 | export { 3 | Avatar, 4 | type AvatarProps, 5 | AvatarSize, 6 | type BaseAvatarProps, 7 | Format, 8 | } from './Avatar'; 9 | export { getInitials, supportedLatinRegex } from './utils/getInitials'; 10 | -------------------------------------------------------------------------------- /packages/code/src/Code/utils/hasMultipleLines.ts: -------------------------------------------------------------------------------- 1 | /** 2 | * Determines if a string has multiple lines. This is determined by the presence of a newline character 3 | * @param string 4 | * @returns boolean 5 | */ 6 | export function hasMultipleLines(string: string): boolean { 7 | return string.trim().includes('\n'); 8 | } 9 | -------------------------------------------------------------------------------- /packages/date-utils/src/getFullMonthLabel/getFullMonthLabel.ts: -------------------------------------------------------------------------------- 1 | import { getMonthName } from '../getMonthName'; 2 | 3 | /** Returns a long month label (i.e. September 2023) */ 4 | export const getFullMonthLabel = (date: Date): string => { 5 | return getMonthName(date.getUTCMonth()).long + ' ' + date.getUTCFullYear(); 6 | }; 7 | -------------------------------------------------------------------------------- /packages/gallery-indicator/src/testing/getTestUtils.types.ts: -------------------------------------------------------------------------------- 1 | export interface TestUtilsReturnType { 2 | /** 3 | * Returns the number of indicators/dots 4 | */ 5 | getIndicatorLength: () => number; 6 | 7 | /** 8 | * Returns the active indicator index 9 | */ 10 | getActiveIndex: () => number; 11 | } 12 | -------------------------------------------------------------------------------- /packages/progress-bar/src/ProgressBar/hooks/index.ts: -------------------------------------------------------------------------------- 1 | export { useComputedTransitionDuration } from './useComputedTransitionDuration'; 2 | export { useIdIdentifiers } from './useIdIdentifiers'; 3 | export { useRotatingItems } from './useRotatingItems'; 4 | export { useScreenReaderAnnouncer } from './useScreenReaderAnnouncer'; 5 | -------------------------------------------------------------------------------- /packages/stepper/src/types.ts: -------------------------------------------------------------------------------- 1 | export const StepStates = { 2 | CompletedMultiple: 'completed-multiple', 3 | Completed: 'completed', 4 | Current: 'current', 5 | Upcoming: 'upcoming', 6 | UpcomingMultiple: 'upcoming-multiple', 7 | }; 8 | 9 | export type StepState = (typeof StepStates)[keyof typeof StepStates]; 10 | -------------------------------------------------------------------------------- /packages/table/src/TableBody/TableBody.styles.ts: -------------------------------------------------------------------------------- 1 | import { css } from '@leafygreen-ui/emotion'; 2 | 3 | export const paddingTopStyles = css` 4 | padding-top: var(--virtual-padding-top, '0px'); 5 | `; 6 | 7 | export const paddingBottomStyles = css` 8 | padding-bottom: var(--virtual-padding-bottom, '0px'); 9 | `; 10 | -------------------------------------------------------------------------------- /packages/toolbar/src/index.ts: -------------------------------------------------------------------------------- 1 | export * from './constants'; 2 | export { Toolbar, toolbarClassName, type ToolbarProps } from './Toolbar'; 3 | export { 4 | ToolbarIconButton, 5 | type ToolbarIconButtonProps, 6 | } from './ToolbarIconButton'; 7 | export { DEFAULT_LGID_ROOT, getLgIds, type GetLgIdsReturnType } from './utils'; 8 | -------------------------------------------------------------------------------- /packages/leafygreen-provider/src/MigrationContext/MigrationContext.types.ts: -------------------------------------------------------------------------------- 1 | export interface MigrationContextType { 2 | /** 3 | * Determines globally if popover elements using `Popover` component from `@leafygreen-ui/popover` package should render in top layer 4 | * @internal 5 | */ 6 | forceUseTopLayer?: boolean; 7 | } 8 | -------------------------------------------------------------------------------- /packages/vertical-stepper/src/StepIcon/StepIcon.types.ts: -------------------------------------------------------------------------------- 1 | import { InternalVerticalStepProps } from '../VerticalStep'; 2 | 3 | export type StepIconProps = Pick< 4 | InternalVerticalStepProps, 5 | 'index' | 'state' 6 | > & { 7 | /** 8 | * Whether the step is completed 9 | */ 10 | isCompleted: boolean; 11 | }; 12 | --------------------------------------------------------------------------------