@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
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Checkbox } from '../Checkbox/index.js';
|
|
3
|
-
import { HeaderCell } from './HeaderCell.js';
|
|
4
|
-
import { useListContext } from './ListContext.js';
|
|
5
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledHeaderRow = /*#__PURE__*/_styled("div", {
|
|
8
|
-
target: "epvvdb70"
|
|
9
|
-
})("column-gap:", ({
|
|
10
|
-
theme
|
|
11
|
-
}) => theme.space['2'], ";padding:0 ", ({
|
|
12
|
-
theme
|
|
13
|
-
}) => theme.space['2'], ";");
|
|
14
|
-
const HeaderRow = ({
|
|
15
|
-
children,
|
|
16
|
-
hasSelectAllColumn
|
|
17
|
-
}) => {
|
|
18
|
-
const {
|
|
19
|
-
allRowSelectValue,
|
|
20
|
-
selectAll,
|
|
21
|
-
unselectAll,
|
|
22
|
-
selectedRowIds,
|
|
23
|
-
expandButton
|
|
24
|
-
} = useListContext();
|
|
25
|
-
const selectableRowCount = Object.keys(selectedRowIds).length;
|
|
26
|
-
return jsxs(StyledHeaderRow, {
|
|
27
|
-
role: "row",
|
|
28
|
-
children: [hasSelectAllColumn ? jsx(HeaderCell, {
|
|
29
|
-
children: jsx(Checkbox, {
|
|
30
|
-
name: "list-select-checkbox",
|
|
31
|
-
value: "all",
|
|
32
|
-
"aria-label": "select all",
|
|
33
|
-
checked: allRowSelectValue,
|
|
34
|
-
onChange: allRowSelectValue === false ? selectAll : unselectAll,
|
|
35
|
-
disabled: selectableRowCount === 0
|
|
36
|
-
})
|
|
37
|
-
}) : null, expandButton ? jsx(HeaderCell, {
|
|
38
|
-
children: null
|
|
39
|
-
}) : null, children]
|
|
40
|
-
});
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
export { HeaderRow };
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { forwardRef, useEffect } from 'react';
|
|
3
|
-
import { Button } from '../Button/index.js';
|
|
4
|
-
import { Checkbox } from '../Checkbox/index.js';
|
|
5
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
6
|
-
import { Cell } from './Cell.js';
|
|
7
|
-
import { useListContext } from './ListContext.js';
|
|
8
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
9
|
-
|
|
10
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
|
|
11
|
-
const ExpandableWrapper = /*#__PURE__*/_styled("div", {
|
|
12
|
-
target: "ei4uyz12"
|
|
13
|
-
})("grid-column:1/-1;grid-column-start:1;border-top:1px solid ", ({
|
|
14
|
-
theme
|
|
15
|
-
}) => theme.colors.neutral.border, ";margin:0 -", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.space['2'], ";padding:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.space['2'], ";cursor:auto;background:", ({
|
|
20
|
-
theme
|
|
21
|
-
}) => theme.colors.neutral.backgroundWeak, ";border-radius:0 0 ", ({
|
|
22
|
-
theme
|
|
23
|
-
}) => theme.radii.default, " ", ({
|
|
24
|
-
theme
|
|
25
|
-
}) => theme.radii.default, ";");
|
|
26
|
-
const StyledRow = /*#__PURE__*/_styled('div', {
|
|
27
|
-
shouldForwardProp: prop => !['sentiment'].includes(prop),
|
|
28
|
-
target: "ei4uyz11"
|
|
29
|
-
})("position:relative;border:1px solid ", ({
|
|
30
|
-
theme
|
|
31
|
-
}) => theme.colors.neutral.border, ";border-radius:", ({
|
|
32
|
-
theme
|
|
33
|
-
}) => theme.radii.default, ";transition:box-shadow 200ms ease,border-color 200ms ease;box-shadow:none;background-color:", ({
|
|
34
|
-
theme
|
|
35
|
-
}) => theme.colors.neutral.background, ";font-size:", ({
|
|
36
|
-
theme
|
|
37
|
-
}) => theme.typography.bodySmall.fontSize, ";column-gap:", ({
|
|
38
|
-
theme
|
|
39
|
-
}) => theme.space['2'], ";padding:0 ", ({
|
|
40
|
-
theme
|
|
41
|
-
}) => theme.space['2'], ";&[role='button row']{cursor:pointer;}", ({
|
|
42
|
-
theme,
|
|
43
|
-
sentiment
|
|
44
|
-
}) => `
|
|
45
|
-
color: ${theme.colors[sentiment].text};
|
|
46
|
-
border-color: ${theme.colors[sentiment].border};
|
|
47
|
-
background-color: ${theme.colors[sentiment].background};
|
|
48
|
-
& [data-expandable-content] {
|
|
49
|
-
border-color: ${theme.colors[sentiment].border};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
${sentiment === 'neutral' ? `&:hover {
|
|
53
|
-
border-color: ${theme.colors.primary.border};
|
|
54
|
-
box-shadow: ${theme.shadows.hoverPrimary};
|
|
55
|
-
}
|
|
56
|
-
` : ''}
|
|
57
|
-
`, " &[data-highlight='true']{border-color:", ({
|
|
58
|
-
theme
|
|
59
|
-
}) => theme.colors.primary.border, ";box-shadow:", ({
|
|
60
|
-
theme
|
|
61
|
-
}) => theme.shadows.hoverPrimary, ";}&[aria-disabled='true']{border:1px solid ", ({
|
|
62
|
-
theme
|
|
63
|
-
}) => theme.colors.neutral.borderDisabled, ";background-color:", ({
|
|
64
|
-
theme
|
|
65
|
-
}) => theme.colors.neutral.backgroundDisabled, ";color:", ({
|
|
66
|
-
theme
|
|
67
|
-
}) => theme.colors.neutral.textDisabled, ";cursor:not-allowed;}");
|
|
68
|
-
const StyledCheckboxContainer = /*#__PURE__*/_styled("div", {
|
|
69
|
-
target: "ei4uyz10"
|
|
70
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
71
|
-
name: "zjik7",
|
|
72
|
-
styles: "display:flex"
|
|
73
|
-
} : {
|
|
74
|
-
name: "zjik7",
|
|
75
|
-
styles: "display:flex",
|
|
76
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
77
|
-
});
|
|
78
|
-
const Row = /*#__PURE__*/forwardRef(({
|
|
79
|
-
children,
|
|
80
|
-
id,
|
|
81
|
-
expandable,
|
|
82
|
-
disabled,
|
|
83
|
-
selectDisabled,
|
|
84
|
-
sentiment = 'neutral',
|
|
85
|
-
className,
|
|
86
|
-
'data-testid': dataTestid
|
|
87
|
-
}, ref) => {
|
|
88
|
-
const {
|
|
89
|
-
selectable,
|
|
90
|
-
registerExpandableRow,
|
|
91
|
-
expandedRowIds,
|
|
92
|
-
expandRow,
|
|
93
|
-
collapseRow,
|
|
94
|
-
registerSelectableRow,
|
|
95
|
-
selectedRowIds,
|
|
96
|
-
selectRow,
|
|
97
|
-
unselectRow,
|
|
98
|
-
expandButton
|
|
99
|
-
} = useListContext();
|
|
100
|
-
const isSelectDisabled = disabled || selectDisabled !== undefined && selectDisabled !== false;
|
|
101
|
-
const hasExpandable = !!expandable;
|
|
102
|
-
useEffect(() => {
|
|
103
|
-
if (hasExpandable) {
|
|
104
|
-
const unregisterCallback = registerExpandableRow(id);
|
|
105
|
-
return unregisterCallback;
|
|
106
|
-
}
|
|
107
|
-
return undefined;
|
|
108
|
-
}, [id, hasExpandable, registerExpandableRow]);
|
|
109
|
-
useEffect(() => {
|
|
110
|
-
if (!isSelectDisabled) {
|
|
111
|
-
const unregisterCallback = registerSelectableRow(id);
|
|
112
|
-
return unregisterCallback;
|
|
113
|
-
}
|
|
114
|
-
return undefined;
|
|
115
|
-
}, [id, registerSelectableRow, isSelectDisabled]);
|
|
116
|
-
const toggleRowExpand = () => {
|
|
117
|
-
if (expandedRowIds[id]) {
|
|
118
|
-
collapseRow(id);
|
|
119
|
-
} else {
|
|
120
|
-
expandRow(id);
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
const canClickRowToExpand = !disabled && !!expandable && !expandButton;
|
|
124
|
-
return jsxs(StyledRow, {
|
|
125
|
-
className: className,
|
|
126
|
-
ref: ref,
|
|
127
|
-
role: canClickRowToExpand ? 'button row' : 'row',
|
|
128
|
-
onClick: canClickRowToExpand ? toggleRowExpand : undefined,
|
|
129
|
-
onKeyDown: canClickRowToExpand ? event => {
|
|
130
|
-
if (event.key === ' ') {
|
|
131
|
-
toggleRowExpand();
|
|
132
|
-
event.preventDefault();
|
|
133
|
-
}
|
|
134
|
-
} : undefined,
|
|
135
|
-
tabIndex: canClickRowToExpand ? 0 : -1,
|
|
136
|
-
sentiment: sentiment,
|
|
137
|
-
"aria-disabled": disabled,
|
|
138
|
-
"aria-expanded": expandable ? expandedRowIds[id] : undefined,
|
|
139
|
-
"data-highlight": !!selectedRowIds[id],
|
|
140
|
-
"data-testid": dataTestid,
|
|
141
|
-
children: [selectable ? jsx(Cell, {
|
|
142
|
-
preventClick: canClickRowToExpand,
|
|
143
|
-
children: jsx(StyledCheckboxContainer, {
|
|
144
|
-
children: jsx(Tooltip, {
|
|
145
|
-
text: typeof selectDisabled === 'string' ? selectDisabled : undefined,
|
|
146
|
-
children: jsx(Checkbox, {
|
|
147
|
-
name: "list-select-checkbox",
|
|
148
|
-
"aria-label": "select",
|
|
149
|
-
checked: selectedRowIds[id],
|
|
150
|
-
value: id,
|
|
151
|
-
onChange: () => {
|
|
152
|
-
if (selectedRowIds[id]) {
|
|
153
|
-
unselectRow(id);
|
|
154
|
-
} else {
|
|
155
|
-
selectRow(id);
|
|
156
|
-
}
|
|
157
|
-
},
|
|
158
|
-
disabled: isSelectDisabled
|
|
159
|
-
})
|
|
160
|
-
})
|
|
161
|
-
})
|
|
162
|
-
}) : null, expandButton ? jsx(Cell, {
|
|
163
|
-
preventClick: true,
|
|
164
|
-
children: jsx(Button, {
|
|
165
|
-
disabled: disabled || !expandable,
|
|
166
|
-
icon: expandedRowIds[id] ? 'arrow-up' : 'arrow-down',
|
|
167
|
-
onClick: toggleRowExpand,
|
|
168
|
-
size: "small",
|
|
169
|
-
sentiment: "neutral",
|
|
170
|
-
variant: "ghost"
|
|
171
|
-
})
|
|
172
|
-
}) : null, children, expandable && expandedRowIds[id] ? jsx(ExpandableWrapper, {
|
|
173
|
-
"data-expandable-content": true,
|
|
174
|
-
onClick: canClickRowToExpand ? e => {
|
|
175
|
-
e.stopPropagation();
|
|
176
|
-
} : undefined,
|
|
177
|
-
onKeyDown: canClickRowToExpand ? e => {
|
|
178
|
-
e.stopPropagation();
|
|
179
|
-
} : undefined,
|
|
180
|
-
children: expandable
|
|
181
|
-
}) : null]
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
|
|
185
|
-
export { Row, StyledRow };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { useMemo } from 'react';
|
|
3
|
-
import { ActionBar } from '../ActionBar/index.js';
|
|
4
|
-
import { useListContext } from './ListContext.js';
|
|
5
|
-
import { jsx } from '@emotion/react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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
|
-
const StyledActionBar = /*#__PURE__*/_styled(ActionBar, {
|
|
9
|
-
target: "eo69e461"
|
|
10
|
-
})("display:flex;align-items:center;padding:0 ", ({
|
|
11
|
-
theme
|
|
12
|
-
}) => theme.space['1'], ";");
|
|
13
|
-
const FlexDiv = /*#__PURE__*/_styled("div", {
|
|
14
|
-
target: "eo69e460"
|
|
15
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
16
|
-
name: "82a6rk",
|
|
17
|
-
styles: "flex:1"
|
|
18
|
-
} : {
|
|
19
|
-
name: "82a6rk",
|
|
20
|
-
styles: "flex:1",
|
|
21
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
22
|
-
});
|
|
23
|
-
function SelectBar({
|
|
24
|
-
children,
|
|
25
|
-
data,
|
|
26
|
-
idKey,
|
|
27
|
-
className
|
|
28
|
-
}) {
|
|
29
|
-
const {
|
|
30
|
-
selectedRowIds,
|
|
31
|
-
unselectAll
|
|
32
|
-
} = useListContext();
|
|
33
|
-
const selectedItems = useMemo(() => data.filter(item => selectedRowIds[item[idKey]]), [data, idKey, selectedRowIds]);
|
|
34
|
-
if (selectedItems.length === 0) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
return jsx(StyledActionBar, {
|
|
38
|
-
className: className,
|
|
39
|
-
children: jsx(FlexDiv, {
|
|
40
|
-
children: children({
|
|
41
|
-
selectedItems,
|
|
42
|
-
unselectAll
|
|
43
|
-
})
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export { SelectBar };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Skeleton } from '../Skeleton/index.js';
|
|
3
|
-
import { Cell } from './Cell.js';
|
|
4
|
-
import { StyledRow } from './Row.js';
|
|
5
|
-
import { jsx, Fragment, jsxs } from '@emotion/react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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
|
-
const StyledLoadingRow = /*#__PURE__*/_styled(StyledRow, {
|
|
9
|
-
target: "efawmbb1"
|
|
10
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
11
|
-
name: "g8zzui",
|
|
12
|
-
styles: "cursor:progress"
|
|
13
|
-
} : {
|
|
14
|
-
name: "g8zzui",
|
|
15
|
-
styles: "cursor:progress",
|
|
16
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
17
|
-
});
|
|
18
|
-
const StyledSkeleton = /*#__PURE__*/_styled(Skeleton, {
|
|
19
|
-
target: "efawmbb0"
|
|
20
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
21
|
-
name: "bet25o",
|
|
22
|
-
styles: "width:80%;max-width:100%"
|
|
23
|
-
} : {
|
|
24
|
-
name: "bet25o",
|
|
25
|
-
styles: "width:80%;max-width:100%",
|
|
26
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
27
|
-
});
|
|
28
|
-
const SkeletonRows = ({
|
|
29
|
-
selectable,
|
|
30
|
-
rows,
|
|
31
|
-
cols
|
|
32
|
-
}) => {
|
|
33
|
-
const rowArray = Array.from({
|
|
34
|
-
length: rows
|
|
35
|
-
}, (_, index) => index);
|
|
36
|
-
const colArray = Array.from({
|
|
37
|
-
length: cols
|
|
38
|
-
}, (_, index) => index);
|
|
39
|
-
return jsx(Fragment, {
|
|
40
|
-
children: rowArray.map(index => jsxs(StyledLoadingRow, {
|
|
41
|
-
sentiment: "neutral",
|
|
42
|
-
role: "row",
|
|
43
|
-
id: `skeleton-${index}`,
|
|
44
|
-
children: [selectable ? jsx("div", {}) : null, colArray.map(columnIndex => jsx(Cell, {
|
|
45
|
-
children: jsx(StyledSkeleton, {
|
|
46
|
-
variant: "line"
|
|
47
|
-
})
|
|
48
|
-
}, columnIndex))]
|
|
49
|
-
}, index))
|
|
50
|
-
});
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
export { SkeletonRows };
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { Body } from './Body.js';
|
|
4
|
-
import { Cell } from './Cell.js';
|
|
5
|
-
import { HeaderCell } from './HeaderCell.js';
|
|
6
|
-
import { HeaderRow } from './HeaderRow.js';
|
|
7
|
-
import { useListContext, ListProvider } from './ListContext.js';
|
|
8
|
-
import { Row } from './Row.js';
|
|
9
|
-
import { SelectBar } from './SelectBar.js';
|
|
10
|
-
import { SkeletonRows } from './SkeletonRows.js';
|
|
11
|
-
import { SELECTABLE_CHECKBOX_SIZE, EXPANDABLE_COLUMN_SIZE } from './constants.js';
|
|
12
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
13
|
-
|
|
14
|
-
const StyledList = /*#__PURE__*/_styled('div', {
|
|
15
|
-
shouldForwardProp: prop => !['template'].includes(prop),
|
|
16
|
-
target: "ef5qi0"
|
|
17
|
-
})("display:flex;flex-flow:column nowrap;width:100%;gap:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.space['1'], ";[role='row'],[role='button row']{display:grid;width:100%;grid-template-columns:", ({
|
|
20
|
-
template
|
|
21
|
-
}) => template, ";align-items:center;}");
|
|
22
|
-
const BaseList = /*#__PURE__*/forwardRef(({
|
|
23
|
-
expandable = false,
|
|
24
|
-
selectable = false,
|
|
25
|
-
columns,
|
|
26
|
-
children,
|
|
27
|
-
loading,
|
|
28
|
-
autoCollapse = false,
|
|
29
|
-
onSelectedChange
|
|
30
|
-
}, ref) => {
|
|
31
|
-
const computeTemplate = `${selectable ? `${SELECTABLE_CHECKBOX_SIZE}px ` : ''}${expandable ? `${EXPANDABLE_COLUMN_SIZE}px ` : ''}${columns.map(({
|
|
32
|
-
width
|
|
33
|
-
}) => width ?? 'minmax(0, 1fr)').join(' ')}`;
|
|
34
|
-
return jsx(ListProvider, {
|
|
35
|
-
selectable: selectable,
|
|
36
|
-
expandButton: expandable,
|
|
37
|
-
autoCollapse: autoCollapse,
|
|
38
|
-
onSelectedChange: onSelectedChange,
|
|
39
|
-
children: jsxs(StyledList, {
|
|
40
|
-
ref: ref,
|
|
41
|
-
role: "grid",
|
|
42
|
-
template: computeTemplate,
|
|
43
|
-
children: [jsx(HeaderRow, {
|
|
44
|
-
hasSelectAllColumn: selectable,
|
|
45
|
-
children: columns.map((column, index) => jsx(HeaderCell
|
|
46
|
-
// eslint-disable-next-line react/no-array-index-key
|
|
47
|
-
, {
|
|
48
|
-
isOrdered: column.isOrdered,
|
|
49
|
-
orderDirection: column.orderDirection,
|
|
50
|
-
onOrder: column.onOrder,
|
|
51
|
-
info: column.info,
|
|
52
|
-
children: column.label
|
|
53
|
-
}, `header-column-${index}`))
|
|
54
|
-
}), jsx(Body, {
|
|
55
|
-
children: loading ? jsx(SkeletonRows, {
|
|
56
|
-
selectable: selectable,
|
|
57
|
-
rows: 5,
|
|
58
|
-
cols: columns.length
|
|
59
|
-
}) : children
|
|
60
|
-
})]
|
|
61
|
-
})
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* List is a component that displays a list of items based on the columns you provide and the data you pass.
|
|
67
|
-
*/
|
|
68
|
-
const List = /*#__PURE__*/Object.assign(BaseList, {
|
|
69
|
-
Row,
|
|
70
|
-
Cell,
|
|
71
|
-
SelectBar,
|
|
72
|
-
useListContext
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export { List };
|
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { useTheme } from '@emotion/react';
|
|
3
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
4
|
-
|
|
5
|
-
function _EMOTION_STRINGIFIED_CSS_ERROR__() { 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)."; }
|
|
6
|
-
const VIEWBOX_WIDTH = 100;
|
|
7
|
-
const VIEWBOX_HEIGHT = 100;
|
|
8
|
-
const HALF_VIEWBOX_WIDTH = VIEWBOX_WIDTH / 2;
|
|
9
|
-
const HALF_VIEWBOX_HEIGHT = VIEWBOX_HEIGHT / 2;
|
|
10
|
-
const StyledSvg = /*#__PURE__*/_styled('svg', {
|
|
11
|
-
shouldForwardProp: prop => !['active'].includes(prop),
|
|
12
|
-
target: "e1y1n78x1"
|
|
13
|
-
})(({
|
|
14
|
-
active
|
|
15
|
-
}) => active ? `
|
|
16
|
-
animation: spin 0.75s linear infinite;
|
|
17
|
-
|
|
18
|
-
@keyframes spin {
|
|
19
|
-
from {
|
|
20
|
-
transform: rotate(0deg);
|
|
21
|
-
}
|
|
22
|
-
to {
|
|
23
|
-
transform: rotate(360deg);
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
` : '', ";");
|
|
27
|
-
const Text = /*#__PURE__*/_styled('text', {
|
|
28
|
-
shouldForwardProp: prop => !['color'].includes(prop),
|
|
29
|
-
target: "e1y1n78x0"
|
|
30
|
-
})("fill:", ({
|
|
31
|
-
theme,
|
|
32
|
-
color
|
|
33
|
-
}) => theme.colors[color]?.backgroundStrong || color, ";font-size:26px;dominant-baseline:middle;text-anchor:middle;");
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Loader is a circular progress indicator that can be used to indicate that an action is being performed.
|
|
37
|
-
*/
|
|
38
|
-
var _ref = process.env.NODE_ENV === "production" ? {
|
|
39
|
-
name: "si0mpz",
|
|
40
|
-
styles: "transition:stroke-dashoffset 0.5s ease 0s"
|
|
41
|
-
} : {
|
|
42
|
-
name: "si0mpz",
|
|
43
|
-
styles: "transition:stroke-dashoffset 0.5s ease 0s",
|
|
44
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
45
|
-
};
|
|
46
|
-
const Loader = ({
|
|
47
|
-
percentage = 20,
|
|
48
|
-
text,
|
|
49
|
-
size = 40,
|
|
50
|
-
strokeWidth = 16,
|
|
51
|
-
color = 'primary',
|
|
52
|
-
trailColor = 'neutral',
|
|
53
|
-
active = false,
|
|
54
|
-
label = 'Loading'
|
|
55
|
-
}) => {
|
|
56
|
-
const theme = useTheme();
|
|
57
|
-
const circleRadius = HALF_VIEWBOX_HEIGHT - strokeWidth / 2;
|
|
58
|
-
const boundedPercentage = Math.min(Math.max(percentage, 0), 100) / 100;
|
|
59
|
-
const circleDiameter = Math.PI * 2 * circleRadius;
|
|
60
|
-
return jsxs(StyledSvg, {
|
|
61
|
-
active: active,
|
|
62
|
-
role: "progressbar",
|
|
63
|
-
"aria-label": label,
|
|
64
|
-
"aria-valuemin": 0,
|
|
65
|
-
"aria-valuemax": 100,
|
|
66
|
-
"aria-valuenow": percentage,
|
|
67
|
-
"aria-valuetext": `${percentage}%`,
|
|
68
|
-
viewBox: `0 0 ${VIEWBOX_WIDTH} ${VIEWBOX_HEIGHT}`,
|
|
69
|
-
style: {
|
|
70
|
-
height: typeof size === 'string' ? size : `${size}px`,
|
|
71
|
-
width: typeof size === 'string' ? size : `${size}px`
|
|
72
|
-
},
|
|
73
|
-
children: [jsx("circle", {
|
|
74
|
-
cx: HALF_VIEWBOX_WIDTH,
|
|
75
|
-
cy: HALF_VIEWBOX_HEIGHT,
|
|
76
|
-
r: circleRadius,
|
|
77
|
-
fill: "none",
|
|
78
|
-
strokeWidth: strokeWidth,
|
|
79
|
-
stroke: theme.colors[trailColor]?.border || trailColor
|
|
80
|
-
}), jsx("circle", {
|
|
81
|
-
css: _ref,
|
|
82
|
-
cx: HALF_VIEWBOX_WIDTH,
|
|
83
|
-
cy: HALF_VIEWBOX_HEIGHT,
|
|
84
|
-
r: circleRadius,
|
|
85
|
-
fill: "none",
|
|
86
|
-
strokeWidth: strokeWidth,
|
|
87
|
-
strokeDasharray: circleDiameter,
|
|
88
|
-
strokeDashoffset: (1 - boundedPercentage) * circleDiameter,
|
|
89
|
-
stroke: theme.colors[color]?.backgroundStrong || color,
|
|
90
|
-
strokeLinecap: "round"
|
|
91
|
-
}), text ? jsx(Text, {
|
|
92
|
-
color: color,
|
|
93
|
-
x: HALF_VIEWBOX_WIDTH,
|
|
94
|
-
y: HALF_VIEWBOX_HEIGHT,
|
|
95
|
-
children: text
|
|
96
|
-
}) : null]
|
|
97
|
-
});
|
|
98
|
-
};
|
|
99
|
-
|
|
100
|
-
export { Loader };
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { forwardRef } from 'react';
|
|
3
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
4
|
-
import { jsx } from '@emotion/react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const itemCoreStyle = ({
|
|
7
|
-
theme,
|
|
8
|
-
borderless,
|
|
9
|
-
sentiment,
|
|
10
|
-
disabled
|
|
11
|
-
}) => `
|
|
12
|
-
display: inline-block;
|
|
13
|
-
font-size: ${theme.typography.bodySmall.fontSize};
|
|
14
|
-
line-height: ${theme.typography.bodySmall.lineHeight};
|
|
15
|
-
font-weight: inherit;
|
|
16
|
-
padding: ${`${theme.space['0.5']} ${theme.space['1']}`};
|
|
17
|
-
border: none;
|
|
18
|
-
${borderless ? '' : `border-bottom: 1px solid ${theme.colors.neutral.border};`}
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
min-width: 110px;
|
|
21
|
-
|
|
22
|
-
color: ${theme.colors[sentiment][disabled ? 'textDisabled' : 'text']};
|
|
23
|
-
svg {
|
|
24
|
-
fill: ${theme.colors[sentiment][disabled ? 'textDisabled' : 'text']};
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
${disabled ? `
|
|
28
|
-
cursor: not-allowed;
|
|
29
|
-
` : `
|
|
30
|
-
&:hover,
|
|
31
|
-
&:focus {
|
|
32
|
-
color: ${theme.colors[sentiment].textHover};
|
|
33
|
-
svg {
|
|
34
|
-
fill: ${theme.colors[sentiment].textHover};
|
|
35
|
-
}
|
|
36
|
-
}`}
|
|
37
|
-
`;
|
|
38
|
-
const StyledItem = /*#__PURE__*/_styled('button', {
|
|
39
|
-
shouldForwardProp: prop => !['borderless', 'sentiment'].includes(prop),
|
|
40
|
-
target: "e10f690h1"
|
|
41
|
-
})(({
|
|
42
|
-
theme,
|
|
43
|
-
borderless,
|
|
44
|
-
sentiment,
|
|
45
|
-
disabled
|
|
46
|
-
}) => itemCoreStyle({
|
|
47
|
-
theme,
|
|
48
|
-
borderless,
|
|
49
|
-
sentiment,
|
|
50
|
-
disabled
|
|
51
|
-
}), " background:none;");
|
|
52
|
-
const StyledLinkItem = /*#__PURE__*/_styled('a', {
|
|
53
|
-
shouldForwardProp: prop => !['borderless', 'sentiment'].includes(prop),
|
|
54
|
-
target: "e10f690h0"
|
|
55
|
-
})(({
|
|
56
|
-
theme,
|
|
57
|
-
borderless,
|
|
58
|
-
sentiment,
|
|
59
|
-
disabled
|
|
60
|
-
}) => itemCoreStyle({
|
|
61
|
-
theme,
|
|
62
|
-
borderless,
|
|
63
|
-
sentiment,
|
|
64
|
-
disabled
|
|
65
|
-
}), " text-decoration:none;&:focus{text-decoration:none;}");
|
|
66
|
-
const Item = /*#__PURE__*/forwardRef(({
|
|
67
|
-
borderless = false,
|
|
68
|
-
disabled = false,
|
|
69
|
-
onClick,
|
|
70
|
-
sentiment = 'neutral',
|
|
71
|
-
href,
|
|
72
|
-
children,
|
|
73
|
-
tooltip,
|
|
74
|
-
className,
|
|
75
|
-
'data-testid': dataTestId
|
|
76
|
-
}, ref) => {
|
|
77
|
-
if (href && !disabled) {
|
|
78
|
-
return jsx(Tooltip, {
|
|
79
|
-
text: tooltip,
|
|
80
|
-
children: jsx(StyledLinkItem, {
|
|
81
|
-
borderless: true,
|
|
82
|
-
href: href,
|
|
83
|
-
ref: ref,
|
|
84
|
-
onClick: disabled ? undefined : onClick,
|
|
85
|
-
role: "menuitem",
|
|
86
|
-
disabled: disabled,
|
|
87
|
-
sentiment: sentiment,
|
|
88
|
-
className: className,
|
|
89
|
-
"data-testid": dataTestId,
|
|
90
|
-
children: children
|
|
91
|
-
})
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return jsx(Tooltip, {
|
|
95
|
-
text: tooltip,
|
|
96
|
-
children: jsx(StyledItem, {
|
|
97
|
-
type: "button",
|
|
98
|
-
ref: ref,
|
|
99
|
-
role: "menuitem",
|
|
100
|
-
disabled: disabled,
|
|
101
|
-
onClick: onClick,
|
|
102
|
-
borderless: borderless,
|
|
103
|
-
sentiment: sentiment,
|
|
104
|
-
className: className,
|
|
105
|
-
"data-testid": dataTestId,
|
|
106
|
-
children: children
|
|
107
|
-
})
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
var Item$1 = Item;
|
|
111
|
-
|
|
112
|
-
export { Item$1 as default };
|