@ultraviolet/ui 1.51.1 → 1.51.3
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/dist/components/ActionBar/index.d.ts +20 -0
- package/dist/components/ActionBar/index.js +30 -0
- package/dist/components/Alert/index.d.ts +27 -0
- package/dist/components/Alert/index.js +115 -0
- package/dist/components/Avatar/index.d.ts +43 -0
- package/dist/components/Avatar/index.js +57 -0
- package/dist/components/Badge/index.d.ts +31 -0
- package/dist/components/Badge/index.js +99 -0
- package/dist/components/Banner/assets/default-image-small.svg.js +4 -0
- package/dist/components/Banner/assets/default-image.svg.js +4 -0
- package/dist/components/Banner/index.d.ts +24 -0
- package/dist/components/Banner/index.js +116 -0
- package/dist/components/BarChart/Tooltip.d.ts +9 -0
- package/dist/components/BarChart/Tooltip.js +41 -0
- package/dist/components/BarChart/index.d.ts +27 -0
- package/dist/components/BarChart/index.js +69 -0
- package/dist/components/BarStack/index.d.ts +36 -0
- package/dist/components/BarStack/index.js +114 -0
- package/dist/components/Breadcrumbs/index.d.ts +30 -0
- package/dist/components/Breadcrumbs/index.js +73 -0
- package/dist/components/Bullet/index.d.ts +39 -0
- package/dist/components/Bullet/index.js +84 -0
- package/dist/components/Button/index.d.ts +120 -0
- package/dist/components/Button/index.js +249 -0
- package/dist/components/Card/index.d.ts +20 -0
- package/dist/components/Card/index.js +52 -0
- package/dist/components/Carousel/index.d.ts +19 -0
- package/dist/components/Carousel/index.js +123 -0
- package/dist/components/Checkbox/index.d.ts +36 -0
- package/dist/components/Checkbox/index.js +262 -0
- package/dist/components/CheckboxGroup/index.d.ts +24 -0
- package/dist/components/CheckboxGroup/index.js +116 -0
- package/dist/components/CopyButton/index.d.ts +19 -0
- package/dist/components/CopyButton/index.js +23 -0
- package/dist/components/DateInput/datepicker.css.js +4 -0
- package/dist/components/DateInput/index.d.ts +38 -0
- package/dist/components/DateInput/index.js +182 -0
- package/dist/components/Dialog/Context.d.ts +7 -0
- package/dist/components/Dialog/Context.js +13 -0
- package/dist/components/Dialog/constants.d.ts +2 -0
- package/dist/components/Dialog/index.d.ts +87 -0
- package/dist/components/Dialog/index.js +66 -0
- package/dist/components/Dialog/subComponents/Button.d.ts +7 -0
- package/dist/components/Dialog/subComponents/Button.js +15 -0
- package/dist/components/Dialog/subComponents/Buttons.d.ts +7 -0
- package/dist/components/Dialog/subComponents/Buttons.js +12 -0
- package/dist/components/Dialog/subComponents/CancelButton.d.ts +8 -0
- package/dist/components/Dialog/subComponents/CancelButton.js +9 -0
- package/dist/components/Dialog/subComponents/Stack.d.ts +6 -0
- package/dist/components/Dialog/subComponents/Stack.js +8 -0
- package/dist/components/Dialog/subComponents/Text.d.ts +6 -0
- package/dist/components/Dialog/subComponents/Text.js +8 -0
- package/dist/components/EmptyState/index.d.ts +38 -0
- package/dist/components/EmptyState/index.js +90 -0
- package/dist/components/Expandable/index.d.ts +33 -0
- package/dist/components/Expandable/index.js +75 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +3 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.js +23 -0
- package/dist/components/GlobalAlert/index.d.ts +40 -0
- package/dist/components/GlobalAlert/index.js +59 -0
- package/dist/components/LineChart/CustomLegend.d.ts +13 -0
- package/dist/components/LineChart/CustomLegend.js +113 -0
- package/dist/components/LineChart/Tooltip.d.ts +6 -0
- package/dist/components/LineChart/Tooltip.js +35 -0
- package/dist/components/LineChart/helpers.d.ts +8 -0
- package/dist/{src/components → components}/LineChart/helpers.js +22 -10
- package/dist/components/LineChart/index.d.ts +25 -0
- package/dist/components/LineChart/index.js +101 -0
- package/dist/components/Link/index.d.ts +33 -0
- package/dist/components/Link/index.js +128 -0
- package/dist/components/List/Body.d.ts +6 -0
- package/dist/components/List/Body.js +16 -0
- package/dist/components/List/Cell.d.ts +12 -0
- package/dist/components/List/Cell.js +41 -0
- package/dist/components/List/HeaderCell.d.ts +11 -0
- package/dist/components/List/HeaderCell.js +82 -0
- package/dist/components/List/HeaderRow.d.ts +7 -0
- package/dist/components/List/HeaderRow.js +36 -0
- package/dist/components/List/ListContext.d.ts +34 -0
- package/dist/{src/components → components}/List/ListContext.js +27 -29
- package/dist/components/List/Row.d.ts +23 -0
- package/dist/components/List/Row.js +161 -0
- package/dist/components/List/SelectBar.d.ts +15 -0
- package/dist/components/List/SelectBar.js +52 -0
- package/dist/components/List/SkeletonRows.d.ts +7 -0
- package/dist/components/List/SkeletonRows.js +55 -0
- package/dist/components/List/constants.d.ts +2 -0
- package/dist/{src/components → components}/List/constants.js +4 -2
- package/dist/components/List/index.d.ts +68 -0
- package/dist/components/List/index.js +60 -0
- package/dist/components/Loader/index.d.ts +22 -0
- package/dist/components/Loader/index.js +77 -0
- package/dist/components/Menu/Item.d.ts +15 -0
- package/dist/components/Menu/Item.js +91 -0
- package/dist/components/Menu/index.d.ts +49 -0
- package/dist/components/Menu/index.js +116 -0
- package/dist/components/MenuV2/Group.d.ts +7 -0
- package/dist/components/MenuV2/Group.js +21 -0
- package/dist/components/MenuV2/Item.d.ts +16 -0
- package/dist/components/MenuV2/Item.js +113 -0
- package/dist/components/MenuV2/index.d.ts +90 -0
- package/dist/components/MenuV2/index.js +90 -0
- package/dist/components/Meter/index.d.ts +26 -0
- package/dist/components/Meter/index.js +63 -0
- package/dist/components/Modal/Dialog.d.ts +3 -0
- package/dist/components/Modal/Dialog.js +141 -0
- package/dist/components/Modal/Disclosure.d.ts +3 -0
- package/dist/{src/components → components}/Modal/Disclosure.js +12 -12
- package/dist/components/Modal/constants.d.ts +3 -0
- package/dist/{src/components → components}/Modal/constants.js +8 -6
- package/dist/components/Modal/index.d.ts +42 -0
- package/dist/components/Modal/index.js +79 -0
- package/dist/components/Modal/types.d.ts +48 -0
- package/dist/components/Notice/index.d.ts +11 -0
- package/dist/components/Notice/index.js +23 -0
- package/dist/components/Notification/index.d.ts +36 -0
- package/dist/components/Notification/index.js +49 -0
- package/dist/components/Notification/react-toastify.css.js +4 -0
- package/dist/components/NumberInput/helpers.d.ts +4 -0
- package/dist/{src/components → components}/NumberInput/helpers.js +6 -2
- package/dist/components/NumberInput/index.d.ts +41 -0
- package/dist/components/NumberInput/index.js +262 -0
- package/dist/components/NumberInputV2/index.d.ts +27 -0
- package/dist/components/NumberInputV2/index.js +221 -0
- package/dist/components/Pagination/getPageNumbers.d.ts +8 -0
- package/dist/{src/components → components}/Pagination/getPageNumbers.js +3 -9
- package/dist/components/Pagination/index.d.ts +30 -0
- package/dist/components/Pagination/index.js +88 -0
- package/dist/components/PasswordCheck/index.d.ts +20 -0
- package/dist/components/PasswordCheck/index.js +24 -0
- package/dist/components/PasswordStrengthMeter/index.d.ts +39 -0
- package/dist/components/PasswordStrengthMeter/index.js +96 -0
- package/dist/components/PieChart/Legends.d.ts +9 -0
- package/dist/components/PieChart/Legends.js +142 -0
- package/dist/components/PieChart/Tooltip.d.ts +12 -0
- package/dist/components/PieChart/Tooltip.js +49 -0
- package/dist/components/PieChart/index.d.ts +20 -0
- package/dist/components/PieChart/index.js +101 -0
- package/dist/components/PieChart/types.d.ts +7 -0
- package/dist/components/Popover/index.d.ts +55 -0
- package/dist/components/Popover/index.js +100 -0
- package/dist/components/Popup/animations.d.ts +11 -0
- package/dist/{src/components → components}/Popup/animations.js +7 -6
- package/dist/components/Popup/helpers.d.ts +31 -0
- package/dist/components/Popup/helpers.js +216 -0
- package/dist/components/Popup/index.d.ts +72 -0
- package/dist/components/Popup/index.js +297 -0
- package/dist/components/ProgressBar/index.d.ts +14 -0
- package/dist/components/ProgressBar/index.js +53 -0
- package/dist/components/Radio/index.d.ts +21 -0
- package/dist/components/Radio/index.js +133 -0
- package/dist/components/RadioGroup/index.d.ts +25 -0
- package/dist/components/RadioGroup/index.js +99 -0
- package/dist/components/Row/index.d.ts +22 -0
- package/dist/components/Row/index.js +34 -0
- package/dist/components/SelectInput/index.d.ts +75 -0
- package/dist/components/SelectInput/index.js +516 -0
- package/dist/components/SelectInputV2/Dropdown.d.ts +23 -0
- package/dist/components/SelectInputV2/Dropdown.js +429 -0
- package/dist/components/SelectInputV2/DropdownOption.d.ts +8 -0
- package/dist/components/SelectInputV2/DropdownOption.js +62 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.d.ts +9 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.js +107 -0
- package/dist/components/SelectInputV2/SelectBar.d.ts +14 -0
- package/dist/components/SelectInputV2/SelectBar.js +224 -0
- package/dist/components/SelectInputV2/SelectInputProvider.d.ts +41 -0
- package/dist/{src/components → components}/SelectInputV2/SelectInputProvider.js +38 -36
- package/dist/components/SelectInputV2/findOptionInOptions.d.ts +2 -0
- package/dist/components/SelectInputV2/findOptionInOptions.js +12 -0
- package/dist/components/SelectInputV2/index.d.ts +115 -0
- package/dist/components/SelectInputV2/index.js +87 -0
- package/dist/components/SelectInputV2/types.d.ts +38 -0
- package/dist/{src/components → components}/SelectInputV2/types.js +4 -2
- package/dist/components/SelectableCard/index.d.ts +25 -0
- package/dist/components/SelectableCard/index.js +137 -0
- package/dist/components/SelectableCardGroup/index.d.ts +23 -0
- package/dist/components/SelectableCardGroup/index.js +107 -0
- package/dist/components/Separator/index.d.ts +17 -0
- package/dist/components/Separator/index.js +56 -0
- package/dist/components/Skeleton/Block.d.ts +3 -0
- package/dist/components/Skeleton/Block.js +38 -0
- package/dist/components/Skeleton/Blocks.d.ts +4 -0
- package/dist/components/Skeleton/Blocks.js +38 -0
- package/dist/components/Skeleton/BoxWithIcon.d.ts +4 -0
- package/dist/components/Skeleton/BoxWithIcon.js +36 -0
- package/dist/components/Skeleton/Donut.d.ts +1 -0
- package/dist/components/Skeleton/Donut.js +61 -0
- package/dist/components/Skeleton/IconSkeleton.d.ts +5 -0
- package/dist/components/Skeleton/IconSkeleton.js +22 -0
- package/dist/components/Skeleton/Line.d.ts +5 -0
- package/dist/components/Skeleton/Line.js +16 -0
- package/dist/components/Skeleton/List.d.ts +4 -0
- package/dist/components/Skeleton/List.js +56 -0
- package/dist/components/Skeleton/Slider.d.ts +3 -0
- package/dist/components/Skeleton/Slider.js +40 -0
- package/dist/components/Skeleton/Square.d.ts +5 -0
- package/dist/components/Skeleton/Square.js +12 -0
- package/dist/components/Skeleton/index.d.ts +47 -0
- package/dist/components/Skeleton/index.js +79 -0
- package/dist/components/Snippet/index.d.ts +23 -0
- package/dist/components/Snippet/index.js +182 -0
- package/dist/components/Stack/index.d.ts +23 -0
- package/dist/components/Stack/index.js +29 -0
- package/dist/components/Status/index.d.ts +32 -0
- package/dist/components/Status/index.js +72 -0
- package/dist/components/StepList/index.d.ts +33 -0
- package/dist/components/StepList/index.js +58 -0
- package/dist/components/Stepper/index.d.ts +15 -0
- package/dist/components/Stepper/index.js +145 -0
- package/dist/components/SwitchButton/FocusOverlay.d.ts +8 -0
- package/dist/components/SwitchButton/FocusOverlay.js +38 -0
- package/dist/components/SwitchButton/index.d.ts +26 -0
- package/dist/components/SwitchButton/index.js +76 -0
- package/dist/components/Table/Body.d.ts +6 -0
- package/dist/components/Table/Body.js +7 -0
- package/dist/components/Table/Cell.d.ts +9 -0
- package/dist/components/Table/Cell.js +19 -0
- package/dist/components/Table/Header.d.ts +6 -0
- package/dist/components/Table/Header.js +16 -0
- package/dist/components/Table/HeaderCell.d.ts +14 -0
- package/dist/components/Table/HeaderCell.js +80 -0
- package/dist/components/Table/HeaderRow.d.ts +7 -0
- package/dist/components/Table/HeaderRow.js +23 -0
- package/dist/components/Table/Row.d.ts +14 -0
- package/dist/components/Table/Row.js +80 -0
- package/dist/components/Table/SelectBar.d.ts +15 -0
- package/dist/components/Table/SelectBar.js +52 -0
- package/dist/components/Table/SkeletonRows.d.ts +7 -0
- package/dist/components/Table/SkeletonRows.js +54 -0
- package/dist/components/Table/TableContext.d.ts +27 -0
- package/dist/{src/components → components}/Table/TableContext.js +19 -21
- package/dist/components/Table/index.d.ts +60 -0
- package/dist/components/Table/index.js +67 -0
- package/dist/components/Tabs/Tab.d.ts +20 -0
- package/dist/components/Tabs/Tab.js +120 -0
- package/dist/components/Tabs/TabMenu.d.ts +8 -0
- package/dist/components/Tabs/TabMenu.js +62 -0
- package/dist/components/Tabs/TabMenuItem.d.ts +20 -0
- package/dist/components/Tabs/TabMenuItem.js +34 -0
- package/dist/components/Tabs/TabsContext.d.ts +8 -0
- package/dist/components/Tabs/TabsContext.js +7 -0
- package/dist/components/Tabs/index.d.ts +50 -0
- package/dist/components/Tabs/index.js +102 -0
- package/dist/components/Tag/index.d.ts +26 -0
- package/dist/components/Tag/index.js +144 -0
- package/dist/components/TagInput/index.d.ts +55 -0
- package/dist/components/TagInput/index.js +253 -0
- package/dist/components/TagList/index.d.ts +37 -0
- package/dist/components/TagList/index.js +98 -0
- package/dist/components/Text/index.d.ts +40 -0
- package/dist/components/Text/index.js +82 -0
- package/dist/components/TextArea/index.d.ts +50 -0
- package/dist/components/TextArea/index.js +158 -0
- package/dist/components/TextInput/index.d.ts +75 -0
- package/dist/components/TextInput/index.js +387 -0
- package/dist/components/TextInputV2/index.d.ts +30 -0
- package/dist/components/TextInputV2/index.js +190 -0
- package/dist/components/TimeInput/index.d.ts +25 -0
- package/dist/components/TimeInput/index.js +28 -0
- package/dist/components/Toaster/index.d.ts +46 -0
- package/dist/components/Toaster/index.js +83 -0
- package/dist/components/Toaster/react-toastify.css.js +4 -0
- package/dist/components/Toggle/index.d.ts +34 -0
- package/dist/components/Toggle/index.js +136 -0
- package/dist/components/ToggleGroup/index.d.ts +24 -0
- package/dist/components/ToggleGroup/index.js +96 -0
- package/dist/components/Tooltip/index.d.ts +9 -0
- package/dist/components/Tooltip/index.js +40 -0
- package/dist/components/VerificationCode/index.d.ts +36 -0
- package/dist/components/VerificationCode/index.js +217 -0
- package/dist/components/index.d.ts +75 -0
- package/dist/helpers/isJSON.d.ts +2 -0
- package/dist/{src/helpers → helpers}/isJSON.js +4 -3
- package/dist/helpers/jestMockMatchMedia.d.ts +6 -0
- package/dist/helpers/keycode.d.ts +3 -0
- package/dist/helpers/legend.d.ts +2 -0
- package/dist/helpers/legend.js +14 -0
- package/dist/helpers/numbers.d.ts +2 -0
- package/dist/helpers/recursivelyGetChildrenString.d.ts +3 -0
- package/dist/helpers/recursivelyGetChildrenString.js +15 -0
- package/dist/hooks/useIsOverflowing.d.ts +5 -0
- package/dist/hooks/useIsOverflowing.js +23 -0
- package/dist/index.d.ts +4 -3723
- package/dist/index.js +187 -0
- package/dist/mocks/list.d.ts +12 -0
- package/dist/theme/index.d.ts +1573 -0
- package/dist/theme/index.js +27 -0
- package/dist/types.d.ts +6 -0
- package/dist/utils/animations.d.ts +27 -0
- package/dist/{src/utils → utils}/animations.js +30 -4
- package/dist/utils/capitalize.d.ts +2 -0
- package/dist/utils/capitalize.js +4 -0
- package/dist/utils/ids.d.ts +1 -0
- package/dist/{src/utils → utils}/ids.js +5 -4
- package/dist/utils/index.d.ts +6 -0
- package/dist/utils/normalize.d.ts +2 -0
- package/dist/{src/utils → utils}/normalize.js +4 -3
- package/dist/utils/orderBy.d.ts +2 -0
- package/dist/utils/responsive/Breakpoint.d.ts +9 -0
- package/dist/utils/responsive/Breakpoint.js +15 -0
- package/dist/utils/responsive/index.d.ts +2 -0
- package/dist/utils/responsive/utilities.d.ts +3 -0
- package/dist/{src/utils → utils}/responsive/utilities.js +9 -6
- package/package.json +18 -8
- package/dist/react-datepicker/dist/react-datepicker.min.css.js +0 -3
- package/dist/react-toastify/dist/ReactToastify.min.css.js +0 -3
- package/dist/src/components/ActionBar/index.js +0 -40
- package/dist/src/components/Alert/index.js +0 -133
- package/dist/src/components/Avatar/index.js +0 -74
- package/dist/src/components/Badge/index.js +0 -116
- package/dist/src/components/Banner/assets/default-image-small.svg.js +0 -5
- package/dist/src/components/Banner/assets/default-image.svg.js +0 -5
- package/dist/src/components/Banner/index.js +0 -159
- package/dist/src/components/BarChart/Tooltip.js +0 -48
- package/dist/src/components/BarChart/index.js +0 -95
- package/dist/src/components/BarStack/index.js +0 -136
- package/dist/src/components/Breadcrumbs/index.js +0 -82
- package/dist/src/components/Bullet/index.js +0 -98
- package/dist/src/components/Button/index.js +0 -311
- package/dist/src/components/Card/index.js +0 -67
- package/dist/src/components/Carousel/index.js +0 -128
- package/dist/src/components/Checkbox/index.js +0 -316
- package/dist/src/components/CheckboxGroup/index.js +0 -143
- package/dist/src/components/CopyButton/index.js +0 -37
- package/dist/src/components/DateInput/index.js +0 -242
- package/dist/src/components/Dialog/Context.js +0 -12
- package/dist/src/components/Dialog/index.js +0 -88
- package/dist/src/components/Dialog/subComponents/Button.js +0 -21
- package/dist/src/components/Dialog/subComponents/Buttons.js +0 -14
- package/dist/src/components/Dialog/subComponents/CancelButton.js +0 -14
- package/dist/src/components/Dialog/subComponents/Stack.js +0 -11
- package/dist/src/components/Dialog/subComponents/Text.js +0 -12
- package/dist/src/components/EmptyState/index.js +0 -112
- package/dist/src/components/Expandable/index.js +0 -96
- package/dist/src/components/GlobalAlert/GlobalAlertLink.js +0 -38
- package/dist/src/components/GlobalAlert/index.js +0 -82
- package/dist/src/components/LineChart/CustomLegend.js +0 -138
- package/dist/src/components/LineChart/Tooltip.js +0 -43
- package/dist/src/components/LineChart/index.js +0 -131
- package/dist/src/components/Link/index.js +0 -147
- package/dist/src/components/List/Body.js +0 -16
- package/dist/src/components/List/Cell.js +0 -43
- package/dist/src/components/List/HeaderCell.js +0 -90
- package/dist/src/components/List/HeaderRow.js +0 -43
- package/dist/src/components/List/Row.js +0 -185
- package/dist/src/components/List/SelectBar.js +0 -48
- package/dist/src/components/List/SkeletonRows.js +0 -53
- package/dist/src/components/List/index.js +0 -75
- package/dist/src/components/Loader/index.js +0 -100
- package/dist/src/components/Menu/Item.js +0 -112
- package/dist/src/components/Menu/index.js +0 -129
- package/dist/src/components/MenuV2/Group.js +0 -25
- package/dist/src/components/MenuV2/Item.js +0 -139
- package/dist/src/components/MenuV2/index.js +0 -118
- package/dist/src/components/Meter/index.js +0 -76
- package/dist/src/components/Modal/Dialog.js +0 -182
- package/dist/src/components/Modal/index.js +0 -113
- package/dist/src/components/Notice/index.js +0 -34
- package/dist/src/components/Notification/index.js +0 -77
- package/dist/src/components/NumberInput/index.js +0 -299
- package/dist/src/components/NumberInputV2/index.js +0 -284
- package/dist/src/components/Pagination/index.js +0 -117
- package/dist/src/components/PasswordCheck/index.js +0 -41
- package/dist/src/components/PasswordStrengthMeter/index.js +0 -102
- package/dist/src/components/PieChart/Legends.js +0 -138
- package/dist/src/components/PieChart/Tooltip.js +0 -61
- package/dist/src/components/PieChart/index.js +0 -125
- package/dist/src/components/Popover/index.js +0 -146
- package/dist/src/components/Popup/helpers.js +0 -252
- package/dist/src/components/Popup/index.js +0 -383
- package/dist/src/components/ProgressBar/index.js +0 -57
- package/dist/src/components/Radio/index.js +0 -157
- package/dist/src/components/RadioGroup/index.js +0 -131
- package/dist/src/components/Row/index.js +0 -41
- package/dist/src/components/SelectInput/index.js +0 -610
- package/dist/src/components/SelectInputV2/Dropdown.js +0 -594
- package/dist/src/components/SelectInputV2/DropdownOption.js +0 -130
- package/dist/src/components/SelectInputV2/SearchBarDropdown.js +0 -122
- package/dist/src/components/SelectInputV2/SelectBar.js +0 -282
- package/dist/src/components/SelectInputV2/findOptionInOptions.js +0 -11
- package/dist/src/components/SelectInputV2/index.js +0 -137
- package/dist/src/components/SelectableCard/index.js +0 -175
- package/dist/src/components/SelectableCardGroup/index.js +0 -141
- package/dist/src/components/Separator/index.js +0 -73
- package/dist/src/components/Skeleton/Block.js +0 -35
- package/dist/src/components/Skeleton/Blocks.js +0 -34
- package/dist/src/components/Skeleton/BoxWithIcon.js +0 -32
- package/dist/src/components/Skeleton/Donut.js +0 -55
- package/dist/src/components/Skeleton/IconSkeleton.js +0 -19
- package/dist/src/components/Skeleton/Line.js +0 -13
- package/dist/src/components/Skeleton/List.js +0 -51
- package/dist/src/components/Skeleton/Slider.js +0 -36
- package/dist/src/components/Skeleton/Square.js +0 -9
- package/dist/src/components/Skeleton/index.js +0 -82
- package/dist/src/components/Snippet/index.js +0 -200
- package/dist/src/components/Stack/index.js +0 -29
- package/dist/src/components/Status/index.js +0 -74
- package/dist/src/components/StepList/index.js +0 -69
- package/dist/src/components/Stepper/index.js +0 -150
- package/dist/src/components/SwitchButton/FocusOverlay.js +0 -37
- package/dist/src/components/SwitchButton/index.js +0 -108
- package/dist/src/components/Table/Body.js +0 -9
- package/dist/src/components/Table/Cell.js +0 -21
- package/dist/src/components/Table/Header.js +0 -15
- package/dist/src/components/Table/HeaderCell.js +0 -103
- package/dist/src/components/Table/HeaderRow.js +0 -32
- package/dist/src/components/Table/Row.js +0 -89
- package/dist/src/components/Table/SelectBar.js +0 -48
- package/dist/src/components/Table/SkeletonRows.js +0 -51
- package/dist/src/components/Table/index.js +0 -82
- package/dist/src/components/Tabs/Tab.js +0 -138
- package/dist/src/components/Tabs/TabMenu.js +0 -59
- package/dist/src/components/Tabs/TabMenuItem.js +0 -36
- package/dist/src/components/Tabs/TabsContext.js +0 -6
- package/dist/src/components/Tabs/index.js +0 -117
- package/dist/src/components/Tag/index.js +0 -169
- package/dist/src/components/TagInput/index.js +0 -309
- package/dist/src/components/TagList/index.js +0 -106
- package/dist/src/components/Text/index.js +0 -107
- package/dist/src/components/TextArea/index.js +0 -210
- package/dist/src/components/TextInput/index.js +0 -451
- package/dist/src/components/TextInputV2/index.js +0 -289
- package/dist/src/components/TimeInput/index.js +0 -37
- package/dist/src/components/Toaster/index.js +0 -131
- package/dist/src/components/Toggle/index.js +0 -160
- package/dist/src/components/ToggleGroup/index.js +0 -122
- package/dist/src/components/Tooltip/index.js +0 -55
- package/dist/src/components/VerificationCode/index.js +0 -222
- package/dist/src/helpers/legend.js +0 -13
- package/dist/src/helpers/recursivelyGetChildrenString.js +0 -11
- package/dist/src/hooks/useIsOverflowing.js +0 -34
- package/dist/src/index.js +0 -77
- package/dist/src/theme/index.js +0 -29
- package/dist/src/utils/capitalize.js +0 -3
- package/dist/src/utils/responsive/Breakpoint.js +0 -12
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import { type ComponentProps } from 'react';
|
|
2
|
+
import { Modal } from '../Modal';
|
|
3
|
+
import type { DialogContextType } from './Context';
|
|
4
|
+
import type { DialogSentiment } from './constants';
|
|
5
|
+
type DialogProps = Pick<ComponentProps<typeof Modal>, 'ariaLabel' | 'children' | 'className' | 'data-testid' | 'disclosure' | 'hideOnClickOutside' | 'hideOnEsc' | 'id' | 'isClosable' | 'onBeforeClose' | 'onClose' | 'open' | 'placement'> & {
|
|
6
|
+
title: string;
|
|
7
|
+
sentiment: DialogSentiment;
|
|
8
|
+
};
|
|
9
|
+
export declare const BaseDialog: ({ ariaLabel, className, children, "data-testid": dataTestId, disclosure, hideOnClickOutside, hideOnEsc, id, isClosable, onBeforeClose, onClose, open, placement, sentiment, title, }: DialogProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
10
|
+
/**
|
|
11
|
+
* The Dialog component is used to show content on top of an overlay that requires user interaction.
|
|
12
|
+
* @experimental This component is experimental and may be subject to breaking changes in the future.
|
|
13
|
+
*/
|
|
14
|
+
export declare const Dialog: (({ ariaLabel, className, children, "data-testid": dataTestId, disclosure, hideOnClickOutside, hideOnEsc, id, isClosable, onBeforeClose, onClose, open, placement, sentiment, title, }: DialogProps) => import("@emotion/react/jsx-runtime").JSX.Element) & {
|
|
15
|
+
Buttons: ({ secondaryButton, primaryButton, }: {
|
|
16
|
+
secondaryButton: import("react").ReactNode;
|
|
17
|
+
primaryButton: import("react").ReactNode;
|
|
18
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
19
|
+
Button: ({ children, onClick, disabled, tooltip, }: {
|
|
20
|
+
children: import("react").ReactNode;
|
|
21
|
+
} & Pick<({
|
|
22
|
+
type?: "button" | "reset" | "submit" | undefined;
|
|
23
|
+
autoFocus?: boolean | undefined;
|
|
24
|
+
variant?: "filled" | "outlined" | "ghost" | undefined;
|
|
25
|
+
role?: import("react").AriaRole | undefined;
|
|
26
|
+
size?: "large" | "small" | "xsmall" | "medium" | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
'data-testid'?: string | undefined;
|
|
29
|
+
sentiment?: "primary" | "secondary" | "neutral" | "success" | "danger" | "warning" | "info" | undefined;
|
|
30
|
+
disabled?: boolean | undefined;
|
|
31
|
+
iconPosition?: "left" | "right" | undefined;
|
|
32
|
+
iconVariant?: "filled" | "outlined" | undefined;
|
|
33
|
+
fullWidth?: boolean | undefined;
|
|
34
|
+
isLoading?: boolean | undefined;
|
|
35
|
+
'aria-label'?: string | undefined;
|
|
36
|
+
'aria-current'?: boolean | undefined;
|
|
37
|
+
'aria-controls'?: string | undefined;
|
|
38
|
+
'aria-expanded'?: boolean | undefined;
|
|
39
|
+
'aria-haspopup'?: boolean | undefined;
|
|
40
|
+
onClick?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
41
|
+
tooltip?: string | undefined;
|
|
42
|
+
tabIndex?: number | undefined;
|
|
43
|
+
onMouseDown?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
44
|
+
onMouseUp?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
45
|
+
onMouseOut?: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
46
|
+
} & ({
|
|
47
|
+
children: import("react").ReactNode;
|
|
48
|
+
icon?: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
href?: undefined;
|
|
51
|
+
target?: undefined;
|
|
52
|
+
download?: undefined;
|
|
53
|
+
} | {
|
|
54
|
+
children?: undefined;
|
|
55
|
+
icon: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
|
|
56
|
+
name?: string | undefined;
|
|
57
|
+
href?: undefined;
|
|
58
|
+
target?: undefined;
|
|
59
|
+
download?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
children: import("react").ReactNode;
|
|
62
|
+
icon?: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
|
|
63
|
+
name?: undefined;
|
|
64
|
+
href: string;
|
|
65
|
+
target?: string | undefined;
|
|
66
|
+
download?: string | undefined;
|
|
67
|
+
} | {
|
|
68
|
+
children?: undefined;
|
|
69
|
+
icon: "address" | "search" | "filter" | "view" | "id" | "alert" | "x" | "anchor" | "cancel" | "close" | "sort" | "download" | "arrow-down" | "arrow-left-bottom" | "arrow-left-double" | "arrow-left" | "arrow-right-bottom" | "arrow-right-double" | "arrow-right" | "arrow-up" | "asterisk" | "attach" | "burger" | "check" | "close-circle-outline" | "copy-content" | "detach" | "dots-horizontal" | "dots-vertical" | "drag-vertical" | "drag-variant" | "east" | "equal" | "escape" | "expand" | "expand-more" | "github" | "instagram" | "linkedIn" | "logout" | "minus" | "north" | "open-in-new" | "organization" | "plus" | "progress-check" | "ray-end-arrow" | "ray-start-arrow" | "ray-start-end" | "ray-top-arrow" | "reboot" | "restore" | "revoke" | "rss" | "send" | "slack" | "south" | "switch_orga" | "upload" | "west" | "youtube" | "auto-fix" | "book-open-outline" | "bullhorn" | "calculator" | "calendar-range" | "chat" | "checkbox-circle-outline" | "clock-outline" | "console" | "credentials" | "credit-card" | "database" | "delete" | "doc" | "earth" | "email-remove-outline" | "email-outline" | "eye-off" | "eye" | "folder" | "help-circle-outline" | "information-outline" | "lock" | "members" | "moon" | "mosaic" | "pen" | "pencil" | "phone" | "play-circle-outline" | "privacy" | "profile" | "rocket" | "settings" | "sun" | "support" | "unlock" | "weather-night" | "pin" | "unpin" | undefined;
|
|
70
|
+
name?: undefined;
|
|
71
|
+
href: string;
|
|
72
|
+
target?: string | undefined;
|
|
73
|
+
download?: string | undefined;
|
|
74
|
+
})) & import("react").RefAttributes<Element>, "tooltip" | "onClick" | "disabled">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
75
|
+
CancelButton: ({ children, onClick, }: {
|
|
76
|
+
children: import("react").ReactNode;
|
|
77
|
+
onClick: import("react").MouseEventHandler<HTMLElement> | undefined;
|
|
78
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
79
|
+
Stack: ({ children }: {
|
|
80
|
+
children: import("react").ReactNode;
|
|
81
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
82
|
+
Text: ({ children }: {
|
|
83
|
+
children: import("react").ReactNode;
|
|
84
|
+
}) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
85
|
+
useDialogContext: () => DialogContextType;
|
|
86
|
+
};
|
|
87
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import _styled from "@emotion/styled/base";
|
|
3
|
+
import { useMemo } from "react";
|
|
4
|
+
import { Bullet } from "../Bullet/index.js";
|
|
5
|
+
import { Modal } from "../Modal/index.js";
|
|
6
|
+
import { Text } from "../Text/index.js";
|
|
7
|
+
import { useDialogContext, DialogContext } from "./Context.js";
|
|
8
|
+
import { DialogButton } from "./subComponents/Button.js";
|
|
9
|
+
import { DialogButtons } from "./subComponents/Buttons.js";
|
|
10
|
+
import { DialogCancelButton } from "./subComponents/CancelButton.js";
|
|
11
|
+
import { DialogStack } from "./subComponents/Stack.js";
|
|
12
|
+
import { DialogText } from "./subComponents/Text.js";
|
|
13
|
+
const StyledTextTitle = /* @__PURE__ */ _styled(Text, process.env.NODE_ENV === "production" ? {
|
|
14
|
+
target: "ehf9m9r0"
|
|
15
|
+
} : {
|
|
16
|
+
target: "ehf9m9r0",
|
|
17
|
+
label: "StyledTextTitle"
|
|
18
|
+
})("margin-top:", ({
|
|
19
|
+
theme
|
|
20
|
+
}) => theme.space["2"], ";margin-bottom:", ({
|
|
21
|
+
theme
|
|
22
|
+
}) => theme.space["1"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0RpYWxvZy9pbmRleC50c3giXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBY29DIiwiZmlsZSI6Ii9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0RpYWxvZy9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5b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VhZGVyQ29udGVudH1cbiAgICAgICAgICAgIHtjaGlsZHJlbihtb2RhbFByb3BzKX1cbiAgICAgICAgICA8L0RpYWxvZ0NvbnRleHQuUHJvdmlkZXI+XG4gICAgICAgIClcbiAgICAgICkgOiAoXG4gICAgICAgIDxEaWFsb2dDb250ZXh0LlByb3ZpZGVyIHZhbHVlPXtjb250ZXh0VmFsdWV9PlxuICAgICAgICAgIHtoZWFkZXJDb250ZW50fVxuICAgICAgICAgIHtjaGlsZHJlbn1cbiAgICAgICAgPC9EaWFsb2dDb250ZXh0LlByb3ZpZGVyPlxuICAgICAgKX1cbiAgICA8L01vZGFsPlxuICApXG59XG5cbi8qKlxuICogVGhlIERpYWxvZyBjb21wb25lbnQgaXMgdXNlZCB0byBzaG93IGNvbnRlbnQgb24gdG9wIG9mIGFuIG92ZXJsYXkgdGhhdCByZXF1aXJlcyB1c2VyIGludGVyYWN0aW9uLlxuICogQGV4cGVyaW1lbnRhbCBUaGlzIGNvbXBvbmVudCBpcyBleHBlcmltZW50YWwgYW5kIG1heSBiZSBzdWJqZWN0IHRvIGJyZWFraW5nIGNoYW5nZXMgaW4gdGhlIGZ1dHVyZS5cbiAqL1xuZXhwb3J0IGNvbnN0IERpYWxvZyA9IE9iamVjdC5hc3NpZ24oQmFzZURpYWxvZywge1xuICBCdXR0b25zOiBEaWFsb2dCdXR0b25zLFxuICBCdXR0b246IERpYWxvZ0J1dHRvbixcbiAgQ2FuY2VsQnV0dG9uOiBEaWFsb2dDYW5jZWxCdXR0b24sXG4gIFN0YWNrOiBEaWFsb2dTdGFjayxcbiAgVGV4dDogRGlhbG9nVGV4dCxcbiAgdXNlRGlhbG9nQ29udGV4dCxcbn0pXG4iXX0= */"));
|
|
23
|
+
const BaseDialog = ({
|
|
24
|
+
ariaLabel,
|
|
25
|
+
className,
|
|
26
|
+
children,
|
|
27
|
+
"data-testid": dataTestId,
|
|
28
|
+
disclosure,
|
|
29
|
+
hideOnClickOutside,
|
|
30
|
+
hideOnEsc,
|
|
31
|
+
id,
|
|
32
|
+
isClosable,
|
|
33
|
+
onBeforeClose,
|
|
34
|
+
onClose,
|
|
35
|
+
open,
|
|
36
|
+
placement,
|
|
37
|
+
sentiment,
|
|
38
|
+
title
|
|
39
|
+
}) => {
|
|
40
|
+
const headerContent = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
41
|
+
/* @__PURE__ */ jsx(Bullet, { sentiment, icon: sentiment === "warning" || sentiment === "danger" ? "information-outline" : "check" }),
|
|
42
|
+
/* @__PURE__ */ jsx(StyledTextTitle, { as: "h2", variant: "headingSmallStronger", children: title })
|
|
43
|
+
] });
|
|
44
|
+
const contextValue = useMemo(() => ({
|
|
45
|
+
sentiment
|
|
46
|
+
}), [sentiment]);
|
|
47
|
+
return /* @__PURE__ */ jsx(Modal, { ariaLabel, className, "data-testid": dataTestId, disclosure, hideOnClickOutside, hideOnEsc, id, isClosable, onBeforeClose, onClose, open, placement, size: "xsmall", children: typeof children === "function" ? (modalProps) => /* @__PURE__ */ jsxs(DialogContext.Provider, { value: contextValue, children: [
|
|
48
|
+
headerContent,
|
|
49
|
+
children(modalProps)
|
|
50
|
+
] }) : /* @__PURE__ */ jsxs(DialogContext.Provider, { value: contextValue, children: [
|
|
51
|
+
headerContent,
|
|
52
|
+
children
|
|
53
|
+
] }) });
|
|
54
|
+
};
|
|
55
|
+
const Dialog = Object.assign(BaseDialog, {
|
|
56
|
+
Buttons: DialogButtons,
|
|
57
|
+
Button: DialogButton,
|
|
58
|
+
CancelButton: DialogCancelButton,
|
|
59
|
+
Stack: DialogStack,
|
|
60
|
+
Text: DialogText,
|
|
61
|
+
useDialogContext
|
|
62
|
+
});
|
|
63
|
+
export {
|
|
64
|
+
BaseDialog,
|
|
65
|
+
Dialog
|
|
66
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Button } from '../../Button';
|
|
3
|
+
type DialogButtonProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
} & Pick<ComponentProps<typeof Button>, 'onClick' | 'disabled' | 'tooltip'>;
|
|
6
|
+
export declare const DialogButton: ({ children, onClick, disabled, tooltip, }: DialogButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button } from "../../Button/index.js";
|
|
3
|
+
import { useDialogContext } from "../Context.js";
|
|
4
|
+
const DialogButton = ({
|
|
5
|
+
children,
|
|
6
|
+
onClick,
|
|
7
|
+
disabled,
|
|
8
|
+
tooltip
|
|
9
|
+
}) => {
|
|
10
|
+
const context = useDialogContext();
|
|
11
|
+
return /* @__PURE__ */ jsx(Button, { sentiment: context.sentiment, onClick, disabled, tooltip, children });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
DialogButton
|
|
15
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type DialogButtonsProps = {
|
|
3
|
+
secondaryButton: ReactNode;
|
|
4
|
+
primaryButton: ReactNode;
|
|
5
|
+
};
|
|
6
|
+
export declare const DialogButtons: ({ secondaryButton, primaryButton, }: DialogButtonsProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Stack } from "../../Stack/index.js";
|
|
3
|
+
const DialogButtons = ({
|
|
4
|
+
secondaryButton,
|
|
5
|
+
primaryButton
|
|
6
|
+
}) => /* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, justifyContent: "end", children: [
|
|
7
|
+
secondaryButton,
|
|
8
|
+
primaryButton
|
|
9
|
+
] });
|
|
10
|
+
export {
|
|
11
|
+
DialogButtons
|
|
12
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ComponentProps, ReactNode } from 'react';
|
|
2
|
+
import { Button } from '../../Button';
|
|
3
|
+
type DialogCancelButtonProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
onClick: ComponentProps<typeof Button>['onClick'];
|
|
6
|
+
};
|
|
7
|
+
export declare const DialogCancelButton: ({ children, onClick, }: DialogCancelButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { Button } from "../../Button/index.js";
|
|
3
|
+
const DialogCancelButton = ({
|
|
4
|
+
children,
|
|
5
|
+
onClick
|
|
6
|
+
}) => /* @__PURE__ */ jsx(Button, { variant: "outlined", sentiment: "neutral", onClick, children });
|
|
7
|
+
export {
|
|
8
|
+
DialogCancelButton
|
|
9
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
declare const CONTAINER_SIZES: {
|
|
3
|
+
readonly small: 720;
|
|
4
|
+
readonly medium: 720;
|
|
5
|
+
readonly large: 1140;
|
|
6
|
+
};
|
|
7
|
+
type SizesTypes = keyof typeof CONTAINER_SIZES;
|
|
8
|
+
type EmptyStateProps = {
|
|
9
|
+
title?: string;
|
|
10
|
+
description: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Container size will be same on `small` and `medium`
|
|
13
|
+
* only the image size will change on those properties.
|
|
14
|
+
* `small` and `medium` container is 720px wide
|
|
15
|
+
* `large` container is 1080px wide
|
|
16
|
+
*/
|
|
17
|
+
size?: SizesTypes;
|
|
18
|
+
/**
|
|
19
|
+
* You can give the path of an image or a component that will render an image.
|
|
20
|
+
*/
|
|
21
|
+
image?: ReactNode;
|
|
22
|
+
primaryButton?: ReactNode;
|
|
23
|
+
secondaryButton?: ReactNode;
|
|
24
|
+
learnMore?: {
|
|
25
|
+
link: string;
|
|
26
|
+
text: string;
|
|
27
|
+
target?: string;
|
|
28
|
+
};
|
|
29
|
+
bordered?: boolean;
|
|
30
|
+
className?: string;
|
|
31
|
+
children?: ReactNode;
|
|
32
|
+
'data-testid'?: string;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* EmptyState component is used to display a message when there is no data to show.
|
|
36
|
+
*/
|
|
37
|
+
export declare const EmptyState: ({ image, title, size, description, primaryButton, secondaryButton, learnMore, className, bordered, children, "data-testid": dataTestId, }: EmptyStateProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
38
|
+
export {};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { jsx, jsxs } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import _styled from "@emotion/styled/base";
|
|
3
|
+
import { Link } from "../Link/index.js";
|
|
4
|
+
import { Stack } from "../Stack/index.js";
|
|
5
|
+
import { Text } from "../Text/index.js";
|
|
6
|
+
function _EMOTION_STRINGIFIED_CSS_ERROR__() {
|
|
7
|
+
return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop).";
|
|
8
|
+
}
|
|
9
|
+
const CONTAINER_SIZES = {
|
|
10
|
+
small: 720,
|
|
11
|
+
medium: 720,
|
|
12
|
+
large: 1140
|
|
13
|
+
};
|
|
14
|
+
const IMAGE_SIZES = {
|
|
15
|
+
small: 64,
|
|
16
|
+
medium: 96,
|
|
17
|
+
large: 240
|
|
18
|
+
};
|
|
19
|
+
const CenteredText = /* @__PURE__ */ _styled(Text, process.env.NODE_ENV === "production" ? {
|
|
20
|
+
target: "e1m66ceh2"
|
|
21
|
+
} : {
|
|
22
|
+
target: "e1m66ceh2",
|
|
23
|
+
label: "CenteredText"
|
|
24
|
+
})(process.env.NODE_ENV === "production" ? {
|
|
25
|
+
name: "1azakc",
|
|
26
|
+
styles: "text-align:center"
|
|
27
|
+
} : {
|
|
28
|
+
name: "1azakc",
|
|
29
|
+
styles: "text-align:center",
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Vjb25kYXJ5QnV0dG9ufVxuICAgICAgICAgIHtwcmltYXJ5QnV0dG9ufVxuICAgICAgICA8L1N0YWNrPlxuICAgICAgICB7bGVhcm5Nb3JlPy50ZXh0ID8gKFxuICAgICAgICAgIDxMaW5rXG4gICAgICAgICAgICBocmVmPXtsZWFybk1vcmUubGlua31cbiAgICAgICAgICAgIHRhcmdldD17bGVhcm5Nb3JlLnRhcmdldH1cbiAgICAgICAgICAgIHNlbnRpbWVudD1cImluZm9cIlxuICAgICAgICAgICAgaWNvblBvc2l0aW9uPVwicmlnaHRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtsZWFybk1vcmUudGV4dH1cbiAgICAgICAgICA8L0xpbms+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9TdGFjaz5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICA8L1N0eWxlZFN0YWNrPlxuICA8L0NvbnRhaW5lcj5cbilcbiJdfQ== */",
|
|
31
|
+
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
32
|
+
});
|
|
33
|
+
const Container = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
|
|
34
|
+
shouldForwardProp: (prop) => !["size", "bordered"].includes(prop),
|
|
35
|
+
target: "e1m66ceh1"
|
|
36
|
+
} : {
|
|
37
|
+
shouldForwardProp: (prop) => !["size", "bordered"].includes(prop),
|
|
38
|
+
target: "e1m66ceh1",
|
|
39
|
+
label: "Container"
|
|
40
|
+
})("max-width:", ({
|
|
41
|
+
size
|
|
42
|
+
}) => CONTAINER_SIZES[size], "px;margin:0 auto;", ({
|
|
43
|
+
size
|
|
44
|
+
}) => size === "large" ? "padding: 0 140px" : null, ";", ({
|
|
45
|
+
theme,
|
|
46
|
+
bordered
|
|
47
|
+
}) => bordered ? `
|
|
48
|
+
border: 1px solid ${theme.colors.neutral.border};
|
|
49
|
+
border-radius: ${theme.radii.default};
|
|
50
|
+
` : null, ";" + (process.env.NODE_ENV === "production" ? "" : "/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vbmRhcnlCdXR0b259XG4gICAgICAgICAge3ByaW1hcnlCdXR0b259XG4gICAgICAgIDwvU3RhY2s+XG4gICAgICAgIHtsZWFybk1vcmU/LnRleHQgPyAoXG4gICAgICAgICAgPExpbmtcbiAgICAgICAgICAgIGhyZWY9e2xlYXJuTW9yZS5saW5rfVxuICAgICAgICAgICAgdGFyZ2V0PXtsZWFybk1vcmUudGFyZ2V0fVxuICAgICAgICAgICAgc2VudGltZW50PVwiaW5mb1wiXG4gICAgICAgICAgICBpY29uUG9zaXRpb249XCJyaWdodFwiXG4gICAgICAgICAgPlxuICAgICAgICAgICAge2xlYXJuTW9yZS50ZXh0fVxuICAgICAgICAgIDwvTGluaz5cbiAgICAgICAgKSA6IG51bGx9XG4gICAgICA8L1N0YWNrPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvU3R5bGVkU3RhY2s+XG4gIDwvQ29udGFpbmVyPlxuKVxuIl19 */"));
|
|
51
|
+
const StyledStack = /* @__PURE__ */ _styled(Stack, process.env.NODE_ENV === "production" ? {
|
|
52
|
+
target: "e1m66ceh0"
|
|
53
|
+
} : {
|
|
54
|
+
target: "e1m66ceh0",
|
|
55
|
+
label: "StyledStack"
|
|
56
|
+
})("padding:", ({
|
|
57
|
+
theme
|
|
58
|
+
}) => theme.space["5"], ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0VtcHR5U3RhdGUvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTBDaUMiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvRW1wdHlTd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GFsdD1cIlwiIHNyYz17aW1hZ2V9IC8+XG4gICAgICAgICkgOiAoXG4gICAgICAgICAgaW1hZ2VcbiAgICAgICAgKX1cbiAgICAgICAgPFN0YWNrIGdhcD17MC41fSBhbGlnbkl0ZW1zPVwiY2VudGVyXCI+XG4gICAgICAgICAge3RpdGxlID8gKFxuICAgICAgICAgICAgPENlbnRlcmVkVGV4dCBhcz1cImgyXCIgdmFyaWFudD1cImhlYWRpbmdTbWFsbFwiIHByb21pbmVuY2U9XCJzdHJvbmdcIj5cbiAgICAgICAgICAgICAge3RpdGxlfVxuICAgICAgICAgICAgPC9DZW50ZXJlZFRleHQ+XG4gICAgICAgICAgKSA6IG51bGx9XG4gICAgICAgICAgPENlbnRlcmVkVGV4dCBhcz1cInBcIiB2YXJpYW50PVwiYm9keVwiPlxuICAgICAgICAgICAge2Rlc2NyaXB0aW9ufVxuICAgICAgICAgIDwvQ2VudGVyZWRUZXh0PlxuICAgICAgICA8L1N0YWNrPlxuICAgICAgPC9TdGFjaz5cbiAgICAgIDxTdGFjayBnYXA9ezJ9IGp1c3RpZnlDb250ZW50PVwiY2VudGVyXCIgYWxpZ25JdGVtcz1cImNlbnRlclwiPlxuICAgICAgICA8U3RhY2sgZGlyZWN0aW9uPVwicm93XCIgZ2FwPXsyfT5cbiAgICAgICAgICB7c2Vjb25kYXJ5QnV0dG9ufVxuICAgICAgICAgIHtwcmltYXJ5QnV0dG9ufVxuICAgICAgICA8L1N0YWNrPlxuICAgICAgICB7bGVhcm5Nb3JlPy50ZXh0ID8gKFxuICAgICAgICAgIDxMaW5rXG4gICAgICAgICAgICBocmVmPXtsZWFybk1vcmUubGlua31cbiAgICAgICAgICAgIHRhcmdldD17bGVhcm5Nb3JlLnRhcmdldH1cbiAgICAgICAgICAgIHNlbnRpbWVudD1cImluZm9cIlxuICAgICAgICAgICAgaWNvblBvc2l0aW9uPVwicmlnaHRcIlxuICAgICAgICAgID5cbiAgICAgICAgICAgIHtsZWFybk1vcmUudGV4dH1cbiAgICAgICAgICA8L0xpbms+XG4gICAgICAgICkgOiBudWxsfVxuICAgICAgPC9TdGFjaz5cbiAgICAgIHtjaGlsZHJlbn1cbiAgICA8L1N0eWxlZFN0YWNrPlxuICA8L0NvbnRhaW5lcj5cbilcbiJdfQ== */"));
|
|
59
|
+
const EmptyState = ({
|
|
60
|
+
image,
|
|
61
|
+
title,
|
|
62
|
+
size = "large",
|
|
63
|
+
description,
|
|
64
|
+
primaryButton,
|
|
65
|
+
secondaryButton,
|
|
66
|
+
learnMore,
|
|
67
|
+
className,
|
|
68
|
+
bordered,
|
|
69
|
+
children,
|
|
70
|
+
"data-testid": dataTestId
|
|
71
|
+
}) => /* @__PURE__ */ jsx(Container, { size, bordered, className, "data-testid": dataTestId, children: /* @__PURE__ */ jsxs(StyledStack, { gap: 3, justifyContent: "center", alignItems: "center", children: [
|
|
72
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 2, justifyContent: "center", alignItems: "center", children: [
|
|
73
|
+
image && typeof image === "string" ? /* @__PURE__ */ jsx("img", { width: IMAGE_SIZES[size], alt: "", src: image }) : image,
|
|
74
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 0.5, alignItems: "center", children: [
|
|
75
|
+
title ? /* @__PURE__ */ jsx(CenteredText, { as: "h2", variant: "headingSmall", prominence: "strong", children: title }) : null,
|
|
76
|
+
/* @__PURE__ */ jsx(CenteredText, { as: "p", variant: "body", children: description })
|
|
77
|
+
] })
|
|
78
|
+
] }),
|
|
79
|
+
/* @__PURE__ */ jsxs(Stack, { gap: 2, justifyContent: "center", alignItems: "center", children: [
|
|
80
|
+
/* @__PURE__ */ jsxs(Stack, { direction: "row", gap: 2, children: [
|
|
81
|
+
secondaryButton,
|
|
82
|
+
primaryButton
|
|
83
|
+
] }),
|
|
84
|
+
learnMore?.text ? /* @__PURE__ */ jsx(Link, { href: learnMore.link, target: learnMore.target, sentiment: "info", iconPosition: "right", children: learnMore.text }) : null
|
|
85
|
+
] }),
|
|
86
|
+
children
|
|
87
|
+
] }) });
|
|
88
|
+
export {
|
|
89
|
+
EmptyState
|
|
90
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type ExpandableProps = {
|
|
3
|
+
/**
|
|
4
|
+
* The content to display
|
|
5
|
+
*/
|
|
6
|
+
children: ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* To display or not the content
|
|
9
|
+
*/
|
|
10
|
+
opened?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* The minimum height of the content
|
|
13
|
+
*/
|
|
14
|
+
minHeight?: number;
|
|
15
|
+
className?: string;
|
|
16
|
+
'data-testid'?: string;
|
|
17
|
+
animationDuration?: number;
|
|
18
|
+
};
|
|
19
|
+
export declare const StyledExpandable: import("@emotion/styled").StyledComponent<{
|
|
20
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
21
|
+
as?: import("react").ElementType<any, keyof import("react").JSX.IntrinsicElements> | undefined;
|
|
22
|
+
} & {
|
|
23
|
+
opened?: boolean | undefined;
|
|
24
|
+
minHeight: number;
|
|
25
|
+
animationDuration: number;
|
|
26
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
27
|
+
/**
|
|
28
|
+
* The Expandable component is a dynamic React component that allows for the expansion of its children content
|
|
29
|
+
* based on its height. The component comes with a sleek and smooth animation, providing a visually pleasing
|
|
30
|
+
* user experience.
|
|
31
|
+
*/
|
|
32
|
+
export declare const Expandable: ({ children, opened, minHeight, className, "data-testid": dataTestId, animationDuration, }: ExpandableProps) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import _styled from "@emotion/styled/base";
|
|
3
|
+
import { useState, useRef, useEffect } from "react";
|
|
4
|
+
const ANIMATION_DURATION = 300;
|
|
5
|
+
const StyledExpandable = /* @__PURE__ */ _styled("div", process.env.NODE_ENV === "production" ? {
|
|
6
|
+
shouldForwardProp: (prop) => !["opened", "minHeight", "animationDuration"].includes(prop),
|
|
7
|
+
target: "e5hc7t70"
|
|
8
|
+
} : {
|
|
9
|
+
shouldForwardProp: (prop) => !["opened", "minHeight", "animationDuration"].includes(prop),
|
|
10
|
+
target: "e5hc7t70",
|
|
11
|
+
label: "StyledExpandable"
|
|
12
|
+
})("transition:max-height ", ({
|
|
13
|
+
animationDuration
|
|
14
|
+
}) => animationDuration, "ms ease-out,opacity ", ({
|
|
15
|
+
animationDuration
|
|
16
|
+
}) => animationDuration, "ms ease-out;overflow:", ({
|
|
17
|
+
opened
|
|
18
|
+
}) => opened ? "visible" : "hidden", ";height:auto;max-height:", ({
|
|
19
|
+
opened,
|
|
20
|
+
minHeight
|
|
21
|
+
}) => opened ? "initial" : `${minHeight}px`, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL0V4cGFuZGFibGUvaW5kZXgudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQTJCc0UiLCJmaWxlIjoiL2hvbWUvcnVubmVyL3dvcmsvdWx0cmF2aW9sZXQvdWx0cmF2aW9sZXQvcGFja2FnZXMvdWkvc3JjL2NvbXBvbmVudHMvRXhwYW5kYWJsZS9pbmRleC50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgc3R5bGVkIGZyb20gJ0BlbW90aW9uL3N0eWxlZCdcbmltcG9ydCB0eXBlIHsgUmVhY3ROb2RlIH0gZnJvbSAncmVhY3QnXG5pbXBvcnQgeyB1c2VFZmZlY3QsIHVzZVJlZiwgdXNlU3RhdGUgfSBmcm9tICdyZWFjd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ZWYuY3VycmVudC5zdHlsZS5tYXhIZWlnaHQgPSAnaW5pdGlhbCdcbiAgICAgICAgICByZWYuY3VycmVudC5zdHlsZS5vdmVyZmxvdyA9ICd2aXNpYmxlJ1xuICAgICAgICAgIHJlZi5jdXJyZW50LnN0eWxlLnZpc2liaWxpdHkgPSAnJ1xuICAgICAgICB9XG4gICAgICB9LCBBTklNQVRJT05fRFVSQVRJT04pXG4gICAgfSBlbHNlIHtcbiAgICAgIGNsZWFyVGltZW91dCh0cmFuc2l0aW9uVGltZXIuY3VycmVudClcblxuICAgICAgaWYgKHJlZi5jdXJyZW50ICYmIGhlaWdodCkge1xuICAgICAgICByZWYuY3VycmVudC5zdHlsZS5tYXhIZWlnaHQgPSBgJHtoZWlnaHR9cHhgXG4gICAgICAgIHRyYW5zaXRpb25UaW1lci5jdXJyZW50ID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgICAgICAgaWYgKHJlZi5jdXJyZW50KSB7XG4gICAgICAgICAgICByZWYuY3VycmVudC5zdHlsZS5tYXhIZWlnaHQgPSBgJHttaW5IZWlnaHR9cHhgXG4gICAgICAgICAgICByZWYuY3VycmVudC5zdHlsZS5vdmVyZmxvdyA9ICdoaWRkZW4nXG4gICAgICAgICAgICBzZXRUaW1lb3V0KCgpID0+IHtcbiAgICAgICAgICAgICAgaWYgKHJlZi5jdXJyZW50ICYmICFtaW5IZWlnaHQpIHtcbiAgICAgICAgICAgICAgICByZWYuY3VycmVudC5zdHlsZS52aXNpYmlsaXR5ID0gJ2hpZGRlbidcbiAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSwgQU5JTUFUSU9OX0RVUkFUSU9OKVxuICAgICAgICAgIH1cbiAgICAgICAgfSwgMClcbiAgICAgIH1cbiAgICB9XG5cbiAgICByZXR1cm4gKCkgPT4ge1xuICAgICAgY2xlYXJUaW1lb3V0KHRyYW5zaXRpb25UaW1lci5jdXJyZW50KVxuICAgIH1cbiAgfSwgW2hlaWdodCwgbWluSGVpZ2h0LCBvcGVuZWRdKVxuXG4gIHJldHVybiAoXG4gICAgPFN0eWxlZEV4cGFuZGFibGVcbiAgICAgIGRhdGEtdGVzdGlkPXtkYXRhVGVzdElkfVxuICAgICAgcmVmPXtyZWZ9XG4gICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgIG9wZW5lZD17b3BlbmVkfVxuICAgICAgbWluSGVpZ2h0PXttaW5IZWlnaHR9XG4gICAgICBhbmltYXRpb25EdXJhdGlvbj17YW5pbWF0aW9uRHVyYXRpb259XG4gICAgPlxuICAgICAge2NoaWxkcmVufVxuICAgIDwvU3R5bGVkRXhwYW5kYWJsZT5cbiAgKVxufVxuIl19 */"));
|
|
22
|
+
const Expandable = ({
|
|
23
|
+
children,
|
|
24
|
+
opened,
|
|
25
|
+
minHeight = 0,
|
|
26
|
+
className,
|
|
27
|
+
"data-testid": dataTestId,
|
|
28
|
+
animationDuration = ANIMATION_DURATION
|
|
29
|
+
}) => {
|
|
30
|
+
const [height, setHeight] = useState(null);
|
|
31
|
+
const transitionTimer = useRef();
|
|
32
|
+
const ref = useRef(null);
|
|
33
|
+
useEffect(() => {
|
|
34
|
+
if (ref.current) {
|
|
35
|
+
setHeight(ref.current.scrollHeight ?? 0);
|
|
36
|
+
}
|
|
37
|
+
}, [ref.current?.scrollHeight]);
|
|
38
|
+
useEffect(() => {
|
|
39
|
+
if (opened && ref.current && height) {
|
|
40
|
+
ref.current.style.maxHeight = `${height}px`;
|
|
41
|
+
ref.current.style.visibility = "";
|
|
42
|
+
transitionTimer.current = setTimeout(() => {
|
|
43
|
+
if (ref.current) {
|
|
44
|
+
ref.current.style.maxHeight = "initial";
|
|
45
|
+
ref.current.style.overflow = "visible";
|
|
46
|
+
ref.current.style.visibility = "";
|
|
47
|
+
}
|
|
48
|
+
}, ANIMATION_DURATION);
|
|
49
|
+
} else {
|
|
50
|
+
clearTimeout(transitionTimer.current);
|
|
51
|
+
if (ref.current && height) {
|
|
52
|
+
ref.current.style.maxHeight = `${height}px`;
|
|
53
|
+
transitionTimer.current = setTimeout(() => {
|
|
54
|
+
if (ref.current) {
|
|
55
|
+
ref.current.style.maxHeight = `${minHeight}px`;
|
|
56
|
+
ref.current.style.overflow = "hidden";
|
|
57
|
+
setTimeout(() => {
|
|
58
|
+
if (ref.current && !minHeight) {
|
|
59
|
+
ref.current.style.visibility = "hidden";
|
|
60
|
+
}
|
|
61
|
+
}, ANIMATION_DURATION);
|
|
62
|
+
}
|
|
63
|
+
}, 0);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
return () => {
|
|
67
|
+
clearTimeout(transitionTimer.current);
|
|
68
|
+
};
|
|
69
|
+
}, [height, minHeight, opened]);
|
|
70
|
+
return /* @__PURE__ */ jsx(StyledExpandable, { "data-testid": dataTestId, ref, className, opened, minHeight, animationDuration, children });
|
|
71
|
+
};
|
|
72
|
+
export {
|
|
73
|
+
Expandable,
|
|
74
|
+
StyledExpandable
|
|
75
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
import { Link } from '../Link';
|
|
3
|
+
export declare const GlobalAlertLink: ({ children, href, target, download, rel, className, onClick, "aria-label": ariaLabel, oneLine, "data-testid": dataTestId, }: Omit<ComponentProps<typeof Link>, 'sentiment' | 'prominence' | 'size'>) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { jsx } from "@emotion/react/jsx-runtime";
|
|
2
|
+
import { useTheme } from "@emotion/react";
|
|
3
|
+
import { Link } from "../Link/index.js";
|
|
4
|
+
const GlobalAlertLink = ({
|
|
5
|
+
children,
|
|
6
|
+
href,
|
|
7
|
+
target,
|
|
8
|
+
download,
|
|
9
|
+
rel,
|
|
10
|
+
className,
|
|
11
|
+
onClick,
|
|
12
|
+
"aria-label": ariaLabel,
|
|
13
|
+
oneLine = false,
|
|
14
|
+
"data-testid": dataTestId
|
|
15
|
+
}) => {
|
|
16
|
+
const {
|
|
17
|
+
theme
|
|
18
|
+
} = useTheme();
|
|
19
|
+
return /* @__PURE__ */ jsx(Link, { href, target, download, sentiment: "neutral", prominence: theme === "light" ? "stronger" : "strong", size: "small", variant: "inline", rel, className, onClick, "aria-label": ariaLabel, oneLine, "data-testid": dataTestId, children });
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
GlobalAlertLink
|
|
23
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
type GlobalAlertProps = {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
variant?: 'info' | 'danger' | 'promotional';
|
|
5
|
+
onClose?: () => void;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
className?: string;
|
|
8
|
+
'data-testid'?: string;
|
|
9
|
+
buttonText?: string;
|
|
10
|
+
onClickButton?: () => void;
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* GlobalAlert is a component that is used to display a global alert message.
|
|
14
|
+
* It has its own internal state and can be closed by clicking on the close button.
|
|
15
|
+
*/
|
|
16
|
+
export declare const GlobalAlert: {
|
|
17
|
+
({ children, variant, onClose, closable, buttonText, onClickButton, className, "data-testid": dataTestId, }: GlobalAlertProps): import("@emotion/react/jsx-runtime").JSX.Element | null;
|
|
18
|
+
Link: ({ children, href, target, download, rel, className, onClick, "aria-label": ariaLabel, oneLine, "data-testid": dataTestId, }: Omit<{
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
target?: import("react").HTMLAttributeAnchorTarget | undefined;
|
|
21
|
+
download?: string | boolean | undefined;
|
|
22
|
+
sentiment?: import("../../theme").Color | undefined;
|
|
23
|
+
prominence?: "strong" | "default" | "stronger" | "weak" | undefined;
|
|
24
|
+
size?: ("large" | "small") | undefined;
|
|
25
|
+
iconPosition?: ("left" | "right") | undefined;
|
|
26
|
+
rel?: string | undefined;
|
|
27
|
+
className?: string | undefined;
|
|
28
|
+
href: string;
|
|
29
|
+
onClick?: import("react").MouseEventHandler<HTMLAnchorElement> | undefined;
|
|
30
|
+
'aria-label'?: string | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* GlobalAlert is a component that is used to display a global alert message.
|
|
33
|
+
* It has its own internal state and can be closed by clicking on the close button.
|
|
34
|
+
*/
|
|
35
|
+
oneLine?: boolean | undefined;
|
|
36
|
+
'data-testid'?: string | undefined;
|
|
37
|
+
variant?: "inline" | "standalone" | undefined;
|
|
38
|
+
} & import("react").RefAttributes<HTMLAnchorElement>, "size" | "sentiment" | "prominence">) => import("@emotion/react/jsx-runtime").JSX.Element;
|
|
39
|
+
};
|
|
40
|
+
export {};
|