@bspk/ui 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.d.ts +19 -3
- package/dist/components/Accordion/Accordion.js +20 -3
- package/dist/components/Accordion/Accordion.js.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts +13 -14
- package/dist/components/Avatar/Avatar.js +13 -14
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +29 -12
- package/dist/components/AvatarGroup/AvatarGroup.js +29 -12
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/components/Badge/Badge.d.ts +1 -3
- package/dist/components/Badge/Badge.js +1 -3
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/BadgeDot/BadgeDot.d.ts +4 -4
- package/dist/components/BadgeDot/BadgeDot.js +5 -4
- package/dist/components/BadgeDot/BadgeDot.js.map +1 -1
- package/dist/components/BannerAlert/BannerAlert.d.ts +11 -12
- package/dist/components/BannerAlert/BannerAlert.js +11 -12
- package/dist/components/BannerAlert/BannerAlert.js.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigation.d.ts +6 -3
- package/dist/components/BottomNavigation/BottomNavigation.js +6 -3
- package/dist/components/BottomNavigation/BottomNavigation.js.map +1 -1
- package/dist/components/BottomNavigation/BottomNavigationExample.js +31 -36
- package/dist/components/BottomNavigation/BottomNavigationExample.js.map +1 -1
- package/dist/components/BottomNavigation/bottom-navigation.css +8 -1
- package/dist/components/BottomNavigation/bottom-navigation.css.js +8 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +17 -18
- package/dist/components/Breadcrumb/Breadcrumb.js +17 -18
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbDropdown.d.ts +6 -0
- package/dist/components/Breadcrumb/BreadcrumbDropdown.js +6 -0
- package/dist/components/Breadcrumb/BreadcrumbDropdown.js.map +1 -1
- package/dist/components/Button/Button.d.ts +1 -11
- package/dist/components/Button/Button.js +1 -11
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/ButtonExample.js +1 -3
- package/dist/components/Button/ButtonExample.js.map +1 -1
- package/dist/components/ButtonDock/ButtonDock.d.ts +10 -14
- package/dist/components/ButtonDock/ButtonDock.js +10 -14
- package/dist/components/ButtonDock/ButtonDock.js.map +1 -1
- package/dist/components/Card/Card.d.ts +8 -10
- package/dist/components/Card/Card.js +6 -10
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +9 -13
- package/dist/components/Carousel/Carousel.js +9 -13
- package/dist/components/Carousel/Carousel.js.map +1 -1
- package/dist/components/Carousel/CarouselExample.js +14 -14
- package/dist/components/Carousel/CarouselExample.js.map +1 -1
- package/dist/components/Checkbox/Checkbox.d.ts +7 -4
- package/dist/components/Checkbox/Checkbox.js +7 -4
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +3 -3
- package/dist/components/CheckboxGroup/CheckboxGroup.js +3 -3
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js.map +1 -1
- package/dist/components/CheckboxOption/CheckboxOption.d.ts +4 -4
- package/dist/components/CheckboxOption/CheckboxOption.js +4 -4
- package/dist/components/Chip/Chip.d.ts +3 -7
- package/dist/components/Chip/Chip.js +3 -7
- package/dist/components/Chip/Chip.js.map +1 -1
- package/dist/components/Chip/ChipExample.js +50 -3
- package/dist/components/Chip/ChipExample.js.map +1 -1
- package/dist/components/ChipGroup/ChipGroup.d.ts +21 -10
- package/dist/components/ChipGroup/ChipGroup.js +21 -10
- package/dist/components/ChipGroup/ChipGroup.js.map +1 -1
- package/dist/components/ChipGroup/ChipGroupExample.js +1 -0
- package/dist/components/ChipGroup/ChipGroupExample.js.map +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +13 -12
- package/dist/components/DatePicker/DatePicker.js +13 -12
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/Dialog/Dialog.d.ts +11 -6
- package/dist/components/Dialog/Dialog.js +11 -6
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Divider/Divider.d.ts +5 -9
- package/dist/components/Divider/Divider.js +5 -9
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/Divider/DividerExample.js +16 -1
- package/dist/components/Divider/DividerExample.js.map +1 -1
- package/dist/components/Drawer/Drawer.d.ts +3 -3
- package/dist/components/Drawer/Drawer.js +3 -3
- package/dist/components/Drawer/Drawer.js.map +1 -1
- package/dist/components/EmptyState/EmptyState.d.ts +3 -7
- package/dist/components/EmptyState/EmptyState.js +3 -7
- package/dist/components/EmptyState/EmptyState.js.map +1 -1
- package/dist/components/Fab/Fab.d.ts +4 -5
- package/dist/components/Fab/Fab.js +4 -6
- package/dist/components/Fab/Fab.js.map +1 -1
- package/dist/components/Fab/FabExample.d.ts +2 -1
- package/dist/components/Fab/FabExample.js +20 -2
- package/dist/components/Fab/FabExample.js.map +1 -1
- package/dist/components/Field/Field.d.ts +4 -5
- package/dist/components/Field/Field.js +4 -5
- package/dist/components/Field/Field.js.map +1 -1
- package/dist/components/Field/FieldDescription.d.ts +7 -5
- package/dist/components/Field/FieldDescription.js +7 -3
- package/dist/components/Field/FieldDescription.js.map +1 -1
- package/dist/components/Field/FieldError.d.ts +6 -0
- package/dist/components/Field/FieldError.js +6 -0
- package/dist/components/Field/FieldError.js.map +1 -1
- package/dist/components/Field/FieldLabel.d.ts +6 -0
- package/dist/components/Field/FieldLabel.js +6 -0
- package/dist/components/Field/FieldLabel.js.map +1 -1
- package/dist/components/Field/utils.d.ts +5 -0
- package/dist/components/Field/utils.js +5 -0
- package/dist/components/Field/utils.js.map +1 -1
- package/dist/components/FileUpload/FileUpload.d.ts +3 -3
- package/dist/components/FileUpload/FileUpload.js +3 -3
- package/dist/components/FileUploadItem/FileUploadItem.d.ts +6 -10
- package/dist/components/FileUploadItem/FileUploadItem.js +6 -10
- package/dist/components/FileUploadItem/FileUploadItem.js.map +1 -1
- package/dist/components/FormField/FormField.d.ts +5 -16
- package/dist/components/FormField/FormField.js +5 -16
- package/dist/components/FormField/FormField.js.map +1 -1
- package/dist/components/Img/Img.d.ts +1 -3
- package/dist/components/Img/Img.js +1 -3
- package/dist/components/Img/Img.js.map +1 -1
- package/dist/components/InlineAlert/InlineAlert.d.ts +1 -3
- package/dist/components/InlineAlert/InlineAlert.js +1 -3
- package/dist/components/InlineAlert/InlineAlert.js.map +1 -1
- package/dist/components/InlineAlert/SvgWarningTwoTone.d.ts +6 -0
- package/dist/components/InlineAlert/SvgWarningTwoTone.js +6 -0
- package/dist/components/InlineAlert/SvgWarningTwoTone.js.map +1 -1
- package/dist/components/Input/Input.d.ts +13 -13
- package/dist/components/Input/Input.js +13 -13
- package/dist/components/Input/InputElement.d.ts +11 -5
- package/dist/components/Input/InputElement.js +11 -5
- package/dist/components/Input/InputElement.js.map +1 -1
- package/dist/components/InputNumber/IncrementButton.d.ts +13 -3
- package/dist/components/InputNumber/IncrementButton.js +11 -4
- package/dist/components/InputNumber/IncrementButton.js.map +1 -1
- package/dist/components/InputNumber/InputNumber.d.ts +20 -20
- package/dist/components/InputNumber/InputNumber.js +46 -30
- package/dist/components/InputNumber/InputNumber.js.map +1 -1
- package/dist/components/InputNumber/InputNumberExample.js +1 -0
- package/dist/components/InputNumber/InputNumberExample.js.map +1 -1
- package/dist/components/InputNumber/input-number.css +6 -0
- package/dist/components/InputNumber/input-number.css.js +6 -0
- package/dist/components/InputPhone/InputPhone.d.ts +21 -16
- package/dist/components/InputPhone/InputPhone.js +21 -16
- package/dist/components/InputPhone/InputPhone.js.map +1 -1
- package/dist/components/Layout/Layout.d.ts +1 -3
- package/dist/components/Layout/Layout.js +1 -3
- package/dist/components/Layout/Layout.js.map +1 -1
- package/dist/components/Link/Link.d.ts +1 -3
- package/dist/components/Link/Link.js +1 -3
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/ListItem/ListItem.d.ts +22 -21
- package/dist/components/ListItem/ListItem.js +19 -16
- package/dist/components/ListItem/ListItem.js.map +1 -1
- package/dist/components/Menu/Menu.d.ts +5 -9
- package/dist/components/Menu/Menu.js +5 -9
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Modal/Modal.d.ts +4 -4
- package/dist/components/Modal/Modal.js +4 -4
- package/dist/components/Modal/Modal.js.map +1 -1
- package/dist/components/Modal/modal.css +12 -1
- package/dist/components/Modal/modal.css.js +12 -1
- package/dist/components/OTPInput/OTPInput.d.ts +5 -3
- package/dist/components/OTPInput/OTPInput.js +5 -3
- package/dist/components/OTPInput/OTPInput.js.map +1 -1
- package/dist/components/PageControl/PageControl.d.ts +1 -3
- package/dist/components/PageControl/PageControl.js +1 -3
- package/dist/components/PageControl/PageControl.js.map +1 -1
- package/dist/components/Pagination/PageList.d.ts +6 -0
- package/dist/components/Pagination/PageList.js +6 -0
- package/dist/components/Pagination/PageList.js.map +1 -1
- package/dist/components/Pagination/Pagination.d.ts +6 -7
- package/dist/components/Pagination/Pagination.js +28 -15
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/pagination.css +5 -14
- package/dist/components/Pagination/pagination.css.js +5 -14
- package/dist/components/Password/Password.d.ts +19 -20
- package/dist/components/Password/Password.js +19 -20
- package/dist/components/Password/Password.js.map +1 -1
- package/dist/components/Popover/Popover.d.ts +11 -20
- package/dist/components/Popover/Popover.js +11 -20
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Popover/PopoverExample.js +1 -1
- package/dist/components/Popover/PopoverExample.js.map +1 -1
- package/dist/components/ProgressBar/ProgressBar.d.ts +1 -3
- package/dist/components/ProgressBar/ProgressBar.js +1 -3
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -3
- package/dist/components/ProgressCircle/ProgressCircle.js +1 -3
- package/dist/components/ProgressCircle/ProgressCircle.js.map +1 -1
- package/dist/components/ProgressionStepper/ProgressionStepper.d.ts +1 -3
- package/dist/components/ProgressionStepper/ProgressionStepper.js +1 -3
- package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/RadioGroup/RadioGroup.js +2 -2
- package/dist/components/Rating/Rating.d.ts +2 -4
- package/dist/components/Rating/Rating.js +8 -6
- package/dist/components/Rating/Rating.js.map +1 -1
- package/dist/components/Rating/RatingExample.js +17 -1
- package/dist/components/Rating/RatingExample.js.map +1 -1
- package/dist/components/Scrim/Scrim.d.ts +0 -1
- package/dist/components/Scrim/Scrim.js +0 -1
- package/dist/components/Scrim/Scrim.js.map +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +2 -2
- package/dist/components/SearchBar/SearchBar.js +2 -2
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +3 -3
- package/dist/components/SegmentedControl/SegmentedControl.js +3 -3
- package/dist/components/SegmentedControl/SegmentedControlExample.js +10 -12
- package/dist/components/SegmentedControl/SegmentedControlExample.js.map +1 -1
- package/dist/components/Select/Select.d.ts +33 -34
- package/dist/components/Select/Select.js +33 -34
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Skeleton/Circular.d.ts +6 -0
- package/dist/components/Skeleton/Circular.js +6 -0
- package/dist/components/Skeleton/Circular.js.map +1 -1
- package/dist/components/Skeleton/Photo.d.ts +6 -0
- package/dist/components/Skeleton/Photo.js +6 -0
- package/dist/components/Skeleton/Photo.js.map +1 -1
- package/dist/components/Skeleton/Profile.d.ts +6 -0
- package/dist/components/Skeleton/Profile.js +6 -0
- package/dist/components/Skeleton/Profile.js.map +1 -1
- package/dist/components/Skeleton/Rectangular.d.ts +6 -0
- package/dist/components/Skeleton/Rectangular.js +6 -0
- package/dist/components/Skeleton/Rectangular.js.map +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +10 -14
- package/dist/components/Skeleton/Skeleton.js +10 -14
- package/dist/components/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/Skeleton/SkeletonExample.js +4 -3
- package/dist/components/Skeleton/SkeletonExample.js.map +1 -1
- package/dist/components/Skeleton/Thumbnail.d.ts +6 -0
- package/dist/components/Skeleton/Thumbnail.js +6 -0
- package/dist/components/Skeleton/Thumbnail.js.map +1 -1
- package/dist/components/SkeletonText/SkeletonText.d.ts +5 -9
- package/dist/components/SkeletonText/SkeletonText.js +5 -9
- package/dist/components/SkeletonText/SkeletonText.js.map +1 -1
- package/dist/components/Slider/Slider.d.ts +2 -2
- package/dist/components/Slider/Slider.js +2 -2
- package/dist/components/Slider/SliderExample.js +40 -18
- package/dist/components/Slider/SliderExample.js.map +1 -1
- package/dist/components/Slider/SliderIntervalDots.d.ts +6 -0
- package/dist/components/Slider/SliderIntervalDots.js +6 -0
- package/dist/components/Slider/SliderIntervalDots.js.map +1 -1
- package/dist/components/Snackbar/Manager.d.ts +28 -0
- package/dist/components/Snackbar/Manager.js +34 -0
- package/dist/components/Snackbar/Manager.js.map +1 -0
- package/dist/components/Snackbar/Snackbar.d.ts +23 -6
- package/dist/components/Snackbar/Snackbar.js +23 -5
- package/dist/components/Snackbar/Snackbar.js.map +1 -1
- package/dist/components/Snackbar/SnackbarExample.js +8 -1
- package/dist/components/Snackbar/SnackbarExample.js.map +1 -1
- package/dist/components/Snackbar/index.d.ts +1 -0
- package/dist/components/Snackbar/index.js +1 -0
- package/dist/components/Snackbar/index.js.map +1 -1
- package/dist/components/StylesProviderDemo/StylesProviderDemo.d.ts +1 -3
- package/dist/components/StylesProviderDemo/StylesProviderDemo.js +1 -3
- package/dist/components/StylesProviderDemo/StylesProviderDemo.js.map +1 -1
- package/dist/components/Switch/Switch.d.ts +2 -2
- package/dist/components/Switch/Switch.js +2 -2
- package/dist/components/TabGroup/TabGroup.d.ts +2 -2
- package/dist/components/TabGroup/TabGroup.js +2 -2
- package/dist/components/TabGroup/TabGroupExample.js +5 -11
- package/dist/components/TabGroup/TabGroupExample.js.map +1 -1
- package/dist/components/TabGroup/tab-group.css +1 -0
- package/dist/components/TabGroup/tab-group.css.js +1 -0
- package/dist/components/TabList/TabList.d.ts +2 -2
- package/dist/components/TabList/TabList.js +3 -4
- package/dist/components/TabList/TabList.js.map +1 -1
- package/dist/components/TabList/tab-list.css +0 -1
- package/dist/components/TabList/tab-list.css.js +0 -1
- package/dist/components/Table/Footer.d.ts +6 -0
- package/dist/components/Table/Footer.js +6 -0
- package/dist/components/Table/Footer.js.map +1 -1
- package/dist/components/Table/Table.d.ts +53 -16
- package/dist/components/Table/Table.js +53 -16
- package/dist/components/Table/Table.js.map +1 -1
- package/dist/components/Table/table.css +0 -1
- package/dist/components/Table/table.css.js +0 -1
- package/dist/components/Tag/Tag.d.ts +1 -3
- package/dist/components/Tag/Tag.js +1 -3
- package/dist/components/Tag/Tag.js.map +1 -1
- package/dist/components/Textarea/Textarea.d.ts +13 -13
- package/dist/components/Textarea/Textarea.js +13 -13
- package/dist/components/TimePicker/Listbox.d.ts +6 -0
- package/dist/components/TimePicker/Listbox.js +6 -0
- package/dist/components/TimePicker/Listbox.js.map +1 -1
- package/dist/components/TimePicker/Segment.d.ts +6 -0
- package/dist/components/TimePicker/Segment.js +6 -0
- package/dist/components/TimePicker/Segment.js.map +1 -1
- package/dist/components/TimePicker/TimePicker.d.ts +14 -14
- package/dist/components/TimePicker/TimePicker.js +14 -14
- package/dist/components/ToggleOption/ToggleOption.js +1 -1
- package/dist/components/ToggleOption/ToggleOption.js.map +1 -1
- package/dist/components/ToggleOption/toggle-option.css +2 -49
- package/dist/components/ToggleOption/toggle-option.css.js +2 -49
- package/dist/components/Tooltip/Tooltip.d.ts +3 -7
- package/dist/components/Tooltip/Tooltip.js +3 -7
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/TooltipExample.js +23 -3
- package/dist/components/Tooltip/TooltipExample.js.map +1 -1
- package/dist/components/Truncated/Truncated.d.ts +0 -1
- package/dist/components/Truncated/Truncated.js +1 -2
- package/dist/components/Truncated/Truncated.js.map +1 -1
- package/dist/components/Txt/Txt.d.ts +1 -3
- package/dist/components/Txt/Txt.js +1 -3
- package/dist/components/Txt/Txt.js.map +1 -1
- package/dist/components/UIProvider/AriaLiveMessageHandler.js +3 -2
- package/dist/components/UIProvider/AriaLiveMessageHandler.js.map +1 -1
- package/dist/components/UIProvider/UIProvider.d.ts +0 -1
- package/dist/components/UIProvider/UIProvider.js +0 -1
- package/dist/components/UIProvider/UIProvider.js.map +1 -1
- package/dist/hooks/useAddEventListener.d.ts +1 -2
- package/dist/hooks/useAddEventListener.js.map +1 -1
- package/dist/hooks/useLongPress.d.ts +30 -15
- package/dist/hooks/useLongPress.js +26 -42
- package/dist/hooks/useLongPress.js.map +1 -1
- package/dist/hooks/useRadioState.d.ts +1 -1
- package/dist/hooks/useTimeout.d.ts +1 -2
- package/dist/hooks/useTimeout.js +20 -4
- package/dist/hooks/useTimeout.js.map +1 -1
- package/dist/styles/base.css +9 -0
- package/dist/styles/base.css.js +9 -0
- package/dist/types/common.d.ts +3 -0
- package/dist/types/common.js.map +1 -1
- package/dist/types/meta.d.ts +1 -0
- package/dist/types/meta.js.map +1 -1
- package/dist/utils/createCustomEvent.d.ts +17 -0
- package/dist/utils/createCustomEvent.js +21 -0
- package/dist/utils/createCustomEvent.js.map +1 -0
- package/dist/utils/createExampleChildElement.js +3 -3
- package/dist/utils/createExampleChildElement.js.map +1 -1
- package/dist/utils/demo.d.ts +18 -26
- package/dist/utils/demo.js.map +1 -1
- package/meta.ts +6 -1
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +20 -3
- package/src/components/Avatar/Avatar.tsx +13 -14
- package/src/components/AvatarGroup/AvatarGroup.tsx +30 -13
- package/src/components/Badge/Badge.tsx +1 -3
- package/src/components/BadgeDot/BadgeDot.tsx +6 -4
- package/src/components/BannerAlert/BannerAlert.tsx +11 -12
- package/src/components/BottomNavigation/BottomNavigation.tsx +6 -3
- package/src/components/BottomNavigation/BottomNavigationExample.tsx +31 -36
- package/src/components/BottomNavigation/bottom-navigation.scss +10 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +17 -18
- package/src/components/Breadcrumb/BreadcrumbDropdown.tsx +6 -0
- package/src/components/Button/Button.tsx +1 -11
- package/src/components/Button/ButtonExample.tsx +1 -2
- package/src/components/ButtonDock/ButtonDock.tsx +10 -14
- package/src/components/Card/Card.tsx +9 -11
- package/src/components/Carousel/Carousel.tsx +9 -13
- package/src/components/Carousel/CarouselExample.tsx +25 -25
- package/src/components/Checkbox/Checkbox.tsx +7 -4
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +3 -3
- package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +1 -0
- package/src/components/CheckboxOption/CheckboxOption.tsx +4 -4
- package/src/components/Chip/Chip.tsx +3 -7
- package/src/components/Chip/ChipExample.tsx +52 -3
- package/src/components/ChipGroup/ChipGroup.tsx +21 -10
- package/src/components/ChipGroup/ChipGroupExample.tsx +1 -1
- package/src/components/DatePicker/DatePicker.tsx +13 -12
- package/src/components/Dialog/Dialog.tsx +11 -6
- package/src/components/Divider/Divider.tsx +5 -9
- package/src/components/Divider/DividerExample.tsx +18 -1
- package/src/components/Drawer/Drawer.tsx +3 -4
- package/src/components/EmptyState/EmptyState.tsx +3 -7
- package/src/components/Fab/Fab.tsx +8 -5
- package/src/components/Fab/FabExample.tsx +22 -3
- package/src/components/Field/Field.tsx +4 -5
- package/src/components/Field/FieldDescription.tsx +7 -5
- package/src/components/Field/FieldError.tsx +6 -0
- package/src/components/Field/FieldLabel.tsx +6 -0
- package/src/components/Field/utils.ts +5 -0
- package/src/components/FileUpload/FileUpload.tsx +3 -3
- package/src/components/FileUploadItem/FileUploadItem.tsx +6 -10
- package/src/components/FormField/FormField.tsx +5 -16
- package/src/components/Img/Img.tsx +1 -3
- package/src/components/InlineAlert/InlineAlert.tsx +1 -3
- package/src/components/InlineAlert/SvgWarningTwoTone.tsx +6 -0
- package/src/components/Input/Input.tsx +13 -13
- package/src/components/Input/InputElement.tsx +11 -5
- package/src/components/InputNumber/IncrementButton.tsx +21 -11
- package/src/components/InputNumber/InputNumber.tsx +53 -51
- package/src/components/InputNumber/InputNumberExample.tsx +1 -0
- package/src/components/InputNumber/input-number.scss +10 -0
- package/src/components/InputPhone/InputPhone.tsx +21 -16
- package/src/components/Layout/Layout.tsx +1 -3
- package/src/components/Link/Link.tsx +1 -3
- package/src/components/ListItem/ListItem.tsx +22 -20
- package/src/components/Menu/Menu.tsx +5 -9
- package/src/components/Modal/Modal.tsx +10 -5
- package/src/components/Modal/modal.scss +13 -1
- package/src/components/OTPInput/OTPInput.tsx +5 -3
- package/src/components/PageControl/PageControl.tsx +1 -3
- package/src/components/Pagination/PageList.tsx +6 -0
- package/src/components/Pagination/Pagination.tsx +50 -24
- package/src/components/Pagination/pagination.scss +7 -17
- package/src/components/Password/Password.tsx +19 -20
- package/src/components/Popover/Popover.tsx +11 -20
- package/src/components/Popover/PopoverExample.tsx +1 -1
- package/src/components/ProgressBar/ProgressBar.tsx +1 -3
- package/src/components/ProgressCircle/ProgressCircle.tsx +1 -3
- package/src/components/ProgressionStepper/ProgressionStepper.tsx +1 -3
- package/src/components/RadioGroup/RadioGroup.tsx +2 -2
- package/src/components/Rating/Rating.tsx +34 -14
- package/src/components/Rating/RatingExample.tsx +18 -1
- package/src/components/Scrim/Scrim.tsx +0 -1
- package/src/components/SearchBar/SearchBar.tsx +2 -2
- package/src/components/SegmentedControl/SegmentedControl.tsx +3 -3
- package/src/components/SegmentedControl/SegmentedControlExample.tsx +10 -12
- package/src/components/Select/Select.tsx +33 -34
- package/src/components/Skeleton/Circular.tsx +6 -0
- package/src/components/Skeleton/Photo.tsx +6 -0
- package/src/components/Skeleton/Profile.tsx +6 -0
- package/src/components/Skeleton/Rectangular.tsx +6 -0
- package/src/components/Skeleton/Skeleton.tsx +10 -14
- package/src/components/Skeleton/SkeletonExample.tsx +5 -3
- package/src/components/Skeleton/Thumbnail.tsx +6 -0
- package/src/components/SkeletonText/SkeletonText.tsx +5 -9
- package/src/components/Slider/Slider.tsx +2 -2
- package/src/components/Slider/SliderExample.tsx +42 -17
- package/src/components/Slider/SliderIntervalDots.tsx +6 -0
- package/src/components/Snackbar/Manager.tsx +63 -0
- package/src/components/Snackbar/Snackbar.tsx +23 -7
- package/src/components/Snackbar/SnackbarExample.tsx +28 -6
- package/src/components/Snackbar/index.tsx +1 -0
- package/src/components/StylesProviderDemo/StylesProviderDemo.tsx +1 -3
- package/src/components/Switch/Switch.tsx +2 -2
- package/src/components/TabGroup/TabGroup.tsx +2 -2
- package/src/components/TabGroup/TabGroupExample.tsx +5 -11
- package/src/components/TabGroup/tab-group.scss +1 -0
- package/src/components/TabList/TabList.tsx +3 -4
- package/src/components/TabList/tab-list.scss +0 -1
- package/src/components/Table/Footer.tsx +6 -0
- package/src/components/Table/Table.tsx +53 -16
- package/src/components/Table/table.scss +0 -1
- package/src/components/Tag/Tag.tsx +1 -3
- package/src/components/Textarea/Textarea.tsx +13 -13
- package/src/components/TimePicker/Listbox.tsx +6 -0
- package/src/components/TimePicker/Segment.tsx +6 -0
- package/src/components/TimePicker/TimePicker.tsx +14 -14
- package/src/components/ToggleOption/ToggleOption.tsx +1 -0
- package/src/components/ToggleOption/toggle-option.scss +2 -61
- package/src/components/Tooltip/Tooltip.tsx +3 -7
- package/src/components/Tooltip/TooltipExample.tsx +23 -11
- package/src/components/Truncated/Truncated.tsx +1 -2
- package/src/components/Txt/Txt.tsx +1 -3
- package/src/components/UIProvider/AriaLiveMessageHandler.tsx +4 -2
- package/src/components/UIProvider/UIProvider.tsx +0 -1
- package/src/hooks/useAddEventListener.ts +1 -3
- package/src/hooks/useLongPress.ts +58 -48
- package/src/hooks/useTimeout.ts +1 -5
- package/src/styles/base.scss +9 -0
- package/src/types/common.ts +4 -0
- package/src/types/meta.ts +1 -0
- package/src/utils/createCustomEvent.ts +35 -0
- package/src/utils/createExampleChildElement.tsx +3 -8
- package/src/utils/demo.ts +24 -27
- package/dist/components/ListItem/ListItemButton.d.ts +0 -2
- package/dist/components/ListItem/ListItemButton.js +0 -7
- package/dist/components/ListItem/ListItemButton.js.map +0 -1
- package/dist/components/Pagination/PageInput.d.ts +0 -4
- package/dist/components/Pagination/PageInput.js +0 -36
- package/dist/components/Pagination/PageInput.js.map +0 -1
- package/dist/components/Truncated/truncated.css +0 -8
- package/dist/components/Truncated/truncated.css.js +0 -13
- package/dist/hooks/usePaginationState.d.ts +0 -4
- package/dist/hooks/usePaginationState.js +0 -22
- package/dist/hooks/usePaginationState.js.map +0 -1
- package/src/components/ListItem/ListItemButton.tsx +0 -6
- package/src/components/Pagination/PageInput.tsx +0 -65
- package/src/components/Truncated/truncated.scss +0 -8
- package/src/hooks/usePaginationState.tsx +0 -24
|
@@ -62,9 +62,25 @@ export type AccordionProps = {
|
|
|
62
62
|
* @example
|
|
63
63
|
* import { Accordion } from '@bspk/ui/Accordion';
|
|
64
64
|
*
|
|
65
|
-
*
|
|
66
|
-
*
|
|
67
|
-
*
|
|
65
|
+
* <Accordion
|
|
66
|
+
* singleOpen={true}
|
|
67
|
+
* items={[
|
|
68
|
+
* {
|
|
69
|
+
* id: 1,
|
|
70
|
+
* title: 'Lawrence Welk',
|
|
71
|
+
* subtitle: 'The Champagne Music Maker',
|
|
72
|
+
* children:
|
|
73
|
+
* 'Lawrence Welk was an American accordionist, bandleader, and television impresario, who hosted The Lawrence Welk Show from 1951 to 1982.',
|
|
74
|
+
* },
|
|
75
|
+
* {
|
|
76
|
+
* id: 2,
|
|
77
|
+
* title: 'Myron Floren',
|
|
78
|
+
* subtitle: 'The Happy Norwegian',
|
|
79
|
+
* children:
|
|
80
|
+
* 'Myron Floren was an American accordionist best known as the featured accordionist on The Lawrence Welk Show.',
|
|
81
|
+
* },
|
|
82
|
+
* ]}
|
|
83
|
+
* />;
|
|
68
84
|
*
|
|
69
85
|
* @name Accordion
|
|
70
86
|
* @phase UXReview
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/* eslint-disable @cspell/spellchecker */
|
|
2
3
|
import './accordion.css.js';
|
|
3
4
|
import { SvgKeyboardArrowDown } from '@bspk/icons/KeyboardArrowDown';
|
|
4
5
|
import { SvgKeyboardArrowUp } from '@bspk/icons/KeyboardArrowUp';
|
|
@@ -11,9 +12,25 @@ import { randomString } from '../../utils/random';
|
|
|
11
12
|
* @example
|
|
12
13
|
* import { Accordion } from '@bspk/ui/Accordion';
|
|
13
14
|
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
15
|
+
* <Accordion
|
|
16
|
+
* singleOpen={true}
|
|
17
|
+
* items={[
|
|
18
|
+
* {
|
|
19
|
+
* id: 1,
|
|
20
|
+
* title: 'Lawrence Welk',
|
|
21
|
+
* subtitle: 'The Champagne Music Maker',
|
|
22
|
+
* children:
|
|
23
|
+
* 'Lawrence Welk was an American accordionist, bandleader, and television impresario, who hosted The Lawrence Welk Show from 1951 to 1982.',
|
|
24
|
+
* },
|
|
25
|
+
* {
|
|
26
|
+
* id: 2,
|
|
27
|
+
* title: 'Myron Floren',
|
|
28
|
+
* subtitle: 'The Happy Norwegian',
|
|
29
|
+
* children:
|
|
30
|
+
* 'Myron Floren was an American accordionist best known as the featured accordionist on The Lawrence Welk Show.',
|
|
31
|
+
* },
|
|
32
|
+
* ]}
|
|
33
|
+
* />;
|
|
17
34
|
*
|
|
18
35
|
* @name Accordion
|
|
19
36
|
* @phase UXReview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Accordion.js","sourceRoot":"","sources":["../../../src/components/Accordion/Accordion.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAC1B,OAAO,EAAE,oBAAoB,EAAE,MAAM,+BAA+B,CAAC;AACrE,OAAO,EAAE,kBAAkB,EA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,EAAE,QAAQ,IAAI,SAAS,EAC/B,OAAO,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,aAE9C,OAAO,IAAI,+CAAoB,OAAO,GAAQ,EAC/C,wDACI,6CAAkB,KAAK,GAAQ,EAC9B,QAAQ,IAAI,gDAAqB,QAAQ,GAAQ,IAC/C,EACN,QAAQ,IAAI,gDAAqB,QAAQ,GAAQ,EAClD,6CAAkB,MAAM,CAAC,CAAC,CAAC,KAAC,kBAAkB,KAAG,CAAC,CAAC,CAAC,KAAC,oBAAoB,KAAG,GAAQ,IAC/E,EACR,MAAM,IAAI,CACP,mDAA+B,CAAC,MAAM,IAAI,SAAS,EAAE,EAAE,EAAE,GAAG,EAAE,UAAU,YACnE,QAAQ,GACP,CACT,EACD,sCAAqB,KArBmC,EAAE,IAAI,KAAK,CAsB7D,CACb,CAAC;QACN,CAAC,CAAC,GACA,CACT,CAAC;AACN,CAAC"}
|
|
@@ -69,21 +69,20 @@ export type AvatarProps = CommonProps<'disabled'> & {
|
|
|
69
69
|
*
|
|
70
70
|
* @example
|
|
71
71
|
* import { Avatar } from '@bspk/ui/Avatar';
|
|
72
|
-
* import { SvgPerson } from '@bspk/icons/Person';
|
|
73
72
|
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
77
|
-
*
|
|
78
|
-
*
|
|
79
|
-
*
|
|
80
|
-
*
|
|
81
|
-
*
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
73
|
+
* <Avatar
|
|
74
|
+
* color="blue"
|
|
75
|
+
* showIcon
|
|
76
|
+
* image="/avatar-01.png"
|
|
77
|
+
* initials="AR"
|
|
78
|
+
* name="Andre Giant"
|
|
79
|
+
* hideTooltip
|
|
80
|
+
* size="large"
|
|
81
|
+
* disabled={false}
|
|
82
|
+
* onClick={() => action('Launch avatar popover')}
|
|
83
|
+
* showIcon={false}
|
|
84
|
+
* hideTooltip={true}
|
|
85
|
+
* />;
|
|
87
86
|
*
|
|
88
87
|
* @exampleDescription The image if provided is displayed first, followed by the icon if provided, and finally the initials. If no initials are provided, the first two letters of the name will be used as initials.
|
|
89
88
|
*
|
|
@@ -8,21 +8,20 @@ import { Tooltip } from '../Tooltip';
|
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
10
|
* import { Avatar } from '@bspk/ui/Avatar';
|
|
11
|
-
* import { SvgPerson } from '@bspk/icons/Person';
|
|
12
11
|
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
12
|
+
* <Avatar
|
|
13
|
+
* color="blue"
|
|
14
|
+
* showIcon
|
|
15
|
+
* image="/avatar-01.png"
|
|
16
|
+
* initials="AR"
|
|
17
|
+
* name="Andre Giant"
|
|
18
|
+
* hideTooltip
|
|
19
|
+
* size="large"
|
|
20
|
+
* disabled={false}
|
|
21
|
+
* onClick={() => action('Launch avatar popover')}
|
|
22
|
+
* showIcon={false}
|
|
23
|
+
* hideTooltip={true}
|
|
24
|
+
* />;
|
|
26
25
|
*
|
|
27
26
|
* @exampleDescription The image if provided is displayed first, followed by the icon if provided, and finally the initials. If no initials are provided, the first two letters of the name will be used as initials.
|
|
28
27
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","sourceRoot":"","sources":["../../../src/components/Avatar/Avatar.tsx"],"names":[],"mappings":";AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,OAAO,EAAuB,MAAM,sBAAsB,CAAC;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;IAChB,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;IAE1C,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE3B,MAAM,MAAM,GAAG,CAAC,YAAiC,EAAE,EAAE,CAAC,CAClD,iBACQ,KAAK,KACL,YAAY,mBACD,QAAQ,IAAI,SAAS,gBACxB,IAAI,0BACK,QAAQ,eACnB,QAAQ,gBACN,KAAK,eACN,IAAI,EACf,cAAc,EAAE,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,EAC9C,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,EAChC,QAAQ,EAAE,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,YAE7C,QAAQ,GACP,CACT,CAAC;IAEF,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,KAAK,EAAE,IAAI,YAAG,MAAM,GAAW,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAChF,CAAC"}
|
|
@@ -39,7 +39,7 @@ export type AvatarGroupProps = CommonProps<'style'> & {
|
|
|
39
39
|
/**
|
|
40
40
|
* The variant of the avatar group.
|
|
41
41
|
*
|
|
42
|
-
* @default
|
|
42
|
+
* @default stacked
|
|
43
43
|
*/
|
|
44
44
|
variant?: 'spread' | 'stacked';
|
|
45
45
|
};
|
|
@@ -49,17 +49,34 @@ export type AvatarGroupProps = CommonProps<'style'> & {
|
|
|
49
49
|
* @example
|
|
50
50
|
* import { AvatarGroup } from '@bspk/ui/AvatarGroup';
|
|
51
51
|
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
52
|
+
* <AvatarGroup
|
|
53
|
+
* style={{ marginLeft: 'var(--spacing-sizing-12)' }}
|
|
54
|
+
* size="medium"
|
|
55
|
+
* max={4}
|
|
56
|
+
* variant="stacked"
|
|
57
|
+
* items={[
|
|
58
|
+
* {
|
|
59
|
+
* name: 'Alice Johnson',
|
|
60
|
+
* image: '/avatar-01.png',
|
|
61
|
+
* },
|
|
62
|
+
* {
|
|
63
|
+
* name: 'Bob Smith',
|
|
64
|
+
* image: '/avatar-02.png',
|
|
65
|
+
* },
|
|
66
|
+
* {
|
|
67
|
+
* name: 'Charlie Brown',
|
|
68
|
+
* image: '/avatar-03.png',
|
|
69
|
+
* },
|
|
70
|
+
* {
|
|
71
|
+
* name: 'Diana Prince',
|
|
72
|
+
* image: '/avatar-04.png',
|
|
73
|
+
* },
|
|
74
|
+
* {
|
|
75
|
+
* name: 'Ethan Hunt',
|
|
76
|
+
* image: '/avatar-05.png',
|
|
77
|
+
* },
|
|
78
|
+
* ]}
|
|
79
|
+
* />;
|
|
63
80
|
*
|
|
64
81
|
* @name AvatarGroup
|
|
65
82
|
* @phase UXReview
|
|
@@ -8,22 +8,39 @@ import { Avatar } from '../Avatar';
|
|
|
8
8
|
* @example
|
|
9
9
|
* import { AvatarGroup } from '@bspk/ui/AvatarGroup';
|
|
10
10
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
11
|
+
* <AvatarGroup
|
|
12
|
+
* style={{ marginLeft: 'var(--spacing-sizing-12)' }}
|
|
13
|
+
* size="medium"
|
|
14
|
+
* max={4}
|
|
15
|
+
* variant="stacked"
|
|
16
|
+
* items={[
|
|
17
|
+
* {
|
|
18
|
+
* name: 'Alice Johnson',
|
|
19
|
+
* image: '/avatar-01.png',
|
|
20
|
+
* },
|
|
21
|
+
* {
|
|
22
|
+
* name: 'Bob Smith',
|
|
23
|
+
* image: '/avatar-02.png',
|
|
24
|
+
* },
|
|
25
|
+
* {
|
|
26
|
+
* name: 'Charlie Brown',
|
|
27
|
+
* image: '/avatar-03.png',
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* name: 'Diana Prince',
|
|
31
|
+
* image: '/avatar-04.png',
|
|
32
|
+
* },
|
|
33
|
+
* {
|
|
34
|
+
* name: 'Ethan Hunt',
|
|
35
|
+
* image: '/avatar-05.png',
|
|
36
|
+
* },
|
|
37
|
+
* ]}
|
|
38
|
+
* />;
|
|
22
39
|
*
|
|
23
40
|
* @name AvatarGroup
|
|
24
41
|
* @phase UXReview
|
|
25
42
|
*/
|
|
26
|
-
export function AvatarGroup({ items, size = 'small', max: maxProp = 5, variant = '
|
|
43
|
+
export function AvatarGroup({ items, size = 'small', max: maxProp = 5, variant = 'stacked', style }) {
|
|
27
44
|
const max = maxProp > items.length ? items.length : maxProp;
|
|
28
45
|
const overflowItems = items.slice(max);
|
|
29
46
|
return !Array.isArray(items) || !items?.length ? null : (_jsx("div", { "data-bspk": "avatar-group", "data-max": max, "data-size": size, "data-variant": variant, style: style, children: _jsxs("div", { "data-wrap": true, children: [items.slice(0, max).map((item, index) => (_jsx(Avatar, { ...item, onClick: () => { }, size: size }, index))), overflowItems.length > 0 && (_jsx(AvatarGroupOverflow, { items: overflowItems, overflow: overflowItems.length, size: size }))] }) }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AvatarGroup.js","sourceRoot":"","sources":["../../../src/components/AvatarGroup/AvatarGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,MAAM,EAA4B,MAAM,qBAAqB,CAAC;AA+CvE
|
|
1
|
+
{"version":3,"file":"AvatarGroup.js","sourceRoot":"","sources":["../../../src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 +45,7 @@ export type BadgeProps = {
|
|
|
45
45
|
* @example
|
|
46
46
|
* import { Badge } from '@bspk/ui/Badge';
|
|
47
47
|
*
|
|
48
|
-
*
|
|
49
|
-
* return <Badge count={5} size="small" color="primary" />;
|
|
50
|
-
* }
|
|
48
|
+
* <Badge count={5} size="small" color="primary" surfaceBorder={true} />;
|
|
51
49
|
*
|
|
52
50
|
* @exampleDescription This example shows a badge with a count of 5, size small, and primary variant.
|
|
53
51
|
*
|
|
@@ -7,9 +7,7 @@ import { tryIntParse } from '../../utils/tryIntPsrse';
|
|
|
7
7
|
* @example
|
|
8
8
|
* import { Badge } from '@bspk/ui/Badge';
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
* return <Badge count={5} size="small" color="primary" />;
|
|
12
|
-
* }
|
|
10
|
+
* <Badge count={5} size="small" color="primary" surfaceBorder={true} />;
|
|
13
11
|
*
|
|
14
12
|
* @exampleDescription This example shows a badge with a count of 5, size small, and primary variant.
|
|
15
13
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AA0ClD
|
|
1
|
+
{"version":3,"file":"Badge.js","sourceRoot":"","sources":["../../../src/components/Badge/Badge.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,CAAC;AAGtB,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AA0ClD;;;;;;;;;;;;GAYG;AACH,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,GAAG,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,EAAc;IAC9G,MAAM,KAAK,GAAkB,WAAW,CAAC,SAAS,CAAC,CAAC;IAEpD,IAAI,OAAO,KAAK,KAAK,WAAW;QAAE,OAAO,QAAQ,IAAI,IAAI,CAAC;IAE1D,MAAM,KAAK,GAAG,CACV,iCACqB,CAAC,CAAC,QAAQ,IAAI,SAAS,eAC9B,OAAO,gBACL,KAAK,eACN,IAAI,yBACM,aAAa,IAAI,SAAS,YAE9C,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,GAAG,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,KAAK,GACtD,CACT,CAAC;IAEF,IAAI,QAAQ,EAAE,CAAC;QACX,OAAO,CACH,4DACK,QAAQ,EACR,KAAK,IACH,CACV,CAAC;IACN,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC"}
|
|
@@ -33,14 +33,14 @@ export type BadgeDotProps = {
|
|
|
33
33
|
* @example
|
|
34
34
|
* import { BadgeDot } from '@bspk/ui/BadgeDot';
|
|
35
35
|
*
|
|
36
|
-
*
|
|
37
|
-
*
|
|
38
|
-
*
|
|
36
|
+
* <BadgeDot color="secondary" size={12} outline={true}>
|
|
37
|
+
* <Button>Messages</Button>
|
|
38
|
+
* </BadgeDot>;
|
|
39
39
|
*
|
|
40
40
|
* @exampleDescription This example shows a badge-dot with a count of 5, size small, and primary variant.
|
|
41
41
|
*
|
|
42
42
|
* @name BadgeDot
|
|
43
43
|
* @phase UXReview
|
|
44
44
|
*/
|
|
45
|
-
export declare function BadgeDot({ children, color, size, outline }: BadgeDotProps): import("react/jsx-runtime").JSX.Element;
|
|
45
|
+
export declare function BadgeDot({ children, color, size: sizeProp, outline }: BadgeDotProps): import("react/jsx-runtime").JSX.Element;
|
|
46
46
|
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -13,16 +13,17 @@ const OUTLINE_WIDTHS = {
|
|
|
13
13
|
* @example
|
|
14
14
|
* import { BadgeDot } from '@bspk/ui/BadgeDot';
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
16
|
+
* <BadgeDot color="secondary" size={12} outline={true}>
|
|
17
|
+
* <Button>Messages</Button>
|
|
18
|
+
* </BadgeDot>;
|
|
19
19
|
*
|
|
20
20
|
* @exampleDescription This example shows a badge-dot with a count of 5, size small, and primary variant.
|
|
21
21
|
*
|
|
22
22
|
* @name BadgeDot
|
|
23
23
|
* @phase UXReview
|
|
24
24
|
*/
|
|
25
|
-
export function BadgeDot({ children, color = 'primary', size = 6, outline = false }) {
|
|
25
|
+
export function BadgeDot({ children, color = 'primary', size: sizeProp = 6, outline = false }) {
|
|
26
|
+
const size = sizeProp in OUTLINE_WIDTHS ? sizeProp : 6;
|
|
26
27
|
const badgeDot = (_jsx("sup", { "data-attachment": !!children || undefined, "data-bspk": "badge-dot", "data-color": color, "data-outline": outline || undefined, style: cssWithVars({
|
|
27
28
|
'--size': `${size}px`,
|
|
28
29
|
'--outline-width': `${OUTLINE_WIDTHS[size]}px`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BadgeDot.js","sourceRoot":"","sources":["../../../src/components/BadgeDot/BadgeDot.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,MAAM,cAAc,GAAiC;IACjD,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AA6BF;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,EAAE,IAAI,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,EAAiB;
|
|
1
|
+
{"version":3,"file":"BadgeDot.js","sourceRoot":"","sources":["../../../src/components/BadgeDot/BadgeDot.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAI1C,MAAM,cAAc,GAAiC;IACjD,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,CAAC;IACL,EAAE,EAAE,CAAC;CACR,CAAC;AA6BF;;;;;;;;;;;;;;GAcG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAE,QAAQ,EAAE,KAAK,GAAG,SAAS,EAAE,IAAI,EAAE,QAAQ,GAAG,CAAC,EAAE,OAAO,GAAG,KAAK,EAAiB;IACxG,MAAM,IAAI,GAAG,QAAQ,IAAI,cAAc,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IAEvD,MAAM,QAAQ,GAAG,CACb,iCACqB,CAAC,CAAC,QAAQ,IAAI,SAAS,eAC9B,WAAW,gBACT,KAAK,kBACH,OAAO,IAAI,SAAS,EAClC,KAAK,EAAE,WAAW,CAAC;YACf,QAAQ,EAAE,GAAG,IAAI,IAAI;YACrB,iBAAiB,EAAE,GAAG,cAAc,CAAC,IAAI,CAAC,IAAI;SACjD,CAAC,GACJ,CACL,CAAC;IAEF,IAAI,QAAQ,EAAE,CAAC;QACX,OAAO,CACH,4DACK,QAAQ,EACR,QAAQ,IACN,CACV,CAAC;IACN,CAAC;IAED,OAAO,QAAQ,CAAC;AACpB,CAAC"}
|
|
@@ -46,18 +46,17 @@ export type BannerAlertProps = {
|
|
|
46
46
|
* @example
|
|
47
47
|
* import { BannerAlert } from '@bspk/ui/BannerAlert';
|
|
48
48
|
*
|
|
49
|
-
*
|
|
50
|
-
*
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
*
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
* }
|
|
49
|
+
* <BannerAlert
|
|
50
|
+
* elevated={true}
|
|
51
|
+
* variant="success"
|
|
52
|
+
* header="Success"
|
|
53
|
+
* body="Your request was processed successfully."
|
|
54
|
+
* onClose={() => sendSnackbar('Alert closed')}
|
|
55
|
+
* callToAction={{
|
|
56
|
+
* label: 'Click me',
|
|
57
|
+
* onClick: () => action('Call to action clicked!'),
|
|
58
|
+
* }}
|
|
59
|
+
* />;
|
|
61
60
|
*
|
|
62
61
|
* @exampleDescription This example shows how to use the BannerAlert component with an error variant, a header, and a body message.
|
|
63
62
|
*
|
|
@@ -13,18 +13,17 @@ import { Button } from '../Button';
|
|
|
13
13
|
* @example
|
|
14
14
|
* import { BannerAlert } from '@bspk/ui/BannerAlert';
|
|
15
15
|
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* }
|
|
16
|
+
* <BannerAlert
|
|
17
|
+
* elevated={true}
|
|
18
|
+
* variant="success"
|
|
19
|
+
* header="Success"
|
|
20
|
+
* body="Your request was processed successfully."
|
|
21
|
+
* onClose={() => sendSnackbar('Alert closed')}
|
|
22
|
+
* callToAction={{
|
|
23
|
+
* label: 'Click me',
|
|
24
|
+
* onClick: () => action('Call to action clicked!'),
|
|
25
|
+
* }}
|
|
26
|
+
* />;
|
|
28
27
|
*
|
|
29
28
|
* @exampleDescription This example shows how to use the BannerAlert component with an error variant, a header, and a body message.
|
|
30
29
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BannerAlert.js","sourceRoot":"","sources":["../../../src/components/BannerAlert/BannerAlert.tsx"],"names":[],"mappings":";AAAA,OAAO,qBAAqB,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACzD,OA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AC,UAAU,GACpB,CACL,IACI,CACZ,EACD,6CACI,yBAAO,IAAI,GAAQ,EAClB,YAAY,EAAE,KAAK,IAAI,YAAY,EAAE,OAAO,IAAI,CAC7C,KAAC,MAAM,IACH,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,OAAO,EAAE,YAAY,CAAC,OAAO,EAC7B,IAAI,EAAC,OAAO,EACZ,OAAO,EAAC,UAAU,GACpB,CACL,IACC,IACJ,IACJ,CACT,CAAC;AACN,CAAC"}
|
|
@@ -21,13 +21,16 @@ export type BottomNavigationProps = Pick<TabListProps, 'label' | 'onChange' | 'o
|
|
|
21
21
|
* import { BottomNavigation } from '@bspk/ui/BottomNavigation';
|
|
22
22
|
* import { useState } from 'react';
|
|
23
23
|
*
|
|
24
|
-
*
|
|
24
|
+
* () => {
|
|
25
25
|
* const [value, setValue] = useState<string>('1');
|
|
26
26
|
*
|
|
27
27
|
* return (
|
|
28
28
|
* <BottomNavigation
|
|
29
|
+
* variant="elevated"
|
|
30
|
+
* mode="inline"
|
|
31
|
+
* label="Bottom Navigation Example"
|
|
29
32
|
* value={value}
|
|
30
|
-
* onChange={
|
|
33
|
+
* onChange={(next) => setValue(next)}
|
|
31
34
|
* options={[
|
|
32
35
|
* {
|
|
33
36
|
* value: '1',
|
|
@@ -44,7 +47,7 @@ export type BottomNavigationProps = Pick<TabListProps, 'label' | 'onChange' | 'o
|
|
|
44
47
|
* ]}
|
|
45
48
|
* />
|
|
46
49
|
* );
|
|
47
|
-
* }
|
|
50
|
+
* };
|
|
48
51
|
*
|
|
49
52
|
* @name BottomNavigation
|
|
50
53
|
* @phase Dev
|
|
@@ -8,13 +8,16 @@ import { TabList } from '../TabList';
|
|
|
8
8
|
* import { BottomNavigation } from '@bspk/ui/BottomNavigation';
|
|
9
9
|
* import { useState } from 'react';
|
|
10
10
|
*
|
|
11
|
-
*
|
|
11
|
+
* () => {
|
|
12
12
|
* const [value, setValue] = useState<string>('1');
|
|
13
13
|
*
|
|
14
14
|
* return (
|
|
15
15
|
* <BottomNavigation
|
|
16
|
+
* variant="elevated"
|
|
17
|
+
* mode="inline"
|
|
18
|
+
* label="Bottom Navigation Example"
|
|
16
19
|
* value={value}
|
|
17
|
-
* onChange={
|
|
20
|
+
* onChange={(next) => setValue(next)}
|
|
18
21
|
* options={[
|
|
19
22
|
* {
|
|
20
23
|
* value: '1',
|
|
@@ -31,7 +34,7 @@ import { TabList } from '../TabList';
|
|
|
31
34
|
* ]}
|
|
32
35
|
* />
|
|
33
36
|
* );
|
|
34
|
-
* }
|
|
37
|
+
* };
|
|
35
38
|
*
|
|
36
39
|
* @name BottomNavigation
|
|
37
40
|
* @phase Dev
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BottomNavigation.js","sourceRoot":"","sources":["../../../src/components/BottomNavigation/BottomNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,EAAgB,MAAM,sBAAsB,CAAC;AAiB7D
|
|
1
|
+
{"version":3,"file":"BottomNavigation.js","sourceRoot":"","sources":["../../../src/components/BottomNavigation/BottomNavigation.tsx"],"names":[],"mappings":";AAAA,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,OAAO,EAAgB,MAAM,sBAAsB,CAAC;AAiB7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,MAAM,UAAU,gBAAgB,CAAC,EAAE,IAAI,GAAG,QAAQ,EAAE,OAAO,GAAG,MAAM,EAAE,GAAG,YAAY,EAAyB;IAC1G,OAAO,CACH,KAAC,OAAO,iBAAW,mBAAmB,eAAY,IAAI,kBAAgB,OAAO,EAAE,IAAI,EAAC,OAAO,KAAK,YAAY,GAAI,CACnH,CAAC;AACN,CAAC"}
|
|
@@ -1,14 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { SvgCloud } from '@bspk/icons/Cloud';
|
|
3
|
-
import { SvgCloudFill } from '@bspk/icons/CloudFill';
|
|
4
|
-
import { SvgEvent } from '@bspk/icons/Event';
|
|
5
|
-
import { SvgEventFill } from '@bspk/icons/EventFill';
|
|
6
|
-
import { SvgPerson } from '@bspk/icons/Person';
|
|
7
|
-
import { SvgPersonFill } from '@bspk/icons/PersonFill';
|
|
8
|
-
import { SvgSettings } from '@bspk/icons/Settings';
|
|
9
|
-
import { SvgSettingsFill } from '@bspk/icons/SettingsFill';
|
|
10
|
-
import { SvgSmartphone } from '@bspk/icons/Smartphone';
|
|
11
|
-
import { SvgSmartphoneFill } from '@bspk/icons/SmartphoneFill';
|
|
12
2
|
export const presets = [
|
|
13
3
|
{
|
|
14
4
|
label: 'Three options',
|
|
@@ -17,20 +7,20 @@ export const presets = [
|
|
|
17
7
|
{
|
|
18
8
|
value: '1',
|
|
19
9
|
label: 'Item 1',
|
|
20
|
-
icon:
|
|
21
|
-
iconSelected:
|
|
10
|
+
icon: 'Settings',
|
|
11
|
+
iconSelected: 'SettingsFill',
|
|
22
12
|
},
|
|
23
13
|
{
|
|
24
14
|
value: '2',
|
|
25
15
|
label: 'Item 2',
|
|
26
|
-
icon:
|
|
27
|
-
iconSelected:
|
|
16
|
+
icon: 'Cloud',
|
|
17
|
+
iconSelected: 'CloudFill',
|
|
28
18
|
},
|
|
29
19
|
{
|
|
30
20
|
value: '3',
|
|
31
21
|
label: 'Item 3',
|
|
32
|
-
icon:
|
|
33
|
-
iconSelected:
|
|
22
|
+
icon: 'Smartphone',
|
|
23
|
+
iconSelected: 'SmartphoneFill',
|
|
34
24
|
},
|
|
35
25
|
],
|
|
36
26
|
value: '1',
|
|
@@ -43,33 +33,33 @@ export const presets = [
|
|
|
43
33
|
options: [
|
|
44
34
|
{
|
|
45
35
|
value: '1',
|
|
46
|
-
label: 'Item 1',
|
|
47
|
-
icon:
|
|
48
|
-
iconSelected:
|
|
36
|
+
label: 'Item 1 With Longer Label',
|
|
37
|
+
icon: 'Settings',
|
|
38
|
+
iconSelected: 'SettingsFill',
|
|
49
39
|
},
|
|
50
40
|
{
|
|
51
41
|
value: '2',
|
|
52
|
-
label: 'Item 2',
|
|
53
|
-
icon:
|
|
54
|
-
iconSelected:
|
|
42
|
+
label: 'Item 2 With Longer Label',
|
|
43
|
+
icon: 'Cloud',
|
|
44
|
+
iconSelected: 'CloudFill',
|
|
55
45
|
},
|
|
56
46
|
{
|
|
57
47
|
value: '3',
|
|
58
|
-
label: 'Item 3',
|
|
59
|
-
icon:
|
|
60
|
-
iconSelected:
|
|
48
|
+
label: 'Item 3 With Longer Label',
|
|
49
|
+
icon: 'Smartphone',
|
|
50
|
+
iconSelected: 'SmartphoneFill',
|
|
61
51
|
},
|
|
62
52
|
{
|
|
63
53
|
value: '4',
|
|
64
|
-
label: 'Item 4',
|
|
65
|
-
icon:
|
|
66
|
-
iconSelected:
|
|
54
|
+
label: 'Item 4 With Longer Label',
|
|
55
|
+
icon: 'Event',
|
|
56
|
+
iconSelected: 'EventFill',
|
|
67
57
|
},
|
|
68
58
|
{
|
|
69
59
|
value: '5',
|
|
70
|
-
label: 'Item 5',
|
|
71
|
-
icon:
|
|
72
|
-
iconSelected:
|
|
60
|
+
label: 'Item 5 With Longer Label',
|
|
61
|
+
icon: 'Person',
|
|
62
|
+
iconSelected: 'PersonFill',
|
|
73
63
|
},
|
|
74
64
|
],
|
|
75
65
|
value: '1',
|
|
@@ -83,14 +73,14 @@ export const presets = [
|
|
|
83
73
|
{
|
|
84
74
|
value: '1',
|
|
85
75
|
label: 'Item 1',
|
|
86
|
-
icon:
|
|
87
|
-
iconSelected:
|
|
76
|
+
icon: 'Settings',
|
|
77
|
+
iconSelected: 'SettingsFill',
|
|
88
78
|
},
|
|
89
79
|
{
|
|
90
80
|
value: '2',
|
|
91
81
|
label: 'Item 2',
|
|
92
|
-
icon:
|
|
93
|
-
iconSelected:
|
|
82
|
+
icon: 'Cloud',
|
|
83
|
+
iconSelected: 'CloudFill',
|
|
94
84
|
disabled: true,
|
|
95
85
|
},
|
|
96
86
|
],
|
|
@@ -108,7 +98,12 @@ export const BottomNavigationExample = {
|
|
|
108
98
|
},
|
|
109
99
|
defaultState: {
|
|
110
100
|
value: '1',
|
|
111
|
-
options: presets[0].propState.options
|
|
101
|
+
options: presets[0].propState.options.map((option) => ({
|
|
102
|
+
...option,
|
|
103
|
+
icon: undefined,
|
|
104
|
+
iconSelected: undefined,
|
|
105
|
+
})),
|
|
106
|
+
label: 'Single Icon',
|
|
112
107
|
},
|
|
113
108
|
disableProps: [],
|
|
114
109
|
presets,
|