@bspk/ui 1.1.31 → 1.1.33
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 +126 -0
- package/dist/base.css +300 -1
- package/dist/base.css.js +306 -0
- package/dist/colors.css +75 -1
- package/dist/colors.css.js +81 -0
- package/dist/components/Avatar/Avatar.d.ts +86 -0
- package/dist/components/Avatar/Avatar.js +62 -0
- package/dist/components/Avatar/Avatar.js.map +1 -0
- package/dist/components/Avatar/AvatarExample.d.ts +3 -0
- package/dist/components/Avatar/AvatarExample.js +39 -0
- package/dist/components/Avatar/AvatarExample.js.map +1 -0
- package/dist/components/Avatar/avatar.css +86 -0
- package/dist/components/Avatar/avatar.css.js +92 -0
- package/dist/components/Avatar/index.d.ts +1 -0
- package/dist/components/Avatar/index.js +2 -0
- package/dist/components/Avatar/index.js.map +1 -0
- package/dist/components/AvatarGroup/AvatarGroup.d.ts +64 -0
- package/dist/components/AvatarGroup/AvatarGroup.js +32 -0
- package/dist/components/AvatarGroup/AvatarGroup.js.map +1 -0
- package/dist/components/AvatarGroup/avatar-group.css +12 -0
- package/dist/components/AvatarGroup/avatar-group.css.js +18 -0
- package/dist/components/AvatarGroup/index.d.ts +1 -0
- package/dist/components/AvatarGroup/index.js +2 -0
- package/dist/components/AvatarGroup/index.js.map +1 -0
- package/dist/components/Badge/Badge.d.ts +64 -0
- package/dist/components/Badge/Badge.js +31 -0
- package/dist/components/Badge/Badge.js.map +1 -0
- package/dist/components/Badge/BadgeExample.d.ts +3 -0
- package/dist/components/Badge/BadgeExample.js +44 -0
- package/dist/components/Badge/BadgeExample.js.map +1 -0
- package/dist/components/Badge/badge.css +45 -0
- package/dist/components/Badge/badge.css.js +51 -0
- package/dist/components/Badge/index.d.ts +1 -0
- package/dist/components/Badge/index.js +2 -0
- package/dist/components/Badge/index.js.map +1 -0
- package/dist/components/BannerAlert/BannerAlert.d.ts +71 -0
- package/dist/components/BannerAlert/BannerAlert.js +37 -0
- package/dist/components/BannerAlert/BannerAlert.js.map +1 -0
- package/dist/components/BannerAlert/BannerAlertExample.d.ts +3 -0
- package/dist/components/BannerAlert/BannerAlertExample.js +36 -0
- package/dist/components/BannerAlert/BannerAlertExample.js.map +1 -0
- package/dist/components/BannerAlert/banner-alert.css +100 -0
- package/dist/components/BannerAlert/banner-alert.css.js +106 -0
- package/dist/components/BannerAlert/index.d.ts +1 -0
- package/dist/components/BannerAlert/index.js +2 -0
- package/dist/components/BannerAlert/index.js.map +1 -0
- package/dist/components/Breadcrumb/Breadcrumb.d.ts +81 -0
- package/dist/components/Breadcrumb/Breadcrumb.js +57 -0
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -0
- package/dist/components/Breadcrumb/BreadcrumbExample.d.ts +3 -0
- package/dist/components/Breadcrumb/BreadcrumbExample.js +89 -0
- package/dist/components/Breadcrumb/BreadcrumbExample.js.map +1 -0
- package/dist/components/Breadcrumb/breadcrumb.css +14 -0
- package/dist/components/Breadcrumb/breadcrumb.css.js +20 -0
- package/dist/components/Breadcrumb/index.d.ts +1 -0
- package/dist/components/Breadcrumb/index.js +2 -0
- package/dist/components/Breadcrumb/index.js.map +1 -0
- package/dist/components/Button/Button.d.ts +95 -0
- package/dist/components/Button/Button.js +48 -0
- package/dist/components/Button/Button.js.map +1 -0
- package/dist/components/Button/ButtonExample.d.ts +3 -0
- package/dist/components/Button/ButtonExample.js +27 -0
- package/dist/components/Button/ButtonExample.js.map +1 -0
- package/dist/components/Button/button.css +153 -0
- package/dist/components/Button/button.css.js +159 -0
- package/dist/components/Button/index.d.ts +1 -0
- package/dist/components/Button/index.js +2 -0
- package/dist/components/Button/index.js.map +1 -0
- package/dist/components/Card/Card.d.ts +50 -0
- package/dist/components/Card/Card.js +30 -0
- package/dist/components/Card/Card.js.map +1 -0
- package/dist/components/Card/CardExample.d.ts +2 -0
- package/dist/components/Card/CardExample.js +10 -0
- package/dist/components/Card/CardExample.js.map +1 -0
- package/dist/components/Card/card.css +18 -0
- package/dist/components/Card/card.css.js +24 -0
- package/dist/components/Card/index.d.ts +1 -0
- package/dist/components/Card/index.js +2 -0
- package/dist/components/Card/index.js.map +1 -0
- package/dist/components/Checkbox/Checkbox.d.ts +61 -0
- package/dist/components/Checkbox/Checkbox.js +53 -0
- package/dist/components/Checkbox/Checkbox.js.map +1 -0
- package/dist/components/Checkbox/checkbox.css +77 -0
- package/dist/components/Checkbox/checkbox.css.js +83 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/index.js +2 -0
- package/dist/components/Checkbox/index.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +83 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +40 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js.map +1 -0
- package/dist/components/CheckboxGroup/CheckboxGroupExample.d.ts +3 -0
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js +25 -0
- package/dist/components/CheckboxGroup/CheckboxGroupExample.js.map +1 -0
- package/dist/components/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/CheckboxGroup/index.js +2 -0
- package/dist/components/CheckboxGroup/index.js.map +1 -0
- package/dist/components/CheckboxOption/CheckboxOption.d.ts +45 -0
- package/dist/components/CheckboxOption/CheckboxOption.js +38 -0
- package/dist/components/CheckboxOption/CheckboxOption.js.map +1 -0
- package/dist/components/CheckboxOption/index.d.ts +1 -0
- package/dist/components/CheckboxOption/index.js +2 -0
- package/dist/components/CheckboxOption/index.js.map +1 -0
- package/dist/components/Chip/Chip.d.ts +64 -0
- package/dist/components/Chip/Chip.js +33 -0
- package/dist/components/Chip/Chip.js.map +1 -0
- package/dist/components/Chip/chip.css +44 -0
- package/dist/components/Chip/chip.css.js +50 -0
- package/dist/components/Chip/index.d.ts +1 -0
- package/dist/components/Chip/index.js +2 -0
- package/dist/components/Chip/index.js.map +1 -0
- package/dist/components/ChipAssist/ChipAssist.d.ts +28 -0
- package/dist/components/ChipAssist/ChipAssist.js +28 -0
- package/dist/components/ChipAssist/ChipAssist.js.map +1 -0
- package/dist/components/ChipAssist/ChipAssistExample.d.ts +3 -0
- package/dist/components/ChipAssist/ChipAssistExample.js +31 -0
- package/dist/components/ChipAssist/ChipAssistExample.js.map +1 -0
- package/dist/components/ChipAssist/index.d.ts +1 -0
- package/dist/components/ChipAssist/index.js +2 -0
- package/dist/components/ChipAssist/index.js.map +1 -0
- package/dist/components/ChipFilter/ChipFilter.d.ts +44 -0
- package/dist/components/ChipFilter/ChipFilter.js +33 -0
- package/dist/components/ChipFilter/ChipFilter.js.map +1 -0
- package/dist/components/ChipFilter/ChipFilterExample.d.ts +3 -0
- package/dist/components/ChipFilter/ChipFilterExample.js +59 -0
- package/dist/components/ChipFilter/ChipFilterExample.js.map +1 -0
- package/dist/components/ChipFilter/index.d.ts +1 -0
- package/dist/components/ChipFilter/index.js +2 -0
- package/dist/components/ChipFilter/index.js.map +1 -0
- package/dist/components/ChipGroup/ChipGroup.d.ts +39 -0
- package/dist/components/ChipGroup/ChipGroup.js +27 -0
- package/dist/components/ChipGroup/ChipGroup.js.map +1 -0
- package/dist/components/ChipGroup/ChipGroupExample.d.ts +3 -0
- package/dist/components/ChipGroup/ChipGroupExample.js +48 -0
- package/dist/components/ChipGroup/ChipGroupExample.js.map +1 -0
- package/dist/components/ChipGroup/chip-group.css +11 -0
- package/dist/components/ChipGroup/chip-group.css.js +17 -0
- package/dist/components/ChipGroup/index.d.ts +1 -0
- package/dist/components/ChipGroup/index.js +2 -0
- package/dist/components/ChipGroup/index.js.map +1 -0
- package/dist/components/ChipInput/ChipInput.d.ts +35 -0
- package/dist/components/ChipInput/ChipInput.js +29 -0
- package/dist/components/ChipInput/ChipInput.js.map +1 -0
- package/dist/components/ChipInput/ChipInputExample.d.ts +3 -0
- package/dist/components/ChipInput/ChipInputExample.js +46 -0
- package/dist/components/ChipInput/ChipInputExample.js.map +1 -0
- package/dist/components/ChipInput/index.d.ts +1 -0
- package/dist/components/ChipInput/index.js +2 -0
- package/dist/components/ChipInput/index.js.map +1 -0
- package/dist/components/ChipSuggestion/ChipSuggestion.d.ts +21 -0
- package/dist/components/ChipSuggestion/ChipSuggestion.js +21 -0
- package/dist/components/ChipSuggestion/ChipSuggestion.js.map +1 -0
- package/dist/components/ChipSuggestion/ChipSuggestionExample.d.ts +3 -0
- package/dist/components/ChipSuggestion/ChipSuggestionExample.js +23 -0
- package/dist/components/ChipSuggestion/ChipSuggestionExample.js.map +1 -0
- package/dist/components/ChipSuggestion/index.d.ts +1 -0
- package/dist/components/ChipSuggestion/index.js +2 -0
- package/dist/components/ChipSuggestion/index.js.map +1 -0
- package/dist/components/ChipUtility/ChipUtility.d.ts +79 -0
- package/dist/components/ChipUtility/ChipUtility.js +28 -0
- package/dist/components/ChipUtility/ChipUtility.js.map +1 -0
- package/dist/components/ChipUtility/ChipUtilityExample.d.ts +3 -0
- package/dist/components/ChipUtility/ChipUtilityExample.js +60 -0
- package/dist/components/ChipUtility/ChipUtilityExample.js.map +1 -0
- package/dist/components/ChipUtility/chip-utility.css +48 -0
- package/dist/components/ChipUtility/chip-utility.css.js +54 -0
- package/dist/components/ChipUtility/index.d.ts +1 -0
- package/dist/components/ChipUtility/index.js +2 -0
- package/dist/components/ChipUtility/index.js.map +1 -0
- package/dist/components/Combobox/Combobox.d.ts +96 -0
- package/dist/components/Combobox/Combobox.js +83 -0
- package/dist/components/Combobox/Combobox.js.map +1 -0
- package/dist/components/Combobox/index.d.ts +1 -0
- package/dist/components/Combobox/index.js +2 -0
- package/dist/components/Combobox/index.js.map +1 -0
- package/dist/components/Dialog/Dialog.d.ts +69 -0
- package/dist/components/Dialog/Dialog.js +90 -0
- package/dist/components/Dialog/Dialog.js.map +1 -0
- package/dist/components/Dialog/DialogExample.d.ts +3 -0
- package/dist/components/Dialog/DialogExample.js +11 -0
- package/dist/components/Dialog/DialogExample.js.map +1 -0
- package/dist/components/Dialog/dialog.css +119 -0
- package/dist/components/Dialog/dialog.css.js +125 -0
- package/dist/components/Dialog/index.d.ts +1 -0
- package/dist/components/Dialog/index.js +2 -0
- package/dist/components/Dialog/index.js.map +1 -0
- package/dist/components/Divider/Divider.d.ts +58 -0
- package/dist/components/Divider/Divider.js +40 -0
- package/dist/components/Divider/Divider.js.map +1 -0
- package/dist/components/Divider/DividerExample.d.ts +2 -0
- package/dist/components/Divider/DividerExample.js +15 -0
- package/dist/components/Divider/DividerExample.js.map +1 -0
- package/dist/components/Divider/divider.css +39 -0
- package/dist/components/Divider/divider.css.js +45 -0
- package/dist/components/Divider/index.d.ts +1 -0
- package/dist/components/Divider/index.js +2 -0
- package/dist/components/Divider/index.js.map +1 -0
- package/dist/components/EmptyState/EmptyState.d.ts +54 -0
- package/dist/components/EmptyState/EmptyState.js +30 -0
- package/dist/components/EmptyState/EmptyState.js.map +1 -0
- package/dist/components/EmptyState/EmptyStateExample.d.ts +3 -0
- package/dist/components/EmptyState/EmptyStateExample.js +25 -0
- package/dist/components/EmptyState/EmptyStateExample.js.map +1 -0
- package/dist/components/EmptyState/index.d.ts +1 -0
- package/dist/components/EmptyState/index.js +2 -0
- package/dist/components/EmptyState/index.js.map +1 -0
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.d.ts +17 -0
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js +22 -0
- package/dist/components/ExamplePlaceholder/ExamplePlaceholder.js.map +1 -0
- package/dist/components/ExamplePlaceholder/index.d.ts +1 -0
- package/dist/components/ExamplePlaceholder/index.js +2 -0
- package/dist/components/ExamplePlaceholder/index.js.map +1 -0
- package/dist/components/Fab/Fab.d.ts +52 -0
- package/dist/components/Fab/Fab.js +32 -0
- package/dist/components/Fab/Fab.js.map +1 -0
- package/dist/components/Fab/FabExample.d.ts +2 -0
- package/dist/components/Fab/FabExample.js +6 -0
- package/dist/components/Fab/FabExample.js.map +1 -0
- package/dist/components/Fab/fab.css +93 -0
- package/dist/components/Fab/fab.css.js +99 -0
- package/dist/components/Fab/index.d.ts +1 -0
- package/dist/components/Fab/index.js +2 -0
- package/dist/components/Fab/index.js.map +1 -0
- package/dist/components/FormField/FormField.d.ts +75 -0
- package/dist/components/FormField/FormField.js +53 -0
- package/dist/components/FormField/FormField.js.map +1 -0
- package/dist/components/FormField/form-field.css +17 -0
- package/dist/components/FormField/form-field.css.js +23 -0
- package/dist/components/FormField/index.d.ts +1 -0
- package/dist/components/FormField/index.js +2 -0
- package/dist/components/FormField/index.js.map +1 -0
- package/dist/components/Img/Img.d.ts +34 -0
- package/dist/components/Img/Img.js +20 -0
- package/dist/components/Img/Img.js.map +1 -0
- package/dist/components/Img/index.d.ts +1 -0
- package/dist/components/Img/index.js +2 -0
- package/dist/components/Img/index.js.map +1 -0
- package/dist/components/InlineAlert/InlineAlert.d.ts +39 -0
- package/dist/components/InlineAlert/InlineAlert.js +34 -0
- package/dist/components/InlineAlert/InlineAlert.js.map +1 -0
- package/dist/components/InlineAlert/index.d.ts +1 -0
- package/dist/components/InlineAlert/index.js +2 -0
- package/dist/components/InlineAlert/index.js.map +1 -0
- package/dist/components/InlineAlert/inline-alert.css +40 -0
- package/dist/components/InlineAlert/inline-alert.css.js +46 -0
- package/dist/components/Layout/Layout.d.ts +56 -0
- package/dist/components/Layout/Layout.js +32 -0
- package/dist/components/Layout/Layout.js.map +1 -0
- package/dist/components/Layout/index.d.ts +1 -0
- package/dist/components/Layout/index.js +2 -0
- package/dist/components/Layout/index.js.map +1 -0
- package/dist/components/Link/Link.d.ts +59 -0
- package/dist/components/Link/Link.js +29 -0
- package/dist/components/Link/Link.js.map +1 -0
- package/dist/components/Link/LinkExample.d.ts +11 -0
- package/dist/components/Link/LinkExample.js +47 -0
- package/dist/components/Link/LinkExample.js.map +1 -0
- package/dist/components/Link/index.d.ts +1 -0
- package/dist/components/Link/index.js +2 -0
- package/dist/components/Link/index.js.map +1 -0
- package/dist/components/Link/link.css +18 -0
- package/dist/components/Link/link.css.js +24 -0
- package/dist/components/ListItem/ListItem.d.ts +102 -0
- package/dist/components/ListItem/ListItem.js +106 -0
- package/dist/components/ListItem/ListItem.js.map +1 -0
- package/dist/components/ListItem/ListItemExample.d.ts +4 -0
- package/dist/components/ListItem/ListItemExample.js +57 -0
- package/dist/components/ListItem/ListItemExample.js.map +1 -0
- package/dist/components/ListItem/index.d.ts +1 -0
- package/dist/components/ListItem/index.js +2 -0
- package/dist/components/ListItem/index.js.map +1 -0
- package/dist/components/ListItem/list-item.css +95 -0
- package/dist/components/ListItem/list-item.css.js +101 -0
- package/dist/components/Listbox/Listbox.d.ts +119 -0
- package/dist/components/Listbox/Listbox.js +85 -0
- package/dist/components/Listbox/Listbox.js.map +1 -0
- package/dist/components/Listbox/index.d.ts +1 -0
- package/dist/components/Listbox/index.js +2 -0
- package/dist/components/Listbox/index.js.map +1 -0
- package/dist/components/Menu/Menu.d.ts +73 -0
- package/dist/components/Menu/Menu.js +60 -0
- package/dist/components/Menu/Menu.js.map +1 -0
- package/dist/components/Menu/MenuExample.d.ts +6 -0
- package/dist/components/Menu/MenuExample.js +25 -0
- package/dist/components/Menu/MenuExample.js.map +1 -0
- package/dist/components/Menu/index.d.ts +1 -0
- package/dist/components/Menu/index.js +2 -0
- package/dist/components/Menu/index.js.map +1 -0
- package/dist/components/Menu/menu.css +20 -0
- package/dist/components/Menu/menu.css.js +26 -0
- package/dist/components/MenuButton/MenuButton.d.ts +23 -0
- package/dist/components/MenuButton/MenuButton.js +22 -0
- package/dist/components/MenuButton/MenuButton.js.map +1 -0
- package/dist/components/MenuButton/index.d.ts +1 -0
- package/dist/components/MenuButton/index.js +2 -0
- package/dist/components/MenuButton/index.js.map +1 -0
- package/dist/components/MenuButton/menu-button.css +16 -0
- package/dist/components/MenuButton/menu-button.css.js +22 -0
- package/dist/components/Modal/Modal.d.ts +101 -0
- package/dist/components/Modal/Modal.js +100 -0
- package/dist/components/Modal/Modal.js.map +1 -0
- package/dist/components/Modal/ModalExample.d.ts +3 -0
- package/dist/components/Modal/ModalExample.js +42 -0
- package/dist/components/Modal/ModalExample.js.map +1 -0
- package/dist/components/Modal/index.d.ts +1 -0
- package/dist/components/Modal/index.js +2 -0
- package/dist/components/Modal/index.js.map +1 -0
- package/dist/components/Modal/modal.css +38 -0
- package/dist/components/Modal/modal.css.js +44 -0
- package/dist/components/NumberField/NumberField.d.ts +37 -0
- package/dist/components/NumberField/NumberField.js +38 -0
- package/dist/components/NumberField/NumberField.js.map +1 -0
- package/dist/components/NumberField/index.d.ts +1 -0
- package/dist/components/NumberField/index.js +2 -0
- package/dist/components/NumberField/index.js.map +1 -0
- package/dist/components/NumberInput/NumberInput.d.ts +66 -0
- package/dist/components/NumberInput/NumberInput.js +88 -0
- package/dist/components/NumberInput/NumberInput.js.map +1 -0
- package/dist/components/NumberInput/index.d.ts +1 -0
- package/dist/components/NumberInput/index.js +2 -0
- package/dist/components/NumberInput/index.js.map +1 -0
- package/dist/components/NumberInput/number-input.css +99 -0
- package/dist/components/NumberInput/number-input.css.js +105 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.d.ts +18 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.js +19 -0
- package/dist/components/PhoneNumberField/PhoneNumberField.js.map +1 -0
- package/dist/components/PhoneNumberField/index.d.ts +1 -0
- package/dist/components/PhoneNumberField/index.js +2 -0
- package/dist/components/PhoneNumberField/index.js.map +1 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.d.ts +41 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js +90 -0
- package/dist/components/PhoneNumberInput/PhoneNumberInput.js.map +1 -0
- package/dist/components/PhoneNumberInput/index.d.ts +1 -0
- package/dist/components/PhoneNumberInput/index.js +2 -0
- package/dist/components/PhoneNumberInput/index.js.map +1 -0
- package/dist/components/PhoneNumberInput/phone-number-input.css +36 -0
- package/dist/components/PhoneNumberInput/phone-number-input.css.js +42 -0
- package/dist/components/Popover/Popover.d.ts +71 -0
- package/dist/components/Popover/Popover.js +72 -0
- package/dist/components/Popover/Popover.js.map +1 -0
- package/dist/components/Popover/PopoverExample.d.ts +3 -0
- package/dist/components/Popover/PopoverExample.js +19 -0
- package/dist/components/Popover/PopoverExample.js.map +1 -0
- package/dist/components/Popover/index.d.ts +1 -0
- package/dist/components/Popover/index.js +2 -0
- package/dist/components/Popover/index.js.map +1 -0
- package/dist/components/Popover/popover.css +87 -0
- package/dist/components/Popover/popover.css.js +93 -0
- package/dist/components/Portal/Portal.d.ts +29 -0
- package/dist/components/Portal/Portal.js +23 -0
- package/dist/components/Portal/Portal.js.map +1 -0
- package/dist/components/Portal/index.d.ts +1 -0
- package/dist/components/Portal/index.js +2 -0
- package/dist/components/Portal/index.js.map +1 -0
- package/dist/components/ProgressBar/ProgressBar.d.ts +50 -0
- package/dist/components/ProgressBar/ProgressBar.js +25 -0
- package/dist/components/ProgressBar/ProgressBar.js.map +1 -0
- package/dist/components/ProgressBar/index.d.ts +1 -0
- package/dist/components/ProgressBar/index.js +2 -0
- package/dist/components/ProgressBar/index.js.map +1 -0
- package/dist/components/ProgressBar/progress-bar.css +39 -0
- package/dist/components/ProgressBar/progress-bar.css.js +45 -0
- package/dist/components/ProgressCircle/ProgressCircle.d.ts +39 -0
- package/dist/components/ProgressCircle/ProgressCircle.js +36 -0
- package/dist/components/ProgressCircle/ProgressCircle.js.map +1 -0
- package/dist/components/ProgressCircle/index.d.ts +1 -0
- package/dist/components/ProgressCircle/index.js +2 -0
- package/dist/components/ProgressCircle/index.js.map +1 -0
- package/dist/components/ProgressCircle/progress-circle.css +40 -0
- package/dist/components/ProgressCircle/progress-circle.css.js +46 -0
- package/dist/components/ProgressionStepper/ProgressionStepper.d.ts +81 -0
- package/dist/components/ProgressionStepper/ProgressionStepper.js +31 -0
- package/dist/components/ProgressionStepper/ProgressionStepper.js.map +1 -0
- package/dist/components/ProgressionStepper/ProgressionStepperExample.d.ts +3 -0
- package/dist/components/ProgressionStepper/ProgressionStepperExample.js +50 -0
- package/dist/components/ProgressionStepper/ProgressionStepperExample.js.map +1 -0
- package/dist/components/ProgressionStepper/index.d.ts +1 -0
- package/dist/components/ProgressionStepper/index.js +2 -0
- package/dist/components/ProgressionStepper/index.js.map +1 -0
- package/dist/components/ProgressionStepper/progression-stepper.css +131 -0
- package/dist/components/ProgressionStepper/progression-stepper.css.js +137 -0
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.d.ts +42 -0
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js +16 -0
- package/dist/components/ProgressionStepperBar/ProgressionStepperBar.js.map +1 -0
- package/dist/components/ProgressionStepperBar/index.d.ts +1 -0
- package/dist/components/ProgressionStepperBar/index.js +2 -0
- package/dist/components/ProgressionStepperBar/index.js.map +1 -0
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css +33 -0
- package/dist/components/ProgressionStepperBar/progression-stepper-bar.css.js +39 -0
- package/dist/components/Radio/Radio.d.ts +32 -0
- package/dist/components/Radio/Radio.js +18 -0
- package/dist/components/Radio/Radio.js.map +1 -0
- package/dist/components/Radio/RadioExample.d.ts +2 -0
- package/dist/components/Radio/RadioExample.js +6 -0
- package/dist/components/Radio/RadioExample.js.map +1 -0
- package/dist/components/Radio/index.d.ts +1 -0
- package/dist/components/Radio/index.js +2 -0
- package/dist/components/Radio/index.js.map +1 -0
- package/dist/components/Radio/radio.css +67 -0
- package/dist/components/Radio/radio.css.js +73 -0
- package/dist/components/RadioGroup/RadioGroup.d.ts +94 -0
- package/dist/components/RadioGroup/RadioGroup.js +45 -0
- package/dist/components/RadioGroup/RadioGroup.js.map +1 -0
- package/dist/components/RadioGroup/RadioGroupExample.d.ts +3 -0
- package/dist/components/RadioGroup/RadioGroupExample.js +27 -0
- package/dist/components/RadioGroup/RadioGroupExample.js.map +1 -0
- package/dist/components/RadioGroup/index.d.ts +1 -0
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/RadioGroup/index.js.map +1 -0
- package/dist/components/RadioGroup/radio-group.css +7 -0
- package/dist/components/RadioGroup/radio-group.css.js +13 -0
- package/dist/components/RadioOption/RadioOption.d.ts +26 -0
- package/dist/components/RadioOption/RadioOption.js +18 -0
- package/dist/components/RadioOption/RadioOption.js.map +1 -0
- package/dist/components/RadioOption/RadioOptionExample.d.ts +2 -0
- package/dist/components/RadioOption/RadioOptionExample.js +5 -0
- package/dist/components/RadioOption/RadioOptionExample.js.map +1 -0
- package/dist/components/RadioOption/index.d.ts +1 -0
- package/dist/components/RadioOption/index.js +2 -0
- package/dist/components/RadioOption/index.js.map +1 -0
- package/dist/components/Scrim/Scrim.d.ts +40 -0
- package/dist/components/Scrim/Scrim.js +16 -0
- package/dist/components/Scrim/Scrim.js.map +1 -0
- package/dist/components/Scrim/index.d.ts +1 -0
- package/dist/components/Scrim/index.js +2 -0
- package/dist/components/Scrim/index.js.map +1 -0
- package/dist/components/Scrim/scrim.css +19 -0
- package/dist/components/Scrim/scrim.css.js +25 -0
- package/dist/components/SearchBar/SearchBar.d.ts +94 -0
- package/dist/components/SearchBar/SearchBar.js +85 -0
- package/dist/components/SearchBar/SearchBar.js.map +1 -0
- package/dist/components/SearchBar/SearchBarExample.d.ts +2 -0
- package/dist/components/SearchBar/SearchBarExample.js +11 -0
- package/dist/components/SearchBar/SearchBarExample.js.map +1 -0
- package/dist/components/SearchBar/index.d.ts +1 -0
- package/dist/components/SearchBar/index.js +2 -0
- package/dist/components/SearchBar/index.js.map +1 -0
- package/dist/components/SearchBar/search-bar.css +16 -0
- package/dist/components/SearchBar/search-bar.css.js +22 -0
- package/dist/components/SegmentedControl/SegmentedControl.d.ts +113 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +43 -0
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControlExample.d.ts +3 -0
- package/dist/components/SegmentedControl/SegmentedControlExample.js +37 -0
- package/dist/components/SegmentedControl/SegmentedControlExample.js.map +1 -0
- package/dist/components/SegmentedControl/index.d.ts +1 -0
- package/dist/components/SegmentedControl/index.js +2 -0
- package/dist/components/SegmentedControl/index.js.map +1 -0
- package/dist/components/SegmentedControl/segmented-control.css +90 -0
- package/dist/components/SegmentedControl/segmented-control.css.js +96 -0
- package/dist/components/Select/Select.d.ts +86 -0
- package/dist/components/Select/Select.js +61 -0
- package/dist/components/Select/Select.js.map +1 -0
- package/dist/components/Select/SelectExample.d.ts +3 -0
- package/dist/components/Select/SelectExample.js +116 -0
- package/dist/components/Select/SelectExample.js.map +1 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/index.js +2 -0
- package/dist/components/Select/index.js.map +1 -0
- package/dist/components/Select/select.css +99 -0
- package/dist/components/Select/select.css.js +105 -0
- package/dist/components/SelectField/SelectField.d.ts +39 -0
- package/dist/components/SelectField/SelectField.js +40 -0
- package/dist/components/SelectField/SelectField.js.map +1 -0
- package/dist/components/SelectField/index.d.ts +1 -0
- package/dist/components/SelectField/index.js +2 -0
- package/dist/components/SelectField/index.js.map +1 -0
- package/dist/components/Skeleton/Skeleton.d.ts +77 -0
- package/dist/components/Skeleton/Skeleton.js +61 -0
- package/dist/components/Skeleton/Skeleton.js.map +1 -0
- package/dist/components/Skeleton/SkeletonExample.d.ts +3 -0
- package/dist/components/Skeleton/SkeletonExample.js +31 -0
- package/dist/components/Skeleton/SkeletonExample.js.map +1 -0
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Skeleton/index.js +2 -0
- package/dist/components/Skeleton/index.js.map +1 -0
- package/dist/components/SkeletonText/SkeletonText.d.ts +52 -0
- package/dist/components/SkeletonText/SkeletonText.js +32 -0
- package/dist/components/SkeletonText/SkeletonText.js.map +1 -0
- package/dist/components/SkeletonText/SkeletonTextExample.d.ts +3 -0
- package/dist/components/SkeletonText/SkeletonTextExample.js +28 -0
- package/dist/components/SkeletonText/SkeletonTextExample.js.map +1 -0
- package/dist/components/SkeletonText/index.d.ts +1 -0
- package/dist/components/SkeletonText/index.js +2 -0
- package/dist/components/SkeletonText/index.js.map +1 -0
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.d.ts +13 -0
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js +14 -0
- package/dist/components/StylesProviderAnywhere/StylesProviderAnywhere.js.map +1 -0
- package/dist/components/StylesProviderAnywhere/index.d.ts +1 -0
- package/dist/components/StylesProviderAnywhere/index.js +2 -0
- package/dist/components/StylesProviderAnywhere/index.js.map +1 -0
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.d.ts +13 -0
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js +14 -0
- package/dist/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.js.map +1 -0
- package/dist/components/StylesProviderBetterHomesGardens/index.d.ts +1 -0
- package/dist/components/StylesProviderBetterHomesGardens/index.js +2 -0
- package/dist/components/StylesProviderBetterHomesGardens/index.js.map +1 -0
- package/dist/components/StylesProviderCartus/StylesProviderCartus.d.ts +13 -0
- package/dist/components/StylesProviderCartus/StylesProviderCartus.js +14 -0
- package/dist/components/StylesProviderCartus/StylesProviderCartus.js.map +1 -0
- package/dist/components/StylesProviderCartus/index.d.ts +1 -0
- package/dist/components/StylesProviderCartus/index.js +2 -0
- package/dist/components/StylesProviderCartus/index.js.map +1 -0
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.d.ts +13 -0
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js +14 -0
- package/dist/components/StylesProviderCentury21/StylesProviderCentury21.js.map +1 -0
- package/dist/components/StylesProviderCentury21/index.d.ts +1 -0
- package/dist/components/StylesProviderCentury21/index.js +2 -0
- package/dist/components/StylesProviderCentury21/index.js.map +1 -0
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.d.ts +13 -0
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js +14 -0
- package/dist/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.js.map +1 -0
- package/dist/components/StylesProviderColdwellBanker/index.d.ts +1 -0
- package/dist/components/StylesProviderColdwellBanker/index.js +2 -0
- package/dist/components/StylesProviderColdwellBanker/index.js.map +1 -0
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.d.ts +13 -0
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js +14 -0
- package/dist/components/StylesProviderCorcoran/StylesProviderCorcoran.js.map +1 -0
- package/dist/components/StylesProviderCorcoran/index.d.ts +1 -0
- package/dist/components/StylesProviderCorcoran/index.js +2 -0
- package/dist/components/StylesProviderCorcoran/index.js.map +1 -0
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.d.ts +13 -0
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js +14 -0
- package/dist/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.js.map +1 -0
- package/dist/components/StylesProviderDenaliBoss/index.d.ts +1 -0
- package/dist/components/StylesProviderDenaliBoss/index.js +2 -0
- package/dist/components/StylesProviderDenaliBoss/index.js.map +1 -0
- package/dist/components/StylesProviderEra/StylesProviderEra.d.ts +13 -0
- package/dist/components/StylesProviderEra/StylesProviderEra.js +14 -0
- package/dist/components/StylesProviderEra/StylesProviderEra.js.map +1 -0
- package/dist/components/StylesProviderEra/index.d.ts +1 -0
- package/dist/components/StylesProviderEra/index.js +2 -0
- package/dist/components/StylesProviderEra/index.js.map +1 -0
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.d.ts +13 -0
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js +14 -0
- package/dist/components/StylesProviderSothebys/StylesProviderSothebys.js.map +1 -0
- package/dist/components/StylesProviderSothebys/index.d.ts +1 -0
- package/dist/components/StylesProviderSothebys/index.js +2 -0
- package/dist/components/StylesProviderSothebys/index.js.map +1 -0
- package/dist/components/Switch/Switch.d.ts +57 -0
- package/dist/components/Switch/Switch.js +36 -0
- package/dist/components/Switch/Switch.js.map +1 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/index.js +2 -0
- package/dist/components/Switch/index.js.map +1 -0
- package/dist/components/Switch/switch.css +54 -0
- package/dist/components/Switch/switch.css.js +60 -0
- package/dist/components/SwitchOption/SwitchOption.d.ts +17 -0
- package/dist/components/SwitchOption/SwitchOption.js +18 -0
- package/dist/components/SwitchOption/SwitchOption.js.map +1 -0
- package/dist/components/SwitchOption/index.d.ts +1 -0
- package/dist/components/SwitchOption/index.js +2 -0
- package/dist/components/SwitchOption/index.js.map +1 -0
- package/dist/components/TabGroup/TabGroup.d.ts +123 -0
- package/dist/components/TabGroup/TabGroup.js +50 -0
- package/dist/components/TabGroup/TabGroup.js.map +1 -0
- package/dist/components/TabGroup/TabGroupExample.d.ts +3 -0
- package/dist/components/TabGroup/TabGroupExample.js +97 -0
- package/dist/components/TabGroup/TabGroupExample.js.map +1 -0
- package/dist/components/TabGroup/index.d.ts +1 -0
- package/dist/components/TabGroup/index.js +2 -0
- package/dist/components/TabGroup/index.js.map +1 -0
- package/dist/components/TabGroup/tab-group.css +82 -0
- package/dist/components/TabGroup/tab-group.css.js +88 -0
- package/dist/components/Table/Table.d.ts +46 -0
- package/dist/components/Table/Table.js +20 -0
- package/dist/components/Table/Table.js.map +1 -0
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Table/index.js.map +1 -0
- package/dist/components/Table/table.css +43 -0
- package/dist/components/Table/table.css.js +49 -0
- package/dist/components/Tag/Tag.d.ts +71 -0
- package/dist/components/Tag/Tag.js +26 -0
- package/dist/components/Tag/Tag.js.map +1 -0
- package/dist/components/Tag/index.d.ts +1 -0
- package/dist/components/Tag/index.js +2 -0
- package/dist/components/Tag/index.js.map +1 -0
- package/dist/components/Tag/tag.css +48 -0
- package/dist/components/Tag/tag.css.js +54 -0
- package/dist/components/TextField/TextField.d.ts +35 -0
- package/dist/components/TextField/TextField.js +35 -0
- package/dist/components/TextField/TextField.js.map +1 -0
- package/dist/components/TextField/index.d.ts +1 -0
- package/dist/components/TextField/index.js +2 -0
- package/dist/components/TextField/index.js.map +1 -0
- package/dist/components/TextInput/TextInput.d.ts +72 -0
- package/dist/components/TextInput/TextInput.js +39 -0
- package/dist/components/TextInput/TextInput.js.map +1 -0
- package/dist/components/TextInput/TextInputExample.d.ts +3 -0
- package/dist/components/TextInput/TextInputExample.js +32 -0
- package/dist/components/TextInput/TextInputExample.js.map +1 -0
- package/dist/components/TextInput/index.d.ts +1 -0
- package/dist/components/TextInput/index.js +2 -0
- package/dist/components/TextInput/index.js.map +1 -0
- package/dist/components/TextInput/text-input.css +108 -0
- package/dist/components/TextInput/text-input.css.js +114 -0
- package/dist/components/Textarea/Textarea.d.ts +86 -0
- package/dist/components/Textarea/Textarea.js +63 -0
- package/dist/components/Textarea/Textarea.js.map +1 -0
- package/dist/components/Textarea/TextareaExample.d.ts +3 -0
- package/dist/components/Textarea/TextareaExample.js +2 -0
- package/dist/components/Textarea/TextareaExample.js.map +1 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/index.js +2 -0
- package/dist/components/Textarea/index.js.map +1 -0
- package/dist/components/Textarea/textarea.css +72 -0
- package/dist/components/Textarea/textarea.css.js +78 -0
- package/dist/components/TextareaField/TextareaField.d.ts +43 -0
- package/dist/components/TextareaField/TextareaField.js +46 -0
- package/dist/components/TextareaField/TextareaField.js.map +1 -0
- package/dist/components/TextareaField/TextareaFieldExample.d.ts +3 -0
- package/dist/components/TextareaField/TextareaFieldExample.js +9 -0
- package/dist/components/TextareaField/TextareaFieldExample.js.map +1 -0
- package/dist/components/TextareaField/index.d.ts +1 -0
- package/dist/components/TextareaField/index.js +2 -0
- package/dist/components/TextareaField/index.js.map +1 -0
- package/dist/components/ToggleOption/ToggleOption.d.ts +31 -0
- package/dist/components/ToggleOption/ToggleOption.js +14 -0
- package/dist/components/ToggleOption/ToggleOption.js.map +1 -0
- package/dist/components/ToggleOption/index.d.ts +1 -0
- package/dist/components/ToggleOption/index.js +2 -0
- package/dist/components/ToggleOption/index.js.map +1 -0
- package/dist/components/ToggleOption/toggle-option.css +47 -0
- package/dist/components/ToggleOption/toggle-option.css.js +53 -0
- package/dist/components/Tooltip/Tooltip.d.ts +52 -0
- package/dist/components/Tooltip/Tooltip.js +61 -0
- package/dist/components/Tooltip/Tooltip.js.map +1 -0
- package/dist/components/Tooltip/TooltipExample.d.ts +2 -0
- package/dist/components/Tooltip/TooltipExample.js +8 -0
- package/dist/components/Tooltip/TooltipExample.js.map +1 -0
- package/dist/components/Tooltip/index.d.ts +1 -0
- package/dist/components/Tooltip/index.js +2 -0
- package/dist/components/Tooltip/index.js.map +1 -0
- package/dist/components/Tooltip/tooltip.css +50 -0
- package/dist/components/Tooltip/tooltip.css.js +56 -0
- package/dist/components/TopNavigation/TopNavigation.d.ts +17 -0
- package/dist/components/TopNavigation/TopNavigation.js +14 -0
- package/dist/components/TopNavigation/TopNavigation.js.map +1 -0
- package/dist/components/TopNavigation/index.d.ts +1 -0
- package/dist/components/TopNavigation/index.js +2 -0
- package/dist/components/TopNavigation/index.js.map +1 -0
- package/dist/components/TopNavigation/top-navigation.css +5 -0
- package/dist/components/TopNavigation/top-navigation.css.js +11 -0
- package/dist/components/Truncated/Truncated.d.ts +34 -0
- package/dist/components/Truncated/Truncated.js +17 -0
- package/dist/components/Truncated/Truncated.js.map +1 -0
- package/dist/components/Truncated/index.d.ts +1 -0
- package/dist/components/Truncated/index.js +2 -0
- package/dist/components/Truncated/index.js.map +1 -0
- package/dist/components/Txt/Txt.d.ts +60 -0
- package/dist/components/Txt/Txt.js +28 -0
- package/dist/components/Txt/Txt.js.map +1 -0
- package/dist/components/Txt/index.d.ts +1 -0
- package/dist/components/Txt/index.js +2 -0
- package/dist/components/Txt/index.js.map +1 -0
- package/dist/components/UIProvider/UIProvider.d.ts +14 -0
- package/dist/components/UIProvider/UIProvider.js +32 -0
- package/dist/components/UIProvider/UIProvider.js.map +1 -0
- package/dist/components/UIProvider/index.d.ts +1 -0
- package/dist/components/UIProvider/index.js +2 -0
- package/dist/components/UIProvider/index.js.map +1 -0
- package/dist/hooks/useAddEventListener.d.ts +1 -0
- package/dist/hooks/useAddEventListener.js +27 -0
- package/dist/hooks/useAddEventListener.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 +39 -29
- package/dist/hooks/useCombobox.js +56 -30
- package/dist/hooks/useCombobox.js.map +1 -1
- package/dist/hooks/useDebounceCallback.d.ts +11 -0
- package/dist/hooks/useDebounceCallback.js +14 -0
- package/dist/hooks/useDebounceCallback.js.map +1 -0
- package/dist/hooks/useDebounceState.d.ts +10 -0
- package/dist/hooks/useDebounceState.js +16 -0
- package/dist/hooks/useDebounceState.js.map +1 -0
- package/dist/hooks/useFloating.d.ts +14 -10
- package/dist/hooks/useFloating.js +14 -11
- package/dist/hooks/useFloating.js.map +1 -1
- package/dist/hooks/useIsomorphicEffect.d.ts +2 -0
- package/dist/hooks/useIsomorphicEffect.js +3 -0
- package/dist/hooks/useIsomorphicEffect.js.map +1 -0
- package/dist/hooks/useLongPress.d.ts +13 -9
- package/dist/hooks/useLongPress.js +41 -38
- package/dist/hooks/useLongPress.js.map +1 -1
- package/dist/hooks/useMutationObserver.d.ts +8 -0
- package/dist/hooks/useMutationObserver.js +25 -0
- package/dist/hooks/useMutationObserver.js.map +1 -0
- package/dist/hooks/useOptionIconsInvalid.js.map +1 -1
- package/dist/hooks/useOutsideClick.d.ts +1 -1
- package/dist/hooks/useOutsideClick.js +1 -1
- package/dist/hooks/useOutsideClick.js.map +1 -1
- package/dist/hooks/useRadioState.d.ts +1 -1
- package/dist/hooks/useTimeout.d.ts +7 -8
- package/dist/hooks/useTimeout.js +7 -8
- package/dist/hooks/useTimeout.js.map +1 -1
- package/dist/hooks/useTruncatedText.d.ts +10 -0
- package/dist/hooks/useTruncatedText.js +17 -0
- package/dist/hooks/useTruncatedText.js.map +1 -0
- package/dist/hooks/useUIContext.d.ts +1 -0
- package/dist/hooks/useUIContext.js +10 -0
- package/dist/hooks/useUIContext.js.map +1 -0
- package/dist/hooks/useValidChildren.js.map +1 -1
- package/dist/index.d.ts +17 -7
- package/dist/index.js +36 -9
- package/dist/index.js.map +1 -1
- package/dist/styles/anywhere.css +1693 -0
- package/dist/styles/anywhere.css.js +1699 -0
- package/dist/styles/better-homes-gardens.css +1693 -0
- package/dist/styles/better-homes-gardens.css.js +1699 -0
- package/dist/styles/cartus.css +1691 -0
- package/dist/styles/cartus.css.js +1697 -0
- package/dist/styles/century-21.css +1689 -0
- package/dist/styles/century-21.css.js +1695 -0
- package/dist/styles/coldwell-banker.css +1691 -0
- package/dist/styles/coldwell-banker.css.js +1697 -0
- package/dist/styles/corcoran.css +1685 -0
- package/dist/styles/corcoran.css.js +1691 -0
- package/dist/styles/denali-boss.css +1681 -0
- package/dist/styles/denali-boss.css.js +1687 -0
- package/dist/styles/era.css +1685 -0
- package/dist/styles/era.css.js +1691 -0
- package/dist/styles/sothebys.css +1677 -0
- package/dist/styles/sothebys.css.js +1683 -0
- package/dist/utils/countryCodes.d.ts +10 -0
- package/dist/utils/countryCodes.js +248 -0
- package/dist/utils/countryCodes.js.map +1 -0
- package/dist/utils/cwv.d.ts +9 -0
- package/dist/utils/cwv.js +10 -0
- package/dist/utils/cwv.js.map +1 -0
- package/dist/utils/demo.d.ts +93 -0
- package/dist/utils/demo.js +5 -0
- package/dist/utils/demo.js.map +1 -0
- package/dist/utils/errors.d.ts +1 -4
- package/dist/utils/errors.js +2 -5
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/guessUserCountryCode.d.ts +8 -0
- package/dist/utils/guessUserCountryCode.js +15 -0
- package/dist/utils/guessUserCountryCode.js.map +1 -0
- package/dist/utils/uiContext.d.ts +10 -0
- package/dist/utils/uiContext.js +4 -0
- package/dist/utils/uiContext.js.map +1 -0
- package/meta-types.ts +11 -2
- package/meta.ts +166 -70
- package/package.json +216 -13
- package/src/base.scss +126 -84
- package/src/colors.scss +1 -1
- package/src/components/Avatar/Avatar.tsx +152 -0
- package/src/components/Avatar/AvatarExample.tsx +42 -0
- package/src/components/Avatar/avatar.scss +101 -0
- package/src/components/Avatar/index.tsx +1 -0
- package/src/components/AvatarGroup/AvatarGroup.tsx +86 -0
- package/src/components/AvatarGroup/avatar-group.scss +13 -0
- package/src/components/AvatarGroup/index.tsx +1 -0
- package/src/components/Badge/Badge.tsx +91 -0
- package/src/components/Badge/BadgeExample.tsx +73 -0
- package/src/components/Badge/badge.scss +51 -0
- package/src/components/Badge/index.tsx +1 -0
- package/src/components/BannerAlert/BannerAlert.tsx +116 -0
- package/src/components/BannerAlert/BannerAlertExample.tsx +34 -0
- package/src/components/BannerAlert/banner-alert.scss +114 -0
- package/src/components/BannerAlert/index.tsx +1 -0
- package/src/components/Breadcrumb/Breadcrumb.tsx +165 -0
- package/src/components/Breadcrumb/BreadcrumbExample.tsx +92 -0
- package/src/components/Breadcrumb/breadcrumb.scss +16 -0
- package/src/components/Breadcrumb/index.tsx +1 -0
- package/src/components/Button/Button.tsx +163 -0
- package/src/components/Button/ButtonExample.tsx +30 -0
- package/src/components/Button/button.scss +214 -0
- package/src/components/Button/index.tsx +1 -0
- package/src/components/Card/Card.tsx +59 -0
- package/src/components/Card/CardExample.tsx +16 -0
- package/src/components/Card/index.tsx +1 -0
- package/src/components/Checkbox/Checkbox.tsx +122 -0
- package/src/components/Checkbox/checkbox.scss +97 -0
- package/src/components/Checkbox/index.tsx +1 -0
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +134 -0
- package/src/components/CheckboxGroup/CheckboxGroupExample.tsx +28 -0
- package/src/components/CheckboxGroup/index.tsx +1 -0
- package/src/components/CheckboxOption/CheckboxOption.tsx +59 -0
- package/src/components/CheckboxOption/index.tsx +1 -0
- package/src/components/Chip/Chip.tsx +104 -0
- package/src/components/Chip/index.tsx +1 -0
- package/src/components/ChipAssist/ChipAssist.tsx +33 -0
- package/src/components/ChipAssist/ChipAssistExample.tsx +33 -0
- package/src/components/ChipAssist/index.tsx +1 -0
- package/src/components/ChipFilter/ChipFilter.tsx +71 -0
- package/src/components/ChipFilter/ChipFilterExample.tsx +61 -0
- package/src/components/ChipFilter/index.tsx +1 -0
- package/src/components/ChipGroup/ChipGroup.tsx +53 -0
- package/src/components/ChipGroup/ChipGroupExample.tsx +158 -0
- package/src/components/ChipGroup/chip-group.scss +12 -0
- package/src/components/ChipGroup/index.tsx +1 -0
- package/src/components/ChipInput/ChipInput.tsx +50 -0
- package/src/components/ChipInput/ChipInputExample.tsx +48 -0
- package/src/components/ChipInput/index.tsx +1 -0
- package/src/components/ChipSuggestion/ChipSuggestion.tsx +26 -0
- package/src/components/ChipSuggestion/ChipSuggestionExample.tsx +25 -0
- package/src/components/ChipSuggestion/index.tsx +1 -0
- package/src/components/ChipUtility/ChipUtility.tsx +129 -0
- package/src/components/ChipUtility/ChipUtilityExample.tsx +63 -0
- package/src/components/ChipUtility/chip-utility.scss +59 -0
- package/src/components/ChipUtility/index.tsx +1 -0
- package/src/components/Combobox/Combobox.tsx +314 -0
- package/src/components/Combobox/index.tsx +1 -0
- package/src/components/Dialog/Dialog.tsx +175 -0
- package/src/components/Dialog/DialogExample.tsx +27 -0
- package/src/components/Dialog/dialog.scss +153 -0
- package/src/components/Dialog/index.tsx +1 -0
- package/src/components/Divider/Divider.tsx +90 -0
- package/src/components/Divider/DividerExample.tsx +26 -0
- package/src/components/Divider/index.tsx +1 -0
- package/src/components/EmptyState/EmptyState.tsx +91 -0
- package/src/components/EmptyState/EmptyStateExample.tsx +37 -0
- package/src/components/EmptyState/index.tsx +1 -0
- package/src/components/ExamplePlaceholder/ExamplePlaceholder.tsx +56 -0
- package/src/components/ExamplePlaceholder/index.tsx +1 -0
- package/src/components/Fab/Fab.tsx +107 -0
- package/src/components/Fab/FabExample.tsx +7 -0
- package/src/components/Fab/fab.scss +122 -0
- package/src/components/Fab/index.tsx +1 -0
- package/src/components/FormField/FormField.tsx +131 -0
- package/src/components/FormField/form-field.scss +19 -0
- package/src/components/FormField/index.tsx +1 -0
- package/src/components/Img/Img.tsx +39 -0
- package/src/components/Img/index.tsx +1 -0
- package/src/components/InlineAlert/InlineAlert.tsx +80 -0
- package/src/components/InlineAlert/index.tsx +1 -0
- package/src/components/Layout/Layout.tsx +91 -0
- package/src/components/Layout/index.tsx +1 -0
- package/src/components/Link/Link.tsx +96 -0
- package/src/components/Link/LinkExample.tsx +91 -0
- package/src/components/Link/index.tsx +1 -0
- package/src/components/ListItem/ListItem.tsx +233 -0
- package/src/components/ListItem/ListItemExample.tsx +92 -0
- package/src/components/ListItem/index.tsx +1 -0
- package/src/components/ListItem/list-item.scss +123 -0
- package/src/components/Listbox/Listbox.tsx +257 -0
- package/src/components/Listbox/index.tsx +1 -0
- package/src/components/Menu/Menu.tsx +143 -0
- package/src/components/Menu/MenuExample.tsx +72 -0
- package/src/components/Menu/index.tsx +1 -0
- package/src/components/Menu/menu.scss +25 -0
- package/src/components/MenuButton/MenuButton.tsx +34 -0
- package/src/components/MenuButton/index.tsx +1 -0
- package/src/components/Modal/Modal.tsx +214 -0
- package/src/components/Modal/ModalExample.tsx +74 -0
- package/src/components/Modal/index.tsx +1 -0
- package/src/components/Modal/modal.scss +47 -0
- package/src/components/NumberField/NumberField.tsx +79 -0
- package/src/components/NumberField/index.tsx +1 -0
- package/src/components/NumberInput/NumberInput.tsx +199 -0
- package/src/components/NumberInput/index.tsx +1 -0
- package/src/components/PhoneNumberField/PhoneNumberField.tsx +80 -0
- package/src/components/PhoneNumberField/index.tsx +1 -0
- package/src/components/PhoneNumberInput/PhoneNumberInput.tsx +226 -0
- package/src/components/PhoneNumberInput/index.tsx +1 -0
- package/src/components/PhoneNumberInput/phone-number-input.scss +49 -0
- package/src/components/Popover/Popover.tsx +156 -0
- package/src/components/Popover/PopoverExample.tsx +27 -0
- package/src/components/Popover/index.tsx +1 -0
- package/src/components/Portal/Portal.tsx +42 -0
- package/src/components/Portal/index.tsx +1 -0
- package/src/components/ProgressBar/ProgressBar.tsx +78 -0
- package/src/components/ProgressBar/index.tsx +1 -0
- package/src/components/ProgressCircle/ProgressCircle.tsx +104 -0
- package/src/components/ProgressCircle/index.tsx +1 -0
- package/src/components/ProgressionStepper/ProgressionStepper.tsx +136 -0
- package/src/components/ProgressionStepper/ProgressionStepperExample.tsx +53 -0
- package/src/components/ProgressionStepper/index.tsx +1 -0
- package/src/components/ProgressionStepperBar/ProgressionStepperBar.tsx +65 -0
- package/src/components/ProgressionStepperBar/index.tsx +1 -0
- package/src/components/Radio/Radio.tsx +56 -0
- package/src/components/Radio/RadioExample.tsx +5 -0
- package/src/components/Radio/index.tsx +1 -0
- package/src/components/Radio/radio.scss +80 -0
- package/src/components/RadioGroup/RadioGroup.tsx +142 -0
- package/src/components/RadioGroup/RadioGroupExample.tsx +30 -0
- package/src/components/RadioGroup/index.tsx +1 -0
- package/src/components/RadioGroup/radio-group.scss +7 -0
- package/src/components/RadioOption/RadioOption.tsx +41 -0
- package/src/components/RadioOption/RadioOptionExample.tsx +6 -0
- package/src/components/RadioOption/index.tsx +1 -0
- package/src/components/Scrim/Scrim.tsx +53 -0
- package/src/components/Scrim/index.tsx +1 -0
- package/src/components/Scrim/scrim.scss +21 -0
- package/src/components/SearchBar/SearchBar.tsx +208 -0
- package/src/components/SearchBar/SearchBarExample.tsx +19 -0
- package/src/components/SearchBar/index.tsx +1 -0
- package/src/components/SearchBar/search-bar.scss +16 -0
- package/src/components/SegmentedControl/SegmentedControl.tsx +163 -0
- package/src/components/SegmentedControl/SegmentedControlExample.tsx +40 -0
- package/src/components/SegmentedControl/index.tsx +1 -0
- package/src/components/SegmentedControl/segmented-control.scss +121 -0
- package/src/components/Select/Select.tsx +184 -0
- package/src/components/Select/SelectExample.tsx +130 -0
- package/src/components/Select/index.tsx +1 -0
- package/src/components/Select/select.scss +120 -0
- package/src/components/SelectField/SelectField.tsx +79 -0
- package/src/components/SelectField/index.tsx +1 -0
- package/src/components/Skeleton/Skeleton.tsx +113 -0
- package/src/components/Skeleton/SkeletonExample.tsx +62 -0
- package/src/components/Skeleton/index.tsx +1 -0
- package/src/components/SkeletonText/SkeletonText.tsx +76 -0
- package/src/components/SkeletonText/SkeletonTextExample.tsx +45 -0
- package/src/components/SkeletonText/index.tsx +1 -0
- package/src/components/StylesProviderAnywhere/StylesProviderAnywhere.tsx +17 -0
- package/src/components/StylesProviderAnywhere/index.tsx +1 -0
- package/src/components/StylesProviderBetterHomesGardens/StylesProviderBetterHomesGardens.tsx +17 -0
- package/src/components/StylesProviderBetterHomesGardens/index.tsx +1 -0
- package/src/components/StylesProviderCartus/StylesProviderCartus.tsx +17 -0
- package/src/components/StylesProviderCartus/index.tsx +1 -0
- package/src/components/StylesProviderCentury21/StylesProviderCentury21.tsx +17 -0
- package/src/components/StylesProviderCentury21/index.tsx +1 -0
- package/src/components/StylesProviderColdwellBanker/StylesProviderColdwellBanker.tsx +17 -0
- package/src/components/StylesProviderColdwellBanker/index.tsx +1 -0
- package/src/components/StylesProviderCorcoran/StylesProviderCorcoran.tsx +17 -0
- package/src/components/StylesProviderCorcoran/index.tsx +1 -0
- package/src/components/StylesProviderDenaliBoss/StylesProviderDenaliBoss.tsx +17 -0
- package/src/components/StylesProviderDenaliBoss/index.tsx +1 -0
- package/src/components/StylesProviderEra/StylesProviderEra.tsx +17 -0
- package/src/components/StylesProviderEra/index.tsx +1 -0
- package/src/components/StylesProviderSothebys/StylesProviderSothebys.tsx +17 -0
- package/src/components/StylesProviderSothebys/index.tsx +1 -0
- package/src/components/Switch/Switch.tsx +78 -0
- package/src/components/Switch/index.tsx +1 -0
- package/src/components/Switch/switch.scss +63 -0
- package/src/components/SwitchOption/SwitchOption.tsx +30 -0
- package/src/components/SwitchOption/index.tsx +1 -0
- package/src/components/TabGroup/TabGroup.tsx +181 -0
- package/src/components/TabGroup/TabGroupExample.tsx +100 -0
- package/src/components/TabGroup/index.tsx +1 -0
- package/src/components/Table/Table.tsx +81 -0
- package/src/components/Table/index.tsx +1 -0
- package/src/components/Tag/Tag.tsx +99 -0
- package/src/components/Tag/index.tsx +1 -0
- package/src/components/TextField/TextField.tsx +89 -0
- package/src/components/TextField/index.tsx +1 -0
- package/src/components/TextInput/TextInput.tsx +145 -0
- package/src/components/TextInput/TextInputExample.tsx +35 -0
- package/src/components/TextInput/index.tsx +1 -0
- package/src/components/TextInput/text-input.scss +146 -0
- package/src/components/Textarea/Textarea.tsx +164 -0
- package/src/components/Textarea/TextareaExample.tsx +5 -0
- package/src/components/Textarea/index.tsx +1 -0
- package/src/components/Textarea/textarea.scss +96 -0
- package/src/components/TextareaField/TextareaField.tsx +104 -0
- package/src/components/TextareaField/TextareaFieldExample.tsx +19 -0
- package/src/components/TextareaField/index.tsx +1 -0
- package/src/components/ToggleOption/ToggleOption.tsx +44 -0
- package/src/components/ToggleOption/index.tsx +1 -0
- package/src/components/ToggleOption/toggle-option.scss +60 -0
- package/src/components/Tooltip/Tooltip.tsx +132 -0
- package/src/components/Tooltip/TooltipExample.tsx +17 -0
- package/src/components/Tooltip/index.tsx +1 -0
- package/src/components/Tooltip/tooltip.scss +65 -0
- package/src/components/TopNavigation/TopNavigation.tsx +22 -0
- package/src/components/TopNavigation/index.tsx +1 -0
- package/src/components/Truncated/Truncated.tsx +54 -0
- package/src/components/Truncated/index.tsx +1 -0
- package/src/components/Txt/Txt.tsx +92 -0
- package/src/components/Txt/index.tsx +1 -0
- package/src/components/UIProvider/UIProvider.tsx +51 -0
- package/src/components/UIProvider/index.tsx +1 -0
- package/src/hooks/useAddEventListener.ts +51 -0
- package/src/hooks/useCheckboxGroupState.ts +1 -1
- package/src/hooks/useCheckboxState.ts +1 -1
- package/src/hooks/useCombobox.ts +112 -36
- package/src/hooks/useDebounceCallback.ts +16 -0
- package/src/hooks/useDebounceState.ts +18 -0
- package/src/hooks/useFloating.ts +29 -15
- package/src/hooks/useIsomorphicEffect.ts +3 -0
- package/src/hooks/useLongPress.ts +45 -42
- package/src/hooks/useMutationObserver.ts +29 -0
- package/src/hooks/useOptionIconsInvalid.ts +2 -2
- package/src/hooks/useOutsideClick.ts +3 -2
- package/src/hooks/useRadioState.ts +1 -1
- package/src/hooks/useTimeout.ts +7 -8
- package/src/hooks/useTruncatedText.ts +20 -0
- package/src/hooks/useUIContext.ts +11 -0
- package/src/hooks/useValidChildren.ts +2 -2
- package/src/index.ts +61 -16
- package/src/utils/countryCodes.ts +276 -0
- package/src/utils/cwv.ts +13 -0
- package/src/utils/demo.ts +121 -0
- package/src/utils/errors.ts +105 -0
- package/src/utils/guessUserCountryCode.ts +17 -0
- package/src/utils/uiContext.ts +15 -0
- package/tsconfig.json +52 -0
- package/dist/Avatar.d.ts +0 -90
- package/dist/Avatar.js +0 -62
- package/dist/Avatar.js.map +0 -1
- package/dist/AvatarGroup.d.ts +0 -63
- package/dist/AvatarGroup.js +0 -32
- package/dist/AvatarGroup.js.map +0 -1
- package/dist/Badge.d.ts +0 -63
- package/dist/Badge.js +0 -41
- package/dist/Badge.js.map +0 -1
- package/dist/BannerAlert.d.ts +0 -70
- package/dist/BannerAlert.js +0 -37
- package/dist/BannerAlert.js.map +0 -1
- package/dist/Button.d.ts +0 -92
- package/dist/Button.js +0 -48
- package/dist/Button.js.map +0 -1
- package/dist/Card.d.ts +0 -49
- package/dist/Card.js +0 -30
- package/dist/Card.js.map +0 -1
- package/dist/Checkbox.d.ts +0 -60
- package/dist/Checkbox.js +0 -53
- package/dist/Checkbox.js.map +0 -1
- package/dist/CheckboxGroup.d.ts +0 -82
- package/dist/CheckboxGroup.js +0 -39
- package/dist/CheckboxGroup.js.map +0 -1
- package/dist/CheckboxOption.d.ts +0 -44
- package/dist/CheckboxOption.js +0 -37
- package/dist/CheckboxOption.js.map +0 -1
- package/dist/Chip.d.ts +0 -63
- package/dist/Chip.js +0 -33
- package/dist/Chip.js.map +0 -1
- package/dist/Dialog.d.ts +0 -65
- package/dist/Dialog.js +0 -89
- package/dist/Dialog.js.map +0 -1
- package/dist/Divider.d.ts +0 -57
- package/dist/Divider.js +0 -39
- package/dist/Divider.js.map +0 -1
- package/dist/EmptyState.d.ts +0 -52
- package/dist/EmptyState.js +0 -29
- package/dist/EmptyState.js.map +0 -1
- package/dist/Fab.d.ts +0 -51
- package/dist/Fab.js +0 -32
- package/dist/Fab.js.map +0 -1
- package/dist/FormField.d.ts +0 -74
- package/dist/FormField.js +0 -52
- package/dist/FormField.js.map +0 -1
- package/dist/Img.d.ts +0 -33
- package/dist/Img.js +0 -19
- package/dist/Img.js.map +0 -1
- package/dist/InlineAlert.d.ts +0 -38
- package/dist/InlineAlert.js +0 -34
- package/dist/InlineAlert.js.map +0 -1
- package/dist/Layout.d.ts +0 -55
- package/dist/Layout.js +0 -29
- package/dist/Layout.js.map +0 -1
- package/dist/Link.d.ts +0 -60
- package/dist/Link.js +0 -24
- package/dist/Link.js.map +0 -1
- package/dist/ListItem.d.ts +0 -83
- package/dist/ListItem.js +0 -108
- package/dist/ListItem.js.map +0 -1
- package/dist/Menu.d.ts +0 -133
- package/dist/Menu.js +0 -112
- package/dist/Menu.js.map +0 -1
- package/dist/MenuButton.d.ts +0 -22
- package/dist/MenuButton.js +0 -22
- package/dist/MenuButton.js.map +0 -1
- package/dist/Modal.d.ts +0 -53
- package/dist/Modal.js +0 -54
- package/dist/Modal.js.map +0 -1
- package/dist/NumberField.d.ts +0 -37
- package/dist/NumberField.js +0 -37
- package/dist/NumberField.js.map +0 -1
- package/dist/NumberInput.d.ts +0 -64
- package/dist/NumberInput.js +0 -93
- package/dist/NumberInput.js.map +0 -1
- package/dist/Popover.d.ts +0 -70
- package/dist/Popover.js +0 -72
- package/dist/Popover.js.map +0 -1
- package/dist/Portal.d.ts +0 -28
- package/dist/Portal.js +0 -22
- package/dist/Portal.js.map +0 -1
- package/dist/ProgressBar.d.ts +0 -49
- package/dist/ProgressBar.js +0 -24
- package/dist/ProgressBar.js.map +0 -1
- package/dist/ProgressCircle.d.ts +0 -38
- package/dist/ProgressCircle.js +0 -37
- package/dist/ProgressCircle.js.map +0 -1
- package/dist/ProgressionStepper.d.ts +0 -80
- package/dist/ProgressionStepper.js +0 -31
- package/dist/ProgressionStepper.js.map +0 -1
- package/dist/ProgressionStepperBar.d.ts +0 -41
- package/dist/ProgressionStepperBar.js +0 -15
- package/dist/ProgressionStepperBar.js.map +0 -1
- package/dist/Radio.d.ts +0 -31
- package/dist/Radio.js +0 -18
- package/dist/Radio.js.map +0 -1
- package/dist/RadioGroup.d.ts +0 -93
- package/dist/RadioGroup.js +0 -45
- package/dist/RadioGroup.js.map +0 -1
- package/dist/RadioOption.d.ts +0 -25
- package/dist/RadioOption.js +0 -17
- package/dist/RadioOption.js.map +0 -1
- package/dist/SearchBar.d.ts +0 -99
- package/dist/SearchBar.js +0 -78
- package/dist/SearchBar.js.map +0 -1
- package/dist/SegmentedControl.d.ts +0 -112
- package/dist/SegmentedControl.js +0 -43
- package/dist/SegmentedControl.js.map +0 -1
- package/dist/Select.d.ts +0 -100
- package/dist/Select.js +0 -67
- package/dist/Select.js.map +0 -1
- package/dist/SelectField.d.ts +0 -38
- package/dist/SelectField.js +0 -39
- package/dist/SelectField.js.map +0 -1
- package/dist/Skeleton.d.ts +0 -69
- package/dist/Skeleton.js +0 -49
- package/dist/Skeleton.js.map +0 -1
- package/dist/StylesProviderAnywhere.d.ts +0 -13
- package/dist/StylesProviderAnywhere.js +0 -15
- package/dist/StylesProviderAnywhere.js.map +0 -1
- package/dist/StylesProviderBetterHomesGardens.d.ts +0 -13
- package/dist/StylesProviderBetterHomesGardens.js +0 -15
- package/dist/StylesProviderBetterHomesGardens.js.map +0 -1
- package/dist/StylesProviderCartus.d.ts +0 -13
- package/dist/StylesProviderCartus.js +0 -15
- package/dist/StylesProviderCartus.js.map +0 -1
- package/dist/StylesProviderCentury21.d.ts +0 -13
- package/dist/StylesProviderCentury21.js +0 -15
- package/dist/StylesProviderCentury21.js.map +0 -1
- package/dist/StylesProviderColdwellBanker.d.ts +0 -13
- package/dist/StylesProviderColdwellBanker.js +0 -15
- package/dist/StylesProviderColdwellBanker.js.map +0 -1
- package/dist/StylesProviderCorcoran.d.ts +0 -13
- package/dist/StylesProviderCorcoran.js +0 -15
- package/dist/StylesProviderCorcoran.js.map +0 -1
- package/dist/StylesProviderDenaliBoss.d.ts +0 -13
- package/dist/StylesProviderDenaliBoss.js +0 -15
- package/dist/StylesProviderDenaliBoss.js.map +0 -1
- package/dist/StylesProviderEra.d.ts +0 -13
- package/dist/StylesProviderEra.js +0 -15
- package/dist/StylesProviderEra.js.map +0 -1
- package/dist/StylesProviderSothebys.d.ts +0 -13
- package/dist/StylesProviderSothebys.js +0 -15
- package/dist/StylesProviderSothebys.js.map +0 -1
- package/dist/Switch.d.ts +0 -50
- package/dist/Switch.js +0 -38
- package/dist/Switch.js.map +0 -1
- package/dist/SwitchOption.d.ts +0 -16
- package/dist/SwitchOption.js +0 -17
- package/dist/SwitchOption.js.map +0 -1
- package/dist/TabGroup.d.ts +0 -120
- package/dist/TabGroup.js +0 -50
- package/dist/TabGroup.js.map +0 -1
- package/dist/Table.d.ts +0 -45
- package/dist/Table.js +0 -20
- package/dist/Table.js.map +0 -1
- package/dist/Tag.d.ts +0 -70
- package/dist/Tag.js +0 -26
- package/dist/Tag.js.map +0 -1
- package/dist/TextField.d.ts +0 -35
- package/dist/TextField.js +0 -35
- package/dist/TextField.js.map +0 -1
- package/dist/TextInput.d.ts +0 -64
- package/dist/TextInput.js +0 -39
- package/dist/TextInput.js.map +0 -1
- package/dist/Textarea.d.ts +0 -83
- package/dist/Textarea.js +0 -56
- package/dist/Textarea.js.map +0 -1
- package/dist/TextareaField.d.ts +0 -35
- package/dist/TextareaField.js +0 -45
- package/dist/TextareaField.js.map +0 -1
- package/dist/ToggleOption.d.ts +0 -30
- package/dist/ToggleOption.js +0 -14
- package/dist/ToggleOption.js.map +0 -1
- package/dist/Tooltip.d.ts +0 -51
- package/dist/Tooltip.js +0 -61
- package/dist/Tooltip.js.map +0 -1
- package/dist/TopNavigation.d.ts +0 -16
- package/dist/TopNavigation.js +0 -14
- package/dist/TopNavigation.js.map +0 -1
- package/dist/Txt.d.ts +0 -45
- package/dist/Txt.js +0 -23
- package/dist/Txt.js.map +0 -1
- package/dist/avatar-group.css +0 -1
- package/dist/avatar.css +0 -1
- package/dist/badge.css +0 -1
- package/dist/banner-alert.css +0 -1
- package/dist/button.css +0 -1
- package/dist/card.css +0 -1
- package/dist/checkbox.css +0 -1
- package/dist/chip.css +0 -1
- package/dist/demo/ExampleModalRender.d.ts +0 -7
- package/dist/demo/ExampleModalRender.js +0 -16
- package/dist/demo/ExampleModalRender.js.map +0 -1
- package/dist/demo/ExamplePlaceholder.d.ts +0 -7
- package/dist/demo/ExamplePlaceholder.js +0 -13
- package/dist/demo/ExamplePlaceholder.js.map +0 -1
- package/dist/demo/examples.d.ts +0 -101
- package/dist/demo/examples.js +0 -581
- package/dist/demo/examples.js.map +0 -1
- package/dist/dialog.css +0 -1
- package/dist/divider.css +0 -1
- package/dist/fab.css +0 -1
- package/dist/form-field.css +0 -1
- package/dist/hooks/useKeyboardNavigation.d.ts +0 -35
- package/dist/hooks/useKeyboardNavigation.js +0 -79
- package/dist/hooks/useKeyboardNavigation.js.map +0 -1
- package/dist/inline-alert.css +0 -1
- package/dist/link.css +0 -1
- package/dist/list-item.css +0 -1
- package/dist/menu-button.css +0 -1
- package/dist/menu.css +0 -1
- package/dist/modal.css +0 -1
- package/dist/number-input.css +0 -1
- package/dist/popover.css +0 -1
- package/dist/progress-bar.css +0 -1
- package/dist/progress-circle.css +0 -1
- package/dist/progression-stepper-bar.css +0 -1
- package/dist/progression-stepper.css +0 -1
- package/dist/radio-group.css +0 -1
- package/dist/radio.css +0 -1
- package/dist/search-bar.css +0 -1
- package/dist/segmented-control.css +0 -1
- package/dist/select.css +0 -1
- package/dist/skeleton.css +0 -6
- package/dist/switch.css +0 -1
- package/dist/tab-group.css +0 -1
- package/dist/table.css +0 -1
- package/dist/tag.css +0 -1
- package/dist/text-input.css +0 -1
- package/dist/textarea.css +0 -4
- package/dist/toggle-option.css +0 -1
- package/dist/tooltip.css +0 -1
- package/dist/top-navigation.css +0 -1
- package/dist/utils/placeholder.test.d.ts +0 -1
- package/dist/utils/placeholder.test.js +0 -7
- package/dist/utils/placeholder.test.js.map +0 -1
- package/src/Avatar.tsx +0 -150
- package/src/AvatarGroup.tsx +0 -85
- package/src/Badge.tsx +0 -100
- package/src/BannerAlert.tsx +0 -115
- package/src/Button.tsx +0 -158
- package/src/Card.tsx +0 -58
- package/src/Checkbox.tsx +0 -120
- package/src/CheckboxGroup.tsx +0 -128
- package/src/CheckboxOption.tsx +0 -59
- package/src/Chip.tsx +0 -102
- package/src/Dialog.tsx +0 -171
- package/src/Divider.tsx +0 -90
- package/src/EmptyState.tsx +0 -90
- package/src/Fab.tsx +0 -107
- package/src/FormField.tsx +0 -130
- package/src/Img.tsx +0 -38
- package/src/InlineAlert.tsx +0 -80
- package/src/Layout.tsx +0 -90
- package/src/Link.tsx +0 -83
- package/src/ListItem.tsx +0 -218
- package/src/Menu.tsx +0 -305
- package/src/MenuButton.tsx +0 -34
- package/src/Modal.tsx +0 -105
- package/src/NumberField.tsx +0 -67
- package/src/NumberInput.tsx +0 -204
- package/src/Popover.tsx +0 -156
- package/src/Portal.tsx +0 -41
- package/src/ProgressBar.tsx +0 -74
- package/src/ProgressCircle.tsx +0 -104
- package/src/ProgressionStepper.tsx +0 -135
- package/src/ProgressionStepperBar.tsx +0 -64
- package/src/Radio.tsx +0 -54
- package/src/RadioGroup.tsx +0 -139
- package/src/RadioOption.tsx +0 -41
- package/src/SearchBar.tsx +0 -206
- package/src/SegmentedControl.tsx +0 -163
- package/src/Select.tsx +0 -187
- package/src/SelectField.tsx +0 -80
- package/src/Skeleton.tsx +0 -98
- package/src/StylesProviderAnywhere.tsx +0 -16
- package/src/StylesProviderBetterHomesGardens.tsx +0 -16
- package/src/StylesProviderCartus.tsx +0 -16
- package/src/StylesProviderCentury21.tsx +0 -16
- package/src/StylesProviderColdwellBanker.tsx +0 -16
- package/src/StylesProviderCorcoran.tsx +0 -16
- package/src/StylesProviderDenaliBoss.tsx +0 -16
- package/src/StylesProviderEra.tsx +0 -16
- package/src/StylesProviderSothebys.tsx +0 -16
- package/src/Switch.tsx +0 -75
- package/src/SwitchOption.tsx +0 -29
- package/src/TabGroup.tsx +0 -180
- package/src/Table.tsx +0 -79
- package/src/Tag.tsx +0 -99
- package/src/TextField.tsx +0 -82
- package/src/TextInput.tsx +0 -137
- package/src/Textarea.tsx +0 -154
- package/src/TextareaField.tsx +0 -92
- package/src/ToggleOption.tsx +0 -43
- package/src/Tooltip.tsx +0 -131
- package/src/TopNavigation.tsx +0 -21
- package/src/Txt.tsx +0 -68
- package/src/avatar-group.scss +0 -17
- package/src/avatar.scss +0 -98
- package/src/badge.scss +0 -52
- package/src/banner-alert.scss +0 -115
- package/src/button.scss +0 -219
- package/src/checkbox.scss +0 -98
- package/src/demo/ExampleModalRender.tsx +0 -37
- package/src/demo/ExamplePlaceholder.tsx +0 -45
- package/src/demo/examples.tsx +0 -813
- package/src/dialog.scss +0 -152
- package/src/fab.scss +0 -123
- package/src/form-field.scss +0 -14
- package/src/hooks/useKeyboardNavigation.ts +0 -99
- package/src/list-item.scss +0 -117
- package/src/menu.scss +0 -40
- package/src/modal.scss +0 -22
- package/src/radio-group.scss +0 -5
- package/src/radio.scss +0 -81
- package/src/search-bar.scss +0 -7
- package/src/segmented-control.scss +0 -120
- package/src/select.scss +0 -117
- package/src/skeleton.scss +0 -83
- package/src/switch.scss +0 -64
- package/src/text-input.scss +0 -143
- package/src/textarea.scss +0 -91
- package/src/toggle-option.scss +0 -59
- package/src/tooltip.scss +0 -64
- package/src/utils/errors.tsx +0 -109
- /package/src/{card.scss → components/Card/card.scss} +0 -0
- /package/src/{chip.scss → components/Chip/chip.scss} +0 -0
- /package/src/{divider.scss → components/Divider/divider.scss} +0 -0
- /package/src/{inline-alert.scss → components/InlineAlert/inline-alert.scss} +0 -0
- /package/src/{link.scss → components/Link/link.scss} +0 -0
- /package/src/{menu-button.scss → components/MenuButton/menu-button.scss} +0 -0
- /package/src/{number-input.scss → components/NumberInput/number-input.scss} +0 -0
- /package/src/{popover.scss → components/Popover/popover.scss} +0 -0
- /package/src/{progress-bar.scss → components/ProgressBar/progress-bar.scss} +0 -0
- /package/src/{progress-circle.scss → components/ProgressCircle/progress-circle.scss} +0 -0
- /package/src/{progression-stepper.scss → components/ProgressionStepper/progression-stepper.scss} +0 -0
- /package/src/{progression-stepper-bar.scss → components/ProgressionStepperBar/progression-stepper-bar.scss} +0 -0
- /package/src/{tab-group.scss → components/TabGroup/tab-group.scss} +0 -0
- /package/src/{table.scss → components/Table/table.scss} +0 -0
- /package/src/{tag.scss → components/Tag/tag.scss} +0 -0
- /package/src/{top-navigation.scss → components/TopNavigation/top-navigation.scss} +0 -0
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Fragment as _Fragment, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { styleAdd } from './utils/styleAdd';
|
|
3
|
-
styleAdd(`[data-color=grey]{--foreground: var(--foreground-neutral-on-surface-variant-01);--background: var(--surface-neutral-t2-lowest)}[data-color=white]{--foreground: var(--foreground-neutral-on-surface-variant-01);--background: var(--surface-neutral-t1-base)}[data-color=primary]{--foreground: var(--foreground-brand-primary-depth);--background: var(--surface-brand-primary-highlight)}[data-color=secondary]{--foreground: var(--foreground-brand-secondary-depth);--background: var(--surface-brand-secondary-highlight)}[data-color=blue]{--foreground: var(--foreground-spectrum-blue);--background: var(--surface-spectrum-blue)}[data-color=green]{--foreground: var(--foreground-spectrum-green);--background: var(--surface-spectrum-green)}[data-color=lime]{--foreground: var(--foreground-spectrum-lime);--background: var(--surface-spectrum-lime)}[data-color=magenta]{--foreground: var(--foreground-spectrum-magenta);--background: var(--surface-spectrum-magenta)}[data-color=orange]{--foreground: var(--foreground-spectrum-orange);--background: var(--surface-spectrum-orange)}[data-color=pink]{--foreground: var(--foreground-spectrum-pink);--background: var(--surface-spectrum-pink)}[data-color=purple]{--foreground: var(--foreground-spectrum-purple);--background: var(--surface-spectrum-purple)}[data-color=red]{--foreground: var(--foreground-spectrum-red);--background: var(--surface-spectrum-red)}[data-color=teal]{--foreground: var(--foreground-spectrum-teal);--background: var(--surface-spectrum-teal)}[data-color=yellow]{--foreground: var(--foreground-spectrum-yellow);--background: var(--surface-spectrum-yellow)}*,*::before,*::after{box-sizing:border-box}*{margin:0;padding:0}html:has(body[data-bspk]){height:100%;scroll-behavior:smooth}:root{--z-index-tooltip-popover: 1100;--z-index-dialog: 1000;--z-index-dropdown: 900;--z-index-fab: 800;--z-index-navbar: 700;--z-index-footer: 600}@media(prefers-reduced-motion){[data-animated]{animation:none !important}}body[data-bspk]{height:100%;scroll-behavior:smooth;font:var(--body-base);background-color:var(--background-base);color:var(--foreground-neutral-on-surface)}body[data-bspk] input:-internal-autofill-previewed,body[data-bspk] input:-internal-autofill-selected,body[data-bspk] textarea:-internal-autofill-previewed,body[data-bspk] textarea:-internal-autofill-selected,body[data-bspk] select:-internal-autofill-previewed,body[data-bspk] select:-internal-autofill-selected{transition:color calc(infinity*1s) step-end,background-color calc(infinity*1s) step-end}body[data-bspk] a{color:var(--foreground-link-text-default)}body[data-bspk] a:not([disabled]):hover{color:var(--foreground-link-text-default-hovered)}body[data-bspk] a:not([disabled]):active{color:var(--foreground-link-text-default);filter:brightness(80%)}body[data-bspk] a:not([disabled]):visited{color:var(--foreground-link-text-default-visited)}body[data-bspk] a[disabled]{pointer-events:none;cursor:text;color:var(--foreground-link-text-default-disabled)}body[data-bspk] a[data-default]{color:var(--foreground-link-text-default) !important}body[data-bspk] a[data-hover]{color:var(--foreground-link-text-default-hovered) !important}body[data-bspk] a[data-active]{color:var(--foreground-link-text-default) !important;filter:brightness(80%)}body[data-bspk] a[data-visited]{color:var(--foreground-link-text-default-visited) !important}body[data-bspk] a[data-subtle]{text-decoration:none;color:var(--foreground-neutral-on-surface)}body[data-bspk] a[data-subtle]:not([disabled]):hover{text-decoration:underline;color:var(--foreground-link-text-subtle-hovered)}body[data-bspk] a[data-subtle]:not([disabled]):active{text-decoration:underline;color:var(--foreground-link-text-subtle-pressed)}body[data-bspk] a[data-subtle]:not([disabled]):visited{color:var(--foreground-neutral-on-surface)}body[data-bspk] a[data-subtle][disabled]{pointer-events:none;color:var(--foreground-link-text-subtle-disabled)}body[data-bspk] a[data-subtle][data-default]{text-decoration:none;color:var(--foreground-neutral-on-surface)}body[data-bspk] a[data-subtle][data-hover]{text-decoration:underline;color:var(--foreground-link-text-subtle-hovered) !important}body[data-bspk] a[data-subtle][data-active]{text-decoration:underline;color:var(--foreground-link-text-subtle-pressed) !important}body[data-bspk] a[data-subtle][data-visited]{color:var(--foreground-neutral-on-surface) !important}body[data-bspk] a[data-subtle-inverse]{text-decoration:none;color:var(--foreground-neutral-inverse-on-surface)}body[data-bspk] a[data-subtle-inverse]:not([disabled]):hover{text-decoration:underline;color:var(--foreground-link-text-subtle-inverse-hovered)}body[data-bspk] a[data-subtle-inverse]:not([disabled]):active{text-decoration:underline;color:var(--foreground-link-text-subtle-inverse-pressed)}body[data-bspk] a[data-subtle-inverse]:not([disabled]):visited{color:var(--foreground-neutral-inverse-on-surface)}body[data-bspk] a[data-subtle-inverse][disabled]{pointer-events:none;color:var(--foreground-link-text-subtle-inversed-disabled)}body[data-bspk] a[data-subtle-inverse][data-default]{text-decoration:none;color:var(--foreground-neutral-inverse-on-surface)}body[data-bspk] a[data-subtle-inverse][data-hover]{text-decoration:underline;color:var(--foreground-link-text-subtle-inverse-hovered) !important}body[data-bspk] a[data-subtle-inverse][data-active]{text-decoration:underline;color:var(--foreground-link-text-subtle-inverse-pressed) !important}body[data-bspk] a[data-subtle-inverse][data-visited]{color:var(--foreground-neutral-inverse-on-surface) !important}[data-touch-target]{display:none;touch-action:manipulation;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-touch-callout:none;user-select:none;position:absolute;z-index:1;height:100%;width:100%;top:auto;left:auto}[data-sr-only]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}[data-touch-target]~*{position:relative;z-index:2}@media(any-pointer: coarse){[data-touch-target]{display:block}}`);;
|
|
4
|
-
import '@bspk/styles/sothebys.css';
|
|
5
|
-
/**
|
|
6
|
-
* Utility to provide the Sotheby's styles to the application.
|
|
7
|
-
*
|
|
8
|
-
* @name StylesProviderSothebys
|
|
9
|
-
*/
|
|
10
|
-
function StylesProviderSothebys() {
|
|
11
|
-
return _jsx(_Fragment, {});
|
|
12
|
-
}
|
|
13
|
-
StylesProviderSothebys.bspkName = 'StylesProviderSothebys';
|
|
14
|
-
export { StylesProviderSothebys };
|
|
15
|
-
//# sourceMappingURL=StylesProviderSothebys.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StylesProviderSothebys.js","sourceRoot":"","sources":["../src/StylesProviderSothebys.tsx"],"names":[],"mappings":";AAAA,OAAO,aAAa,CAAC;AACrB,OAAO,2BAA2B,CAAC;AACnC;;;;GAIG;AACH,SAAS,sBAAsB;IAC3B,OAAO,mBAAK,CAAC;AACjB,CAAC;AAED,sBAAsB,CAAC,QAAQ,GAAG,wBAAwB,CAAC;AAE3D,OAAO,EAAE,sBAAsB,EAAE,CAAC"}
|
package/dist/Switch.d.ts
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import './switch.scss';
|
|
2
|
-
import { ChangeEvent } from 'react';
|
|
3
|
-
import { CommonProps } from './';
|
|
4
|
-
export type SwitchProps = CommonProps<'aria-label' | 'disabled' | 'name' | 'value'> & {
|
|
5
|
-
/**
|
|
6
|
-
* Marks the control as checked.
|
|
7
|
-
*
|
|
8
|
-
* @default false
|
|
9
|
-
*/
|
|
10
|
-
checked?: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* The function to call when the control is checked or unchecked.
|
|
13
|
-
*
|
|
14
|
-
* @type (checked, Event) => void
|
|
15
|
-
* @required
|
|
16
|
-
*/
|
|
17
|
-
onChange: (checked: boolean, event: ChangeEvent<HTMLInputElement>) => void;
|
|
18
|
-
};
|
|
19
|
-
/**
|
|
20
|
-
* A control element that allows users to toggle between two states, typically representing on/off and inherits
|
|
21
|
-
* immediate reaction in each state. This is the base element and if used directly you must wrap it with a label. This
|
|
22
|
-
* will more often be used in the SwitchOption component.
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* import { useState } from 'react';
|
|
26
|
-
* import { Switch } from '@bspk/ui/Switch';
|
|
27
|
-
*
|
|
28
|
-
* export function Example() {
|
|
29
|
-
* const [isChecked, setIsChecked] = useState<boolean>(false);
|
|
30
|
-
*
|
|
31
|
-
* return (
|
|
32
|
-
* <Switch
|
|
33
|
-
* aria-label="Example aria-label"
|
|
34
|
-
* name="Example name"
|
|
35
|
-
* onChange={setIsChecked}
|
|
36
|
-
* checked={isChecked}
|
|
37
|
-
* />
|
|
38
|
-
* );
|
|
39
|
-
* }
|
|
40
|
-
*
|
|
41
|
-
* @element
|
|
42
|
-
*
|
|
43
|
-
* @name Switch
|
|
44
|
-
*/
|
|
45
|
-
declare function Switch(props: SwitchProps): import("react/jsx-runtime").JSX.Element;
|
|
46
|
-
declare namespace Switch {
|
|
47
|
-
var bspkName: string;
|
|
48
|
-
}
|
|
49
|
-
export { Switch };
|
|
50
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/Switch.js
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { styleAdd } from './utils/styleAdd';
|
|
3
|
-
styleAdd(`[data-bspk=switch]{--track-width: var(--spacing-sizing-09);--toggle-width: var(--spacing-sizing-04);--track-bg: var(--surface-neutral-t4-high);--toggle-bg: var(--foreground-neutral-on-color);display:block;margin:2px;box-sizing:border-box;width:var(--track-width);height:var(--spacing-sizing-05);border-radius:var(--spacing-sizing-05);background-color:var(--track-bg);position:relative;z-index:1}[data-bspk=switch] input[type=checkbox]{position:absolute;opacity:0;width:100%;height:100%;top:0;left:0;z-index:2;cursor:pointer}[data-bspk=switch] span{display:block;width:var(--toggle-width);height:var(--toggle-width);border-radius:var(--radius-circular);background-color:var(--toggle-bg);transition:left .2s;box-shadow:var(--drop-shadow-raise);left:2px;top:2px;position:absolute}[data-bspk=switch]:has(input[type=checkbox]:checked){--track-bg: var(--foreground-brand-primary)}[data-bspk=switch]:has(input[type=checkbox]:checked) span{left:calc(var(--track-width) - var(--toggle-width) - 2px)}[data-bspk=switch]:has(input[type=checkbox]:disabled){--track-bg: var(--interactions-disabled-opacity);--toggle-bg: var(--foreground-neutral-disabled-on-surface)}[data-bspk=switch]:has(input[type=checkbox]:disabled) input[type=checkbox]{pointer-events:none}[data-bspk=switch]:has(input[type=checkbox]:disabled):has(input[type=checkbox]:checked) span{--toggle-bg: var(--foreground-neutral-disabled-on-color-surface)}`);;
|
|
4
|
-
/**
|
|
5
|
-
* A control element that allows users to toggle between two states, typically representing on/off and inherits
|
|
6
|
-
* immediate reaction in each state. This is the base element and if used directly you must wrap it with a label. This
|
|
7
|
-
* will more often be used in the SwitchOption component.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* import { useState } from 'react';
|
|
11
|
-
* import { Switch } from '@bspk/ui/Switch';
|
|
12
|
-
*
|
|
13
|
-
* export function Example() {
|
|
14
|
-
* const [isChecked, setIsChecked] = useState<boolean>(false);
|
|
15
|
-
*
|
|
16
|
-
* return (
|
|
17
|
-
* <Switch
|
|
18
|
-
* aria-label="Example aria-label"
|
|
19
|
-
* name="Example name"
|
|
20
|
-
* onChange={setIsChecked}
|
|
21
|
-
* checked={isChecked}
|
|
22
|
-
* />
|
|
23
|
-
* );
|
|
24
|
-
* }
|
|
25
|
-
*
|
|
26
|
-
* @element
|
|
27
|
-
*
|
|
28
|
-
* @name Switch
|
|
29
|
-
*/
|
|
30
|
-
function Switch(props) {
|
|
31
|
-
const {
|
|
32
|
-
//
|
|
33
|
-
checked = false, disabled, ...otherProps } = props;
|
|
34
|
-
return (_jsxs("span", { "data-bspk": "switch", children: [_jsx("input", { ...otherProps, "aria-disabled": disabled || undefined, checked: checked, disabled: disabled || undefined, onChange: (event) => props.onChange(!!event.target.checked, event), type: "checkbox" }), _jsx("span", { "aria-hidden": true })] }));
|
|
35
|
-
}
|
|
36
|
-
Switch.bspkName = 'Switch';
|
|
37
|
-
export { Switch };
|
|
38
|
-
//# sourceMappingURL=Switch.js.map
|
package/dist/Switch.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sourceRoot":"","sources":["../src/Switch.tsx"],"names":[],"mappings":";AAAA,OAAO,eAAe,CAAC;AAqBvB;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,SAAS,MAAM,CAAC,KAAkB;IAC9B,MAAM;IACF,EAAE;IACF,OAAO,GAAG,KAAK,EACf,QAAQ,EACR,GAAG,UAAU,EAChB,GAAG,KAAK,CAAC;IAEV,OAAO,CACH,6BAAgB,QAAQ,aACpB,mBACQ,UAAU,mBACC,QAAQ,IAAI,SAAS,EACpC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,IAAI,SAAS,EAC/B,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC,EAClE,IAAI,EAAC,UAAU,GACjB,EACF,qCAAoB,IACjB,CACV,CAAC;AACN,CAAC;AAED,MAAM,CAAC,QAAQ,GAAG,QAAQ,CAAC;AAE3B,OAAO,EAAE,MAAM,EAAE,CAAC"}
|
package/dist/SwitchOption.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { SwitchProps } from './Switch';
|
|
2
|
-
import { ToggleOptionProps } from './ToggleOption';
|
|
3
|
-
export type SwitchOptionProps = Omit<SwitchProps, 'aria-label'> & Pick<ToggleOptionProps, 'description' | 'label'>;
|
|
4
|
-
/**
|
|
5
|
-
* A control that allows users to choose one or more items from a list or turn an feature on or off.
|
|
6
|
-
*
|
|
7
|
-
* If only a switch is needed, consider using the `Switch` component directly.
|
|
8
|
-
*
|
|
9
|
-
* @name SwitchOption
|
|
10
|
-
*/
|
|
11
|
-
declare function SwitchOption({ label: labelProp, description, ...checkboxProps }: SwitchOptionProps): "" | import("react/jsx-runtime").JSX.Element | undefined;
|
|
12
|
-
declare namespace SwitchOption {
|
|
13
|
-
var bspkName: string;
|
|
14
|
-
}
|
|
15
|
-
export { SwitchOption };
|
|
16
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/SwitchOption.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Switch } from './Switch';
|
|
3
|
-
import { ToggleOption } from './ToggleOption';
|
|
4
|
-
/**
|
|
5
|
-
* A control that allows users to choose one or more items from a list or turn an feature on or off.
|
|
6
|
-
*
|
|
7
|
-
* If only a switch is needed, consider using the `Switch` component directly.
|
|
8
|
-
*
|
|
9
|
-
* @name SwitchOption
|
|
10
|
-
*/
|
|
11
|
-
function SwitchOption({ label: labelProp, description, ...checkboxProps }) {
|
|
12
|
-
const label = labelProp || description;
|
|
13
|
-
return (label && (_jsx(ToggleOption, { "data-bspk": "switch-option", description: description, label: label, children: _jsx(Switch, { ...checkboxProps, "aria-label": label }) })));
|
|
14
|
-
}
|
|
15
|
-
SwitchOption.bspkName = 'SwitchOption';
|
|
16
|
-
export { SwitchOption };
|
|
17
|
-
//# sourceMappingURL=SwitchOption.js.map
|
package/dist/SwitchOption.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SwitchOption.js","sourceRoot":"","sources":["../src/SwitchOption.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAe,MAAM,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAqB,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAIjE;;;;;;GAMG;AACH,SAAS,YAAY,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,GAAG,aAAa,EAAqB;IACxF,MAAM,KAAK,GAAG,SAAS,IAAI,WAAW,CAAC;IAEvC,OAAO,CACH,KAAK,IAAI,CACL,KAAC,YAAY,iBAAW,eAAe,EAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,KAAK,YAC1E,KAAC,MAAM,OAAK,aAAa,gBAAc,KAAK,GAAI,GACrC,CAClB,CACJ,CAAC;AACN,CAAC;AAED,YAAY,CAAC,QAAQ,GAAG,cAAc,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
package/dist/TabGroup.d.ts
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import './tab-group.scss';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ElementProps } from './';
|
|
4
|
-
export type TabGroupSize = 'large' | 'medium' | 'small';
|
|
5
|
-
export type TabGroupOption = {
|
|
6
|
-
/**
|
|
7
|
-
* The label of the tab. This is the text that will be displayed on the tab.
|
|
8
|
-
*
|
|
9
|
-
* @required
|
|
10
|
-
*/
|
|
11
|
-
label: string;
|
|
12
|
-
/**
|
|
13
|
-
* Determines if the element is [disabled](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/disabled).
|
|
14
|
-
*
|
|
15
|
-
* @default false
|
|
16
|
-
*/
|
|
17
|
-
disabled?: boolean;
|
|
18
|
-
/**
|
|
19
|
-
* The value of the tab sent to onChange when selected.
|
|
20
|
-
*
|
|
21
|
-
* If not provided, the label will be used as the value.
|
|
22
|
-
*/
|
|
23
|
-
value?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The icon to display on the left side of the tab.
|
|
26
|
-
*
|
|
27
|
-
* @type BspkIcon
|
|
28
|
-
*/
|
|
29
|
-
icon?: ReactNode;
|
|
30
|
-
/**
|
|
31
|
-
* The icon to display on the left side of the tab when the tab is active.
|
|
32
|
-
*
|
|
33
|
-
* @type BspkIcon
|
|
34
|
-
*/
|
|
35
|
-
iconActive?: ReactNode;
|
|
36
|
-
/** The badge count to display on the tab */
|
|
37
|
-
badge?: number;
|
|
38
|
-
};
|
|
39
|
-
export type TabGroupProps = {
|
|
40
|
-
/**
|
|
41
|
-
* The tabs to display. Each tab has a label and an optional leading icon.
|
|
42
|
-
*
|
|
43
|
-
* @example
|
|
44
|
-
* [
|
|
45
|
-
* { value: '1', label: 'Option 1' },
|
|
46
|
-
* { value: '2', label: 'Option 2' },
|
|
47
|
-
* { value: '3', label: 'Option 3' },
|
|
48
|
-
* ];
|
|
49
|
-
*
|
|
50
|
-
* @type Array<TabGroupOption>
|
|
51
|
-
* @required
|
|
52
|
-
*/
|
|
53
|
-
options: TabGroupOption[];
|
|
54
|
-
/**
|
|
55
|
-
* The value of the selected tab.
|
|
56
|
-
*
|
|
57
|
-
* @example
|
|
58
|
-
* 1;
|
|
59
|
-
*
|
|
60
|
-
* @required
|
|
61
|
-
*/
|
|
62
|
-
value: TabGroupOption['value'];
|
|
63
|
-
/**
|
|
64
|
-
* The function to call when the tab is clicked.
|
|
65
|
-
*
|
|
66
|
-
* @required
|
|
67
|
-
*/
|
|
68
|
-
onChange: (tabValue: string, index: number) => void;
|
|
69
|
-
/**
|
|
70
|
-
* The size of the tabs.
|
|
71
|
-
*
|
|
72
|
-
* @default medium
|
|
73
|
-
*/
|
|
74
|
-
size?: TabGroupSize;
|
|
75
|
-
/**
|
|
76
|
-
* When 'fill' the options will fill the width of the container. When 'hug', the options will be as wide as their
|
|
77
|
-
* content.
|
|
78
|
-
*
|
|
79
|
-
* @default hug
|
|
80
|
-
*/
|
|
81
|
-
width?: 'fill' | 'hug';
|
|
82
|
-
/**
|
|
83
|
-
* When width is 'hug' this determines if the trailing underline should be showing. When width is 'fill' this
|
|
84
|
-
* property isn't applicable.
|
|
85
|
-
*
|
|
86
|
-
* @default false
|
|
87
|
-
*/
|
|
88
|
-
showTrail?: boolean;
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Navigation tool that organizes content across different screens and views.
|
|
92
|
-
*
|
|
93
|
-
* @example
|
|
94
|
-
* import { useState } from 'react';
|
|
95
|
-
* import { TabGroup } from '@bspk/ui/TabGroup';
|
|
96
|
-
*
|
|
97
|
-
* export function Example() {
|
|
98
|
-
* const [selectedTab, setSelectedTab] = useState<string>();
|
|
99
|
-
*
|
|
100
|
-
* return (
|
|
101
|
-
* <TabGroup
|
|
102
|
-
* onChange={setSelectedTab}
|
|
103
|
-
* options={[
|
|
104
|
-
* { value: '1', label: 'Option 1' },
|
|
105
|
-
* { value: '2', label: 'Option 2' },
|
|
106
|
-
* { value: '3', label: 'Option 3' },
|
|
107
|
-
* ]}
|
|
108
|
-
* value={selectedTab}
|
|
109
|
-
* />
|
|
110
|
-
* );
|
|
111
|
-
* }
|
|
112
|
-
*
|
|
113
|
-
* @name TabGroup
|
|
114
|
-
*/
|
|
115
|
-
declare function TabGroup({ onChange: onTabChange, value, size, options: optionsProp, width, showTrail, ...containerProps }: ElementProps<TabGroupProps, 'div'>): import("react/jsx-runtime").JSX.Element;
|
|
116
|
-
declare namespace TabGroup {
|
|
117
|
-
var bspkName: string;
|
|
118
|
-
}
|
|
119
|
-
export { TabGroup };
|
|
120
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/TabGroup.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { styleAdd } from './utils/styleAdd';
|
|
3
|
-
styleAdd(`[data-bspk=tab-group]{display:flex;flex-direction:row;--btn-flex-grow: 0;border-bottom:1px solid var(--stroke-neutral-low);width:100%;--font: var(--labels-base);--height: var(--spacing-sizing-10)}[data-bspk=tab-group][data-width=fill]{align-items:stretch;width:100%;--btn-flex-grow: 1}[data-bspk=tab-group][data-size=small]{--font: var(--labels-small);--height: var(--spacing-sizing-08)}[data-bspk=tab-group][data-size=large]{--font: var(--labels-large);--height: var(--spacing-sizing-12)}[data-bspk=tab-group] button{border:0;cursor:pointer;color:var(--foreground-neutral-on-surface-variant-02);background:none;flex-grow:var(--btn-flex-grow);font:var(--font);white-space:nowrap}[data-bspk=tab-group] button:hover{background:var(--interactions-neutral-hover-opacity)}[data-bspk=tab-group] button:active{background:var(--interactions-neutral-press-opacity)}[data-bspk=tab-group] button:disabled{pointer-events:none;color:var(--foreground-neutral-disabled-on-surface)}[data-bspk=tab-group] button:focus-visible{outline:solid 2px var(--stroke-neutral-focus)}[data-bspk=tab-group] button span{display:flex;flex-direction:row;align-items:center;margin:0 var(--spacing-sizing-04);height:var(--height);justify-content:center;position:relative;gap:var(--spacing-sizing-02)}[data-bspk=tab-group] button span svg{width:var(--spacing-sizing-05)}[data-bspk=tab-group] button[data-active]{color:var(--foreground-brand-primary)}[data-bspk=tab-group] button[data-active] span::after{content:"";display:block;width:100%;height:2px;background-color:var(--stroke-brand-primary);bottom:-1px;position:absolute;border-top-right-radius:2px;border-top-left-radius:2px}[data-bspk=tab-group] button[data-active] span svg{color:var(--surface-brand-primary)}[data-bspk=tab-group][data-hide-trail]{border-bottom:none}[data-bspk=tab-group][data-hide-trail] button{border-bottom:1px solid var(--stroke-neutral-low)}`);;
|
|
4
|
-
import { Badge } from './Badge';
|
|
5
|
-
import { useOptionIconsInvalid } from './hooks/useOptionIconsInvalid';
|
|
6
|
-
const TAB_BADGE_SIZES = {
|
|
7
|
-
large: 'small',
|
|
8
|
-
medium: 'x-small',
|
|
9
|
-
small: 'x-small',
|
|
10
|
-
};
|
|
11
|
-
/**
|
|
12
|
-
* Navigation tool that organizes content across different screens and views.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* import { useState } from 'react';
|
|
16
|
-
* import { TabGroup } from '@bspk/ui/TabGroup';
|
|
17
|
-
*
|
|
18
|
-
* export function Example() {
|
|
19
|
-
* const [selectedTab, setSelectedTab] = useState<string>();
|
|
20
|
-
*
|
|
21
|
-
* return (
|
|
22
|
-
* <TabGroup
|
|
23
|
-
* onChange={setSelectedTab}
|
|
24
|
-
* options={[
|
|
25
|
-
* { value: '1', label: 'Option 1' },
|
|
26
|
-
* { value: '2', label: 'Option 2' },
|
|
27
|
-
* { value: '3', label: 'Option 3' },
|
|
28
|
-
* ]}
|
|
29
|
-
* value={selectedTab}
|
|
30
|
-
* />
|
|
31
|
-
* );
|
|
32
|
-
* }
|
|
33
|
-
*
|
|
34
|
-
* @name TabGroup
|
|
35
|
-
*/
|
|
36
|
-
function TabGroup({
|
|
37
|
-
//
|
|
38
|
-
onChange: onTabChange, value, size = 'medium', options: optionsProp, width = 'hug', showTrail = false, ...containerProps }) {
|
|
39
|
-
const options = Array.isArray(optionsProp) ? optionsProp : [];
|
|
40
|
-
useOptionIconsInvalid(options);
|
|
41
|
-
return (_jsx("div", { ...containerProps, "data-bspk": "tab-group", "data-hide-trail": (width === 'hug' && !showTrail) || undefined, "data-size": size, "data-width": width, children: options.map((item, itemIndex) => {
|
|
42
|
-
const isActive = item.value === value;
|
|
43
|
-
return (_jsx("button", { "data-active": isActive || undefined, disabled: item.disabled || undefined, onClick: () => {
|
|
44
|
-
onTabChange(item.value || item.label, itemIndex);
|
|
45
|
-
}, children: _jsxs("span", { children: [(isActive && item.iconActive) || item.icon, item.label, item.badge && !item.disabled && !isActive && (_jsx(Badge, { count: item.badge, size: TAB_BADGE_SIZES[size] }))] }) }, item.value));
|
|
46
|
-
}) }));
|
|
47
|
-
}
|
|
48
|
-
TabGroup.bspkName = 'TabGroup';
|
|
49
|
-
export { TabGroup };
|
|
50
|
-
//# sourceMappingURL=TabGroup.js.map
|
package/dist/TabGroup.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TabGroup.js","sourceRoot":"","sources":["../src/TabGroup.tsx"],"names":[],"mappings":";AAAA,OAAO,kBAAkB,CAAC;AAG1B,OAAO,EAAE,KAAK,EAAc,MAAM,SAAS,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AAMtE,MAAM,eAAe,GAA6C;IAC9D,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;CACnB,CAAC;AAyFF;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAS,QAAQ,CAAC;AACd,EAAE;AACF,QAAQ,EAAE,WAAW,EACrB,KAAK,EACL,IAAI,GAAG,QAAQ,EACf,OAAO,EAAE,WAAW,EACpB,KAAK,GAAG,KAAK,EACb,SAAS,GAAG,KAAK,EACjB,GAAG,cAAc,EACgB;IACjC,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9D,qBAAqB,CAAC,OAAO,CAAC,CAAC;IAE/B,OAAO,CACH,iBACQ,cAAc,eACR,WAAW,qBACJ,CAAC,KAAK,KAAK,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,SAAS,eAClD,IAAI,gBACH,KAAK,YAEhB,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE;YAC7B,MAAM,QAAQ,GAAG,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC;YAEtC,OAAO,CACH,gCACiB,QAAQ,IAAI,SAAS,EAClC,QAAQ,EAAE,IAAI,CAAC,QAAQ,IAAI,SAAS,EAEpC,OAAO,EAAE,GAAG,EAAE;oBACV,WAAW,CAAC,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;gBACrD,CAAC,YAED,2BACK,CAAC,QAAQ,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,IAAI,CAAC,IAAI,EAC1C,IAAI,CAAC,KAAK,EACV,IAAI,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,QAAQ,IAAI,CAAC,QAAQ,IAAI,CAC1C,KAAC,KAAK,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,eAAe,CAAC,IAAI,CAAC,GAAI,CAC5D,IACE,IAXF,IAAI,CAAC,KAAK,CAYV,CACZ,CAAC;QACN,CAAC,CAAC,GACA,CACT,CAAC;AACN,CAAC;AAED,QAAQ,CAAC,QAAQ,GAAG,UAAU,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
package/dist/Table.d.ts
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import './table.scss';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import { ElementProps } from '.';
|
|
4
|
-
export type TableRow = Record<string, ReactNode>;
|
|
5
|
-
export type TableColumn<R extends TableRow = Record<string, ReactNode>> = {
|
|
6
|
-
/**
|
|
7
|
-
* The key of the column. This is used to access the data in the row.
|
|
8
|
-
*
|
|
9
|
-
* @type string
|
|
10
|
-
*/
|
|
11
|
-
key: keyof R;
|
|
12
|
-
/**
|
|
13
|
-
* The label of the column. This is used to display the column header.
|
|
14
|
-
*
|
|
15
|
-
* @type string
|
|
16
|
-
*/
|
|
17
|
-
label: string;
|
|
18
|
-
/**
|
|
19
|
-
* The width of the column. This is used to set the width of the column.
|
|
20
|
-
*
|
|
21
|
-
* Used to set the value of
|
|
22
|
-
* [grid-template-columns](https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns)
|
|
23
|
-
*
|
|
24
|
-
* @default 1fr
|
|
25
|
-
* @type string
|
|
26
|
-
*/
|
|
27
|
-
width?: string;
|
|
28
|
-
};
|
|
29
|
-
export type TableProps<R extends TableRow> = {
|
|
30
|
-
/** The data of the table. */
|
|
31
|
-
rows: R[];
|
|
32
|
-
/** The columns of the table. */
|
|
33
|
-
columns: TableColumn<R>[];
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Component description coming soon.
|
|
37
|
-
*
|
|
38
|
-
* @name Table
|
|
39
|
-
*/
|
|
40
|
-
declare function Table<R extends TableRow>({ rows, columns, ...props }: ElementProps<TableProps<R>, 'div'>): import("react/jsx-runtime").JSX.Element;
|
|
41
|
-
declare namespace Table {
|
|
42
|
-
var bspkName: string;
|
|
43
|
-
}
|
|
44
|
-
export { Table };
|
|
45
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/Table.js
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { styleAdd } from './utils/styleAdd';
|
|
3
|
-
styleAdd(`[data-bspk=table]{width:100%;border-collapse:separate;text-align:left;border-spacing:2rem .125rem;display:grid;color:var(--foreground-neutral-on-surface);font:var(--labels-base);border-radius:var(--radius-medium);border:1px solid var(--stroke-neutral-low)}[data-bspk=table] [data-cell]{display:flex;flex-direction:column;gap:var(--spacing-sizing-02);padding:var(--spacing-sizing-04);background-color:var(--surface-neutral-t1-base);border-bottom:var(--stroke-neutral-low) solid 1px;font:var(--labels-small)}[data-bspk=table] [data-cell] p{margin:0;padding:0;font:var(--body-small)}[data-bspk=table] [data-head]{display:flex;align-items:center;flex-direction:row;border-bottom:1px solid var(--stroke-neutral-base);background:var(--surface-neutral-t2-lowest);height:var(--spacing-sizing-10);padding:0 var(--spacing-sizing-03);font:var(--labels-base)}[data-bspk=table] [data-head][data-head=first]{border-top-left-radius:var(--radius-medium)}[data-bspk=table] [data-head][data-head=last]{border-top-right-radius:var(--radius-medium)}`);;
|
|
4
|
-
/**
|
|
5
|
-
* Component description coming soon.
|
|
6
|
-
*
|
|
7
|
-
* @name Table
|
|
8
|
-
*/
|
|
9
|
-
function Table({ rows, columns, ...props }) {
|
|
10
|
-
return (_jsxs("div", { ...props, "data-bspk": "table", style: {
|
|
11
|
-
...props.style,
|
|
12
|
-
gridTemplateColumns: columns.map((c) => `minmax(0, ${c.width || '1fr'})`).join(' '),
|
|
13
|
-
}, children: [columns.map((column, index, arr) => (_jsx("div", { "data-head": [index === 0 && 'first', index === arr.length - 1 && 'last'].filter(Boolean).join(' '), children: column.label }, column.key))), rows.map((row, index, arr) => {
|
|
14
|
-
const lastRow = index === arr.length - 1 || undefined;
|
|
15
|
-
return columns.map((column) => (_jsx("div", { "data-cell": column.key, "data-row-last": lastRow, children: row[column.key] }, index + column.key)));
|
|
16
|
-
})] }));
|
|
17
|
-
}
|
|
18
|
-
Table.bspkName = 'Table';
|
|
19
|
-
export { Table };
|
|
20
|
-
//# sourceMappingURL=Table.js.map
|
package/dist/Table.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Table.js","sourceRoot":"","sources":["../src/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,cAAc,CAAC;AAuCtB;;;;GAIG;AACH,SAAS,KAAK,CAAqB,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,EAAsC;IAC9F,OAAO,CACH,kBACQ,KAAK,eACC,OAAO,EACjB,KAAK,EAAE;YACH,GAAG,KAAK,CAAC,KAAK;YACd,mBAAmB,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,KAAK,IAAI,KAAK,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;SACtF,aAEA,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,CACjC,2BACe,CAAC,KAAK,KAAK,CAAC,IAAI,OAAO,EAAE,KAAK,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,MAAM,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,YAGhG,MAAM,CAAC,KAAK,IAFR,MAAM,CAAC,GAAa,CAGvB,CACT,CAAC,EACD,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,EAAE;gBAC1B,MAAM,OAAO,GAAG,KAAK,KAAK,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC;gBACtD,OAAO,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAC3B,2BAAgB,MAAM,CAAC,GAAG,mBAAiB,OAAO,YAC7C,GAAG,CAAC,MAAM,CAAC,GAAG,CAAC,IADqC,KAAK,GAAI,MAAM,CAAC,GAAc,CAEjF,CACT,CAAC,CAAC;YACP,CAAC,CAAC,IACA,CACT,CAAC;AACN,CAAC;AAED,KAAK,CAAC,QAAQ,GAAG,OAAO,CAAC;AAEzB,OAAO,EAAE,KAAK,EAAE,CAAC"}
|
package/dist/Tag.d.ts
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import './tag.scss';
|
|
2
|
-
import { ElementType, ReactNode } from 'react';
|
|
3
|
-
import { ColorVariant } from './utils/colorVariants';
|
|
4
|
-
import { ElementProps } from './';
|
|
5
|
-
export type TagProps<As extends ElementType = 'span'> = {
|
|
6
|
-
/**
|
|
7
|
-
* The element type to render as.
|
|
8
|
-
*
|
|
9
|
-
* @default span
|
|
10
|
-
* @type ElementType
|
|
11
|
-
*/
|
|
12
|
-
as?: As;
|
|
13
|
-
/**
|
|
14
|
-
* The content of the tag.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* New;
|
|
18
|
-
*
|
|
19
|
-
* @required
|
|
20
|
-
*/
|
|
21
|
-
children: ReactNode;
|
|
22
|
-
/**
|
|
23
|
-
* The size of the tag.
|
|
24
|
-
*
|
|
25
|
-
* @default small
|
|
26
|
-
*/
|
|
27
|
-
size?: 'small' | 'x-small';
|
|
28
|
-
/**
|
|
29
|
-
* The color of the tag.
|
|
30
|
-
*
|
|
31
|
-
* @default grey
|
|
32
|
-
*/
|
|
33
|
-
color?: ColorVariant;
|
|
34
|
-
/**
|
|
35
|
-
* The display variant of the tag.
|
|
36
|
-
*
|
|
37
|
-
* @default flat
|
|
38
|
-
*/
|
|
39
|
-
variant?: 'corner-wrap' | 'flat' | 'pill';
|
|
40
|
-
/**
|
|
41
|
-
* Whether the tag should wrap its content.
|
|
42
|
-
*
|
|
43
|
-
* (Not recommended)
|
|
44
|
-
*
|
|
45
|
-
* @default false
|
|
46
|
-
*/
|
|
47
|
-
wrap?: boolean;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* A non-interactive visual indicators to draw attention or categorization of a component.
|
|
51
|
-
*
|
|
52
|
-
* @example
|
|
53
|
-
* import { Tag } from '@bspk/ui/Tag';
|
|
54
|
-
*
|
|
55
|
-
* export function Example() {
|
|
56
|
-
* return (
|
|
57
|
-
* <Tag variant="flat" color="primary">
|
|
58
|
-
* Example Tag
|
|
59
|
-
* </Tag>
|
|
60
|
-
* );
|
|
61
|
-
* }
|
|
62
|
-
*
|
|
63
|
-
* @name Tag
|
|
64
|
-
*/
|
|
65
|
-
declare function Tag<As extends ElementType = 'span'>({ children, as, color, size, variant, wrap, ...props }: ElementProps<TagProps<As>, As>): import("react/jsx-runtime").JSX.Element;
|
|
66
|
-
declare namespace Tag {
|
|
67
|
-
var bspkName: string;
|
|
68
|
-
}
|
|
69
|
-
export { Tag };
|
|
70
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/Tag.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { styleAdd } from './utils/styleAdd';
|
|
3
|
-
styleAdd(`[data-bspk=tag]{display:flex;flex-direction:column;justify-content:center;width:fit-content;position:relative;padding:0 var(--spacing-sizing-03);border-radius:var(--radius-small);color:var(--foreground) !important;background:var(--background);font:unset;text-decoration:unset;white-space:nowrap;pointer-events:none}[data-bspk=tag][data-wrap]{height:auto}[data-bspk=tag][data-variant=pill]{border-radius:var(--radius-circular)}[data-bspk=tag][data-variant=corner-wrap]{border-bottom-right-radius:0}[data-bspk=tag][data-size=small]{font:var(--labels-small);height:var(--spacing-sizing-08)}[data-bspk=tag][data-size=x-small]{font:var(--labels-x-small);height:var(--spacing-sizing-06)}[data-bspk=tag][data-color=white]{box-shadow:var(--drop-shadow-south)}[data-bspk=tag] [data-triangle]{position:absolute;bottom:-12px;right:0;width:0;height:0;border-style:solid;border-width:12px 12px 0 0;border-color:var(--foreground) rgba(0,0,0,0) rgba(0,0,0,0) rgba(0,0,0,0);transform:rotate(0deg)}`);;
|
|
4
|
-
/**
|
|
5
|
-
* A non-interactive visual indicators to draw attention or categorization of a component.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* import { Tag } from '@bspk/ui/Tag';
|
|
9
|
-
*
|
|
10
|
-
* export function Example() {
|
|
11
|
-
* return (
|
|
12
|
-
* <Tag variant="flat" color="primary">
|
|
13
|
-
* Example Tag
|
|
14
|
-
* </Tag>
|
|
15
|
-
* );
|
|
16
|
-
* }
|
|
17
|
-
*
|
|
18
|
-
* @name Tag
|
|
19
|
-
*/
|
|
20
|
-
function Tag({ children, as, color = 'white', size = 'small', variant = 'flat', wrap, ...props }) {
|
|
21
|
-
const As = as || 'span';
|
|
22
|
-
return (_jsxs(As, { ...props, "data-bspk": "tag", "data-color": color, "data-size": size, "data-variant": variant, "data-wrap": wrap || undefined, children: [children, variant === 'corner-wrap' && _jsx("div", { "data-triangle": true })] }));
|
|
23
|
-
}
|
|
24
|
-
Tag.bspkName = 'Tag';
|
|
25
|
-
export { Tag };
|
|
26
|
-
//# sourceMappingURL=Tag.js.map
|
package/dist/Tag.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sourceRoot":"","sources":["../src/Tag.tsx"],"names":[],"mappings":";AAAA,OAAO,YAAY,CAAC;AAoDpB;;;;;;;;;;;;;;;GAeG;AACH,SAAS,GAAG,CAAkC,EAC1C,QAAQ,EACR,EAAE,EACF,KAAK,GAAG,OAAO,EACf,IAAI,GAAG,OAAO,EACd,OAAO,GAAG,MAAM,EAChB,IAAI,EACJ,GAAG,KAAK,EACqB;IAC7B,MAAM,EAAE,GAAgB,EAAE,IAAI,MAAM,CAAC;IAErC,OAAO,CACH,MAAC,EAAE,OACK,KAAK,eACC,KAAK,gBACH,KAAK,eACN,IAAI,kBACD,OAAO,eACV,IAAI,IAAI,SAAS,aAE3B,QAAQ,EACR,OAAO,KAAK,aAAa,IAAI,sCAAqB,IAClD,CACR,CAAC;AACN,CAAC;AAED,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC;AAErB,OAAO,EAAE,GAAG,EAAE,CAAC"}
|
package/dist/TextField.d.ts
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { FormFieldProps } from './FormField';
|
|
2
|
-
import { TextInputProps } from './TextInput';
|
|
3
|
-
import { InvalidPropsLibrary } from '.';
|
|
4
|
-
export type TextFieldProps = InvalidPropsLibrary & Pick<TextInputProps, 'autoComplete' | 'disabled' | 'inputRef' | 'leading' | 'name' | 'onChange' | 'placeholder' | 'readOnly' | 'required' | 'size' | 'trailing' | 'type' | 'value'> & Pick<FormFieldProps, 'controlId' | 'errorMessage' | 'helperText' | 'label' | 'labelTrailing'>;
|
|
5
|
-
/**
|
|
6
|
-
* A text input that allows users to enter text, numbers or symbols in a singular line.
|
|
7
|
-
*
|
|
8
|
-
* This component takes properties from the FormField and TextInput components.
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* import { useState } from 'react';
|
|
12
|
-
* import { TextField } from '@bspk/ui/TextField';
|
|
13
|
-
*
|
|
14
|
-
* export function Example() {
|
|
15
|
-
* const [value, setValue] = useState<string>('');
|
|
16
|
-
*
|
|
17
|
-
* return (
|
|
18
|
-
* <TextField
|
|
19
|
-
* controlId="Example controlId"
|
|
20
|
-
* label="Example label"
|
|
21
|
-
* name="Example name"
|
|
22
|
-
* onChange={setValue}
|
|
23
|
-
* value={value}
|
|
24
|
-
* />
|
|
25
|
-
* );
|
|
26
|
-
* }
|
|
27
|
-
*
|
|
28
|
-
* @name TextField
|
|
29
|
-
*/
|
|
30
|
-
declare function TextField({ label, errorMessage: errorMessageProp, helperText, controlId, labelTrailing, required, ...inputProps }: TextFieldProps): import("react/jsx-runtime").JSX.Element;
|
|
31
|
-
declare namespace TextField {
|
|
32
|
-
var bspkName: string;
|
|
33
|
-
}
|
|
34
|
-
export { TextField };
|
|
35
|
-
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
package/dist/TextField.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { FormField } from './FormField';
|
|
3
|
-
import { TextInput } from './TextInput';
|
|
4
|
-
/**
|
|
5
|
-
* A text input that allows users to enter text, numbers or symbols in a singular line.
|
|
6
|
-
*
|
|
7
|
-
* This component takes properties from the FormField and TextInput components.
|
|
8
|
-
*
|
|
9
|
-
* @example
|
|
10
|
-
* import { useState } from 'react';
|
|
11
|
-
* import { TextField } from '@bspk/ui/TextField';
|
|
12
|
-
*
|
|
13
|
-
* export function Example() {
|
|
14
|
-
* const [value, setValue] = useState<string>('');
|
|
15
|
-
*
|
|
16
|
-
* return (
|
|
17
|
-
* <TextField
|
|
18
|
-
* controlId="Example controlId"
|
|
19
|
-
* label="Example label"
|
|
20
|
-
* name="Example name"
|
|
21
|
-
* onChange={setValue}
|
|
22
|
-
* value={value}
|
|
23
|
-
* />
|
|
24
|
-
* );
|
|
25
|
-
* }
|
|
26
|
-
*
|
|
27
|
-
* @name TextField
|
|
28
|
-
*/
|
|
29
|
-
function TextField({ label, errorMessage: errorMessageProp, helperText, controlId, labelTrailing, required, ...inputProps }) {
|
|
30
|
-
const errorMessage = (!inputProps.readOnly && !inputProps.disabled && errorMessageProp) || undefined;
|
|
31
|
-
return (_jsx(FormField, { controlId: controlId, "data-bspk": "text-field", errorMessage: errorMessage, helperText: helperText, label: label, labelTrailing: labelTrailing, required: required, children: (fieldProps) => (_jsx(TextInput, { ...inputProps, ...fieldProps, "aria-label": label, id: controlId, required: required })) }));
|
|
32
|
-
}
|
|
33
|
-
TextField.bspkName = 'TextField';
|
|
34
|
-
export { TextField };
|
|
35
|
-
//# sourceMappingURL=TextField.js.map
|
package/dist/TextField.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TextField.js","sourceRoot":"","sources":["../src/TextField.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAkB,SAAS,EAAE,MAAM,aAAa,CAAC;AACxD,OAAO,EAAkB,SAAS,EAAE,MAAM,aAAa,CAAC;AAuBxD;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,SAAS,SAAS,CAAC,EACf,KAAK,EACL,YAAY,EAAE,gBAAgB,EAC9B,UAAU,EACV,SAAS,EACT,aAAa,EACb,QAAQ,EACR,GAAG,UAAU,EACA;IACb,MAAM,YAAY,GAAG,CAAC,CAAC,UAAU,CAAC,QAAQ,IAAI,CAAC,UAAU,CAAC,QAAQ,IAAI,gBAAgB,CAAC,IAAI,SAAS,CAAC;IAErG,OAAO,CACH,KAAC,SAAS,IACN,SAAS,EAAE,SAAS,eACV,YAAY,EACtB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,QAAQ,EAAE,QAAQ,YAEjB,CAAC,UAAU,EAAE,EAAE,CAAC,CACb,KAAC,SAAS,OAAK,UAAU,KAAM,UAAU,gBAAc,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,GAAI,CACtG,GACO,CACf,CAAC;AACN,CAAC;AAED,SAAS,CAAC,QAAQ,GAAG,WAAW,CAAC;AAEjC,OAAO,EAAE,SAAS,EAAE,CAAC"}
|