@mindlogic-ai/logician-ui 2.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +234 -0
- package/USAGE.md +299 -0
- package/dist/Markdown-2D5K42BY.js +16 -0
- package/dist/Markdown-2D5K42BY.js.map +1 -0
- package/dist/Markdown-AZBXO5ZP.css +29 -0
- package/dist/Markdown-AZBXO5ZP.css.map +1 -0
- package/dist/Markdown-RJJEQN4R.mjs +3 -0
- package/dist/Markdown-RJJEQN4R.mjs.map +1 -0
- package/dist/analytics-GNSHP7X3.svg +1 -0
- package/dist/bulb-24SQINQB.svg +1 -0
- package/dist/chat-TLRFEUAS.svg +1 -0
- package/dist/chunk-5FHXD7KR.js +1735 -0
- package/dist/chunk-5FHXD7KR.js.map +1 -0
- package/dist/chunk-WSOHBA2C.mjs +1693 -0
- package/dist/chunk-WSOHBA2C.mjs.map +1 -0
- package/dist/edit-RWL72JNM.svg +1 -0
- package/dist/face-55KPDCH4.svg +1 -0
- package/dist/filled-analytics-RBC7KWND.svg +1 -0
- package/dist/filled-bulb-RC7E2WSM.svg +1 -0
- package/dist/filled-chat-A6J44Q7A.svg +1 -0
- package/dist/filled-edit-NKKWFSTW.svg +1 -0
- package/dist/filled-face-UML5C3LB.svg +1 -0
- package/dist/filled-layout-HBVCSDFO.svg +1 -0
- package/dist/index.css +51 -0
- package/dist/index.css.map +1 -0
- package/dist/index.d.mts +964 -0
- package/dist/index.d.ts +964 -0
- package/dist/index.js +5600 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +5401 -0
- package/dist/index.mjs.map +1 -0
- package/dist/language-VBJ24OPV.svg +1 -0
- package/dist/layout-NDDSWNNV.svg +1 -0
- package/dist/pending-NF7NSBYO.svg +1 -0
- package/dist/receipt-MNLQIFCO.svg +1 -0
- package/dist/sparkles-EOEGVL6G.svg +1 -0
- package/dist/store-3RQPBJWG.svg +1 -0
- package/dist/store_active-SAOAGVKC.svg +1 -0
- package/dist/studio-LYPUIEFA.svg +1 -0
- package/dist/studio_active-BC6O66OI.svg +1 -0
- package/dist/vertical-ellipsis-3G4WEOCW.svg +1 -0
- package/package.json +138 -0
- package/src/components/Accordion/Accordion.stories.tsx +41 -0
- package/src/components/Accordion/Accordion.tsx +14 -0
- package/src/components/Accordion/AccordionButton.tsx +40 -0
- package/src/components/Accordion/AccordionItem.tsx +17 -0
- package/src/components/Accordion/index.ts +4 -0
- package/src/components/Alert/Alert.stories.tsx +38 -0
- package/src/components/Alert/Alert.styles.ts +19 -0
- package/src/components/Alert/Alert.tsx +41 -0
- package/src/components/Alert/Alert.types.ts +5 -0
- package/src/components/Alert/index.ts +1 -0
- package/src/components/AutowidthInput/AutowidthInput.stories.tsx +23 -0
- package/src/components/AutowidthInput/AutowidthInput.tsx +47 -0
- package/src/components/AutowidthInput/index.ts +1 -0
- package/src/components/Avatar/Avatar.stories.tsx +23 -0
- package/src/components/Avatar/Avatar.tsx +19 -0
- package/src/components/Avatar/index.tsx +1 -0
- package/src/components/Badge/Badge.stories.tsx +23 -0
- package/src/components/Badge/Badge.styles.ts +11 -0
- package/src/components/Badge/Badge.tsx +26 -0
- package/src/components/Badge/index.ts +2 -0
- package/src/components/Banner/Banner.stories.tsx +37 -0
- package/src/components/Banner/Banner.styles.ts +79 -0
- package/src/components/Banner/Banner.tsx +68 -0
- package/src/components/Banner/Banner.types.ts +6 -0
- package/src/components/Banner/index.ts +2 -0
- package/src/components/Breadcrumb/Breadcrumb.stories.tsx +14 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +19 -0
- package/src/components/Breadcrumb/Breadcrumb.types.ts +3 -0
- package/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.tsx +12 -0
- package/src/components/Breadcrumb/BreadcrumbItem/BreadcrumbItem.types.ts +3 -0
- package/src/components/Breadcrumb/BreadcrumbItem/index.ts +2 -0
- package/src/components/Breadcrumb/BreadcrumbLink/BreadcrumbLink.tsx +30 -0
- package/src/components/Breadcrumb/BreadcrumbLink/BreadcrumbLink.types.ts +3 -0
- package/src/components/Breadcrumb/BreadcrumbLink/index.ts +2 -0
- package/src/components/Breadcrumb/index.ts +3 -0
- package/src/components/Button/Button.stories.tsx +52 -0
- package/src/components/Button/Button.styles.ts +59 -0
- package/src/components/Button/Button.tsx +43 -0
- package/src/components/Button/Button.types.ts +13 -0
- package/src/components/Button/index.tsx +3 -0
- package/src/components/Card/Card.stories.tsx +24 -0
- package/src/components/Card/Card.styles.ts +30 -0
- package/src/components/Card/Card.tsx +29 -0
- package/src/components/Card/Card.types.ts +8 -0
- package/src/components/Card/index.ts +2 -0
- package/src/components/Carousel/Carousel.stories.tsx +159 -0
- package/src/components/Carousel/Carousel.tsx +160 -0
- package/src/components/Carousel/Carousel.types.ts +22 -0
- package/src/components/Carousel/index.ts +1 -0
- package/src/components/CarouselModal/CarouselModal.stories.tsx +53 -0
- package/src/components/CarouselModal/CarouselModal.tsx +106 -0
- package/src/components/CarouselModal/CarouselModal.types.ts +16 -0
- package/src/components/CarouselModal/index.ts +2 -0
- package/src/components/Checkbox/Checkbox.stories.tsx +16 -0
- package/src/components/Checkbox/Checkbox.tsx +29 -0
- package/src/components/Checkbox/Checkbox.types.ts +3 -0
- package/src/components/Checkbox/index.ts +2 -0
- package/src/components/Chip/Chip.stories.tsx +44 -0
- package/src/components/Chip/Chip.styles.ts +114 -0
- package/src/components/Chip/Chip.tsx +23 -0
- package/src/components/Chip/Chip.types.ts +14 -0
- package/src/components/Chip/index.ts +2 -0
- package/src/components/ChipButton/Chip.types.ts +4 -0
- package/src/components/ChipButton/ChipButton.tsx +25 -0
- package/src/components/ChipButton/index.ts +1 -0
- package/src/components/Code/Code.stories.tsx +28 -0
- package/src/components/Code/Code.tsx +160 -0
- package/src/components/Code/Code.types.ts +40 -0
- package/src/components/Code/_components/CopyButton.tsx +48 -0
- package/src/components/Code/index.ts +1 -0
- package/src/components/CodeTabs/CodeTabs.stories.tsx +51 -0
- package/src/components/CodeTabs/CodeTabs.tsx +98 -0
- package/src/components/CodeTabs/CodeTabs.types.ts +17 -0
- package/src/components/CodeTabs/index.ts +1 -0
- package/src/components/Container/Container.stories.tsx +28 -0
- package/src/components/Container/Container.tsx +21 -0
- package/src/components/Container/index.ts +1 -0
- package/src/components/Container/useContainerSize.ts +47 -0
- package/src/components/CopyableCode/CopyableCode.stories.tsx +26 -0
- package/src/components/CopyableCode/CopyableCode.tsx +58 -0
- package/src/components/CopyableCode/CopyableCode.types.ts +7 -0
- package/src/components/CopyableCode/index.ts +2 -0
- package/src/components/CrossPageToasts/CrossPageToasts.tsx +33 -0
- package/src/components/CrossPageToasts/index.ts +1 -0
- package/src/components/DataField/DataField.stories.tsx +61 -0
- package/src/components/DataField/DataField.styles.ts +33 -0
- package/src/components/DataField/DataField.tsx +141 -0
- package/src/components/DataField/DataField.types.ts +18 -0
- package/src/components/DataField/index.ts +1 -0
- package/src/components/DatePicker/RangeDatePicker.stories.tsx +45 -0
- package/src/components/DatePicker/RangeDatePicker.tsx +74 -0
- package/src/components/DatePicker/SingleDatePicker.stories.tsx +31 -0
- package/src/components/DatePicker/SingleDatePicker.tsx +72 -0
- package/src/components/DatePicker/index.ts +2 -0
- package/src/components/FileInput/FileInput.stories.tsx +28 -0
- package/src/components/FileInput/FileInput.tsx +117 -0
- package/src/components/FileInput/FileInput.types.ts +14 -0
- package/src/components/FileInput/index.ts +2 -0
- package/src/components/FileItem/FileItem.stories.tsx +27 -0
- package/src/components/FileItem/FileItem.tsx +134 -0
- package/src/components/FileItem/FileItem.types.ts +11 -0
- package/src/components/FileItem/index.ts +1 -0
- package/src/components/FileList/FileList.stories.tsx +65 -0
- package/src/components/FileList/FileList.tsx +97 -0
- package/src/components/FileList/FileList.types.ts +18 -0
- package/src/components/FileList/index.tsx +1 -0
- package/src/components/FormControl/FormControl.stories.tsx +16 -0
- package/src/components/FormControl/FormControl.tsx +12 -0
- package/src/components/FormControl/FormControl.types.ts +3 -0
- package/src/components/FormControl/index.ts +2 -0
- package/src/components/FormLabel/FormLabel.tsx +5 -0
- package/src/components/FormLabel/index.ts +1 -0
- package/src/components/GuideCue/GuideCue.stories.tsx +57 -0
- package/src/components/GuideCue/GuideCue.tsx +231 -0
- package/src/components/GuideCue/GuideCueContext.tsx +70 -0
- package/src/components/GuideCue/index.ts +2 -0
- package/src/components/Icon/Icon.stories.tsx +77 -0
- package/src/components/Icon/Icon.styles.ts +6 -0
- package/src/components/Icon/Icon.tsx +73 -0
- package/src/components/Icon/Icon.types.ts +10 -0
- package/src/components/Icon/IconMap.ts +290 -0
- package/src/components/Icon/icons/analytics.svg +1 -0
- package/src/components/Icon/icons/bulb.svg +1 -0
- package/src/components/Icon/icons/chat.svg +1 -0
- package/src/components/Icon/icons/edit.svg +1 -0
- package/src/components/Icon/icons/face.svg +1 -0
- package/src/components/Icon/icons/filled-analytics.svg +1 -0
- package/src/components/Icon/icons/filled-bulb.svg +1 -0
- package/src/components/Icon/icons/filled-chat.svg +1 -0
- package/src/components/Icon/icons/filled-edit.svg +1 -0
- package/src/components/Icon/icons/filled-face.svg +1 -0
- package/src/components/Icon/icons/filled-layout.svg +1 -0
- package/src/components/Icon/icons/language.svg +1 -0
- package/src/components/Icon/icons/layout.svg +1 -0
- package/src/components/Icon/icons/pending.svg +1 -0
- package/src/components/Icon/icons/receipt.svg +1 -0
- package/src/components/Icon/icons/sparkles.svg +1 -0
- package/src/components/Icon/icons/store.svg +1 -0
- package/src/components/Icon/icons/store_active.svg +1 -0
- package/src/components/Icon/icons/studio.svg +1 -0
- package/src/components/Icon/icons/studio_active.svg +1 -0
- package/src/components/Icon/icons/vertical-ellipsis.svg +1 -0
- package/src/components/Icon/index.tsx +3 -0
- package/src/components/IconButton/IconButton.stories.tsx +51 -0
- package/src/components/IconButton/IconButton.styles.ts +52 -0
- package/src/components/IconButton/IconButton.tsx +36 -0
- package/src/components/IconButton/IconButton.types.ts +12 -0
- package/src/components/IconButton/index.tsx +1 -0
- package/src/components/InfoSprinkle/InfoSprinkle.stories.tsx +25 -0
- package/src/components/InfoSprinkle/InfoSprinkle.tsx +48 -0
- package/src/components/InfoSprinkle/index.ts +1 -0
- package/src/components/InlineCode/InlineCode.tsx +18 -0
- package/src/components/InlineCode/index.ts +1 -0
- package/src/components/Input/Input.stories.tsx +55 -0
- package/src/components/Input/Input.tsx +358 -0
- package/src/components/Input/Input.types.ts +19 -0
- package/src/components/Input/index.tsx +2 -0
- package/src/components/LineGraph/LineGraph.stories.tsx +98 -0
- package/src/components/LineGraph/LineGraph.tsx +88 -0
- package/src/components/LineGraph/LineGraph.types.ts +41 -0
- package/src/components/LineGraph/index.ts +1 -0
- package/src/components/Link/Link.styles.ts +13 -0
- package/src/components/Link/Link.tsx +93 -0
- package/src/components/Link/index.ts +1 -0
- package/src/components/Loaders/PageLoader.stories.tsx +29 -0
- package/src/components/Loaders/PageLoader.tsx +30 -0
- package/src/components/Loaders/SectionLoader.stories.tsx +26 -0
- package/src/components/Loaders/SectionLoader.tsx +30 -0
- package/src/components/Loaders/index.ts +1 -0
- package/src/components/MDXEditor/MDXEditor.css +21 -0
- package/src/components/MDXEditor/MDXEditor.stories.tsx +45 -0
- package/src/components/MDXEditor/MDXEditor.tsx +189 -0
- package/src/components/MDXEditor/MDXEditor.types.ts +6 -0
- package/src/components/MDXEditor/index.ts +1 -0
- package/src/components/Markdown/Markdown.module.css +30 -0
- package/src/components/Markdown/Markdown.tsx +133 -0
- package/src/components/Markdown/Markdown.types.ts +5 -0
- package/src/components/Markdown/index.ts +2 -0
- package/src/components/Masonry/Masonry.stories.tsx +288 -0
- package/src/components/Masonry/Masonry.tsx +187 -0
- package/src/components/Masonry/Masonry.types.ts +18 -0
- package/src/components/Masonry/index.ts +2 -0
- package/src/components/MaxLengthIndicator/MaxLengthIndicator.stories.tsx +26 -0
- package/src/components/MaxLengthIndicator/MaxLengthIndicator.tsx +25 -0
- package/src/components/MaxLengthIndicator/index.tsx +1 -0
- package/src/components/Menu/Menu.stories.tsx +186 -0
- package/src/components/Menu/MenuButton.tsx +8 -0
- package/src/components/Menu/MenuButton.types.ts +23 -0
- package/src/components/Menu/MenuItem.tsx +35 -0
- package/src/components/Menu/MenuItem.types.ts +13 -0
- package/src/components/Menu/MenuList.tsx +19 -0
- package/src/components/Menu/index.ts +7 -0
- package/src/components/Modal/Modal.stories.tsx +83 -0
- package/src/components/Modal/Modal.styles.ts +14 -0
- package/src/components/Modal/Modal.tsx +14 -0
- package/src/components/Modal/Modal.types.ts +3 -0
- package/src/components/Modal/ModalBody.tsx +9 -0
- package/src/components/Modal/ModalCloseButton.tsx +18 -0
- package/src/components/Modal/ModalContent/ModalContent.tsx +8 -0
- package/src/components/Modal/ModalContent/ModalContent.types.ts +3 -0
- package/src/components/Modal/ModalContent/index.ts +1 -0
- package/src/components/Modal/ModalFooter/ModalFooter.module.css +3 -0
- package/src/components/Modal/ModalFooter/ModalFooter.tsx +20 -0
- package/src/components/Modal/ModalFooter/index.ts +1 -0
- package/src/components/Modal/ModalHeader.tsx +9 -0
- package/src/components/Modal/ModalOverlay.tsx +9 -0
- package/src/components/Modal/index.tsx +8 -0
- package/src/components/MonthRangePicker/MonthButton/MonthButton.tsx +105 -0
- package/src/components/MonthRangePicker/MonthButton/MonthButton.types.ts +42 -0
- package/src/components/MonthRangePicker/MonthButton/index.ts +2 -0
- package/src/components/MonthRangePicker/MonthRangePicker.stories.tsx +164 -0
- package/src/components/MonthRangePicker/MonthRangePicker.tsx +274 -0
- package/src/components/MonthRangePicker/MonthRangePicker.types.ts +38 -0
- package/src/components/MonthRangePicker/_utils/hasEnabledMonthsInYear.ts +15 -0
- package/src/components/MonthRangePicker/_utils/index.ts +6 -0
- package/src/components/MonthRangePicker/_utils/isMonthDisabled.ts +20 -0
- package/src/components/MonthRangePicker/_utils/isMonthInPreviewRange.ts +32 -0
- package/src/components/MonthRangePicker/_utils/isMonthInRange.ts +17 -0
- package/src/components/MonthRangePicker/_utils/isMonthSelected.ts +19 -0
- package/src/components/MonthRangePicker/_utils/isSelectionStart.ts +12 -0
- package/src/components/MonthRangePicker/constants.ts +63 -0
- package/src/components/MonthRangePicker/index.ts +2 -0
- package/src/components/Pagination/Pagination.stories.tsx +51 -0
- package/src/components/Pagination/Pagination.tsx +150 -0
- package/src/components/Pagination/Pagination.types.ts +12 -0
- package/src/components/Pagination/index.tsx +1 -0
- package/src/components/PasswordInput/PasswordInput.stories.tsx +16 -0
- package/src/components/PasswordInput/PasswordInput.tsx +42 -0
- package/src/components/PasswordInput/PasswordInput.types.ts +11 -0
- package/src/components/PasswordInput/index.ts +1 -0
- package/src/components/PinInput/PinInput.stories.tsx +26 -0
- package/src/components/PinInput/PinInput.tsx +53 -0
- package/src/components/PinInput/PinInput.types.ts +27 -0
- package/src/components/PinInput/index.tsx +2 -0
- package/src/components/ProgressBar/ProgressBar.stories.tsx +18 -0
- package/src/components/ProgressBar/ProgressBar.styles.ts +4 -0
- package/src/components/ProgressBar/ProgressBar.tsx +27 -0
- package/src/components/ProgressBar/ProgressBar.types.ts +4 -0
- package/src/components/ProgressBar/index.ts +1 -0
- package/src/components/RadialProgress/RadialProgress.stories.tsx +272 -0
- package/src/components/RadialProgress/RadialProgress.tsx +232 -0
- package/src/components/RadialProgress/RadialProgress.types.ts +27 -0
- package/src/components/RadialProgress/index.ts +2 -0
- package/src/components/Radio/Radio.stories.tsx +226 -0
- package/src/components/Radio/Radio.tsx +35 -0
- package/src/components/Radio/Radio.types.ts +21 -0
- package/src/components/Radio/RadioGroup.tsx +26 -0
- package/src/components/Radio/index.ts +3 -0
- package/src/components/SeeMoreButton/SeeMoreButton.stories.tsx +48 -0
- package/src/components/SeeMoreButton/SeeMoreButton.styles.ts +11 -0
- package/src/components/SeeMoreButton/SeeMoreButton.tsx +34 -0
- package/src/components/SeeMoreButton/SeeMoreButton.types.ts +6 -0
- package/src/components/SeeMoreButton/index.tsx +1 -0
- package/src/components/SegmentedControl/SegmentedControl.stories.tsx +96 -0
- package/src/components/SegmentedControl/SegmentedControl.styles.ts +28 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +89 -0
- package/src/components/SegmentedControl/SegmentedControl.types.ts +15 -0
- package/src/components/SegmentedControl/index.ts +2 -0
- package/src/components/SegmentedProgressBar/ProgressSegment.tsx +18 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.stories.tsx +228 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.tsx +25 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBar.types.ts +11 -0
- package/src/components/SegmentedProgressBar/SegmentedProgressBarContext.tsx +24 -0
- package/src/components/SegmentedProgressBar/index.ts +3 -0
- package/src/components/Select/MenuList/MenuList.tsx +87 -0
- package/src/components/Select/MenuList/MenuList.types.ts +21 -0
- package/src/components/Select/MenuList/VirtualizedMenuList.tsx +140 -0
- package/src/components/Select/MenuList/VirtualizedMenuListContext.tsx +35 -0
- package/src/components/Select/MenuList/index.ts +3 -0
- package/src/components/Select/Select.stories.tsx +70 -0
- package/src/components/Select/Select.styles.ts +102 -0
- package/src/components/Select/Select.tsx +204 -0
- package/src/components/Select/Select.types.ts +18 -0
- package/src/components/Select/_utils/resolveStyle.ts +21 -0
- package/src/components/Select/index.ts +1 -0
- package/src/components/Slider/Slider.stories.tsx +75 -0
- package/src/components/Slider/Slider.tsx +12 -0
- package/src/components/Slider/Slider.types.ts +3 -0
- package/src/components/Slider/SliderFilledTrack/SliderFilledTrack.tsx +14 -0
- package/src/components/Slider/SliderFilledTrack/SliderFilledTrack.types.ts +3 -0
- package/src/components/Slider/SliderFilledTrack/index.ts +2 -0
- package/src/components/Slider/SliderMark/SliderMark.tsx +12 -0
- package/src/components/Slider/SliderMark/SliderMark.types.ts +3 -0
- package/src/components/Slider/SliderMark/index.ts +2 -0
- package/src/components/Slider/SliderThumb/SliderThumb.tsx +22 -0
- package/src/components/Slider/SliderThumb/SliderThumb.types.ts +3 -0
- package/src/components/Slider/SliderThumb/index.ts +2 -0
- package/src/components/Slider/SliderTrack/SliderTrack.tsx +12 -0
- package/src/components/Slider/SliderTrack/SliderTrack.types.ts +3 -0
- package/src/components/Slider/SliderTrack/index.ts +2 -0
- package/src/components/Slider/index.ts +5 -0
- package/src/components/Spinner/Spinner.stories.tsx +16 -0
- package/src/components/Spinner/Spinner.tsx +20 -0
- package/src/components/Spinner/Spinner.types.ts +3 -0
- package/src/components/Spinner/index.ts +2 -0
- package/src/components/Switch/Switch.stories.tsx +63 -0
- package/src/components/Switch/Switch.tsx +8 -0
- package/src/components/Switch/index.ts +1 -0
- package/src/components/Table/ExpandingTr/ExpandingTr.tsx +31 -0
- package/src/components/Table/ExpandingTr/ExpandingTr.types.ts +9 -0
- package/src/components/Table/ExpandingTr/index.ts +2 -0
- package/src/components/Table/Table.stories.tsx +326 -0
- package/src/components/Table/Table.styles.ts +48 -0
- package/src/components/Table/Table.tsx +9 -0
- package/src/components/Table/Table.types.ts +16 -0
- package/src/components/Table/TableContainer.tsx +55 -0
- package/src/components/Table/TableContext.tsx +187 -0
- package/src/components/Table/Tbody.tsx +12 -0
- package/src/components/Table/Td.tsx +138 -0
- package/src/components/Table/Th.tsx +154 -0
- package/src/components/Table/Thead.tsx +5 -0
- package/src/components/Table/Tr.tsx +5 -0
- package/src/components/Table/index.tsx +8 -0
- package/src/components/Tabs/Tab/Tab.styles.ts +35 -0
- package/src/components/Tabs/Tab/Tab.tsx +67 -0
- package/src/components/Tabs/Tab/index.ts +1 -0
- package/src/components/Tabs/TabList/TabList.styles.ts +11 -0
- package/src/components/Tabs/TabList/TabList.tsx +19 -0
- package/src/components/Tabs/TabList/index.ts +1 -0
- package/src/components/Tabs/TabPanel.tsx +5 -0
- package/src/components/Tabs/TabPanels.tsx +5 -0
- package/src/components/Tabs/Tabs.stories.tsx +45 -0
- package/src/components/Tabs/Tabs.tsx +65 -0
- package/src/components/Tabs/Tabs.types.ts +19 -0
- package/src/components/Tabs/TabsContext.tsx +162 -0
- package/src/components/Tabs/index.tsx +5 -0
- package/src/components/Tag/Tag.stories.tsx +28 -0
- package/src/components/Tag/Tag.styles.ts +12 -0
- package/src/components/Tag/Tag.tsx +23 -0
- package/src/components/Tag/Tag.types.ts +5 -0
- package/src/components/Tag/TagCloseButton/TagCloseButton.tsx +12 -0
- package/src/components/Tag/TagCloseButton/TagCloseButton.types.ts +3 -0
- package/src/components/Tag/TagCloseButton/index.ts +2 -0
- package/src/components/Tag/TagLabel/TagLabel.tsx +12 -0
- package/src/components/Tag/TagLabel/TagLabel.types.ts +3 -0
- package/src/components/Tag/TagLabel/index.ts +2 -0
- package/src/components/Tag/TagLeftIcon/TagLeftIcon.tsx +12 -0
- package/src/components/Tag/TagLeftIcon/TagLeftIcon.types.ts +3 -0
- package/src/components/Tag/TagLeftIcon/index.ts +2 -0
- package/src/components/Tag/TagRightIcon/TagRightIcon.tsx +12 -0
- package/src/components/Tag/TagRightIcon/TagRightIcon.types.ts +3 -0
- package/src/components/Tag/TagRightIcon/index.ts +2 -0
- package/src/components/Tag/index.ts +5 -0
- package/src/components/Textarea/Textarea.tsx +56 -0
- package/src/components/Textarea/adjustHeight.tsx +9 -0
- package/src/components/Textarea/index.ts +1 -0
- package/src/components/Toast/Toast.stories.tsx +49 -0
- package/src/components/Toast/Toast.styles.ts +19 -0
- package/src/components/Toast/Toast.tsx +38 -0
- package/src/components/Toast/Toast.types.ts +22 -0
- package/src/components/Toast/ToastIcon/ToastIcon.tsx +26 -0
- package/src/components/Toast/ToastIcon/index.ts +0 -0
- package/src/components/Toast/index.ts +2 -0
- package/src/components/Toast/useToast.tsx +65 -0
- package/src/components/Tooltip/Tooltip.stories.tsx +97 -0
- package/src/components/Tooltip/Tooltip.tsx +22 -0
- package/src/components/Tooltip/Tooltip.types.ts +3 -0
- package/src/components/Tooltip/index.ts +2 -0
- package/src/components/Typography/H1.tsx +17 -0
- package/src/components/Typography/H2.tsx +17 -0
- package/src/components/Typography/H3.tsx +17 -0
- package/src/components/Typography/H4.tsx +17 -0
- package/src/components/Typography/H5.tsx +17 -0
- package/src/components/Typography/Link.tsx +49 -0
- package/src/components/Typography/Subtext.tsx +17 -0
- package/src/components/Typography/Subtitle.tsx +18 -0
- package/src/components/Typography/Text.tsx +22 -0
- package/src/components/Typography/Typography.stories.tsx +54 -0
- package/src/components/Typography/Typography.types.ts +3 -0
- package/src/components/Typography/index.ts +26 -0
- package/src/components/UrlInput/UrlInput.stories.tsx +66 -0
- package/src/components/UrlInput/UrlInput.tsx +47 -0
- package/src/components/UrlInput/index.tsx +1 -0
- package/src/hooks/useLocale.ts +11 -0
- package/src/hooks/useTranslate.ts +57 -0
- package/src/index.ts +96 -0
- package/src/theme/Palette.stories.tsx +171 -0
- package/src/theme/colors.ts +64 -0
- package/src/theme/font.ts +23 -0
- package/src/theme/global.ts +30 -0
- package/src/theme/index.ts +49 -0
- package/src/translations/Defaults.translations.json +100 -0
- package/src/types/css-modules.d.ts +0 -0
- package/src/types/svg.d.ts +15 -0
- package/src/utils/findKeyByValue.ts +17 -0
- package/src/utils/formatDateByLocale.ts +36 -0
- package/src/utils/formatFileSize.ts +14 -0
- package/src/utils/formatNumber.ts +29 -0
- package/src/utils/formatTextForMarkdown.ts +3 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,964 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as _chakra_ui_react from '@chakra-ui/react';
|
|
3
|
+
import { AccordionProps, ChakraProps, AlertProps as AlertProps$1, InputProps as InputProps$1, AvatarProps, BadgeProps, BoxProps, BreadcrumbProps as BreadcrumbProps$1, BreadcrumbItemProps as BreadcrumbItemProps$1, BreadcrumbLinkProps as BreadcrumbLinkProps$1, ButtonProps as ButtonProps$1, CardProps as CardProps$1, ModalProps as ModalProps$1, ModalBodyProps, ModalCloseButtonProps, ModalContentProps as ModalContentProps$1, ModalFooterProps, ModalHeaderProps, ModalOverlayProps, CheckboxProps as CheckboxProps$1, TabsProps as TabsProps$1, ContainerProps, FlexProps, EditableProps, EditablePreviewProps, InputGroupProps, InputLeftElementProps, InputRightElementProps, FormControlProps as FormControlProps$1, FormLabelProps, PopoverProps, IconButtonProps as IconButtonProps$1, CodeProps as CodeProps$1, LinkProps as LinkProps$1, TextProps, MenuButtonProps, Button as Button$1, MenuItemProps as MenuItemProps$1, MenuListProps, ProgressProps, RadioProps as RadioProps$1, RadioGroupProps as RadioGroupProps$1, StackDirection, theme, SliderProps as SliderProps$1, SliderTrackProps as SliderTrackProps$1, SliderMarkProps as SliderMarkProps$1, SliderThumbProps as SliderThumbProps$1, SpinnerProps as SpinnerProps$1, TableRowProps, TableProps, TableContainerProps as TableContainerProps$1, TableCellProps as TableCellProps$1, TableBodyProps, TableColumnHeaderProps, TableHeadProps, TabProps as TabProps$1, TabListProps, TabPanelProps, TabPanelsProps, TagProps as TagProps$1, TagCloseButtonProps as TagCloseButtonProps$1, TagLabelProps as TagLabelProps$1, IconProps as IconProps$1, TextareaProps, UseToastOptions, TooltipProps as TooltipProps$1, HeadingProps } from '@chakra-ui/react';
|
|
4
|
+
export { AccordionPanel } from '@chakra-ui/react';
|
|
5
|
+
import * as react from 'react';
|
|
6
|
+
import react__default, { PropsWithChildren, ReactNode, RefObject, SVGProps } from 'react';
|
|
7
|
+
import { SyntaxHighlighterProps } from 'react-syntax-highlighter';
|
|
8
|
+
import { RangeDatepickerProps, SingleDatepickerProps } from 'chakra-dayzed-datepicker';
|
|
9
|
+
import { IconType as IconType$1 } from 'react-icons/lib';
|
|
10
|
+
import { DataKey as DataKey$1 } from 'recharts/types/util/types.d';
|
|
11
|
+
import { Options } from 'react-markdown';
|
|
12
|
+
import { MDXEditorProps as MDXEditorProps$1 } from '@mdxeditor/editor';
|
|
13
|
+
import { GroupBase, Props } from 'react-select';
|
|
14
|
+
|
|
15
|
+
declare const Accordion: (props: AccordionProps) => react_jsx_runtime.JSX.Element;
|
|
16
|
+
|
|
17
|
+
declare const AccordionButton: ({ _hover, _expanded, customIcon, children, ...rest }: PropsWithChildren<ChakraProps> & {
|
|
18
|
+
customIcon?: ReactNode;
|
|
19
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
20
|
+
|
|
21
|
+
declare const AccordionItem: ({ _first, _last, ...rest }: {
|
|
22
|
+
[x: string]: any;
|
|
23
|
+
_first?: {};
|
|
24
|
+
_last?: {};
|
|
25
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
26
|
+
|
|
27
|
+
interface AlertProps extends AlertProps$1 {
|
|
28
|
+
onClose?: () => void;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* A reusable Alert component that displays status messages.
|
|
33
|
+
*
|
|
34
|
+
* @param children - The content to display inside the alert.
|
|
35
|
+
* @param status - The status of the alert. Determines the visual style of the alert.
|
|
36
|
+
* Options: `'error' | 'success' | 'warning' | 'info'`.
|
|
37
|
+
* Default: `'error'`.
|
|
38
|
+
* @param onClose - Callback function triggered when the close button is clicked.
|
|
39
|
+
* If provided, a close button will be rendered in the alert.
|
|
40
|
+
* The function receives no arguments.
|
|
41
|
+
* @param rest - Additional props inherited from Chakra UI's `AlertProps`.
|
|
42
|
+
*/
|
|
43
|
+
declare const Alert: ({ children, status, onClose, ...rest }: AlertProps) => react_jsx_runtime.JSX.Element;
|
|
44
|
+
|
|
45
|
+
declare const AutowidthInput: ({ value, placeholder, style, widthMeasureProps, ...rest }: InputProps$1 & {
|
|
46
|
+
widthMeasureProps?: any;
|
|
47
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
48
|
+
|
|
49
|
+
declare const Avatar: react.ForwardRefExoticComponent<AvatarProps & react.RefAttributes<unknown>>;
|
|
50
|
+
|
|
51
|
+
declare const Badge: react.ForwardRefExoticComponent<BadgeProps & react.RefAttributes<HTMLButtonElement>>;
|
|
52
|
+
|
|
53
|
+
declare const baseStyles: {
|
|
54
|
+
borderRadius: string;
|
|
55
|
+
px: number;
|
|
56
|
+
fontSize: string;
|
|
57
|
+
fontWeight: string;
|
|
58
|
+
color: string;
|
|
59
|
+
bgColor: string;
|
|
60
|
+
display: string;
|
|
61
|
+
alignItems: string;
|
|
62
|
+
justifyContent: string;
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
interface BannerProps extends BoxProps {
|
|
66
|
+
variant?: 'info' | 'success' | 'warning' | 'danger';
|
|
67
|
+
hideIcon?: boolean;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare const Banner: react.ForwardRefExoticComponent<BannerProps & react.RefAttributes<HTMLDivElement>>;
|
|
71
|
+
|
|
72
|
+
interface BreadcrumbProps extends BreadcrumbProps$1 {
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
declare const Breadcrumb: react.ForwardRefExoticComponent<BreadcrumbProps & react.RefAttributes<HTMLDivElement>>;
|
|
76
|
+
|
|
77
|
+
interface BreadcrumbItemProps extends BreadcrumbItemProps$1 {
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
declare const BreadcrumbItem: react.ForwardRefExoticComponent<BreadcrumbItemProps & react.RefAttributes<HTMLDivElement>>;
|
|
81
|
+
|
|
82
|
+
interface BreadcrumbLinkProps extends BreadcrumbLinkProps$1 {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
declare const BreadcrumbLink: react.ForwardRefExoticComponent<BreadcrumbLinkProps & react.RefAttributes<HTMLDivElement>>;
|
|
86
|
+
|
|
87
|
+
type ButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'danger' | 'link' | undefined;
|
|
88
|
+
type ButtonProps = Omit<ButtonProps$1, 'variant'> & {
|
|
89
|
+
variant?: ButtonVariant;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
declare const Button: react.ForwardRefExoticComponent<Omit<_chakra_ui_react.ButtonProps, "variant"> & {
|
|
93
|
+
variant?: ButtonVariant;
|
|
94
|
+
} & react.RefAttributes<unknown>>;
|
|
95
|
+
|
|
96
|
+
declare const variantStyles: Record<Exclude<ButtonVariant, undefined>, Partial<ButtonProps$1>>;
|
|
97
|
+
|
|
98
|
+
type CardVariant = 'default' | 'gradient';
|
|
99
|
+
type CardProps = CardProps$1 & {
|
|
100
|
+
clickable?: boolean;
|
|
101
|
+
variant?: CardVariant;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
declare const Card: react.ForwardRefExoticComponent<_chakra_ui_react.CardProps & {
|
|
105
|
+
clickable?: boolean;
|
|
106
|
+
variant?: CardVariant;
|
|
107
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
108
|
+
|
|
109
|
+
interface CarouselProps extends BoxProps {
|
|
110
|
+
/**
|
|
111
|
+
* Will autoplay if defined
|
|
112
|
+
*/
|
|
113
|
+
autoplayDuration?: number;
|
|
114
|
+
currentSlide?: number;
|
|
115
|
+
onSlideChange?: (newSlide: number) => void;
|
|
116
|
+
/**
|
|
117
|
+
* @default 0
|
|
118
|
+
*/
|
|
119
|
+
defaultSlide?: number;
|
|
120
|
+
/**
|
|
121
|
+
* @default true
|
|
122
|
+
*/
|
|
123
|
+
showIndicators?: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* @default true
|
|
126
|
+
*/
|
|
127
|
+
showArrows?: boolean;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
declare const Carousel: react__default.FC<CarouselProps>;
|
|
131
|
+
|
|
132
|
+
type ModalProps = ModalProps$1;
|
|
133
|
+
|
|
134
|
+
declare const Modal: ({ children, ...rest }: ModalProps) => react_jsx_runtime.JSX.Element;
|
|
135
|
+
|
|
136
|
+
declare const ModalBody: ({ ...rest }: ModalBodyProps) => react_jsx_runtime.JSX.Element;
|
|
137
|
+
|
|
138
|
+
declare const ModalCloseButton: ({ ...rest }: ModalCloseButtonProps) => react_jsx_runtime.JSX.Element;
|
|
139
|
+
|
|
140
|
+
type ModalContentProps = ModalContentProps$1;
|
|
141
|
+
|
|
142
|
+
declare const ModalContent: ({ ...rest }: ModalContentProps) => react_jsx_runtime.JSX.Element;
|
|
143
|
+
|
|
144
|
+
declare const ModalFooter: ({ className, ...rest }: ModalFooterProps) => react_jsx_runtime.JSX.Element;
|
|
145
|
+
|
|
146
|
+
declare const ModalHeader: ({ ...rest }: ModalHeaderProps) => react_jsx_runtime.JSX.Element;
|
|
147
|
+
|
|
148
|
+
declare const ModalOverlay: ({ ...rest }: ModalOverlayProps) => react_jsx_runtime.JSX.Element;
|
|
149
|
+
|
|
150
|
+
type CarouselModalProps = Omit<ModalProps, 'children' | 'initialFocusRef'> & {
|
|
151
|
+
slides: Array<{
|
|
152
|
+
/**
|
|
153
|
+
* Recommended image resolution is 400 x 540 ish.
|
|
154
|
+
*/
|
|
155
|
+
image: string;
|
|
156
|
+
text: ReactNode;
|
|
157
|
+
}>;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
declare const CarouselModal: ({ slides, onClose, ...rest }: CarouselModalProps) => react_jsx_runtime.JSX.Element;
|
|
161
|
+
|
|
162
|
+
interface CheckboxProps extends CheckboxProps$1 {
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
declare const Checkbox: react.ForwardRefExoticComponent<CheckboxProps & react.RefAttributes<unknown>>;
|
|
166
|
+
|
|
167
|
+
type ChipUseCase = 'danger' | 'success' | 'primary' | 'secondary' | 'dark' | 'highlight';
|
|
168
|
+
interface ChipProps extends BadgeProps {
|
|
169
|
+
useCase?: ChipUseCase;
|
|
170
|
+
variant?: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* A component that wraps the Chakra Badge component, but styled to look like a Chip component
|
|
175
|
+
*/
|
|
176
|
+
declare const Chip: {
|
|
177
|
+
({ useCase, variant, ...rest }: ChipProps): react_jsx_runtime.JSX.Element;
|
|
178
|
+
displayName: string;
|
|
179
|
+
};
|
|
180
|
+
|
|
181
|
+
declare const useCaseStyles: Record<ChipUseCase, Record<string, Partial<ChipProps>>>;
|
|
182
|
+
|
|
183
|
+
type ChipButtonPropsTypes = {
|
|
184
|
+
rightIcon?: React.ReactElement;
|
|
185
|
+
leftIcon?: React.ReactElement;
|
|
186
|
+
};
|
|
187
|
+
|
|
188
|
+
declare const ChipButton: react.ForwardRefExoticComponent<ChipButtonPropsTypes & ButtonProps$1 & react.RefAttributes<HTMLButtonElement>>;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* Code component props
|
|
192
|
+
*/
|
|
193
|
+
interface CodeProps extends Omit<SyntaxHighlighterProps, 'style' | 'customStyle'> {
|
|
194
|
+
children: string;
|
|
195
|
+
/**
|
|
196
|
+
* Callback for when the copy button is clicked. No copy button is rendered if this prop is not provided.
|
|
197
|
+
* The user is expected to handle the copying behavior.
|
|
198
|
+
*
|
|
199
|
+
* @param str The copied text
|
|
200
|
+
*/
|
|
201
|
+
onCopy?: (str: string) => void;
|
|
202
|
+
language?: string;
|
|
203
|
+
style?: {
|
|
204
|
+
[key: string]: React.CSSProperties;
|
|
205
|
+
};
|
|
206
|
+
customStyle?: React.CSSProperties;
|
|
207
|
+
containerProps?: BoxProps;
|
|
208
|
+
/**
|
|
209
|
+
* Threshold in pixels for when the header should become sticky.
|
|
210
|
+
* This is typically the height of any fixed header above this component.
|
|
211
|
+
* @default 48
|
|
212
|
+
*/
|
|
213
|
+
stickyHeaderThreshold?: number;
|
|
214
|
+
/**
|
|
215
|
+
* Whether to hide the header of the code block.
|
|
216
|
+
* @default false
|
|
217
|
+
*/
|
|
218
|
+
hideHeader?: boolean;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
declare const Code: ({ children, language: languageProp, onCopy, style, customStyle, hideHeader, containerProps, ...rest }: CodeProps) => react_jsx_runtime.JSX.Element;
|
|
222
|
+
|
|
223
|
+
interface CodeTabsProps extends Omit<TabsProps$1, 'children' | 'onCopy'> {
|
|
224
|
+
/**
|
|
225
|
+
* Code samples to display in tabs
|
|
226
|
+
* Each language contains code samples for different providers
|
|
227
|
+
*/
|
|
228
|
+
code: {
|
|
229
|
+
[language: string]: string;
|
|
230
|
+
};
|
|
231
|
+
/**
|
|
232
|
+
* Callback for when the copy button is clicked
|
|
233
|
+
* The function will receive the selected code sample
|
|
234
|
+
*/
|
|
235
|
+
onCopy?: (code: string) => void;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
declare const CodeTabs: ({ code, onCopy, ...rest }: CodeTabsProps) => react_jsx_runtime.JSX.Element;
|
|
239
|
+
|
|
240
|
+
declare const Container: ({ style, disableResponsive, ...rest }: ContainerProps & {
|
|
241
|
+
disableResponsive?: boolean;
|
|
242
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
243
|
+
|
|
244
|
+
type CopyableCodeProps = {
|
|
245
|
+
children: React.ReactNode;
|
|
246
|
+
onCopy: () => void;
|
|
247
|
+
containerProps?: FlexProps;
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* Intended for a quick one-click copy of one-liner code snippets.
|
|
252
|
+
*
|
|
253
|
+
* @example
|
|
254
|
+
* <CopyableCode onCopy={() => {}}>
|
|
255
|
+
* {`const example = 'This is a code example';
|
|
256
|
+
* console.log(example);`}
|
|
257
|
+
* </CopyableCode>
|
|
258
|
+
*/
|
|
259
|
+
declare const CopyableCode: ({ children, onCopy, containerProps, }: CopyableCodeProps) => react_jsx_runtime.JSX.Element;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* Separate any cross-page toasts sent using the message query param to ensure these can be wrapped with Suspense tags.
|
|
263
|
+
*/
|
|
264
|
+
declare function CrossPageToasts(): any;
|
|
265
|
+
|
|
266
|
+
interface DataFieldProps {
|
|
267
|
+
label?: string;
|
|
268
|
+
value: string;
|
|
269
|
+
as?: EditableProps['as'];
|
|
270
|
+
onChange?: (val?: string) => void;
|
|
271
|
+
inputProps?: Omit<InputProps$1, 'value'>;
|
|
272
|
+
editableProps?: Omit<EditableProps, 'value'>;
|
|
273
|
+
editablePreviewProps?: EditablePreviewProps;
|
|
274
|
+
isEditable?: boolean;
|
|
275
|
+
isCopyable?: boolean;
|
|
276
|
+
allowEmpty?: boolean;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
declare const DataField: ({ label, value, inputProps: inputPropsProp, editableProps, editablePreviewProps, onChange, as, isCopyable, isEditable, allowEmpty, }: DataFieldProps) => react_jsx_runtime.JSX.Element;
|
|
280
|
+
|
|
281
|
+
declare const RangeDatePicker: ({ propsConfigs, configs, usePortal, ...rest }: RangeDatepickerProps) => react_jsx_runtime.JSX.Element;
|
|
282
|
+
|
|
283
|
+
declare const SingleDatePicker: ({ propsConfigs, configs, usePortal, ...rest }: SingleDatepickerProps) => react_jsx_runtime.JSX.Element;
|
|
284
|
+
|
|
285
|
+
interface InputProps extends InputProps$1 {
|
|
286
|
+
leftIcon?: React.ReactElement;
|
|
287
|
+
rightIcon?: React.ReactElement;
|
|
288
|
+
wrapperProps?: InputGroupProps;
|
|
289
|
+
leftElementProps?: InputLeftElementProps;
|
|
290
|
+
rightElementProps?: InputRightElementProps;
|
|
291
|
+
maskNumber?: boolean;
|
|
292
|
+
/** 빈값일 때 공백 입력 방지 및 복사 붙여넣기 시 앞뒤 공백 제거 */
|
|
293
|
+
trimWhiteSpace?: boolean;
|
|
294
|
+
/** 모든 공백을 허용하지 않음 */
|
|
295
|
+
noSpaces?: boolean;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
declare const Input: react.ForwardRefExoticComponent<InputProps & react.RefAttributes<HTMLInputElement>>;
|
|
299
|
+
|
|
300
|
+
declare const FileInput: react.ForwardRefExoticComponent<Omit<InputProps, "onChange" | "bgImage"> & {
|
|
301
|
+
fileInputLabel?: string;
|
|
302
|
+
containerStyle?: _chakra_ui_react.FlexProps;
|
|
303
|
+
onChange: (files: FileList | null) => void;
|
|
304
|
+
bgImage?: string;
|
|
305
|
+
isLoading?: boolean;
|
|
306
|
+
} & react.RefAttributes<HTMLInputElement>>;
|
|
307
|
+
|
|
308
|
+
type FileInputProps = Omit<InputProps, 'onChange' | 'bgImage'> & {
|
|
309
|
+
fileInputLabel?: string;
|
|
310
|
+
containerStyle?: FlexProps;
|
|
311
|
+
onChange: (files: FileList | null) => void;
|
|
312
|
+
/**
|
|
313
|
+
* background image change
|
|
314
|
+
*/
|
|
315
|
+
bgImage?: string;
|
|
316
|
+
isLoading?: boolean;
|
|
317
|
+
};
|
|
318
|
+
|
|
319
|
+
interface FileItemProps extends FlexProps {
|
|
320
|
+
fileName: string;
|
|
321
|
+
error?: string;
|
|
322
|
+
onFileDownload?: () => void;
|
|
323
|
+
onFileDelete?: () => void;
|
|
324
|
+
progress?: number;
|
|
325
|
+
fileSize?: number;
|
|
326
|
+
isDeleting?: boolean;
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
declare const FileItem: {
|
|
330
|
+
({ fileName, error, onFileDownload, onFileDelete, progress, fileSize, isDeleting, ...rest }: FileItemProps): react_jsx_runtime.JSX.Element;
|
|
331
|
+
displayName: string;
|
|
332
|
+
};
|
|
333
|
+
|
|
334
|
+
interface FileItemData {
|
|
335
|
+
error?: string;
|
|
336
|
+
errorCode?: number | null;
|
|
337
|
+
progress?: number;
|
|
338
|
+
id: number | null;
|
|
339
|
+
fileUrl?: string;
|
|
340
|
+
name: string;
|
|
341
|
+
isLoading?: boolean;
|
|
342
|
+
timeStamp?: string;
|
|
343
|
+
size?: number;
|
|
344
|
+
}
|
|
345
|
+
interface FileGroupProps {
|
|
346
|
+
files: FileItemData[];
|
|
347
|
+
onFileDelete?: (file: FileItemData) => void;
|
|
348
|
+
onFileDownload?: (file: FileItemData) => void;
|
|
349
|
+
visibleCount?: number;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
declare const FileList$1: {
|
|
353
|
+
({ files, onFileDelete, onFileDownload, visibleCount, }: FileGroupProps): react_jsx_runtime.JSX.Element;
|
|
354
|
+
displayName: string;
|
|
355
|
+
};
|
|
356
|
+
|
|
357
|
+
interface FormControlProps extends FormControlProps$1 {
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
declare const FormControl: react.ForwardRefExoticComponent<FormControlProps & react.RefAttributes<HTMLDivElement>>;
|
|
361
|
+
|
|
362
|
+
declare const FormLabel: (props: FormLabelProps) => react_jsx_runtime.JSX.Element;
|
|
363
|
+
|
|
364
|
+
declare const GuideCue: ({ index, page: pageProp, containerRef, title, description, placement, top, left, }: {
|
|
365
|
+
index: number;
|
|
366
|
+
page: string;
|
|
367
|
+
containerRef: RefObject<HTMLElement>;
|
|
368
|
+
title: string;
|
|
369
|
+
description: string;
|
|
370
|
+
placement?: PopoverProps["placement"];
|
|
371
|
+
top?: number | string;
|
|
372
|
+
left?: number | string;
|
|
373
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
374
|
+
|
|
375
|
+
declare const GuideCueProvider: ({ children, page, numSteps, isDisabled, onComplete, }: {
|
|
376
|
+
children: React.ReactNode;
|
|
377
|
+
page: string;
|
|
378
|
+
numSteps: number;
|
|
379
|
+
isDisabled?: boolean;
|
|
380
|
+
onComplete?: () => void;
|
|
381
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
382
|
+
|
|
383
|
+
declare const REACT_ICONS_MAP: {
|
|
384
|
+
[key: string]: IconType$1;
|
|
385
|
+
};
|
|
386
|
+
/**
|
|
387
|
+
* Map of icon names to SVGs. Records named as {iconName}: {iconName}Icon.
|
|
388
|
+
*
|
|
389
|
+
* Sorted alphabetically.
|
|
390
|
+
*/
|
|
391
|
+
declare const CUSTOM_ICON_MAP: {
|
|
392
|
+
[key: string]: React.FunctionComponent<React.SVGProps<SVGSVGElement> & {
|
|
393
|
+
title?: string;
|
|
394
|
+
}>;
|
|
395
|
+
};
|
|
396
|
+
type IconType = keyof typeof CUSTOM_ICON_MAP | keyof typeof REACT_ICONS_MAP;
|
|
397
|
+
/**
|
|
398
|
+
* Convert map of SVGs to a const of strings only to minimize import size
|
|
399
|
+
*/
|
|
400
|
+
declare const IconTypes: {
|
|
401
|
+
[K in IconType]: IconType;
|
|
402
|
+
};
|
|
403
|
+
|
|
404
|
+
type IconProps = Partial<SVGProps<SVGElement>> & Omit<BoxProps, 'size' | 'icon'> & {
|
|
405
|
+
icon: IconType;
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
declare const Icon: react__default.ForwardRefExoticComponent<Omit<IconProps, "ref"> & react__default.RefAttributes<SVGSVGElement>>;
|
|
409
|
+
|
|
410
|
+
type IconButtonVariant = 'primary' | 'secondary' | 'tertiary' | 'danger' | 'link';
|
|
411
|
+
type IconButtonProps = Omit<IconButtonProps$1, 'variant'> & {
|
|
412
|
+
variant?: IconButtonVariant;
|
|
413
|
+
};
|
|
414
|
+
|
|
415
|
+
declare const IconButton: react.ForwardRefExoticComponent<Omit<_chakra_ui_react.IconButtonProps, "variant"> & {
|
|
416
|
+
variant?: IconButtonVariant;
|
|
417
|
+
} & react.RefAttributes<HTMLButtonElement>>;
|
|
418
|
+
|
|
419
|
+
declare const InfoSprinkle: ({ children, icon, ...rest }: {
|
|
420
|
+
children: React.ReactNode;
|
|
421
|
+
icon?: IconButtonProps["icon"];
|
|
422
|
+
} & PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
423
|
+
|
|
424
|
+
declare const InlineCode: ({ children, ...rest }: CodeProps$1) => react_jsx_runtime.JSX.Element;
|
|
425
|
+
|
|
426
|
+
interface LineGraphProps<T extends DatumBase> extends BoxProps {
|
|
427
|
+
data: Array<Datum<T>>;
|
|
428
|
+
dataKeys: Array<DataKey<T>>;
|
|
429
|
+
}
|
|
430
|
+
/**
|
|
431
|
+
* Any numerical data the user wants to define
|
|
432
|
+
*/
|
|
433
|
+
type DatumBase = {
|
|
434
|
+
[key: string]: number | undefined;
|
|
435
|
+
};
|
|
436
|
+
/**
|
|
437
|
+
* A name prop has to be passed to have the XAxis key always defined
|
|
438
|
+
*/
|
|
439
|
+
type Datum<T extends DatumBase> = {
|
|
440
|
+
name: string;
|
|
441
|
+
} & T;
|
|
442
|
+
/**
|
|
443
|
+
* The data for each series
|
|
444
|
+
*/
|
|
445
|
+
type DataKey<T extends DatumBase> = {
|
|
446
|
+
/**
|
|
447
|
+
* Key used to reference a value in the data prop
|
|
448
|
+
*/
|
|
449
|
+
key: DataKey$1<keyof T>;
|
|
450
|
+
/**
|
|
451
|
+
* Label for the XAxis
|
|
452
|
+
*/
|
|
453
|
+
label: string;
|
|
454
|
+
/**
|
|
455
|
+
* Optional custom colors for the series
|
|
456
|
+
*/
|
|
457
|
+
color?: string;
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
declare const LineGraph: <T extends DatumBase>({ data, dataKeys, ...rest }: LineGraphProps<T>) => react_jsx_runtime.JSX.Element;
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Link component that combines Chakra UI Link with Next.js Link functionality.
|
|
464
|
+
*
|
|
465
|
+
* This component provides:
|
|
466
|
+
* - Next.js client-side navigation for internal routes
|
|
467
|
+
* - Chakra UI styling and theming
|
|
468
|
+
* - All Chakra UI Link props support
|
|
469
|
+
* - Automatic styling from linkTextStyles
|
|
470
|
+
*
|
|
471
|
+
* @example
|
|
472
|
+
* ```tsx
|
|
473
|
+
* // Internal navigation
|
|
474
|
+
* <Link href="/dashboard">
|
|
475
|
+
* <Text>Go to Dashboard</Text>
|
|
476
|
+
* </Link>
|
|
477
|
+
*
|
|
478
|
+
* // External link with target="_blank"
|
|
479
|
+
* <Link
|
|
480
|
+
* href="https://example.com"
|
|
481
|
+
* target="_blank"
|
|
482
|
+
* rel="noopener noreferrer"
|
|
483
|
+
* >
|
|
484
|
+
* <Text>External Link</Text>
|
|
485
|
+
* </Link>
|
|
486
|
+
*
|
|
487
|
+
* // With Chakra UI props
|
|
488
|
+
* <Link
|
|
489
|
+
* href="/profile"
|
|
490
|
+
* color="blue.500"
|
|
491
|
+
* fontSize="lg"
|
|
492
|
+
* _hover={{ textDecoration: 'underline' }}
|
|
493
|
+
* >
|
|
494
|
+
* <Text>Profile</Text>
|
|
495
|
+
* </Link>
|
|
496
|
+
* ```
|
|
497
|
+
*/
|
|
498
|
+
interface LinkProps extends LinkProps$1 {
|
|
499
|
+
/** The URL to navigate to. Can be internal route or external URL */
|
|
500
|
+
href: string;
|
|
501
|
+
/** The content to render inside the link */
|
|
502
|
+
children: React.ReactNode;
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Enhanced Link component that combines Next.js routing with Chakra UI styling.
|
|
506
|
+
*
|
|
507
|
+
* Features:
|
|
508
|
+
* - Uses Next.js Link for client-side navigation
|
|
509
|
+
* - Applies Chakra UI styling and theme support
|
|
510
|
+
* - Supports all Chakra UI Link props (color, fontSize, _hover, etc.)
|
|
511
|
+
* - Automatically applies linkTextStyles
|
|
512
|
+
* - Handles both internal and external links seamlessly
|
|
513
|
+
*
|
|
514
|
+
* @param props - LinkProps object containing href, children, and optional Chakra UI props
|
|
515
|
+
* @returns A styled link component with Next.js routing capabilities
|
|
516
|
+
*/
|
|
517
|
+
declare const Link: ({ href, children, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
|
|
518
|
+
|
|
519
|
+
declare const PageLoader: ({ isLoading, ...rest }: FlexProps & {
|
|
520
|
+
isLoading: boolean;
|
|
521
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
522
|
+
|
|
523
|
+
type MarkdownProps = Options & {
|
|
524
|
+
className?: string;
|
|
525
|
+
};
|
|
526
|
+
|
|
527
|
+
declare const baseMarkdownComponents: {
|
|
528
|
+
h1: (props: any) => react_jsx_runtime.JSX.Element;
|
|
529
|
+
h2: (props: any) => react_jsx_runtime.JSX.Element;
|
|
530
|
+
h3: (props: any) => react_jsx_runtime.JSX.Element;
|
|
531
|
+
h4: (props: any) => react_jsx_runtime.JSX.Element;
|
|
532
|
+
h5: (props: any) => react_jsx_runtime.JSX.Element;
|
|
533
|
+
h6: (props: any) => react_jsx_runtime.JSX.Element;
|
|
534
|
+
code: ({ inline, className, children, ...props }: any) => react_jsx_runtime.JSX.Element;
|
|
535
|
+
pre: ({ children }: any) => react_jsx_runtime.JSX.Element;
|
|
536
|
+
p: (props: any) => react_jsx_runtime.JSX.Element;
|
|
537
|
+
a: ({ style, ...rest }: any) => react_jsx_runtime.JSX.Element;
|
|
538
|
+
ol: ({ style, ...rest }: any) => react_jsx_runtime.JSX.Element;
|
|
539
|
+
ul: ({ style, ...rest }: any) => react_jsx_runtime.JSX.Element;
|
|
540
|
+
img: ({ style, ...rest }: any) => react_jsx_runtime.JSX.Element;
|
|
541
|
+
table: (props: any) => react_jsx_runtime.JSX.Element;
|
|
542
|
+
thead: (props: any) => react_jsx_runtime.JSX.Element;
|
|
543
|
+
tbody: (props: any) => react_jsx_runtime.JSX.Element;
|
|
544
|
+
tr: (props: any) => react_jsx_runtime.JSX.Element;
|
|
545
|
+
td: (props: any) => react_jsx_runtime.JSX.Element;
|
|
546
|
+
th: (props: any) => react_jsx_runtime.JSX.Element;
|
|
547
|
+
};
|
|
548
|
+
declare const Markdown: ({ className, components, children, ...rest }: MarkdownProps) => react_jsx_runtime.JSX.Element;
|
|
549
|
+
|
|
550
|
+
interface MasonryProps extends Omit<FlexProps, 'gap'> {
|
|
551
|
+
/**
|
|
552
|
+
* Number of columns in the masonry layout
|
|
553
|
+
*/
|
|
554
|
+
numCols: number;
|
|
555
|
+
/**
|
|
556
|
+
* Gap between items (applied to both columns and rows)
|
|
557
|
+
* @default 4
|
|
558
|
+
*/
|
|
559
|
+
gap?: number | string;
|
|
560
|
+
/**
|
|
561
|
+
* Whether to arrange items from left to right (true) or top to bottom (false)
|
|
562
|
+
* @default false (arrange vertically)
|
|
563
|
+
*/
|
|
564
|
+
horizontalArrangement?: boolean;
|
|
565
|
+
}
|
|
566
|
+
|
|
567
|
+
declare const Masonry: ({ children, numCols, gap, horizontalArrangement, ...rest }: PropsWithChildren<MasonryProps>) => react_jsx_runtime.JSX.Element;
|
|
568
|
+
|
|
569
|
+
declare const MaxLengthIndicator: ({ value, maxLength, ...rest }: {
|
|
570
|
+
value: number;
|
|
571
|
+
maxLength: number;
|
|
572
|
+
} & TextProps) => react_jsx_runtime.JSX.Element;
|
|
573
|
+
|
|
574
|
+
interface MDXEditorProps extends MDXEditorProps$1 {
|
|
575
|
+
containerProps?: BoxProps;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
declare function MDXEditor({ containerProps, autoFocus, ...rest }: MDXEditorProps): react_jsx_runtime.JSX.Element;
|
|
579
|
+
|
|
580
|
+
interface ButtonMenuButtonProps extends MenuButtonProps {
|
|
581
|
+
as: typeof Button$1;
|
|
582
|
+
rightIcon?: React.ReactNode;
|
|
583
|
+
icon?: never;
|
|
584
|
+
}
|
|
585
|
+
interface IconButtonMenuButtonProps extends MenuButtonProps {
|
|
586
|
+
as: typeof IconButton;
|
|
587
|
+
icon?: React.ReactNode;
|
|
588
|
+
rightIcon?: never;
|
|
589
|
+
}
|
|
590
|
+
type CustomMenuButtonProps = ButtonMenuButtonProps | IconButtonMenuButtonProps;
|
|
591
|
+
|
|
592
|
+
declare const MenuButton: ({ as, ...rest }: CustomMenuButtonProps) => react_jsx_runtime.JSX.Element;
|
|
593
|
+
|
|
594
|
+
declare const ItemVariant: {
|
|
595
|
+
readonly Default: "default";
|
|
596
|
+
readonly Danger: "danger";
|
|
597
|
+
};
|
|
598
|
+
type ItemVariant = (typeof ItemVariant)[keyof typeof ItemVariant];
|
|
599
|
+
interface MenuItemProps extends MenuItemProps$1 {
|
|
600
|
+
variant?: ItemVariant | null;
|
|
601
|
+
onClick?: () => void;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
declare const MenuItem: ({ variant, children, ...rest }: MenuItemProps) => react_jsx_runtime.JSX.Element;
|
|
605
|
+
|
|
606
|
+
declare const MenuList: ({ ...rest }: MenuListProps) => react_jsx_runtime.JSX.Element;
|
|
607
|
+
|
|
608
|
+
declare const Menu: react.FC<_chakra_ui_react.MenuProps>;
|
|
609
|
+
|
|
610
|
+
interface MonthRange {
|
|
611
|
+
startMonth: Date;
|
|
612
|
+
endMonth: Date | null;
|
|
613
|
+
}
|
|
614
|
+
interface MonthRangePickerProps extends Omit<BoxProps, 'onChange'> {
|
|
615
|
+
/** The selected month range */
|
|
616
|
+
selectedRange?: MonthRange | null;
|
|
617
|
+
/** Callback when the month range changes */
|
|
618
|
+
onChange?: (range: MonthRange | null) => void;
|
|
619
|
+
/** Minimum selectable month */
|
|
620
|
+
minMonth?: Date;
|
|
621
|
+
/** Maximum selectable month */
|
|
622
|
+
maxMonth?: Date;
|
|
623
|
+
/** Whether the picker is disabled */
|
|
624
|
+
disabled?: boolean;
|
|
625
|
+
/** Placeholder text for the input */
|
|
626
|
+
placeholder?: string;
|
|
627
|
+
/** Format for displaying the selected range */
|
|
628
|
+
format?: string;
|
|
629
|
+
/** Whether to use portal for the popover */
|
|
630
|
+
usePortal?: boolean;
|
|
631
|
+
/** Props for the popover */
|
|
632
|
+
popoverProps?: Partial<PopoverProps>;
|
|
633
|
+
/** Name attribute for form usage */
|
|
634
|
+
name?: string;
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
declare const MonthRangePicker: react__default.FC<MonthRangePickerProps>;
|
|
638
|
+
|
|
639
|
+
interface PaginationProps extends FlexProps {
|
|
640
|
+
currentPage?: number;
|
|
641
|
+
onCurrentPageChange?: (page: number) => void;
|
|
642
|
+
onBack?: () => void;
|
|
643
|
+
onNext?: () => void;
|
|
644
|
+
numTotalItems: number;
|
|
645
|
+
itemsPerPageOptions?: Array<number>;
|
|
646
|
+
itemsPerPage: number;
|
|
647
|
+
onItemsPerPageOptionChange?: (option: number) => void;
|
|
648
|
+
}
|
|
649
|
+
|
|
650
|
+
/**
|
|
651
|
+
* A pagination component that allows users to navigate through pages.
|
|
652
|
+
* Displays the current page number and the maximum page count.
|
|
653
|
+
* Supports both controlled and uncontrolled modes.
|
|
654
|
+
*
|
|
655
|
+
* - **Controlled Mode**: Pass `currentPage` and `onBack`/`onNext` props to fully control the pagination behavior.
|
|
656
|
+
* - **Uncontrolled Mode**: If `currentPage` is not provided, the component manages its own internal state for the current page.
|
|
657
|
+
*
|
|
658
|
+
* @param {PaginationProps} props - Props for the Pagination component.
|
|
659
|
+
* @param {number} [props.currentPage] - The current page number (controlled mode).
|
|
660
|
+
* @param {number} props.maxPage - The maximum number of pages available.
|
|
661
|
+
* @param {() => void} [props.onBack] - Callback triggered when the "Back" button is clicked.
|
|
662
|
+
* @param {() => void} [props.onNext] - Callback triggered when the "Next" button is clicked.
|
|
663
|
+
*/
|
|
664
|
+
declare const Pagination: ({ currentPage: controlledCurrentPage, onCurrentPageChange, numTotalItems, onBack, onNext, itemsPerPageOptions, itemsPerPage, onItemsPerPageOptionChange, ...rest }: PaginationProps) => react_jsx_runtime.JSX.Element;
|
|
665
|
+
|
|
666
|
+
interface PasswordInputProps extends Omit<InputProps$1, 'rightIcon'> {
|
|
667
|
+
wrapperProps?: InputGroupProps;
|
|
668
|
+
rightElementProps?: InputRightElementProps;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
declare const PasswordInput: react.ForwardRefExoticComponent<PasswordInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
672
|
+
|
|
673
|
+
interface ReactPinInputProps {
|
|
674
|
+
length: number;
|
|
675
|
+
initialValue?: number | string;
|
|
676
|
+
type?: 'numeric' | 'custom';
|
|
677
|
+
inputMode?: string;
|
|
678
|
+
secret?: boolean;
|
|
679
|
+
secretDelay?: number;
|
|
680
|
+
disabled?: boolean;
|
|
681
|
+
focus?: boolean;
|
|
682
|
+
onChange?: (value: string, index: number) => void;
|
|
683
|
+
onComplete?: (value: string, index: number) => void;
|
|
684
|
+
style?: React.CSSProperties;
|
|
685
|
+
inputStyle?: React.CSSProperties;
|
|
686
|
+
inputFocusStyle?: React.CSSProperties;
|
|
687
|
+
validate?: (value: string) => string;
|
|
688
|
+
autoSelect?: boolean;
|
|
689
|
+
regexCriteria?: any;
|
|
690
|
+
ariaLabel?: string;
|
|
691
|
+
placeholder?: string;
|
|
692
|
+
}
|
|
693
|
+
type PinInputProps = ReactPinInputProps & {
|
|
694
|
+
value?: string;
|
|
695
|
+
autoFocus?: boolean;
|
|
696
|
+
isNumberOnly?: boolean;
|
|
697
|
+
};
|
|
698
|
+
|
|
699
|
+
declare const PinInput: {
|
|
700
|
+
({ value, onChange, inputStyle, autoFocus, isNumberOnly, ...rest }: PinInputProps): react_jsx_runtime.JSX.Element;
|
|
701
|
+
displayName: string;
|
|
702
|
+
};
|
|
703
|
+
|
|
704
|
+
interface ProgressBarProps extends ProgressProps {
|
|
705
|
+
filledTrackColor?: string;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
declare const ProgressBar: {
|
|
709
|
+
({ filledTrackColor, value, ...rest }: ProgressBarProps): react_jsx_runtime.JSX.Element;
|
|
710
|
+
displayName: string;
|
|
711
|
+
};
|
|
712
|
+
|
|
713
|
+
interface Segment {
|
|
714
|
+
/** Color value - supports hex colors, CSS color names, and Chakra UI color tokens (e.g., 'primary.500', 'red.400') */
|
|
715
|
+
color: string;
|
|
716
|
+
value: number;
|
|
717
|
+
}
|
|
718
|
+
interface RadialProgressProps extends BoxProps {
|
|
719
|
+
size?: number;
|
|
720
|
+
total?: number;
|
|
721
|
+
unit?: string;
|
|
722
|
+
segments?: Segment[];
|
|
723
|
+
formatTotal?: (value: number) => string | number;
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
declare const RadialProgress: react__default.FC<RadialProgressProps>;
|
|
727
|
+
|
|
728
|
+
interface RadioOption {
|
|
729
|
+
value: string;
|
|
730
|
+
label: string;
|
|
731
|
+
}
|
|
732
|
+
interface RadioProps extends RadioProps$1 {
|
|
733
|
+
children?: React.ReactNode;
|
|
734
|
+
}
|
|
735
|
+
interface RadioGroupProps extends Omit<RadioGroupProps$1, 'children'> {
|
|
736
|
+
options: RadioOption[];
|
|
737
|
+
direction?: StackDirection;
|
|
738
|
+
spacing?: number;
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
declare const Radio: react__default.ForwardRefExoticComponent<RadioProps & react__default.RefAttributes<HTMLInputElement>>;
|
|
742
|
+
|
|
743
|
+
declare const RadioGroup: react__default.ForwardRefExoticComponent<RadioGroupProps & react__default.RefAttributes<HTMLDivElement>>;
|
|
744
|
+
|
|
745
|
+
interface SeeMoreButtonProps extends ButtonProps$1 {
|
|
746
|
+
currentCount: number;
|
|
747
|
+
maxCount: number;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* A button component that allows users to load or see more items.
|
|
752
|
+
* It displays the current count and the maximum count of items.
|
|
753
|
+
*
|
|
754
|
+
* @param {object} props - Props for the SeeMoreButton component.
|
|
755
|
+
* @param {number} props.currentCount - The current number of items shown.
|
|
756
|
+
* @param {number} props.maxCount - The maximum number of items available.
|
|
757
|
+
*/
|
|
758
|
+
declare const SeeMoreButton: ({ currentCount, maxCount, ...rest }: SeeMoreButtonProps) => react_jsx_runtime.JSX.Element;
|
|
759
|
+
|
|
760
|
+
type SegmentedControlOption = {
|
|
761
|
+
label: string;
|
|
762
|
+
value: string;
|
|
763
|
+
};
|
|
764
|
+
type SegmentedControlProps = Omit<FlexProps, 'onSelect'> & {
|
|
765
|
+
options: Array<SegmentedControlOption>;
|
|
766
|
+
value?: string;
|
|
767
|
+
onSelect?: (selectedValue: string) => void;
|
|
768
|
+
borderRadius?: string;
|
|
769
|
+
size?: Extract<keyof typeof theme.sizes, 'xs' | 'sm' | 'md' | 'lg' | 'xl'>;
|
|
770
|
+
};
|
|
771
|
+
|
|
772
|
+
declare const SegmentedControl: ({ options, value, onSelect, borderRadius, size, ...rest }: SegmentedControlProps) => react_jsx_runtime.JSX.Element;
|
|
773
|
+
|
|
774
|
+
type SegmentedProgressBarProps = BoxProps & {
|
|
775
|
+
max: number;
|
|
776
|
+
};
|
|
777
|
+
type ProgressSegmentProps = ProgressBarProps & {
|
|
778
|
+
value: number;
|
|
779
|
+
};
|
|
780
|
+
|
|
781
|
+
declare const ProgressSegment: ({ value, ...rest }: ProgressSegmentProps) => react_jsx_runtime.JSX.Element;
|
|
782
|
+
|
|
783
|
+
declare const SegmentedProgressBar: ({ max, ...rest }: SegmentedProgressBarProps) => react_jsx_runtime.JSX.Element;
|
|
784
|
+
|
|
785
|
+
type SelectVariant = 'default' | 'danger';
|
|
786
|
+
type SelectProps<Option, IsMulti extends boolean, Group extends GroupBase<Option>> = Props<Option, IsMulti, Group> & {
|
|
787
|
+
variant?: SelectVariant;
|
|
788
|
+
optionHeight?: number;
|
|
789
|
+
maxHeight?: number;
|
|
790
|
+
};
|
|
791
|
+
|
|
792
|
+
declare const Select: <Option, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ styles, variant, optionHeight, onMenuScrollToBottom, "data-testid": dataTestId, ...rest }: SelectProps<Option, IsMulti, Group> & {
|
|
793
|
+
"data-testid"?: string;
|
|
794
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
795
|
+
|
|
796
|
+
interface SliderProps extends SliderProps$1 {
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare const Slider: react.ForwardRefExoticComponent<SliderProps & react.RefAttributes<HTMLDivElement>>;
|
|
800
|
+
|
|
801
|
+
interface SliderFilledTrackProps extends SliderTrackProps$1 {
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
declare const SliderFilledTrack: react.ForwardRefExoticComponent<SliderFilledTrackProps & react.RefAttributes<HTMLDivElement>>;
|
|
805
|
+
|
|
806
|
+
interface SliderMarkProps extends SliderMarkProps$1 {
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
declare const SliderMark: react.ForwardRefExoticComponent<SliderMarkProps & react.RefAttributes<HTMLDivElement>>;
|
|
810
|
+
|
|
811
|
+
interface SliderThumbProps extends SliderThumbProps$1 {
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
declare const SliderThumb: react.ForwardRefExoticComponent<SliderThumbProps & react.RefAttributes<HTMLDivElement>>;
|
|
815
|
+
|
|
816
|
+
interface SliderTrackProps extends SliderTrackProps$1 {
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
declare const SliderTrack: react.ForwardRefExoticComponent<SliderTrackProps & react.RefAttributes<HTMLDivElement>>;
|
|
820
|
+
|
|
821
|
+
interface SpinnerProps extends SpinnerProps$1 {
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
declare const Spinner: react.ForwardRefExoticComponent<SpinnerProps & react.RefAttributes<HTMLDivElement>>;
|
|
825
|
+
|
|
826
|
+
declare const Switch: {
|
|
827
|
+
({ ...rest }: {
|
|
828
|
+
[x: string]: any;
|
|
829
|
+
}): react_jsx_runtime.JSX.Element;
|
|
830
|
+
displayName: string;
|
|
831
|
+
};
|
|
832
|
+
|
|
833
|
+
interface ExpandingTrProps extends TableRowProps {
|
|
834
|
+
children: React.ReactNode;
|
|
835
|
+
isExpanded: boolean;
|
|
836
|
+
onExpandChange?: (isExpanded: boolean) => void;
|
|
837
|
+
expandedRowProps?: TableRowProps;
|
|
838
|
+
expandedContent: React.ReactNode;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
declare const ExpandingTr: React.FC<ExpandingTrProps>;
|
|
842
|
+
|
|
843
|
+
declare const Table: ({ ...rest }: TableProps) => react_jsx_runtime.JSX.Element;
|
|
844
|
+
|
|
845
|
+
type StickyDirection = 'left' | 'right';
|
|
846
|
+
|
|
847
|
+
interface TableContainerProps extends TableContainerProps$1 {
|
|
848
|
+
children: React.ReactNode;
|
|
849
|
+
}
|
|
850
|
+
interface TableCellProps extends TableCellProps$1 {
|
|
851
|
+
isSticky?: boolean;
|
|
852
|
+
stickyDirection?: StickyDirection;
|
|
853
|
+
stickyIndex?: number;
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
declare const TableContainer: react.ForwardRefExoticComponent<TableContainerProps & react.RefAttributes<HTMLDivElement>>;
|
|
857
|
+
|
|
858
|
+
declare const Tbody: react.ForwardRefExoticComponent<TableBodyProps & react.RefAttributes<HTMLTableSectionElement>>;
|
|
859
|
+
|
|
860
|
+
declare const Td: {
|
|
861
|
+
({ wrap, isSticky, stickyDirection, stickyIndex, _first, style, className, children, onClick, onMouseEnter, onMouseLeave, ...rest }: TableCellProps & {
|
|
862
|
+
wrap?: boolean;
|
|
863
|
+
}): react_jsx_runtime.JSX.Element;
|
|
864
|
+
displayName: string;
|
|
865
|
+
};
|
|
866
|
+
|
|
867
|
+
declare const Th: react.ForwardRefExoticComponent<TableColumnHeaderProps & TableCellProps & react.RefAttributes<HTMLTableCellElement>>;
|
|
868
|
+
|
|
869
|
+
declare const Thead: ({ ...rest }: TableHeadProps) => react_jsx_runtime.JSX.Element;
|
|
870
|
+
|
|
871
|
+
declare const Tr: ({ ...rest }: TableRowProps) => react_jsx_runtime.JSX.Element;
|
|
872
|
+
|
|
873
|
+
type TabsProps = TabsProps$1 & {
|
|
874
|
+
/**
|
|
875
|
+
* If provided, the selected tab will be synced with the provided url param
|
|
876
|
+
*/
|
|
877
|
+
urlParam?: string;
|
|
878
|
+
};
|
|
879
|
+
type TabProps = TabProps$1 & {
|
|
880
|
+
/**
|
|
881
|
+
* The name of the tab
|
|
882
|
+
* @default `tab-${index}`
|
|
883
|
+
*/
|
|
884
|
+
name?: string;
|
|
885
|
+
};
|
|
886
|
+
|
|
887
|
+
declare const Tab: ({ name, ...props }: TabProps) => react_jsx_runtime.JSX.Element;
|
|
888
|
+
|
|
889
|
+
declare const TabList: (props: TabListProps) => react_jsx_runtime.JSX.Element;
|
|
890
|
+
|
|
891
|
+
declare const TabPanel: (props: TabPanelProps) => react_jsx_runtime.JSX.Element;
|
|
892
|
+
|
|
893
|
+
declare const TabPanels: (props: TabPanelsProps) => react_jsx_runtime.JSX.Element;
|
|
894
|
+
|
|
895
|
+
declare const Tabs: ({ orientation, children, urlParam, index, onChange, ...rest }: TabsProps) => react_jsx_runtime.JSX.Element;
|
|
896
|
+
|
|
897
|
+
interface TagProps extends TagProps$1 {
|
|
898
|
+
variant?: 'default' | 'active';
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare const Tag: react.ForwardRefExoticComponent<TagProps & react.RefAttributes<HTMLDivElement>>;
|
|
902
|
+
|
|
903
|
+
interface TagCloseButtonProps extends TagCloseButtonProps$1 {
|
|
904
|
+
}
|
|
905
|
+
|
|
906
|
+
declare const TagCloseButton: react.ForwardRefExoticComponent<TagCloseButtonProps & react.RefAttributes<HTMLDivElement>>;
|
|
907
|
+
|
|
908
|
+
interface TagLabelProps extends TagLabelProps$1 {
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
declare const TagLabel: react.ForwardRefExoticComponent<TagLabelProps & react.RefAttributes<HTMLDivElement>>;
|
|
912
|
+
|
|
913
|
+
interface TagLeftIconProps extends IconProps$1 {
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
declare const TagLeftIcon: react.ForwardRefExoticComponent<TagLeftIconProps & react.RefAttributes<SVGSVGElement>>;
|
|
917
|
+
|
|
918
|
+
interface TagRightIconProps extends IconProps$1 {
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
declare const TagRightIcon: react.ForwardRefExoticComponent<TagRightIconProps & react.RefAttributes<SVGSVGElement>>;
|
|
922
|
+
|
|
923
|
+
declare const Textarea: react.ForwardRefExoticComponent<TextareaProps & react.RefAttributes<HTMLTextAreaElement>>;
|
|
924
|
+
|
|
925
|
+
interface MLToastOptions {
|
|
926
|
+
title?: ReactNode;
|
|
927
|
+
description: ReactNode;
|
|
928
|
+
status?: Extract<UseToastOptions['status'], 'success' | 'error' | 'info'>;
|
|
929
|
+
}
|
|
930
|
+
interface ToastProps extends Omit<BoxProps, 'title'>, MLToastOptions {
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
declare const Toast: ({ title, description, status, onClose, ...rest }: ToastProps & {
|
|
934
|
+
onClose?: () => void;
|
|
935
|
+
}) => react_jsx_runtime.JSX.Element;
|
|
936
|
+
|
|
937
|
+
interface TooltipProps extends TooltipProps$1 {
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
declare const Tooltip: react.ForwardRefExoticComponent<TooltipProps & react.RefAttributes<HTMLDivElement>>;
|
|
941
|
+
|
|
942
|
+
declare const H1: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
943
|
+
|
|
944
|
+
declare const H2: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
945
|
+
|
|
946
|
+
declare const H3: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
947
|
+
|
|
948
|
+
declare const H4: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
949
|
+
|
|
950
|
+
declare const H5: react.ForwardRefExoticComponent<HeadingProps & react.RefAttributes<HTMLHeadingElement>>;
|
|
951
|
+
|
|
952
|
+
declare const Subtext: react__default.ForwardRefExoticComponent<TextProps & react__default.RefAttributes<HTMLSpanElement>>;
|
|
953
|
+
|
|
954
|
+
declare const Subtitle: react.ForwardRefExoticComponent<TextProps & react.RefAttributes<HTMLSpanElement>>;
|
|
955
|
+
|
|
956
|
+
declare const Text: react__default.ForwardRefExoticComponent<TextProps & react__default.RefAttributes<HTMLParagraphElement>>;
|
|
957
|
+
|
|
958
|
+
interface UrlInputProps extends InputProps$1 {
|
|
959
|
+
leftAddon?: string;
|
|
960
|
+
rightAddon?: string;
|
|
961
|
+
}
|
|
962
|
+
declare const UrlInput: react.ForwardRefExoticComponent<UrlInputProps & react.RefAttributes<HTMLInputElement>>;
|
|
963
|
+
|
|
964
|
+
export { Accordion, AccordionButton, AccordionItem, Alert, AutowidthInput, Avatar, Badge, Banner, type BannerProps, Breadcrumb, BreadcrumbItem, type BreadcrumbItemProps, BreadcrumbLink, type BreadcrumbLinkProps, Button, type ButtonProps, Card, type CardProps, Carousel, CarouselModal, type CarouselModalProps, Checkbox, type CheckboxProps, Chip, ChipButton, Code, CodeTabs, Container, CopyableCode, type CopyableCodeProps, CrossPageToasts, DataField, ExpandingTr, FileInput, type FileInputProps, FileItem, FileList$1 as FileList, FormControl, type FormControlProps, FormLabel, GuideCue, GuideCueProvider, H1, H2, H3, H4, H5, Icon, IconButton, type IconProps, type IconType, IconTypes, InfoSprinkle, InlineCode, Input, type InputProps, LineGraph, Link, MDXEditor, Markdown, type MarkdownProps, Masonry, type MasonryProps, MaxLengthIndicator, Menu, MenuButton, MenuItem, MenuList, Modal, ModalBody, ModalCloseButton, ModalContent, ModalFooter, ModalHeader, ModalOverlay, type ModalProps, MonthRangePicker, type MonthRangePickerProps, PageLoader, Pagination, PasswordInput, PinInput, type PinInputProps, ProgressBar, ProgressSegment, type ProgressSegmentProps, RadialProgress, type RadialProgressProps, Radio, RadioGroup, type RadioGroupProps, type RadioOption, type RadioProps, RangeDatePicker, SeeMoreButton, SegmentedControl, type SegmentedControlProps, SegmentedProgressBar, Select, SingleDatePicker, Slider, SliderFilledTrack, type SliderFilledTrackProps, SliderMark, type SliderMarkProps, SliderThumb, type SliderThumbProps, SliderTrack, type SliderTrackProps, Spinner, type SpinnerProps, Subtext, Subtitle, Switch, Tab, TabList, TabPanel, TabPanels, Table, TableContainer, Tabs, Tag, TagCloseButton, type TagCloseButtonProps, TagLabel, type TagLabelProps, TagLeftIcon, type TagLeftIconProps, TagRightIcon, type TagRightIconProps, Tbody, Td, Text, Textarea, Th, Thead, Toast, type ToastProps, Tooltip, type TooltipProps, Tr, UrlInput, baseStyles as badgeStyles, baseMarkdownComponents, useCaseStyles, variantStyles };
|