@ultraviolet/ui 3.0.0-beta.8 → 3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -30
- package/dist/components/ActionBar/index.d.ts +3 -2
- package/dist/components/ActionBar/index.js +20 -4
- package/dist/components/ActionBar/styles.css.js +0 -1
- package/dist/components/Alert/index.d.ts +4 -2
- package/dist/components/Alert/index.js +100 -21
- package/dist/components/Alert/styles.css.d.ts +10 -1
- package/dist/components/Alert/styles.css.js +8 -5
- package/dist/components/Avatar/constants.d.ts +5 -5
- package/dist/components/Avatar/constants.js +1 -1
- package/dist/components/Avatar/index.d.ts +1 -1
- package/dist/components/Avatar/index.js +48 -36
- package/dist/components/Avatar/styles.css.d.ts +24 -24
- package/dist/components/Avatar/types.d.ts +2 -1
- package/dist/components/Badge/index.d.ts +3 -2
- package/dist/components/Badge/index.js +21 -9
- package/dist/components/Banner/index.d.ts +3 -2
- package/dist/components/Banner/index.js +90 -31
- package/dist/components/Banner/styles.css.d.ts +1 -1
- package/dist/components/BarChart/Tooltip.d.ts +3 -3
- package/dist/components/BarChart/Tooltip.js +27 -43
- package/dist/components/BarChart/index.d.ts +4 -3
- package/dist/components/BarChart/index.js +55 -33
- package/dist/components/BarChart/styles.css.d.ts +3 -0
- package/dist/components/BarChart/styles.css.js +9 -0
- package/dist/components/BarStack/index.d.ts +3 -2
- package/dist/components/BarStack/index.js +67 -36
- package/dist/components/BarStack/styles.css.d.ts +1 -0
- package/dist/components/BarStack/styles.css.js +6 -4
- package/dist/components/Breadcrumbs/components/Item.d.ts +3 -2
- package/dist/components/Breadcrumbs/components/Item.js +62 -41
- package/dist/components/Breadcrumbs/components/styles.css.d.ts +13 -0
- package/dist/components/Breadcrumbs/components/styles.css.js +18 -0
- package/dist/components/Breadcrumbs/index.d.ts +2 -1
- package/dist/components/Breadcrumbs/index.js +14 -19
- package/dist/components/Breadcrumbs/styles.css.d.ts +1 -0
- package/dist/components/Breadcrumbs/styles.css.js +5 -0
- package/dist/components/Bullet/constants.d.ts +10 -0
- package/dist/components/Bullet/index.d.ts +7 -15
- package/dist/components/Bullet/index.js +15 -75
- package/dist/components/Bullet/styles.css.d.ts +23 -0
- package/dist/components/Bullet/styles.css.js +6 -0
- package/dist/components/Button/constants.d.ts +1 -0
- package/dist/components/Button/constants.js +0 -1
- package/dist/components/Button/index.d.ts +5 -7
- package/dist/components/Button/index.js +123 -71
- package/dist/components/Card/index.d.ts +2 -1
- package/dist/components/Card/index.js +81 -52
- package/dist/components/Card/styles.css.d.ts +2 -0
- package/dist/components/Card/styles.css.js +7 -0
- package/dist/components/Carousel/index.d.ts +5 -4
- package/dist/components/Carousel/index.js +76 -79
- package/dist/components/Carousel/styles.css.d.ts +6 -0
- package/dist/components/Carousel/styles.css.js +15 -0
- package/dist/components/Checkbox/index.d.ts +1 -21
- package/dist/components/Checkbox/index.js +142 -241
- package/dist/components/Checkbox/styles.css.d.ts +7 -0
- package/dist/components/Checkbox/styles.css.js +17 -0
- package/dist/components/CheckboxGroup/index.d.ts +4 -4
- package/dist/components/CheckboxGroup/index.js +82 -56
- package/dist/components/CheckboxGroup/styles.css.d.ts +2 -0
- package/dist/components/CheckboxGroup/styles.css.js +7 -0
- package/dist/components/Chip/ChipIcon.d.ts +1 -1
- package/dist/components/Chip/ChipIcon.js +46 -12
- package/dist/components/Chip/index.d.ts +5 -4
- package/dist/components/Chip/index.js +38 -12
- package/dist/components/CopyButton/index.d.ts +3 -1
- package/dist/components/CopyButton/index.js +25 -9
- package/dist/components/DateInput/components/CalendarContent.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarContent.js +62 -43
- package/dist/components/DateInput/components/CalendarDaily.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarDaily.js +106 -101
- package/dist/components/DateInput/components/CalendarMonthly.d.ts +1 -1
- package/dist/components/DateInput/components/CalendarMonthly.js +63 -60
- package/dist/components/DateInput/components/Popup.d.ts +1 -1
- package/dist/components/DateInput/components/Popup.js +30 -18
- package/dist/components/DateInput/components/styles.css.d.ts +4 -0
- package/dist/components/DateInput/components/styles.css.js +12 -0
- package/dist/components/DateInput/helpers.d.ts +0 -2
- package/dist/components/DateInput/helpers.js +10 -11
- package/dist/components/DateInput/helpersLocale.js +3 -9
- package/dist/components/DateInput/index.d.ts +3 -2
- package/dist/components/DateInput/index.js +197 -83
- package/dist/components/DateInput/styles.css.d.ts +8 -0
- package/dist/components/DateInput/styles.css.js +8 -0
- package/dist/components/Dialog/Context.js +3 -1
- package/dist/components/Dialog/components/Button.d.ts +2 -2
- package/dist/components/Dialog/components/Button.js +14 -3
- package/dist/components/Dialog/components/Buttons.d.ts +1 -1
- package/dist/components/Dialog/components/Buttons.js +1 -1
- package/dist/components/Dialog/components/CancelButton.d.ts +3 -2
- package/dist/components/Dialog/components/CancelButton.js +14 -3
- package/dist/components/Dialog/components/Stack.d.ts +3 -2
- package/dist/components/Dialog/components/Stack.js +2 -4
- package/dist/components/Dialog/components/Text.d.ts +3 -1
- package/dist/components/Dialog/components/Text.js +2 -4
- package/dist/components/Dialog/constants.d.ts +1 -1
- package/dist/components/Dialog/index.d.ts +19 -14
- package/dist/components/Dialog/index.js +46 -30
- package/dist/components/Dialog/styles.css.d.ts +2 -0
- package/dist/components/Dialog/styles.css.js +7 -0
- package/dist/components/Drawer/index.d.ts +12 -19
- package/dist/components/Drawer/index.js +57 -102
- package/dist/components/Drawer/styles.css.d.ts +12 -0
- package/dist/components/Drawer/styles.css.js +17 -0
- package/dist/components/EmptyState/index.d.ts +4 -8
- package/dist/components/EmptyState/index.js +66 -84
- package/dist/components/EmptyState/styles.css.d.ts +29 -0
- package/dist/components/EmptyState/styles.css.js +10 -0
- package/dist/components/Expandable/index.d.ts +4 -9
- package/dist/components/Expandable/index.js +60 -26
- package/dist/components/Expandable/styles.css.d.ts +2 -0
- package/dist/components/Expandable/styles.css.js +7 -0
- package/dist/components/ExpandableCard/components/Title.d.ts +2 -2
- package/dist/components/ExpandableCard/components/Title.js +14 -3
- package/dist/components/ExpandableCard/constants.d.ts +1 -0
- package/dist/components/ExpandableCard/index.d.ts +4 -3
- package/dist/components/ExpandableCard/index.js +199 -179
- package/dist/components/ExpandableCard/styles.css.d.ts +7 -0
- package/dist/components/ExpandableCard/styles.css.js +17 -0
- package/dist/components/GlobalAlert/GlobalAlertLink.d.ts +1 -1
- package/dist/components/GlobalAlert/GlobalAlertLink.js +24 -7
- package/dist/components/GlobalAlert/index.d.ts +4 -3
- package/dist/components/GlobalAlert/index.js +54 -38
- package/dist/components/GlobalAlert/styles.css.d.ts +2 -0
- package/dist/components/GlobalAlert/styles.css.js +7 -0
- package/dist/components/InfiniteScroll/index.d.ts +3 -2
- package/dist/components/InfiniteScroll/index.js +42 -33
- package/dist/components/Key/constants.d.ts +8 -0
- package/dist/components/Key/constants.js +11 -0
- package/dist/components/Key/index.d.ts +3 -9
- package/dist/components/Key/index.js +33 -58
- package/dist/components/Key/styles.css.d.ts +29 -0
- package/dist/components/Key/styles.css.js +6 -0
- package/dist/components/Label/index.d.ts +3 -2
- package/dist/components/Label/index.js +88 -27
- package/dist/components/Label/styles.css.d.ts +1 -0
- package/dist/components/Label/styles.css.js +5 -0
- package/dist/components/LineChart/CustomLegend.d.ts +1 -1
- package/dist/components/LineChart/CustomLegend.js +55 -95
- package/dist/components/LineChart/Tooltip.d.ts +1 -1
- package/dist/components/LineChart/Tooltip.js +33 -38
- package/dist/components/LineChart/helpers.js +15 -14
- package/dist/components/LineChart/index.d.ts +3 -2
- package/dist/components/LineChart/index.js +58 -40
- package/dist/components/LineChart/styles.css.d.ts +12 -0
- package/dist/components/LineChart/styles.css.js +27 -0
- package/dist/components/Link/constants.d.ts +6 -0
- package/dist/components/Link/index.d.ts +4 -7
- package/dist/components/Link/index.js +76 -158
- package/dist/components/Link/styles.css.d.ts +78 -0
- package/dist/components/Link/styles.css.js +14 -0
- package/dist/components/List/Cell.d.ts +2 -1
- package/dist/components/List/Cell.js +28 -18
- package/dist/components/List/ColumnProvider.d.ts +14 -0
- package/dist/components/List/ColumnProvider.js +34 -0
- package/dist/components/List/HeaderCell.d.ts +2 -2
- package/dist/components/List/HeaderCell.js +41 -56
- package/dist/components/List/HeaderRow.d.ts +1 -1
- package/dist/components/List/HeaderRow.js +17 -34
- package/dist/components/List/ListContext.d.ts +1 -1
- package/dist/components/List/ListContext.js +128 -78
- package/dist/components/List/Row.d.ts +0 -16
- package/dist/components/List/Row.js +171 -253
- package/dist/components/List/SelectBar.d.ts +1 -1
- package/dist/components/List/SelectBar.js +20 -10
- package/dist/components/List/SkeletonRows.d.ts +1 -1
- package/dist/components/List/SkeletonRows.js +28 -45
- package/dist/components/List/index.d.ts +6 -4
- package/dist/components/List/index.js +62 -49
- package/dist/components/List/styles.css.d.ts +24 -0
- package/dist/components/List/styles.css.js +35 -0
- package/dist/components/List/variables.css.d.ts +7 -0
- package/dist/components/List/variables.css.js +16 -0
- package/dist/components/Loader/constants.d.ts +8 -0
- package/dist/components/Loader/constants.js +11 -0
- package/dist/components/Loader/index.d.ts +4 -9
- package/dist/components/Loader/index.js +53 -46
- package/dist/components/Loader/styles.css.d.ts +1 -0
- package/dist/components/Loader/styles.css.js +3 -1
- package/dist/components/Menu/MenuContent.d.ts +3 -2
- package/dist/components/Menu/MenuContent.js +218 -219
- package/dist/components/Menu/MenuProvider.d.ts +1 -1
- package/dist/components/Menu/MenuProvider.js +26 -13
- package/dist/components/Menu/components/Group.d.ts +3 -2
- package/dist/components/Menu/components/Group.js +15 -13
- package/dist/components/Menu/components/Item.d.ts +4 -3
- package/dist/components/Menu/components/Item.js +146 -159
- package/dist/components/Menu/helpers.js +3 -1
- package/dist/components/Menu/index.d.ts +8 -5
- package/dist/components/Menu/index.js +6 -12
- package/dist/components/Menu/styles.css.d.ts +47 -0
- package/dist/components/Menu/styles.css.js +24 -0
- package/dist/components/Menu/types.d.ts +3 -3
- package/dist/components/Meter/index.d.ts +3 -1
- package/dist/components/Meter/index.js +44 -12
- package/dist/components/Modal/ModalContent.d.ts +3 -2
- package/dist/components/Modal/ModalContent.js +44 -23
- package/dist/components/Modal/ModalProvider.d.ts +1 -1
- package/dist/components/Modal/ModalProvider.js +14 -11
- package/dist/components/Modal/components/Dialog.d.ts +2 -14
- package/dist/components/Modal/components/Dialog.js +96 -110
- package/dist/components/Modal/constants.d.ts +42 -2
- package/dist/components/Modal/index.d.ts +3 -2
- package/dist/components/Modal/index.js +62 -4
- package/dist/components/Modal/styles.css.d.ts +78 -0
- package/dist/components/Modal/styles.css.js +21 -0
- package/dist/components/Modal/types.d.ts +2 -1
- package/dist/components/Notice/index.d.ts +3 -2
- package/dist/components/Notice/index.js +26 -6
- package/dist/components/Notification/Notification.d.ts +10 -0
- package/dist/components/Notification/Notification.js +33 -0
- package/dist/components/Notification/NotificationContainer.d.ts +30 -0
- package/dist/components/Notification/NotificationContainer.js +33 -0
- package/dist/components/Notification/index.d.ts +2 -36
- package/dist/components/Notification/styles.css.d.ts +1 -0
- package/dist/components/Notification/styles.css.js +5 -0
- package/dist/components/NumberInput/constant.d.ts +5 -0
- package/dist/components/NumberInput/index.d.ts +2 -6
- package/dist/components/NumberInput/index.js +241 -246
- package/dist/components/NumberInput/styles.css.d.ts +109 -0
- package/dist/components/NumberInput/styles.css.js +14 -0
- package/dist/components/Pagination/PaginationButtons.d.ts +1 -1
- package/dist/components/Pagination/PaginationButtons.js +76 -46
- package/dist/components/Pagination/PerPage.d.ts +1 -1
- package/dist/components/Pagination/PerPage.js +32 -32
- package/dist/components/Pagination/getPageNumbers.js +12 -13
- package/dist/components/Pagination/index.d.ts +3 -1
- package/dist/components/Pagination/index.js +29 -5
- package/dist/components/Pagination/styles.css.d.ts +3 -0
- package/dist/components/Pagination/styles.css.js +9 -0
- package/dist/components/PasswordCheck/index.d.ts +3 -1
- package/dist/components/PasswordCheck/index.js +30 -15
- package/dist/components/PasswordCheck/styles.css.d.ts +1 -0
- package/dist/components/PasswordCheck/styles.css.js +5 -0
- package/dist/components/PieChart/Legends.d.ts +2 -2
- package/dist/components/PieChart/Legends.js +57 -127
- package/dist/components/PieChart/Tooltip.d.ts +2 -2
- package/dist/components/PieChart/Tooltip.js +6 -37
- package/dist/components/PieChart/index.d.ts +3 -2
- package/dist/components/PieChart/index.js +86 -63
- package/dist/components/PieChart/styles.css.d.ts +49 -0
- package/dist/components/PieChart/styles.css.js +36 -0
- package/dist/components/Popover/index.d.ts +2 -1
- package/dist/components/Popover/index.js +104 -45
- package/dist/components/Popup/helpers.d.ts +5 -1
- package/dist/components/Popup/helpers.js +57 -39
- package/dist/components/Popup/index.d.ts +4 -2
- package/dist/components/Popup/index.js +373 -243
- package/dist/components/Popup/styles.css.js +0 -1
- package/dist/components/Popup/variables.css.js +1 -0
- package/dist/components/ProgressBar/constants.d.ts +1 -0
- package/dist/components/ProgressBar/index.d.ts +5 -4
- package/dist/components/ProgressBar/index.js +79 -92
- package/dist/components/ProgressBar/styles.css.d.ts +4 -0
- package/dist/components/ProgressBar/styles.css.js +11 -0
- package/dist/components/ProgressBar/variables.css.d.ts +1 -0
- package/dist/components/ProgressBar/variables.css.js +5 -0
- package/dist/components/Radio/index.d.ts +1 -31
- package/dist/components/Radio/index.js +91 -161
- package/dist/components/Radio/styles.css.d.ts +9 -0
- package/dist/components/Radio/styles.css.js +21 -0
- package/dist/components/RadioGroup/index.d.ts +2 -2
- package/dist/components/RadioGroup/index.js +78 -39
- package/dist/components/RadioGroup/styles.css.d.ts +1 -0
- package/dist/components/RadioGroup/styles.css.js +5 -0
- package/dist/components/Row/index.d.ts +2 -1
- package/dist/components/Row/index.js +40 -25
- package/dist/components/Row/styles.css.d.ts +56 -45
- package/dist/components/Row/styles.css.js +2 -2
- package/dist/components/Row/variables.css.js +1 -0
- package/dist/components/SearchInput/KeyGroup.d.ts +1 -1
- package/dist/components/SearchInput/KeyGroup.js +3 -23
- package/dist/components/SearchInput/index.js +234 -199
- package/dist/components/SearchInput/styles.css.d.ts +3 -0
- package/dist/components/SearchInput/styles.css.js +10 -0
- package/dist/components/SelectInput/SelectInputProvider.d.ts +1 -1
- package/dist/components/SelectInput/SelectInputProvider.js +91 -55
- package/dist/components/SelectInput/{Dropdown.d.ts → components/Dropdown.d.ts} +2 -2
- package/dist/components/SelectInput/components/Dropdown.js +682 -0
- package/dist/components/SelectInput/{DropdownOption.d.ts → components/DropdownOption.d.ts} +2 -2
- package/dist/components/SelectInput/components/DropdownOption.js +196 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.d.ts +9 -0
- package/dist/components/SelectInput/components/SearchBarDropdown.js +146 -0
- package/dist/components/SelectInput/{SelectBar.d.ts → components/SelectBar.d.ts} +2 -13
- package/dist/components/SelectInput/components/SelectBar.js +392 -0
- package/dist/components/SelectInput/components/dropdown.css.d.ts +35 -0
- package/dist/components/SelectInput/components/dropdown.css.js +34 -0
- package/dist/components/SelectInput/components/selectBar.css.d.ts +108 -0
- package/dist/components/SelectInput/components/selectBar.css.js +22 -0
- package/dist/components/SelectInput/index.d.ts +2 -2
- package/dist/components/SelectInput/index.js +107 -38
- package/dist/components/SelectInput/styles.css.d.ts +2 -0
- package/dist/components/SelectInput/styles.css.js +7 -0
- package/dist/components/SelectableCard/index.d.ts +2 -1
- package/dist/components/SelectableCard/index.js +206 -275
- package/dist/components/SelectableCard/styles.css.d.ts +26 -0
- package/dist/components/SelectableCard/styles.css.js +21 -0
- package/dist/components/SelectableCard/variables.css.d.ts +3 -0
- package/dist/components/SelectableCard/variables.css.js +8 -0
- package/dist/components/SelectableCardGroup/index.d.ts +2 -2
- package/dist/components/SelectableCardGroup/index.js +69 -42
- package/dist/components/SelectableCardGroup/styles.css.d.ts +1 -0
- package/dist/components/SelectableCardGroup/styles.css.js +5 -0
- package/dist/components/SelectableCardOptionGroup/Provider.js +3 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Image.js +13 -25
- package/dist/components/SelectableCardOptionGroup/components/Option.d.ts +1 -1
- package/dist/components/SelectableCardOptionGroup/components/Option.js +99 -81
- package/dist/components/SelectableCardOptionGroup/index.d.ts +4 -4
- package/dist/components/SelectableCardOptionGroup/index.js +57 -36
- package/dist/components/SelectableCardOptionGroup/styles.css.d.ts +8 -0
- package/dist/components/SelectableCardOptionGroup/styles.css.js +21 -0
- package/dist/components/Separator/index.d.ts +3 -2
- package/dist/components/Separator/index.js +44 -26
- package/dist/components/Skeleton/Block.d.ts +1 -1
- package/dist/components/Skeleton/Block.js +3 -29
- package/dist/components/Skeleton/Blocks.d.ts +1 -1
- package/dist/components/Skeleton/Blocks.js +16 -30
- package/dist/components/Skeleton/BoxWithIcon.d.ts +1 -1
- package/dist/components/Skeleton/BoxWithIcon.js +16 -28
- package/dist/components/Skeleton/Donut.d.ts +1 -1
- package/dist/components/Skeleton/Donut.js +13 -44
- package/dist/components/Skeleton/IconSkeleton.d.ts +1 -4
- package/dist/components/Skeleton/IconSkeleton.js +3 -19
- package/dist/components/Skeleton/Line.d.ts +1 -4
- package/dist/components/Skeleton/Line.js +12 -13
- package/dist/components/Skeleton/List.d.ts +1 -1
- package/dist/components/Skeleton/List.js +4 -46
- package/dist/components/Skeleton/Slider.d.ts +1 -1
- package/dist/components/Skeleton/Slider.js +13 -37
- package/dist/components/Skeleton/Square.d.ts +1 -4
- package/dist/components/Skeleton/Square.js +3 -9
- package/dist/components/Skeleton/index.d.ts +11 -15
- package/dist/components/Skeleton/index.js +19 -48
- package/dist/components/Skeleton/styles.css.d.ts +2 -0
- package/dist/components/Skeleton/styles.css.js +7 -0
- package/dist/components/Skeleton/stylesVariants.css.d.ts +22 -0
- package/dist/components/Skeleton/stylesVariants.css.js +47 -0
- package/dist/components/Slider/components/DoubleSlider.d.ts +1 -1
- package/dist/components/Slider/components/DoubleSlider.js +197 -144
- package/dist/components/Slider/components/Options.d.ts +1 -13
- package/dist/components/Slider/components/Options.js +46 -49
- package/dist/components/Slider/components/SingleSlider.d.ts +1 -1
- package/dist/components/Slider/components/SingleSlider.js +138 -112
- package/dist/components/Slider/index.d.ts +1 -1
- package/dist/components/Slider/index.js +85 -13
- package/dist/components/Slider/styles.css.d.ts +171 -0
- package/dist/components/Slider/styles.css.js +36 -0
- package/dist/components/Slider/types.d.ts +1 -1
- package/dist/components/Snippet/index.d.ts +3 -2
- package/dist/components/Snippet/index.js +110 -157
- package/dist/components/Snippet/styles.css.d.ts +48 -0
- package/dist/components/Snippet/styles.css.js +26 -0
- package/dist/components/Stack/index.d.ts +6 -5
- package/dist/components/Stack/index.js +38 -34
- package/dist/components/Stack/styles.css.d.ts +51 -51
- package/dist/components/Stack/styles.css.js +2 -2
- package/dist/components/Stack/types.d.ts +8 -0
- package/dist/components/Stack/variables.css.js +1 -0
- package/dist/components/Status/index.d.ts +3 -1
- package/dist/components/Status/index.js +15 -12
- package/dist/components/StepList/index.d.ts +4 -3
- package/dist/components/StepList/index.js +32 -10
- package/dist/components/Stepper/Step.d.ts +3 -2
- package/dist/components/Stepper/Step.js +82 -114
- package/dist/components/Stepper/StepperProvider.d.ts +1 -1
- package/dist/components/Stepper/StepperProvider.js +13 -10
- package/dist/components/Stepper/index.d.ts +6 -4
- package/dist/components/Stepper/index.js +49 -81
- package/dist/components/Stepper/styles.css.d.ts +122 -0
- package/dist/components/Stepper/styles.css.js +20 -0
- package/dist/components/SwitchButton/FocusOverlay.d.ts +1 -1
- package/dist/components/SwitchButton/FocusOverlay.js +12 -20
- package/dist/components/SwitchButton/Option.d.ts +3 -2
- package/dist/components/SwitchButton/Option.js +23 -45
- package/dist/components/SwitchButton/index.d.ts +6 -4
- package/dist/components/SwitchButton/index.js +98 -73
- package/dist/components/SwitchButton/styles.css.d.ts +7 -0
- package/dist/components/SwitchButton/styles.css.js +9 -0
- package/dist/components/Table/Body.d.ts +1 -1
- package/dist/components/Table/Body.js +2 -4
- package/dist/components/Table/Cell.d.ts +3 -2
- package/dist/components/Table/Cell.js +28 -21
- package/dist/components/Table/Header.d.ts +1 -1
- package/dist/components/Table/Header.js +3 -13
- package/dist/components/Table/HeaderCell.d.ts +1 -1
- package/dist/components/Table/HeaderCell.js +51 -57
- package/dist/components/Table/HeaderRow.d.ts +1 -1
- package/dist/components/Table/HeaderRow.js +22 -13
- package/dist/components/Table/Row.d.ts +3 -2
- package/dist/components/Table/Row.js +75 -95
- package/dist/components/Table/SelectBar.d.ts +1 -1
- package/dist/components/Table/SelectBar.js +20 -10
- package/dist/components/Table/SkeletonRows.d.ts +1 -1
- package/dist/components/Table/SkeletonRows.js +18 -46
- package/dist/components/Table/TableContext.d.ts +1 -1
- package/dist/components/Table/TableContext.js +22 -13
- package/dist/components/Table/constants.js +0 -2
- package/dist/components/Table/index.d.ts +13 -9
- package/dist/components/Table/index.js +67 -68
- package/dist/components/Table/styles.css.d.ts +68 -0
- package/dist/components/Table/styles.css.js +29 -0
- package/dist/components/Table/variables.css.d.ts +6 -0
- package/dist/components/Table/variables.css.js +14 -0
- package/dist/components/Tabs/Tab.d.ts +2 -5
- package/dist/components/Tabs/Tab.js +80 -112
- package/dist/components/Tabs/TabMenu.js +40 -55
- package/dist/components/Tabs/TabMenuItem.d.ts +3 -19
- package/dist/components/Tabs/TabMenuItem.js +21 -20
- package/dist/components/Tabs/TabsContext.js +3 -1
- package/dist/components/Tabs/index.d.ts +6 -6
- package/dist/components/Tabs/index.js +36 -46
- package/dist/components/Tabs/styles.css.d.ts +9 -0
- package/dist/components/Tabs/styles.css.js +21 -0
- package/dist/components/Tag/index.d.ts +5 -4
- package/dist/components/Tag/index.js +40 -93
- package/dist/components/Tag/styles.css.d.ts +34 -0
- package/dist/components/Tag/styles.css.js +10 -0
- package/dist/components/TagInput/index.d.ts +4 -7
- package/dist/components/TagInput/index.js +138 -150
- package/dist/components/TagInput/styles.css.d.ts +24 -0
- package/dist/components/TagInput/styles.css.js +12 -0
- package/dist/components/TagList/constant.d.ts +1 -0
- package/dist/components/TagList/constant.js +5 -0
- package/dist/components/TagList/index.d.ts +3 -2
- package/dist/components/TagList/index.js +138 -106
- package/dist/components/TagList/styles.css.d.ts +11 -0
- package/dist/components/TagList/styles.css.js +14 -0
- package/dist/components/Text/constants.d.ts +9 -0
- package/dist/components/Text/index.d.ts +2 -5
- package/dist/components/Text/index.js +21 -17
- package/dist/components/Text/style.css.js +0 -1
- package/dist/components/Text/variables.css.js +1 -0
- package/dist/components/TextArea/index.d.ts +2 -1
- package/dist/components/TextArea/index.js +182 -166
- package/dist/components/TextArea/styles.css.d.ts +15 -0
- package/dist/components/TextArea/styles.css.js +12 -0
- package/dist/components/TextInput/constants.d.ts +5 -0
- package/dist/components/TextInput/index.d.ts +3 -51
- package/dist/components/TextInput/index.js +287 -209
- package/dist/components/TextInput/styles.css.d.ts +8 -0
- package/dist/components/TextInput/styles.css.js +17 -0
- package/dist/components/TimeInput/constants.js +1 -11
- package/dist/components/TimeInput/index.d.ts +3 -9
- package/dist/components/TimeInput/index.js +211 -199
- package/dist/components/TimeInput/styles.css.d.ts +82 -0
- package/dist/components/TimeInput/styles.css.js +10 -0
- package/dist/components/Toaster/Toaster.d.ts +7 -0
- package/dist/components/Toaster/Toaster.js +25 -0
- package/dist/components/Toaster/ToasterContainer.d.ts +38 -0
- package/dist/components/Toaster/ToasterContainer.js +37 -0
- package/dist/components/Toaster/components/Button.d.ts +1 -1
- package/dist/components/Toaster/components/CloseButton.d.ts +8 -0
- package/dist/components/Toaster/components/CloseButton.js +22 -0
- package/dist/components/Toaster/components/Content.d.ts +6 -0
- package/dist/components/Toaster/components/Content.js +8 -0
- package/dist/components/Toaster/components/Link.d.ts +1 -1
- package/dist/components/Toaster/constants.d.ts +1 -0
- package/dist/components/Toaster/constants.js +4 -0
- package/dist/components/Toaster/index.d.ts +4 -45
- package/dist/components/Toaster/styles.css.d.ts +3 -0
- package/dist/components/Toaster/styles.css.js +7 -0
- package/dist/components/Toggle/index.d.ts +1 -19
- package/dist/components/Toggle/index.js +101 -135
- package/dist/components/Toggle/styles.css.d.ts +108 -0
- package/dist/components/Toggle/styles.css.js +10 -0
- package/dist/components/ToggleGroup/index.d.ts +4 -4
- package/dist/components/ToggleGroup/index.js +66 -41
- package/dist/components/ToggleGroup/styles.css.d.ts +1 -0
- package/dist/components/ToggleGroup/styles.css.js +5 -0
- package/dist/components/Tooltip/index.d.ts +2 -1
- package/dist/components/Tooltip/index.js +42 -18
- package/dist/components/TreeMapChart/Tooltip.d.ts +6 -0
- package/dist/components/TreeMapChart/Tooltip.js +15 -0
- package/dist/components/TreeMapChart/index.d.ts +18 -0
- package/dist/components/TreeMapChart/index.js +74 -0
- package/dist/components/TreeMapChart/styles.css.d.ts +2 -0
- package/dist/components/TreeMapChart/styles.css.js +7 -0
- package/dist/components/TreeMapChart/types.d.ts +7 -0
- package/dist/components/UnitInput/index.d.ts +3 -2
- package/dist/components/UnitInput/index.js +130 -139
- package/dist/components/UnitInput/styles.css.d.ts +7 -0
- package/dist/components/UnitInput/styles.css.js +18 -0
- package/dist/components/VerificationCode/constants.d.ts +13 -0
- package/dist/components/VerificationCode/index.d.ts +3 -4
- package/dist/components/VerificationCode/index.js +84 -105
- package/dist/components/VerificationCode/styles.css.d.ts +3 -0
- package/dist/components/VerificationCode/styles.css.js +9 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/helpers/legend.d.ts +2 -2
- package/dist/helpers/legend.js +5 -5
- package/dist/helpers/nivoTheme.d.ts +1 -1
- package/dist/helpers/treeMap.d.ts +91 -0
- package/dist/helpers/treeMap.js +42 -0
- package/dist/hooks/useIsOverflowing.js +2 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +40 -10
- package/dist/theme/ThemeProvider.d.ts +1 -1
- package/dist/theme/ThemeProvider.js +7 -32
- package/dist/theme/index.d.ts +2 -3
- package/dist/theme/index.js +5 -14
- package/dist/ui.css +1 -1
- package/dist/utils/animations/animations.d.ts +27 -0
- package/dist/utils/animations/animations.js +271 -0
- package/dist/utils/animations/animationsVE.css.d.ts +27 -0
- package/dist/utils/animations/animationsVE.css.js +57 -0
- package/dist/utils/ids.js +1 -3
- package/dist/utils/index.d.ts +3 -3
- package/dist/utils/responsive/index.d.ts +0 -1
- package/dist/utils/responsive/style.css.d.ts +3 -0
- package/package.json +12 -14
- package/dist/components/ActionBar/index.cjs +0 -18
- package/dist/components/ActionBar/styles.css.cjs +0 -11
- package/dist/components/Alert/index.cjs +0 -54
- package/dist/components/Alert/styles.css.cjs +0 -14
- package/dist/components/Avatar/constants.cjs +0 -19
- package/dist/components/Avatar/index.cjs +0 -64
- package/dist/components/Avatar/styles.css.cjs +0 -16
- package/dist/components/Avatar/variables.css.cjs +0 -9
- package/dist/components/Badge/constant.cjs +0 -8
- package/dist/components/Badge/index.cjs +0 -26
- package/dist/components/Badge/styles.css.cjs +0 -6
- package/dist/components/Banner/assets/default-image-small.svg.cjs +0 -3
- package/dist/components/Banner/assets/default-image.svg.cjs +0 -3
- package/dist/components/Banner/index.cjs +0 -74
- package/dist/components/Banner/styles.css.cjs +0 -10
- package/dist/components/BarChart/Tooltip.cjs +0 -53
- package/dist/components/BarChart/index.cjs +0 -58
- package/dist/components/BarStack/index.cjs +0 -49
- package/dist/components/BarStack/styles.css.cjs +0 -9
- package/dist/components/BarStack/variables.css.cjs +0 -25
- package/dist/components/BarStack/variables.css.d.ts +0 -11
- package/dist/components/BarStack/variables.css.js +0 -25
- package/dist/components/Breadcrumbs/components/Item.cjs +0 -58
- package/dist/components/Breadcrumbs/constants.cjs +0 -4
- package/dist/components/Breadcrumbs/constants.js +0 -4
- package/dist/components/Breadcrumbs/index.cjs +0 -30
- package/dist/components/Bullet/index.cjs +0 -89
- package/dist/components/Button/constants.cjs +0 -7
- package/dist/components/Button/index.cjs +0 -82
- package/dist/components/Button/styles.css.cjs +0 -6
- package/dist/components/Card/index.cjs +0 -61
- package/dist/components/Carousel/index.cjs +0 -125
- package/dist/components/Checkbox/index.cjs +0 -255
- package/dist/components/CheckboxGroup/index.cjs +0 -107
- package/dist/components/Chip/ChipContext.cjs +0 -6
- package/dist/components/Chip/ChipIcon.cjs +0 -52
- package/dist/components/Chip/index.cjs +0 -59
- package/dist/components/Chip/styles.css.cjs +0 -7
- package/dist/components/CopyButton/index.cjs +0 -34
- package/dist/components/DateInput/Context.cjs +0 -23
- package/dist/components/DateInput/components/CalendarContent.cjs +0 -79
- package/dist/components/DateInput/components/CalendarDaily.cjs +0 -209
- package/dist/components/DateInput/components/CalendarMonthly.cjs +0 -127
- package/dist/components/DateInput/components/Popup.cjs +0 -41
- package/dist/components/DateInput/constants.cjs +0 -6
- package/dist/components/DateInput/helpers.cjs +0 -77
- package/dist/components/DateInput/helpersLocale.cjs +0 -64
- package/dist/components/DateInput/index.cjs +0 -211
- package/dist/components/Dialog/Context.cjs +0 -14
- package/dist/components/Dialog/components/Button.cjs +0 -16
- package/dist/components/Dialog/components/Buttons.cjs +0 -13
- package/dist/components/Dialog/components/CancelButton.cjs +0 -11
- package/dist/components/Dialog/components/Stack.cjs +0 -9
- package/dist/components/Dialog/components/Text.cjs +0 -9
- package/dist/components/Dialog/index.cjs +0 -77
- package/dist/components/Drawer/index.cjs +0 -141
- package/dist/components/EmptyState/index.cjs +0 -104
- package/dist/components/Expandable/index.cjs +0 -113
- package/dist/components/ExpandableCard/components/Title.cjs +0 -12
- package/dist/components/ExpandableCard/index.cjs +0 -197
- package/dist/components/GlobalAlert/GlobalAlertLink.cjs +0 -24
- package/dist/components/GlobalAlert/index.cjs +0 -65
- package/dist/components/InfiniteScroll/index.cjs +0 -89
- package/dist/components/Key/index.cjs +0 -85
- package/dist/components/Label/index.cjs +0 -54
- package/dist/components/LineChart/CustomLegend.cjs +0 -130
- package/dist/components/LineChart/Tooltip.cjs +0 -48
- package/dist/components/LineChart/helpers.cjs +0 -57
- package/dist/components/LineChart/index.cjs +0 -90
- package/dist/components/Link/index.cjs +0 -170
- package/dist/components/List/Cell.cjs +0 -25
- package/dist/components/List/HeaderCell.cjs +0 -83
- package/dist/components/List/HeaderRow.cjs +0 -47
- package/dist/components/List/ListContext.cjs +0 -210
- package/dist/components/List/Row.cjs +0 -267
- package/dist/components/List/SelectBar.cjs +0 -28
- package/dist/components/List/SkeletonRows.cjs +0 -60
- package/dist/components/List/constants.cjs +0 -5
- package/dist/components/List/constants.js +0 -5
- package/dist/components/List/index.cjs +0 -76
- package/dist/components/Loader/index.cjs +0 -64
- package/dist/components/Loader/styles.css.cjs +0 -7
- package/dist/components/Menu/MenuContent.cjs +0 -240
- package/dist/components/Menu/MenuProvider.cjs +0 -44
- package/dist/components/Menu/components/Group.cjs +0 -34
- package/dist/components/Menu/components/Item.cjs +0 -174
- package/dist/components/Menu/constants.cjs +0 -7
- package/dist/components/Menu/constants.js +0 -7
- package/dist/components/Menu/helpers.cjs +0 -48
- package/dist/components/Menu/index.cjs +0 -20
- package/dist/components/Meter/index.cjs +0 -33
- package/dist/components/Meter/styles.css.cjs +0 -11
- package/dist/components/Modal/ModalContent.cjs +0 -50
- package/dist/components/Modal/ModalProvider.cjs +0 -41
- package/dist/components/Modal/components/Dialog.cjs +0 -208
- package/dist/components/Modal/components/Disclosure.cjs +0 -42
- package/dist/components/Modal/constants.cjs +0 -53
- package/dist/components/Modal/constants.js +0 -53
- package/dist/components/Modal/index.cjs +0 -57
- package/dist/components/Notice/index.cjs +0 -16
- package/dist/components/Notice/styles.css.cjs +0 -5
- package/dist/components/Notification/index.cjs +0 -51
- package/dist/components/Notification/index.js +0 -51
- package/dist/components/NumberInput/index.cjs +0 -261
- package/dist/components/Pagination/PaginationButtons.cjs +0 -86
- package/dist/components/Pagination/PerPage.cjs +0 -66
- package/dist/components/Pagination/getPageNumbers.cjs +0 -23
- package/dist/components/Pagination/index.cjs +0 -42
- package/dist/components/PasswordCheck/index.cjs +0 -27
- package/dist/components/PieChart/Legends.cjs +0 -140
- package/dist/components/PieChart/Tooltip.cjs +0 -49
- package/dist/components/PieChart/index.cjs +0 -90
- package/dist/components/Popover/index.cjs +0 -66
- package/dist/components/Popover/styles.css.cjs +0 -8
- package/dist/components/Popup/helpers.cjs +0 -260
- package/dist/components/Popup/index.cjs +0 -279
- package/dist/components/Popup/styles.css.cjs +0 -13
- package/dist/components/Popup/variables.css.cjs +0 -18
- package/dist/components/ProgressBar/index.cjs +0 -115
- package/dist/components/Radio/index.cjs +0 -173
- package/dist/components/RadioGroup/index.cjs +0 -90
- package/dist/components/Row/index.cjs +0 -42
- package/dist/components/Row/styles.css.cjs +0 -17
- package/dist/components/Row/variables.css.cjs +0 -6
- package/dist/components/SearchInput/KeyGroup.cjs +0 -31
- package/dist/components/SearchInput/index.cjs +0 -221
- package/dist/components/SelectInput/Dropdown.cjs +0 -488
- package/dist/components/SelectInput/Dropdown.js +0 -486
- package/dist/components/SelectInput/DropdownOption.cjs +0 -91
- package/dist/components/SelectInput/DropdownOption.js +0 -89
- package/dist/components/SelectInput/SearchBarDropdown.cjs +0 -133
- package/dist/components/SelectInput/SearchBarDropdown.d.ts +0 -11
- package/dist/components/SelectInput/SearchBarDropdown.js +0 -131
- package/dist/components/SelectInput/SelectBar.cjs +0 -366
- package/dist/components/SelectInput/SelectBar.js +0 -364
- package/dist/components/SelectInput/SelectInputProvider.cjs +0 -203
- package/dist/components/SelectInput/findOptionInOptions.cjs +0 -12
- package/dist/components/SelectInput/index.cjs +0 -93
- package/dist/components/SelectInput/types.cjs +0 -9
- package/dist/components/SelectableCard/index.cjs +0 -306
- package/dist/components/SelectableCardGroup/index.cjs +0 -92
- package/dist/components/SelectableCardOptionGroup/Provider.cjs +0 -24
- package/dist/components/SelectableCardOptionGroup/components/Image.cjs +0 -35
- package/dist/components/SelectableCardOptionGroup/components/Option.cjs +0 -121
- package/dist/components/SelectableCardOptionGroup/index.cjs +0 -68
- package/dist/components/Separator/index.cjs +0 -39
- package/dist/components/Separator/styles.css.cjs +0 -10
- package/dist/components/Skeleton/Block.cjs +0 -41
- package/dist/components/Skeleton/Blocks.cjs +0 -41
- package/dist/components/Skeleton/BoxWithIcon.cjs +0 -39
- package/dist/components/Skeleton/Donut.cjs +0 -57
- package/dist/components/Skeleton/IconSkeleton.cjs +0 -25
- package/dist/components/Skeleton/Line.cjs +0 -21
- package/dist/components/Skeleton/List.cjs +0 -56
- package/dist/components/Skeleton/Slider.cjs +0 -43
- package/dist/components/Skeleton/Square.cjs +0 -15
- package/dist/components/Skeleton/index.cjs +0 -81
- package/dist/components/Slider/components/DoubleSlider.cjs +0 -288
- package/dist/components/Slider/components/Options.cjs +0 -56
- package/dist/components/Slider/components/SingleSlider.cjs +0 -209
- package/dist/components/Slider/constant.cjs +0 -4
- package/dist/components/Slider/index.cjs +0 -59
- package/dist/components/Slider/styles.cjs +0 -63
- package/dist/components/Slider/styles.d.ts +0 -62
- package/dist/components/Slider/styles.js +0 -61
- package/dist/components/Snippet/index.cjs +0 -197
- package/dist/components/Stack/index.cjs +0 -77
- package/dist/components/Stack/styles.css.cjs +0 -19
- package/dist/components/Stack/variables.css.cjs +0 -10
- package/dist/components/Status/index.cjs +0 -24
- package/dist/components/Status/styles.css.cjs +0 -11
- package/dist/components/StepList/index.cjs +0 -31
- package/dist/components/StepList/styles.css.cjs +0 -10
- package/dist/components/Stepper/Step.cjs +0 -141
- package/dist/components/Stepper/StepperProvider.cjs +0 -41
- package/dist/components/Stepper/index.cjs +0 -103
- package/dist/components/SwitchButton/FocusOverlay.cjs +0 -32
- package/dist/components/SwitchButton/Option.cjs +0 -82
- package/dist/components/SwitchButton/SwitchButtonContext.cjs +0 -13
- package/dist/components/SwitchButton/constant.cjs +0 -4
- package/dist/components/SwitchButton/index.cjs +0 -134
- package/dist/components/Table/Body.cjs +0 -8
- package/dist/components/Table/Cell.cjs +0 -33
- package/dist/components/Table/Header.cjs +0 -19
- package/dist/components/Table/HeaderCell.cjs +0 -87
- package/dist/components/Table/HeaderRow.cjs +0 -28
- package/dist/components/Table/Row.cjs +0 -166
- package/dist/components/Table/SelectBar.cjs +0 -28
- package/dist/components/Table/SkeletonRows.cjs +0 -55
- package/dist/components/Table/TableContext.cjs +0 -43
- package/dist/components/Table/constants.cjs +0 -6
- package/dist/components/Table/index.cjs +0 -100
- package/dist/components/Tabs/Tab.cjs +0 -124
- package/dist/components/Tabs/TabMenu.cjs +0 -65
- package/dist/components/Tabs/TabMenuItem.cjs +0 -37
- package/dist/components/Tabs/TabsContext.cjs +0 -7
- package/dist/components/Tabs/index.cjs +0 -106
- package/dist/components/Tag/index.cjs +0 -150
- package/dist/components/TagInput/index.cjs +0 -256
- package/dist/components/TagList/index.cjs +0 -206
- package/dist/components/Text/constant.d.ts +0 -6
- package/dist/components/Text/index.cjs +0 -53
- package/dist/components/Text/style.css.cjs +0 -7
- package/dist/components/Text/variables.css.cjs +0 -6
- package/dist/components/TextArea/index.cjs +0 -184
- package/dist/components/TextInput/index.cjs +0 -223
- package/dist/components/TimeInput/constants.cjs +0 -19
- package/dist/components/TimeInput/helpers.cjs +0 -66
- package/dist/components/TimeInput/index.cjs +0 -352
- package/dist/components/Toaster/components/Button.cjs +0 -15
- package/dist/components/Toaster/components/Button.js +0 -12
- package/dist/components/Toaster/index.cjs +0 -66
- package/dist/components/Toaster/index.js +0 -64
- package/dist/components/Toggle/index.cjs +0 -147
- package/dist/components/ToggleGroup/index.cjs +0 -88
- package/dist/components/Tooltip/index.cjs +0 -25
- package/dist/components/Tooltip/styles.css.cjs +0 -5
- package/dist/components/UnitInput/index.cjs +0 -203
- package/dist/components/VerificationCode/index.cjs +0 -230
- package/dist/helpers/isClientSide.cjs +0 -4
- package/dist/helpers/legend.cjs +0 -14
- package/dist/helpers/nivoTheme.cjs +0 -22
- package/dist/helpers/recursivelyGetChildrenString.cjs +0 -17
- package/dist/hooks/useIsOverflowing.cjs +0 -23
- package/dist/index.cjs +0 -204
- package/dist/theme/ThemeProvider.cjs +0 -43
- package/dist/theme/index.cjs +0 -34
- package/dist/utils/animationVanillaExtract.css.d.ts +0 -2
- package/dist/utils/animations.cjs +0 -276
- package/dist/utils/animations.d.ts +0 -162
- package/dist/utils/animations.js +0 -276
- package/dist/utils/capitalize.cjs +0 -3
- package/dist/utils/capitalize.js +0 -4
- package/dist/utils/ids.cjs +0 -8
- package/dist/utils/normalize.cjs +0 -35
- package/dist/utils/responsive/Breakpoint.cjs +0 -15
- package/dist/utils/responsive/Breakpoint.d.ts +0 -9
- package/dist/utils/responsive/Breakpoint.js +0 -14
- package/dist/utils/responsive/utilities.cjs +0 -17
- package/dist/utils/searchAlgorithm.cjs +0 -40
- package/dist/utils/searchAlgorithm.d.ts +0 -12
- package/dist/utils/searchAlgorithm.js +0 -40
|
@@ -1,219 +1,254 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx } from "
|
|
3
|
-
import _styled from "@emotion/styled/base";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
3
|
import { SearchIcon } from "@ultraviolet/icons";
|
|
5
4
|
import { forwardRef, useRef, useState, useReducer, useImperativeHandle, useEffect, useCallback, useMemo } from "react";
|
|
6
5
|
import { isClientSide } from "../../helpers/isClientSide.js";
|
|
7
6
|
import { Popup } from "../Popup/index.js";
|
|
8
7
|
import { Stack } from "../Stack/index.js";
|
|
9
|
-
import { TextInput
|
|
8
|
+
import { TextInput } from "../TextInput/index.js";
|
|
10
9
|
import { KeyGroup } from "./KeyGroup.js";
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}) => `${theme.shadows.raised[0]}, ${theme.shadows.raised[1]}`, ";" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3VpL3NyYy9jb21wb25lbnRzL1NlYXJjaElucHV0L2luZGV4LnRzeCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUEyQmlDIiw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IGlzT3Blbiwgc2VhcmNoVGVybXMsIHRvZ2dsZUlzT3BlbiB9KVxuICAgICAgICA6IGNoaWxkcmVuXG5cbiAgICBjb25zdCByZXNpemVTZWFyY2hCYXIgPSAoKSA9PiB7XG4gICAgICBpZiAocG9wdXBSZWYuY3VycmVudCkge1xuICAgICAgICBzZXRDb250YWluZXJXaWR0aChwb3B1cFJlZi5jdXJyZW50LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLndpZHRoKVxuICAgICAgfVxuICAgIH1cblxuICAgIGNvbnN0IGhhbmRsZU5hdmlnYXRpb24gPSAoZXZlbnQ6IEtleWJvYXJkRXZlbnQpID0+IHtcbiAgICAgIGNvbnN0IGxpbmtzID0gWy4uLihwb3B1cFJlZi5jdXJyZW50Py5xdWVyeVNlbGVjdG9yQWxsKCdhJykgPz8gW10pXVxuXG4gICAgICBpZiAoXG4gICAgICAgIGxpbmtzLmxlbmd0aCA+IDAgJiZcbiAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50ID49IDAgJiZcbiAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50IDw9IGxpbmtzLmxlbmd0aFxuICAgICAgKSB7XG4gICAgICAgIGlmIChldmVudC5rZXkgPT09ICdBcnJvd1VwJykge1xuICAgICAgICAgIGlmIChmb2N1c2VkTGlua0luZGV4LmN1cnJlbnQgLSAxIDwgMCkge1xuICAgICAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50ID0gbGlua3MubGVuZ3RoIC0gMVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb2N1c2VkTGlua0luZGV4LmN1cnJlbnQgLT0gMVxuICAgICAgICAgIH1cbiAgICAgICAgICBsaW5rc1tmb2N1c2VkTGlua0luZGV4LmN1cnJlbnRdPy5mb2N1cygpXG4gICAgICAgIH1cblxuICAgICAgICBpZiAoZXZlbnQua2V5ID09PSAnQXJyb3dEb3duJykge1xuICAgICAgICAgIGlmIChmb2N1c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AgIGlmIChcbiAgICAgICAgICAgIChrZXkgPT09ICdrJyB8fCBrZXkgPT09ICdLJykgJiZcbiAgICAgICAgICAgICgoIWlzTWFjT1MgJiYgY3RybEtleSkgfHwgKGlzTWFjT1MgJiYgbWV0YUtleSkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgICBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKClcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY29uc3QgdXBwZXJjYXNlU2hvcnRjdXQgPSBzaG9ydGN1dC5tYXAocyA9PiBzLnRvVXBwZXJDYXNlKCkpXG5cbiAgICAgICAgICBpZiAoXG4gICAgICAgICAgICBKU09OLnN0cmluZ2lmeShbLi4ua2V5UHJlc3NlZCwga2V5LnRvVXBwZXJDYXNlKCldKSA9PT1cbiAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHVwcGVyY2FzZVNob3J0Y3V0KVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgICAgaW5uZXJTZWFyY2hJbnB1dFJlZi5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgW2tleVByZXNzZWQsIHNob3J0Y3V0LCBpc01hY09TXSxcbiAgICApXG5cbiAgICBjb25zdCBoYW5kbGVLZXlSZWxlYXNlZCA9IHVzZUNhbGxiYWNrKFxuICAgICAgKGV2ZW50OiBLZXlib2FyZEV2ZW50KSA9PiB7XG4gICAgICAgIGlmICghKGV2ZW50IGluc3RhbmNlb2YgS2V5Ym9hcmRFdmVudCkpIHtcbiAgICAgICAgICByZXR1cm5cbiAgICAgICAgfVxuXG4gICAgICAgIGNvbnN0IHsga2V5IH0gPSBldmVudFxuICAgICAgICBzZXRLZXlQcmVzc2VkKGtleVByZXN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mFtZX1cbiAgICAgICAgICAgIGNsZWFyYWJsZVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9XG4gICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICBlcnJvcj17ZXJyb3J9XG4gICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICBsYWJlbD17bGFiZWx9XG4gICAgICAgICAgICBsYWJlbERlc2NyaXB0aW9uPXtsYWJlbERlc2NyaXB0aW9ufVxuICAgICAgICAgICAgbG9hZGluZz17bG9hZGluZ31cbiAgICAgICAgICAgIG1heExlbmd0aD17bWF4TGVuZ3RofVxuICAgICAgICAgICAgbWluTGVuZ3RoPXttaW5MZW5ndGh9XG4gICAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgICAgb25CbHVyPXtvbkJsdXJ9XG4gICAgICAgICAgICBvbkNoYW5nZT17ZXZlbnQgPT4gb25TZWFyY2hDYWxsYmFjayhldmVudC50YXJnZXQudmFsdWUpfVxuICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICAgICAgICAgIG9uS2V5RG93bj17b25LZXlEb3dufVxuICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICAgICAgcHJlZml4PXtcbiAgICAgICAgICAgICAgPENsaWNrYWJsZVN0YWNrXG4gICAgICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2BzZWFyY2gtaWNvbiR7ZGF0YVRlc3RJZCA/IGAtJHtkYXRhVGVzdElkfWAgOiAnJ31gfVxuICAgICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGlubmVyU2VhcmNoSW5wdXRSZWYuY3VycmVudD8uZm9jdXMoKX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxTZWFyY2hJY29uIGRpc2FibGVkPXtkaXNhYmxlZH0gc2VudGltZW50PVwibmV1dHJhbFwiIC8+XG4gICAgICAgICAgICAgIDwvQ2xpY2thYmxlU3RhY2s+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICByZWY9e2lubmVyU2VhcmNoSW5wdXRSZWZ9XG4gICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICByb2xlPXtyb2xlfVxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHN1ZmZpeD17XG4gICAgICAgICAgICAgIHNob3J0Y3V0ICYmIHNlYXJjaFRlcm1zLmxlbmd0aCA9PT0gMCA/IChcbiAgICAgICAgICAgICAgICA8S2V5R3JvdXBcbiAgICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICAgIGtleXM9e2tleXN9XG4gICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKCl9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgKSA6IHVuZGVmaW5lZFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdG9vbHRpcD17dG9vbHRpcH1cbiAgICAgICAgICAgIHZhbHVlPXtzZWFyY2hUZXJtc31cbiAgICAgICAgICAvPlxuICAgICAgICA8L1N0eWxlZFBvcHVwPlxuICAgICAgPC9kaXY+XG4gICAgKVxuICB9LFxuKVxuIl19 */"));
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
})(BasicPrefixStack, "{border:none;}", StyledInput, "{padding:0;}", BasicSuffixStack, "{border:none;}" + (process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9ob21lL3J1bm5lci93b3JrL3VsdHJhdmlvbGV0L3VsdHJhdmlvbGV0L3BhY2thZ2VzL3Vp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gY29uc3QgY29udGVudCA9XG4gICAgICB0eXBlb2YgY2hpbGRyZW4gPT09ICdmdW5jdGlvbidcbiAgICAgICAgPyBjaGlsZHJlbih7IGlzT3Blbiwgc2VhcmNoVGVybXMsIHRvZ2dsZUlzT3BlbiB9KVxuICAgICAgICA6IGNoaWxkcmVuXG5cbiAgICBjb25zdCByZXNpemVTZWFyY2hCYXIgPSAoKSA9PiB7XG4gICAgICBpZiAocG9wdXBSZWYuY3VycmVudCkge1xuICAgICAgICBzZXRDb250YWluZXJXaWR0aChwb3B1cFJlZi5jdXJyZW50LmdldEJvdW5kaW5nQ2xpZW50UmVjdCgpLndpZHRoKVxuICAgICAgfVxuICAgIH1cblxuICAgIGNvbnN0IGhhbmRsZU5hdmlnYXRpb24gPSAoZXZlbnQ6IEtleWJvYXJkRXZlbnQpID0+IHtcbiAgICAgIGNvbnN0IGxpbmtzID0gWy4uLihwb3B1cFJlZi5jdXJyZW50Py5xdWVyeVNlbGVjdG9yQWxsKCdhJykgPz8gW10pXVxuXG4gICAgICBpZiAoXG4gICAgICAgIGxpbmtzLmxlbmd0aCA+IDAgJiZcbiAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50ID49IDAgJiZcbiAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50IDw9IGxpbmtzLmxlbmd0aFxuICAgICAgKSB7XG4gICAgICAgIGlmIChldmVudC5rZXkgPT09ICdBcnJvd1VwJykge1xuICAgICAgICAgIGlmIChmb2N1c2VkTGlua0luZGV4LmN1cnJlbnQgLSAxIDwgMCkge1xuICAgICAgICAgICAgZm9jdXNlZExpbmtJbmRleC5jdXJyZW50ID0gbGlua3MubGVuZ3RoIC0gMVxuICAgICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgICBmb2N1c2VkTGlua0luZGV4LmN1cnJlbnQgLT0gMVxuICAgICAgICAgIH1cbiAgICAgICAgICBsaW5rc1tmb2N1c2VkTGlua0luZGV4LmN1cnJlbnRdPy5mb2N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2V5LnRvVXBwZXJDYXNlKCldKVxuXG4gICAgICAgIGlmICh0eXBlb2Ygc2hvcnRjdXQgPT09ICdib29sZWFuJykge1xuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIChrZXkgPT09ICdrJyB8fCBrZXkgPT09ICdLJykgJiZcbiAgICAgICAgICAgICgoIWlzTWFjT1MgJiYgY3RybEtleSkgfHwgKGlzTWFjT1MgJiYgbWV0YUtleSkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgICBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKClcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY29uc3QgdXBwZXJjYXNlU2hvcnRjdXQgPSBzaG9ydGN1dC5tYXAocyA9PiBzLnRvVXBwZXJDYXNlKCkpXG5cbiAgICAgICAgICBpZiAoXG4gICAgICAgICAgICBKU09OLnN0cmluZ2lmeShbLi4ua2V5UHJlc3NlZCwga2V5LnRvVXBwZXJDYXNlKCldKSA9PT1cbiAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHVwcGVyY2FzZVNob3J0Y3V0KVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgICAgaW5uZXJTZWFyY2hJbnB1dFJlZi5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgW2tleVByZXNzZWQsIHNob3J0Y3V0LCBpc01hY09TXSxcbiAgICApXG5cbiAgICBjb25zdCBoYW5kbGVLZXlSZWxlYXNlZCA9IHVzZUNhbGxiYWNrKFxuICAgICAgKGV2ZW50OiBLZXlib2FyZEV2ZW50KSA9PiB7XG4gICAgICAgIGlmICghKGV2ZW50IGluc3RhbmNlb2YgS2V5Ym9hcmRFdmVudCkpIHtcbiAgICAgICAgICByZXR1c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XG4gICAgICAgICAgcmV0dXJuICfijJgnXG4gICAgICAgIH1cblxuICAgICAgICBpZiAoa2V5ID09PSAnQ29udHJvbCcpIHtcbiAgICAgICAgICByZXR1cm4gJ0N0cmwnXG4gICAgICAgIH1cblxuICAgICAgICByZXR1cm4ga2V5XG4gICAgICB9KVxuXG4gICAgICByZXR1cm4gZmlsdGVyZWRLZXlcbiAgICB9LCBbaXNNYWNPUywgc2hvcnRjdXRdKVxuXG4gICAgcmV0dXJuIChcbiAgICAgIDxkaXYgc3R5bGU9e3sgd2lkdGg6ICcxMDAlJyB9fT5cbiAgICAgICAgPFN0eWxlZFBvcHVwXG4gICAgICAgICAgZGF0YS10ZXN0aWQ9e2Bwb3B1cC0ke2RhdGFUZXN0SWR9YH1cbiAgICAgICAgICBkZWJvdW5jZURlbGF5PXswfVxuICAgICAgICAgIGhhc0Fycm93PXtmYWxzZX1cbiAgICAgICAgICBoaWRlT25DbGlja091dHNpZGVcbiAgICAgICAgICBpbm5lclJlZj17cG9wdXBSZWZ9XG4gICAgICAgICAgbWF4SGVpZ2h0PXs0MTB9XG4gICAgICAgICAgbWF4V2lkdGg9e2NvbnRhaW5lcldpZHRofVxuICAgICAgICAgIG9uQ2xvc2U9e29uQ2xvc2VDYWxsYmFja31cbiAgICAgICAgICBwbGFjZW1lbnQ9e3BvcHVwUGxhY2VtZW50fVxuICAgICAgICAgIHJvbGU9XCJkaWFsb2dcIlxuICAgICAgICAgIHRleHQ9e2NvbnRlbnR9XG4gICAgICAgICAgdmlzaWJsZT17aXNPcGVufVxuICAgICAgICA+XG4gICAgICAgICAgPFN0eWxlZFRleHRJbnB1dFxuICAgICAgICAgICAgYXJpYS1hdG9taWM9e2FyaWFBdG9taWN9XG4gICAgICAgICAgICBhcmlhLWxhYmVsbGVkYnk9e2FyaWFMYWJlbGxlZGJ5fVxuICAgICAgICAgICAgYXJpYS1saXZlPXthcmlhTGl2ZX1cbiAgICAgICAgICAgIGF1dG9Db21wbGV0ZT17YXV0b0NvbXBsZXRlfVxuICAgICAgICAgICAgYXV0b0ZvY3VzPXthdXRvRm9jdXN9XG4gICAgICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgICAgIGNsZWFyYWJsZVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9XG4gICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICBlcnJvcj17ZXJyb3J9XG4gICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICBsYWJlbD17bGFiZWx9XG4gICAgICAgICAgICBsYWJlbERlc2NyaXB0aW9uPXtsYWJlbERlc2NyaXB0aW9ufVxuICAgICAgICAgICAgbG9hZGluZz17bG9hZGluZ31cbiAgICAgICAgICAgIG1heExlbmd0aD17bWF4TGVuZ3RofVxuICAgICAgICAgICAgbWluTGVuZ3RoPXttaW5MZW5ndGh9XG4gICAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgICAgb25CbHVyPXtvbkJsdXJ9XG4gICAgICAgICAgICBvbkNoYW5nZT17ZXZlbnQgPT4gb25TZWFyY2hDYWxsYmFjayhldmVudC50YXJnZXQudmFsdWUpfVxuICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICAgICAgICAgIG9uS2V5RG93bj17b25LZXlEb3dufVxuICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICAgICAgcHJlZml4PXtcbiAgICAgICAgICAgICAgPENsaWNrYWJsZVN0YWNrXG4gICAgICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2BzZWFyY2gtaWNvbiR7ZGF0YVRlc3RJZCA/IGAtJHtkYXRhVGVzdElkfWAgOiAnJ31gfVxuICAgICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGlubmVyU2VhcmNoSW5wdXRSZWYuY3VycmVudD8uZm9jdXMoKX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxTZWFyY2hJY29uIGRpc2FibGVkPXtkaXNhYmxlZH0gc2VudGltZW50PVwibmV1dHJhbFwiIC8+XG4gICAgICAgICAgICAgIDwvQ2xpY2thYmxlU3RhY2s+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICByZWY9e2lubmVyU2VhcmNoSW5wdXRSZWZ9XG4gICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICByb2xlPXtyb2xlfVxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHN1ZmZpeD17XG4gICAgICAgICAgICAgIHNob3J0Y3V0ICYmIHNlYXJjaFRlcm1zLmxlbmd0aCA9PT0gMCA/IChcbiAgICAgICAgICAgICAgICA8S2V5R3JvdXBcbiAgICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICAgIGtleXM9e2tleXN9XG4gICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKCl9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgKSA6IHVuZGVmaW5lZFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdG9vbHRpcD17dG9vbHRpcH1cbiAgICAgICAgICAgIHZhbHVlPXtzZWFyY2hUZXJtc31cbiAgICAgICAgICAvPlxuICAgICAgICA8L1N0eWxlZFBvcHVwPlxuICAgICAgPC9kaXY+XG4gICAgKVxuICB9LFxuKVxuIl19 */"));
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
styles: "cursor:text/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2Vz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LZXksIGtleSB9ID0gZXZlbnRcbiAgICAgICAgc2V0S2V5UHJlc3NlZChbLi4ua2V5UHJlc3NlZCwga2V5LnRvVXBwZXJDYXNlKCldKVxuXG4gICAgICAgIGlmICh0eXBlb2Ygc2hvcnRjdXQgPT09ICdib29sZWFuJykge1xuICAgICAgICAgIGlmIChcbiAgICAgICAgICAgIChrZXkgPT09ICdrJyB8fCBrZXkgPT09ICdLJykgJiZcbiAgICAgICAgICAgICgoIWlzTWFjT1MgJiYgY3RybEtleSkgfHwgKGlzTWFjT1MgJiYgbWV0YUtleSkpXG4gICAgICAgICAgKSB7XG4gICAgICAgICAgICBldmVudC5wcmV2ZW50RGVmYXVsdCgpXG4gICAgICAgICAgICBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKClcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgY29uc3QgdXBwZXJjYXNlU2hvcnRjdXQgPSBzaG9ydGN1dC5tYXAocyA9PiBzLnRvVXBwZXJDYXNlKCkpXG5cbiAgICAgICAgICBpZiAoXG4gICAgICAgICAgICBKU09OLnN0cmluZ2lmeShbLi4ua2V5UHJlc3NlZCwga2V5LnRvVXBwZXJDYXNlKCldKSA9PT1cbiAgICAgICAgICAgIEpTT04uc3RyaW5naWZ5KHVwcGVyY2FzZVNob3J0Y3V0KVxuICAgICAgICAgICkge1xuICAgICAgICAgICAgZXZlbnQucHJldmVudERlZmF1bHQoKVxuICAgICAgICAgICAgaW5uZXJTZWFyY2hJbnB1dFJlZi5jdXJyZW50Py5mb2N1cygpXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9LFxuICAgICAgW2tleVByZXNzZWQsIHNob3J0Y3V0LCBpc01hY09TXSxcbiAgICApXG5cbiAgICBjb25zdCBoYW5kbGVLZXlSZWxlYXNlZCA9IHVzZUNhbGxiYWNrKFxuICAgICAgKGV2ZW50OiBLZXlib2FyZEV2ZW50KSA9PiB7XG4gICAgIC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gICAgICAgYXJpYS1saXZlPXthcmlhTGl2ZX1cbiAgICAgICAgICAgIGF1dG9Db21wbGV0ZT17YXV0b0NvbXBsZXRlfVxuICAgICAgICAgICAgYXV0b0ZvY3VzPXthdXRvRm9jdXN9XG4gICAgICAgICAgICBjbGFzc05hbWU9e2NsYXNzTmFtZX1cbiAgICAgICAgICAgIGNsZWFyYWJsZVxuICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2RhdGFUZXN0SWR9XG4gICAgICAgICAgICBkaXNhYmxlZD17ZGlzYWJsZWR9XG4gICAgICAgICAgICBlcnJvcj17ZXJyb3J9XG4gICAgICAgICAgICBpZD17aWR9XG4gICAgICAgICAgICBsYWJlbD17bGFiZWx9XG4gICAgICAgICAgICBsYWJlbERlc2NyaXB0aW9uPXtsYWJlbERlc2NyaXB0aW9ufVxuICAgICAgICAgICAgbG9hZGluZz17bG9hZGluZ31cbiAgICAgICAgICAgIG1heExlbmd0aD17bWF4TGVuZ3RofVxuICAgICAgICAgICAgbWluTGVuZ3RoPXttaW5MZW5ndGh9XG4gICAgICAgICAgICBuYW1lPXtuYW1lfVxuICAgICAgICAgICAgb25CbHVyPXtvbkJsdXJ9XG4gICAgICAgICAgICBvbkNoYW5nZT17ZXZlbnQgPT4gb25TZWFyY2hDYWxsYmFjayhldmVudC50YXJnZXQudmFsdWUpfVxuICAgICAgICAgICAgb25Gb2N1cz17b25Gb2N1c31cbiAgICAgICAgICAgIG9uS2V5RG93bj17b25LZXlEb3dufVxuICAgICAgICAgICAgcGxhY2Vob2xkZXI9e3BsYWNlaG9sZGVyfVxuICAgICAgICAgICAgcHJlZml4PXtcbiAgICAgICAgICAgICAgPENsaWNrYWJsZVN0YWNrXG4gICAgICAgICAgICAgICAgZGF0YS10ZXN0aWQ9e2BzZWFyY2gtaWNvbiR7ZGF0YVRlc3RJZCA/IGAtJHtkYXRhVGVzdElkfWAgOiAnJ31gfVxuICAgICAgICAgICAgICAgIG9uQ2xpY2s9eygpID0+IGlubmVyU2VhcmNoSW5wdXRSZWYuY3VycmVudD8uZm9jdXMoKX1cbiAgICAgICAgICAgICAgPlxuICAgICAgICAgICAgICAgIDxTZWFyY2hJY29uIGRpc2FibGVkPXtkaXNhYmxlZH0gc2VudGltZW50PVwibmV1dHJhbFwiIC8+XG4gICAgICAgICAgICAgIDwvQ2xpY2thYmxlU3RhY2s+XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICByZWFkT25seT17cmVhZE9ubHl9XG4gICAgICAgICAgICByZWY9e2lubmVyU2VhcmNoSW5wdXRSZWZ9XG4gICAgICAgICAgICByZXF1aXJlZD17cmVxdWlyZWR9XG4gICAgICAgICAgICByb2xlPXtyb2xlfVxuICAgICAgICAgICAgc2l6ZT17c2l6ZX1cbiAgICAgICAgICAgIHN1ZmZpeD17XG4gICAgICAgICAgICAgIHNob3J0Y3V0ICYmIHNlYXJjaFRlcm1zLmxlbmd0aCA9PT0gMCA/IChcbiAgICAgICAgICAgICAgICA8S2V5R3JvdXBcbiAgICAgICAgICAgICAgICAgIGRpc2FibGVkPXtkaXNhYmxlZH1cbiAgICAgICAgICAgICAgICAgIGtleXM9e2tleXN9XG4gICAgICAgICAgICAgICAgICBvbkNsaWNrPXsoKSA9PiBpbm5lclNlYXJjaElucHV0UmVmLmN1cnJlbnQ/LmZvY3VzKCl9XG4gICAgICAgICAgICAgICAgLz5cbiAgICAgICAgICAgICAgKSA6IHVuZGVmaW5lZFxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgdG9vbHRpcD17dG9vbHRpcH1cbiAgICAgICAgICAgIHZhbHVlPXtzZWFyY2hUZXJtc31cbiAgICAgICAgICAvPlxuICAgICAgICA8L1N0eWxlZFBvcHVwPlxuICAgICAgPC9kaXY+XG4gICAgKVxuICB9LFxuKVxuIl19 */",
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
const [keyPressed, setKeyPressed] = useState([]);
|
|
86
|
-
const [isOpen, toggleIsOpen] = useReducer((state) => !state, false);
|
|
87
|
-
const innerSearchInputRef = useRef(null);
|
|
88
|
-
useImperativeHandle(ref, () => innerSearchInputRef.current);
|
|
89
|
-
const content = typeof children === "function" ? children({
|
|
90
|
-
isOpen,
|
|
91
|
-
searchTerms,
|
|
92
|
-
toggleIsOpen
|
|
93
|
-
}) : children;
|
|
94
|
-
const resizeSearchBar = () => {
|
|
95
|
-
if (popupRef.current) {
|
|
96
|
-
setContainerWidth(popupRef.current.getBoundingClientRect().width);
|
|
97
|
-
}
|
|
98
|
-
};
|
|
99
|
-
const handleNavigation = (event) => {
|
|
100
|
-
const links = [...popupRef.current?.querySelectorAll("a") ?? []];
|
|
101
|
-
if (links.length > 0 && focusedLinkIndex.current >= 0 && focusedLinkIndex.current <= links.length) {
|
|
102
|
-
if (event.key === "ArrowUp") {
|
|
103
|
-
if (focusedLinkIndex.current - 1 < 0) {
|
|
104
|
-
focusedLinkIndex.current = links.length - 1;
|
|
105
|
-
} else {
|
|
106
|
-
focusedLinkIndex.current -= 1;
|
|
10
|
+
import { searchInputPopup, searchInput, clickableStack } from "./styles.css.js";
|
|
11
|
+
const SearchInput = forwardRef(
|
|
12
|
+
({
|
|
13
|
+
placeholder,
|
|
14
|
+
label,
|
|
15
|
+
labelDescription,
|
|
16
|
+
loading,
|
|
17
|
+
size,
|
|
18
|
+
popupPlacement,
|
|
19
|
+
threshold = 0,
|
|
20
|
+
children,
|
|
21
|
+
onSearch,
|
|
22
|
+
onClose,
|
|
23
|
+
"data-testid": dataTestId,
|
|
24
|
+
shortcut = false,
|
|
25
|
+
error,
|
|
26
|
+
defaultValue = "",
|
|
27
|
+
disabled,
|
|
28
|
+
className,
|
|
29
|
+
minLength,
|
|
30
|
+
maxLength,
|
|
31
|
+
tooltip,
|
|
32
|
+
onFocus,
|
|
33
|
+
onBlur,
|
|
34
|
+
name,
|
|
35
|
+
id,
|
|
36
|
+
"aria-live": ariaLive,
|
|
37
|
+
"aria-atomic": ariaAtomic,
|
|
38
|
+
"aria-labelledby": ariaLabelledby,
|
|
39
|
+
readOnly,
|
|
40
|
+
required,
|
|
41
|
+
autoFocus,
|
|
42
|
+
autoComplete,
|
|
43
|
+
onKeyDown,
|
|
44
|
+
role,
|
|
45
|
+
value,
|
|
46
|
+
style
|
|
47
|
+
}, ref) => {
|
|
48
|
+
const focusedLinkIndex = useRef(0);
|
|
49
|
+
const popupRef = useRef(null);
|
|
50
|
+
const [containerWidth, setContainerWidth] = useState(0);
|
|
51
|
+
const [searchTerms, setSearchTerms] = useState(defaultValue);
|
|
52
|
+
const [isMacOS, setIsMacOS] = useState(false);
|
|
53
|
+
const [keyPressed, setKeyPressed] = useState([]);
|
|
54
|
+
const [isOpen, toggleIsOpen] = useReducer((state) => !state, false);
|
|
55
|
+
const innerSearchInputRef = useRef(null);
|
|
56
|
+
useImperativeHandle(
|
|
57
|
+
ref,
|
|
58
|
+
() => innerSearchInputRef.current
|
|
59
|
+
);
|
|
60
|
+
const content = typeof children === "function" ? children({ isOpen, searchTerms, toggleIsOpen }) : children;
|
|
61
|
+
const resizeSearchBar = () => {
|
|
62
|
+
if (popupRef.current) {
|
|
63
|
+
setContainerWidth(popupRef.current.getBoundingClientRect().width);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
const handleNavigation = (event) => {
|
|
67
|
+
const links = [...popupRef.current?.querySelectorAll("a") ?? []];
|
|
68
|
+
if (links.length > 0 && focusedLinkIndex.current >= 0 && focusedLinkIndex.current <= links.length) {
|
|
69
|
+
if (event.key === "ArrowUp") {
|
|
70
|
+
if (focusedLinkIndex.current - 1 < 0) {
|
|
71
|
+
focusedLinkIndex.current = links.length - 1;
|
|
72
|
+
} else {
|
|
73
|
+
focusedLinkIndex.current -= 1;
|
|
74
|
+
}
|
|
75
|
+
links[focusedLinkIndex.current]?.focus();
|
|
76
|
+
}
|
|
77
|
+
if (event.key === "ArrowDown") {
|
|
78
|
+
if (focusedLinkIndex.current + 1 >= links.length) {
|
|
79
|
+
focusedLinkIndex.current = 0;
|
|
80
|
+
} else {
|
|
81
|
+
focusedLinkIndex.current += 1;
|
|
82
|
+
}
|
|
83
|
+
links[focusedLinkIndex.current]?.focus();
|
|
107
84
|
}
|
|
108
|
-
links[focusedLinkIndex.current]?.focus();
|
|
109
85
|
}
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
86
|
+
};
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
document.addEventListener("keyup", handleNavigation);
|
|
89
|
+
return () => document.removeEventListener("keyup", handleNavigation);
|
|
90
|
+
}, []);
|
|
91
|
+
useEffect(() => {
|
|
92
|
+
resizeSearchBar();
|
|
93
|
+
window.addEventListener("resize", resizeSearchBar);
|
|
94
|
+
return () => window.removeEventListener("resize", resizeSearchBar);
|
|
95
|
+
}, []);
|
|
96
|
+
useEffect(() => {
|
|
97
|
+
if (value !== void 0) {
|
|
98
|
+
setSearchTerms(value);
|
|
99
|
+
}
|
|
100
|
+
}, [value]);
|
|
101
|
+
const onSearchCallback = (localValue) => {
|
|
102
|
+
setSearchTerms(localValue);
|
|
103
|
+
try {
|
|
104
|
+
onSearch(localValue);
|
|
105
|
+
if (localValue.length >= threshold && !isOpen) {
|
|
106
|
+
toggleIsOpen();
|
|
115
107
|
}
|
|
116
|
-
|
|
108
|
+
} catch {
|
|
109
|
+
toggleIsOpen();
|
|
117
110
|
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return () => document.removeEventListener("keyup", handleNavigation);
|
|
123
|
-
}, []);
|
|
124
|
-
useEffect(() => {
|
|
125
|
-
resizeSearchBar();
|
|
126
|
-
window.addEventListener("resize", resizeSearchBar);
|
|
127
|
-
return () => window.removeEventListener("resize", resizeSearchBar);
|
|
128
|
-
}, []);
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
if (value !== void 0) {
|
|
131
|
-
setSearchTerms(value);
|
|
132
|
-
}
|
|
133
|
-
}, [value]);
|
|
134
|
-
const onSearchCallback = (localValue) => {
|
|
135
|
-
setSearchTerms(localValue);
|
|
136
|
-
try {
|
|
137
|
-
onSearch(localValue);
|
|
138
|
-
if (localValue.length >= threshold && !isOpen) {
|
|
111
|
+
};
|
|
112
|
+
const onCloseCallback = () => {
|
|
113
|
+
onClose?.();
|
|
114
|
+
if (isOpen) {
|
|
139
115
|
toggleIsOpen();
|
|
140
116
|
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const onCloseCallback = () => {
|
|
146
|
-
onClose?.();
|
|
147
|
-
if (isOpen) {
|
|
148
|
-
toggleIsOpen();
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
useEffect(() => {
|
|
152
|
-
if (isClientSide) {
|
|
153
|
-
setIsMacOS(navigator.userAgent.includes("Mac"));
|
|
154
|
-
}
|
|
155
|
-
}, []);
|
|
156
|
-
const handleKeyPressed = useCallback((event) => {
|
|
157
|
-
if (!(event instanceof KeyboardEvent)) {
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
const {
|
|
161
|
-
ctrlKey,
|
|
162
|
-
metaKey,
|
|
163
|
-
key
|
|
164
|
-
} = event;
|
|
165
|
-
setKeyPressed([...keyPressed, key.toUpperCase()]);
|
|
166
|
-
if (typeof shortcut === "boolean") {
|
|
167
|
-
if ((key === "k" || key === "K") && (!isMacOS && ctrlKey || isMacOS && metaKey)) {
|
|
168
|
-
event.preventDefault();
|
|
169
|
-
innerSearchInputRef.current?.focus();
|
|
117
|
+
};
|
|
118
|
+
useEffect(() => {
|
|
119
|
+
if (isClientSide) {
|
|
120
|
+
setIsMacOS(navigator.userAgent.includes("Mac"));
|
|
170
121
|
}
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
event
|
|
175
|
-
|
|
122
|
+
}, []);
|
|
123
|
+
const handleKeyPressed = useCallback(
|
|
124
|
+
(event) => {
|
|
125
|
+
if (!(event instanceof KeyboardEvent)) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
const { ctrlKey, metaKey, key } = event;
|
|
129
|
+
setKeyPressed([...keyPressed, key.toUpperCase()]);
|
|
130
|
+
if (typeof shortcut === "boolean") {
|
|
131
|
+
if ((key === "k" || key === "K") && (!isMacOS && ctrlKey || isMacOS && metaKey)) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
innerSearchInputRef.current?.focus();
|
|
134
|
+
}
|
|
135
|
+
} else {
|
|
136
|
+
const uppercaseShortcut = shortcut.map((s) => s.toUpperCase());
|
|
137
|
+
if (JSON.stringify([...keyPressed, key.toUpperCase()]) === JSON.stringify(uppercaseShortcut)) {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
innerSearchInputRef.current?.focus();
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
[keyPressed, shortcut, isMacOS]
|
|
144
|
+
);
|
|
145
|
+
const handleKeyReleased = useCallback(
|
|
146
|
+
(event) => {
|
|
147
|
+
if (!(event instanceof KeyboardEvent)) {
|
|
148
|
+
return;
|
|
149
|
+
}
|
|
150
|
+
const { key } = event;
|
|
151
|
+
setKeyPressed(keyPressed.filter((k) => k !== key.toUpperCase()));
|
|
152
|
+
},
|
|
153
|
+
[keyPressed]
|
|
154
|
+
);
|
|
155
|
+
useEffect(() => {
|
|
156
|
+
if (shortcut && !disabled) {
|
|
157
|
+
document.body.addEventListener("keydown", handleKeyPressed);
|
|
158
|
+
document.body.addEventListener("keyup", handleKeyReleased);
|
|
176
159
|
}
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
} = event;
|
|
186
|
-
setKeyPressed(keyPressed.filter((k) => k !== key.toUpperCase()));
|
|
187
|
-
}, [keyPressed]);
|
|
188
|
-
useEffect(() => {
|
|
189
|
-
if (shortcut && !disabled) {
|
|
190
|
-
document.body.addEventListener("keydown", handleKeyPressed);
|
|
191
|
-
document.body.addEventListener("keyup", handleKeyReleased);
|
|
192
|
-
}
|
|
193
|
-
return () => {
|
|
194
|
-
document.body.removeEventListener("keydown", handleKeyPressed);
|
|
195
|
-
document.body.removeEventListener("keyup", handleKeyReleased);
|
|
196
|
-
};
|
|
197
|
-
}, [shortcut, disabled, handleKeyPressed, handleKeyReleased]);
|
|
198
|
-
const keys = useMemo(() => {
|
|
199
|
-
if (typeof shortcut === "boolean") {
|
|
200
|
-
return [isMacOS ? "⌘" : "Ctrl", "K"];
|
|
201
|
-
}
|
|
202
|
-
const filteredKey = shortcut.map((key) => {
|
|
203
|
-
if (key === "Meta") {
|
|
204
|
-
return "⌘";
|
|
160
|
+
return () => {
|
|
161
|
+
document.body.removeEventListener("keydown", handleKeyPressed);
|
|
162
|
+
document.body.removeEventListener("keyup", handleKeyReleased);
|
|
163
|
+
};
|
|
164
|
+
}, [shortcut, disabled, handleKeyPressed, handleKeyReleased]);
|
|
165
|
+
const keys = useMemo(() => {
|
|
166
|
+
if (typeof shortcut === "boolean") {
|
|
167
|
+
return [isMacOS ? "⌘" : "Ctrl", "K"];
|
|
205
168
|
}
|
|
206
|
-
|
|
207
|
-
|
|
169
|
+
const filteredKey = shortcut.map((key) => {
|
|
170
|
+
if (key === "Meta") {
|
|
171
|
+
return "⌘";
|
|
172
|
+
}
|
|
173
|
+
if (key === "Control") {
|
|
174
|
+
return "Ctrl";
|
|
175
|
+
}
|
|
176
|
+
return key;
|
|
177
|
+
});
|
|
178
|
+
return filteredKey;
|
|
179
|
+
}, [isMacOS, shortcut]);
|
|
180
|
+
return /* @__PURE__ */ jsx("div", { style: { width: "100%" }, children: /* @__PURE__ */ jsx(
|
|
181
|
+
Popup,
|
|
182
|
+
{
|
|
183
|
+
className: searchInputPopup,
|
|
184
|
+
"data-testid": `popup-${dataTestId}`,
|
|
185
|
+
debounceDelay: 0,
|
|
186
|
+
hasArrow: false,
|
|
187
|
+
hideOnClickOutside: true,
|
|
188
|
+
innerRef: popupRef,
|
|
189
|
+
maxHeight: 410,
|
|
190
|
+
maxWidth: containerWidth,
|
|
191
|
+
onClose: onCloseCallback,
|
|
192
|
+
placement: popupPlacement,
|
|
193
|
+
role: "dialog",
|
|
194
|
+
text: content,
|
|
195
|
+
visible: isOpen,
|
|
196
|
+
children: /* @__PURE__ */ jsx(
|
|
197
|
+
TextInput,
|
|
198
|
+
{
|
|
199
|
+
"aria-atomic": ariaAtomic,
|
|
200
|
+
"aria-labelledby": ariaLabelledby,
|
|
201
|
+
"aria-live": ariaLive,
|
|
202
|
+
autoComplete,
|
|
203
|
+
autoFocus,
|
|
204
|
+
className: `${className ? `${className} ` : ""}${searchInput}`,
|
|
205
|
+
clearable: true,
|
|
206
|
+
"data-testid": dataTestId,
|
|
207
|
+
disabled,
|
|
208
|
+
error,
|
|
209
|
+
id,
|
|
210
|
+
label,
|
|
211
|
+
labelDescription,
|
|
212
|
+
loading,
|
|
213
|
+
maxLength,
|
|
214
|
+
minLength,
|
|
215
|
+
name,
|
|
216
|
+
onBlur,
|
|
217
|
+
onChange: (event) => onSearchCallback(event.target.value),
|
|
218
|
+
onFocus,
|
|
219
|
+
onKeyDown,
|
|
220
|
+
placeholder,
|
|
221
|
+
prefix: /* @__PURE__ */ jsx(
|
|
222
|
+
Stack,
|
|
223
|
+
{
|
|
224
|
+
className: clickableStack,
|
|
225
|
+
"data-testid": `search-icon${dataTestId ? `-${dataTestId}` : ""}`,
|
|
226
|
+
onClick: () => innerSearchInputRef.current?.focus(),
|
|
227
|
+
children: /* @__PURE__ */ jsx(SearchIcon, { disabled, sentiment: "neutral" })
|
|
228
|
+
}
|
|
229
|
+
),
|
|
230
|
+
readOnly,
|
|
231
|
+
ref: innerSearchInputRef,
|
|
232
|
+
required,
|
|
233
|
+
role,
|
|
234
|
+
size,
|
|
235
|
+
style,
|
|
236
|
+
suffix: shortcut && searchTerms.length === 0 ? /* @__PURE__ */ jsx(
|
|
237
|
+
KeyGroup,
|
|
238
|
+
{
|
|
239
|
+
disabled,
|
|
240
|
+
keys,
|
|
241
|
+
onClick: () => innerSearchInputRef.current?.focus()
|
|
242
|
+
}
|
|
243
|
+
) : void 0,
|
|
244
|
+
tooltip,
|
|
245
|
+
value: searchTerms
|
|
246
|
+
}
|
|
247
|
+
)
|
|
208
248
|
}
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
}, [isMacOS, shortcut]);
|
|
213
|
-
return /* @__PURE__ */ jsx("div", { style: {
|
|
214
|
-
width: "100%"
|
|
215
|
-
}, children: /* @__PURE__ */ jsx(StyledPopup, { "data-testid": `popup-${dataTestId}`, debounceDelay: 0, hasArrow: false, hideOnClickOutside: true, innerRef: popupRef, maxHeight: 410, maxWidth: containerWidth, onClose: onCloseCallback, placement: popupPlacement, role: "dialog", text: content, visible: isOpen, children: /* @__PURE__ */ jsx(StyledTextInput, { "aria-atomic": ariaAtomic, "aria-labelledby": ariaLabelledby, "aria-live": ariaLive, autoComplete, autoFocus, className, clearable: true, "data-testid": dataTestId, disabled, error, id, label, labelDescription, loading, maxLength, minLength, name, onBlur, onChange: (event) => onSearchCallback(event.target.value), onFocus, onKeyDown, placeholder, prefix: /* @__PURE__ */ jsx(ClickableStack, { "data-testid": `search-icon${dataTestId ? `-${dataTestId}` : ""}`, onClick: () => innerSearchInputRef.current?.focus(), children: /* @__PURE__ */ jsx(SearchIcon, { disabled, sentiment: "neutral" }) }), readOnly, ref: innerSearchInputRef, required, role, size, suffix: shortcut && searchTerms.length === 0 ? /* @__PURE__ */ jsx(KeyGroup, { disabled, keys, onClick: () => innerSearchInputRef.current?.focus() }) : void 0, tooltip, value: searchTerms }) }) });
|
|
216
|
-
});
|
|
249
|
+
) });
|
|
250
|
+
}
|
|
251
|
+
);
|
|
217
252
|
export {
|
|
218
253
|
SearchInput
|
|
219
254
|
};
|
|
@@ -39,5 +39,5 @@ type SelectInputProviderProps<IsMulti extends boolean> = {
|
|
|
39
39
|
onChange?: IsMulti extends true ? (value: string[]) => void : (value: string) => void;
|
|
40
40
|
onOpen?: () => void;
|
|
41
41
|
};
|
|
42
|
-
export declare const SelectInputProvider: <T extends boolean>({ options, multiselect, selectAll, value, selectAllGroup, numberOfOptions, children, onChange, refSelect, onOpen, }: SelectInputProviderProps<T>) => import("
|
|
42
|
+
export declare const SelectInputProvider: <T extends boolean>({ options, multiselect, selectAll, value, selectAllGroup, numberOfOptions, children, onChange, refSelect, onOpen, }: SelectInputProviderProps<T>) => import("react/jsx-runtime").JSX.Element;
|
|
43
43
|
export {};
|