@bspk/ui 1.1.33 → 1.2.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/build.ts +75 -27
- package/dist/components/Accordion/Accordion.d.ts +34 -0
- package/dist/components/Accordion/Accordion.js +42 -0
- package/dist/components/Accordion/Accordion.js.map +1 -0
- package/dist/components/Accordion/AccordionExample.d.ts +3 -0
- package/dist/components/Accordion/AccordionExample.js +72 -0
- package/dist/components/Accordion/AccordionExample.js.map +1 -0
- package/dist/components/Accordion/AccordionSection.d.ts +84 -0
- package/dist/components/Accordion/AccordionSection.js +27 -0
- package/dist/components/Accordion/AccordionSection.js.map +1 -0
- package/dist/components/Accordion/accordion.css +74 -0
- package/dist/components/Accordion/accordion.css.js +79 -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 +16 -12
- package/dist/components/Avatar/Avatar.js +7 -9
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/AvatarExample.d.ts +1 -1
- package/dist/components/Avatar/AvatarExample.js +11 -2
- 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 +6 -6
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -1
- package/dist/components/AvatarGroup/AvatarGroupExample.d.ts +3 -0
- package/dist/components/AvatarGroup/AvatarGroupExample.js +31 -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 +6 -12
- package/dist/components/Badge/Badge.js +8 -10
- 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 +7 -5
- package/dist/components/BannerAlert/BannerAlert.js.map +1 -1
- package/dist/components/BannerAlert/BannerAlertExample.d.ts +1 -1
- package/dist/components/BannerAlert/BannerAlertExample.js +6 -6
- package/dist/components/BannerAlert/BannerAlertExample.js.map +1 -1
- package/dist/components/BannerAlert/banner-alert.css +1 -1
- package/dist/components/BannerAlert/banner-alert.css.js +1 -2
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +6 -9
- package/dist/components/Breadcrumb/Breadcrumb.js +6 -8
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumb/BreadcrumbExample.d.ts +1 -1
- package/dist/components/Breadcrumb/BreadcrumbExample.js +67 -0
- 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 +19 -19
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/ButtonExample.d.ts +1 -1
- package/dist/components/Button/ButtonExample.js +8 -1
- package/dist/components/Button/ButtonExample.js.map +1 -1
- package/dist/components/Button/button.css +3 -3
- package/dist/components/Button/button.css.js +3 -4
- package/dist/components/Card/Card.d.ts +2 -6
- package/dist/components/Card/Card.js +2 -4
- package/dist/components/Card/Card.js.map +1 -1
- package/dist/components/Card/CardExample.d.ts +1 -1
- package/dist/components/Card/card.css +1 -1
- package/dist/components/Card/card.css.js +1 -2
- package/dist/components/Checkbox/Checkbox.d.ts +6 -8
- package/dist/components/Checkbox/Checkbox.js +4 -6
- package/dist/components/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Checkbox/checkbox.css +0 -6
- package/dist/components/Checkbox/checkbox.css.js +0 -7
- 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 +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js +23 -1
- 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 +1 -1
- 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.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 +2 -2
- package/dist/components/ChipGroup/ChipGroupExample.js +1 -1
- 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 +1 -1
- 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 +1 -1
- package/dist/components/ChipSuggestion/ChipSuggestionExample.js.map +1 -1
- package/dist/components/ChipUtility/ChipUtility.d.ts +4 -8
- package/dist/components/ChipUtility/ChipUtility.js +2 -5
- package/dist/components/ChipUtility/ChipUtility.js.map +1 -1
- package/dist/components/ChipUtility/ChipUtilityExample.d.ts +1 -1
- package/dist/components/ChipUtility/ChipUtilityExample.js +2 -0
- package/dist/components/ChipUtility/ChipUtilityExample.js.map +1 -1
- package/dist/components/ChipUtility/chip-utility.css +11 -11
- package/dist/components/ChipUtility/chip-utility.css.js +11 -12
- package/dist/components/Combobox/Combobox.d.ts +7 -11
- package/dist/components/Combobox/Combobox.js +8 -33
- package/dist/components/Combobox/Combobox.js.map +1 -1
- package/dist/components/Combobox/ListItems.d.ts +26 -0
- package/dist/components/Combobox/ListItems.js +22 -0
- package/dist/components/Combobox/ListItems.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +4 -10
- package/dist/components/Dialog/Dialog.js +11 -48
- package/dist/components/Dialog/Dialog.js.map +1 -1
- package/dist/components/Dialog/DialogExample.d.ts +1 -1
- package/dist/components/Dialog/DialogExample.js +3 -4
- package/dist/components/Dialog/DialogExample.js.map +1 -1
- package/dist/components/Dialog/dialog.css +67 -37
- package/dist/components/Dialog/dialog.css.js +67 -38
- package/dist/components/Divider/Divider.d.ts +3 -7
- package/dist/components/Divider/Divider.js +3 -5
- package/dist/components/Divider/Divider.js.map +1 -1
- package/dist/components/Divider/DividerExample.d.ts +1 -1
- package/dist/components/Divider/divider.css +3 -7
- package/dist/components/Divider/divider.css.js +3 -8
- 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 +1 -1
- package/dist/components/EmptyState/EmptyStateExample.js +11 -6
- 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 +19 -13
- package/dist/components/Fab/Fab.js.map +1 -1
- package/dist/components/Fab/FabExample.d.ts +1 -1
- package/dist/components/Fab/fab.css +2 -2
- package/dist/components/Fab/fab.css.js +2 -3
- 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 +3 -0
- package/dist/components/FileUpload/FileUploadExample.js +66 -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 +3 -0
- package/dist/components/FileUploadItem/FileUploadItemExample.js +67 -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 +10 -24
- package/dist/components/FormField/FormField.js +4 -7
- 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.js +0 -1
- 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 +4 -7
- 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 +3 -0
- package/dist/components/Layout/LayoutExample.js +7 -0
- package/dist/components/Layout/LayoutExample.js.map +1 -0
- package/dist/components/Link/Link.d.ts +3 -7
- package/dist/components/Link/Link.js +2 -4
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Link/LinkExample.d.ts +1 -1
- package/dist/components/Link/LinkExample.js +7 -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 +9 -21
- package/dist/components/ListItem/ListItem.js +12 -66
- 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 +2 -3
- package/dist/components/ListItem/ListItemExample.js +22 -41
- package/dist/components/ListItem/ListItemExample.js.map +1 -1
- package/dist/components/ListItem/list-item.css +11 -25
- package/dist/components/ListItem/list-item.css.js +12 -27
- package/dist/components/Listbox/Listbox.d.ts +7 -10
- package/dist/components/Listbox/Listbox.js +6 -8
- package/dist/components/Listbox/Listbox.js.map +1 -1
- package/dist/components/Menu/Menu.d.ts +27 -23
- package/dist/components/Menu/Menu.js +25 -32
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/MenuExample.d.ts +2 -2
- package/dist/components/Menu/MenuExample.js +25 -2
- package/dist/components/Menu/MenuExample.js.map +1 -1
- package/dist/components/Menu/menu.css +5 -2
- package/dist/components/Menu/menu.css.js +5 -3
- package/dist/components/MenuButton/MenuButton.d.ts +3 -7
- package/dist/components/MenuButton/MenuButton.js +1 -3
- 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 +6 -10
- package/dist/components/Modal/Modal.js +3 -5
- 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 +4 -11
- package/dist/components/NumberInput/NumberInput.js +22 -37
- 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 +9 -6
- package/dist/components/NumberInput/number-input.css.js +9 -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 +3 -0
- package/dist/components/OTPInput/OTPInputExample.js +25 -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 +43 -0
- package/dist/components/PageControl/PageControl.js +46 -0
- package/dist/components/PageControl/PageControl.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 +43 -0
- package/dist/components/Pagination/Pagination.js +49 -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 +5 -9
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js.map +1 -1
- package/dist/components/PhoneNumberInput/phone-number-input.css.js +0 -1
- package/dist/components/Popover/Popover.d.ts +11 -9
- package/dist/components/Popover/Popover.js +27 -11
- package/dist/components/Popover/Popover.js.map +1 -1
- package/dist/components/Popover/PopoverExample.d.ts +1 -1
- package/dist/components/Popover/PopoverExample.js +19 -3
- package/dist/components/Popover/PopoverExample.js.map +1 -1
- package/dist/components/Popover/popover.css +17 -22
- package/dist/components/Popover/popover.css.js +17 -23
- 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 +7 -6
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -1
- package/dist/components/ProgressBar/progress-bar.css +5 -2
- package/dist/components/ProgressBar/progress-bar.css.js +5 -3
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +1 -2
- package/dist/components/ProgressCircle/ProgressCircle.js +4 -10
- 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 +6 -8
- package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -1
- package/dist/components/ProgressionStepper/ProgressionStepperExample.d.ts +1 -1
- package/dist/components/ProgressionStepper/ProgressionStepperExample.js +2 -1
- 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 +3 -5
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js.map +1 -1
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css +2 -2
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css.js +2 -3
- package/dist/components/Radio/Radio.d.ts +3 -7
- 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 +1 -1
- package/dist/components/RadioGroup/RadioGroupExample.js +2 -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 +3 -0
- package/dist/components/Rating/RatingExample.js +17 -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 +12 -2
- package/dist/components/Scrim/scrim.css.js +12 -3
- package/dist/components/SearchBar/SearchBar.d.ts +5 -9
- package/dist/components/SearchBar/SearchBar.js +10 -11
- package/dist/components/SearchBar/SearchBar.js.map +1 -1
- package/dist/components/SearchBar/SearchBarExample.d.ts +1 -1
- package/dist/components/SearchBar/SearchBarExample.js +1 -1
- 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 +1 -1
- package/dist/components/SegmentedControl/SegmentedControlExample.js +41 -20
- 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 +5 -9
- package/dist/components/Select/Select.js +6 -8
- package/dist/components/Select/Select.js.map +1 -1
- package/dist/components/Select/SelectExample.d.ts +1 -1
- package/dist/components/Select/SelectExample.js +3 -3
- package/dist/components/Select/SelectExample.js.map +1 -1
- package/dist/components/Select/select.css +10 -9
- package/dist/components/Select/select.css.js +10 -10
- 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/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 +1 -1
- package/dist/components/Skeleton/SkeletonExample.js +13 -10
- 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 +1 -1
- 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 +59 -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/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 +3 -7
- 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 +1 -1
- package/dist/components/TabGroup/TabGroupExample.js +74 -70
- package/dist/components/TabGroup/TabGroupExample.js.map +1 -1
- package/dist/components/TabGroup/tab-group.css +18 -54
- package/dist/components/TabGroup/tab-group.css.js +18 -55
- package/dist/components/TabList/TabList.d.ts +129 -0
- package/dist/components/TabList/TabList.js +80 -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 +64 -0
- package/dist/components/TabList/tab-list.css.js +69 -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 +168 -21
- package/dist/components/Table/table.css.js +168 -22
- 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 +3 -0
- package/dist/components/Tag/TagExample.js +14 -0
- package/dist/components/Tag/TagExample.js.map +1 -0
- package/dist/components/Tag/tag.css +8 -12
- package/dist/components/Tag/tag.css.js +8 -13
- 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/TextInput/TextInput.d.ts +17 -11
- package/dist/components/TextInput/TextInput.js +4 -6
- package/dist/components/TextInput/TextInput.js.map +1 -1
- package/dist/components/TextInput/TextInputExample.d.ts +1 -1
- package/dist/components/TextInput/TextInputExample.js +2 -0
- package/dist/components/TextInput/TextInputExample.js.map +1 -1
- package/dist/components/TextInput/text-input.css +3 -3
- package/dist/components/TextInput/text-input.css.js +3 -4
- package/dist/components/Textarea/Textarea.d.ts +4 -8
- package/dist/components/Textarea/Textarea.js +3 -5
- 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 +1 -1
- package/dist/components/Textarea/textarea.css.js +1 -2
- 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 +10 -0
- package/dist/components/TimeInput/Listbox.js +66 -0
- package/dist/components/TimeInput/Listbox.js.map +1 -0
- package/dist/components/TimeInput/Segment.d.ts +21 -0
- package/dist/components/TimeInput/Segment.js +160 -0
- package/dist/components/TimeInput/Segment.js.map +1 -0
- package/dist/components/TimeInput/TimeInput.d.ts +26 -0
- package/dist/components/TimeInput/TimeInput.js +66 -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 +138 -0
- package/dist/components/TimeInput/time-input.css.js +143 -0
- package/dist/components/ToggleOption/ToggleOption.d.ts +7 -7
- 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 +12 -11
- package/dist/components/Tooltip/Tooltip.js +17 -15
- 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 +1 -1
- package/dist/components/Tooltip/tooltip.css.js +1 -2
- 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 +7 -8
- package/dist/components/Truncated/Truncated.js +11 -6
- package/dist/components/Truncated/Truncated.js.map +1 -1
- 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/UIProvider.d.ts +1 -5
- package/dist/components/UIProvider/UIProvider.js +2 -4
- package/dist/components/UIProvider/UIProvider.js.map +1 -1
- 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 +9 -0
- package/dist/constants/phases.js.map +1 -0
- package/dist/hooks/useCheckboxGroupState.d.ts +1 -1
- package/dist/hooks/useCheckboxState.d.ts +1 -1
- package/dist/hooks/useCombobox.d.ts +4 -3
- package/dist/hooks/useCombobox.js +7 -7
- package/dist/hooks/useCombobox.js.map +1 -1
- package/dist/hooks/useFloating.d.ts +1 -3
- package/dist/hooks/useFloating.js +4 -3
- 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/useKeyNavigation.d.ts +17 -0
- package/dist/hooks/useKeyNavigation.js +46 -0
- package/dist/hooks/useKeyNavigation.js.map +1 -0
- 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/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 +305 -111
- package/dist/styles/anywhere.css.js +305 -112
- package/dist/{base.css → styles/base.css} +32 -17
- package/dist/{base.css.js → styles/base.css.js} +32 -18
- package/dist/styles/better-homes-gardens.css +309 -109
- package/dist/styles/better-homes-gardens.css.js +309 -110
- package/dist/styles/cartus.css +309 -109
- package/dist/styles/cartus.css.js +309 -110
- package/dist/styles/century-21.css +303 -105
- package/dist/styles/century-21.css.js +303 -106
- package/dist/styles/coldwell-banker.css +309 -109
- package/dist/styles/coldwell-banker.css.js +309 -110
- package/dist/{colors.css → styles/colors.css} +1 -1
- package/dist/{colors.css.js → styles/colors.css.js} +1 -2
- package/dist/styles/corcoran.css +305 -107
- package/dist/styles/corcoran.css.js +305 -108
- package/dist/styles/denali-boss.css +307 -109
- package/dist/styles/denali-boss.css.js +307 -110
- package/dist/styles/era.css +317 -113
- package/dist/styles/era.css.js +317 -114
- package/dist/styles/sothebys.css +309 -109
- package/dist/styles/sothebys.css.js +309 -110
- package/dist/{index.d.ts → types/common.d.ts} +12 -22
- 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 +47 -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/colorVariants.d.ts +1 -1
- package/dist/utils/colorVariants.js +1 -1
- 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 +29 -10
- package/dist/utils/demo.js.map +1 -1
- 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 +12 -0
- package/dist/utils/handleKeyDown.js +20 -0
- package/dist/utils/handleKeyDown.js.map +1 -0
- 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/txtVariants.d.ts +1 -1
- package/dist/utils/txtVariants.js +1 -1
- package/meta.ts +15 -28
- package/package.json +115 -91
- package/src/components/Accordion/Accordion.tsx +77 -0
- package/src/components/Accordion/AccordionExample.tsx +87 -0
- package/src/components/Accordion/AccordionSection.tsx +128 -0
- package/src/components/Accordion/accordion.scss +105 -0
- package/src/components/Accordion/index.tsx +1 -0
- package/src/components/Avatar/Avatar.tsx +37 -18
- package/src/components/Avatar/AvatarExample.tsx +12 -4
- package/src/components/Avatar/avatar.scss +34 -1
- package/src/components/AvatarGroup/AvatarGroup.tsx +20 -14
- package/src/components/AvatarGroup/AvatarGroupExample.tsx +33 -0
- package/src/components/AvatarGroup/avatar-group.scss +16 -1
- package/src/components/Badge/Badge.tsx +16 -16
- package/src/components/Badge/BadgeExample.tsx +11 -66
- package/src/components/Badge/badge.scss +18 -25
- package/src/components/BadgeDot/BadgeDot.tsx +83 -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.tsx +10 -9
- package/src/components/BannerAlert/BannerAlertExample.tsx +7 -8
- package/src/components/BannerAlert/banner-alert.scss +1 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +15 -17
- package/src/components/Breadcrumb/BreadcrumbExample.tsx +68 -2
- package/src/components/Button/Button.tsx +44 -29
- package/src/components/Button/ButtonExample.tsx +8 -3
- package/src/components/Button/button.scss +3 -3
- package/src/components/Card/Card.tsx +3 -6
- package/src/components/Card/card.scss +1 -1
- package/src/components/Checkbox/Checkbox.tsx +27 -25
- package/src/components/Checkbox/checkbox.scss +0 -7
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +65 -59
- package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +24 -3
- package/src/components/CheckboxOption/CheckboxOption.tsx +7 -20
- package/src/components/ChipAssist/ChipAssist.tsx +11 -7
- package/src/components/ChipAssist/ChipAssistExample.tsx +1 -2
- package/src/components/ChipFilter/ChipFilter.tsx +10 -6
- package/src/components/ChipFilter/ChipFilterExample.tsx +1 -2
- package/src/components/ChipGroup/ChipGroup.tsx +4 -8
- package/src/components/ChipGroup/ChipGroupExample.tsx +6 -7
- package/src/components/ChipInput/ChipInput.tsx +3 -6
- package/src/components/ChipInput/ChipInputExample.tsx +1 -2
- package/src/components/ChipSuggestion/ChipSuggestion.tsx +3 -7
- package/src/components/ChipSuggestion/ChipSuggestionExample.tsx +1 -2
- package/src/components/ChipUtility/ChipUtility.tsx +7 -12
- package/src/components/ChipUtility/ChipUtilityExample.tsx +2 -2
- package/src/components/ChipUtility/chip-utility.scss +2 -2
- package/src/components/Combobox/Combobox.tsx +33 -123
- package/src/components/Combobox/ListItems.tsx +107 -0
- package/src/components/Dialog/Dialog.tsx +54 -95
- package/src/components/Dialog/DialogExample.tsx +4 -13
- package/src/components/Dialog/dialog.scss +81 -63
- package/src/components/Divider/Divider.tsx +5 -7
- package/src/components/Divider/divider.scss +3 -7
- package/src/components/EmptyState/EmptyState.tsx +3 -7
- package/src/components/EmptyState/EmptyStateExample.tsx +16 -18
- package/src/components/ExamplePlaceholder/ExamplePlaceholder.tsx +33 -15
- package/src/components/Fab/Fab.tsx +50 -40
- package/src/components/Fab/fab.scss +2 -2
- package/src/components/FileUpload/FileUpload.tsx +285 -0
- package/src/components/FileUpload/FileUploadExample.tsx +91 -0
- package/src/components/FileUpload/file-upload.scss +20 -0
- package/src/components/FileUpload/index.tsx +1 -0
- package/src/components/FileUploadItem/FileUploadItem.tsx +121 -0
- package/src/components/FileUploadItem/FileUploadItemExample.tsx +78 -0
- package/src/components/FileUploadItem/file-upload-item.scss +46 -0
- package/src/components/FileUploadItem/index.tsx +1 -0
- package/src/components/FormField/FormField.tsx +30 -42
- package/src/components/FormField/FormFieldExample.tsx +41 -0
- package/src/components/Img/Img.tsx +2 -6
- package/src/components/InlineAlert/InlineAlert.tsx +6 -27
- package/src/components/InlineAlert/SvgWarningTwoTone.tsx +18 -0
- package/src/components/InlineAlert/inline-alert.scss +1 -0
- package/src/components/Layout/Layout.tsx +4 -8
- package/src/components/Layout/LayoutExample.tsx +14 -0
- package/src/components/Link/Link.tsx +3 -7
- package/src/components/Link/LinkExample.tsx +7 -8
- package/src/components/Link/link.scss +1 -1
- package/src/components/ListItem/ListItem.tsx +40 -121
- package/src/components/ListItem/ListItemButton.tsx +6 -0
- package/src/components/ListItem/ListItemExample.tsx +26 -77
- package/src/components/ListItem/list-item.scss +11 -30
- package/src/components/Listbox/Listbox.tsx +14 -14
- package/src/components/Menu/Menu.tsx +83 -85
- package/src/components/Menu/MenuExample.tsx +28 -6
- package/src/components/Menu/menu.scss +6 -2
- package/src/components/MenuButton/MenuButton.tsx +3 -6
- package/src/components/Modal/Modal.tsx +12 -15
- package/src/components/Modal/ModalExample.tsx +3 -4
- package/src/components/Modal/modal.scss +8 -21
- package/src/components/NumberField/NumberField.tsx +18 -27
- package/src/components/NumberInput/IncrementButton.tsx +31 -0
- package/src/components/NumberInput/NumberInput.tsx +54 -68
- package/src/components/NumberInput/NumberInputExample.tsx +6 -0
- package/src/components/NumberInput/number-input.scss +10 -6
- package/src/components/OTPInput/OTPInput.tsx +121 -0
- package/src/components/OTPInput/OTPInputExample.tsx +26 -0
- package/src/components/OTPInput/index.tsx +1 -0
- package/src/components/OTPInput/otp-input.scss +87 -0
- package/src/components/PageControl/PageControl.tsx +98 -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.tsx +104 -0
- package/src/components/Pagination/index.tsx +1 -0
- package/src/components/Pagination/pagination.scss +36 -0
- package/src/components/PasswordField/PasswordField.tsx +68 -0
- package/src/components/PasswordField/index.tsx +1 -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.tsx +10 -49
- package/src/components/PhoneNumberInput/PhoneNumberInput.tsx +20 -19
- package/src/components/Popover/Popover.tsx +94 -53
- package/src/components/Popover/PopoverExample.tsx +20 -4
- package/src/components/Popover/popover.scss +17 -29
- package/src/components/Portal/Portal.tsx +4 -6
- package/src/components/ProgressBar/ProgressBar.tsx +33 -9
- package/src/components/ProgressBar/progress-bar.scss +8 -2
- package/src/components/ProgressCircle/ProgressCircle.tsx +5 -43
- package/src/components/ProgressCircle/ProgressCircleSVG.tsx +38 -0
- package/src/components/ProgressionStepper/ProgressionStepper.tsx +20 -19
- package/src/components/ProgressionStepper/ProgressionStepperExample.tsx +3 -3
- package/src/components/ProgressionStepper/progression-stepper.scss +13 -0
- package/src/components/ProgressionStepperBar/ProgressionStepperBar.tsx +5 -8
- package/src/components/ProgressionStepperBar/progression-stepper-bar.scss +2 -2
- package/src/components/Radio/Radio.tsx +4 -10
- package/src/components/Radio/radio.scss +1 -1
- package/src/components/RadioGroup/RadioGroup.tsx +80 -82
- package/src/components/RadioGroup/RadioGroupExample.tsx +3 -24
- package/src/components/RadioGroup/radio-group.scss +0 -1
- package/src/components/RadioOption/RadioOption.tsx +6 -21
- package/src/components/Rating/Rating.tsx +100 -0
- package/src/components/Rating/RatingExample.tsx +18 -0
- package/src/components/Rating/index.tsx +1 -0
- package/src/components/Rating/rating.scss +85 -0
- package/src/components/Scrim/Scrim.tsx +5 -24
- package/src/components/Scrim/scrim.scss +15 -4
- package/src/components/SearchBar/SearchBar.tsx +18 -13
- package/src/components/SearchBar/SearchBarExample.tsx +9 -3
- package/src/components/SearchBar/search-bar.scss +1 -1
- package/src/components/SegmentedControl/SegmentedControl.tsx +19 -123
- package/src/components/SegmentedControl/SegmentedControlExample.tsx +42 -21
- package/src/components/SegmentedControl/segmented-control.scss +37 -89
- package/src/components/Select/Select.tsx +26 -34
- package/src/components/Select/SelectExample.tsx +4 -13
- package/src/components/Select/select.scss +14 -11
- package/src/components/SelectField/SelectField.tsx +20 -28
- 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.tsx +6 -29
- package/src/components/Skeleton/SkeletonExample.tsx +21 -36
- package/src/components/Skeleton/Thumbnail.tsx +5 -0
- package/src/components/Skeleton/index.tsx +5 -0
- package/src/components/SkeletonText/SkeletonText.tsx +2 -6
- package/src/components/SkeletonText/SkeletonTextExample.tsx +1 -2
- package/src/components/Slider/Slider.tsx +281 -0
- package/src/components/Slider/SliderExample.tsx +63 -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/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.tsx +3 -7
- package/src/components/Switch/switch.scss +1 -1
- package/src/components/SwitchOption/SwitchOption.tsx +6 -9
- package/src/components/TabGroup/TabGroup.tsx +17 -130
- package/src/components/TabGroup/TabGroupExample.tsx +78 -71
- package/src/components/TabGroup/tab-group.scss +33 -79
- package/src/components/TabList/TabList.tsx +239 -0
- package/src/components/TabList/TabListExample.tsx +7 -0
- package/src/components/TabList/index.tsx +1 -0
- package/src/components/TabList/tab-list.scss +76 -0
- package/src/components/Table/Footer.tsx +40 -0
- package/src/components/Table/Table.tsx +181 -53
- package/src/components/Table/TableExample.tsx +138 -0
- package/src/components/Table/table.scss +229 -27
- package/src/components/Table/utils.ts +179 -0
- package/src/components/Tag/Tag.tsx +11 -54
- package/src/components/Tag/TagExample.tsx +16 -0
- package/src/components/Tag/tag.scss +8 -13
- package/src/components/TextField/TextField.tsx +6 -27
- package/src/components/TextInput/TextInput.tsx +72 -54
- package/src/components/TextInput/TextInputExample.tsx +2 -2
- package/src/components/TextInput/text-input.scss +3 -2
- package/src/components/Textarea/Textarea.tsx +10 -11
- package/src/components/Textarea/TextareaExample.tsx +4 -3
- package/src/components/Textarea/textarea.scss +1 -1
- package/src/components/TextareaField/TextareaField.tsx +22 -39
- package/src/components/TextareaField/TextareaFieldExample.tsx +3 -9
- package/src/components/TimeInput/Listbox.tsx +95 -0
- package/src/components/TimeInput/Segment.tsx +221 -0
- package/src/components/TimeInput/TimeInput.tsx +192 -0
- package/src/components/TimeInput/TimeInputExample.tsx +6 -0
- package/src/components/TimeInput/index.tsx +1 -0
- package/src/components/TimeInput/time-input.scss +176 -0
- package/src/components/ToggleOption/ToggleOption.tsx +11 -12
- package/src/components/ToggleOption/toggle-option.scss +15 -11
- package/src/components/Tooltip/Tooltip.tsx +30 -27
- package/src/components/Tooltip/TooltipExample.tsx +10 -6
- package/src/components/Tooltip/tooltip.scss +1 -1
- package/src/components/TopNavigation/TopNavigation.tsx +1 -5
- package/src/components/Truncated/Truncated.tsx +24 -13
- package/src/components/Txt/Txt.tsx +3 -7
- package/src/components/UIProvider/UIProvider.tsx +2 -5
- package/src/constants/brands.ts +45 -0
- package/src/constants/phases.ts +11 -0
- package/src/global.d.ts +3 -0
- package/src/hooks/useCombobox.ts +9 -12
- package/src/hooks/useFloating.ts +5 -7
- package/src/hooks/useId.ts +5 -3
- package/src/hooks/useKeyNavigation.ts +66 -0
- package/src/hooks/useLongPress.ts +3 -2
- package/src/hooks/useOutsideClick.ts +9 -5
- package/src/hooks/usePaginationState.tsx +24 -0
- package/src/hooks/useTimeout.ts +14 -4
- package/src/{base.scss → styles/base.scss} +28 -12
- package/src/{colors.scss → styles/colors.scss} +1 -1
- package/src/{index.ts → types/common.ts} +15 -62
- package/src/types/meta.ts +109 -0
- package/src/utils/bound.ts +30 -0
- package/src/utils/colorVariants.ts +1 -1
- package/src/utils/createExampleChildElement.tsx +83 -0
- package/src/utils/demo.ts +25 -17
- package/src/utils/fileUploads.ts +73 -0
- package/src/utils/handleKeyDown.ts +24 -0
- package/src/utils/keyboard.ts +2 -2
- package/src/utils/random.ts +25 -0
- package/src/utils/scrollElementIntoView.ts +3 -1
- package/src/utils/txtVariants.ts +1 -1
- package/tsconfig.json +12 -5
- 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/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/hooks/useOptionIconsInvalid.ts +0 -58
- package/src/hooks/useValidChildren.ts +0 -54
- package/src/utils/children.ts +0 -80
- package/src/utils/srOnly.ts +0 -14
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns a random integer between min and max (inclusive).
|
|
3
|
+
*
|
|
4
|
+
* @param min - The minimum value (inclusive).
|
|
5
|
+
* @param max - The maximum value (inclusive).
|
|
6
|
+
* @returns A random integer between min and max.
|
|
7
|
+
*/
|
|
8
|
+
export function randomNumber(min = 0, max = 100): number {
|
|
9
|
+
return Math.floor(Math.random() * (max - min + 1)) + min;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Returns a random string of alphanumeric characters.
|
|
14
|
+
*
|
|
15
|
+
* @param length - The length of the random ID to generate.
|
|
16
|
+
* @returns A random string of the specified length containing alphanumeric characters.
|
|
17
|
+
*/
|
|
18
|
+
export function randomString(length: number = 8): string {
|
|
19
|
+
const chars = 'abcdefghijklmnopqrstuvwxyz0123456789';
|
|
20
|
+
let result = '';
|
|
21
|
+
const rand = new Uint32Array(length);
|
|
22
|
+
window.crypto.getRandomValues(rand);
|
|
23
|
+
for (let i = 0; i < length; i++) result += chars[rand[i] % chars.length];
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
@@ -4,7 +4,9 @@
|
|
|
4
4
|
* @param element -- The element to scroll into view.
|
|
5
5
|
* @param container -- The container to scroll.
|
|
6
6
|
*/
|
|
7
|
-
export function scrollElementIntoView(element
|
|
7
|
+
export function scrollElementIntoView(element?: Element | null, container?: Element | null): void {
|
|
8
|
+
if (!element || !container) return;
|
|
9
|
+
|
|
8
10
|
const elementRect = element.getBoundingClientRect();
|
|
9
11
|
|
|
10
12
|
const containerRect = container.getBoundingClientRect();
|
package/src/utils/txtVariants.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* This file is generated by the
|
|
2
|
+
* This file is generated by the update-css script. Do not edit this file directly. Instead, edit the script and run it
|
|
3
3
|
* again.
|
|
4
4
|
*/
|
|
5
5
|
export const TXT_VARIANTS = [
|
package/tsconfig.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"target": "ES2020",
|
|
5
5
|
"lib": [
|
|
6
6
|
"es5",
|
|
7
|
-
"dom"
|
|
7
|
+
"dom"
|
|
8
8
|
],
|
|
9
9
|
"jsx": "react-jsx",
|
|
10
10
|
"moduleResolution": "node",
|
|
@@ -32,14 +32,21 @@
|
|
|
32
32
|
"-/utils/*": [
|
|
33
33
|
"./src/utils/*"
|
|
34
34
|
],
|
|
35
|
-
"
|
|
36
|
-
"./src/
|
|
35
|
+
"-/types/*": [
|
|
36
|
+
"./src/types/*"
|
|
37
37
|
],
|
|
38
|
+
"-/constants/*": [
|
|
39
|
+
"./src/constants/*"
|
|
40
|
+
]
|
|
38
41
|
},
|
|
39
|
-
"moduleDetection": "auto"
|
|
42
|
+
"moduleDetection": "auto"
|
|
40
43
|
},
|
|
44
|
+
"typeRoots": [
|
|
45
|
+
"./node_modules/@types",
|
|
46
|
+
"./types"
|
|
47
|
+
],
|
|
41
48
|
"include": [
|
|
42
|
-
"src/**/*"
|
|
49
|
+
"src/**/*"
|
|
43
50
|
],
|
|
44
51
|
"exclude": [
|
|
45
52
|
"node_modules",
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { CommonProps } from '../../index.js';
|
|
3
|
-
import './chip.scss';
|
|
4
|
-
export type ChipProps = CommonProps<'disabled'> & {
|
|
5
|
-
/**
|
|
6
|
-
* The content of the chip.
|
|
7
|
-
*
|
|
8
|
-
* @required
|
|
9
|
-
*/
|
|
10
|
-
children: ReactNode | string;
|
|
11
|
-
/**
|
|
12
|
-
* Whether the chip should wrap its content.
|
|
13
|
-
*
|
|
14
|
-
* (Not recommended)
|
|
15
|
-
*
|
|
16
|
-
* @default false
|
|
17
|
-
*/
|
|
18
|
-
wrap?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
* The variant of the chip.
|
|
21
|
-
*
|
|
22
|
-
* @default filter
|
|
23
|
-
*/
|
|
24
|
-
variant?: 'filter';
|
|
25
|
-
/**
|
|
26
|
-
* Is the chip elevated or flat. If flat the drop shadow is removed.
|
|
27
|
-
*
|
|
28
|
-
* @default false
|
|
29
|
-
*/
|
|
30
|
-
flat?: boolean;
|
|
31
|
-
/**
|
|
32
|
-
* Whether the chip is currently selected.
|
|
33
|
-
*
|
|
34
|
-
* @default false
|
|
35
|
-
*/
|
|
36
|
-
selected?: boolean;
|
|
37
|
-
/** The style of the chip. */
|
|
38
|
-
style?: CSSProperties;
|
|
39
|
-
/** The function to call when the chip is clicked. */
|
|
40
|
-
onClick?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
41
|
-
};
|
|
42
|
-
/**
|
|
43
|
-
* Dynamically generated options that are suggested to the user as responses or prompts.
|
|
44
|
-
*
|
|
45
|
-
* @example
|
|
46
|
-
* import { Chip } from '@bspk/ui/Chip';
|
|
47
|
-
*
|
|
48
|
-
* function Example() {
|
|
49
|
-
* return (
|
|
50
|
-
* <Chip variant="filter" onClick={() => console.log('Chip clicked!')}>
|
|
51
|
-
* Example Chip
|
|
52
|
-
* </Chip>
|
|
53
|
-
* );
|
|
54
|
-
* }
|
|
55
|
-
*
|
|
56
|
-
* @name Chip
|
|
57
|
-
* @phase DesignReview
|
|
58
|
-
*/
|
|
59
|
-
declare function Chip({ children, wrap, variant, flat, disabled, selected, onClick, style: styleProp, }: ChipProps): import("react/jsx-runtime").JSX.Element;
|
|
60
|
-
declare namespace Chip {
|
|
61
|
-
var bspkName: string;
|
|
62
|
-
}
|
|
63
|
-
export { Chip };
|
|
64
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import './chip.css.js';
|
|
3
|
-
/**
|
|
4
|
-
* Dynamically generated options that are suggested to the user as responses or prompts.
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* import { Chip } from '@bspk/ui/Chip';
|
|
8
|
-
*
|
|
9
|
-
* function Example() {
|
|
10
|
-
* return (
|
|
11
|
-
* <Chip variant="filter" onClick={() => console.log('Chip clicked!')}>
|
|
12
|
-
* Example Chip
|
|
13
|
-
* </Chip>
|
|
14
|
-
* );
|
|
15
|
-
* }
|
|
16
|
-
*
|
|
17
|
-
* @name Chip
|
|
18
|
-
* @phase DesignReview
|
|
19
|
-
*/
|
|
20
|
-
function Chip({ children = '', wrap = false, variant = 'filter', flat = false, disabled = false, selected = false, onClick, style: styleProp, }) {
|
|
21
|
-
let additionalProps = {};
|
|
22
|
-
if (variant === 'filter') {
|
|
23
|
-
additionalProps = {
|
|
24
|
-
onClick,
|
|
25
|
-
role: 'button',
|
|
26
|
-
tabIndex: 0,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
return (_jsx("span", { "data-bspk": "chip", "data-disabled": disabled || undefined, "data-flat": flat || undefined, "data-selected": selected || undefined, "data-variant": variant, "data-wrap": wrap || undefined, style: styleProp, ...additionalProps, children: children }));
|
|
30
|
-
}
|
|
31
|
-
Chip.bspkName = 'Chip';
|
|
32
|
-
export { Chip };
|
|
33
|
-
//# sourceMappingURL=Chip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.js","sourceRoot":"","sources":["../../../src/components/Chip/Chip.tsx"],"names":[],"mappings":";AAIA,OAAO,aAAa,CAAC;AA0CrB;;;;;;;;;;;;;;;;GAgBG;AACH,SAAS,IAAI,CAAC,EACV,QAAQ,GAAG,EAAE,EACb,IAAI,GAAG,KAAK,EACZ,OAAO,GAAG,QAAQ,EAClB,IAAI,GAAG,KAAK,EACZ,QAAQ,GAAG,KAAK,EAChB,QAAQ,GAAG,KAAK,EAChB,OAAO,EACP,KAAK,EAAE,SAAS,GACR;IACR,IAAI,eAAe,GAAG,EAAE,CAAC;IAEzB,IAAI,OAAO,KAAK,QAAQ,EAAE,CAAC;QACvB,eAAe,GAAG;YACd,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC;SACd,CAAC;IACN,CAAC;IAED,OAAO,CACH,4BACc,MAAM,mBACD,QAAQ,IAAI,SAAS,eACzB,IAAI,IAAI,SAAS,mBACb,QAAQ,IAAI,SAAS,kBACtB,OAAO,eACV,IAAI,IAAI,SAAS,EAC5B,KAAK,EAAE,SAAS,KACZ,eAAe,YAElB,QAAQ,GACN,CACV,CAAC;AACN,CAAC;AAED,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC;AAEvB,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
[data-bspk=chip] {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
justify-content: center;
|
|
5
|
-
width: fit-content;
|
|
6
|
-
height: var(--spacing-sizing-06);
|
|
7
|
-
padding: 0 var(--spacing-sizing-02);
|
|
8
|
-
font: var(--labels-small);
|
|
9
|
-
color: var(--foreground-neutral-on-surface-variant-01);
|
|
10
|
-
background-color: var(--surface-neutral-t1-base);
|
|
11
|
-
border: 1px solid var(--stroke-neutral-low);
|
|
12
|
-
border-radius: var(--radius-small);
|
|
13
|
-
}
|
|
14
|
-
[data-bspk=chip]:not([data-flat]) {
|
|
15
|
-
box-shadow: var(--drop-shadow-raise);
|
|
16
|
-
}
|
|
17
|
-
[data-bspk=chip][data-variant=filter] {
|
|
18
|
-
cursor: pointer;
|
|
19
|
-
}
|
|
20
|
-
[data-bspk=chip][data-wrap] {
|
|
21
|
-
height: auto;
|
|
22
|
-
}
|
|
23
|
-
[data-bspk=chip][data-disabled] {
|
|
24
|
-
color: var(--foreground-neutral-disabled-on-surface);
|
|
25
|
-
cursor: not-allowed;
|
|
26
|
-
border-color: var(--stroke-neutral-disabled-light);
|
|
27
|
-
background-image: linear-gradient(var(--interactions-disabled-opacity), var(--interactions-disabled-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
28
|
-
}
|
|
29
|
-
[data-bspk=chip]:not([data-disabled]):hover {
|
|
30
|
-
background-image: linear-gradient(var(--interactions-neutral-hover-opacity), var(--interactions-neutral-hover-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
31
|
-
}
|
|
32
|
-
[data-bspk=chip]:not([data-disabled]):active {
|
|
33
|
-
background-image: linear-gradient(var(--interactions-neutral-press-opacity), var(--interactions-neutral-press-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
34
|
-
}
|
|
35
|
-
[data-bspk=chip]:not([data-disabled]):focus {
|
|
36
|
-
outline: 1px solid var(--stroke-neutral-focus);
|
|
37
|
-
border-color: var(--stroke-neutral-focus);
|
|
38
|
-
}
|
|
39
|
-
[data-bspk=chip][data-selected] {
|
|
40
|
-
background-color: var(--surface-brand-primary-highlight);
|
|
41
|
-
border-color: var(--stroke-brand-primary);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/** * This file is generated by the build script.
|
|
2
|
-
* Do not edit this file directly. */
|
|
3
|
-
const style = document.createElement('style');
|
|
4
|
-
style.appendChild(document.createTextNode(`[data-bspk=chip] {
|
|
5
|
-
display: flex;
|
|
6
|
-
flex-direction: column;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
width: fit-content;
|
|
9
|
-
height: var(--spacing-sizing-06);
|
|
10
|
-
padding: 0 var(--spacing-sizing-02);
|
|
11
|
-
font: var(--labels-small);
|
|
12
|
-
color: var(--foreground-neutral-on-surface-variant-01);
|
|
13
|
-
background-color: var(--surface-neutral-t1-base);
|
|
14
|
-
border: 1px solid var(--stroke-neutral-low);
|
|
15
|
-
border-radius: var(--radius-small);
|
|
16
|
-
}
|
|
17
|
-
[data-bspk=chip]:not([data-flat]) {
|
|
18
|
-
box-shadow: var(--drop-shadow-raise);
|
|
19
|
-
}
|
|
20
|
-
[data-bspk=chip][data-variant=filter] {
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
[data-bspk=chip][data-wrap] {
|
|
24
|
-
height: auto;
|
|
25
|
-
}
|
|
26
|
-
[data-bspk=chip][data-disabled] {
|
|
27
|
-
color: var(--foreground-neutral-disabled-on-surface);
|
|
28
|
-
cursor: not-allowed;
|
|
29
|
-
border-color: var(--stroke-neutral-disabled-light);
|
|
30
|
-
background-image: linear-gradient(var(--interactions-disabled-opacity), var(--interactions-disabled-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
31
|
-
}
|
|
32
|
-
[data-bspk=chip]:not([data-disabled]):hover {
|
|
33
|
-
background-image: linear-gradient(var(--interactions-neutral-hover-opacity), var(--interactions-neutral-hover-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
34
|
-
}
|
|
35
|
-
[data-bspk=chip]:not([data-disabled]):active {
|
|
36
|
-
background-image: linear-gradient(var(--interactions-neutral-press-opacity), var(--interactions-neutral-press-opacity)), linear-gradient(var(--surface-neutral-t1-base), var(--surface-neutral-t1-base));
|
|
37
|
-
}
|
|
38
|
-
[data-bspk=chip]:not([data-disabled]):focus {
|
|
39
|
-
outline: 1px solid var(--stroke-neutral-focus);
|
|
40
|
-
border-color: var(--stroke-neutral-focus);
|
|
41
|
-
}
|
|
42
|
-
[data-bspk=chip][data-selected] {
|
|
43
|
-
background-color: var(--surface-brand-primary-highlight);
|
|
44
|
-
border-color: var(--stroke-brand-primary);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
48
|
-
`));
|
|
49
|
-
document.head.appendChild(style);
|
|
50
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './Chip';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Chip/index.tsx"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A utility hook used within navigation components. Returns true if the icons are invalid.
|
|
3
|
-
*
|
|
4
|
-
* @param options [NavOption[]] The options to display. Each option has an optional leading icon.
|
|
5
|
-
* @returns {boolean} True if the icons are invalid.
|
|
6
|
-
*/
|
|
7
|
-
export declare function useOptionIconsInvalid<T extends NavOption>(options: T[] | undefined): boolean;
|
|
8
|
-
export type NavOption = {
|
|
9
|
-
/**
|
|
10
|
-
* The label of the option. This is the text that will be displayed on the option.
|
|
11
|
-
*
|
|
12
|
-
* @required
|
|
13
|
-
*/
|
|
14
|
-
label: string;
|
|
15
|
-
/**
|
|
16
|
-
* Determines if the element is [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled).
|
|
17
|
-
*
|
|
18
|
-
* @default false
|
|
19
|
-
*/
|
|
20
|
-
disabled?: boolean;
|
|
21
|
-
/** The value of the option. If not provided, the label will be used as the value. */
|
|
22
|
-
value?: string;
|
|
23
|
-
/**
|
|
24
|
-
* The the icon to display before the label.
|
|
25
|
-
*
|
|
26
|
-
* @type BspkIcon
|
|
27
|
-
*/
|
|
28
|
-
icon?: React.ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* The icon to display before the label when the option is active.
|
|
31
|
-
*
|
|
32
|
-
* @type BspkIcon
|
|
33
|
-
*/
|
|
34
|
-
iconActive?: React.ReactNode;
|
|
35
|
-
};
|
|
36
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { isValidIcon } from '../utils/children';
|
|
3
|
-
import { useErrorLogger } from '../utils/errors';
|
|
4
|
-
/**
|
|
5
|
-
* A utility hook used within navigation components. Returns true if the icons are invalid.
|
|
6
|
-
*
|
|
7
|
-
* @param options [NavOption[]] The options to display. Each option has an optional leading icon.
|
|
8
|
-
* @returns {boolean} True if the icons are invalid.
|
|
9
|
-
*/
|
|
10
|
-
export function useOptionIconsInvalid(options) {
|
|
11
|
-
const { logError } = useErrorLogger();
|
|
12
|
-
return useMemo(() => {
|
|
13
|
-
if (!options || !Array.isArray(options))
|
|
14
|
-
return true;
|
|
15
|
-
const iconsInvalid = options.some((o) => o.icon) && !options.every((option) => isValidIcon(option.icon));
|
|
16
|
-
logError(iconsInvalid, 'useNavOptions - Every option either must have a valid icon or none at all. All icons removed.');
|
|
17
|
-
return iconsInvalid;
|
|
18
|
-
}, [logError, options]);
|
|
19
|
-
}
|
|
20
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
21
|
-
//# sourceMappingURL=useOptionIconsInvalid.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useOptionIconsInvalid.js","sourceRoot":"","sources":["../../src/hooks/useOptionIconsInvalid.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,UAAU,qBAAqB,CAAsB,OAAwB;IAC/E,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,CAAC,OAAO,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC;YAAE,OAAO,IAAI,CAAC;QAErD,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;QAEzG,QAAQ,CACJ,YAAY,EACZ,+FAA+F,CAClG,CAAC;QAEF,OAAO,YAAY,CAAC;IACxB,CAAC,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC;AAC5B,CAAC;AA+BD,sDAAsD"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare function useValidChildren(componentNme: string, children: ReactNode, ariaLabel: string | undefined, override?: boolean): {
|
|
3
|
-
icon?: ReactNode | undefined;
|
|
4
|
-
label?: ReactNode | undefined;
|
|
5
|
-
};
|
|
6
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { useMemo } from 'react';
|
|
2
|
-
import { getChildrenElements } from '../utils/children';
|
|
3
|
-
import { useErrorLogger } from '../utils/errors';
|
|
4
|
-
const VALID_CHILDREN = ['Icon', 'string'];
|
|
5
|
-
export function useValidChildren(componentNme, children, ariaLabel, override) {
|
|
6
|
-
const { logError } = useErrorLogger();
|
|
7
|
-
return useMemo(() => {
|
|
8
|
-
if (override)
|
|
9
|
-
return { icon: undefined, label: undefined };
|
|
10
|
-
let icon;
|
|
11
|
-
let label;
|
|
12
|
-
const childrenArray = getChildrenElements(children);
|
|
13
|
-
logError(childrenArray.length > 2, `${componentNme} - component only accepts two children, ${childrenArray.length} were provided`);
|
|
14
|
-
childrenArray.forEach(({ child, name }) => {
|
|
15
|
-
const valid = VALID_CHILDREN.includes(name);
|
|
16
|
-
logError(!valid, `${componentNme} - component only accepts two children, and Icon and string`);
|
|
17
|
-
if (valid) {
|
|
18
|
-
if (name === 'string')
|
|
19
|
-
label = child;
|
|
20
|
-
if (name === 'Icon')
|
|
21
|
-
icon = child;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
logError(!icon && !label, `${componentNme} - component requires at least one child, an icon or a label`);
|
|
25
|
-
logError(!!icon && !label && !ariaLabel, `${componentNme} - component requires the aria-label property when only an icon is provided`);
|
|
26
|
-
return { icon, label };
|
|
27
|
-
}, [override, children, logError, componentNme, ariaLabel]);
|
|
28
|
-
}
|
|
29
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
30
|
-
//# sourceMappingURL=useValidChildren.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useValidChildren.js","sourceRoot":"","sources":["../../src/hooks/useValidChildren.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,OAAO,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAEhD,MAAM,cAAc,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;AAE1C,MAAM,UAAU,gBAAgB,CAC5B,YAAoB,EACpB,QAAmB,EACnB,SAA6B,EAC7B,QAAkB;IAKlB,MAAM,EAAE,QAAQ,EAAE,GAAG,cAAc,EAAE,CAAC;IAEtC,OAAO,OAAO,CAAC,GAAG,EAAE;QAChB,IAAI,QAAQ;YAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC;QAE3D,IAAI,IAA2B,CAAC;QAChC,IAAI,KAAgB,CAAC;QAErB,MAAM,aAAa,GAAG,mBAAmB,CAAC,QAAQ,CAAC,CAAC;QAEpD,QAAQ,CACJ,aAAa,CAAC,MAAM,GAAG,CAAC,EACxB,GAAG,YAAY,2CAA2C,aAAa,CAAC,MAAM,gBAAgB,CACjG,CAAC;QAEF,aAAa,CAAC,OAAO,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE;YACtC,MAAM,KAAK,GAAG,cAAc,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;YAE5C,QAAQ,CAAC,CAAC,KAAK,EAAE,GAAG,YAAY,8DAA8D,CAAC,CAAC;YAEhG,IAAI,KAAK,EAAE,CAAC;gBACR,IAAI,IAAI,KAAK,QAAQ;oBAAE,KAAK,GAAG,KAAK,CAAC;gBACrC,IAAI,IAAI,KAAK,MAAM;oBAAE,IAAI,GAAG,KAAK,CAAC;YACtC,CAAC;QACL,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE,GAAG,YAAY,8DAA8D,CAAC,CAAC;QAEzG,QAAQ,CACJ,CAAC,CAAC,IAAI,IAAI,CAAC,KAAK,IAAI,CAAC,SAAS,EAC9B,GAAG,YAAY,6EAA6E,CAC/F,CAAC;QAEF,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3B,CAAC,EAAE,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,sDAAsD"}
|
package/dist/utils/children.d.ts
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { ReactNode } from 'react';
|
|
2
|
-
export declare function isValidIcon(child: unknown): boolean;
|
|
3
|
-
export declare function getChildName(child: unknown): string;
|
|
4
|
-
export declare function getChildTypeName(child: unknown): string;
|
|
5
|
-
export declare function isChildNamed(child: unknown, name: string): boolean;
|
|
6
|
-
export declare function isReactFragment(node: unknown): node is ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Convert children to a flat array of children elements, removing any fragment wrappers in the process.
|
|
9
|
-
*
|
|
10
|
-
* @param children The children to convert to an array.
|
|
11
|
-
* @param ignoreParent If true, ignore parent elements and only return the children
|
|
12
|
-
*/
|
|
13
|
-
export declare function childrenToArray(children: ReactNode): ReactNode[];
|
|
14
|
-
export type ChildElement = {
|
|
15
|
-
child: ReactNode;
|
|
16
|
-
name: string;
|
|
17
|
-
} | {
|
|
18
|
-
child: string;
|
|
19
|
-
name: string;
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* Get the children of a component as an array of objects with the child and the name of the child.
|
|
23
|
-
*
|
|
24
|
-
* Filter out unknown empty strings or non-truthy children other than zeros.
|
|
25
|
-
*
|
|
26
|
-
* @param children The children to get the elements from.
|
|
27
|
-
*/
|
|
28
|
-
export declare function getChildrenElements(children: ReactNode): ChildElement[];
|
|
29
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/utils/children.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import { Children, Fragment, isValidElement } from 'react';
|
|
2
|
-
export function isValidIcon(child) {
|
|
3
|
-
return isChildNamed(child, 'Icon');
|
|
4
|
-
}
|
|
5
|
-
export function getChildName(child) {
|
|
6
|
-
if (!child)
|
|
7
|
-
return '';
|
|
8
|
-
const typeChild = typeof child;
|
|
9
|
-
if (['string', 'number', 'boolean', 'bigint'].includes(typeChild))
|
|
10
|
-
return typeChild;
|
|
11
|
-
return (isValidElement(child) ? child.type?.bspkName : '') || '';
|
|
12
|
-
}
|
|
13
|
-
export function getChildTypeName(child) {
|
|
14
|
-
if (!child)
|
|
15
|
-
return '';
|
|
16
|
-
const typeChild = typeof child;
|
|
17
|
-
if (['string', 'number', 'boolean', 'bigint'].includes(typeChild))
|
|
18
|
-
return typeChild;
|
|
19
|
-
if (isValidElement(child)) {
|
|
20
|
-
if (typeof child.type === 'string')
|
|
21
|
-
return child.type;
|
|
22
|
-
return child.type.name || '';
|
|
23
|
-
}
|
|
24
|
-
return '';
|
|
25
|
-
}
|
|
26
|
-
export function isChildNamed(child, name) {
|
|
27
|
-
return getChildName(child) === name;
|
|
28
|
-
}
|
|
29
|
-
export function isReactFragment(node) {
|
|
30
|
-
return isValidElement(node) && node.type === Fragment;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Convert children to a flat array of children elements, removing any fragment wrappers in the process.
|
|
34
|
-
*
|
|
35
|
-
* @param children The children to convert to an array.
|
|
36
|
-
* @param ignoreParent If true, ignore parent elements and only return the children
|
|
37
|
-
*/
|
|
38
|
-
export function childrenToArray(children) {
|
|
39
|
-
return Children.toArray(children).flatMap((child) => {
|
|
40
|
-
if (isValidElement(child)) {
|
|
41
|
-
if (isReactFragment(child) && child.props.children)
|
|
42
|
-
return childrenToArray(child.props.children);
|
|
43
|
-
return child;
|
|
44
|
-
}
|
|
45
|
-
if (Array.isArray(child))
|
|
46
|
-
return childrenToArray(child);
|
|
47
|
-
if (child !== null && child !== undefined)
|
|
48
|
-
return child;
|
|
49
|
-
return [];
|
|
50
|
-
}, []);
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Get the children of a component as an array of objects with the child and the name of the child.
|
|
54
|
-
*
|
|
55
|
-
* Filter out unknown empty strings or non-truthy children other than zeros.
|
|
56
|
-
*
|
|
57
|
-
* @param children The children to get the elements from.
|
|
58
|
-
*/
|
|
59
|
-
export function getChildrenElements(children) {
|
|
60
|
-
return (Array.isArray(children) ? children : childrenToArray(children))
|
|
61
|
-
.filter((child) => {
|
|
62
|
-
return (typeof child === 'string' && child.trim() !== '') || child === 0 || child;
|
|
63
|
-
})
|
|
64
|
-
.map((child) => ({ child, name: getChildName(child) }));
|
|
65
|
-
}
|
|
66
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
67
|
-
//# sourceMappingURL=children.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"children.js","sourceRoot":"","sources":["../../src/utils/children.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,QAAQ,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAEtE,MAAM,UAAU,WAAW,CAAC,KAAc;IACtC,OAAO,YAAY,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;AACvC,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc;IACvC,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;IAC/B,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IACpF,OAAO,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,CAAC,CAAE,KAAK,CAAC,IAA8B,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC;AAChG,CAAC;AAED,MAAM,UAAU,gBAAgB,CAAC,KAAc;IAC3C,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IACtB,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;IAE/B,IAAI,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,SAAS,CAAC;QAAE,OAAO,SAAS,CAAC;IAEpF,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;QACxB,IAAI,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;YAAE,OAAO,KAAK,CAAC,IAAI,CAAC;QACtD,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC;IACjC,CAAC;IAED,OAAO,EAAE,CAAC;AACd,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAc,EAAE,IAAY;IACrD,OAAO,YAAY,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC;AACxC,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,IAAa;IACzC,OAAO,cAAc,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC;AAC1D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,eAAe,CAAC,QAAmB;IAC/C,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,KAAK,EAAE,EAAE;QAChD,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;YACxB,IAAI,eAAe,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ;gBAAE,OAAO,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC;YACjG,OAAO,KAAK,CAAC;QACjB,CAAC;QACD,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;YAAE,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;QACxD,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,SAAS;YAAE,OAAO,KAAK,CAAC;QACxD,OAAO,EAAE,CAAC;IACd,CAAC,EAAE,EAAE,CAAC,CAAC;AACX,CAAC;AAYD;;;;;;GAMG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAmB;IACnD,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;SAClE,MAAM,CAAC,CAAC,KAAK,EAAE,EAAE;QACd,OAAO,CAAC,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,IAAI,KAAK,KAAK,CAAC,IAAI,KAAK,CAAC;IACtF,CAAC,CAAC;SACD,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;AAChE,CAAC;AAED,sDAAsD"}
|
package/dist/utils/srOnly.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function returns an object with a `data-sr-only` attribute if the `hide` parameter is true.
|
|
3
|
-
*
|
|
4
|
-
* This is useful for hiding content visually but keeping it accessible to screen readers.
|
|
5
|
-
*
|
|
6
|
-
* @param hide
|
|
7
|
-
* @returns An object with a `data-sr-only` attribute if the `hide` parameter is true
|
|
8
|
-
*/
|
|
9
|
-
export declare function srOnly(hide: unknown): {
|
|
10
|
-
'data-sr-only': boolean;
|
|
11
|
-
} | {
|
|
12
|
-
'data-sr-only'?: undefined;
|
|
13
|
-
};
|
|
14
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/utils/srOnly.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* This function returns an object with a `data-sr-only` attribute if the `hide` parameter is true.
|
|
3
|
-
*
|
|
4
|
-
* This is useful for hiding content visually but keeping it accessible to screen readers.
|
|
5
|
-
*
|
|
6
|
-
* @param hide
|
|
7
|
-
* @returns An object with a `data-sr-only` attribute if the `hide` parameter is true
|
|
8
|
-
*/
|
|
9
|
-
export function srOnly(hide) {
|
|
10
|
-
return hide ? { 'data-sr-only': true } : {};
|
|
11
|
-
}
|
|
12
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
13
|
-
//# sourceMappingURL=srOnly.js.map
|
package/dist/utils/srOnly.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"srOnly.js","sourceRoot":"","sources":["../../src/utils/srOnly.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,UAAU,MAAM,CAAC,IAAa;IAChC,OAAO,IAAI,CAAC,CAAC,CAAC,EAAE,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;AAChD,CAAC;AAED,sDAAsD"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
|
|
3
|
-
import { CommonProps } from '-';
|
|
4
|
-
|
|
5
|
-
import './chip.scss';
|
|
6
|
-
|
|
7
|
-
export type ChipProps = CommonProps<'disabled'> & {
|
|
8
|
-
/**
|
|
9
|
-
* The content of the chip.
|
|
10
|
-
*
|
|
11
|
-
* @required
|
|
12
|
-
*/
|
|
13
|
-
children: ReactNode | string;
|
|
14
|
-
/**
|
|
15
|
-
* Whether the chip should wrap its content.
|
|
16
|
-
*
|
|
17
|
-
* (Not recommended)
|
|
18
|
-
*
|
|
19
|
-
* @default false
|
|
20
|
-
*/
|
|
21
|
-
wrap?: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* The variant of the chip.
|
|
24
|
-
*
|
|
25
|
-
* @default filter
|
|
26
|
-
*/
|
|
27
|
-
variant?: 'filter';
|
|
28
|
-
/**
|
|
29
|
-
* Is the chip elevated or flat. If flat the drop shadow is removed.
|
|
30
|
-
*
|
|
31
|
-
* @default false
|
|
32
|
-
*/
|
|
33
|
-
flat?: boolean;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Whether the chip is currently selected.
|
|
37
|
-
*
|
|
38
|
-
* @default false
|
|
39
|
-
*/
|
|
40
|
-
selected?: boolean;
|
|
41
|
-
/** The style of the chip. */
|
|
42
|
-
style?: CSSProperties;
|
|
43
|
-
/** The function to call when the chip is clicked. */
|
|
44
|
-
onClick?: (event: React.MouseEvent<HTMLSpanElement, MouseEvent>) => void;
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Dynamically generated options that are suggested to the user as responses or prompts.
|
|
49
|
-
*
|
|
50
|
-
* @example
|
|
51
|
-
* import { Chip } from '@bspk/ui/Chip';
|
|
52
|
-
*
|
|
53
|
-
* function Example() {
|
|
54
|
-
* return (
|
|
55
|
-
* <Chip variant="filter" onClick={() => console.log('Chip clicked!')}>
|
|
56
|
-
* Example Chip
|
|
57
|
-
* </Chip>
|
|
58
|
-
* );
|
|
59
|
-
* }
|
|
60
|
-
*
|
|
61
|
-
* @name Chip
|
|
62
|
-
* @phase DesignReview
|
|
63
|
-
*/
|
|
64
|
-
function Chip({
|
|
65
|
-
children = '',
|
|
66
|
-
wrap = false,
|
|
67
|
-
variant = 'filter',
|
|
68
|
-
flat = false,
|
|
69
|
-
disabled = false,
|
|
70
|
-
selected = false,
|
|
71
|
-
onClick,
|
|
72
|
-
style: styleProp,
|
|
73
|
-
}: ChipProps) {
|
|
74
|
-
let additionalProps = {};
|
|
75
|
-
|
|
76
|
-
if (variant === 'filter') {
|
|
77
|
-
additionalProps = {
|
|
78
|
-
onClick,
|
|
79
|
-
role: 'button',
|
|
80
|
-
tabIndex: 0,
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
return (
|
|
85
|
-
<span
|
|
86
|
-
data-bspk="chip"
|
|
87
|
-
data-disabled={disabled || undefined}
|
|
88
|
-
data-flat={flat || undefined}
|
|
89
|
-
data-selected={selected || undefined}
|
|
90
|
-
data-variant={variant}
|
|
91
|
-
data-wrap={wrap || undefined}
|
|
92
|
-
style={styleProp}
|
|
93
|
-
{...additionalProps}
|
|
94
|
-
>
|
|
95
|
-
{children}
|
|
96
|
-
</span>
|
|
97
|
-
);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
Chip.bspkName = 'Chip';
|
|
101
|
-
|
|
102
|
-
export { Chip };
|
|
103
|
-
|
|
104
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|