@bspk/ui 1.1.34 → 1.3.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/.scripts/index.ts +110 -0
- package/README.md +13 -0
- package/build.ts +76 -28
- package/dist/components/Accordion/Accordion.d.ts +71 -0
- package/dist/components/Accordion/Accordion.js +46 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/AccordionExample.d.ts +4 -0
- package/dist/components/Accordion/AccordionExample.js +85 -0
- package/dist/components/Accordion/AccordionExample.js.map +1 -0
- package/dist/components/Accordion/accordion.css +77 -0
- package/dist/components/Accordion/accordion.css.js +82 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.js +2 -0
- package/dist/components/Accordion/index.js.map +1 -0
- package/dist/components/Avatar/Avatar.d.ts +23 -15
- package/dist/components/Avatar/Avatar.js +9 -16
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/AvatarExample.d.ts +2 -1
- package/dist/components/Avatar/AvatarExample.js +43 -33
- package/dist/components/Avatar/AvatarExample.js.map +1 -1
- package/dist/components/Avatar/avatar.css +27 -1
- package/dist/components/Avatar/avatar.css.js +27 -2
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +10 -12
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -7
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroupExample.d.ts +4 -0
- package/dist/components/AvatarGroup/AvatarGroupExample.js +37 -0
- package/dist/components/AvatarGroup/AvatarGroupExample.js.map +1 -0
- package/dist/components/AvatarGroup/avatar-group.css +12 -1
- package/dist/components/AvatarGroup/avatar-group.css.js +12 -2
- package/dist/components/Badge/Badge.d.ts +7 -13
- package/dist/components/Badge/Badge.js +9 -11
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/BadgeExample.d.ts +1 -1
- package/dist/components/Badge/BadgeExample.js +7 -38
- package/dist/components/Badge/BadgeExample.js.map +1 -1
- package/dist/components/Badge/badge.css +15 -24
- package/dist/components/Badge/badge.css.js +15 -25
- package/dist/components/BadgeDot/BadgeDot.d.ts +47 -0
- package/dist/components/BadgeDot/BadgeDot.js +35 -0
- package/dist/components/BadgeDot/BadgeDot.js.map +1 -0
- package/dist/components/BadgeDot/BadgeDotExample.d.ts +3 -0
- package/dist/components/BadgeDot/BadgeDotExample.js +16 -0
- package/dist/components/BadgeDot/BadgeDotExample.js.map +1 -0
- package/dist/components/BadgeDot/badge-dot.css +22 -0
- package/dist/components/BadgeDot/badge-dot.css.js +27 -0
- package/dist/components/BadgeDot/index.d.ts +1 -0
- package/dist/components/BadgeDot/index.js +2 -0
- package/dist/components/BadgeDot/index.js.map +1 -0
- package/dist/components/BannerAlert/BannerAlert.d.ts +7 -7
- package/dist/components/BannerAlert/BannerAlert.js +9 -6
- package/dist/components/BannerAlert/BannerAlert.js.map +1 -1
- package/dist/components/BannerAlert/BannerAlertExample.d.ts +1 -1
- package/dist/components/BannerAlert/BannerAlertExample.js +10 -6
- package/dist/components/BannerAlert/BannerAlertExample.js.map +1 -1
- package/dist/components/BannerAlert/banner-alert.css +0 -26
- package/dist/components/BannerAlert/banner-alert.css.js +0 -27
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +53 -0
- package/dist/components/BottomNavigation/BottomNavigation.js +42 -0
- package/dist/components/BottomNavigation/BottomNavigation.js.map +1 -0
- package/dist/components/BottomNavigation/BottomNavigationExample.d.ts +4 -0
- package/dist/components/BottomNavigation/BottomNavigationExample.js +119 -0
- package/dist/components/BottomNavigation/BottomNavigationExample.js.map +1 -0
- package/dist/components/BottomNavigation/bottom-navigation.css +68 -0
- package/dist/components/BottomNavigation/bottom-navigation.css.js +73 -0
- package/dist/components/BottomNavigation/index.d.ts +1 -0
- package/dist/components/BottomNavigation/index.js +2 -0
- package/dist/components/BottomNavigation/index.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +7 -10
- package/dist/components/Breadcrumb/Breadcrumb.js +9 -20
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbExample.d.ts +2 -1
- package/dist/components/Breadcrumb/BreadcrumbExample.js +151 -83
- package/dist/components/Breadcrumb/BreadcrumbExample.js.map +1 -1
- package/dist/components/Breadcrumb/breadcrumb.css.js +0 -1
- package/dist/components/Button/Button.d.ts +11 -12
- package/dist/components/Button/Button.js +23 -20
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/ButtonExample.d.ts +2 -1
- package/dist/components/Button/ButtonExample.js +30 -22
- package/dist/components/Button/ButtonExample.js.map +1 -1
- package/dist/components/Button/button.css +1 -1
- package/dist/components/Button/button.css.js +1 -2
- package/dist/components/ButtonDock/ButtonDock.d.ts +55 -0
- package/dist/components/ButtonDock/ButtonDock.js +33 -0
- package/dist/components/ButtonDock/ButtonDock.js.map +1 -0
- package/dist/components/ButtonDock/ButtonDockExample.d.ts +4 -0
- package/dist/components/ButtonDock/ButtonDockExample.js +75 -0
- package/dist/components/ButtonDock/ButtonDockExample.js.map +1 -0
- package/dist/components/ButtonDock/button-dock.css +42 -0
- package/dist/components/ButtonDock/button-dock.css.js +47 -0
- package/dist/components/ButtonDock/index.d.ts +1 -0
- package/dist/components/ButtonDock/index.js +2 -0
- package/dist/components/ButtonDock/index.js.map +1 -0
- package/dist/components/CalendarPicker/CalendarPicker.d.ts +32 -0
- package/dist/components/CalendarPicker/CalendarPicker.js +203 -0
- package/dist/components/CalendarPicker/CalendarPicker.js.map +1 -0
- package/dist/components/CalendarPicker/CalendarPickerExample.d.ts +3 -0
- package/dist/components/CalendarPicker/CalendarPickerExample.js +17 -0
- package/dist/components/CalendarPicker/CalendarPickerExample.js.map +1 -0
- package/dist/components/CalendarPicker/calendar-picker.css +70 -0
- package/dist/components/CalendarPicker/calendar-picker.css.js +75 -0
- package/dist/components/CalendarPicker/index.d.ts +1 -0
- package/dist/components/CalendarPicker/index.js +2 -0
- package/dist/components/CalendarPicker/index.js.map +1 -0
- package/dist/components/Card/Card.d.ts +4 -14
- package/dist/components/Card/Card.js +3 -5
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/CardExample.d.ts +1 -1
- package/dist/components/Card/CardExample.js +1 -0
- package/dist/components/Card/CardExample.js.map +1 -1
- package/dist/components/Card/card.css +0 -4
- package/dist/components/Card/card.css.js +0 -5
- package/dist/components/Carousel/Carousel.d.ts +63 -0
- package/dist/components/Carousel/Carousel.js +68 -0
- package/dist/components/Carousel/Carousel.js.map +1 -0
- package/dist/components/Carousel/CarouselExample.d.ts +5 -0
- package/dist/components/Carousel/CarouselExample.js +51 -0
- package/dist/components/Carousel/CarouselExample.js.map +1 -0
- package/dist/components/Carousel/carousel.css +34 -0
- package/dist/components/Carousel/carousel.css.js +39 -0
- package/dist/components/Carousel/index.d.ts +1 -0
- package/dist/components/Carousel/index.js +2 -0
- package/dist/components/Carousel/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +7 -9
- package/dist/components/Checkbox/Checkbox.js +5 -7
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/checkbox.css +8 -14
- package/dist/components/Checkbox/checkbox.css.js +8 -15
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +6 -10
- package/dist/components/CheckboxGroup/CheckboxGroup.js +3 -5
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroupExample.d.ts +2 -1
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js +50 -21
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js.map +1 -1
- package/dist/components/CheckboxOption/CheckboxOption.d.ts +5 -17
- package/dist/components/CheckboxOption/CheckboxOption.js +4 -5
- package/dist/components/CheckboxOption/CheckboxOption.js.map +1 -1
- package/dist/components/ChipAssist/ChipAssist.d.ts +3 -7
- package/dist/components/ChipAssist/ChipAssist.js +3 -5
- package/dist/components/ChipAssist/ChipAssist.js.map +1 -1
- package/dist/components/ChipAssist/ChipAssistExample.d.ts +2 -1
- package/dist/components/ChipAssist/ChipAssistExample.js +24 -23
- package/dist/components/ChipAssist/ChipAssistExample.js.map +1 -1
- package/dist/components/ChipFilter/ChipFilter.d.ts +3 -7
- package/dist/components/ChipFilter/ChipFilter.js +3 -5
- package/dist/components/ChipFilter/ChipFilter.js.map +1 -1
- package/dist/components/ChipFilter/ChipFilterExample.d.ts +2 -2
- package/dist/components/ChipFilter/ChipFilterExample.js +3 -0
- package/dist/components/ChipFilter/ChipFilterExample.js.map +1 -1
- package/dist/components/ChipGroup/ChipGroup.d.ts +4 -8
- package/dist/components/ChipGroup/ChipGroup.js +3 -5
- package/dist/components/ChipGroup/ChipGroup.js.map +1 -1
- package/dist/components/ChipGroup/ChipGroupExample.d.ts +3 -2
- package/dist/components/ChipGroup/ChipGroupExample.js +10 -9
- package/dist/components/ChipGroup/ChipGroupExample.js.map +1 -1
- package/dist/components/ChipGroup/chip-group.css.js +0 -1
- package/dist/components/ChipInput/ChipInput.d.ts +3 -7
- package/dist/components/ChipInput/ChipInput.js +3 -5
- package/dist/components/ChipInput/ChipInput.js.map +1 -1
- package/dist/components/ChipInput/ChipInputExample.d.ts +2 -1
- package/dist/components/ChipInput/ChipInputExample.js +39 -38
- package/dist/components/ChipInput/ChipInputExample.js.map +1 -1
- package/dist/components/ChipSuggestion/ChipSuggestion.d.ts +3 -7
- package/dist/components/ChipSuggestion/ChipSuggestion.js +3 -5
- package/dist/components/ChipSuggestion/ChipSuggestion.js.map +1 -1
- package/dist/components/ChipSuggestion/ChipSuggestionExample.d.ts +2 -1
- package/dist/components/ChipSuggestion/ChipSuggestionExample.js +16 -15
- package/dist/components/ChipSuggestion/ChipSuggestionExample.js.map +1 -1
- package/dist/components/ChipUtility/ChipUtility.d.ts +5 -9
- package/dist/components/ChipUtility/ChipUtility.js +3 -6
- package/dist/components/ChipUtility/ChipUtility.js.map +1 -1
- package/dist/components/ChipUtility/ChipUtilityExample.d.ts +2 -1
- package/dist/components/ChipUtility/ChipUtilityExample.js +54 -51
- package/dist/components/ChipUtility/ChipUtilityExample.js.map +1 -1
- package/dist/components/ChipUtility/chip-utility.css +10 -10
- package/dist/components/ChipUtility/chip-utility.css.js +10 -11
- package/dist/components/DateField/DateField.d.ts +32 -0
- package/dist/components/DateField/DateField.js +34 -0
- package/dist/components/DateField/DateField.js.map +1 -0
- package/dist/components/DateField/DateFieldExample.d.ts +4 -0
- package/dist/components/DateField/DateFieldExample.js +11 -0
- package/dist/components/DateField/DateFieldExample.js.map +1 -0
- package/dist/components/DateField/date-field.css +8 -0
- package/dist/components/DateField/date-field.css.js +13 -0
- package/dist/components/DateField/index.d.ts +1 -0
- package/dist/components/DateField/index.js +2 -0
- package/dist/components/DateField/index.js.map +1 -0
- package/dist/components/DateInput/DateInput.d.ts +39 -0
- package/dist/components/DateInput/DateInput.js +102 -0
- package/dist/components/DateInput/DateInput.js.map +1 -0
- package/dist/components/DateInput/DateInputExample.d.ts +4 -0
- package/dist/components/DateInput/DateInputExample.js +14 -0
- package/dist/components/DateInput/DateInputExample.js.map +1 -0
- package/dist/components/DateInput/date-input.css +12 -0
- package/dist/components/DateInput/date-input.css.js +17 -0
- package/dist/components/DateInput/index.d.ts +1 -0
- package/dist/components/DateInput/index.js +2 -0
- package/dist/components/DateInput/index.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +18 -11
- package/dist/components/Dialog/Dialog.js +13 -48
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/DialogExample.d.ts +2 -1
- package/dist/components/Dialog/DialogExample.js +5 -4
- package/dist/components/Dialog/DialogExample.js.map +1 -1
- package/dist/components/Dialog/dialog.css +35 -53
- package/dist/components/Dialog/dialog.css.js +35 -54
- package/dist/components/Divider/Divider.d.ts +3 -7
- package/dist/components/Divider/Divider.js +4 -6
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/Divider/DividerExample.d.ts +4 -2
- package/dist/components/Divider/DividerExample.js +2 -0
- package/dist/components/Divider/DividerExample.js.map +1 -1
- package/dist/components/Divider/divider.css +4 -8
- package/dist/components/Divider/divider.css.js +4 -9
- package/dist/components/Drawer/Drawer.d.ts +75 -0
- package/dist/components/Drawer/Drawer.js +49 -0
- package/dist/components/Drawer/Drawer.js.map +1 -0
- package/dist/components/Drawer/DrawerExample.d.ts +4 -0
- package/dist/components/Drawer/DrawerExample.js +47 -0
- package/dist/components/Drawer/DrawerExample.js.map +1 -0
- package/dist/components/Drawer/drawer.css +56 -0
- package/dist/components/Drawer/drawer.css.js +61 -0
- package/dist/components/Drawer/index.d.ts +1 -0
- package/dist/components/Drawer/index.js +2 -0
- package/dist/components/Drawer/index.js.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +3 -7
- package/dist/components/EmptyState/EmptyState.js +2 -4
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/EmptyState/EmptyStateExample.d.ts +2 -1
- package/dist/components/EmptyState/EmptyStateExample.js +20 -8
- package/dist/components/EmptyState/EmptyStateExample.js.map +1 -1
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.d.ts +30 -11
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js +2 -4
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js.map +1 -1
- package/dist/components/Fab/Fab.d.ts +6 -10
- package/dist/components/Fab/Fab.js +23 -14
- package/dist/components/Fab/Fab.js.map +1 -1
- package/dist/components/Fab/FabExample.d.ts +2 -1
- package/dist/components/Fab/FabExample.js +4 -2
- package/dist/components/Fab/FabExample.js.map +1 -1
- package/dist/components/Fab/fab.css +1 -1
- package/dist/components/Fab/fab.css.js +1 -2
- package/dist/components/FileUpload/FileUpload.d.ts +87 -0
- package/dist/components/FileUpload/FileUpload.js +140 -0
- package/dist/components/FileUpload/FileUpload.js.map +1 -0
- package/dist/components/FileUpload/FileUploadExample.d.ts +4 -0
- package/dist/components/FileUpload/FileUploadExample.js +67 -0
- package/dist/components/FileUpload/FileUploadExample.js.map +1 -0
- package/dist/components/FileUpload/file-upload.css +20 -0
- package/dist/components/FileUpload/file-upload.css.js +25 -0
- package/dist/components/FileUpload/index.d.ts +1 -0
- package/dist/components/FileUpload/index.js +2 -0
- package/dist/components/FileUpload/index.js.map +1 -0
- package/dist/components/FileUploadItem/FileUploadItem.d.ts +40 -0
- package/dist/components/FileUploadItem/FileUploadItem.js +60 -0
- package/dist/components/FileUploadItem/FileUploadItem.js.map +1 -0
- package/dist/components/FileUploadItem/FileUploadItemExample.d.ts +4 -0
- package/dist/components/FileUploadItem/FileUploadItemExample.js +72 -0
- package/dist/components/FileUploadItem/FileUploadItemExample.js.map +1 -0
- package/dist/components/FileUploadItem/file-upload-item.css +40 -0
- package/dist/components/FileUploadItem/file-upload-item.css.js +45 -0
- package/dist/components/FileUploadItem/index.d.ts +1 -0
- package/dist/components/FileUploadItem/index.js +2 -0
- package/dist/components/FileUploadItem/index.js.map +1 -0
- package/dist/components/FormField/FormField.d.ts +11 -25
- package/dist/components/FormField/FormField.js +6 -9
- package/dist/components/FormField/FormField.js.map +1 -1
- package/dist/components/FormField/FormFieldExample.d.ts +4 -0
- package/dist/components/FormField/FormFieldExample.js +12 -0
- package/dist/components/FormField/FormFieldExample.js.map +1 -0
- package/dist/components/FormField/form-field.css +3 -3
- package/dist/components/FormField/form-field.css.js +3 -4
- package/dist/components/Img/Img.d.ts +2 -6
- package/dist/components/Img/Img.js +1 -3
- package/dist/components/Img/Img.js.map +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts +3 -7
- package/dist/components/InlineAlert/InlineAlert.js +5 -8
- package/dist/components/InlineAlert/InlineAlert.js.map +1 -1
- package/dist/components/InlineAlert/SvgWarningTwoTone.d.ts +1 -0
- package/dist/components/InlineAlert/SvgWarningTwoTone.js +5 -0
- package/dist/components/InlineAlert/SvgWarningTwoTone.js.map +1 -0
- package/dist/components/InlineAlert/inline-alert.css +1 -0
- package/dist/components/InlineAlert/inline-alert.css.js +1 -1
- package/dist/components/Layout/Layout.d.ts +4 -8
- package/dist/components/Layout/Layout.js +1 -3
- package/dist/components/Layout/Layout.js.map +1 -1
- package/dist/components/Layout/LayoutExample.d.ts +4 -0
- package/dist/components/Layout/LayoutExample.js +9 -0
- package/dist/components/Layout/LayoutExample.js.map +1 -0
- package/dist/components/Link/Link.d.ts +4 -8
- package/dist/components/Link/Link.js +3 -5
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Link/LinkExample.d.ts +2 -1
- package/dist/components/Link/LinkExample.js +9 -7
- package/dist/components/Link/LinkExample.js.map +1 -1
- package/dist/components/Link/link.css +1 -1
- package/dist/components/Link/link.css.js +1 -2
- package/dist/components/ListItem/ListItem.d.ts +38 -24
- package/dist/components/ListItem/ListItem.js +28 -69
- package/dist/components/ListItem/ListItem.js.map +1 -1
- package/dist/components/ListItem/ListItemButton.d.ts +2 -0
- package/dist/components/ListItem/ListItemButton.js +7 -0
- package/dist/components/ListItem/ListItemButton.js.map +1 -0
- package/dist/components/ListItem/ListItemExample.d.ts +3 -3
- package/dist/components/ListItem/ListItemExample.js +33 -52
- package/dist/components/ListItem/ListItemExample.js.map +1 -1
- package/dist/components/ListItem/list-item.css +21 -32
- package/dist/components/ListItem/list-item.css.js +22 -34
- package/dist/components/ListItemMenu/ListItemMenu.d.ts +146 -0
- package/dist/components/ListItemMenu/ListItemMenu.js +159 -0
- package/dist/components/ListItemMenu/ListItemMenu.js.map +1 -0
- package/dist/components/ListItemMenu/index.d.ts +1 -0
- package/dist/components/ListItemMenu/index.js +2 -0
- package/dist/components/ListItemMenu/index.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts +14 -37
- package/dist/components/Menu/Menu.js +8 -35
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/MenuExample.d.ts +4 -4
- package/dist/components/Menu/MenuExample.js +3 -3
- package/dist/components/Menu/MenuExample.js.map +1 -1
- package/dist/components/Menu/menu.css +4 -8
- package/dist/components/Menu/menu.css.js +4 -9
- package/dist/components/MenuButton/MenuButton.d.ts +3 -7
- package/dist/components/MenuButton/MenuButton.js +2 -4
- package/dist/components/MenuButton/MenuButton.js.map +1 -1
- package/dist/components/MenuButton/menu-button.css.js +0 -1
- package/dist/components/Modal/Modal.d.ts +8 -12
- package/dist/components/Modal/Modal.js +5 -7
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/ModalExample.d.ts +1 -1
- package/dist/components/Modal/ModalExample.js +3 -3
- package/dist/components/Modal/ModalExample.js.map +1 -1
- package/dist/components/Modal/modal.css +6 -14
- package/dist/components/Modal/modal.css.js +6 -15
- package/dist/components/NumberField/NumberField.d.ts +5 -9
- package/dist/components/NumberField/NumberField.js +3 -6
- package/dist/components/NumberField/NumberField.js.map +1 -1
- package/dist/components/NumberInput/IncrementButton.d.ts +7 -0
- package/dist/components/NumberInput/IncrementButton.js +10 -0
- package/dist/components/NumberInput/IncrementButton.js.map +1 -0
- package/dist/components/NumberInput/NumberInput.d.ts +10 -13
- package/dist/components/NumberInput/NumberInput.js +23 -47
- package/dist/components/NumberInput/NumberInput.js.map +1 -1
- package/dist/components/NumberInput/NumberInputExample.d.ts +3 -0
- package/dist/components/NumberInput/NumberInputExample.js +5 -0
- package/dist/components/NumberInput/NumberInputExample.js.map +1 -0
- package/dist/components/NumberInput/number-input.css +8 -6
- package/dist/components/NumberInput/number-input.css.js +8 -7
- package/dist/components/OTPInput/OTPInput.d.ts +41 -0
- package/dist/components/OTPInput/OTPInput.js +57 -0
- package/dist/components/OTPInput/OTPInput.js.map +1 -0
- package/dist/components/OTPInput/OTPInputExample.d.ts +4 -0
- package/dist/components/OTPInput/OTPInputExample.js +28 -0
- package/dist/components/OTPInput/OTPInputExample.js.map +1 -0
- package/dist/components/OTPInput/index.d.ts +1 -0
- package/dist/components/OTPInput/index.js +2 -0
- package/dist/components/OTPInput/index.js.map +1 -0
- package/dist/components/OTPInput/otp-input.css +72 -0
- package/dist/components/OTPInput/otp-input.css.js +77 -0
- package/dist/components/PageControl/PageControl.d.ts +45 -0
- package/dist/components/PageControl/PageControl.js +47 -0
- package/dist/components/PageControl/PageControl.js.map +1 -0
- package/dist/components/PageControl/PageControlExample.d.ts +4 -0
- package/dist/components/PageControl/PageControlExample.js +34 -0
- package/dist/components/PageControl/PageControlExample.js.map +1 -0
- package/dist/components/PageControl/index.d.ts +1 -0
- package/dist/components/PageControl/index.js +2 -0
- package/dist/components/PageControl/index.js.map +1 -0
- package/dist/components/PageControl/page-control.css +33 -0
- package/dist/components/PageControl/page-control.css.js +38 -0
- package/dist/components/Pagination/PageInput.d.ts +5 -0
- package/dist/components/Pagination/PageInput.js +36 -0
- package/dist/components/Pagination/PageInput.js.map +1 -0
- package/dist/components/Pagination/PageList.d.ts +3 -0
- package/dist/components/Pagination/PageList.js +9 -0
- package/dist/components/Pagination/PageList.js.map +1 -0
- package/dist/components/Pagination/Pagination.d.ts +39 -0
- package/dist/components/Pagination/Pagination.js +45 -0
- package/dist/components/Pagination/Pagination.js.map +1 -0
- package/dist/components/Pagination/index.d.ts +1 -0
- package/dist/components/Pagination/index.js +2 -0
- package/dist/components/Pagination/index.js.map +1 -0
- package/dist/components/Pagination/pagination.css +31 -0
- package/dist/components/Pagination/pagination.css.js +36 -0
- package/dist/components/PasswordField/PasswordField.d.ts +31 -0
- package/dist/components/PasswordField/PasswordField.js +33 -0
- package/dist/components/PasswordField/PasswordField.js.map +1 -0
- package/dist/components/PasswordField/index.d.ts +1 -0
- package/dist/components/PasswordField/index.js +2 -0
- package/dist/components/PasswordField/index.js.map +1 -0
- package/dist/components/PasswordInput/PasswordInput.d.ts +21 -0
- package/dist/components/PasswordInput/PasswordInput.js +34 -0
- package/dist/components/PasswordInput/PasswordInput.js.map +1 -0
- package/dist/components/PasswordInput/index.d.ts +1 -0
- package/dist/components/PasswordInput/index.js +2 -0
- package/dist/components/PasswordInput/index.js.map +1 -0
- package/dist/components/PasswordInput/password-input.css +28 -0
- package/dist/components/PasswordInput/password-input.css.js +33 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +5 -9
- package/dist/components/PhoneNumberField/PhoneNumberField.js +3 -6
- package/dist/components/PhoneNumberField/PhoneNumberField.js.map +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +6 -10
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +50 -57
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/dist/components/PhoneNumberInput/PhoneNumberInputExample.d.ts +4 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInputExample.js +5 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInputExample.js.map +1 -0
- package/dist/components/PhoneNumberInput/phone-number-input.css +36 -26
- package/dist/components/PhoneNumberInput/phone-number-input.css.js +34 -25
- package/dist/components/Popover/Popover.d.ts +18 -13
- package/dist/components/Popover/Popover.js +41 -22
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Popover/PopoverExample.d.ts +1 -1
- package/dist/components/Popover/PopoverExample.js +25 -3
- package/dist/components/Popover/PopoverExample.js.map +1 -1
- package/dist/components/Popover/popover.css +20 -34
- package/dist/components/Popover/popover.css.js +20 -35
- package/dist/components/Portal/Portal.d.ts +1 -5
- package/dist/components/Portal/Portal.js +5 -5
- package/dist/components/Portal/Portal.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +16 -6
- package/dist/components/ProgressBar/ProgressBar.js +8 -7
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressBar/progress-bar.css +3 -0
- package/dist/components/ProgressBar/progress-bar.css.js +3 -1
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -2
- package/dist/components/ProgressCircle/ProgressCircle.js +5 -11
- package/dist/components/ProgressCircle/ProgressCircle.js.map +1 -1
- package/dist/components/ProgressCircle/ProgressCircleSVG.d.ts +3 -0
- package/dist/components/ProgressCircle/ProgressCircleSVG.js +9 -0
- package/dist/components/ProgressCircle/ProgressCircleSVG.js.map +1 -0
- package/dist/components/ProgressCircle/progress-circle.css.js +0 -1
- package/dist/components/ProgressionStepper/ProgressionStepper.d.ts +4 -12
- package/dist/components/ProgressionStepper/ProgressionStepper.js +7 -9
- package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -1
- package/dist/components/ProgressionStepper/ProgressionStepperExample.d.ts +2 -1
- package/dist/components/ProgressionStepper/ProgressionStepperExample.js +47 -45
- package/dist/components/ProgressionStepper/ProgressionStepperExample.js.map +1 -1
- package/dist/components/ProgressionStepper/progression-stepper.css +11 -0
- package/dist/components/ProgressionStepper/progression-stepper.css.js +11 -1
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.d.ts +2 -6
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js +4 -6
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js.map +1 -1
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css +1 -1
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css.js +1 -2
- package/dist/components/Radio/Radio.d.ts +4 -8
- package/dist/components/Radio/Radio.js +3 -5
- package/dist/components/Radio/Radio.js.map +1 -1
- package/dist/components/Radio/RadioExample.d.ts +1 -1
- package/dist/components/Radio/radio.css +1 -1
- package/dist/components/Radio/radio.css.js +1 -2
- package/dist/components/RadioGroup/RadioGroup.d.ts +9 -13
- package/dist/components/RadioGroup/RadioGroup.js +6 -9
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroupExample.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroupExample.js +3 -22
- package/dist/components/RadioGroup/RadioGroupExample.js.map +1 -1
- package/dist/components/RadioGroup/radio-group.css +0 -1
- package/dist/components/RadioGroup/radio-group.css.js +0 -2
- package/dist/components/RadioOption/RadioOption.d.ts +4 -17
- package/dist/components/RadioOption/RadioOption.js +3 -4
- package/dist/components/RadioOption/RadioOption.js.map +1 -1
- package/dist/components/RadioOption/RadioOptionExample.d.ts +1 -1
- package/dist/components/Rating/Rating.d.ts +39 -0
- package/dist/components/Rating/Rating.js +41 -0
- package/dist/components/Rating/Rating.js.map +1 -0
- package/dist/components/Rating/RatingExample.d.ts +4 -0
- package/dist/components/Rating/RatingExample.js +18 -0
- package/dist/components/Rating/RatingExample.js.map +1 -0
- package/dist/components/Rating/index.d.ts +1 -0
- package/dist/components/Rating/index.js +2 -0
- package/dist/components/Rating/index.js.map +1 -0
- package/dist/components/Rating/rating.css +65 -0
- package/dist/components/Rating/rating.css.js +70 -0
- package/dist/components/Scrim/Scrim.d.ts +3 -15
- package/dist/components/Scrim/Scrim.js +2 -4
- package/dist/components/Scrim/Scrim.js.map +1 -1
- package/dist/components/Scrim/scrim.css +11 -4
- package/dist/components/Scrim/scrim.css.js +11 -5
- package/dist/components/SearchBar/SearchBar.d.ts +12 -13
- package/dist/components/SearchBar/SearchBar.js +49 -38
- package/dist/components/SearchBar/SearchBar.js.map +1 -1
- package/dist/components/SearchBar/SearchBarExample.d.ts +3 -2
- package/dist/components/SearchBar/SearchBarExample.js +2 -6
- package/dist/components/SearchBar/SearchBarExample.js.map +1 -1
- package/dist/components/SearchBar/search-bar.css +1 -1
- package/dist/components/SearchBar/search-bar.css.js +1 -2
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +6 -86
- package/dist/components/SegmentedControl/SegmentedControl.js +5 -15
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControlExample.d.ts +2 -1
- package/dist/components/SegmentedControl/SegmentedControlExample.js +57 -27
- package/dist/components/SegmentedControl/SegmentedControlExample.js.map +1 -1
- package/dist/components/SegmentedControl/segmented-control.css +26 -73
- package/dist/components/SegmentedControl/segmented-control.css.js +26 -74
- package/dist/components/Select/Select.d.ts +54 -40
- package/dist/components/Select/Select.js +100 -30
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/SelectExample.d.ts +2 -1
- package/dist/components/Select/SelectExample.js +105 -90
- package/dist/components/Select/SelectExample.js.map +1 -1
- package/dist/components/Select/select.css +13 -18
- package/dist/components/Select/select.css.js +13 -19
- package/dist/components/SelectField/SelectField.d.ts +5 -9
- package/dist/components/SelectField/SelectField.js +5 -6
- package/dist/components/SelectField/SelectField.js.map +1 -1
- package/dist/components/SelectField/SelectFieldExample.d.ts +23 -0
- package/dist/components/SelectField/SelectFieldExample.js +13 -0
- package/dist/components/SelectField/SelectFieldExample.js.map +1 -0
- package/dist/components/Skeleton/Circular.d.ts +2 -0
- package/dist/components/Skeleton/Circular.js +6 -0
- package/dist/components/Skeleton/Circular.js.map +1 -0
- package/dist/components/Skeleton/Photo.d.ts +2 -0
- package/dist/components/Skeleton/Photo.js +6 -0
- package/dist/components/Skeleton/Photo.js.map +1 -0
- package/dist/components/Skeleton/Profile.d.ts +2 -0
- package/dist/components/Skeleton/Profile.js +6 -0
- package/dist/components/Skeleton/Profile.js.map +1 -0
- package/dist/components/Skeleton/Rectangular.d.ts +2 -0
- package/dist/components/Skeleton/Rectangular.js +6 -0
- package/dist/components/Skeleton/Rectangular.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +4 -12
- package/dist/components/Skeleton/Skeleton.js +2 -19
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/SkeletonExample.d.ts +2 -1
- package/dist/components/Skeleton/SkeletonExample.js +23 -19
- package/dist/components/Skeleton/SkeletonExample.js.map +1 -1
- package/dist/components/Skeleton/Thumbnail.d.ts +2 -0
- package/dist/components/Skeleton/Thumbnail.js +6 -0
- package/dist/components/Skeleton/Thumbnail.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +5 -0
- package/dist/components/Skeleton/index.js +5 -0
- package/dist/components/Skeleton/index.js.map +1 -1
- package/dist/components/SkeletonText/SkeletonText.d.ts +3 -7
- package/dist/components/SkeletonText/SkeletonText.js +2 -4
- package/dist/components/SkeletonText/SkeletonText.js.map +1 -1
- package/dist/components/SkeletonText/SkeletonTextExample.d.ts +2 -1
- package/dist/components/SkeletonText/SkeletonTextExample.js +12 -11
- package/dist/components/SkeletonText/SkeletonTextExample.js.map +1 -1
- package/dist/components/Slider/Slider.d.ts +80 -0
- package/dist/components/Slider/Slider.js +131 -0
- package/dist/components/Slider/Slider.js.map +1 -0
- package/dist/components/Slider/SliderExample.d.ts +3 -0
- package/dist/components/Slider/SliderExample.js +62 -0
- package/dist/components/Slider/SliderExample.js.map +1 -0
- package/dist/components/Slider/SliderIntervalDots.d.ts +6 -0
- package/dist/components/Slider/SliderIntervalDots.js +20 -0
- package/dist/components/Slider/SliderIntervalDots.js.map +1 -0
- package/dist/components/Slider/index.d.ts +1 -0
- package/dist/components/Slider/index.js +2 -0
- package/dist/components/Slider/index.js.map +1 -0
- package/dist/components/Slider/slider.css +122 -0
- package/dist/components/Slider/slider.css.js +127 -0
- package/dist/components/Slider/useNormalizeSliderValue.d.ts +7 -0
- package/dist/components/Slider/useNormalizeSliderValue.js +12 -0
- package/dist/components/Slider/useNormalizeSliderValue.js.map +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +27 -0
- package/dist/components/Snackbar/Snackbar.js +23 -0
- package/dist/components/Snackbar/Snackbar.js.map +1 -0
- package/dist/components/Snackbar/SnackbarExample.d.ts +3 -0
- package/dist/components/Snackbar/SnackbarExample.js +11 -0
- package/dist/components/Snackbar/SnackbarExample.js.map +1 -0
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/Snackbar/index.js +2 -0
- package/dist/components/Snackbar/index.js.map +1 -0
- package/dist/components/Snackbar/snackbar.css +19 -0
- package/dist/components/Snackbar/snackbar.css.js +24 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.d.ts +90 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.js +115 -0
- package/dist/components/SnackbarProvider/SnackbarProvider.js.map +1 -0
- package/dist/components/SnackbarProvider/SnackbarProviderExample.d.ts +4 -0
- package/dist/components/SnackbarProvider/SnackbarProviderExample.js +59 -0
- package/dist/components/SnackbarProvider/SnackbarProviderExample.js.map +1 -0
- package/dist/components/SnackbarProvider/index.d.ts +1 -0
- package/dist/components/SnackbarProvider/index.js +2 -0
- package/dist/components/SnackbarProvider/index.js.map +1 -0
- package/dist/components/SnackbarProvider/snackbar-provider-example.css +15 -0
- package/dist/components/SnackbarProvider/snackbar-provider-example.css.js +20 -0
- package/dist/components/SnackbarProvider/snackbar-provider.css +15 -0
- package/dist/components/SnackbarProvider/snackbar-provider.css.js +20 -0
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.d.ts +4 -6
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js +4 -4
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js.map +1 -1
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.d.ts +4 -6
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js +4 -4
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js.map +1 -1
- package/dist/components/StylesProviderCartus/StylesProviderCartus.d.ts +4 -6
- package/dist/components/StylesProviderCartus/StylesProviderCartus.js +4 -4
- package/dist/components/StylesProviderCartus/StylesProviderCartus.js.map +1 -1
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.d.ts +4 -6
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js +4 -4
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js.map +1 -1
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.d.ts +4 -6
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js +4 -4
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js.map +1 -1
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.d.ts +4 -6
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js +4 -4
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js.map +1 -1
- package/dist/components/StylesProviderDemo/StylesProviderDemo.d.ts +25 -0
- package/dist/components/StylesProviderDemo/StylesProviderDemo.js +35 -0
- package/dist/components/StylesProviderDemo/StylesProviderDemo.js.map +1 -0
- package/dist/components/StylesProviderDemo/brandsCss.d.ts +2 -0
- package/dist/components/StylesProviderDemo/brandsCss.js +12 -0
- package/dist/components/StylesProviderDemo/brandsCss.js.map +1 -0
- package/dist/components/StylesProviderDemo/index.d.ts +1 -0
- package/dist/components/StylesProviderDemo/index.js +2 -0
- package/dist/components/StylesProviderDemo/index.js.map +1 -0
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.d.ts +4 -6
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js +4 -4
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js.map +1 -1
- package/dist/components/StylesProviderEra/StylesProviderEra.d.ts +4 -6
- package/dist/components/StylesProviderEra/StylesProviderEra.js +4 -4
- package/dist/components/StylesProviderEra/StylesProviderEra.js.map +1 -1
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.d.ts +4 -6
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js +4 -4
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +4 -8
- package/dist/components/Switch/Switch.js +2 -4
- package/dist/components/Switch/Switch.js.map +1 -1
- package/dist/components/Switch/switch.css +1 -1
- package/dist/components/Switch/switch.css.js +1 -2
- package/dist/components/SwitchOption/SwitchOption.d.ts +5 -9
- package/dist/components/SwitchOption/SwitchOption.js +4 -5
- package/dist/components/SwitchOption/SwitchOption.js.map +1 -1
- package/dist/components/TabGroup/TabGroup.d.ts +5 -87
- package/dist/components/TabGroup/TabGroup.js +7 -22
- package/dist/components/TabGroup/TabGroup.js.map +1 -1
- package/dist/components/TabGroup/TabGroupExample.d.ts +2 -1
- package/dist/components/TabGroup/TabGroupExample.js +95 -86
- package/dist/components/TabGroup/TabGroupExample.js.map +1 -1
- package/dist/components/TabGroup/tab-group.css +19 -55
- package/dist/components/TabGroup/tab-group.css.js +19 -56
- package/dist/components/TabList/TabList.d.ts +129 -0
- package/dist/components/TabList/TabList.js +90 -0
- package/dist/components/TabList/TabList.js.map +1 -0
- package/dist/components/TabList/TabListExample.d.ts +3 -0
- package/dist/components/TabList/TabListExample.js +6 -0
- package/dist/components/TabList/TabListExample.js.map +1 -0
- package/dist/components/TabList/index.d.ts +1 -0
- package/dist/components/TabList/index.js +2 -0
- package/dist/components/TabList/index.js.map +1 -0
- package/dist/components/TabList/tab-list.css +61 -0
- package/dist/components/TabList/tab-list.css.js +66 -0
- package/dist/components/Table/Footer.d.ts +8 -0
- package/dist/components/Table/Footer.js +8 -0
- package/dist/components/Table/Footer.js.map +1 -0
- package/dist/components/Table/Table.d.ts +46 -30
- package/dist/components/Table/Table.js +73 -12
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/TableExample.d.ts +4 -0
- package/dist/components/Table/TableExample.js +126 -0
- package/dist/components/Table/TableExample.js.map +1 -0
- package/dist/components/Table/table.css +167 -20
- package/dist/components/Table/table.css.js +167 -21
- package/dist/components/Table/utils.d.ts +81 -0
- package/dist/components/Table/utils.js +89 -0
- package/dist/components/Table/utils.js.map +1 -0
- package/dist/components/Tag/Tag.d.ts +7 -35
- package/dist/components/Tag/Tag.js +5 -11
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Tag/TagExample.d.ts +4 -0
- package/dist/components/Tag/TagExample.js +15 -0
- package/dist/components/Tag/TagExample.js.map +1 -0
- package/dist/components/Tag/tag.css +7 -11
- package/dist/components/Tag/tag.css.js +7 -12
- package/dist/components/TextField/TextField.d.ts +5 -9
- package/dist/components/TextField/TextField.js +3 -5
- package/dist/components/TextField/TextField.js.map +1 -1
- package/dist/components/TextField/TextFieldExample.d.ts +3 -0
- package/dist/components/TextField/TextFieldExample.js +6 -0
- package/dist/components/TextField/TextFieldExample.js.map +1 -0
- package/dist/components/TextInput/TextInput.d.ts +17 -11
- package/dist/components/TextInput/TextInput.js +28 -7
- package/dist/components/TextInput/TextInput.js.map +1 -1
- package/dist/components/TextInput/TextInputExample.d.ts +1 -1
- package/dist/components/TextInput/TextInputExample.js +11 -0
- package/dist/components/TextInput/TextInputExample.js.map +1 -1
- package/dist/components/TextInput/text-input.css +12 -25
- package/dist/components/TextInput/text-input.css.js +12 -26
- package/dist/components/Textarea/Textarea.d.ts +6 -10
- package/dist/components/Textarea/Textarea.js +4 -14
- package/dist/components/Textarea/Textarea.js.map +1 -1
- package/dist/components/Textarea/TextareaExample.d.ts +1 -1
- package/dist/components/Textarea/TextareaExample.js +4 -1
- package/dist/components/Textarea/TextareaExample.js.map +1 -1
- package/dist/components/Textarea/textarea.css.js +0 -1
- package/dist/components/TextareaField/TextareaField.d.ts +5 -9
- package/dist/components/TextareaField/TextareaField.js +9 -12
- package/dist/components/TextareaField/TextareaField.js.map +1 -1
- package/dist/components/TextareaField/TextareaFieldExample.d.ts +1 -1
- package/dist/components/TextareaField/TextareaFieldExample.js +2 -1
- package/dist/components/TextareaField/TextareaFieldExample.js.map +1 -1
- package/dist/components/TimeInput/Listbox.d.ts +15 -0
- package/dist/components/TimeInput/Listbox.js +25 -0
- package/dist/components/TimeInput/Listbox.js.map +1 -0
- package/dist/components/TimeInput/Segment.d.ts +20 -0
- package/dist/components/TimeInput/Segment.js +164 -0
- package/dist/components/TimeInput/Segment.js.map +1 -0
- package/dist/components/TimeInput/TimeInput.d.ts +24 -0
- package/dist/components/TimeInput/TimeInput.js +113 -0
- package/dist/components/TimeInput/TimeInput.js.map +1 -0
- package/dist/components/TimeInput/TimeInputExample.d.ts +3 -0
- package/dist/components/TimeInput/TimeInputExample.js +4 -0
- package/dist/components/TimeInput/TimeInputExample.js.map +1 -0
- package/dist/components/TimeInput/index.d.ts +1 -0
- package/dist/components/TimeInput/index.js +2 -0
- package/dist/components/TimeInput/index.js.map +1 -0
- package/dist/components/TimeInput/time-input.css +139 -0
- package/dist/components/TimeInput/time-input.css.js +144 -0
- package/dist/components/ToggleOption/ToggleOption.d.ts +8 -8
- package/dist/components/ToggleOption/ToggleOption.js +2 -4
- package/dist/components/ToggleOption/ToggleOption.js.map +1 -1
- package/dist/components/ToggleOption/toggle-option.css +17 -12
- package/dist/components/ToggleOption/toggle-option.css.js +17 -13
- package/dist/components/Tooltip/Tooltip.d.ts +14 -12
- package/dist/components/Tooltip/Tooltip.js +18 -22
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/TooltipExample.d.ts +3 -2
- package/dist/components/Tooltip/TooltipExample.js +1 -1
- package/dist/components/Tooltip/TooltipExample.js.map +1 -1
- package/dist/components/Tooltip/tooltip.css +0 -2
- package/dist/components/Tooltip/tooltip.css.js +0 -3
- package/dist/components/TopNavigation/TopNavigation.d.ts +1 -5
- package/dist/components/TopNavigation/TopNavigation.js +1 -3
- package/dist/components/TopNavigation/TopNavigation.js.map +1 -1
- package/dist/components/TopNavigation/top-navigation.css.js +0 -1
- package/dist/components/Truncated/Truncated.d.ts +8 -8
- package/dist/components/Truncated/Truncated.js +5 -6
- package/dist/components/Truncated/Truncated.js.map +1 -1
- package/dist/components/Truncated/truncated.css +8 -0
- package/dist/components/Truncated/truncated.css.js +13 -0
- package/dist/components/Txt/Txt.d.ts +4 -8
- package/dist/components/Txt/Txt.js +2 -4
- package/dist/components/Txt/Txt.js.map +1 -1
- package/dist/components/UIProvider/AriaLiveMessageHandler.d.ts +13 -0
- package/dist/components/UIProvider/AriaLiveMessageHandler.js +30 -0
- package/dist/components/UIProvider/AriaLiveMessageHandler.js.map +1 -0
- package/dist/components/UIProvider/UIProvider.d.ts +13 -6
- package/dist/components/UIProvider/UIProvider.js +14 -7
- package/dist/components/UIProvider/UIProvider.js.map +1 -1
- package/dist/components/UIProvider/UIProviderExample.d.ts +5 -0
- package/dist/components/UIProvider/UIProviderExample.js +92 -0
- package/dist/components/UIProvider/UIProviderExample.js.map +1 -0
- package/dist/constants/brands.d.ts +7 -0
- package/dist/{index.js → constants/brands.js} +1 -9
- package/dist/{index.js.map → constants/brands.js.map} +1 -1
- package/dist/constants/phases.d.ts +3 -0
- package/dist/constants/phases.js +8 -0
- package/dist/constants/phases.js.map +1 -0
- package/dist/hooks/useAddEventListener.d.ts +2 -1
- package/dist/hooks/useAddEventListener.js.map +1 -1
- package/dist/hooks/useArrowNavigation.d.ts +50 -0
- package/dist/hooks/useArrowNavigation.js +57 -0
- package/dist/hooks/useArrowNavigation.js.map +1 -0
- package/dist/hooks/useCheckboxGroupState.d.ts +2 -2
- package/dist/hooks/useCheckboxState.d.ts +1 -1
- package/dist/hooks/useContainerWidth.d.ts +16 -0
- package/dist/hooks/useContainerWidth.js +35 -0
- package/dist/hooks/useContainerWidth.js.map +1 -0
- package/dist/hooks/useFloating.d.ts +8 -9
- package/dist/hooks/useFloating.js +10 -11
- package/dist/hooks/useFloating.js.map +1 -1
- package/dist/hooks/useId.js +5 -3
- package/dist/hooks/useId.js.map +1 -1
- package/dist/hooks/useLongPress.d.ts +2 -1
- package/dist/hooks/useLongPress.js +2 -1
- package/dist/hooks/useLongPress.js.map +1 -1
- package/dist/hooks/useOutsideClick.d.ts +5 -1
- package/dist/hooks/useOutsideClick.js +1 -1
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/usePaginationState.d.ts +4 -0
- package/dist/hooks/usePaginationState.js +22 -0
- package/dist/hooks/usePaginationState.js.map +1 -0
- package/dist/hooks/useRadioState.d.ts +2 -2
- package/dist/hooks/useSnackbarContext.d.ts +1 -0
- package/dist/hooks/useSnackbarContext.js +16 -0
- package/dist/hooks/useSnackbarContext.js.map +1 -0
- package/dist/hooks/useSwipe.d.ts +6 -0
- package/dist/hooks/useSwipe.js +28 -0
- package/dist/hooks/useSwipe.js.map +1 -0
- package/dist/hooks/useTimeout.d.ts +8 -5
- package/dist/hooks/useTimeout.js +7 -23
- package/dist/hooks/useTimeout.js.map +1 -1
- package/dist/hooks/useUIContext.d.ts +1 -1
- package/dist/styles/anywhere.css +14 -14
- package/dist/styles/anywhere.css.js +14 -15
- package/dist/{base.css → styles/base.css} +109 -22
- package/dist/{base.css.js → styles/base.css.js} +109 -23
- package/dist/styles/better-homes-gardens.css +12 -12
- package/dist/styles/better-homes-gardens.css.js +12 -13
- package/dist/styles/cartus.css +13 -13
- package/dist/styles/cartus.css.js +13 -14
- package/dist/styles/century-21.css +14 -14
- package/dist/styles/century-21.css.js +14 -15
- package/dist/styles/coldwell-banker.css +12 -12
- package/dist/styles/coldwell-banker.css.js +12 -13
- package/dist/{colors.css.js → styles/colors.css.js} +0 -1
- package/dist/styles/corcoran.css +10 -10
- package/dist/styles/corcoran.css.js +10 -11
- package/dist/styles/denali-boss.css +13 -13
- package/dist/styles/denali-boss.css.js +13 -14
- package/dist/styles/era.css +13 -13
- package/dist/styles/era.css.js +13 -14
- package/dist/styles/sothebys.css +14 -14
- package/dist/styles/sothebys.css.js +14 -15
- package/dist/{index.d.ts → types/common.d.ts} +20 -25
- package/dist/types/common.js +10 -0
- package/dist/types/common.js.map +1 -0
- package/{meta-types.ts → dist/types/meta.d.ts} +7 -14
- package/dist/types/meta.js +40 -0
- package/dist/types/meta.js.map +1 -0
- package/dist/utils/bound.d.ts +18 -0
- package/dist/utils/bound.js +22 -0
- package/dist/utils/bound.js.map +1 -0
- package/dist/utils/createExampleChildElement.d.ts +17 -0
- package/dist/utils/createExampleChildElement.js +50 -0
- package/dist/utils/createExampleChildElement.js.map +1 -0
- package/dist/utils/demo.d.ts +59 -15
- package/dist/utils/demo.js.map +1 -1
- package/dist/utils/dom.d.ts +2 -0
- package/dist/utils/dom.js +9 -0
- package/dist/utils/dom.js.map +1 -0
- package/dist/utils/fileUploads.d.ts +51 -0
- package/dist/utils/fileUploads.js +2 -0
- package/dist/utils/fileUploads.js.map +1 -0
- package/dist/utils/handleKeyDown.d.ts +13 -0
- package/dist/utils/handleKeyDown.js +23 -0
- package/dist/utils/handleKeyDown.js.map +1 -0
- package/dist/utils/keyboard.d.ts +2 -1
- package/dist/utils/keyboard.js +2 -2
- package/dist/utils/keyboard.js.map +1 -1
- package/dist/utils/random.d.ts +15 -0
- package/dist/utils/random.js +26 -0
- package/dist/utils/random.js.map +1 -0
- package/dist/utils/scrollElementIntoView.d.ts +1 -1
- package/dist/utils/scrollElementIntoView.js +2 -0
- package/dist/utils/scrollElementIntoView.js.map +1 -1
- package/dist/utils/scrollListItemsStyle.d.ts +10 -0
- package/dist/utils/scrollListItemsStyle.js +17 -0
- package/dist/utils/scrollListItemsStyle.js.map +1 -0
- package/dist/utils/snackbarContext.d.ts +38 -0
- package/dist/utils/snackbarContext.js +3 -0
- package/dist/utils/snackbarContext.js.map +1 -0
- package/dist/utils/uiContext.d.ts +6 -0
- package/dist/utils/uiContext.js.map +1 -1
- package/dist/utils/useIds.d.ts +4 -0
- package/dist/utils/useIds.js +11 -0
- package/dist/utils/useIds.js.map +1 -0
- package/meta.ts +15 -28
- package/package.json +150 -97
- package/src/components/Accordion/Accordion.rtl.test.tsx +17 -0
- package/src/components/Accordion/Accordion.tsx +140 -0
- package/src/components/Accordion/AccordionExample.tsx +93 -0
- package/src/components/Accordion/accordion.scss +106 -0
- package/src/components/Accordion/index.tsx +1 -0
- package/src/components/Avatar/Avatar.rtl.test.tsx +16 -0
- package/src/components/Avatar/Avatar.tsx +54 -31
- package/src/components/Avatar/AvatarExample.tsx +45 -35
- package/src/components/Avatar/avatar.scss +34 -1
- package/src/components/AvatarGroup/AvatarGroup.rtl.test.tsx +16 -0
- package/src/components/AvatarGroup/AvatarGroup.tsx +20 -15
- package/src/components/AvatarGroup/AvatarGroupExample.tsx +41 -0
- package/src/components/AvatarGroup/avatar-group.scss +16 -1
- package/src/components/Badge/Badge.rtl.test.tsx +19 -0
- package/src/components/Badge/Badge.tsx +17 -18
- package/src/components/Badge/BadgeExample.tsx +11 -66
- package/src/components/Badge/badge.scss +18 -25
- package/src/components/BadgeDot/BadgeDot.rtl.test.tsx +19 -0
- package/src/components/BadgeDot/BadgeDot.tsx +82 -0
- package/src/components/BadgeDot/BadgeDotExample.tsx +25 -0
- package/src/components/BadgeDot/badge-dot.scss +26 -0
- package/src/components/BadgeDot/index.tsx +1 -0
- package/src/components/BannerAlert/BannerAlert.rtl.test.tsx +26 -0
- package/src/components/BannerAlert/BannerAlert.tsx +25 -15
- package/src/components/BannerAlert/BannerAlertExample.tsx +11 -8
- package/src/components/BannerAlert/banner-alert.scss +0 -28
- package/src/components/BottomNavigation/BottomNavigation.rtl.test.tsx +21 -0
- package/src/components/BottomNavigation/BottomNavigation.tsx +60 -0
- package/src/components/BottomNavigation/BottomNavigationExample.tsx +121 -0
- package/src/components/BottomNavigation/bottom-navigation.scss +87 -0
- package/src/components/BottomNavigation/index.tsx +1 -0
- package/src/components/Breadcrumb/Breadcrumb.rtl.test.tsx +16 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +65 -83
- package/src/components/Breadcrumb/BreadcrumbExample.tsx +153 -85
- package/src/components/Button/Button.rtl.test.tsx +16 -0
- package/src/components/Button/Button.tsx +48 -30
- package/src/components/Button/ButtonExample.tsx +31 -24
- package/src/components/Button/button.scss +1 -1
- package/src/components/ButtonDock/ButtonDock.rtl.test.tsx +18 -0
- package/src/components/ButtonDock/ButtonDock.tsx +68 -0
- package/src/components/ButtonDock/ButtonDockExample.tsx +77 -0
- package/src/components/ButtonDock/button-dock.scss +49 -0
- package/src/components/ButtonDock/index.tsx +1 -0
- package/src/components/CalendarPicker/CalendarPicker.rtl.test.tsx +15 -0
- package/src/components/CalendarPicker/CalendarPicker.tsx +424 -0
- package/src/components/CalendarPicker/CalendarPickerExample.tsx +24 -0
- package/src/components/CalendarPicker/calendar-picker.scss +89 -0
- package/src/components/CalendarPicker/index.tsx +1 -0
- package/src/components/Card/Card.rtl.test.tsx +19 -0
- package/src/components/Card/Card.tsx +5 -15
- package/src/components/Card/CardExample.tsx +1 -0
- package/src/components/Card/card.scss +0 -5
- package/src/components/Carousel/Carousel.tsx +177 -0
- package/src/components/Carousel/CarouselExample.tsx +82 -0
- package/src/components/Carousel/carousel.scss +39 -0
- package/src/components/Carousel/index.tsx +1 -0
- package/src/components/Checkbox/Checkbox.rtl.test.tsx +27 -0
- package/src/components/Checkbox/Checkbox.tsx +28 -28
- package/src/components/Checkbox/checkbox.scss +4 -11
- package/src/components/CheckboxGroup/CheckboxGroup.rtl.test.tsx +19 -0
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +65 -59
- package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +52 -23
- package/src/components/CheckboxOption/CheckboxOption.rtl.test.tsx +24 -0
- package/src/components/CheckboxOption/CheckboxOption.tsx +7 -20
- package/src/components/ChipAssist/ChipAssist.rtl.test.tsx +16 -0
- package/src/components/ChipAssist/ChipAssist.tsx +11 -7
- package/src/components/ChipAssist/ChipAssistExample.tsx +26 -25
- package/src/components/ChipFilter/ChipFilter.rtl.test.tsx +15 -0
- package/src/components/ChipFilter/ChipFilter.tsx +10 -6
- package/src/components/ChipFilter/ChipFilterExample.tsx +4 -2
- package/src/components/ChipGroup/ChipGroup.rtl.test.tsx +32 -0
- package/src/components/ChipGroup/ChipGroup.tsx +4 -8
- package/src/components/ChipGroup/ChipGroupExample.tsx +16 -15
- package/src/components/ChipInput/ChipInput.rtl.test.tsx +16 -0
- package/src/components/ChipInput/ChipInput.tsx +3 -6
- package/src/components/ChipInput/ChipInputExample.tsx +41 -40
- package/src/components/ChipSuggestion/ChipSuggestion.rtl.test.tsx +19 -0
- package/src/components/ChipSuggestion/ChipSuggestion.tsx +3 -7
- package/src/components/ChipSuggestion/ChipSuggestionExample.tsx +18 -17
- package/src/components/ChipUtility/ChipUtility.rtl.test.tsx +16 -0
- package/src/components/ChipUtility/ChipUtility.tsx +8 -15
- package/src/components/ChipUtility/ChipUtilityExample.tsx +56 -54
- package/src/components/ChipUtility/chip-utility.scss +1 -1
- package/src/components/DateField/DateField.rtl.test.tsx +24 -0
- package/src/components/DateField/DateField.tsx +58 -0
- package/src/components/DateField/DateFieldExample.tsx +13 -0
- package/src/components/DateField/date-field.scss +8 -0
- package/src/components/DateField/index.tsx +1 -0
- package/src/components/DateInput/DateInput.rtl.test.tsx +17 -0
- package/src/components/DateInput/DateInput.tsx +197 -0
- package/src/components/DateInput/DateInputExample.tsx +17 -0
- package/src/components/DateInput/date-input.scss +13 -0
- package/src/components/DateInput/index.tsx +1 -0
- package/src/components/Dialog/Dialog.rtl.test.tsx +22 -0
- package/src/components/Dialog/Dialog.tsx +74 -96
- package/src/components/Dialog/DialogExample.tsx +7 -13
- package/src/components/Dialog/dialog.scss +40 -76
- package/src/components/Divider/Divider.rtl.test.tsx +8 -0
- package/src/components/Divider/Divider.tsx +5 -8
- package/src/components/Divider/DividerExample.tsx +6 -2
- package/src/components/Divider/divider.scss +4 -8
- package/src/components/Drawer/Drawer.rtl.test.tsx +27 -0
- package/src/components/Drawer/Drawer.tsx +135 -0
- package/src/components/Drawer/DrawerExample.tsx +93 -0
- package/src/components/Drawer/drawer.scss +67 -0
- package/src/components/Drawer/index.tsx +1 -0
- package/src/components/EmptyState/EmptyState.rtl.test.tsx +16 -0
- package/src/components/EmptyState/EmptyState.tsx +3 -7
- package/src/components/EmptyState/EmptyStateExample.tsx +22 -16
- package/src/components/ExamplePlaceholder/ExamplePlaceholder.tsx +33 -15
- package/src/components/Fab/Fab.rtl.test.tsx +15 -0
- package/src/components/Fab/Fab.tsx +54 -42
- package/src/components/Fab/FabExample.tsx +5 -2
- package/src/components/Fab/fab.scss +1 -1
- package/src/components/FileUpload/FileUpload.rtl.test.tsx +14 -0
- package/src/components/FileUpload/FileUpload.tsx +284 -0
- package/src/components/FileUpload/FileUploadExample.tsx +93 -0
- package/src/components/FileUpload/file-upload.scss +20 -0
- package/src/components/FileUpload/index.tsx +1 -0
- package/src/components/FileUploadItem/FileUploadItem.rtl.test.tsx +19 -0
- package/src/components/FileUploadItem/FileUploadItem.tsx +119 -0
- package/src/components/FileUploadItem/FileUploadItemExample.tsx +85 -0
- package/src/components/FileUploadItem/file-upload-item.scss +46 -0
- package/src/components/FileUploadItem/index.tsx +1 -0
- package/src/components/FormField/FormField.rtl.test.tsx +30 -0
- package/src/components/FormField/FormField.tsx +31 -44
- package/src/components/FormField/FormFieldExample.tsx +41 -0
- package/src/components/FormField/form-field.scss +1 -1
- package/src/components/Img/Img.rtl.test.tsx +15 -0
- package/src/components/Img/Img.tsx +2 -6
- package/src/components/InlineAlert/InlineAlert.rtl.test.tsx +15 -0
- package/src/components/InlineAlert/InlineAlert.tsx +6 -28
- package/src/components/InlineAlert/SvgWarningTwoTone.tsx +18 -0
- package/src/components/InlineAlert/inline-alert.scss +1 -0
- package/src/components/Layout/Layout.rtl.test.tsx +15 -0
- package/src/components/Layout/Layout.tsx +4 -8
- package/src/components/Layout/LayoutExample.tsx +17 -0
- package/src/components/Link/Link.rtl.test.tsx +14 -0
- package/src/components/Link/Link.tsx +4 -10
- package/src/components/Link/LinkExample.tsx +10 -8
- package/src/components/Link/link.scss +1 -1
- package/src/components/ListItem/ListItem.rtl.test.tsx +18 -0
- package/src/components/ListItem/ListItem.tsx +145 -167
- package/src/components/ListItem/ListItemButton.tsx +6 -0
- package/src/components/ListItem/ListItemExample.tsx +38 -88
- package/src/components/ListItem/list-item.scss +27 -40
- package/src/components/ListItemMenu/ListItemMenu.tsx +358 -0
- package/src/components/ListItemMenu/index.tsx +1 -0
- package/src/components/Menu/Menu.rtl.test.tsx +15 -0
- package/src/components/Menu/Menu.tsx +27 -96
- package/src/components/Menu/MenuExample.tsx +6 -14
- package/src/components/Menu/menu.scss +5 -13
- package/src/components/MenuButton/MenuButton.rtl.test.tsx +15 -0
- package/src/components/MenuButton/MenuButton.tsx +3 -8
- package/src/components/Modal/Modal.rtl.test.tsx +20 -0
- package/src/components/Modal/Modal.tsx +18 -18
- package/src/components/Modal/ModalExample.tsx +3 -4
- package/src/components/Modal/modal.scss +8 -21
- package/src/components/NumberField/NumberField.rtl.test.tsx +24 -0
- package/src/components/NumberField/NumberField.tsx +18 -27
- package/src/components/NumberInput/IncrementButton.tsx +31 -0
- package/src/components/NumberInput/NumberInput.rtl.test.tsx +15 -0
- package/src/components/NumberInput/NumberInput.tsx +67 -87
- package/src/components/NumberInput/NumberInputExample.tsx +6 -0
- package/src/components/NumberInput/number-input.scss +9 -6
- package/src/components/OTPInput/OTPInput.rtl.test.tsx +19 -0
- package/src/components/OTPInput/OTPInput.tsx +120 -0
- package/src/components/OTPInput/OTPInputExample.tsx +30 -0
- package/src/components/OTPInput/index.tsx +1 -0
- package/src/components/OTPInput/otp-input.scss +87 -0
- package/src/components/PageControl/PageControl.rtl.test.tsx +15 -0
- package/src/components/PageControl/PageControl.tsx +98 -0
- package/src/components/PageControl/PageControlExample.tsx +36 -0
- package/src/components/PageControl/index.tsx +1 -0
- package/src/components/PageControl/page-control.scss +38 -0
- package/src/components/Pagination/PageInput.tsx +65 -0
- package/src/components/Pagination/PageList.tsx +21 -0
- package/src/components/Pagination/Pagination.rtl.test.tsx +15 -0
- package/src/components/Pagination/Pagination.tsx +99 -0
- package/src/components/Pagination/index.tsx +1 -0
- package/src/components/Pagination/pagination.scss +36 -0
- package/src/components/PasswordField/PasswordField.rtl.test.tsx +24 -0
- package/src/components/PasswordField/PasswordField.tsx +67 -0
- package/src/components/PasswordField/index.tsx +1 -0
- package/src/components/PasswordInput/PasswordInput.rtl.test.tsx +15 -0
- package/src/components/PasswordInput/PasswordInput.tsx +115 -0
- package/src/components/PasswordInput/index.tsx +1 -0
- package/src/components/PasswordInput/password-input.scss +36 -0
- package/src/components/PhoneNumberField/PhoneNumberField.rtl.test.tsx +24 -0
- package/src/components/PhoneNumberField/PhoneNumberField.tsx +10 -49
- package/src/components/PhoneNumberInput/PhoneNumberInput.rtl.test.tsx +17 -0
- package/src/components/PhoneNumberInput/PhoneNumberInput.tsx +111 -151
- package/src/components/PhoneNumberInput/PhoneNumberInputExample.tsx +8 -0
- package/src/components/PhoneNumberInput/phone-number-input.scss +40 -31
- package/src/components/Popover/Popover.rtl.test.tsx +28 -0
- package/src/components/Popover/Popover.tsx +147 -96
- package/src/components/Popover/PopoverExample.tsx +26 -4
- package/src/components/Popover/popover.scss +20 -42
- package/src/components/Portal/Portal.rtl.test.tsx +15 -0
- package/src/components/Portal/Portal.tsx +4 -6
- package/src/components/ProgressBar/ProgressBar.rtl.test.tsx +15 -0
- package/src/components/ProgressBar/ProgressBar.tsx +34 -11
- package/src/components/ProgressBar/progress-bar.scss +6 -0
- package/src/components/ProgressCircle/ProgressCircle.rtl.test.tsx +15 -0
- package/src/components/ProgressCircle/ProgressCircle.tsx +5 -44
- package/src/components/ProgressCircle/ProgressCircleSVG.tsx +38 -0
- package/src/components/ProgressionStepper/ProgressionStepper.rtl.test.tsx +19 -0
- package/src/components/ProgressionStepper/ProgressionStepper.tsx +21 -22
- package/src/components/ProgressionStepper/ProgressionStepperExample.tsx +49 -47
- package/src/components/ProgressionStepper/progression-stepper.scss +13 -0
- package/src/components/ProgressionStepperBar/ProgressionStepperBar.rtl.test.tsx +15 -0
- package/src/components/ProgressionStepperBar/ProgressionStepperBar.tsx +13 -11
- package/src/components/ProgressionStepperBar/progression-stepper-bar.scss +1 -1
- package/src/components/Radio/Radio.rtl.test.tsx +15 -0
- package/src/components/Radio/Radio.tsx +5 -13
- package/src/components/Radio/radio.scss +1 -1
- package/src/components/RadioGroup/RadioGroup.rtl.test.tsx +32 -0
- package/src/components/RadioGroup/RadioGroup.tsx +81 -84
- package/src/components/RadioGroup/RadioGroupExample.tsx +4 -23
- package/src/components/RadioGroup/radio-group.scss +0 -1
- package/src/components/RadioOption/RadioOption.rtl.test.tsx +15 -0
- package/src/components/RadioOption/RadioOption.tsx +6 -21
- package/src/components/Rating/Rating.rtl.test.tsx +16 -0
- package/src/components/Rating/Rating.tsx +97 -0
- package/src/components/Rating/RatingExample.tsx +20 -0
- package/src/components/Rating/index.tsx +1 -0
- package/src/components/Rating/rating.scss +85 -0
- package/src/components/Scrim/Scrim.rtl.test.tsx +15 -0
- package/src/components/Scrim/Scrim.tsx +4 -16
- package/src/components/Scrim/scrim.scss +12 -5
- package/src/components/SearchBar/SearchBar.rtl.test.tsx +41 -0
- package/src/components/SearchBar/SearchBar.tsx +99 -88
- package/src/components/SearchBar/SearchBarExample.tsx +4 -15
- package/src/components/SearchBar/search-bar.scss +1 -1
- package/src/components/SegmentedControl/SegmentedControl.rtl.test.tsx +26 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +19 -125
- package/src/components/SegmentedControl/SegmentedControlExample.tsx +60 -29
- package/src/components/SegmentedControl/segmented-control.scss +40 -87
- package/src/components/Select/Select.rtl.test.tsx +25 -0
- package/src/components/Select/Select.tsx +238 -119
- package/src/components/Select/SelectExample.tsx +113 -102
- package/src/components/Select/select.scss +14 -21
- package/src/components/SelectField/SelectField.rtl.test.tsx +25 -0
- package/src/components/SelectField/SelectField.tsx +20 -28
- package/src/components/SelectField/SelectFieldExample.tsx +16 -0
- package/src/components/Skeleton/Circular.tsx +5 -0
- package/src/components/Skeleton/Photo.tsx +5 -0
- package/src/components/Skeleton/Profile.tsx +5 -0
- package/src/components/Skeleton/Rectangular.tsx +5 -0
- package/src/components/Skeleton/Skeleton.rtl.test.tsx +16 -0
- package/src/components/Skeleton/Skeleton.tsx +6 -29
- package/src/components/Skeleton/SkeletonExample.tsx +31 -44
- package/src/components/Skeleton/Thumbnail.tsx +5 -0
- package/src/components/Skeleton/index.tsx +5 -0
- package/src/components/SkeletonText/SkeletonText.rtl.test.tsx +16 -0
- package/src/components/SkeletonText/SkeletonText.tsx +2 -6
- package/src/components/SkeletonText/SkeletonTextExample.tsx +14 -14
- package/src/components/Slider/Slider.rtl.test.tsx +8 -0
- package/src/components/Slider/Slider.tsx +280 -0
- package/src/components/Slider/SliderExample.tsx +66 -0
- package/src/components/Slider/SliderIntervalDots.tsx +35 -0
- package/src/components/Slider/index.tsx +1 -0
- package/src/components/Slider/slider.scss +121 -0
- package/src/components/Slider/useNormalizeSliderValue.ts +16 -0
- package/src/components/Snackbar/Snackbar.tsx +48 -0
- package/src/components/Snackbar/SnackbarExample.tsx +12 -0
- package/src/components/Snackbar/index.tsx +1 -0
- package/src/components/Snackbar/snackbar.scss +22 -0
- package/src/components/SnackbarProvider/SnackbarProvider.tsx +160 -0
- package/src/components/SnackbarProvider/SnackbarProviderExample.tsx +127 -0
- package/src/components/SnackbarProvider/index.tsx +1 -0
- package/src/components/SnackbarProvider/snackbar-provider-example.scss +17 -0
- package/src/components/SnackbarProvider/snackbar-provider.scss +15 -0
- package/src/components/StylesProviderAnywhere/StylesProviderAnywhere.tsx +4 -6
- package/src/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.tsx +4 -6
- package/src/components/StylesProviderCartus/StylesProviderCartus.tsx +4 -6
- package/src/components/StylesProviderCentury21/StylesProviderCentury21.tsx +4 -6
- package/src/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.tsx +4 -6
- package/src/components/StylesProviderCorcoran/StylesProviderCorcoran.tsx +4 -6
- package/src/components/StylesProviderDemo/StylesProviderDemo.tsx +49 -0
- package/src/components/StylesProviderDemo/brandsCss.ts +20 -0
- package/src/components/StylesProviderDemo/index.tsx +1 -0
- package/src/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.tsx +4 -6
- package/src/components/StylesProviderEra/StylesProviderEra.tsx +4 -6
- package/src/components/StylesProviderSothebys/StylesProviderSothebys.tsx +4 -6
- package/src/components/Switch/Switch.rtl.test.tsx +15 -0
- package/src/components/Switch/Switch.tsx +4 -10
- package/src/components/Switch/switch.scss +1 -1
- package/src/components/SwitchOption/SwitchOption.rtl.test.tsx +15 -0
- package/src/components/SwitchOption/SwitchOption.tsx +6 -9
- package/src/components/TabGroup/TabGroup.rtl.test.tsx +19 -0
- package/src/components/TabGroup/TabGroup.tsx +17 -131
- package/src/components/TabGroup/TabGroupExample.tsx +101 -88
- package/src/components/TabGroup/tab-group.scss +34 -78
- package/src/components/TabList/TabList.rtl.test.tsx +26 -0
- package/src/components/TabList/TabList.tsx +244 -0
- package/src/components/TabList/TabListExample.tsx +7 -0
- package/src/components/TabList/index.tsx +1 -0
- package/src/components/TabList/tab-list.scss +73 -0
- package/src/components/Table/Footer.tsx +40 -0
- package/src/components/Table/Table.rtl.test.tsx +28 -0
- package/src/components/Table/Table.tsx +181 -53
- package/src/components/Table/TableExample.tsx +138 -0
- package/src/components/Table/table.scss +228 -26
- package/src/components/Table/utils.ts +179 -0
- package/src/components/Tag/Tag.rtl.test.tsx +20 -0
- package/src/components/Tag/Tag.tsx +11 -56
- package/src/components/Tag/TagExample.tsx +18 -0
- package/src/components/Tag/tag.scss +7 -12
- package/src/components/TextField/TextField.rtl.test.tsx +24 -0
- package/src/components/TextField/TextField.tsx +6 -28
- package/src/components/TextField/TextFieldExample.tsx +8 -0
- package/src/components/TextInput/TextInput.rtl.test.tsx +17 -0
- package/src/components/TextInput/TextInput.tsx +110 -58
- package/src/components/TextInput/TextInputExample.tsx +11 -2
- package/src/components/TextInput/text-input.scss +9 -30
- package/src/components/Textarea/Textarea.rtl.test.tsx +17 -0
- package/src/components/Textarea/Textarea.tsx +14 -26
- package/src/components/Textarea/TextareaExample.tsx +4 -3
- package/src/components/TextareaField/TextareaField.rtl.test.tsx +24 -0
- package/src/components/TextareaField/TextareaField.tsx +23 -38
- package/src/components/TextareaField/TextareaFieldExample.tsx +3 -9
- package/src/components/TimeInput/Listbox.tsx +68 -0
- package/src/components/TimeInput/Segment.tsx +231 -0
- package/src/components/TimeInput/TimeInput.rtl.test.tsx +15 -0
- package/src/components/TimeInput/TimeInput.tsx +259 -0
- package/src/components/TimeInput/TimeInputExample.tsx +6 -0
- package/src/components/TimeInput/index.tsx +1 -0
- package/src/components/TimeInput/time-input.scss +177 -0
- package/src/components/ToggleOption/ToggleOption.rtl.test.tsx +15 -0
- package/src/components/ToggleOption/ToggleOption.tsx +11 -13
- package/src/components/ToggleOption/toggle-option.scss +15 -11
- package/src/components/Tooltip/Tooltip.rtl.test.tsx +24 -0
- package/src/components/Tooltip/Tooltip.tsx +28 -42
- package/src/components/Tooltip/TooltipExample.tsx +8 -6
- package/src/components/Tooltip/tooltip.scss +0 -2
- package/src/components/TopNavigation/TopNavigation.rtl.test.tsx +15 -0
- package/src/components/TopNavigation/TopNavigation.tsx +1 -5
- package/src/components/Truncated/Truncated.rtl.test.tsx +15 -0
- package/src/components/Truncated/Truncated.tsx +18 -14
- package/src/components/Truncated/truncated.scss +8 -0
- package/src/components/Txt/Txt.rtl.test.tsx +15 -0
- package/src/components/Txt/Txt.tsx +3 -7
- package/src/components/UIProvider/AriaLiveMessageHandler.tsx +44 -0
- package/src/components/UIProvider/UIProvider.tsx +18 -7
- package/src/components/UIProvider/UIProviderExample.tsx +146 -0
- package/src/constants/brands.ts +45 -0
- package/src/constants/phases.ts +10 -0
- package/src/global.d.ts +3 -0
- package/src/hooks/useAddEventListener.ts +3 -1
- package/src/hooks/useArrowNavigation.ts +107 -0
- package/src/hooks/useContainerWidth.tsx +37 -0
- package/src/hooks/useFloating.ts +21 -22
- package/src/hooks/useId.ts +5 -3
- package/src/hooks/useLongPress.ts +3 -2
- package/src/hooks/useOutsideClick.ts +9 -5
- package/src/hooks/usePaginationState.tsx +24 -0
- package/src/hooks/useSnackbarContext.ts +18 -0
- package/src/hooks/useSwipe.ts +32 -0
- package/src/hooks/useTimeout.ts +14 -4
- package/src/rtl/hasNoBasicA11yIssues.tsx +27 -0
- package/src/rtl/util.tsx +10 -0
- package/src/{base.scss → styles/base.scss} +154 -77
- package/src/{index.ts → types/common.ts} +23 -65
- package/src/types/meta.ts +101 -0
- package/src/utils/bound.ts +30 -0
- package/src/utils/createExampleChildElement.tsx +83 -0
- package/src/utils/demo.ts +64 -22
- package/src/utils/dom.ts +6 -0
- package/src/utils/fileUploads.ts +73 -0
- package/src/utils/handleKeyDown.ts +29 -0
- package/src/utils/keyboard.ts +5 -2
- package/src/utils/random.ts +25 -0
- package/src/utils/scrollElementIntoView.ts +3 -1
- package/src/utils/scrollListItemsStyle.ts +29 -0
- package/src/utils/snackbarContext.tsx +43 -0
- package/src/utils/uiContext.ts +4 -1
- package/src/utils/useIds.ts +16 -0
- package/tsconfig.build.json +21 -0
- package/tsconfig.json +19 -4
- package/dist/components/Chip/Chip.d.ts +0 -64
- package/dist/components/Chip/Chip.js +0 -33
- package/dist/components/Chip/Chip.js.map +0 -1
- package/dist/components/Chip/chip.css +0 -44
- package/dist/components/Chip/chip.css.js +0 -50
- package/dist/components/Chip/index.d.ts +0 -1
- package/dist/components/Chip/index.js +0 -2
- package/dist/components/Chip/index.js.map +0 -1
- package/dist/components/Combobox/Combobox.d.ts +0 -96
- package/dist/components/Combobox/Combobox.js +0 -83
- package/dist/components/Combobox/Combobox.js.map +0 -1
- package/dist/components/Combobox/index.d.ts +0 -1
- package/dist/components/Combobox/index.js +0 -2
- package/dist/components/Combobox/index.js.map +0 -1
- package/dist/components/Listbox/Listbox.d.ts +0 -119
- package/dist/components/Listbox/Listbox.js +0 -85
- package/dist/components/Listbox/Listbox.js.map +0 -1
- package/dist/components/Listbox/index.d.ts +0 -1
- package/dist/components/Listbox/index.js +0 -2
- package/dist/components/Listbox/index.js.map +0 -1
- package/dist/hooks/useCombobox.d.ts +0 -55
- package/dist/hooks/useCombobox.js +0 -104
- package/dist/hooks/useCombobox.js.map +0 -1
- package/dist/hooks/useOptionIconsInvalid.d.ts +0 -36
- package/dist/hooks/useOptionIconsInvalid.js +0 -21
- package/dist/hooks/useOptionIconsInvalid.js.map +0 -1
- package/dist/hooks/useValidChildren.d.ts +0 -6
- package/dist/hooks/useValidChildren.js +0 -30
- package/dist/hooks/useValidChildren.js.map +0 -1
- package/dist/utils/children.d.ts +0 -29
- package/dist/utils/children.js +0 -67
- package/dist/utils/children.js.map +0 -1
- package/dist/utils/srOnly.d.ts +0 -14
- package/dist/utils/srOnly.js +0 -13
- package/dist/utils/srOnly.js.map +0 -1
- package/src/components/Chip/Chip.tsx +0 -104
- package/src/components/Chip/chip.scss +0 -66
- package/src/components/Chip/index.tsx +0 -1
- package/src/components/Combobox/Combobox.tsx +0 -314
- package/src/components/Combobox/index.tsx +0 -1
- package/src/components/Listbox/Listbox.tsx +0 -257
- package/src/components/Listbox/index.tsx +0 -1
- package/src/hooks/useCombobox.ts +0 -176
- package/src/hooks/useOptionIconsInvalid.ts +0 -58
- package/src/hooks/useValidChildren.ts +0 -54
- package/src/utils/children.ts +0 -80
- package/src/utils/placeholder.test.ts +0 -7
- package/src/utils/srOnly.ts +0 -14
- /package/dist/{colors.css → styles/colors.css} +0 -0
- /package/src/{colors.scss → styles/colors.scss} +0 -0
|
@@ -33,29 +33,12 @@ import { cssWithVars } from '../../utils/cwv';
|
|
|
33
33
|
* @exampleDescription This example shows a skeleton loading state for an image but can be used for any element.
|
|
34
34
|
*
|
|
35
35
|
* @name Skeleton
|
|
36
|
-
* @phase
|
|
36
|
+
* @phase UXReview
|
|
37
37
|
*/
|
|
38
|
-
function Skeleton({ width = 100, height = 100, variant = 'rectangular', children = null }) {
|
|
38
|
+
export function Skeleton({ width = 100, height = 100, variant = 'rectangular', children = null }) {
|
|
39
39
|
return children !== null && children !== undefined && children !== false ? (children) : (_jsx("div", { "aria-busy": "true", "aria-label": "Loading", "data-bspk": "skeleton", "data-variant": variant, role: "status", style: cssWithVars({
|
|
40
40
|
'--height': typeof height === 'number' ? `${height}px` : height,
|
|
41
41
|
'--width': typeof width === 'number' ? `${width}px` : width,
|
|
42
42
|
}) }));
|
|
43
43
|
}
|
|
44
|
-
Skeleton.bspkName = 'Skeleton';
|
|
45
|
-
function SkeletonCircular(props) {
|
|
46
|
-
return _jsx(Skeleton, { ...props, variant: "circular" });
|
|
47
|
-
}
|
|
48
|
-
function SkeletonPhoto(props) {
|
|
49
|
-
return _jsx(Skeleton, { ...props, variant: "photo" });
|
|
50
|
-
}
|
|
51
|
-
function SkeletonProfile(props) {
|
|
52
|
-
return _jsx(Skeleton, { ...props, variant: "profile" });
|
|
53
|
-
}
|
|
54
|
-
function SkeletonRectangular(props) {
|
|
55
|
-
return _jsx(Skeleton, { ...props, variant: "rectangular" });
|
|
56
|
-
}
|
|
57
|
-
function SkeletonThumbnail(props) {
|
|
58
|
-
return _jsx(Skeleton, { ...props, variant: "thumbnail" });
|
|
59
|
-
}
|
|
60
|
-
export { Skeleton, SkeletonCircular, SkeletonPhoto, SkeletonProfile, SkeletonRectangular, SkeletonThumbnail };
|
|
61
44
|
//# sourceMappingURL=Skeleton.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Skeleton.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Skeleton.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAmC1C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,KAAK,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,OAAO,GAAG,aAAa,EAAE,QAAQ,GAAG,IAAI,EAAiB;IAC3G,OAAO,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CACvE,QAAQ,CACX,CAAC,CAAC,CAAC,CACA,2BACc,MAAM,gBACL,SAAS,eACV,UAAU,kBACN,OAAO,EACrB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,WAAW,CAAC;YACf,UAAU,EAAE,OAAO,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,MAAM,IAAI,CAAC,CAAC,CAAC,MAAM;YAC/D,SAAS,EAAE,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK;SAC9D,CAAC,GACJ,CACL,CAAC;AACN,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ComponentExample } from '../../utils/demo';
|
|
2
1
|
import { SkeletonProps } from '.';
|
|
2
|
+
import { ComponentExample, Preset } from '-/utils/demo';
|
|
3
|
+
export declare const presets: Preset<SkeletonProps>[];
|
|
3
4
|
export declare const SkeletonExample: ComponentExample<SkeletonProps>;
|
|
@@ -1,31 +1,35 @@
|
|
|
1
|
-
import { jsx as _jsx, Fragment as _Fragment
|
|
2
|
-
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
3
|
import { Avatar } from '../Avatar';
|
|
4
4
|
import { ExamplePlaceholder } from '../ExamplePlaceholder';
|
|
5
5
|
import { useTimeout } from '../../hooks/useTimeout';
|
|
6
|
+
export const presets = [
|
|
7
|
+
{
|
|
8
|
+
label: 'Loading Transition',
|
|
9
|
+
propState: {
|
|
10
|
+
width: '100px',
|
|
11
|
+
height: '100px',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
];
|
|
6
15
|
export const SkeletonExample = {
|
|
7
16
|
render: ({ props, preset, Component }) => {
|
|
8
17
|
if (preset?.label === 'Loading Transition')
|
|
9
|
-
return _jsx(SkeletonTransition, {
|
|
18
|
+
return _jsx(SkeletonTransition, { Component: Component, props: props });
|
|
10
19
|
return _jsx(Component, { ...props });
|
|
11
20
|
},
|
|
12
|
-
presets
|
|
13
|
-
{
|
|
14
|
-
label: 'Loading Transition',
|
|
15
|
-
propState: {
|
|
16
|
-
width: '100px',
|
|
17
|
-
height: '100px',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
],
|
|
21
|
+
presets,
|
|
21
22
|
};
|
|
22
|
-
function SkeletonTransition({ Component,
|
|
23
|
-
const loadingTimeout = useTimeout();
|
|
23
|
+
function SkeletonTransition({ Component, props, }) {
|
|
24
24
|
const [loaded, setLoaded] = useState(false);
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
loadingTimeout.set(() => setLoaded(true), 3000);
|
|
28
|
-
}, [loadingTimeout, props.variant]);
|
|
29
|
-
return (_jsx(Component, { ...props, children: loaded && (_jsxs(_Fragment, { children: [props.variant === 'rectangular' && (_jsx(ExamplePlaceholder, { height: props.height, width: props.width })), props.variant === 'circular' && (_jsx(ExamplePlaceholder, { height: props.height, style: { borderRadius: '100%' }, width: props.width })), props.variant === 'photo' && (_jsx(ExamplePlaceholder, { height: props.height, width: props.width, children: "Loaded" })), props.variant === 'profile' && _jsx(Avatar, { color: "red", name: "Bob Boberson" }), props.variant === 'thumbnail' && _jsx(ExamplePlaceholder, { height: props.height, width: props.width })] })) }));
|
|
25
|
+
useTimeout(() => setLoaded(true), 3000);
|
|
26
|
+
return (_jsx(Component, { ...props, children: loaded && _jsx(_Fragment, { children: PROP_VARIANT_CHILDREN[props.variant] }) }));
|
|
30
27
|
}
|
|
28
|
+
const PROP_VARIANT_CHILDREN = {
|
|
29
|
+
rectangular: _jsx(ExamplePlaceholder, { height: "100px", width: "100px" }),
|
|
30
|
+
circular: _jsx(ExamplePlaceholder, { height: "100px", style: { borderRadius: '100%' }, width: "100px" }),
|
|
31
|
+
photo: (_jsx(ExamplePlaceholder, { height: "100px", width: "100px", children: "Loaded" })),
|
|
32
|
+
profile: _jsx(Avatar, { color: "red", name: "Bob Robertson" }),
|
|
33
|
+
thumbnail: _jsx(ExamplePlaceholder, { height: "100px", width: "100px" }),
|
|
34
|
+
};
|
|
31
35
|
//# sourceMappingURL=SkeletonExample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonExample.js","sourceRoot":"","sources":["../../../src/components/Skeleton/SkeletonExample.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"SkeletonExample.js","sourceRoot":"","sources":["../../../src/components/Skeleton/SkeletonExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjC,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAC7C,OA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kB,IAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,uBAE3B,CACxB;IACD,OAAO,EAAE,KAAC,MAAM,IAAC,KAAK,EAAC,KAAK,EAAC,IAAI,EAAC,eAAe,GAAG;IACpD,SAAS,EAAE,KAAC,kBAAkB,IAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,OAAO,GAAG;CACjE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thumbnail.js","sourceRoot":"","sources":["../../../src/components/Skeleton/Thumbnail.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAiB,MAAM,YAAY,CAAC;AAErD,MAAM,UAAU,iBAAiB,CAAC,KAA8C;IAC5E,OAAO,KAAC,QAAQ,OAAK,KAAK,EAAE,OAAO,EAAC,WAAW,GAAG,CAAC;AACvD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Skeleton/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
import { TxtVariant } from '
|
|
2
|
+
import { TxtVariant } from '-/utils/txtVariants';
|
|
3
3
|
export type SkeletonTextProps = {
|
|
4
4
|
/**
|
|
5
5
|
* The variant of the text being loaded.
|
|
@@ -42,11 +42,7 @@ export type SkeletonTextProps = {
|
|
|
42
42
|
* @exampleDescription This example shows a skeleton loading state for some text but can be used for any element.
|
|
43
43
|
*
|
|
44
44
|
* @name SkeletonText
|
|
45
|
-
* @phase
|
|
45
|
+
* @phase UXReview
|
|
46
46
|
*/
|
|
47
|
-
declare function SkeletonText({ lines, variant, children }: SkeletonTextProps): string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
declare namespace SkeletonText {
|
|
49
|
-
var bspkName: string;
|
|
50
|
-
}
|
|
51
|
-
export { SkeletonText };
|
|
47
|
+
export declare function SkeletonText({ lines, variant, children }: SkeletonTextProps): string | number | true | Iterable<ReactNode> | import("react/jsx-runtime").JSX.Element;
|
|
52
48
|
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -19,14 +19,12 @@ import { cssWithVars } from '../../utils/cwv';
|
|
|
19
19
|
* @exampleDescription This example shows a skeleton loading state for some text but can be used for any element.
|
|
20
20
|
*
|
|
21
21
|
* @name SkeletonText
|
|
22
|
-
* @phase
|
|
22
|
+
* @phase UXReview
|
|
23
23
|
*/
|
|
24
|
-
function SkeletonText({ lines = 3, variant, children = null }) {
|
|
24
|
+
export function SkeletonText({ lines = 3, variant, children = null }) {
|
|
25
25
|
return children !== null && children !== undefined && children !== false ? (children) : (_jsx("div", { "aria-busy": "true", "aria-label": "Loading", "data-bspk": "skeleton-text", role: "status", style: cssWithVars({
|
|
26
26
|
'--text-height': `var(--${variant}-size)`,
|
|
27
27
|
'--text-margin': `calc(var(--${variant}-line-height) - var(--${variant}-size))`,
|
|
28
28
|
}), children: [...Array(Math.max(1, lines || 0))].map((_, index) => (_jsx("div", { "data-line": true }, index))) }));
|
|
29
29
|
}
|
|
30
|
-
SkeletonText.bspkName = 'SkeletonText';
|
|
31
|
-
export { SkeletonText };
|
|
32
30
|
//# sourceMappingURL=SkeletonText.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../src/components/SkeletonText/SkeletonText.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA2B1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,
|
|
1
|
+
{"version":3,"file":"SkeletonText.js","sourceRoot":"","sources":["../../../src/components/SkeletonText/SkeletonText.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AA2B1C;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,MAAM,UAAU,YAAY,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,OAAO,EAAE,QAAQ,GAAG,IAAI,EAAqB;IACnF,OAAO,QAAQ,KAAK,IAAI,IAAI,QAAQ,KAAK,SAAS,IAAI,QAAQ,KAAK,KAAK,CAAC,CAAC,CAAC,CACvE,QAAQ,CACX,CAAC,CAAC,CAAC,CACA,2BACc,MAAM,gBACL,SAAS,eACV,eAAe,EACzB,IAAI,EAAC,QAAQ,EACb,KAAK,EAAE,WAAW,CAAC;YACf,eAAe,EAAE,SAAS,OAAO,QAAQ;YACzC,eAAe,EAAE,cAAc,OAAO,yBAAyB,OAAO,SAAS;SAClF,CAAC,YAED,CAAC,GAAG,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC,CACnD,mCAAoB,KAAK,CAAI,CAChC,CAAC,GACA,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
import { ComponentExample } from '../../utils/demo';
|
|
2
1
|
import { SkeletonTextProps } from '.';
|
|
2
|
+
import { ComponentExample, Preset } from '-/utils/demo';
|
|
3
|
+
export declare const presets: Preset<SkeletonTextProps>[];
|
|
3
4
|
export declare const SkeletonTextExample: ComponentExample<SkeletonTextProps>;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
3
|
import { useTimeout } from '../../hooks/useTimeout';
|
|
4
|
+
export const presets = [
|
|
5
|
+
{
|
|
6
|
+
label: 'Loading Transition',
|
|
7
|
+
propState: {
|
|
8
|
+
variant: 'body-base',
|
|
9
|
+
lines: 3,
|
|
10
|
+
},
|
|
11
|
+
},
|
|
12
|
+
];
|
|
4
13
|
export const SkeletonTextExample = {
|
|
5
14
|
render: ({ props, preset, Component }) => {
|
|
6
15
|
if (preset?.label === 'Loading Transition')
|
|
7
16
|
return _jsx(SkeletonTextTransition, { ...props, Component: Component });
|
|
8
17
|
return _jsx(Component, { ...props });
|
|
9
18
|
},
|
|
10
|
-
presets
|
|
11
|
-
{
|
|
12
|
-
label: 'Loading Transition',
|
|
13
|
-
propState: {
|
|
14
|
-
variant: 'body-base',
|
|
15
|
-
lines: 3,
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
],
|
|
19
|
+
presets,
|
|
19
20
|
};
|
|
20
21
|
function SkeletonTextTransition({ Component, ...props }) {
|
|
21
22
|
const loadingTimeout = useTimeout();
|
|
@@ -23,6 +24,6 @@ function SkeletonTextTransition({ Component, ...props }) {
|
|
|
23
24
|
useEffect(() => {
|
|
24
25
|
loadingTimeout.set(() => setLoaded(true), 3000);
|
|
25
26
|
}, [loadingTimeout]);
|
|
26
|
-
return (_jsx(Component, { ...props, children: loaded && (_jsx("p", { children: "
|
|
27
|
+
return (_jsx(Component, { ...props, children: loaded && (_jsx("p", { children: "Synergetic actionables turn the ship, or vertical integration, offerings locked and loaded, so get buy-in." })) }));
|
|
27
28
|
}
|
|
28
29
|
//# sourceMappingURL=SkeletonTextExample.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SkeletonTextExample.js","sourceRoot":"","sources":["../../../src/components/SkeletonText/SkeletonTextExample.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"SkeletonTextExample.js","sourceRoot":"","sources":["../../../src/components/SkeletonText/SkeletonTextExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE5C,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAGhD,MAAM,CAAC,MAAM,OAAO,GAAgC;IAChD;QACI,KAAK,EAAE,oBAAoB;QAC3B,SAAS,EAAE;YACP,OAAO,EAAE,WAA2C;YACpD,KAAK,EAAE,CAAC;SACX;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAwC;IACpE,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,EAAE;QACrC,IAAI,MAAM,EAAE,KAAK,KAAK,oBAAoB;YAAE,OAAO,KAAC,sBAAsB,OAAK,KAAK,EAAE,SAAS,EAAE,SAAS,GAAI,CAAC;QAC/G,OAAO,KAAC,SAAS,OAAK,KAAK,GAAI,CAAC;IACpC,CAAC;IACD,OAAO;CACV,CAAC;AAEF,SAAS,sBAAsB,CAAC,EAC5B,SAAS,EACT,GAAG,KAAK,EAGX;IACG,MAAM,cAAc,GAAG,UAAU,EAAE,CAAC;IACpC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,SAAS,CAAC,GAAG,EAAE;QACX,cAAc,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC;IACpD,CAAC,EAAE,CAAC,cAAc,CAAC,CAAC,CAAC;IACrB,OAAO,CACH,KAAC,SAAS,OAAK,KAAK,YACf,MAAM,IAAI,CACP,qIAGI,CACP,GACO,CACf,CAAC;AACN,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import './slider.scss';
|
|
2
|
+
import { CommonPropsLibrary } from '-/types/common';
|
|
3
|
+
export type SliderValue = number | [number, number];
|
|
4
|
+
export type SliderProps<Value> = Pick<CommonPropsLibrary, 'disabled' | 'readOnly'> & {
|
|
5
|
+
/**
|
|
6
|
+
* The label of the slider.
|
|
7
|
+
*
|
|
8
|
+
* @required
|
|
9
|
+
*/
|
|
10
|
+
label: string;
|
|
11
|
+
/**
|
|
12
|
+
* The numerical value of the slider.
|
|
13
|
+
*
|
|
14
|
+
* Providing an array of two numbers will create a **range slider**.
|
|
15
|
+
*
|
|
16
|
+
* @required
|
|
17
|
+
*/
|
|
18
|
+
value: Value;
|
|
19
|
+
/**
|
|
20
|
+
* Invoked with the new value when value changes.
|
|
21
|
+
*
|
|
22
|
+
* @required
|
|
23
|
+
*/
|
|
24
|
+
onChange: (newValue: Value) => void;
|
|
25
|
+
/**
|
|
26
|
+
* The minimum value of the slider.
|
|
27
|
+
*
|
|
28
|
+
* @required
|
|
29
|
+
*/
|
|
30
|
+
min: number;
|
|
31
|
+
/**
|
|
32
|
+
* The maximum value of the slider.;
|
|
33
|
+
*
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
max: number;
|
|
37
|
+
/**
|
|
38
|
+
* Indicates if marks should be displayed on the slider.
|
|
39
|
+
*
|
|
40
|
+
* @default false
|
|
41
|
+
*/
|
|
42
|
+
marks?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* The number that specifies the granularity that the value must adhere to
|
|
45
|
+
*
|
|
46
|
+
* @default 1
|
|
47
|
+
*/
|
|
48
|
+
step?: number;
|
|
49
|
+
/**
|
|
50
|
+
* Optional function to format the display of each number.
|
|
51
|
+
*
|
|
52
|
+
* Useful for currency, percentages, etc.
|
|
53
|
+
*/
|
|
54
|
+
formatNumber?: (value: number, context?: 'max' | 'min' | 'rangeEnd' | 'rangeStart') => string;
|
|
55
|
+
/**
|
|
56
|
+
* The name of the slider input, useful for form submissions.
|
|
57
|
+
*
|
|
58
|
+
* @required
|
|
59
|
+
*/
|
|
60
|
+
name: string;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* A control element that allows customers to select a value or adjust a setting by moving the handle along a horizontal
|
|
64
|
+
* track.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* import { Slider } from '@bspk/ui/Slider';
|
|
68
|
+
* import { useState } from 'react';
|
|
69
|
+
*
|
|
70
|
+
* function Example() {
|
|
71
|
+
* const [value, setValue] = useState(50);
|
|
72
|
+
*
|
|
73
|
+
* return <Slider value={value} min={0} max={100} label="Slider Example" onChange={setValue} />;
|
|
74
|
+
* }
|
|
75
|
+
*
|
|
76
|
+
* @name Slider
|
|
77
|
+
* @phase UXReview
|
|
78
|
+
*/
|
|
79
|
+
export declare function Slider<V = SliderValue>({ value: valueProp, onChange, min, max, label, marks, step, disabled, readOnly, name, formatNumber: formatNumberProp, }: SliderProps<V>): import("react/jsx-runtime").JSX.Element;
|
|
80
|
+
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import './slider.css.js';
|
|
3
|
+
import { useEffect, useRef } from 'react';
|
|
4
|
+
import { SliderIntervalDots } from './SliderIntervalDots';
|
|
5
|
+
import { useNormalizeSliderValue } from './useNormalizeSliderValue';
|
|
6
|
+
import { Txt } from '../Txt';
|
|
7
|
+
/**
|
|
8
|
+
* A control element that allows customers to select a value or adjust a setting by moving the handle along a horizontal
|
|
9
|
+
* track.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import { Slider } from '@bspk/ui/Slider';
|
|
13
|
+
* import { useState } from 'react';
|
|
14
|
+
*
|
|
15
|
+
* function Example() {
|
|
16
|
+
* const [value, setValue] = useState(50);
|
|
17
|
+
*
|
|
18
|
+
* return <Slider value={value} min={0} max={100} label="Slider Example" onChange={setValue} />;
|
|
19
|
+
* }
|
|
20
|
+
*
|
|
21
|
+
* @name Slider
|
|
22
|
+
* @phase UXReview
|
|
23
|
+
*/
|
|
24
|
+
export function Slider({ value: valueProp, onChange, min, max, label, marks = false, step = 1, disabled = false, readOnly = false, name, formatNumber: formatNumberProp, }) {
|
|
25
|
+
const value = valueProp || min;
|
|
26
|
+
const formatNumber = (rawValue, context) => formatNumberProp?.(rawValue, context) || rawValue.toString();
|
|
27
|
+
const sliderRef = useRef(null);
|
|
28
|
+
const isDraggingRef = useRef(null);
|
|
29
|
+
const { normalizeSliderValue } = useNormalizeSliderValue({ min, max, step });
|
|
30
|
+
const isRange = Array.isArray(value);
|
|
31
|
+
let val0 = isRange ? value[0] : value;
|
|
32
|
+
let val1 = isRange ? value[1] : value;
|
|
33
|
+
// Always show the lower value first
|
|
34
|
+
if (isRange && val0 > val1) {
|
|
35
|
+
[val0, val1] = [val1, val0];
|
|
36
|
+
}
|
|
37
|
+
const displayValue = isRange
|
|
38
|
+
? [formatNumber(val0, 'rangeStart'), formatNumber(val1, 'rangeEnd')].join(' - ')
|
|
39
|
+
: formatNumber(val0, 'rangeStart');
|
|
40
|
+
const percent0 = Math.min(Math.max(((val0 - min) / (max - min)) * 100, 0), 100);
|
|
41
|
+
const percent1 = Math.min(Math.max(((val1 - min) / (max - min)) * 100, 0), 100);
|
|
42
|
+
const getValueFromPosition = (clientX) => {
|
|
43
|
+
const slider = sliderRef.current;
|
|
44
|
+
if (!slider)
|
|
45
|
+
return min;
|
|
46
|
+
const { left, width } = slider.getBoundingClientRect();
|
|
47
|
+
let percent = (clientX - left) / width;
|
|
48
|
+
percent = Math.max(0, Math.min(1, percent));
|
|
49
|
+
return normalizeSliderValue(min + percent * (max - min));
|
|
50
|
+
};
|
|
51
|
+
const handleMouseMove = (e) => {
|
|
52
|
+
if (isDraggingRef.current === null || disabled || readOnly)
|
|
53
|
+
return;
|
|
54
|
+
const newValue = getValueFromPosition(e.clientX);
|
|
55
|
+
const normalValue = normalizeSliderValue(newValue);
|
|
56
|
+
let nextValue = normalValue;
|
|
57
|
+
if (isRange)
|
|
58
|
+
nextValue = isDraggingRef.current === 0 ? [normalValue, val1] : [val0, normalValue];
|
|
59
|
+
onChange(nextValue);
|
|
60
|
+
};
|
|
61
|
+
const handleMouseUp = () => {
|
|
62
|
+
isDraggingRef.current = null;
|
|
63
|
+
window.removeEventListener('mousemove', handleMouseMove);
|
|
64
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
|
65
|
+
};
|
|
66
|
+
const handleTrackClick = (e) => {
|
|
67
|
+
if (disabled || readOnly)
|
|
68
|
+
return;
|
|
69
|
+
const clickValue = getValueFromPosition(e.clientX);
|
|
70
|
+
let nextValue = normalizeSliderValue(clickValue);
|
|
71
|
+
if (isRange) {
|
|
72
|
+
if (Math.abs(clickValue - val0) < Math.abs(clickValue - val1)) {
|
|
73
|
+
nextValue = [clickValue, val1];
|
|
74
|
+
isDraggingRef.current = 0;
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
nextValue = [val0, clickValue];
|
|
78
|
+
isDraggingRef.current = 1;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
onChange(nextValue);
|
|
82
|
+
};
|
|
83
|
+
const handleKnobMouseDown = (knobIndex) => (e) => {
|
|
84
|
+
if (disabled || readOnly)
|
|
85
|
+
return;
|
|
86
|
+
e.stopPropagation();
|
|
87
|
+
isDraggingRef.current = knobIndex;
|
|
88
|
+
window.addEventListener('mousemove', handleMouseMove);
|
|
89
|
+
window.addEventListener('mouseup', handleMouseUp);
|
|
90
|
+
};
|
|
91
|
+
const handleKnobKeyDown = (knobIndex) => (e) => {
|
|
92
|
+
if (disabled || readOnly)
|
|
93
|
+
return;
|
|
94
|
+
let newValue = knobIndex === 0 ? val0 : val1;
|
|
95
|
+
if (e.key === 'ArrowLeft')
|
|
96
|
+
newValue -= step;
|
|
97
|
+
else if (e.key === 'ArrowRight')
|
|
98
|
+
newValue += step;
|
|
99
|
+
else
|
|
100
|
+
return;
|
|
101
|
+
newValue = normalizeSliderValue(newValue);
|
|
102
|
+
let nextValue = newValue;
|
|
103
|
+
if (isRange) {
|
|
104
|
+
if (knobIndex === 0)
|
|
105
|
+
nextValue = [newValue, val1];
|
|
106
|
+
else
|
|
107
|
+
nextValue = [val0, newValue];
|
|
108
|
+
}
|
|
109
|
+
onChange(nextValue);
|
|
110
|
+
};
|
|
111
|
+
useEffect(() => {
|
|
112
|
+
return () => {
|
|
113
|
+
window.removeEventListener('mousemove', handleMouseMove);
|
|
114
|
+
window.removeEventListener('mouseup', handleMouseUp);
|
|
115
|
+
};
|
|
116
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
117
|
+
}, []);
|
|
118
|
+
return (_jsxs("div", { "data-bspk": "slider", "data-disabled": disabled || undefined, "data-readonly": readOnly || undefined, children: [_jsx("input", { name: name, type: "hidden", value: isRange ? `${val0},${val1}` : val0 }), _jsxs("div", { "data-top-labels": true, children: [_jsx(Txt, { variant: "labels-small", children: label }), _jsx(Txt, { "data-value-label": true, children: displayValue })] }), _jsxs("div", { "data-slider-parent": true, children: [_jsxs("div", { "aria-disabled": disabled || undefined, "aria-label": label, "aria-readonly": readOnly || undefined, "aria-valuemax": max, "aria-valuemin": min, "aria-valuenow": val0, "aria-valuetext": displayValue, "data-slider-body": true, onClick: handleTrackClick, onKeyDown: (e) => {
|
|
119
|
+
if (disabled || readOnly)
|
|
120
|
+
return;
|
|
121
|
+
if (e.key === 'ArrowLeft' || e.key === 'ArrowRight') {
|
|
122
|
+
if (!isRange) {
|
|
123
|
+
handleKnobKeyDown(0)(e);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}, ref: sliderRef, role: "slider", tabIndex: disabled ? -1 : 0, children: [_jsx("div", { "data-slider-background": true }), _jsx("div", { "data-slider-fill": true, style: {
|
|
127
|
+
left: isRange ? `${percent0}%` : '0%',
|
|
128
|
+
width: isRange ? `${percent1 - percent0}%` : `${percent0}%`,
|
|
129
|
+
} }), marks && (_jsx(SliderIntervalDots, { max: max, min: min, step: step, value: isRange ? [val0, val1] : val0 }))] }), isRange && (_jsx("div", { "aria-label": `${label} start`, "aria-valuemax": max, "aria-valuemin": min, "aria-valuenow": val0, "aria-valuetext": val0.toString(), "data-slider-knob": true, onKeyDown: handleKnobKeyDown(0), onMouseDown: handleKnobMouseDown(0), role: "slider", style: { left: `calc(${percent0}% - 8px)` }, tabIndex: disabled ? -1 : 0 })), _jsx("div", { "aria-label": isRange ? `${label} end` : label, "aria-valuemax": max, "aria-valuemin": min, "aria-valuenow": val1, "aria-valuetext": val1?.toString(), "data-slider-knob": true, onKeyDown: handleKnobKeyDown(isRange ? 1 : 0), onMouseDown: handleKnobMouseDown(isRange ? 1 : 0), role: "slider", style: { left: `calc(${percent1}% - 8px)` }, tabIndex: disabled ? -1 : 0 })] }), _jsxs("div", { "data-bottom-labels": true, children: [_jsx(Txt, { "data-min-label": true, variant: "body-small", children: formatNumber(min, 'min') }), _jsx(Txt, { "data-max-label": true, variant: "body-small", children: formatNumber(max, 'max') })] })] }));
|
|
130
|
+
}
|
|
131
|
+
//# sourceMappingURL=Slider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACpE,OAAO,EAAE,GAAG,EAAE,MAAM,kBAAkB,CAAC;AAgEvC;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,UAAU,MAAM,CAAkB,EACpC,KAAK,EAAE,SAAS,EAChB,QAAQ,EACR,GAAG,EACH,GAAG,EACH,KAAK,EACL,KAAK,GAAG,KAAK,EACb,IAAI,GAAG,CAAC,EACR,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,IAAI,EACJ,YAAY,EAAE,gBAAgB,GACjB;IACb,MAAM,KAAK,GAAI,SAAe,IAAI,GA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SliderExample = {
|
|
4
|
+
// containerStyle: { width: '100%' },
|
|
5
|
+
render: ({ props, Component }) => {
|
|
6
|
+
const SliderDemo = (sliderProps) => {
|
|
7
|
+
const initialValue = Array.isArray(sliderProps.value)
|
|
8
|
+
? sliderProps.value
|
|
9
|
+
: typeof sliderProps.value === 'number'
|
|
10
|
+
? sliderProps.value
|
|
11
|
+
: 0;
|
|
12
|
+
const [value, setValue] = useState(initialValue);
|
|
13
|
+
return _jsx(Component, { ...sliderProps, onChange: setValue, value: value });
|
|
14
|
+
};
|
|
15
|
+
return _jsx(SliderDemo, { ...props, max: props.max || 100, min: props.min || 0, value: props.value || 50 });
|
|
16
|
+
},
|
|
17
|
+
presets: [
|
|
18
|
+
{
|
|
19
|
+
label: 'Basic Slider',
|
|
20
|
+
propState: {
|
|
21
|
+
label: 'Basic option',
|
|
22
|
+
min: 20,
|
|
23
|
+
max: 80,
|
|
24
|
+
step: 1,
|
|
25
|
+
value: 30,
|
|
26
|
+
formatNumber: (num) => `$${num}`,
|
|
27
|
+
name: 'basic-slider',
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
label: 'Range Slider',
|
|
32
|
+
propState: {
|
|
33
|
+
label: 'Range option',
|
|
34
|
+
min: 0,
|
|
35
|
+
max: 100,
|
|
36
|
+
step: 1,
|
|
37
|
+
value: [70, 80],
|
|
38
|
+
formatNumber: (num) => {
|
|
39
|
+
return `${num}%`;
|
|
40
|
+
},
|
|
41
|
+
name: 'range-slider',
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: 'Undefined Value',
|
|
46
|
+
propState: {
|
|
47
|
+
label: 'undefined',
|
|
48
|
+
min: 50,
|
|
49
|
+
max: 150,
|
|
50
|
+
step: 1,
|
|
51
|
+
value: null,
|
|
52
|
+
formatNumber: (num, context) => {
|
|
53
|
+
if (context === 'max')
|
|
54
|
+
return `${num}% Passing`;
|
|
55
|
+
return `${num}%`;
|
|
56
|
+
},
|
|
57
|
+
name: 'undefined-slider',
|
|
58
|
+
},
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
};
|
|
62
|
+
//# sourceMappingURL=SliderExample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderExample.js","sourceRoot":"","sources":["../../../src/components/Slider/SliderExample.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAKjC,MAAM,CAAC,MAAM,aAAa,GAA6D;IACnF,qCAAqC;IACrC,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,EAAE,EAAE;QAC7B,MAAM,UAAU,GAAG,CAAC,WAAmD,EAAE,EAAE;YACvE,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,KAAK,CAAC;gBACjD,CAAC,CAAC,WAAW,CAAC,KAAK;gBACnB,CAAC,CAAC,OAAO,WAAW,CAAC,KAAK,KAAK,QAAQ;oBACrC,CAAC,CAAC,WAAW,CAAC,KAAK;oBACnB,CAAC,CAAC,CAAC,CAAC;YAEV,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;YAEjD,OAAO,KAAC,SAAS,OAAK,WAAW,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,GAAI,CAAC;QAC5E,CAAC,CAAC;QAEF,OAAO,KAAC,UAAU,OAAK,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,IAAI,EAAE,GAAI,CAAC;IAC3G,CAAC;IACD,OAAO,EAAE;QACL;YACI,KAAK,EAAE,cAAc;YACrB,SAAS,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,GAAG,EAAE,EAAE;gBACP,GAAG,EAAE,EAAE;gBACP,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,EAAE;gBACT,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,GAAG,EAAE;gBAChC,IAAI,EAAE,cAAc;aACvB;SACJ;QACD;YACI,KAAK,EAAE,cAAc;YACrB,SAAS,EAAE;gBACP,KAAK,EAAE,cAAc;gBACrB,GAAG,EAAE,CAAC;gBACN,GAAG,EAAE,GAAG;gBACR,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;gBACf,YAAY,EAAE,CAAC,GAAG,EAAE,EAAE;oBAClB,OAAO,GAAG,GAAG,GAAG,CAAC;gBACrB,CAAC;gBACD,IAAI,EAAE,cAAc;aACvB;SACJ;QACD;YACI,KAAK,EAAE,iBAAiB;YACxB,SAAS,EAAE;gBACP,KAAK,EAAE,WAAW;gBAClB,GAAG,EAAE,EAAE;gBACP,GAAG,EAAE,GAAG;gBACR,IAAI,EAAE,CAAC;gBACP,KAAK,EAAE,IAAmC;gBAC1C,YAAY,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;oBAC3B,IAAI,OAAO,KAAK,KAAK;wBAAE,OAAO,GAAG,GAAG,WAAW,CAAC;oBAChD,OAAO,GAAG,GAAG,GAAG,CAAC;gBACrB,CAAC;gBACD,IAAI,EAAE,kBAAkB;aAC3B;SACJ;KACJ;CACJ,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SliderProps, SliderValue } from './Slider';
|
|
2
|
+
type IntervalDotProps = Pick<SliderProps<SliderValue>, 'max' | 'min' | 'value'> & {
|
|
3
|
+
step: number;
|
|
4
|
+
};
|
|
5
|
+
export declare function SliderIntervalDots({ step, max, min, value }: IntervalDotProps): import("react/jsx-runtime").JSX.Element[] | null;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
export function SliderIntervalDots({ step, max, min, value }) {
|
|
3
|
+
if (step <= 0)
|
|
4
|
+
return null;
|
|
5
|
+
const count = Math.floor((max - min) / step);
|
|
6
|
+
const dots = [];
|
|
7
|
+
for (let i = 1; i < count; i++) {
|
|
8
|
+
const pointValue = i * step;
|
|
9
|
+
const percent = (pointValue / (max - min)) * 100;
|
|
10
|
+
dots.push(_jsx("div", { "data-filled-section": typeof value === 'number'
|
|
11
|
+
? pointValue < value
|
|
12
|
+
? ''
|
|
13
|
+
: undefined
|
|
14
|
+
: pointValue < value[0]
|
|
15
|
+
? ''
|
|
16
|
+
: undefined, "data-interval-dot": true, style: { left: `${percent}%` } }, i));
|
|
17
|
+
}
|
|
18
|
+
return dots;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=SliderIntervalDots.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderIntervalDots.js","sourceRoot":"","sources":["../../../src/components/Slider/SliderIntervalDots.tsx"],"names":[],"mappings":";AAMA,MAAM,UAAU,kBAAkB,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAoB;IAC1E,IAAI,IAAI,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IAE3B,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAG,EAAE,CAAC;IAEhB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,EAAE,CAAC,EAAE,EAAE,CAAC;QAC7B,MAAM,UAAU,GAAG,CAAC,GAAG,IAAI,CAAC;QAC5B,MAAM,OAAO,GAAG,CAAC,UAAU,GAAG,CAAC,GAAG,GAAG,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC;QACjD,IAAI,CAAC,IAAI,CACL,qCAEQ,OAAO,KAAK,KAAK,QAAQ;gBACrB,CAAC,CAAC,UAAU,GAAG,KAAK;oBAChB,CAAC,CAAC,EAAE;oBACJ,CAAC,CAAC,SAAS;gBACf,CAAC,CAAC,UAAU,GAAG,KAAK,CAAC,CAAC,CAAC;oBACrB,CAAC,CAAC,EAAE;oBACJ,CAAC,CAAC,SAAS,6BAIrB,KAAK,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,GAAG,EAAE,IADzB,CAAC,CAER,CACL,CAAC;IACN,CAAC;IAED,OAAO,IAAI,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Slider';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|