@bspk/ui 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Accordion.d.ts +20 -0
- package/Accordion.js +18 -0
- package/Accordion.js.map +1 -0
- package/Badge.d.ts +33 -0
- package/Badge.js +43 -0
- package/Badge.js.map +1 -0
- package/BannerAlert.d.ts +53 -0
- package/BannerAlert.js +133 -0
- package/BannerAlert.js.map +1 -0
- package/BottomNavigation.d.ts +20 -0
- package/BottomNavigation.js +18 -0
- package/BottomNavigation.js.map +1 -0
- package/BottomSheet.d.ts +20 -0
- package/BottomSheet.js +18 -0
- package/BottomSheet.js.map +1 -0
- package/Breadcrumb.d.ts +20 -0
- package/Breadcrumb.js +18 -0
- package/Breadcrumb.js.map +1 -0
- package/Button.d.ts +66 -0
- package/Button.js +254 -0
- package/Button.js.map +1 -0
- package/ButtonDock.d.ts +20 -0
- package/ButtonDock.js +18 -0
- package/ButtonDock.js.map +1 -0
- package/CODE_OF_CONDUCT.md +137 -0
- package/CONTRIBUTING.md +42 -0
- package/Card.d.ts +37 -0
- package/Card.js +38 -0
- package/Card.js.map +1 -0
- package/Chart.d.ts +20 -0
- package/Chart.js +18 -0
- package/Chart.js.map +1 -0
- package/Checkbox.d.ts +26 -0
- package/Checkbox.js +123 -0
- package/Checkbox.js.map +1 -0
- package/CheckboxGroup.d.ts +49 -0
- package/CheckboxGroup.js +18 -0
- package/CheckboxGroup.js.map +1 -0
- package/CheckboxOption.d.ts +14 -0
- package/CheckboxOption.js +16 -0
- package/CheckboxOption.js.map +1 -0
- package/Chip.d.ts +50 -0
- package/Chip.js +87 -0
- package/Chip.js.map +1 -0
- package/DatePicker.d.ts +20 -0
- package/DatePicker.js +18 -0
- package/DatePicker.js.map +1 -0
- package/Dialog.d.ts +46 -0
- package/Dialog.js +221 -0
- package/Dialog.js.map +1 -0
- package/Divider.d.ts +44 -0
- package/Divider.js +76 -0
- package/Divider.js.map +1 -0
- package/Drawer.d.ts +20 -0
- package/Drawer.js +18 -0
- package/Drawer.js.map +1 -0
- package/Dropdown.d.ts +50 -0
- package/Dropdown.js +153 -0
- package/Dropdown.js.map +1 -0
- package/DropdownField.d.ts +16 -0
- package/DropdownField.js +19 -0
- package/DropdownField.js.map +1 -0
- package/EmptyState.d.ts +35 -0
- package/EmptyState.js +20 -0
- package/EmptyState.js.map +1 -0
- package/Fab.d.ts +43 -0
- package/Fab.js +146 -0
- package/Fab.js.map +1 -0
- package/FileUpload.d.ts +20 -0
- package/FileUpload.js +18 -0
- package/FileUpload.js.map +1 -0
- package/FormField.d.ts +48 -0
- package/FormField.js +39 -0
- package/FormField.js.map +1 -0
- package/GUIDELINES.md +41 -0
- package/Image.d.ts +20 -0
- package/Image.js +18 -0
- package/Image.js.map +1 -0
- package/Img.d.ts +26 -0
- package/Img.js +20 -0
- package/Img.js.map +1 -0
- package/InlineAlert.d.ts +31 -0
- package/InlineAlert.js +73 -0
- package/InlineAlert.js.map +1 -0
- package/LICENSE +395 -0
- package/Layout.d.ts +48 -0
- package/Layout.js +24 -0
- package/Layout.js.map +1 -0
- package/Link.d.ts +38 -0
- package/Link.js +37 -0
- package/Link.js.map +1 -0
- package/ListItem.d.ts +68 -0
- package/ListItem.js +207 -0
- package/ListItem.js.map +1 -0
- package/Menu.d.ts +86 -0
- package/Menu.js +98 -0
- package/Menu.js.map +1 -0
- package/MenuButton.d.ts +16 -0
- package/MenuButton.js +30 -0
- package/MenuButton.js.map +1 -0
- package/Modal.d.ts +31 -0
- package/Modal.js +53 -0
- package/Modal.js.map +1 -0
- package/MultiSelection.d.ts +20 -0
- package/MultiSelection.js +18 -0
- package/MultiSelection.js.map +1 -0
- package/NavigationRail.d.ts +20 -0
- package/NavigationRail.js +18 -0
- package/NavigationRail.js.map +1 -0
- package/NumberField.d.ts +17 -0
- package/NumberField.js +20 -0
- package/NumberField.js.map +1 -0
- package/NumberInput.d.ts +34 -0
- package/NumberInput.js +188 -0
- package/NumberInput.js.map +1 -0
- package/OTPInput.d.ts +20 -0
- package/OTPInput.js +18 -0
- package/OTPInput.js.map +1 -0
- package/PageControl.d.ts +20 -0
- package/PageControl.js +18 -0
- package/PageControl.js.map +1 -0
- package/PasswordInput.d.ts +20 -0
- package/PasswordInput.js +18 -0
- package/PasswordInput.js.map +1 -0
- package/PhoneNumberInput.d.ts +20 -0
- package/PhoneNumberInput.js +18 -0
- package/PhoneNumberInput.js.map +1 -0
- package/Popover.d.ts +44 -0
- package/Popover.js +152 -0
- package/Popover.js.map +1 -0
- package/Portal.d.ts +24 -0
- package/Portal.js +23 -0
- package/Portal.js.map +1 -0
- package/Profile.d.ts +41 -0
- package/Profile.js +83 -0
- package/Profile.js.map +1 -0
- package/ProgressBar.d.ts +38 -0
- package/ProgressBar.js +64 -0
- package/ProgressBar.js.map +1 -0
- package/ProgressCircle.d.ts +31 -0
- package/ProgressCircle.js +82 -0
- package/ProgressCircle.js.map +1 -0
- package/ProgressionStepper.d.ts +66 -0
- package/ProgressionStepper.js +197 -0
- package/ProgressionStepper.js.map +1 -0
- package/ProgressionStepperBar.d.ts +31 -0
- package/ProgressionStepperBar.js +51 -0
- package/ProgressionStepperBar.js.map +1 -0
- package/README.md +13 -0
- package/Radio.d.ts +17 -0
- package/Radio.js +97 -0
- package/Radio.js.map +1 -0
- package/RadioGroup.d.ts +31 -0
- package/RadioGroup.js +18 -0
- package/RadioGroup.js.map +1 -0
- package/RadioOption.d.ts +14 -0
- package/RadioOption.js +16 -0
- package/RadioOption.js.map +1 -0
- package/Rating.d.ts +16 -0
- package/Rating.js +18 -0
- package/Rating.js.map +1 -0
- package/SearchBar.d.ts +26 -0
- package/SearchBar.js +49 -0
- package/SearchBar.js.map +1 -0
- package/SegmentedControl.d.ts +69 -0
- package/SegmentedControl.js +136 -0
- package/SegmentedControl.js.map +1 -0
- package/Skeleton.d.ts +28 -0
- package/Skeleton.js +57 -0
- package/Skeleton.js.map +1 -0
- package/SliderInput.d.ts +16 -0
- package/SliderInput.js +18 -0
- package/SliderInput.js.map +1 -0
- package/Snackbar.d.ts +16 -0
- package/Snackbar.js +18 -0
- package/Snackbar.js.map +1 -0
- package/StylesProviderAnywhere.d.ts +10 -0
- package/StylesProviderAnywhere.js +29 -0
- package/StylesProviderAnywhere.js.map +1 -0
- package/StylesProviderBetterHomesGardens.d.ts +10 -0
- package/StylesProviderBetterHomesGardens.js +29 -0
- package/StylesProviderBetterHomesGardens.js.map +1 -0
- package/StylesProviderCartus.d.ts +10 -0
- package/StylesProviderCartus.js +29 -0
- package/StylesProviderCartus.js.map +1 -0
- package/StylesProviderCentury21.d.ts +10 -0
- package/StylesProviderCentury21.js +29 -0
- package/StylesProviderCentury21.js.map +1 -0
- package/StylesProviderColdwellBanker.d.ts +10 -0
- package/StylesProviderColdwellBanker.js +29 -0
- package/StylesProviderColdwellBanker.js.map +1 -0
- package/StylesProviderCorcoran.d.ts +10 -0
- package/StylesProviderCorcoran.js +29 -0
- package/StylesProviderCorcoran.js.map +1 -0
- package/StylesProviderDenaliBoss.d.ts +10 -0
- package/StylesProviderDenaliBoss.js +29 -0
- package/StylesProviderDenaliBoss.js.map +1 -0
- package/StylesProviderEra.d.ts +10 -0
- package/StylesProviderEra.js +29 -0
- package/StylesProviderEra.js.map +1 -0
- package/StylesProviderSothebys.d.ts +10 -0
- package/StylesProviderSothebys.js +29 -0
- package/StylesProviderSothebys.js.map +1 -0
- package/Switch.d.ts +33 -0
- package/Switch.js +85 -0
- package/Switch.js.map +1 -0
- package/SwitchGroup.d.ts +35 -0
- package/SwitchGroup.js +18 -0
- package/SwitchGroup.js.map +1 -0
- package/SwitchOption.d.ts +14 -0
- package/SwitchOption.js +16 -0
- package/SwitchOption.js.map +1 -0
- package/TabGroup.d.ts +73 -0
- package/TabGroup.js +119 -0
- package/TabGroup.js.map +1 -0
- package/Table.d.ts +45 -0
- package/Table.js +66 -0
- package/Table.js.map +1 -0
- package/Tag.d.ts +56 -0
- package/Tag.js +77 -0
- package/Tag.js.map +1 -0
- package/TextField.d.ts +16 -0
- package/TextField.js +19 -0
- package/TextField.js.map +1 -0
- package/TextInput.d.ts +45 -0
- package/TextInput.js +172 -0
- package/TextInput.js.map +1 -0
- package/Textarea.d.ts +63 -0
- package/Textarea.js +113 -0
- package/Textarea.js.map +1 -0
- package/TextareaField.d.ts +16 -0
- package/TextareaField.js +26 -0
- package/TextareaField.js.map +1 -0
- package/TimePicker.d.ts +16 -0
- package/TimePicker.js +18 -0
- package/TimePicker.js.map +1 -0
- package/ToggleOption.d.ts +27 -0
- package/ToggleOption.js +91 -0
- package/ToggleOption.js.map +1 -0
- package/Tooltip.d.ts +39 -0
- package/Tooltip.js +104 -0
- package/Tooltip.js.map +1 -0
- package/TopNavigation.d.ts +16 -0
- package/TopNavigation.js +18 -0
- package/TopNavigation.js.map +1 -0
- package/Txt.d.ts +38 -0
- package/Txt.js +21 -0
- package/Txt.js.map +1 -0
- package/hooks/useCheckboxGroupState.d.ts +37 -0
- package/hooks/useCheckboxGroupState.js +61 -0
- package/hooks/useCheckboxGroupState.js.map +1 -0
- package/hooks/useCheckboxState.d.ts +23 -0
- package/hooks/useCheckboxState.js +40 -0
- package/hooks/useCheckboxState.js.map +1 -0
- package/hooks/useFloating.d.ts +38 -0
- package/hooks/useFloating.js +156 -0
- package/hooks/useFloating.js.map +1 -0
- package/hooks/useFloatingMenu.d.ts +35 -0
- package/hooks/useFloatingMenu.js +71 -0
- package/hooks/useFloatingMenu.js.map +1 -0
- package/hooks/useId.d.ts +8 -0
- package/hooks/useId.js +16 -0
- package/hooks/useId.js.map +1 -0
- package/hooks/useKeyboardNavigation.d.ts +35 -0
- package/hooks/useKeyboardNavigation.js +79 -0
- package/hooks/useKeyboardNavigation.js.map +1 -0
- package/hooks/useLongPress.d.ts +11 -0
- package/hooks/useLongPress.js +49 -0
- package/hooks/useLongPress.js.map +1 -0
- package/hooks/useModalState.d.ts +22 -0
- package/hooks/useModalState.js +37 -0
- package/hooks/useModalState.js.map +1 -0
- package/hooks/useNavOptions.d.ts +28 -0
- package/hooks/useNavOptions.js +46 -0
- package/hooks/useNavOptions.js.map +1 -0
- package/hooks/useOutsideClick.d.ts +31 -0
- package/hooks/useOutsideClick.js +50 -0
- package/hooks/useOutsideClick.js.map +1 -0
- package/hooks/useRadioState.d.ts +23 -0
- package/hooks/useRadioState.js +38 -0
- package/hooks/useRadioState.js.map +1 -0
- package/hooks/useSwitchGroupState.d.ts +37 -0
- package/hooks/useSwitchGroupState.js +60 -0
- package/hooks/useSwitchGroupState.js.map +1 -0
- package/hooks/useTimeout.d.ts +26 -0
- package/hooks/useTimeout.js +45 -0
- package/hooks/useTimeout.js.map +1 -0
- package/hooks/useValidChildren.d.ts +6 -0
- package/hooks/useValidChildren.js +33 -0
- package/hooks/useValidChildren.js.map +1 -0
- package/index.d.ts +125 -0
- package/index.js +20 -0
- package/index.js.map +1 -0
- package/meta.d.ts +44 -0
- package/meta.js +5789 -0
- package/meta.js.map +1 -0
- package/package.json +73 -0
- package/src/Accordion.tsx +33 -0
- package/src/Badge.tsx +75 -0
- package/src/BannerAlert.tsx +211 -0
- package/src/BottomNavigation.tsx +33 -0
- package/src/BottomSheet.tsx +33 -0
- package/src/Breadcrumb.tsx +33 -0
- package/src/Button.tsx +358 -0
- package/src/ButtonDock.tsx +33 -0
- package/src/Card.tsx +66 -0
- package/src/Chart.tsx +33 -0
- package/src/Checkbox.tsx +174 -0
- package/src/CheckboxGroup.tsx +95 -0
- package/src/CheckboxOption.tsx +27 -0
- package/src/Chip.tsx +155 -0
- package/src/DatePicker.tsx +33 -0
- package/src/Dialog.tsx +304 -0
- package/src/Divider.tsx +129 -0
- package/src/Drawer.tsx +33 -0
- package/src/Dropdown.tsx +251 -0
- package/src/DropdownField.tsx +57 -0
- package/src/EmptyState.tsx +73 -0
- package/src/Fab.tsx +222 -0
- package/src/FileUpload.tsx +33 -0
- package/src/FormField.tsx +107 -0
- package/src/Image.tsx +33 -0
- package/src/Img.tsx +39 -0
- package/src/InlineAlert.tsx +119 -0
- package/src/Layout.tsx +82 -0
- package/src/Link.tsx +82 -0
- package/src/ListItem.tsx +316 -0
- package/src/Menu.tsx +263 -0
- package/src/MenuButton.tsx +45 -0
- package/src/Modal.tsx +104 -0
- package/src/MultiSelection.tsx +33 -0
- package/src/NavigationRail.tsx +33 -0
- package/src/NumberField.tsx +47 -0
- package/src/NumberInput.tsx +282 -0
- package/src/OTPInput.tsx +33 -0
- package/src/PageControl.tsx +33 -0
- package/src/PasswordInput.tsx +33 -0
- package/src/PhoneNumberInput.tsx +33 -0
- package/src/Popover.tsx +237 -0
- package/src/Portal.tsx +36 -0
- package/src/Profile.tsx +140 -0
- package/src/ProgressBar.tsx +110 -0
- package/src/ProgressCircle.tsx +153 -0
- package/src/ProgressionStepper.tsx +294 -0
- package/src/ProgressionStepperBar.tsx +95 -0
- package/src/Radio.tsx +119 -0
- package/src/RadioGroup.tsx +62 -0
- package/src/RadioOption.tsx +24 -0
- package/src/Rating.tsx +29 -0
- package/src/SearchBar.tsx +121 -0
- package/src/SegmentedControl.tsx +233 -0
- package/src/Skeleton.tsx +90 -0
- package/src/SliderInput.tsx +29 -0
- package/src/Snackbar.tsx +29 -0
- package/src/StylesProviderAnywhere.tsx +31 -0
- package/src/StylesProviderBetterHomesGardens.tsx +31 -0
- package/src/StylesProviderCartus.tsx +31 -0
- package/src/StylesProviderCentury21.tsx +31 -0
- package/src/StylesProviderColdwellBanker.tsx +31 -0
- package/src/StylesProviderCorcoran.tsx +31 -0
- package/src/StylesProviderDenaliBoss.tsx +31 -0
- package/src/StylesProviderEra.tsx +31 -0
- package/src/StylesProviderSothebys.tsx +31 -0
- package/src/Switch.tsx +122 -0
- package/src/SwitchGroup.tsx +60 -0
- package/src/SwitchOption.tsx +24 -0
- package/src/TabGroup.tsx +219 -0
- package/src/Table.tsx +126 -0
- package/src/Tag.tsx +149 -0
- package/src/TextField.tsx +61 -0
- package/src/TextInput.tsx +265 -0
- package/src/Textarea.tsx +205 -0
- package/src/TextareaField.tsx +67 -0
- package/src/TimePicker.tsx +29 -0
- package/src/ToggleOption.tsx +117 -0
- package/src/Tooltip.tsx +170 -0
- package/src/TopNavigation.tsx +29 -0
- package/src/Txt.tsx +69 -0
- package/src/hooks/useCheckboxGroupState.ts +79 -0
- package/src/hooks/useCheckboxState.ts +48 -0
- package/src/hooks/useFloating.ts +202 -0
- package/src/hooks/useFloatingMenu.ts +110 -0
- package/src/hooks/useId.ts +14 -0
- package/src/hooks/useKeyboardNavigation.ts +98 -0
- package/src/hooks/useLongPress.ts +53 -0
- package/src/hooks/useModalState.ts +37 -0
- package/src/hooks/useNavOptions.ts +76 -0
- package/src/hooks/useOutsideClick.ts +51 -0
- package/src/hooks/useRadioState.ts +42 -0
- package/src/hooks/useSwitchGroupState.ts +75 -0
- package/src/hooks/useTimeout.ts +45 -0
- package/src/hooks/useValidChildren.ts +54 -0
- package/src/index.ts +160 -0
- package/src/meta.ts +6238 -0
- package/src/package.json +3 -0
- package/src/styles/anywhere.css +1693 -0
- package/src/styles/anywhere.ts +1694 -0
- package/src/styles/base.css +160 -0
- package/src/styles/base.ts +161 -0
- package/src/styles/better-homes-gardens.css +1693 -0
- package/src/styles/better-homes-gardens.ts +1694 -0
- package/src/styles/cartus.css +1691 -0
- package/src/styles/cartus.ts +1692 -0
- package/src/styles/century-21.css +1689 -0
- package/src/styles/century-21.ts +1690 -0
- package/src/styles/coldwell-banker.css +1691 -0
- package/src/styles/coldwell-banker.ts +1692 -0
- package/src/styles/corcoran.css +1685 -0
- package/src/styles/corcoran.ts +1686 -0
- package/src/styles/denali-boss.css +1681 -0
- package/src/styles/denali-boss.ts +1682 -0
- package/src/styles/era.css +1685 -0
- package/src/styles/era.ts +1686 -0
- package/src/styles/sothebys.css +1677 -0
- package/src/styles/sothebys.ts +1678 -0
- package/src/utils/children.ts +80 -0
- package/src/utils/colorVariants.ts +74 -0
- package/src/utils/errors.tsx +104 -0
- package/src/utils/getValidNode.ts +7 -0
- package/src/utils/keyboard.ts +382 -0
- package/src/utils/placeholder.test.ts +7 -0
- package/src/utils/ref.ts +11 -0
- package/src/utils/scrollElementIntoView.ts +29 -0
- package/src/utils/srOnly.ts +14 -0
- package/src/utils/tryIntPsrse.ts +7 -0
- package/src/utils/txtVariants.ts +53 -0
- package/styles/anywhere.css +1693 -0
- package/styles/anywhere.d.ts +2 -0
- package/styles/anywhere.js +1697 -0
- package/styles/anywhere.js.map +1 -0
- package/styles/anywhere.ts +1694 -0
- package/styles/base.css +160 -0
- package/styles/base.d.ts +2 -0
- package/styles/base.js +164 -0
- package/styles/base.js.map +1 -0
- package/styles/base.ts +161 -0
- package/styles/better-homes-gardens.css +1693 -0
- package/styles/better-homes-gardens.d.ts +2 -0
- package/styles/better-homes-gardens.js +1697 -0
- package/styles/better-homes-gardens.js.map +1 -0
- package/styles/better-homes-gardens.ts +1694 -0
- package/styles/cartus.css +1691 -0
- package/styles/cartus.d.ts +2 -0
- package/styles/cartus.js +1695 -0
- package/styles/cartus.js.map +1 -0
- package/styles/cartus.ts +1692 -0
- package/styles/century-21.css +1689 -0
- package/styles/century-21.d.ts +2 -0
- package/styles/century-21.js +1693 -0
- package/styles/century-21.js.map +1 -0
- package/styles/century-21.ts +1690 -0
- package/styles/coldwell-banker.css +1691 -0
- package/styles/coldwell-banker.d.ts +2 -0
- package/styles/coldwell-banker.js +1695 -0
- package/styles/coldwell-banker.js.map +1 -0
- package/styles/coldwell-banker.ts +1692 -0
- package/styles/corcoran.css +1685 -0
- package/styles/corcoran.d.ts +2 -0
- package/styles/corcoran.js +1689 -0
- package/styles/corcoran.js.map +1 -0
- package/styles/corcoran.ts +1686 -0
- package/styles/denali-boss.css +1681 -0
- package/styles/denali-boss.d.ts +2 -0
- package/styles/denali-boss.js +1685 -0
- package/styles/denali-boss.js.map +1 -0
- package/styles/denali-boss.ts +1682 -0
- package/styles/era.css +1685 -0
- package/styles/era.d.ts +2 -0
- package/styles/era.js +1689 -0
- package/styles/era.js.map +1 -0
- package/styles/era.ts +1686 -0
- package/styles/sothebys.css +1677 -0
- package/styles/sothebys.d.ts +2 -0
- package/styles/sothebys.js +1681 -0
- package/styles/sothebys.js.map +1 -0
- package/styles/sothebys.ts +1678 -0
- package/utils/children.d.ts +29 -0
- package/utils/children.js +70 -0
- package/utils/children.js.map +1 -0
- package/utils/colorVariants.d.ts +5 -0
- package/utils/colorVariants.js +61 -0
- package/utils/colorVariants.js.map +1 -0
- package/utils/errors.d.ts +36 -0
- package/utils/errors.js +65 -0
- package/utils/errors.js.map +1 -0
- package/utils/getValidNode.d.ts +2 -0
- package/utils/getValidNode.js +9 -0
- package/utils/getValidNode.js.map +1 -0
- package/utils/keyboard.d.ts +4 -0
- package/utils/keyboard.js +140 -0
- package/utils/keyboard.js.map +1 -0
- package/utils/ref.d.ts +5 -0
- package/utils/ref.js +10 -0
- package/utils/ref.js.map +1 -0
- package/utils/scrollElementIntoView.d.ts +8 -0
- package/utils/scrollElementIntoView.js +30 -0
- package/utils/scrollElementIntoView.js.map +1 -0
- package/utils/srOnly.d.ts +14 -0
- package/utils/srOnly.js +15 -0
- package/utils/srOnly.js.map +1 -0
- package/utils/tryIntPsrse.d.ts +2 -0
- package/utils/tryIntPsrse.js +10 -0
- package/utils/tryIntPsrse.js.map +1 -0
- package/utils/txtVariants.d.ts +2 -0
- package/utils/txtVariants.js +30 -0
- package/utils/txtVariants.js.map +1 -0
package/src/Profile.tsx
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { ReactNode, useMemo } from 'react';
|
|
3
|
+
|
|
4
|
+
import { COLOR_VARIABLES, ColorVariant } from './utils/colorVariants';
|
|
5
|
+
|
|
6
|
+
import { CommonProps } from '.';
|
|
7
|
+
|
|
8
|
+
export type SizeVariant =
|
|
9
|
+
| 'large'
|
|
10
|
+
| 'medium'
|
|
11
|
+
| 'small'
|
|
12
|
+
| 'x-large'
|
|
13
|
+
| 'x-small'
|
|
14
|
+
| 'xx-large'
|
|
15
|
+
| 'xxx-large'
|
|
16
|
+
| 'xxxx-large'
|
|
17
|
+
| 'xxxxx-large';
|
|
18
|
+
|
|
19
|
+
const SIZE_VARIANTS: Record<SizeVariant, { height: string; font: string }> = {
|
|
20
|
+
'x-small': { font: '--labels-x-small', height: '--spacing-sizing-06' }, // 24
|
|
21
|
+
small: { font: '--labels-small', height: '--spacing-sizing-08' }, // 32,
|
|
22
|
+
medium: { font: '--labels-base', height: '--spacing-sizing-10' }, // 40
|
|
23
|
+
large: { font: '--labels-large', height: '--spacing-sizing-12' }, //48,
|
|
24
|
+
'x-large': { font: '--desktop-subheader-x-large', height: '--spacing-sizing-14' }, // 56,
|
|
25
|
+
'xx-large': { font: '--desktop-subheader-xx-large', height: '--spacing-sizing-17' }, // 72,
|
|
26
|
+
'xxx-large': { font: '--desktop-display-regular-small', height: '--spacing-sizing-19' }, //96,
|
|
27
|
+
'xxxx-large': { font: '--desktop-display-regular-medium', height: '--spacing-sizing-21' }, // 120,
|
|
28
|
+
'xxxxx-large': { font: '--desktop-display-regular-large', height: '--spacing-sizing-23' }, //144,
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type ProfileProps = CommonProps<'aria-label'> & {
|
|
32
|
+
/**
|
|
33
|
+
* The size of the profile.
|
|
34
|
+
*
|
|
35
|
+
* @default small
|
|
36
|
+
*/
|
|
37
|
+
size?: SizeVariant;
|
|
38
|
+
/**
|
|
39
|
+
* The color of the profile.
|
|
40
|
+
*
|
|
41
|
+
* @default grey
|
|
42
|
+
*/
|
|
43
|
+
color?: ColorVariant;
|
|
44
|
+
/** The initials to display in the profile limited to 2 characters. */
|
|
45
|
+
initials?: string;
|
|
46
|
+
/** The icon to display in the profile. */
|
|
47
|
+
icon?: ReactNode;
|
|
48
|
+
/** The url to the image to display in the profile. */
|
|
49
|
+
image?: string;
|
|
50
|
+
/** The number of notifications not displayed in a list. */
|
|
51
|
+
overflowCount?: number;
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* A profile component.
|
|
56
|
+
*
|
|
57
|
+
* A profile is a visual representation of a user or entity. It can be used to display an initials, icon, image, or an
|
|
58
|
+
* overflowCount.
|
|
59
|
+
*
|
|
60
|
+
* @name Profile
|
|
61
|
+
*/
|
|
62
|
+
function Profile({
|
|
63
|
+
initials,
|
|
64
|
+
color = 'grey',
|
|
65
|
+
size = 'small',
|
|
66
|
+
icon,
|
|
67
|
+
image,
|
|
68
|
+
'aria-label': ariaLabel,
|
|
69
|
+
overflowCount,
|
|
70
|
+
}: ProfileProps) {
|
|
71
|
+
const children = useMemo(() => {
|
|
72
|
+
if (initials) return <span data-initials>{initials}</span>;
|
|
73
|
+
if (icon) return <span data-icon>{icon}</span>;
|
|
74
|
+
if (image) return <img alt={ariaLabel} src={image} />;
|
|
75
|
+
if (overflowCount) return <span data-overflow-count>+{overflowCount}</span>;
|
|
76
|
+
return null;
|
|
77
|
+
}, [ariaLabel, icon, image, initials, overflowCount]);
|
|
78
|
+
|
|
79
|
+
return (
|
|
80
|
+
<>
|
|
81
|
+
{children && (
|
|
82
|
+
<div aria-label={ariaLabel} css={style} data-color={color} data-profile="" data-size={size}>
|
|
83
|
+
{children}
|
|
84
|
+
</div>
|
|
85
|
+
)}
|
|
86
|
+
</>
|
|
87
|
+
);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
Profile.bspkName = 'Profile';
|
|
91
|
+
|
|
92
|
+
export { Profile };
|
|
93
|
+
|
|
94
|
+
export const style = css`
|
|
95
|
+
--height: var(--spacing-sizing-10);
|
|
96
|
+
--font: var(--labels-base);
|
|
97
|
+
--foreground: var(--foreground-neutral-on-surface);
|
|
98
|
+
--background: var(--surface-neutral-t3-low);
|
|
99
|
+
|
|
100
|
+
display: flex;
|
|
101
|
+
flex-direction: column;
|
|
102
|
+
justify-content: center;
|
|
103
|
+
align-items: center;
|
|
104
|
+
padding: 0;
|
|
105
|
+
height: var(--height);
|
|
106
|
+
width: var(--height);
|
|
107
|
+
aspect-ratio: 1 / 1;
|
|
108
|
+
border-radius: 999px;
|
|
109
|
+
background-color: var(--background);
|
|
110
|
+
color: var(--foreground);
|
|
111
|
+
font: var(--font);
|
|
112
|
+
|
|
113
|
+
&:has(img) {
|
|
114
|
+
overflow: hidden;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
img {
|
|
118
|
+
max-width: 100%;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
${Object.entries(SIZE_VARIANTS).map(
|
|
122
|
+
([variant, { height, font }]) => css`
|
|
123
|
+
&[data-size='${variant}'] {
|
|
124
|
+
--height: var(${height});
|
|
125
|
+
--font: var(${font});
|
|
126
|
+
}
|
|
127
|
+
`,
|
|
128
|
+
)}
|
|
129
|
+
|
|
130
|
+
${Object.entries(COLOR_VARIABLES).map(
|
|
131
|
+
([variant, { foreground, surface }]) => css`
|
|
132
|
+
&[data-color='${variant}'] {
|
|
133
|
+
--foreground: var(${foreground});
|
|
134
|
+
--background: var(${surface});
|
|
135
|
+
}
|
|
136
|
+
`,
|
|
137
|
+
)};
|
|
138
|
+
`;
|
|
139
|
+
|
|
140
|
+
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { css } from '@emotion/react';
|
|
2
|
+
import { CSSProperties, useId } from 'react';
|
|
3
|
+
|
|
4
|
+
export type ProgressBarProps = {
|
|
5
|
+
/**
|
|
6
|
+
* The size of the progressbar.
|
|
7
|
+
*
|
|
8
|
+
* @default large
|
|
9
|
+
*/
|
|
10
|
+
size?: 'large' | 'small';
|
|
11
|
+
/**
|
|
12
|
+
* The current progress of the progressbar.
|
|
13
|
+
*
|
|
14
|
+
* @default 0
|
|
15
|
+
* @minimum 0
|
|
16
|
+
* @maximum 100
|
|
17
|
+
* @required
|
|
18
|
+
*/
|
|
19
|
+
completion: number;
|
|
20
|
+
/**
|
|
21
|
+
* The label alignment of the progressbar.
|
|
22
|
+
*
|
|
23
|
+
* @default center
|
|
24
|
+
*/
|
|
25
|
+
align?: 'center' | 'left';
|
|
26
|
+
/** The label of the progressbar. */
|
|
27
|
+
label: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* A progress bar is a horizontal visual indicator that let’s the user know the progression of a task or operation
|
|
32
|
+
* occurring in the background.
|
|
33
|
+
*
|
|
34
|
+
* @name ProgressBar
|
|
35
|
+
*/
|
|
36
|
+
function ProgressBar({ size = 'large', completion = 0, align = 'center', label }: ProgressBarProps) {
|
|
37
|
+
const id = useId();
|
|
38
|
+
|
|
39
|
+
return (
|
|
40
|
+
<div css={style} data-align={align} data-progress-bar data-size={size}>
|
|
41
|
+
<progress
|
|
42
|
+
aria-busy={completion < 100}
|
|
43
|
+
aria-label="A bounded progress bar from 0 to 100"
|
|
44
|
+
aria-valuemax={100}
|
|
45
|
+
aria-valuemin={0}
|
|
46
|
+
aria-valuenow={completion}
|
|
47
|
+
id={id}
|
|
48
|
+
max="100"
|
|
49
|
+
value={completion}
|
|
50
|
+
>
|
|
51
|
+
{completion}%
|
|
52
|
+
</progress>
|
|
53
|
+
<div aria-hidden data-bar style={{ '--width': `${completion}%` } as CSSProperties} />
|
|
54
|
+
<label htmlFor={id}>{label}</label>
|
|
55
|
+
</div>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
ProgressBar.bspkName = 'ProgressBar';
|
|
60
|
+
|
|
61
|
+
export { ProgressBar };
|
|
62
|
+
|
|
63
|
+
export const style = css`
|
|
64
|
+
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
66
|
+
width: 100%;
|
|
67
|
+
gap: var(--spacing-sizing-01);
|
|
68
|
+
|
|
69
|
+
progress {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
position: absolute;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
[data-bar] {
|
|
75
|
+
width: 100%;
|
|
76
|
+
height: var(--spacing-sizing-02);
|
|
77
|
+
background-color: var(--surface-neutral-t3-low);
|
|
78
|
+
border-radius: var(--radius-small);
|
|
79
|
+
|
|
80
|
+
&::after {
|
|
81
|
+
content: '';
|
|
82
|
+
display: block;
|
|
83
|
+
height: 100%;
|
|
84
|
+
background-color: var(--foreground-brand-primary);
|
|
85
|
+
border-radius: var(--radius-small);
|
|
86
|
+
width: var(--width);
|
|
87
|
+
transition: width 0.3s;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
&[data-size='small'] {
|
|
92
|
+
max-width: 248px;
|
|
93
|
+
|
|
94
|
+
[data-bar] {
|
|
95
|
+
height: var(--spacing-sizing-01);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
label {
|
|
100
|
+
font-size: var(--labels-small);
|
|
101
|
+
width: 100%;
|
|
102
|
+
text-align: center;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
&[data-align='left'] label {
|
|
106
|
+
text-align: left;
|
|
107
|
+
}
|
|
108
|
+
`;
|
|
109
|
+
|
|
110
|
+
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
/* eslint-disable react/no-multi-comp */
|
|
2
|
+
|
|
3
|
+
import { css } from '@emotion/react';
|
|
4
|
+
import { useId } from 'react';
|
|
5
|
+
|
|
6
|
+
import { Txt } from './Txt';
|
|
7
|
+
import { TxtVariant } from './utils/txtVariants';
|
|
8
|
+
|
|
9
|
+
const ANIMATION_SPEED = 1.5;
|
|
10
|
+
|
|
11
|
+
export type ProgressCircleProps = {
|
|
12
|
+
/** The label of the progress circle. */
|
|
13
|
+
label: string;
|
|
14
|
+
/**
|
|
15
|
+
* The size of the label and progress circle.
|
|
16
|
+
*
|
|
17
|
+
* @default medium
|
|
18
|
+
*/
|
|
19
|
+
size?: 'large' | 'medium' | 'small';
|
|
20
|
+
/**
|
|
21
|
+
* The position of the label in relation to the progress circle.
|
|
22
|
+
*
|
|
23
|
+
* @default bottom
|
|
24
|
+
*/
|
|
25
|
+
labelPosition?: 'bottom' | 'left' | 'right' | 'top';
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Rotating circle or pill that indicates the status or state of completion for a process that’s part of a user flow.
|
|
30
|
+
*
|
|
31
|
+
* @name ProgressCircle
|
|
32
|
+
*/
|
|
33
|
+
function ProgressCircle({ label, labelPosition, size = 'medium' }: ProgressCircleProps) {
|
|
34
|
+
let variant: TxtVariant = 'labels-base';
|
|
35
|
+
|
|
36
|
+
if (size === 'small') variant = 'labels-small';
|
|
37
|
+
else if (size === 'large') variant = 'labels-large';
|
|
38
|
+
|
|
39
|
+
const labelId = useId();
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<div
|
|
43
|
+
aria-labelledby={labelId}
|
|
44
|
+
css={style}
|
|
45
|
+
data-label-position={labelPosition}
|
|
46
|
+
data-progress-circle
|
|
47
|
+
data-size={size}
|
|
48
|
+
role="progressbar"
|
|
49
|
+
>
|
|
50
|
+
<ProgressCircle.SVG />
|
|
51
|
+
<Txt id={labelId} variant={variant}>
|
|
52
|
+
{label || 'Loading ...'}
|
|
53
|
+
</Txt>
|
|
54
|
+
</div>
|
|
55
|
+
);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
ProgressCircle.bspkName = 'ProgressCircle';
|
|
59
|
+
|
|
60
|
+
export { ProgressCircle };
|
|
61
|
+
|
|
62
|
+
export const style = css`
|
|
63
|
+
display: flex;
|
|
64
|
+
flex-direction: column;
|
|
65
|
+
gap: var(--spacing-sizing-02);
|
|
66
|
+
align-items: center;
|
|
67
|
+
justify-content: center;
|
|
68
|
+
|
|
69
|
+
&[data-label-position='top'] {
|
|
70
|
+
flex-direction: column-reverse;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
&[data-label-position='left'] {
|
|
74
|
+
flex-direction: row-reverse;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&[data-label-position='right'] {
|
|
78
|
+
flex-direction: row;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
svg {
|
|
82
|
+
color: var(--foreground-brand-secondary);
|
|
83
|
+
animation: spin ${ANIMATION_SPEED}s linear infinite;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
@keyframes spin {
|
|
87
|
+
100% {
|
|
88
|
+
transform: rotate(360deg);
|
|
89
|
+
}
|
|
90
|
+
0% {
|
|
91
|
+
transform: rotate(0deg);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
&[data-size='small'] {
|
|
96
|
+
svg {
|
|
97
|
+
width: 32px;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-size='medium'] {
|
|
102
|
+
svg {
|
|
103
|
+
width: 40px;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&[data-size='large'] {
|
|
108
|
+
svg {
|
|
109
|
+
width: 48px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
`;
|
|
113
|
+
|
|
114
|
+
const ProgressCircleSVG = (props: { strokeWidth?: number }) => {
|
|
115
|
+
const strokeWidth = props.strokeWidth || 10;
|
|
116
|
+
const width = 100;
|
|
117
|
+
const id = useId();
|
|
118
|
+
|
|
119
|
+
return (
|
|
120
|
+
<svg {...props} data-animated fill="none" viewBox={`0 0 ${width * 2} ${width * 2}`}>
|
|
121
|
+
<defs>
|
|
122
|
+
<linearGradient id={`${id}spinner-secondHalf`}>
|
|
123
|
+
<stop offset="50%" stopColor="currentColor" stopOpacity={0} />
|
|
124
|
+
<stop offset="100%" stopColor="currentColor" stopOpacity="0.375" />
|
|
125
|
+
</linearGradient>
|
|
126
|
+
<linearGradient id={`${id}spinner-firstHalf`}>
|
|
127
|
+
<stop offset="0%" stopColor="currentColor" stopOpacity={1} />
|
|
128
|
+
<stop offset="100%" stopColor="currentColor" stopOpacity="0.375" />
|
|
129
|
+
</linearGradient>
|
|
130
|
+
</defs>
|
|
131
|
+
<g strokeWidth={strokeWidth * 2}>
|
|
132
|
+
<path
|
|
133
|
+
d={`M ${strokeWidth} ${width} A ${width - strokeWidth} ${width - strokeWidth} 0 0 1 ${width + (width - strokeWidth)} ${width}`}
|
|
134
|
+
stroke={`url(#${id}spinner-secondHalf)`}
|
|
135
|
+
/>
|
|
136
|
+
<path
|
|
137
|
+
d={`M ${width + (width - strokeWidth)} ${width} A ${width - strokeWidth} ${width - strokeWidth} 0 0 1 ${strokeWidth} ${width}`}
|
|
138
|
+
stroke={`url(#${id}spinner-firstHalf)`}
|
|
139
|
+
/>
|
|
140
|
+
{/* 1deg extra path to have the round end cap */}
|
|
141
|
+
<path
|
|
142
|
+
d={`M ${strokeWidth} ${width} A ${width - strokeWidth} ${width - strokeWidth} 0 0 1 ${strokeWidth} ${width - 2}`}
|
|
143
|
+
stroke="currentColor"
|
|
144
|
+
strokeLinecap="round"
|
|
145
|
+
/>
|
|
146
|
+
</g>
|
|
147
|
+
</svg>
|
|
148
|
+
);
|
|
149
|
+
};
|
|
150
|
+
|
|
151
|
+
ProgressCircle.SVG = ProgressCircleSVG;
|
|
152
|
+
|
|
153
|
+
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|
|
@@ -0,0 +1,294 @@
|
|
|
1
|
+
import { SvgCheck } from '@bspk/icons/Check';
|
|
2
|
+
import { css } from '@emotion/react';
|
|
3
|
+
|
|
4
|
+
import { ElementProps } from '.';
|
|
5
|
+
|
|
6
|
+
/** A progress stepper item is a single step in the progress bar. */
|
|
7
|
+
export type ProgressionStepperItem = {
|
|
8
|
+
/**
|
|
9
|
+
* The name of the step.
|
|
10
|
+
*
|
|
11
|
+
* @type string
|
|
12
|
+
* @required
|
|
13
|
+
*/
|
|
14
|
+
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* The subtext of the step.
|
|
17
|
+
*
|
|
18
|
+
* @type multiline
|
|
19
|
+
*/
|
|
20
|
+
subtext?: string;
|
|
21
|
+
/**
|
|
22
|
+
* The link to navigate to when the step is clicked.
|
|
23
|
+
*
|
|
24
|
+
* @type {label: string; onClick: () => void}
|
|
25
|
+
*/
|
|
26
|
+
touchLink?: { label: string; onClick: () => void };
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
export type ProgressionStepperProps = {
|
|
30
|
+
/**
|
|
31
|
+
* The steps to display in the progress bar.
|
|
32
|
+
*
|
|
33
|
+
* @type ProgressionStepperItem[]
|
|
34
|
+
* @required
|
|
35
|
+
*/
|
|
36
|
+
steps: ProgressionStepperItem[];
|
|
37
|
+
/**
|
|
38
|
+
* The current step in the progress bar.
|
|
39
|
+
*
|
|
40
|
+
* If the current step is greater than the number of steps, all steps with be completed.
|
|
41
|
+
*
|
|
42
|
+
* If the current step is less than 1, all steps will be incomplete.
|
|
43
|
+
*
|
|
44
|
+
* @default 0
|
|
45
|
+
* @minimum 0
|
|
46
|
+
*/
|
|
47
|
+
currentStep?: number;
|
|
48
|
+
/**
|
|
49
|
+
* The variant of the progress bar. Can be either horizontal, vertical, or widget.
|
|
50
|
+
*
|
|
51
|
+
* When on small width screens, the default will automatically switch to widget.
|
|
52
|
+
*
|
|
53
|
+
* @default horizontal
|
|
54
|
+
*/
|
|
55
|
+
variant?: 'horizontal' | 'vertical' | 'widget';
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* A progress stepper is a horizontal visual indicator that let’s the user know the progression of the current process.
|
|
60
|
+
*
|
|
61
|
+
* @name ProgressionStepper
|
|
62
|
+
*/
|
|
63
|
+
function ProgressionStepper({
|
|
64
|
+
steps = [],
|
|
65
|
+
currentStep: currentStepProp = 0,
|
|
66
|
+
variant = 'horizontal',
|
|
67
|
+
...containerProps
|
|
68
|
+
}: ElementProps<ProgressionStepperProps, 'div'>) {
|
|
69
|
+
const currentStep = Math.max(0, Math.min(currentStepProp, steps.length + 1));
|
|
70
|
+
return (
|
|
71
|
+
<div {...containerProps} css={style} data-progress-stepper="" data-variant={variant}>
|
|
72
|
+
{variant === 'widget' && (
|
|
73
|
+
<label>
|
|
74
|
+
<span data-title>{steps[Math.max(0, Math.min(currentStep - 1, steps.length - 1))].name}</span>
|
|
75
|
+
<span data-subtitle>
|
|
76
|
+
{currentStep >= steps.length ? (
|
|
77
|
+
'Completed'
|
|
78
|
+
) : (
|
|
79
|
+
<>
|
|
80
|
+
Step {currentStep} of {steps.length}
|
|
81
|
+
</>
|
|
82
|
+
)}
|
|
83
|
+
</span>
|
|
84
|
+
</label>
|
|
85
|
+
)}
|
|
86
|
+
<ol>
|
|
87
|
+
{steps.flatMap(({ name, subtext }, index) => {
|
|
88
|
+
const stepNum = index + 1;
|
|
89
|
+
let status: 'complete' | 'current' | 'incomplete' = 'incomplete';
|
|
90
|
+
if (stepNum < currentStep) status = 'complete';
|
|
91
|
+
else if (stepNum === currentStep) status = 'current';
|
|
92
|
+
|
|
93
|
+
return (
|
|
94
|
+
<li data-status={status} data-step={stepNum} key={`step-${index}`}>
|
|
95
|
+
<span aria-hidden data-line-circle>
|
|
96
|
+
<span data-line="before" />
|
|
97
|
+
<span data-circle>
|
|
98
|
+
<span>{stepNum}</span>
|
|
99
|
+
{status === 'complete' && <SvgCheck />}
|
|
100
|
+
</span>
|
|
101
|
+
<span data-line="after" />
|
|
102
|
+
</span>
|
|
103
|
+
{variant !== 'widget' && (
|
|
104
|
+
<span data-content>
|
|
105
|
+
<span data-name>{name}</span>
|
|
106
|
+
{subtext && <span data-subtext>{subtext}</span>}
|
|
107
|
+
</span>
|
|
108
|
+
)}
|
|
109
|
+
</li>
|
|
110
|
+
);
|
|
111
|
+
})}
|
|
112
|
+
</ol>
|
|
113
|
+
</div>
|
|
114
|
+
);
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
ProgressionStepper.bspkName = 'ProgressionStepper';
|
|
118
|
+
|
|
119
|
+
export { ProgressionStepper };
|
|
120
|
+
|
|
121
|
+
export const style = css`
|
|
122
|
+
width: 100%;
|
|
123
|
+
--circle-width: var(--spacing-sizing-09);
|
|
124
|
+
|
|
125
|
+
--active-background-color: var(--surface-brand-primary);
|
|
126
|
+
--active-foreground-color: var(--foreground-brand-on-primary);
|
|
127
|
+
--inactive-background-color: var(--surface-neutral-t3-low);
|
|
128
|
+
--inactive-foreground-color: var(--foreground-neutral-on-surface);
|
|
129
|
+
|
|
130
|
+
ol {
|
|
131
|
+
display: flex;
|
|
132
|
+
width: 100%;
|
|
133
|
+
margin: 0;
|
|
134
|
+
padding: 0;
|
|
135
|
+
|
|
136
|
+
li {
|
|
137
|
+
display: flex;
|
|
138
|
+
flex-direction: column;
|
|
139
|
+
list-style: none;
|
|
140
|
+
margin: 0;
|
|
141
|
+
padding: 0;
|
|
142
|
+
gap: var(--spacing-sizing-02);
|
|
143
|
+
[data-line-circle] {
|
|
144
|
+
display: flex;
|
|
145
|
+
justify-content: center;
|
|
146
|
+
align-items: center;
|
|
147
|
+
flex-direction: row;
|
|
148
|
+
|
|
149
|
+
[data-line] {
|
|
150
|
+
background-color: var(--inactive-background-color);
|
|
151
|
+
height: 2px;
|
|
152
|
+
flex-grow: 1;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
[data-circle] {
|
|
156
|
+
display: flex;
|
|
157
|
+
justify-content: center;
|
|
158
|
+
align-items: center;
|
|
159
|
+
width: var(--circle-width);
|
|
160
|
+
height: var(--circle-width);
|
|
161
|
+
border-radius: 50%;
|
|
162
|
+
background-color: none;
|
|
163
|
+
border: 2px solid var(--inactive-background-color);
|
|
164
|
+
font: var(--labels-large);
|
|
165
|
+
|
|
166
|
+
svg {
|
|
167
|
+
display: none;
|
|
168
|
+
width: var(--spacing-sizing-06);
|
|
169
|
+
height: var(--spacing-sizing-06);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
[data-content] {
|
|
175
|
+
display: flex;
|
|
176
|
+
padding: 0 var(--spacing-sizing-10);
|
|
177
|
+
font: var(--body-small);
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
&:first-of-type {
|
|
181
|
+
[data-line='before'] {
|
|
182
|
+
visibility: hidden;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
&:last-of-type {
|
|
187
|
+
[data-line='after'] {
|
|
188
|
+
visibility: hidden;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
&[data-status='complete'] {
|
|
193
|
+
[data-line] {
|
|
194
|
+
background-color: var(--active-background-color);
|
|
195
|
+
}
|
|
196
|
+
[data-circle] {
|
|
197
|
+
background-color: var(--active-background-color);
|
|
198
|
+
border: 1px solid var(--active-background-color);
|
|
199
|
+
color: var(--active-foreground-color);
|
|
200
|
+
|
|
201
|
+
span {
|
|
202
|
+
display: none;
|
|
203
|
+
}
|
|
204
|
+
svg {
|
|
205
|
+
display: block;
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&[data-status='current'] {
|
|
211
|
+
[data-line='before'] {
|
|
212
|
+
background-color: var(--active-background-color);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
[data-circle] {
|
|
216
|
+
border-color: var(--active-background-color);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
&[data-variant='vertical'] {
|
|
223
|
+
ol {
|
|
224
|
+
flex-direction: column;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
li {
|
|
228
|
+
flex-direction: row;
|
|
229
|
+
|
|
230
|
+
[data-line-circle] {
|
|
231
|
+
flex-direction: column;
|
|
232
|
+
width: var(--circle-width);
|
|
233
|
+
|
|
234
|
+
[data-line] {
|
|
235
|
+
width: 2px;
|
|
236
|
+
height: auto;
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
[data-content] {
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
padding: var(--spacing-sizing-10) 0;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
&[data-variant='widget'] {
|
|
247
|
+
--circle-width: var(--spacing-sizing-05);
|
|
248
|
+
|
|
249
|
+
label {
|
|
250
|
+
display: flex;
|
|
251
|
+
flex-direction: column;
|
|
252
|
+
gap: var(--spacing-sizing-02);
|
|
253
|
+
margin-bottom: var(--spacing-sizing-03);
|
|
254
|
+
font: var(--body-small);
|
|
255
|
+
|
|
256
|
+
[data-title] {
|
|
257
|
+
font: var(--labels-base);
|
|
258
|
+
color: var(--foreground-neutral-on-surface);
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
[data-subtitle] {
|
|
262
|
+
font: var(--body-x-small);
|
|
263
|
+
color: var(--foreground-neutral-on-surface-variant-02);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
ol {
|
|
268
|
+
align-items: center;
|
|
269
|
+
min-height: var(--spacing-sizing-09);
|
|
270
|
+
|
|
271
|
+
li {
|
|
272
|
+
[data-line-circle] {
|
|
273
|
+
[data-line] {
|
|
274
|
+
width: 10px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
&[data-status='current'] {
|
|
279
|
+
--circle-width: var(--spacing-sizing-09);
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
&[data-status='incomplete'] {
|
|
283
|
+
[data-circle] {
|
|
284
|
+
span {
|
|
285
|
+
display: none;
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
`;
|
|
293
|
+
|
|
294
|
+
/** Copyright 2025 Anywhere Real Estate - CC BY 4.0 */
|