@ultraviolet/ui 1.51.0 → 1.51.2
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 +40 -0
- package/dist/components/Alert/index.d.ts +27 -0
- package/dist/components/Alert/index.js +126 -0
- package/dist/components/Avatar/index.d.ts +43 -0
- package/dist/components/Avatar/index.js +54 -0
- package/dist/components/Badge/index.d.ts +31 -0
- package/dist/components/Badge/index.js +115 -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 +191 -0
- package/dist/components/BarChart/Tooltip.d.ts +9 -0
- package/dist/components/BarChart/Tooltip.js +36 -0
- package/dist/components/BarChart/index.d.ts +27 -0
- package/dist/components/BarChart/index.js +82 -0
- package/dist/components/BarStack/index.d.ts +36 -0
- package/dist/components/BarStack/index.js +188 -0
- package/dist/components/Breadcrumbs/index.d.ts +30 -0
- package/dist/components/Breadcrumbs/index.js +76 -0
- package/dist/components/Bullet/index.d.ts +39 -0
- package/dist/components/Bullet/index.js +88 -0
- package/dist/components/Button/index.d.ts +120 -0
- package/dist/components/Button/index.js +291 -0
- package/dist/components/Card/index.d.ts +20 -0
- package/dist/components/Card/index.js +59 -0
- package/dist/components/Carousel/index.d.ts +19 -0
- package/dist/components/Carousel/index.js +147 -0
- package/dist/components/Checkbox/index.d.ts +36 -0
- package/dist/components/Checkbox/index.js +359 -0
- package/dist/components/CheckboxGroup/index.d.ts +24 -0
- package/dist/components/CheckboxGroup/index.js +112 -0
- package/dist/components/CopyButton/index.d.ts +19 -0
- package/dist/components/CopyButton/index.js +37 -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 +301 -0
- package/dist/components/Dialog/Context.d.ts +7 -0
- package/dist/components/Dialog/Context.js +15 -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 +87 -0
- package/dist/components/Dialog/subComponents/Button.d.ts +7 -0
- package/dist/components/Dialog/subComponents/Button.js +24 -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 +6 -0
- package/dist/components/Dialog/subComponents/Text.d.ts +6 -0
- package/dist/components/Dialog/subComponents/Text.js +6 -0
- package/dist/components/EmptyState/index.d.ts +38 -0
- package/dist/components/EmptyState/index.js +82 -0
- package/dist/components/Expandable/index.d.ts +33 -0
- package/dist/components/Expandable/index.js +79 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +3 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.js +39 -0
- package/dist/components/GlobalAlert/index.d.ts +40 -0
- package/dist/components/GlobalAlert/index.js +112 -0
- package/dist/components/LineChart/CustomLegend.d.ts +13 -0
- package/dist/components/LineChart/CustomLegend.js +109 -0
- package/dist/components/LineChart/Tooltip.d.ts +6 -0
- package/dist/components/LineChart/Tooltip.js +46 -0
- package/dist/components/LineChart/helpers.d.ts +8 -0
- package/dist/components/LineChart/helpers.js +50 -0
- package/dist/components/LineChart/index.d.ts +25 -0
- package/dist/components/LineChart/index.js +118 -0
- package/dist/components/Link/index.d.ts +33 -0
- package/dist/components/Link/index.js +167 -0
- package/dist/components/List/Body.d.ts +6 -0
- package/dist/components/List/Body.js +11 -0
- package/dist/components/List/Cell.d.ts +12 -0
- package/dist/components/List/Cell.js +38 -0
- package/dist/components/List/HeaderCell.d.ts +11 -0
- package/dist/components/List/HeaderCell.js +96 -0
- package/dist/components/List/HeaderRow.d.ts +7 -0
- package/dist/components/List/HeaderRow.js +38 -0
- package/dist/components/List/ListContext.d.ts +34 -0
- package/dist/components/List/ListContext.js +155 -0
- package/dist/components/List/Row.d.ts +23 -0
- package/dist/components/List/Row.js +194 -0
- package/dist/components/List/SelectBar.d.ts +15 -0
- package/dist/components/List/SelectBar.js +35 -0
- package/dist/components/List/SkeletonRows.d.ts +7 -0
- package/dist/components/List/SkeletonRows.js +36 -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 +80 -0
- package/dist/components/Loader/index.d.ts +22 -0
- package/dist/components/Loader/index.js +98 -0
- package/dist/components/Menu/Item.d.ts +15 -0
- package/dist/components/Menu/Item.js +101 -0
- package/dist/components/Menu/index.d.ts +49 -0
- package/dist/components/Menu/index.js +182 -0
- package/dist/components/MenuV2/Group.d.ts +7 -0
- package/dist/components/MenuV2/Group.js +23 -0
- package/dist/components/MenuV2/Item.d.ts +16 -0
- package/dist/components/MenuV2/Item.js +120 -0
- package/dist/components/MenuV2/index.d.ts +90 -0
- package/dist/components/MenuV2/index.js +124 -0
- package/dist/components/Meter/index.d.ts +26 -0
- package/dist/components/Meter/index.js +76 -0
- package/dist/components/Modal/Dialog.d.ts +3 -0
- package/dist/components/Modal/Dialog.js +197 -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 +114 -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 +39 -0
- package/dist/components/Notification/index.d.ts +36 -0
- package/dist/components/Notification/index.js +88 -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 +349 -0
- package/dist/components/NumberInputV2/index.d.ts +27 -0
- package/dist/components/NumberInputV2/index.js +370 -0
- package/dist/components/Pagination/getPageNumbers.d.ts +8 -0
- package/dist/{src/components → components}/Pagination/getPageNumbers.js +4 -12
- package/dist/components/Pagination/index.d.ts +30 -0
- package/dist/components/Pagination/index.js +124 -0
- package/dist/components/PasswordCheck/index.d.ts +20 -0
- package/dist/components/PasswordCheck/index.js +29 -0
- package/dist/components/PasswordStrengthMeter/index.d.ts +39 -0
- package/dist/components/PasswordStrengthMeter/index.js +98 -0
- package/dist/components/PieChart/Legends.d.ts +9 -0
- package/dist/components/PieChart/Legends.js +120 -0
- package/dist/components/PieChart/Tooltip.d.ts +12 -0
- package/dist/components/PieChart/Tooltip.js +29 -0
- package/dist/components/PieChart/index.d.ts +20 -0
- package/dist/components/PieChart/index.js +120 -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 +149 -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 +204 -0
- package/dist/components/Popup/index.d.ts +72 -0
- package/dist/components/Popup/index.js +385 -0
- package/dist/components/ProgressBar/index.d.ts +14 -0
- package/dist/components/ProgressBar/index.js +71 -0
- package/dist/components/Radio/index.d.ts +21 -0
- package/dist/components/Radio/index.js +202 -0
- package/dist/components/RadioGroup/index.d.ts +25 -0
- package/dist/components/RadioGroup/index.js +104 -0
- package/dist/components/Row/index.d.ts +22 -0
- package/dist/components/Row/index.js +43 -0
- package/dist/components/SelectInput/index.d.ts +75 -0
- package/dist/components/SelectInput/index.js +563 -0
- package/dist/components/SelectInputV2/Dropdown.d.ts +23 -0
- package/dist/components/SelectInputV2/Dropdown.js +669 -0
- package/dist/components/SelectInputV2/DropdownOption.d.ts +8 -0
- package/dist/components/SelectInputV2/DropdownOption.js +133 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.d.ts +9 -0
- package/dist/components/SelectInputV2/SearchBarDropdown.js +123 -0
- package/dist/components/SelectInputV2/SelectBar.d.ts +14 -0
- package/dist/components/SelectInputV2/SelectBar.js +327 -0
- package/dist/components/SelectInputV2/SelectInputProvider.d.ts +41 -0
- package/dist/components/SelectInputV2/SelectInputProvider.js +203 -0
- 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 +146 -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 +193 -0
- package/dist/components/SelectableCardGroup/index.d.ts +23 -0
- package/dist/components/SelectableCardGroup/index.js +112 -0
- package/dist/components/Separator/index.d.ts +17 -0
- package/dist/components/Separator/index.js +76 -0
- package/dist/components/Skeleton/Block.d.ts +3 -0
- package/dist/components/Skeleton/Block.js +30 -0
- package/dist/components/Skeleton/Blocks.d.ts +4 -0
- package/dist/components/Skeleton/Blocks.js +28 -0
- package/dist/components/Skeleton/BoxWithIcon.d.ts +4 -0
- package/dist/components/Skeleton/BoxWithIcon.js +29 -0
- package/dist/components/Skeleton/Donut.d.ts +1 -0
- package/dist/components/Skeleton/Donut.js +36 -0
- package/dist/components/Skeleton/IconSkeleton.d.ts +5 -0
- package/dist/components/Skeleton/IconSkeleton.js +12 -0
- package/dist/components/Skeleton/Line.d.ts +5 -0
- package/dist/components/Skeleton/Line.js +13 -0
- package/dist/components/Skeleton/List.d.ts +4 -0
- package/dist/components/Skeleton/List.js +29 -0
- package/dist/components/Skeleton/Slider.d.ts +3 -0
- package/dist/components/Skeleton/Slider.js +26 -0
- package/dist/components/Skeleton/Square.d.ts +5 -0
- package/dist/components/Skeleton/Square.js +10 -0
- package/dist/components/Skeleton/index.d.ts +47 -0
- package/dist/components/Skeleton/index.js +86 -0
- package/dist/components/Snippet/index.d.ts +23 -0
- package/dist/components/Snippet/index.js +171 -0
- package/dist/components/Stack/index.d.ts +23 -0
- package/dist/components/Stack/index.js +36 -0
- package/dist/components/Status/index.d.ts +32 -0
- package/dist/components/Status/index.js +57 -0
- package/dist/components/StepList/index.d.ts +33 -0
- package/dist/components/StepList/index.js +69 -0
- package/dist/components/Stepper/index.d.ts +15 -0
- package/dist/components/Stepper/index.js +153 -0
- package/dist/components/SwitchButton/FocusOverlay.d.ts +8 -0
- package/dist/components/SwitchButton/FocusOverlay.js +47 -0
- package/dist/components/SwitchButton/index.d.ts +26 -0
- package/dist/components/SwitchButton/index.js +140 -0
- package/dist/components/Table/Body.d.ts +6 -0
- package/dist/components/Table/Body.js +5 -0
- package/dist/components/Table/Cell.d.ts +9 -0
- package/dist/components/Table/Cell.js +10 -0
- package/dist/components/Table/Header.d.ts +6 -0
- package/dist/components/Table/Header.js +9 -0
- package/dist/components/Table/HeaderCell.d.ts +14 -0
- package/dist/components/Table/HeaderCell.js +123 -0
- package/dist/components/Table/HeaderRow.d.ts +7 -0
- package/dist/components/Table/HeaderRow.js +25 -0
- package/dist/components/Table/Row.d.ts +14 -0
- package/dist/components/Table/Row.js +85 -0
- package/dist/components/Table/SelectBar.d.ts +15 -0
- package/dist/components/Table/SelectBar.js +35 -0
- package/dist/components/Table/SkeletonRows.d.ts +7 -0
- package/dist/components/Table/SkeletonRows.js +22 -0
- package/dist/components/Table/TableContext.d.ts +27 -0
- package/dist/components/Table/TableContext.js +103 -0
- package/dist/components/Table/index.d.ts +60 -0
- package/dist/components/Table/index.js +81 -0
- package/dist/components/Tabs/Tab.d.ts +20 -0
- package/dist/components/Tabs/Tab.js +170 -0
- package/dist/components/Tabs/TabMenu.d.ts +8 -0
- package/dist/components/Tabs/TabMenu.js +63 -0
- package/dist/components/Tabs/TabMenuItem.d.ts +20 -0
- package/dist/components/Tabs/TabMenuItem.js +39 -0
- package/dist/components/Tabs/TabsContext.d.ts +8 -0
- package/dist/components/Tabs/TabsContext.js +9 -0
- package/dist/components/Tabs/index.d.ts +50 -0
- package/dist/components/Tabs/index.js +137 -0
- package/dist/components/Tag/index.d.ts +26 -0
- package/dist/components/Tag/index.js +153 -0
- package/dist/components/TagInput/index.d.ts +55 -0
- package/dist/components/TagInput/index.js +316 -0
- package/dist/components/TagList/index.d.ts +37 -0
- package/dist/components/TagList/index.js +103 -0
- package/dist/components/Text/index.d.ts +40 -0
- package/dist/components/Text/index.js +107 -0
- package/dist/components/TextArea/index.d.ts +50 -0
- package/dist/components/TextArea/index.js +226 -0
- package/dist/components/TextInput/index.d.ts +75 -0
- package/dist/components/TextInput/index.js +472 -0
- package/dist/components/TextInputV2/index.d.ts +30 -0
- package/dist/components/TextInputV2/index.js +314 -0
- package/dist/components/TimeInput/index.d.ts +25 -0
- package/dist/components/TimeInput/index.js +199 -0
- package/dist/components/Toaster/index.d.ts +46 -0
- package/dist/components/Toaster/index.js +131 -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 +196 -0
- package/dist/components/ToggleGroup/index.d.ts +24 -0
- package/dist/components/ToggleGroup/index.js +87 -0
- package/dist/components/Tooltip/index.d.ts +9 -0
- package/dist/components/Tooltip/index.js +47 -0
- package/dist/components/VerificationCode/index.d.ts +36 -0
- package/dist/components/VerificationCode/index.js +222 -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 -3693
- 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 +30 -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/utils/ids.js +6 -0
- 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 +13 -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 +23 -13
- 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/helpers.js +0 -40
- 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/ListContext.js +0 -138
- 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 -116
- 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 -144
- package/dist/src/components/Popup/helpers.js +0 -252
- package/dist/src/components/Popup/index.js +0 -363
- 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 -128
- package/dist/src/components/SelectInputV2/SelectBar.js +0 -282
- package/dist/src/components/SelectInputV2/SelectInputProvider.js +0 -169
- 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/TableContext.js +0 -90
- 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/ids.js +0 -7
- package/dist/src/utils/responsive/Breakpoint.js +0 -12
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Fragment } from 'react';
|
|
3
|
-
import { IconSkeleton } from './IconSkeleton.js';
|
|
4
|
-
import { Line } from './Line.js';
|
|
5
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
6
|
-
|
|
7
|
-
const StyledLine = /*#__PURE__*/_styled("li", {
|
|
8
|
-
target: "ez87ex11"
|
|
9
|
-
})("display:flex;align-items:center;padding:", ({
|
|
10
|
-
theme
|
|
11
|
-
}) => `${theme.space['3']} ${theme.space['2']}`, ";");
|
|
12
|
-
const StyledList = /*#__PURE__*/_styled("ul", {
|
|
13
|
-
target: "ez87ex10"
|
|
14
|
-
})("min-height:200px;width:100%;height:100%;padding:", ({
|
|
15
|
-
theme
|
|
16
|
-
}) => theme.space['2'], ";border:1px solid ", ({
|
|
17
|
-
theme
|
|
18
|
-
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
19
|
-
theme
|
|
20
|
-
}) => theme.radii.default, ";margin:0;>", StyledLine, ":not(:last-child){border-bottom:1px solid ", ({
|
|
21
|
-
theme
|
|
22
|
-
}) => theme.colors.neutral.border, ";}");
|
|
23
|
-
const Block = ({
|
|
24
|
-
length = 3
|
|
25
|
-
}) => jsx(StyledList, {
|
|
26
|
-
children: Array.from({
|
|
27
|
-
length
|
|
28
|
-
}, (_, i) => jsx(Fragment, {
|
|
29
|
-
children: jsxs(StyledLine, {
|
|
30
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
31
|
-
})
|
|
32
|
-
}, `skeleton-block-${i}`))
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
export { Block };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { IconSkeleton } from './IconSkeleton.js';
|
|
3
|
-
import { Line } from './Line.js';
|
|
4
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
7
|
-
target: "esrnljb1"
|
|
8
|
-
})("display:grid;grid-template-columns:repeat(", ({
|
|
9
|
-
col
|
|
10
|
-
}) => col, ", 1fr);gap:", ({
|
|
11
|
-
theme
|
|
12
|
-
}) => theme.space['2'], ";");
|
|
13
|
-
const Block = /*#__PURE__*/_styled("div", {
|
|
14
|
-
target: "esrnljb0"
|
|
15
|
-
})("width:100%;display:flex;align-items:center;padding:", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => `${theme.space['1']} ${theme.space['2']}`, ";border:1px solid ", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
20
|
-
theme
|
|
21
|
-
}) => theme.radii.default, ";overflow:hidden;");
|
|
22
|
-
const Blocks = ({
|
|
23
|
-
col = 4,
|
|
24
|
-
length = 8
|
|
25
|
-
}) => jsx(StyledContainer, {
|
|
26
|
-
col: col,
|
|
27
|
-
children: Array.from({
|
|
28
|
-
length
|
|
29
|
-
}, (_, i) => jsxs(Block, {
|
|
30
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
31
|
-
}, `skeleton-blocks-${i}`))
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
export { Blocks };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { IconSkeleton } from './IconSkeleton.js';
|
|
3
|
-
import { Line } from './Line.js';
|
|
4
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
7
|
-
target: "e18cng8b1"
|
|
8
|
-
})("display:grid;grid-template-columns:repeat(", ({
|
|
9
|
-
col
|
|
10
|
-
}) => col, ", 1fr);gap:", ({
|
|
11
|
-
theme
|
|
12
|
-
}) => theme.space['2'], ";");
|
|
13
|
-
const Block = /*#__PURE__*/_styled("div", {
|
|
14
|
-
target: "e18cng8b0"
|
|
15
|
-
})("height:130px;display:flex;flex-direction:column;align-items:center;justify-content:space-evenly;border:1px solid ", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.radii.default, ";overflow:hidden;");
|
|
20
|
-
const BoxWithIcon = ({
|
|
21
|
-
col = 4,
|
|
22
|
-
length = 8
|
|
23
|
-
}) => jsx(StyledContainer, {
|
|
24
|
-
col: col,
|
|
25
|
-
children: Array.from({
|
|
26
|
-
length
|
|
27
|
-
}, (_, i) => jsxs(Block, {
|
|
28
|
-
children: [jsx(IconSkeleton, {}), jsx(Line, {})]
|
|
29
|
-
}, `skeleton-box-${i}`))
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
export { BoxWithIcon };
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Line } from './Line.js';
|
|
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 CIRCLE_SIZE = 206;
|
|
7
|
-
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
8
|
-
target: "e1bu753f3"
|
|
9
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
10
|
-
name: "zjik7",
|
|
11
|
-
styles: "display:flex"
|
|
12
|
-
} : {
|
|
13
|
-
name: "zjik7",
|
|
14
|
-
styles: "display:flex",
|
|
15
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
16
|
-
});
|
|
17
|
-
const StyledSVG = /*#__PURE__*/_styled("svg", {
|
|
18
|
-
target: "e1bu753f2"
|
|
19
|
-
})("height:", CIRCLE_SIZE, "px;width:", CIRCLE_SIZE, "px;transform:rotate(-90deg);");
|
|
20
|
-
const StyledCircle = /*#__PURE__*/_styled("circle", {
|
|
21
|
-
target: "e1bu753f1"
|
|
22
|
-
})("transform-origin:50% 50%;stroke:", ({
|
|
23
|
-
theme
|
|
24
|
-
}) => theme.colors.neutral.borderWeak, ";stroke-width:18;stroke-linecap:butt;fill:none;");
|
|
25
|
-
const LineList = /*#__PURE__*/_styled("ul", {
|
|
26
|
-
target: "e1bu753f0"
|
|
27
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
28
|
-
name: "pct5nu",
|
|
29
|
-
styles: "display:grid;list-style:none;gap:16px"
|
|
30
|
-
} : {
|
|
31
|
-
name: "pct5nu",
|
|
32
|
-
styles: "display:grid;list-style:none;gap:16px",
|
|
33
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
34
|
-
});
|
|
35
|
-
const Donut = () => jsxs(StyledContainer, {
|
|
36
|
-
children: [jsx(StyledSVG, {
|
|
37
|
-
children: jsx(StyledCircle, {
|
|
38
|
-
cx: CIRCLE_SIZE / 2,
|
|
39
|
-
cy: CIRCLE_SIZE / 2,
|
|
40
|
-
r: "90"
|
|
41
|
-
})
|
|
42
|
-
}), jsxs(LineList, {
|
|
43
|
-
children: [jsx("li", {
|
|
44
|
-
children: jsx(Line, {})
|
|
45
|
-
}), jsx("li", {
|
|
46
|
-
children: jsx(Line, {})
|
|
47
|
-
}), jsx("li", {
|
|
48
|
-
children: jsx(Line, {})
|
|
49
|
-
}), jsx("li", {
|
|
50
|
-
children: jsx(Line, {})
|
|
51
|
-
})]
|
|
52
|
-
})]
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export { Donut };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
|
|
3
|
-
const IconSkeleton = /*#__PURE__*/_styled("div", {
|
|
4
|
-
target: "e1kubpd30"
|
|
5
|
-
})("margin-right:", ({
|
|
6
|
-
theme
|
|
7
|
-
}) => theme.space['1'], ";width:", ({
|
|
8
|
-
theme
|
|
9
|
-
}) => theme.space['4'], ";height:", ({
|
|
10
|
-
theme
|
|
11
|
-
}) => theme.space['4'], ";min-width:", ({
|
|
12
|
-
theme
|
|
13
|
-
}) => theme.space['4'], ";border-radius:", ({
|
|
14
|
-
theme
|
|
15
|
-
}) => theme.radii.large, ";background-color:", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.colors.neutral.borderWeak, ";");
|
|
18
|
-
|
|
19
|
-
export { IconSkeleton };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
|
|
3
|
-
const sizes = [80, 120, 160, 200];
|
|
4
|
-
const randomSize = () => sizes[Math.floor(Math.random() * sizes.length)];
|
|
5
|
-
const Line = /*#__PURE__*/_styled("div", {
|
|
6
|
-
target: "e1denkbe0"
|
|
7
|
-
})("height:12px;width:", () => randomSize(), "px;max-width:100%;border-radius:", ({
|
|
8
|
-
theme
|
|
9
|
-
}) => theme.radii.large, ";background-color:", ({
|
|
10
|
-
theme
|
|
11
|
-
}) => theme.colors.neutral.borderWeak, ";");
|
|
12
|
-
|
|
13
|
-
export { Line };
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Line } from './Line.js';
|
|
3
|
-
import { 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 StyledItem = /*#__PURE__*/_styled("li", {
|
|
7
|
-
target: "e639qnr2"
|
|
8
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
9
|
-
name: "1t7ed8m",
|
|
10
|
-
styles: "display:flex;align-items:center;height:48px;padding:4px 8px"
|
|
11
|
-
} : {
|
|
12
|
-
name: "1t7ed8m",
|
|
13
|
-
styles: "display:flex;align-items:center;height:48px;padding:4px 8px",
|
|
14
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
15
|
-
});
|
|
16
|
-
const StyledLine = /*#__PURE__*/_styled("div", {
|
|
17
|
-
target: "e639qnr1"
|
|
18
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
19
|
-
name: "82a6rk",
|
|
20
|
-
styles: "flex:1"
|
|
21
|
-
} : {
|
|
22
|
-
name: "82a6rk",
|
|
23
|
-
styles: "flex:1",
|
|
24
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
25
|
-
});
|
|
26
|
-
const StyledList = /*#__PURE__*/_styled("ul", {
|
|
27
|
-
target: "e639qnr0"
|
|
28
|
-
})("list-style:none;padding:0;margin:0;>", StyledItem, ":nth-of-type(even){background-color:", ({
|
|
29
|
-
theme
|
|
30
|
-
}) => theme.colors.neutral.backgroundDisabled, ";}");
|
|
31
|
-
const Item = ({
|
|
32
|
-
col = 3
|
|
33
|
-
}) => jsx(StyledItem, {
|
|
34
|
-
children: Array.from({
|
|
35
|
-
length: col
|
|
36
|
-
}, (_, i) => jsx(StyledLine, {
|
|
37
|
-
children: jsx(Line, {})
|
|
38
|
-
}, `skeleton-list-col-${i}`))
|
|
39
|
-
});
|
|
40
|
-
const List = ({
|
|
41
|
-
length = 3,
|
|
42
|
-
col = 3
|
|
43
|
-
}) => jsx(StyledList, {
|
|
44
|
-
children: Array.from({
|
|
45
|
-
length
|
|
46
|
-
}, (_, i) => jsx(Item, {
|
|
47
|
-
col: col
|
|
48
|
-
}, `skeleton-list-${i}`))
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
export { List };
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { jsx } from '@emotion/react/jsx-runtime';
|
|
3
|
-
|
|
4
|
-
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
5
|
-
target: "e1yrvvrg2"
|
|
6
|
-
})("height:277px;display:grid;grid-template-columns:repeat(", ({
|
|
7
|
-
length
|
|
8
|
-
}) => length, ", 1fr);gap:", ({
|
|
9
|
-
theme
|
|
10
|
-
}) => theme.space['2'], ";overflow:auto;");
|
|
11
|
-
const StyledCard = /*#__PURE__*/_styled("div", {
|
|
12
|
-
target: "e1yrvvrg1"
|
|
13
|
-
})("border:1px solid ", ({
|
|
14
|
-
theme
|
|
15
|
-
}) => theme.colors.neutral.borderWeak, ";border-radius:", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.radii.default, ";width:239px;height:261px;overflow:hidden;");
|
|
18
|
-
const StyledBanner = /*#__PURE__*/_styled("div", {
|
|
19
|
-
target: "e1yrvvrg0"
|
|
20
|
-
})("border:1px solid ", ({
|
|
21
|
-
theme
|
|
22
|
-
}) => theme.colors.neutral.borderWeak, ";background-color:", ({
|
|
23
|
-
theme
|
|
24
|
-
}) => theme.colors.neutral.borderWeak, ";width:100%;height:33%;");
|
|
25
|
-
const Slider = ({
|
|
26
|
-
length = 4
|
|
27
|
-
}) => jsx(StyledContainer, {
|
|
28
|
-
length: length,
|
|
29
|
-
children: Array.from({
|
|
30
|
-
length
|
|
31
|
-
}, (_, i) => jsx(StyledCard, {
|
|
32
|
-
children: jsx(StyledBanner, {})
|
|
33
|
-
}, `skeleton-slider-card-${i}`))
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
export { Slider };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { keyframes } from '@emotion/react';
|
|
3
|
-
import { Block } from './Block.js';
|
|
4
|
-
import { Blocks } from './Blocks.js';
|
|
5
|
-
import { BoxWithIcon } from './BoxWithIcon.js';
|
|
6
|
-
import { Donut } from './Donut.js';
|
|
7
|
-
import { Line } from './Line.js';
|
|
8
|
-
import { List } from './List.js';
|
|
9
|
-
import { Slider } from './Slider.js';
|
|
10
|
-
import { Square } from './Square.js';
|
|
11
|
-
import { jsxs, jsx } from '@emotion/react/jsx-runtime';
|
|
12
|
-
|
|
13
|
-
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)."; }
|
|
14
|
-
const shineAnimation = keyframes`
|
|
15
|
-
from {
|
|
16
|
-
left: -25%;
|
|
17
|
-
}
|
|
18
|
-
to {
|
|
19
|
-
left: 100%;
|
|
20
|
-
}
|
|
21
|
-
`;
|
|
22
|
-
const StyledContainer = /*#__PURE__*/_styled("div", {
|
|
23
|
-
target: "e183x2r81"
|
|
24
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
25
|
-
name: "158ltsb",
|
|
26
|
-
styles: "position:relative;width:100%;overflow:hidden;cursor:progress;display:flex;flex-flow:column;height:100%"
|
|
27
|
-
} : {
|
|
28
|
-
name: "158ltsb",
|
|
29
|
-
styles: "position:relative;width:100%;overflow:hidden;cursor:progress;display:flex;flex-flow:column;height:100%",
|
|
30
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
31
|
-
});
|
|
32
|
-
const StyledDiv = /*#__PURE__*/_styled("div", {
|
|
33
|
-
target: "e183x2r80"
|
|
34
|
-
})("position:absolute;top:0;height:100%;width:25%;opacity:0.8;background:linear-gradient(\n 90deg,\n ", ({
|
|
35
|
-
theme
|
|
36
|
-
}) => theme.colors.neutral.backgroundWeak, "00,\n ", ({
|
|
37
|
-
theme
|
|
38
|
-
}) => theme.colors.neutral.backgroundWeak, "4D,\n ", ({
|
|
39
|
-
theme
|
|
40
|
-
}) => theme.colors.neutral.backgroundWeak, "66,\n ", ({
|
|
41
|
-
theme
|
|
42
|
-
}) => theme.colors.neutral.backgroundWeak, "4D,\n ", ({
|
|
43
|
-
theme
|
|
44
|
-
}) => theme.colors.neutral.backgroundWeak, "00\n );animation:", shineAnimation, " 1s linear infinite;animation-direction:alternate;@media (prefers-reduced-motion: reduce){animation:unset;}");
|
|
45
|
-
const variants = {
|
|
46
|
-
block: Block,
|
|
47
|
-
blocks: Blocks,
|
|
48
|
-
box: BoxWithIcon,
|
|
49
|
-
donut: Donut,
|
|
50
|
-
line: Line,
|
|
51
|
-
list: List,
|
|
52
|
-
slider: Slider,
|
|
53
|
-
square: Square
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Skeleton component is used to indicate that the data is loading.
|
|
57
|
-
* It is used to provide a better user experience by showing a temporary placeholder reflecting the dimensions of the
|
|
58
|
-
* content that will eventually be loaded on the screen.
|
|
59
|
-
*/
|
|
60
|
-
const Skeleton = ({
|
|
61
|
-
variant = 'blocks',
|
|
62
|
-
length,
|
|
63
|
-
col,
|
|
64
|
-
className,
|
|
65
|
-
'aria-label': ariaLabel,
|
|
66
|
-
'data-testid': dataTestId
|
|
67
|
-
}) => {
|
|
68
|
-
const Component = variants[variant];
|
|
69
|
-
return jsxs(StyledContainer, {
|
|
70
|
-
className: className,
|
|
71
|
-
"aria-busy": true,
|
|
72
|
-
"aria-live": "polite",
|
|
73
|
-
"aria-label": ariaLabel,
|
|
74
|
-
"data-testid": dataTestId,
|
|
75
|
-
children: [jsx(Component, {
|
|
76
|
-
length: length,
|
|
77
|
-
col: col
|
|
78
|
-
}), jsx(StyledDiv, {})]
|
|
79
|
-
});
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
export { Skeleton };
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Icon } from '@ultraviolet/icons';
|
|
3
|
-
import { useReducer, Children } from 'react';
|
|
4
|
-
import { CopyButton } from '../CopyButton/index.js';
|
|
5
|
-
import { Expandable } from '../Expandable/index.js';
|
|
6
|
-
import { Stack } from '../Stack/index.js';
|
|
7
|
-
import { Text } from '../Text/index.js';
|
|
8
|
-
import { jsx, jsxs } 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 LINES_BREAK_REGEX = /\r\n|\r|\n/;
|
|
12
|
-
const PreText = /*#__PURE__*/_styled(Text, {
|
|
13
|
-
shouldForwardProp: prop => !['multiline', 'hasShowMoreButton', 'showMore'].includes(prop),
|
|
14
|
-
target: "e1q0gj908"
|
|
15
|
-
})("margin:0;padding:", ({
|
|
16
|
-
theme
|
|
17
|
-
}) => theme.space['2'], ";padding-right:", ({
|
|
18
|
-
theme
|
|
19
|
-
}) => theme.space['9'], ";overflow-x:", ({
|
|
20
|
-
hasShowMoreButton,
|
|
21
|
-
showMore
|
|
22
|
-
}) => hasShowMoreButton && !showMore ? 'hidden' : 'auto', ";overflow-y:hidden;", ({
|
|
23
|
-
multiline
|
|
24
|
-
}) => !multiline ? 'white-space: nowrap;' : '', " height:auto;counter-reset:section;");
|
|
25
|
-
const StyledSpan = /*#__PURE__*/_styled('span', {
|
|
26
|
-
shouldForwardProp: prop => !['linePrefix', 'multiline', 'prefix'].includes(prop),
|
|
27
|
-
target: "e1q0gj907"
|
|
28
|
-
})("display:block;&:after{content:'';", ({
|
|
29
|
-
theme,
|
|
30
|
-
multiline
|
|
31
|
-
}) => multiline ? `padding: ${theme.space['4']}` : `padding-right: ${theme.space['8']}`, ";}", ({
|
|
32
|
-
prefix,
|
|
33
|
-
theme
|
|
34
|
-
}) => prefix ? `
|
|
35
|
-
&:before {
|
|
36
|
-
color: ${theme.colors.neutral.textWeak};
|
|
37
|
-
width: ${prefix === 'lines' ? '35px' : ''};
|
|
38
|
-
display: inline-flex;
|
|
39
|
-
justify-content: flex-end;
|
|
40
|
-
counter-increment: section;
|
|
41
|
-
content: ${prefix === 'lines' ? 'counter(section)' : "'$'"};
|
|
42
|
-
padding-right: ${theme.space['1']};
|
|
43
|
-
}
|
|
44
|
-
` : null, ";");
|
|
45
|
-
const Container = /*#__PURE__*/_styled('div', {
|
|
46
|
-
shouldForwardProp: prop => !['multiline'].includes(prop),
|
|
47
|
-
target: "e1q0gj906"
|
|
48
|
-
})("position:relative;display:flex;justify-content:start;max-width:100%;", ({
|
|
49
|
-
multiline
|
|
50
|
-
}) => multiline ? 'width: 100%;' : '', " background:", ({
|
|
51
|
-
theme
|
|
52
|
-
}) => theme.colors.neutral.backgroundWeak, ";border-radius:", ({
|
|
53
|
-
theme
|
|
54
|
-
}) => theme.radii.default, ";");
|
|
55
|
-
const StyledStack = /*#__PURE__*/_styled(Stack, {
|
|
56
|
-
target: "e1q0gj905"
|
|
57
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
58
|
-
name: "1d3w5wq",
|
|
59
|
-
styles: "width:100%"
|
|
60
|
-
} : {
|
|
61
|
-
name: "1d3w5wq",
|
|
62
|
-
styles: "width:100%",
|
|
63
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
64
|
-
});
|
|
65
|
-
const ButtonContainer = /*#__PURE__*/_styled('div', {
|
|
66
|
-
shouldForwardProp: prop => !['multiline'].includes(prop),
|
|
67
|
-
target: "e1q0gj904"
|
|
68
|
-
})("position:absolute;top:0;right:0;padding:", ({
|
|
69
|
-
theme,
|
|
70
|
-
multiline
|
|
71
|
-
}) => `${theme.space[multiline ? '2' : '1']} ${theme.space['2']} 0 0`, ";background:", ({
|
|
72
|
-
theme
|
|
73
|
-
}) => theme.colors.neutral.backgroundWeak, ";border-radius:", ({
|
|
74
|
-
theme
|
|
75
|
-
}) => theme.radii.default, ";border:2px solid transparent;", ({
|
|
76
|
-
multiline,
|
|
77
|
-
theme
|
|
78
|
-
}) => !multiline ? `box-shadow: -27px 0 19px -11px ${theme.colors.neutral.backgroundWeak}` : '', ";");
|
|
79
|
-
const ShowMoreContainer = /*#__PURE__*/_styled('div', {
|
|
80
|
-
shouldForwardProp: prop => !['showMore'].includes(prop),
|
|
81
|
-
target: "e1q0gj903"
|
|
82
|
-
})("width:100%;box-shadow:", ({
|
|
83
|
-
theme,
|
|
84
|
-
showMore
|
|
85
|
-
}) => !showMore ? `0px -22px 19px -6px
|
|
86
|
-
${theme.colors.neutral.backgroundWeak}` : 'none', ";");
|
|
87
|
-
const StyledButton = /*#__PURE__*/_styled("button", {
|
|
88
|
-
target: "e1q0gj902"
|
|
89
|
-
})("width:100%;background:none;border:none;padding:", ({
|
|
90
|
-
theme
|
|
91
|
-
}) => theme.space['2'], ";padding-top:", ({
|
|
92
|
-
theme
|
|
93
|
-
}) => theme.space['1'], ";cursor:pointer;");
|
|
94
|
-
const AlignCenterText = /*#__PURE__*/_styled(Text, {
|
|
95
|
-
target: "e1q0gj901"
|
|
96
|
-
})(process.env.NODE_ENV === "production" ? {
|
|
97
|
-
name: "1vcob1d",
|
|
98
|
-
styles: "display:flex;justify-content:center;align-items:center"
|
|
99
|
-
} : {
|
|
100
|
-
name: "1vcob1d",
|
|
101
|
-
styles: "display:flex;justify-content:center;align-items:center",
|
|
102
|
-
toString: _EMOTION_STRINGIFIED_CSS_ERROR__
|
|
103
|
-
});
|
|
104
|
-
const AnimatedArrowIcon = /*#__PURE__*/_styled(Icon, {
|
|
105
|
-
shouldForwardProp: prop => !['showMore'].includes(prop),
|
|
106
|
-
target: "e1q0gj900"
|
|
107
|
-
})("transform:", ({
|
|
108
|
-
showMore
|
|
109
|
-
}) => showMore ? 'rotate(180deg)' : 'rotate(0deg)', ";transform-origin:center;transition:transform 300ms ease-in-out;");
|
|
110
|
-
const CodeContent = ({
|
|
111
|
-
children,
|
|
112
|
-
prefix,
|
|
113
|
-
multiline,
|
|
114
|
-
showMore,
|
|
115
|
-
hasShowMoreButton,
|
|
116
|
-
lines
|
|
117
|
-
}) => jsx(PreText, {
|
|
118
|
-
as: "pre",
|
|
119
|
-
variant: "code",
|
|
120
|
-
multiline: multiline,
|
|
121
|
-
hasShowMoreButton: hasShowMoreButton,
|
|
122
|
-
showMore: showMore,
|
|
123
|
-
children: multiline ? Children.map(lines, child => jsx(StyledSpan, {
|
|
124
|
-
multiline: true,
|
|
125
|
-
prefix: prefix,
|
|
126
|
-
children: child
|
|
127
|
-
})) : jsx(StyledSpan, {
|
|
128
|
-
prefix: prefix,
|
|
129
|
-
children: children
|
|
130
|
-
})
|
|
131
|
-
});
|
|
132
|
-
/**
|
|
133
|
-
* Snippet component is used to display code snippets with the ability to copy the code.
|
|
134
|
-
* It also has the ability to show/hide the code snippet if it has more than 4 lines.
|
|
135
|
-
*/
|
|
136
|
-
const Snippet = ({
|
|
137
|
-
children,
|
|
138
|
-
copyText,
|
|
139
|
-
copiedText,
|
|
140
|
-
showText = 'Show',
|
|
141
|
-
hideText = 'Hide',
|
|
142
|
-
prefix,
|
|
143
|
-
className,
|
|
144
|
-
'data-testid': dataTestId,
|
|
145
|
-
initiallyExpanded
|
|
146
|
-
}) => {
|
|
147
|
-
const [showMore, setShowMore] = useReducer(value => !value, initiallyExpanded ?? false);
|
|
148
|
-
const lines = children.split(LINES_BREAK_REGEX).filter(Boolean);
|
|
149
|
-
const numberOfLines = lines.length;
|
|
150
|
-
const multiline = numberOfLines > 1;
|
|
151
|
-
const hasShowMoreButton = numberOfLines > 4 && multiline;
|
|
152
|
-
return jsx(Container, {
|
|
153
|
-
multiline: multiline,
|
|
154
|
-
className: className,
|
|
155
|
-
"data-testid": dataTestId,
|
|
156
|
-
children: jsxs(StyledStack, {
|
|
157
|
-
children: [hasShowMoreButton ? jsx(Expandable, {
|
|
158
|
-
minHeight: 120,
|
|
159
|
-
opened: showMore,
|
|
160
|
-
children: jsx(CodeContent, {
|
|
161
|
-
prefix: prefix,
|
|
162
|
-
multiline: multiline,
|
|
163
|
-
lines: lines,
|
|
164
|
-
children: children
|
|
165
|
-
})
|
|
166
|
-
}) : jsx(CodeContent, {
|
|
167
|
-
prefix: prefix,
|
|
168
|
-
multiline: multiline,
|
|
169
|
-
lines: lines,
|
|
170
|
-
children: children
|
|
171
|
-
}), jsx(ButtonContainer, {
|
|
172
|
-
multiline: multiline && numberOfLines > 1,
|
|
173
|
-
children: jsx(CopyButton, {
|
|
174
|
-
value: children,
|
|
175
|
-
copyText: copyText,
|
|
176
|
-
copiedText: copiedText,
|
|
177
|
-
noBorder: true,
|
|
178
|
-
sentiment: "neutral"
|
|
179
|
-
})
|
|
180
|
-
}), hasShowMoreButton ? jsx(ShowMoreContainer, {
|
|
181
|
-
showMore: showMore,
|
|
182
|
-
children: jsx(StyledButton, {
|
|
183
|
-
type: "button",
|
|
184
|
-
onClick: setShowMore,
|
|
185
|
-
"aria-expanded": showMore,
|
|
186
|
-
children: jsxs(AlignCenterText, {
|
|
187
|
-
as: "span",
|
|
188
|
-
variant: "bodySmallStrong",
|
|
189
|
-
children: [showMore ? hideText : showText, "\xA0", jsx(AnimatedArrowIcon, {
|
|
190
|
-
name: "arrow-down",
|
|
191
|
-
showMore: showMore
|
|
192
|
-
})]
|
|
193
|
-
})
|
|
194
|
-
})
|
|
195
|
-
}) : null]
|
|
196
|
-
})
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
|
|
200
|
-
export { Snippet };
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A Stack is a widget that organize children in a vertical or horizontal layout based on css Flex,
|
|
5
|
-
* it accepts few props to deal with spacing and align.
|
|
6
|
-
*/
|
|
7
|
-
const Stack = /*#__PURE__*/_styled('div', {
|
|
8
|
-
shouldForwardProp: prop => !['gap', 'direction', 'alignItems', 'justifyContent', 'wrap', 'width', 'flex'].includes(prop),
|
|
9
|
-
target: "ehpbis70"
|
|
10
|
-
})("display:flex;", ({
|
|
11
|
-
theme,
|
|
12
|
-
gap = 0,
|
|
13
|
-
direction = 'column',
|
|
14
|
-
alignItems = 'normal',
|
|
15
|
-
justifyContent = 'normal',
|
|
16
|
-
wrap = 'nowrap',
|
|
17
|
-
width,
|
|
18
|
-
flex
|
|
19
|
-
}) => `
|
|
20
|
-
gap: ${theme.space[gap]};
|
|
21
|
-
flex-direction: ${direction};
|
|
22
|
-
align-items: ${alignItems};
|
|
23
|
-
justify-content: ${justifyContent};
|
|
24
|
-
flex-wrap: ${typeof wrap === 'boolean' ? 'wrap' : wrap};
|
|
25
|
-
${flex ? `flex: ${flex};` : ''}
|
|
26
|
-
${width ? `width: ${width};` : ''}
|
|
27
|
-
`, ";");
|
|
28
|
-
|
|
29
|
-
export { Stack };
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import _styled from '@emotion/styled/base';
|
|
2
|
-
import { Tooltip } from '../Tooltip/index.js';
|
|
3
|
-
import { jsx, jsxs } from '@emotion/react/jsx-runtime';
|
|
4
|
-
import { ping } from '../../utils/animations.js';
|
|
5
|
-
|
|
6
|
-
const HEIGHT = '10px';
|
|
7
|
-
const WIDTH = '10px';
|
|
8
|
-
const sentiments = {
|
|
9
|
-
danger: ({
|
|
10
|
-
theme
|
|
11
|
-
}) => `
|
|
12
|
-
background-color: ${theme.colors.danger.backgroundStrong};
|
|
13
|
-
`,
|
|
14
|
-
info: ({
|
|
15
|
-
theme
|
|
16
|
-
}) => `
|
|
17
|
-
background-color: ${theme.colors.info.backgroundStrong};
|
|
18
|
-
`,
|
|
19
|
-
neutral: ({
|
|
20
|
-
theme
|
|
21
|
-
}) => `
|
|
22
|
-
background-color: ${theme.colors.neutral.backgroundStronger};
|
|
23
|
-
`,
|
|
24
|
-
success: ({
|
|
25
|
-
theme
|
|
26
|
-
}) => `
|
|
27
|
-
background-color: ${theme.colors.success.backgroundStrong};
|
|
28
|
-
`,
|
|
29
|
-
warning: ({
|
|
30
|
-
theme
|
|
31
|
-
}) => `
|
|
32
|
-
background-color: ${theme.colors.warning.backgroundStrong};
|
|
33
|
-
`
|
|
34
|
-
};
|
|
35
|
-
const StyledCircle = /*#__PURE__*/_styled("span", {
|
|
36
|
-
target: "eny0xmn2"
|
|
37
|
-
})("display:inline-block;width:", WIDTH, ";height:", HEIGHT, ";border-radius:", ({
|
|
38
|
-
theme
|
|
39
|
-
}) => theme.radii.circle, ";", ({
|
|
40
|
-
sentiment
|
|
41
|
-
}) => sentiments[sentiment], ";");
|
|
42
|
-
const StyledAnimatedCircle = /*#__PURE__*/_styled("span", {
|
|
43
|
-
target: "eny0xmn1"
|
|
44
|
-
})("position:absolute;width:", WIDTH, ";height:", HEIGHT, ";opacity:0.75;border-radius:", ({
|
|
45
|
-
theme
|
|
46
|
-
}) => theme.radii.circle, ";animation:", ping, " 1.1s cubic-bezier(0, 0, 0.2, 1) infinite;", ({
|
|
47
|
-
sentiment
|
|
48
|
-
}) => sentiments[sentiment], ";");
|
|
49
|
-
const Container = /*#__PURE__*/_styled("span", {
|
|
50
|
-
target: "eny0xmn0"
|
|
51
|
-
})("display:flex;width:", WIDTH, ";height:", HEIGHT, ";");
|
|
52
|
-
/**
|
|
53
|
-
* Status component used to display a colored circle with a tooltip for additional information.
|
|
54
|
-
*/
|
|
55
|
-
const Status = ({
|
|
56
|
-
animated = false,
|
|
57
|
-
className,
|
|
58
|
-
tooltip,
|
|
59
|
-
sentiment,
|
|
60
|
-
'data-testid': dataTestId
|
|
61
|
-
}) => jsx(Tooltip, {
|
|
62
|
-
text: tooltip,
|
|
63
|
-
children: jsxs(Container, {
|
|
64
|
-
className: className,
|
|
65
|
-
"data-testid": dataTestId,
|
|
66
|
-
children: [animated ? jsx(StyledAnimatedCircle, {
|
|
67
|
-
sentiment: sentiment
|
|
68
|
-
}) : null, jsx(StyledCircle, {
|
|
69
|
-
sentiment: sentiment
|
|
70
|
-
})]
|
|
71
|
-
})
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
export { Status };
|