periplo-ui 4.23.3 → 4.25.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/dist/base.css +254 -0
- package/dist/components/data-display/Avatar/Avatar.js +8 -9
- package/dist/components/data-display/Avatar/Avatar.js.map +1 -1
- package/dist/components/data-display/Avatar/index.js +1 -2
- package/dist/components/data-display/Badge/Badge.d.ts +1 -1
- package/dist/components/data-display/Badge/Badge.js +10 -11
- package/dist/components/data-display/Badge/Badge.js.map +1 -1
- package/dist/components/data-display/Badge/index.js +1 -2
- package/dist/components/data-display/Carousel/Carousel.js +3 -4
- package/dist/components/data-display/Carousel/Carousel.js.map +1 -1
- package/dist/components/data-display/Carousel/index.js +1 -2
- package/dist/components/data-display/Chip/Chip.d.ts +1 -1
- package/dist/components/data-display/Chip/Chip.js +29 -33
- package/dist/components/data-display/Chip/Chip.js.map +1 -1
- package/dist/components/data-display/Chip/index.js +1 -2
- package/dist/components/data-display/DataTable/DataTable.js +10 -9
- package/dist/components/data-display/DataTable/DataTable.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableBody.js +15 -14
- package/dist/components/data-display/DataTable/components/DataTableBody.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableCell.js +2 -3
- package/dist/components/data-display/DataTable/components/DataTableCheckbox.js +2 -3
- package/dist/components/data-display/DataTable/components/DataTableCheckbox.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableColumnHeader.js +4 -5
- package/dist/components/data-display/DataTable/components/DataTableColumnHeader.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableGroupRow.js +8 -8
- package/dist/components/data-display/DataTable/components/DataTableGroupRow.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTablePagination.js +9 -10
- package/dist/components/data-display/DataTable/components/DataTablePagination.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableSelectCells.js +1 -2
- package/dist/components/data-display/DataTable/components/DataTableToolbar.js +7 -8
- package/dist/components/data-display/DataTable/components/DataTableToolbar.js.map +1 -1
- package/dist/components/data-display/DataTable/components/DataTableToolbarButton.js +2 -3
- package/dist/components/data-display/DataTable/components/dataTableCellStyles.js +3 -4
- package/dist/components/data-display/DataTable/components/dataTableCellStyles.js.map +1 -1
- package/dist/components/data-display/DataTable/data.js +1 -2
- package/dist/components/data-display/DataTable/hooks/useGroupExpansion.js +1 -2
- package/dist/components/data-display/DataTable/hooks/useSelectColumn.js +1 -2
- package/dist/components/data-display/DataTable/hooks/useSelection.js +1 -2
- package/dist/components/data-display/DataTable/hooks/useSorting.js +1 -2
- package/dist/components/data-display/DataTable/index.js +1 -1
- package/dist/components/data-display/DataTable/utils.js +1 -2
- package/dist/components/data-display/Flag/Flag.js +3 -4
- package/dist/components/data-display/Flag/Flag.js.map +1 -1
- package/dist/components/data-display/Flag/index.js +1 -2
- package/dist/components/data-display/Label/Label.js +2 -3
- package/dist/components/data-display/Label/Label.js.map +1 -1
- package/dist/components/data-display/Label/index.js +1 -2
- package/dist/components/data-display/Marquee/Marquee.js +2 -3
- package/dist/components/data-display/Marquee/Marquee.js.map +1 -1
- package/dist/components/data-display/Marquee/index.js +1 -2
- package/dist/components/data-display/NotificationBadge/NotificationBadge.js +13 -15
- package/dist/components/data-display/NotificationBadge/NotificationBadge.js.map +1 -1
- package/dist/components/data-display/NotificationBadge/index.js +1 -2
- package/dist/components/data-display/Popover/Popover.js +4 -5
- package/dist/components/data-display/Popover/Popover.js.map +1 -1
- package/dist/components/data-display/Popover/index.js +1 -2
- package/dist/components/data-display/Separator/Separator.js +2 -3
- package/dist/components/data-display/Separator/Separator.js.map +1 -1
- package/dist/components/data-display/Separator/index.js +1 -2
- package/dist/components/data-display/Table/Table.js +5 -6
- package/dist/components/data-display/Table/Table.js.map +1 -1
- package/dist/components/data-display/Table/index.js +1 -2
- package/dist/components/data-display/Tooltip/Tooltip.js +22 -6
- package/dist/components/data-display/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/data-display/Tooltip/index.js +1 -2
- package/dist/components/data-display/TruncatedTypographyWithTooltip/TruncatedTypographyWithTooltip.js +2 -3
- package/dist/components/data-display/TruncatedTypographyWithTooltip/index.js +1 -2
- package/dist/components/data-display/Typography/Typography.d.ts +4 -4
- package/dist/components/data-display/Typography/Typography.js +27 -31
- package/dist/components/data-display/Typography/Typography.js.map +1 -1
- package/dist/components/data-display/Typography/index.js +1 -2
- package/dist/components/feedback/Dialog/Dialog.js +8 -9
- package/dist/components/feedback/Dialog/Dialog.js.map +1 -1
- package/dist/components/feedback/Dialog/index.js +1 -2
- package/dist/components/feedback/Progress/Progress.d.ts +2 -2
- package/dist/components/feedback/Progress/Progress.js +7 -8
- package/dist/components/feedback/Progress/Progress.js.map +1 -1
- package/dist/components/feedback/Progress/hooks/useFakeProgress.js +1 -2
- package/dist/components/feedback/Progress/index.js +1 -2
- package/dist/components/feedback/Skeleton/Skeleton.js +2 -3
- package/dist/components/feedback/Skeleton/Skeleton.js.map +1 -1
- package/dist/components/feedback/Skeleton/index.js +1 -2
- package/dist/components/feedback/Toaster/Toaster.js +11 -12
- package/dist/components/feedback/Toaster/Toaster.js.map +1 -1
- package/dist/components/feedback/Toaster/index.js +1 -2
- package/dist/components/inputs/Button/Button.d.ts +1 -1
- package/dist/components/inputs/Button/Button.js +62 -58
- package/dist/components/inputs/Button/Button.js.map +1 -1
- package/dist/components/inputs/Button/index.js +1 -2
- package/dist/components/inputs/Calendar/Calendar.js +38 -36
- package/dist/components/inputs/Calendar/Calendar.js.map +1 -1
- package/dist/components/inputs/Calendar/index.js +1 -2
- package/dist/components/inputs/Checkbox/Checkbox.js +14 -13
- package/dist/components/inputs/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/inputs/Checkbox/index.js +1 -2
- package/dist/components/inputs/Combobox/Combobox.d.ts +1 -1
- package/dist/components/inputs/Combobox/Combobox.js +6 -6
- package/dist/components/inputs/Combobox/Combobox.js.map +1 -1
- package/dist/components/inputs/Combobox/ComboboxOptionWithTooltip.js +1 -2
- package/dist/components/inputs/Combobox/ComboboxTrigger.js +7 -5
- package/dist/components/inputs/Combobox/ComboboxTrigger.js.map +1 -1
- package/dist/components/inputs/Combobox/StaticComboboxList.js +10 -22
- package/dist/components/inputs/Combobox/StaticComboboxList.js.map +1 -1
- package/dist/components/inputs/Combobox/VirtualizedComboboxList.js +6 -7
- package/dist/components/inputs/Combobox/VirtualizedComboboxList.js.map +1 -1
- package/dist/components/inputs/Combobox/hooks/index.js +1 -1
- package/dist/components/inputs/Combobox/hooks/useComboboxOpenState.js +1 -2
- package/dist/components/inputs/Combobox/hooks/useComboboxSelection.js +1 -2
- package/dist/components/inputs/Combobox/hooks/useDebouncedState.js +5 -6
- package/dist/components/inputs/Combobox/hooks/useDebouncedState.js.map +1 -1
- package/dist/components/inputs/Combobox/hooks/useDisplayValue.js +1 -2
- package/dist/components/inputs/Combobox/index.js +1 -1
- package/dist/components/inputs/Combobox/types.d.ts +1 -1
- package/dist/components/inputs/Combobox/useCombobox.js +1 -2
- package/dist/components/inputs/Command/Command.js +25 -21
- package/dist/components/inputs/Command/Command.js.map +1 -1
- package/dist/components/inputs/Command/index.js +1 -2
- package/dist/components/inputs/CountrySelect/CountrySelect.js +7 -9
- package/dist/components/inputs/CountrySelect/CountrySelect.js.map +1 -1
- package/dist/components/inputs/CountrySelect/index.js +1 -2
- package/dist/components/inputs/DatePicker/DatePicker.js +7 -8
- package/dist/components/inputs/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/inputs/DatePicker/hooks/useLocale.js +1 -2
- package/dist/components/inputs/DatePicker/index.js +1 -2
- package/dist/components/inputs/Field/Field.js +15 -13
- package/dist/components/inputs/Field/Field.js.map +1 -1
- package/dist/components/inputs/Field/index.js +1 -2
- package/dist/components/inputs/Form/Form.d.ts +1 -1
- package/dist/components/inputs/Form/Form.js +5 -6
- package/dist/components/inputs/Form/Form.js.map +1 -1
- package/dist/components/inputs/Form/Page.js +1 -2
- package/dist/components/inputs/Form/index.js +1 -2
- package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.d.ts +7 -1
- package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.js +80 -29
- package/dist/components/inputs/InlineMultiSelect/InlineMultiSelect.js.map +1 -1
- package/dist/components/inputs/InlineMultiSelect/index.js +1 -2
- package/dist/components/inputs/Input/Input.js +22 -15
- package/dist/components/inputs/Input/Input.js.map +1 -1
- package/dist/components/inputs/Input/index.js +1 -2
- package/dist/components/inputs/InputDate/InputDate.js +16 -17
- package/dist/components/inputs/InputDate/InputDate.js.map +1 -1
- package/dist/components/inputs/InputDate/index.js +1 -2
- package/dist/components/inputs/InputOTP/InputOTP.js +5 -6
- package/dist/components/inputs/InputOTP/InputOTP.js.map +1 -1
- package/dist/components/inputs/InputOTP/index.js +1 -2
- package/dist/components/inputs/LazyDatePicker/LazyDatePicker.js +14 -14
- package/dist/components/inputs/LazyDatePicker/LazyDatePicker.js.map +1 -1
- package/dist/components/inputs/LazyDatePicker/index.js +1 -2
- package/dist/components/inputs/MultiSelect/MultiSelect.js +9 -14
- package/dist/components/inputs/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/inputs/MultiSelect/Page.js +1 -2
- package/dist/components/inputs/MultiSelect/index.js +1 -2
- package/dist/components/inputs/PhoneInput/PhoneInput.d.ts +8 -1
- package/dist/components/inputs/PhoneInput/PhoneInput.js +92 -47
- package/dist/components/inputs/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/components/inputs/PhoneInput/hooks/index.js +1 -2
- package/dist/components/inputs/PhoneInput/hooks/usePhoneField.js +7 -8
- package/dist/components/inputs/PhoneInput/hooks/usePhoneField.js.map +1 -1
- package/dist/components/inputs/PhoneInput/index.js +1 -1
- package/dist/components/inputs/PhoneInput/phone.js +1 -2
- package/dist/components/inputs/RadioGroup/Page.js +1 -2
- package/dist/components/inputs/RadioGroup/RadioGroup.js +14 -14
- package/dist/components/inputs/RadioGroup/RadioGroup.js.map +1 -1
- package/dist/components/inputs/RadioGroup/index.js +1 -2
- package/dist/components/inputs/Select/Select.js +22 -21
- package/dist/components/inputs/Select/Select.js.map +1 -1
- package/dist/components/inputs/Select/index.js +1 -2
- package/dist/components/inputs/StarRating/StarRating.js +10 -11
- package/dist/components/inputs/StarRating/StarRating.js.map +1 -1
- package/dist/components/inputs/StarRating/index.js +1 -2
- package/dist/components/inputs/Textarea/Textarea.js +11 -11
- package/dist/components/inputs/Textarea/Textarea.js.map +1 -1
- package/dist/components/inputs/Textarea/index.js +1 -2
- package/dist/components/inputs/Toggle/Toggle.js +19 -15
- package/dist/components/inputs/Toggle/Toggle.js.map +1 -1
- package/dist/components/inputs/Toggle/index.js +1 -2
- package/dist/components/inputs/ToggleGroup/ToggleGroup.js +2 -3
- package/dist/components/inputs/ToggleGroup/index.js +1 -2
- package/dist/components/inputs/shared/ClearButton.js +9 -10
- package/dist/components/inputs/shared/ClearButton.js.map +1 -1
- package/dist/components/inputs/shared/InputGroup.js +15 -12
- package/dist/components/inputs/shared/InputGroup.js.map +1 -1
- package/dist/components/inputs/shared/calendarDayContext.js +1 -2
- package/dist/components/inputs/shared/fieldInvalid.js +1 -2
- package/dist/components/navigation/Breadcrumb/Breadcrumb.js +8 -9
- package/dist/components/navigation/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/navigation/Breadcrumb/index.js +1 -2
- package/dist/components/navigation/DropdownMenu/DropdownMenu.js +31 -35
- package/dist/components/navigation/DropdownMenu/DropdownMenu.js.map +1 -1
- package/dist/components/navigation/DropdownMenu/index.js +1 -2
- package/dist/components/navigation/Pagination/Pagination.js +6 -7
- package/dist/components/navigation/Pagination/Pagination.js.map +1 -1
- package/dist/components/navigation/Pagination/index.js +1 -2
- package/dist/components/navigation/Sheet/Sheet.js +9 -12
- package/dist/components/navigation/Sheet/Sheet.js.map +1 -1
- package/dist/components/navigation/Sheet/index.js +1 -2
- package/dist/components/navigation/Sidebar/Sidebar.d.ts +2 -2
- package/dist/components/navigation/Sidebar/Sidebar.js +30 -31
- package/dist/components/navigation/Sidebar/Sidebar.js.map +1 -1
- package/dist/components/navigation/Sidebar/SidebarMenu.d.ts +5 -5
- package/dist/components/navigation/Sidebar/SidebarMenu.js +46 -53
- package/dist/components/navigation/Sidebar/SidebarMenu.js.map +1 -1
- package/dist/components/navigation/Sidebar/SidebarPage.js +9 -10
- package/dist/components/navigation/Sidebar/SidebarPage.js.map +1 -1
- package/dist/components/navigation/Sidebar/SidebarUser.js +23 -25
- package/dist/components/navigation/Sidebar/SidebarUser.js.map +1 -1
- package/dist/components/navigation/Sidebar/context.js +1 -2
- package/dist/components/navigation/Sidebar/index.js +1 -1
- package/dist/components/navigation/Tabs/Tabs.js +21 -7
- package/dist/components/navigation/Tabs/Tabs.js.map +1 -1
- package/dist/components/navigation/Tabs/index.js +1 -2
- package/dist/components/shared/CloseButton.js +1 -2
- package/dist/components/shared/OptionCheck.d.ts +14 -0
- package/dist/components/shared/OptionCheck.js +22 -0
- package/dist/components/shared/OptionCheck.js.map +1 -0
- package/dist/components/shared/Spinner.d.ts +7 -0
- package/dist/components/shared/Spinner.js +19 -0
- package/dist/components/shared/Spinner.js.map +1 -0
- package/dist/components/shared/index.d.ts +2 -0
- package/dist/components/shared/index.js +3 -1
- package/dist/components/surface/Accordion/Accordion.js +5 -6
- package/dist/components/surface/Accordion/Accordion.js.map +1 -1
- package/dist/components/surface/Accordion/index.js +1 -2
- package/dist/components/surface/Card/Card.js +2 -3
- package/dist/components/surface/Card/Card.js.map +1 -1
- package/dist/components/surface/Card/index.js +1 -2
- package/dist/components/surface/Collapsible/Collapsible.js +1 -2
- package/dist/components/surface/Collapsible/index.js +1 -2
- package/dist/foundations/shared.d.ts +22 -0
- package/dist/foundations/shared.js +63 -0
- package/dist/foundations/shared.js.map +1 -0
- package/dist/lib/countries.js +1 -2
- package/dist/lib/dateUtils.js +1 -2
- package/dist/lib/flagSvg.js +1 -2
- package/dist/lib/inputModality.js +1 -2
- package/dist/lib/marquee.js +1 -2
- package/dist/lib/useListScroll.js +1 -2
- package/dist/lib/useLocale.js +1 -2
- package/dist/lib/useMobile.js +1 -2
- package/dist/lib/useSlidingIndicator.js +1 -2
- package/dist/lib/useTouchDevice.js +1 -2
- package/dist/lib/utils.js +66 -3
- package/dist/lib/utils.js.map +1 -1
- package/dist/node_modules/country-flag-icons/3x2/AC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AQ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AX.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/AZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BB.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BJ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BQ-BO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BQ-SA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BQ-SE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BQ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/BZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CX.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/CZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DJ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/DZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/EC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/EE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/EG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/EH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ER.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ES-CT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ES.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ET.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/EU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FJ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/FR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GB-ENG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GB-NIR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GB-SCT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GB-WLS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GB.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GP.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GQ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/GY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/HU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ID.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IQ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/IT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/JE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/JM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/JO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/JP.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KP.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/KZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LB.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/LY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ME.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ML.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MP.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MQ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MX.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/MZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NP.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/NZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/OM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/PY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/QA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/RE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/RO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/RS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/RU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/RW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SB.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SJ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ST.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SX.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/SZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TD.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TH.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TJ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TL.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TR.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TV.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TW.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/TZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/UA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/UG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/UM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/US.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/UY.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/UZ.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VG.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VI.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VN.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/VU.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/WF.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/WS.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/XA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/XC.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/XK.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/XO.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/YE.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/YT.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ZA.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ZM.js +1 -2
- package/dist/node_modules/country-flag-icons/3x2/ZW.js +1 -2
- package/dist/theme.css +3 -336
- package/dist/tokens.css +491 -0
- package/dist/utilities.css +642 -0
- package/package.json +86 -85
- package/dist/theme/control.css +0 -94
- package/dist/theme/fade-text.css +0 -7
- package/dist/theme/hit-area.css +0 -42
- package/dist/theme/motion.css +0 -3
- package/dist/theme/press.css +0 -22
- package/dist/theme/scrollbar.css +0 -3
- package/dist/theme/sliding-indicator.css +0 -7
- package/dist/theme/sticky-column.css +0 -11
- package/dist/theme/surface.css +0 -18
package/dist/base.css
ADDED
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
/* ==========================================================================
|
|
2
|
+
Reset
|
|
3
|
+
========================================================================== */
|
|
4
|
+
@layer base {
|
|
5
|
+
input[type='number']::-webkit-inner-spin-button,
|
|
6
|
+
input[type='number']::-webkit-outer-spin-button {
|
|
7
|
+
-webkit-appearance: none;
|
|
8
|
+
margin: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
* {
|
|
12
|
+
@apply border-subtle outline-focused;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/* ==========================================================================
|
|
17
|
+
Focus
|
|
18
|
+
========================================================================== */
|
|
19
|
+
@layer base {
|
|
20
|
+
:focus-visible {
|
|
21
|
+
outline: 2px solid var(--ds-border-focused);
|
|
22
|
+
outline-offset: var(--focus-ring-offset, 2px);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
:is(
|
|
26
|
+
input:not(
|
|
27
|
+
[type='checkbox'],
|
|
28
|
+
[type='radio'],
|
|
29
|
+
[type='button'],
|
|
30
|
+
[type='submit'],
|
|
31
|
+
[type='reset'],
|
|
32
|
+
[type='image'],
|
|
33
|
+
[type='range'],
|
|
34
|
+
[type='color'],
|
|
35
|
+
[type='file']
|
|
36
|
+
),
|
|
37
|
+
textarea,
|
|
38
|
+
[contenteditable]:not([contenteditable='false']),
|
|
39
|
+
[role='spinbutton'],
|
|
40
|
+
[role='textbox']
|
|
41
|
+
) {
|
|
42
|
+
outline-color: transparent;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-input-modality='pointer']
|
|
46
|
+
:is(
|
|
47
|
+
[role='menuitem'],
|
|
48
|
+
[role='menuitemcheckbox'],
|
|
49
|
+
[role='menuitemradio'],
|
|
50
|
+
[role='option'],
|
|
51
|
+
[role='tab']
|
|
52
|
+
):focus-visible {
|
|
53
|
+
outline-style: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/* ==========================================================================
|
|
58
|
+
Interaction: touch and cursor
|
|
59
|
+
========================================================================== */
|
|
60
|
+
@layer base {
|
|
61
|
+
html {
|
|
62
|
+
-webkit-tap-highlight-color: transparent;
|
|
63
|
+
-webkit-text-size-adjust: 100%;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
:where(
|
|
67
|
+
button,
|
|
68
|
+
a,
|
|
69
|
+
summary,
|
|
70
|
+
[role='button'],
|
|
71
|
+
[role='tab'],
|
|
72
|
+
[role='checkbox'],
|
|
73
|
+
[role='radio'],
|
|
74
|
+
[role='switch'],
|
|
75
|
+
[role='menuitem'],
|
|
76
|
+
[role='menuitemcheckbox'],
|
|
77
|
+
[role='menuitemradio'],
|
|
78
|
+
[role='option']
|
|
79
|
+
) {
|
|
80
|
+
touch-action: manipulation;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
:where(
|
|
84
|
+
button,
|
|
85
|
+
summary,
|
|
86
|
+
[role='button'],
|
|
87
|
+
[role='tab'],
|
|
88
|
+
[role='checkbox'],
|
|
89
|
+
[role='radio'],
|
|
90
|
+
[role='switch'],
|
|
91
|
+
[role='menuitem'],
|
|
92
|
+
[role='menuitemcheckbox'],
|
|
93
|
+
[role='menuitemradio']
|
|
94
|
+
) {
|
|
95
|
+
-webkit-user-select: none;
|
|
96
|
+
user-select: none;
|
|
97
|
+
-webkit-touch-callout: none;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Enabled clickable controls get the hand, the common web convention (Tailwind v4's preflight leaves buttons with the arrow). */
|
|
101
|
+
:where(
|
|
102
|
+
button,
|
|
103
|
+
summary,
|
|
104
|
+
[role='button'],
|
|
105
|
+
[role='tab'],
|
|
106
|
+
[role='checkbox'],
|
|
107
|
+
[role='radio'],
|
|
108
|
+
[role='switch'],
|
|
109
|
+
[role='menuitem'],
|
|
110
|
+
[role='menuitemcheckbox'],
|
|
111
|
+
[role='menuitemradio'],
|
|
112
|
+
[role='option']
|
|
113
|
+
):not(:disabled, [aria-disabled='true'], [data-disabled=''], [data-disabled='true']) {
|
|
114
|
+
cursor: pointer;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
/* ==========================================================================
|
|
119
|
+
Registered properties
|
|
120
|
+
========================================================================== */
|
|
121
|
+
@property --collapse {
|
|
122
|
+
syntax: '<number>';
|
|
123
|
+
inherits: true;
|
|
124
|
+
initial-value: 1;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
@property --scroll-fade-t {
|
|
128
|
+
syntax: '<length>';
|
|
129
|
+
inherits: false;
|
|
130
|
+
initial-value: 0px;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
@property --scroll-fade-b {
|
|
134
|
+
syntax: '<length>';
|
|
135
|
+
inherits: false;
|
|
136
|
+
initial-value: 0px;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
@keyframes scroll-fade-t {
|
|
140
|
+
from {
|
|
141
|
+
--scroll-fade-t: 0px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
to {
|
|
145
|
+
--scroll-fade-t: var(--scroll-fade-size);
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
@keyframes scroll-fade-b {
|
|
150
|
+
from {
|
|
151
|
+
--scroll-fade-b: var(--scroll-fade-size);
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
to {
|
|
155
|
+
--scroll-fade-b: 0px;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
@keyframes marquee {
|
|
160
|
+
from {
|
|
161
|
+
transform: translateX(0);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
to {
|
|
165
|
+
transform: translateX(calc(-100% - var(--gap)));
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
@keyframes marquee-vertical {
|
|
170
|
+
from {
|
|
171
|
+
transform: translateY(0);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
to {
|
|
175
|
+
transform: translateY(calc(-100% - var(--gap)));
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
@keyframes indeterminate {
|
|
180
|
+
0% {
|
|
181
|
+
transform: translateX(-100%);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
50% {
|
|
185
|
+
transform: translateX(0);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
100% {
|
|
189
|
+
transform: translateX(100%);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
@keyframes accordion-down {
|
|
194
|
+
from {
|
|
195
|
+
height: 0;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
to {
|
|
199
|
+
height: var(--radix-accordion-content-height);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
@keyframes accordion-up {
|
|
204
|
+
from {
|
|
205
|
+
height: var(--radix-accordion-content-height);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
to {
|
|
209
|
+
height: 0;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
@keyframes icon-down-up {
|
|
214
|
+
0% {
|
|
215
|
+
transform: translateY(0%);
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
50% {
|
|
219
|
+
transform: translateY(100%);
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
50.01% {
|
|
223
|
+
transform: translateY(-100%);
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
100% {
|
|
227
|
+
transform: translateY(0%);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
@keyframes motion-spin {
|
|
232
|
+
to {
|
|
233
|
+
transform: rotate(360deg);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
@keyframes motion-ping {
|
|
238
|
+
0% {
|
|
239
|
+
transform: scale(1);
|
|
240
|
+
opacity: 0.75;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
75%,
|
|
244
|
+
100% {
|
|
245
|
+
transform: scale(2);
|
|
246
|
+
opacity: 0;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
@keyframes motion-pulse {
|
|
251
|
+
50% {
|
|
252
|
+
opacity: 0.5;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
@@ -3,8 +3,8 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import React from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
6
|
-
|
|
7
|
-
var avatarVariants = cva("relative flex
|
|
6
|
+
// src/components/data-display/Avatar/Avatar.tsx
|
|
7
|
+
var avatarVariants = cva("relative flex size-10 shrink-0 rounded-full", {
|
|
8
8
|
variants: {
|
|
9
9
|
/**
|
|
10
10
|
* Controls the size of the avatar
|
|
@@ -12,11 +12,11 @@ var avatarVariants = cva("relative flex h-10 w-10 shrink-0 rounded-full", {
|
|
|
12
12
|
*/
|
|
13
13
|
size: {
|
|
14
14
|
/** Small size - 32x32px */
|
|
15
|
-
sm: "
|
|
15
|
+
sm: "size-8",
|
|
16
16
|
/** Medium size - 40x40px */
|
|
17
|
-
md: "
|
|
17
|
+
md: "size-10",
|
|
18
18
|
/** Large size - 48x48px */
|
|
19
|
-
lg: "
|
|
19
|
+
lg: "size-12"
|
|
20
20
|
} },
|
|
21
21
|
defaultVariants: { size: "md" }
|
|
22
22
|
});
|
|
@@ -42,7 +42,7 @@ Avatar.displayName = "Avatar";
|
|
|
42
42
|
*/
|
|
43
43
|
var AvatarImage = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Image, {
|
|
44
44
|
ref,
|
|
45
|
-
className: cn("aspect-square
|
|
45
|
+
className: cn("aspect-square size-full shrink-0 overflow-hidden rounded-full", className),
|
|
46
46
|
...props
|
|
47
47
|
}));
|
|
48
48
|
AvatarImage.displayName = "AvatarImage";
|
|
@@ -53,7 +53,7 @@ AvatarImage.displayName = "AvatarImage";
|
|
|
53
53
|
*/
|
|
54
54
|
var AvatarFallback = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(AvatarPrimitive.Fallback, {
|
|
55
55
|
ref,
|
|
56
|
-
className: cn("flex
|
|
56
|
+
className: cn("flex size-full items-center justify-center rounded-full bg-surface-tertiary", className),
|
|
57
57
|
...props
|
|
58
58
|
}));
|
|
59
59
|
AvatarFallback.displayName = "AvatarFallback";
|
|
@@ -64,7 +64,7 @@ AvatarFallback.displayName = "AvatarFallback";
|
|
|
64
64
|
*/
|
|
65
65
|
var AvatarGroup = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
66
66
|
const modifiedChildren = React.Children.map(children, (child) => {
|
|
67
|
-
if (React.isValidElement(child) && child.type === Avatar) return React.cloneElement(child, { className: cn("ring-2 ring-
|
|
67
|
+
if (React.isValidElement(child) && child.type === Avatar) return React.cloneElement(child, { className: cn("ring-2 ring-surface-primary", child.props.className) });
|
|
68
68
|
return child;
|
|
69
69
|
});
|
|
70
70
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -75,7 +75,6 @@ var AvatarGroup = React.forwardRef(({ className, children, ...props }, ref) => {
|
|
|
75
75
|
});
|
|
76
76
|
});
|
|
77
77
|
AvatarGroup.displayName = "AvatarGroup";
|
|
78
|
-
//#endregion
|
|
79
78
|
export { Avatar, AvatarFallback, AvatarGroup, AvatarImage };
|
|
80
79
|
|
|
81
80
|
//# sourceMappingURL=Avatar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Avatar.js","names":[],"sources":["../../../../src/components/data-display/Avatar/Avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst avatarVariants = cva('relative flex
|
|
1
|
+
{"version":3,"file":"Avatar.js","names":[],"sources":["../../../../src/components/data-display/Avatar/Avatar.tsx"],"sourcesContent":["import * as AvatarPrimitive from '@radix-ui/react-avatar'\nimport { cva, type VariantProps } from 'class-variance-authority'\nimport React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst avatarVariants = cva('relative flex size-10 shrink-0 rounded-full', {\n variants: {\n /**\n * Controls the size of the avatar\n * @default \"md\"\n */\n size: {\n /** Small size - 32x32px */\n sm: 'size-8',\n /** Medium size - 40x40px */\n md: 'size-10',\n /** Large size - 48x48px */\n lg: 'size-12',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n})\nexport type AvatarProps = React.HTMLAttributes<HTMLElement> & VariantProps<typeof avatarVariants>\n\n/**\n * Root avatar component that serves as a container for AvatarImage and AvatarFallback\n * @param props.size - Controls the size of the avatar (\"sm\" | \"md\" | \"lg\")\n * @param props.className - Additional CSS classes to apply\n */\nconst Avatar = React.forwardRef<React.ComponentRef<typeof AvatarPrimitive.Root>, Readonly<AvatarProps>>(\n ({ className, size, ...props }, ref) => (\n <AvatarPrimitive.Root ref={ref} className={cn(avatarVariants({ size, className }))} {...props} />\n ),\n)\nAvatar.displayName = 'Avatar'\n\n/**\n * Component for displaying the actual avatar image\n * @param props.src - The source URL of the image\n * @param props.alt - Alt text for the image\n * @param props.className - Additional CSS classes to apply\n */\nconst AvatarImage = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Image>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Image>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Image\n ref={ref}\n className={cn('aspect-square size-full shrink-0 overflow-hidden rounded-full', className)}\n {...props}\n />\n))\nAvatarImage.displayName = 'AvatarImage'\n\n/**\n * Fallback component displayed when the image fails to load or isn't provided\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Content to display as fallback (typically initials or an icon)\n */\nconst AvatarFallback = React.forwardRef<\n React.ComponentRef<typeof AvatarPrimitive.Fallback>,\n Readonly<React.ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>>\n>(({ className, ...props }, ref) => (\n <AvatarPrimitive.Fallback\n ref={ref}\n className={cn('flex size-full items-center justify-center rounded-full bg-surface-tertiary', className)}\n {...props}\n />\n))\nAvatarFallback.displayName = 'AvatarFallback'\n\ntype AvatarGroupProps = {\n /** Optional custom className */\n className?: string\n /** Children should be Avatar components */\n children: React.ReactNode\n} & React.HTMLAttributes<HTMLDivElement>\n\n/**\n * Container component for grouping multiple avatars with an overlapping effect\n * @param props.className - Additional CSS classes to apply\n * @param props.children - Avatar components to be grouped\n */\nconst AvatarGroup = React.forwardRef<HTMLDivElement, Readonly<AvatarGroupProps>>(\n ({ className, children, ...props }, ref) => {\n const modifiedChildren = React.Children.map(children, (child) => {\n if (React.isValidElement<AvatarProps>(child) && child.type === Avatar) {\n return React.cloneElement(child, {\n className: cn('ring-2 ring-surface-primary', child.props.className),\n })\n }\n return child\n })\n\n return (\n <div ref={ref} className={cn('flex -space-x-4', className)} {...props}>\n {modifiedChildren}\n </div>\n )\n },\n)\n\nAvatarGroup.displayName = 'AvatarGroup'\n\nexport { Avatar, AvatarImage, AvatarFallback, AvatarGroup }\n"],"mappings":";;;;;;AAMA,IAAM,iBAAiB,IAAI,+CAA+C;CACxE,UAAU;;;;;AAKR,MAAM;;EAEJ,IAAI;;EAEJ,IAAI;;EAEJ,IAAI;CACN,EACF;CACA,iBAAiB,EACf,MAAM,KACR;AACF,CAAC;;;;;;AAQD,IAAM,SAAS,MAAM,YAClB,EAAE,WAAW,MAAM,GAAG,SAAS,QAC9B,oBAAC,gBAAgB,MAAjB;CAA2B;CAAK,WAAW,GAAG,eAAe;EAAE;EAAM;CAAU,CAAC,CAAC;CAAG,GAAI;AAAQ,CAAA,CAEpG;AACA,OAAO,cAAc;;;;;;;AAQrB,IAAM,cAAc,MAAM,YAGvB,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,OAAjB;CACO;CACL,WAAW,GAAG,iEAAiE,SAAS;CACxF,GAAI;AACL,CAAA,CACF;AACD,YAAY,cAAc;;;;;;AAO1B,IAAM,iBAAiB,MAAM,YAG1B,EAAE,WAAW,GAAG,SAAS,QAC1B,oBAAC,gBAAgB,UAAjB;CACO;CACL,WAAW,GAAG,+EAA+E,SAAS;CACtG,GAAI;AACL,CAAA,CACF;AACD,eAAe,cAAc;;;;;;AAc7B,IAAM,cAAc,MAAM,YACvB,EAAE,WAAW,UAAU,GAAG,SAAS,QAAQ;CAC1C,MAAM,mBAAmB,MAAM,SAAS,IAAI,WAAW,UAAU;EAC/D,IAAI,MAAM,eAA4B,KAAK,KAAK,MAAM,SAAS,QAC7D,OAAO,MAAM,aAAa,OAAO,EAC/B,WAAW,GAAG,+BAA+B,MAAM,MAAM,SAAS,EACpE,CAAC;EAEH,OAAO;CACT,CAAC;CAED,OACE,oBAAC,OAAD;EAAU;EAAK,WAAW,GAAG,mBAAmB,SAAS;EAAG,GAAI;EAC7D,UAAA;CACE,CAAA;AAET,CACF;AAEA,YAAY,cAAc"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Avatar, AvatarFallback, AvatarGroup, AvatarImage };
|
|
1
|
+
export { Avatar, AvatarFallback, AvatarGroup, AvatarImage } from "./Avatar.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
declare const badgeVariants: (props?: ({
|
|
3
3
|
color?: "accent" | "success" | "warning" | "error" | "neutral" | "info" | null | undefined;
|
|
4
|
-
size?: "
|
|
4
|
+
size?: "big" | "small" | "medium" | null | undefined;
|
|
5
5
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
6
|
export type BadgeProps = {
|
|
7
7
|
/**
|
|
@@ -2,21 +2,21 @@ import { cn } from "../../../lib/utils.js";
|
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/components/data-display/Badge/Badge.tsx
|
|
6
6
|
var badgeVariants = cva("inline-flex items-center rounded-sm border border-transparent font-medium", {
|
|
7
7
|
variants: {
|
|
8
8
|
color: {
|
|
9
|
-
neutral: "bg-
|
|
10
|
-
accent: "bg-
|
|
11
|
-
info: "bg-information
|
|
12
|
-
success: "bg-
|
|
13
|
-
warning: "bg-
|
|
14
|
-
error: "bg-
|
|
9
|
+
neutral: "bg-surface-overlay text-primary",
|
|
10
|
+
accent: "bg-surface-progress-inactive text-primary",
|
|
11
|
+
info: "bg-surface-information text-information",
|
|
12
|
+
success: "bg-surface-status-active text-status-active",
|
|
13
|
+
warning: "bg-surface-brand text-status-expired",
|
|
14
|
+
error: "bg-surface-status-returned text-status-returned"
|
|
15
15
|
},
|
|
16
16
|
size: {
|
|
17
|
-
small: "px-2 py-0.5 text-
|
|
18
|
-
medium: "px-2.5 py-0.5 text-
|
|
19
|
-
big: "px-3 py-1 text-
|
|
17
|
+
small: "px-2 py-0.5 text-body-sm",
|
|
18
|
+
medium: "px-2.5 py-0.5 text-body-md",
|
|
19
|
+
big: "px-3 py-1 text-body-lg"
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
defaultVariants: {
|
|
@@ -44,7 +44,6 @@ var Badge = React$1.forwardRef(({ className, color = "neutral", size = "medium",
|
|
|
44
44
|
});
|
|
45
45
|
});
|
|
46
46
|
Badge.displayName = "Badge";
|
|
47
|
-
//#endregion
|
|
48
47
|
export { Badge, badgeVariants };
|
|
49
48
|
|
|
50
49
|
//# sourceMappingURL=Badge.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Badge.js","names":["React"],"sources":["../../../../src/components/data-display/Badge/Badge.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst badgeVariants = cva('inline-flex items-center rounded-sm border border-transparent font-medium', {\n variants: {\n color: {\n neutral: 'bg-
|
|
1
|
+
{"version":3,"file":"Badge.js","names":["React"],"sources":["../../../../src/components/data-display/Badge/Badge.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\n\nconst badgeVariants = cva('inline-flex items-center rounded-sm border border-transparent font-medium', {\n variants: {\n color: {\n neutral: 'bg-surface-overlay text-primary',\n accent: 'bg-surface-progress-inactive text-primary',\n info: 'bg-surface-information text-information',\n success: 'bg-surface-status-active text-status-active',\n warning: 'bg-surface-brand text-status-expired',\n error: 'bg-surface-status-returned text-status-returned',\n },\n size: {\n small: 'px-2 py-0.5 text-body-sm',\n medium: 'px-2.5 py-0.5 text-body-md',\n big: 'px-3 py-1 text-body-lg',\n },\n },\n defaultVariants: {\n color: 'neutral',\n size: 'medium',\n },\n})\n\nexport type BadgeProps = {\n /**\n * The color of the badge.\n * @default 'neutral'\n */\n color?: 'neutral' | 'accent' | 'info' | 'success' | 'warning' | 'error'\n\n /**\n * The size of the badge.\n * @default 'medium'\n */\n size?: 'small' | 'medium' | 'big'\n\n /**\n * The label to display inside the badge.\n */\n children?: React.ReactNode\n} & React.HTMLAttributes<HTMLElement>\n\n/**\n * An inline status label used to represent a state (e.g. \"Active\", \"Pending\").\n *\n * @example\n * ```tsx\n * <Badge color=\"success\" size=\"small\">Active</Badge>\n * ```\n */\nconst Badge = React.forwardRef<HTMLSpanElement, Readonly<BadgeProps>>(\n ({ className, color = 'neutral', size = 'medium', children, ...props }, ref) => {\n return (\n <span className={cn(badgeVariants({ color, size }), className)} ref={ref} {...props}>\n {children}\n </span>\n )\n },\n)\n\nBadge.displayName = 'Badge'\n\nexport { Badge, badgeVariants }\n"],"mappings":";;;;;AAKA,IAAM,gBAAgB,IAAI,6EAA6E;CACrG,UAAU;EACR,OAAO;GACL,SAAS;GACT,QAAQ;GACR,MAAM;GACN,SAAS;GACT,SAAS;GACT,OAAO;EACT;EACA,MAAM;GACJ,OAAO;GACP,QAAQ;GACR,KAAK;EACP;CACF;CACA,iBAAiB;EACf,OAAO;EACP,MAAM;CACR;AACF,CAAC;;;;;;;;;AA6BD,IAAM,QAAQA,QAAM,YACjB,EAAE,WAAW,QAAQ,WAAW,OAAO,UAAU,UAAU,GAAG,SAAS,QAAQ;CAC9E,OACE,oBAAC,QAAD;EAAM,WAAW,GAAG,cAAc;GAAE;GAAO;EAAK,CAAC,GAAG,SAAS;EAAQ;EAAK,GAAI;EAC3E;CACG,CAAA;AAEV,CACF;AAEA,MAAM,cAAc"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Badge, badgeVariants };
|
|
1
|
+
export { Badge, badgeVariants } from "./Badge.js";
|
|
@@ -7,7 +7,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
7
7
|
import { ArrowLeftIcon } from "@phosphor-icons/react/dist/ssr/ArrowLeft";
|
|
8
8
|
import { ArrowRightIcon } from "@phosphor-icons/react/dist/ssr/ArrowRight";
|
|
9
9
|
import useEmblaCarousel from "embla-carousel-react";
|
|
10
|
-
|
|
10
|
+
// src/components/data-display/Carousel/Carousel.tsx
|
|
11
11
|
var CarouselContext = React$1.createContext(null);
|
|
12
12
|
function useCarousel() {
|
|
13
13
|
const context = React$1.useContext(CarouselContext);
|
|
@@ -113,7 +113,7 @@ var CarouselPrevious = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
113
113
|
ref,
|
|
114
114
|
variant: "ghost",
|
|
115
115
|
iconOnly: true,
|
|
116
|
-
className: cn("absolute
|
|
116
|
+
className: cn("absolute size-8 rounded-full", orientation === "horizontal" ? "top-1/2 -left-12 -translate-y-1/2" : "-top-12 left-1/2 -translate-x-1/2 rotate-90", className),
|
|
117
117
|
disabled: !canScrollPrev,
|
|
118
118
|
onClick: scrollPrev,
|
|
119
119
|
StartIcon: ArrowLeftIcon,
|
|
@@ -132,7 +132,7 @@ var CarouselNext = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
132
132
|
variant: "ghost",
|
|
133
133
|
iconOnly: true,
|
|
134
134
|
className: cn(
|
|
135
|
-
"absolute
|
|
135
|
+
"absolute size-8 rounded-full",
|
|
136
136
|
/* istanbul ignore next -- @preserve */
|
|
137
137
|
orientation === "horizontal" ? "top-1/2 -right-12 -translate-y-1/2" : "-bottom-12 left-1/2 -translate-x-1/2 rotate-90",
|
|
138
138
|
className
|
|
@@ -148,7 +148,6 @@ var CarouselNext = React$1.forwardRef(({ className, ...props }, ref) => {
|
|
|
148
148
|
});
|
|
149
149
|
});
|
|
150
150
|
CarouselNext.displayName = "CarouselNext";
|
|
151
|
-
//#endregion
|
|
152
151
|
export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious };
|
|
153
152
|
|
|
154
153
|
//# sourceMappingURL=Carousel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Carousel.js","names":["React"],"sources":["../../../../src/components/data-display/Carousel/Carousel.tsx"],"sourcesContent":["'use client'\nimport { ArrowLeftIcon } from '@phosphor-icons/react/dist/ssr/ArrowLeft'\nimport { ArrowRightIcon } from '@phosphor-icons/react/dist/ssr/ArrowRight'\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\nimport { Button } from '../../inputs/Button'\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\nexport type CarouselProps = {\n opts?: CarouselOptions\n plugins?: CarouselPlugin\n orientation?: 'horizontal' | 'vertical'\n setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n api: ReturnType<typeof useEmblaCarousel>[1]\n scrollPrev: () => void\n scrollNext: () => void\n canScrollPrev: boolean\n canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext)\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />')\n }\n\n return context\n}\n\nconst Carousel = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement> & CarouselProps>>(\n ({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }, ref) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins,\n )\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n const scrollPrev = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollPrev()\n }, [api])\n\n const scrollNext = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollNext()\n }, [api])\n\n React.useEffect(() => {\n /* istanbul ignore next -- @preserve */\n if (!api || !setApi) {\n return\n }\n /* istanbul ignore next -- @preserve */\n setApi(api)\n }, [api, setApi])\n\n React.useEffect(() => {\n if (!api) {\n return\n }\n\n const onSelect = (selectedApi: CarouselApi) => {\n /* istanbul ignore next -- @preserve */\n if (!selectedApi) {\n /* istanbul ignore next -- @preserve */\n return\n }\n\n setCanScrollPrev(selectedApi.canScrollPrev())\n setCanScrollNext(selectedApi.canScrollNext())\n }\n\n onSelect(api)\n api.on('reInit', onSelect)\n api.on('select', onSelect)\n\n return () => {\n api.off('select', onSelect)\n }\n }, [api])\n const obj = React.useMemo(\n () => ({\n carouselRef,\n api: api,\n opts,\n orientation: orientation,\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }),\n [api, canScrollNext, canScrollPrev, carouselRef, opts, orientation, scrollNext, scrollPrev],\n )\n return (\n <CarouselContext.Provider value={obj}>\n <div ref={ref} className={cn('relative', className)} aria-roledescription=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n )\n },\n)\nCarousel.displayName = 'Carousel'\n\nconst CarouselContent = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', className)}>\n <div\n ref={ref}\n data-orientation={orientation}\n className=\"\n flex\n data-[orientation=horizontal]:-ml-4\n data-[orientation=vertical]:-mt-4 data-[orientation=vertical]:flex-col\n \"\n {...props}\n />\n </div>\n )\n },\n)\nCarouselContent.displayName = 'CarouselContent'\n\nconst CarouselItem = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { orientation } = useCarousel()\n\n return (\n <div\n ref={ref}\n aria-roledescription=\"slide\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n )\n },\n)\nCarouselItem.displayName = 'CarouselItem'\n\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute
|
|
1
|
+
{"version":3,"file":"Carousel.js","names":["React"],"sources":["../../../../src/components/data-display/Carousel/Carousel.tsx"],"sourcesContent":["'use client'\nimport { ArrowLeftIcon } from '@phosphor-icons/react/dist/ssr/ArrowLeft'\nimport { ArrowRightIcon } from '@phosphor-icons/react/dist/ssr/ArrowRight'\nimport useEmblaCarousel, { type UseEmblaCarouselType } from 'embla-carousel-react'\nimport * as React from 'react'\n\nimport { cn } from '../../../lib/utils'\nimport { Button } from '../../inputs/Button'\n\ntype CarouselApi = UseEmblaCarouselType[1]\ntype UseCarouselParameters = Parameters<typeof useEmblaCarousel>\ntype CarouselOptions = UseCarouselParameters[0]\ntype CarouselPlugin = UseCarouselParameters[1]\n\nexport type CarouselProps = {\n opts?: CarouselOptions\n plugins?: CarouselPlugin\n orientation?: 'horizontal' | 'vertical'\n setApi?: (api: CarouselApi) => void\n}\n\ntype CarouselContextProps = {\n carouselRef: ReturnType<typeof useEmblaCarousel>[0]\n api: ReturnType<typeof useEmblaCarousel>[1]\n scrollPrev: () => void\n scrollNext: () => void\n canScrollPrev: boolean\n canScrollNext: boolean\n} & CarouselProps\n\nconst CarouselContext = React.createContext<CarouselContextProps | null>(null)\n\nfunction useCarousel() {\n const context = React.useContext(CarouselContext)\n\n if (!context) {\n throw new Error('useCarousel must be used within a <Carousel />')\n }\n\n return context\n}\n\nconst Carousel = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement> & CarouselProps>>(\n ({ orientation = 'horizontal', opts, setApi, plugins, className, children, ...props }, ref) => {\n const [carouselRef, api] = useEmblaCarousel(\n {\n ...opts,\n axis: orientation === 'horizontal' ? 'x' : 'y',\n },\n plugins,\n )\n const [canScrollPrev, setCanScrollPrev] = React.useState(false)\n const [canScrollNext, setCanScrollNext] = React.useState(false)\n\n const scrollPrev = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollPrev()\n }, [api])\n\n const scrollNext = React.useCallback(() => {\n /* istanbul ignore next -- @preserve */\n api?.scrollNext()\n }, [api])\n\n React.useEffect(() => {\n /* istanbul ignore next -- @preserve */\n if (!api || !setApi) {\n return\n }\n /* istanbul ignore next -- @preserve */\n setApi(api)\n }, [api, setApi])\n\n React.useEffect(() => {\n if (!api) {\n return\n }\n\n const onSelect = (selectedApi: CarouselApi) => {\n /* istanbul ignore next -- @preserve */\n if (!selectedApi) {\n /* istanbul ignore next -- @preserve */\n return\n }\n\n setCanScrollPrev(selectedApi.canScrollPrev())\n setCanScrollNext(selectedApi.canScrollNext())\n }\n\n onSelect(api)\n api.on('reInit', onSelect)\n api.on('select', onSelect)\n\n return () => {\n api.off('select', onSelect)\n }\n }, [api])\n const obj = React.useMemo(\n () => ({\n carouselRef,\n api: api,\n opts,\n orientation: orientation,\n scrollPrev,\n scrollNext,\n canScrollPrev,\n canScrollNext,\n }),\n [api, canScrollNext, canScrollPrev, carouselRef, opts, orientation, scrollNext, scrollPrev],\n )\n return (\n <CarouselContext.Provider value={obj}>\n <div ref={ref} className={cn('relative', className)} aria-roledescription=\"carousel\" {...props}>\n {children}\n </div>\n </CarouselContext.Provider>\n )\n },\n)\nCarousel.displayName = 'Carousel'\n\nconst CarouselContent = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { carouselRef, orientation } = useCarousel()\n\n return (\n <div ref={carouselRef} className={cn('overflow-hidden', className)}>\n <div\n ref={ref}\n data-orientation={orientation}\n className=\"\n flex\n data-[orientation=horizontal]:-ml-4\n data-[orientation=vertical]:-mt-4 data-[orientation=vertical]:flex-col\n \"\n {...props}\n />\n </div>\n )\n },\n)\nCarouselContent.displayName = 'CarouselContent'\n\nconst CarouselItem = React.forwardRef<HTMLDivElement, Readonly<React.HTMLAttributes<HTMLDivElement>>>(\n ({ className, ...props }, ref) => {\n const { orientation } = useCarousel()\n\n return (\n <div\n ref={ref}\n aria-roledescription=\"slide\"\n className={cn('min-w-0 shrink-0 grow-0 basis-full', orientation === 'horizontal' ? 'pl-4' : 'pt-4', className)}\n {...props}\n />\n )\n },\n)\nCarouselItem.displayName = 'CarouselItem'\n\nconst CarouselPrevious = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollPrev, canScrollPrev } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute size-8 rounded-full',\n orientation === 'horizontal'\n ? 'top-1/2 -left-12 -translate-y-1/2'\n : '-top-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollPrev}\n onClick={scrollPrev}\n StartIcon={ArrowLeftIcon}\n {...props}\n >\n <span className=\"sr-only\">Previous slide</span>\n </Button>\n )\n },\n)\nCarouselPrevious.displayName = 'CarouselPrevious'\n\nconst CarouselNext = React.forwardRef<HTMLButtonElement, Readonly<React.ComponentProps<typeof Button>>>(\n ({ className, ...props }, ref) => {\n const { orientation, scrollNext, canScrollNext } = useCarousel()\n\n return (\n <Button\n ref={ref}\n variant={'ghost'}\n iconOnly\n className={cn(\n 'absolute size-8 rounded-full',\n /* istanbul ignore next -- @preserve */\n orientation === 'horizontal'\n ? 'top-1/2 -right-12 -translate-y-1/2'\n : '-bottom-12 left-1/2 -translate-x-1/2 rotate-90',\n className,\n )}\n disabled={!canScrollNext}\n onClick={scrollNext}\n StartIcon={ArrowRightIcon}\n {...props}\n >\n <span className=\"sr-only\">Next slide</span>\n </Button>\n )\n },\n)\nCarouselNext.displayName = 'CarouselNext'\n\nexport { type CarouselApi, Carousel, CarouselContent, CarouselItem, CarouselPrevious, CarouselNext, CarouselContext }\n"],"mappings":";;;;;;;;;;AA8BA,IAAA,kBAAA,QAAA,cAAA,IAAA;AAEA,SAAA,cAAA;CACE,MAAA,UAAA,QAAA,WAAA,eAAA;CAEA,IAAA,CAAA,SAAA,MAAA,IAAA,MAAA,gDAAA;CAIA,OAAA;AACF;AAEA,IAAA,WAAA,QAAA,YAAA,EAAA,cAAA,cAAA,MAAA,QAAA,SAAA,WAAA,UAAA,GAAA,SAAA,QAAA;CAEI,MAAA,CAAA,aAAA,OAAA,iBAAA;EAEI,GAAA;EACA,MAAA,gBAAA,eAAA,MAAA;CACF,GAAA,OAAA;CAGF,MAAA,CAAA,eAAA,oBAAA,QAAA,SAAA,KAAA;CACA,MAAA,CAAA,eAAA,oBAAA,QAAA,SAAA,KAAA;CAEA,MAAA,aAAA,QAAA,kBAAA;;EAEE,KAAA,WAAA;CACF,GAAA,CAAA,GAAA,CAAA;CAEA,MAAA,aAAA,QAAA,kBAAA;;EAEE,KAAA,WAAA;CACF,GAAA,CAAA,GAAA,CAAA;CAEA,QAAA,gBAAA;;EAEE,IAAA,CAAA,OAAA,CAAA,QAAA;;EAIA,OAAA,GAAA;CACF,GAAA,CAAA,KAAA,MAAA,CAAA;CAEA,QAAA,gBAAA;EACE,IAAA,CAAA,KAAA;EAIA,MAAA,YAAA,gBAAA;;GAEE,IAAA,CAAA;;GAEE;GAGF,iBAAA,YAAA,cAAA,CAAA;GACA,iBAAA,YAAA,cAAA,CAAA;EACF;EAEA,SAAA,GAAA;EACA,IAAA,GAAA,UAAA,QAAA;EACA,IAAA,GAAA,UAAA,QAAA;EAEA,aAAA;GACE,IAAA,IAAA,UAAA,QAAA;EACF;CACF,GAAA,CAAA,GAAA,CAAA;CACA,MAAA,MAAA,QAAA,eAAA;EAEI;EACK;EACL;EACa;EACb;EACA;EACA;EACA;CACF,IAAA;EACC;EAAK;EAAe;EAAe;EAAa;EAAM;EAAa;EAAY;CAAU,CAAA;CAE5F,OAAA,oBAAA,gBAAA,UAAA;EAC4B,OAAA;EACxB,UAAA,oBAAA,OAAA;GAAU;GAAK,WAAA,GAAA,YAAA,SAAA;GAAsC,wBAAA;GAAgC,GAAA;GAClF;EACE,CAAA;CACmB,CAAA;AAE9B,CAAA;AAEF,SAAA,cAAA;AAEA,IAAA,kBAAA,QAAA,YAAA,EAAA,WAAA,GAAA,SAAA,QAAA;CAEI,MAAA,EAAA,aAAA,gBAAA,YAAA;CAEA,OAAA,oBAAA,OAAA;EACO,KAAA;EAAkB,WAAA,GAAA,mBAAA,SAAA;EACrB,UAAA,oBAAA,OAAA;GACO;GACL,oBAAA;GACA,WAAA;GAKA,GAAA;EACD,CAAA;CACE,CAAA;AAET,CAAA;AAEF,gBAAA,cAAA;AAEA,IAAA,eAAA,QAAA,YAAA,EAAA,WAAA,GAAA,SAAA,QAAA;CAEI,MAAA,EAAA,gBAAA,YAAA;CAEA,OAAA,oBAAA,OAAA;EAES;EACL,wBAAA;EACA,WAAA,GAAA,sCAAA,gBAAA,eAAA,SAAA,QAAA,SAAA;EACA,GAAA;CACD,CAAA;AAEL,CAAA;AAEF,aAAA,cAAA;AAEA,IAAA,mBAAA,QAAA,YAAA,EAAA,WAAA,GAAA,SAAA,QAAA;CAEI,MAAA,EAAA,aAAA,YAAA,kBAAA,YAAA;CAEA,OAAA,oBAAA,QAAA;EAES;EACL,SAAA;EACA,UAAA;EACA,WAAA,GAAA,gCAAA,gBAAA,eAAA,sCAAA,+CAAA,SAAA;EAOA,UAAA,CAAA;EACA,SAAA;EACA,WAAA;EACA,GAAA;EAEA,UAAA,oBAAA,QAAA;GAAM,WAAA;GAAoB,UAAA;EAAoB,CAAA;CACxC,CAAA;AAEZ,CAAA;AAEF,iBAAA,cAAA;AAEA,IAAA,eAAA,QAAA,YAAA,EAAA,WAAA,GAAA,SAAA,QAAA;CAEI,MAAA,EAAA,aAAA,YAAA,kBAAA,YAAA;CAEA,OAAA,oBAAA,QAAA;EAES;EACL,SAAA;EACA,UAAA;EACA,WAAA;GACE;;GAEA,gBAAA,eAAA,uCAAA;GAGA;EACF;EACA,UAAA,CAAA;EACA,SAAA;EACA,WAAA;EACA,GAAA;EAEA,UAAA,oBAAA,QAAA;GAAM,WAAA;GAAoB,UAAA;EAAgB,CAAA;CACpC,CAAA;AAEZ,CAAA;AAEF,aAAA,cAAA"}
|
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious };
|
|
1
|
+
export { Carousel, CarouselContent, CarouselContext, CarouselItem, CarouselNext, CarouselPrevious } from "./Carousel.js";
|
|
@@ -79,7 +79,7 @@ export type ChipProps = ChipBaseProps & ({
|
|
|
79
79
|
* <Chip variant="error">Error</Chip>
|
|
80
80
|
*
|
|
81
81
|
* // With a leading icon (e.g. locked or add state)
|
|
82
|
-
* <Chip variant="tint" icon={<LockIcon
|
|
82
|
+
* <Chip variant="tint" icon={<LockIcon />}>Locked</Chip>
|
|
83
83
|
*
|
|
84
84
|
* // Pressable, to open a related panel
|
|
85
85
|
* <Chip pressable onClick={() => console.log('pressed')}>Pressable</Chip>
|
|
@@ -3,33 +3,36 @@ import { cva } from "class-variance-authority";
|
|
|
3
3
|
import "react";
|
|
4
4
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { XIcon } from "@phosphor-icons/react/dist/ssr/X";
|
|
6
|
-
|
|
7
|
-
var chipVariants = cva(`relative inline-flex items-center gap-1.5 border font-medium
|
|
6
|
+
// src/components/data-display/Chip/Chip.tsx
|
|
7
|
+
var chipVariants = cva(`relative inline-flex items-center gap-1.5 border font-medium motion-hover`, {
|
|
8
8
|
variants: {
|
|
9
9
|
/**
|
|
10
10
|
* Defines the visual style of the chip
|
|
11
11
|
*/
|
|
12
12
|
variant: {
|
|
13
|
-
default: "border-transparent bg-
|
|
14
|
-
ghost: "
|
|
15
|
-
primary: "border-transparent bg-
|
|
16
|
-
secondary: "border-transparent bg-neutral-
|
|
17
|
-
error: "border-transparent bg-
|
|
18
|
-
success: "border-transparent bg-success-
|
|
19
|
-
tint: "border-
|
|
13
|
+
default: "border-transparent bg-surface-tertiary text-primary",
|
|
14
|
+
ghost: "border border-control bg-transparent text-primary",
|
|
15
|
+
primary: "border-transparent bg-surface-brand-strong text-on-brand",
|
|
16
|
+
secondary: "border-transparent bg-surface-neutral-strong text-inverse",
|
|
17
|
+
error: "border-transparent bg-surface-danger-strong text-on-strong",
|
|
18
|
+
success: "border-transparent bg-surface-success-strong text-on-strong",
|
|
19
|
+
tint: "border-brand bg-surface-brand-secondary text-primary",
|
|
20
20
|
dashed: `
|
|
21
|
-
border-dashed border-
|
|
21
|
+
border-dashed border-brand bg-surface-primary text-primary
|
|
22
22
|
has-[[data-chip-trigger]:focus-visible]:border-solid
|
|
23
23
|
`,
|
|
24
|
-
subtle: `
|
|
24
|
+
subtle: `
|
|
25
|
+
border-transparent bg-surface-primary text-primary
|
|
26
|
+
has-[[data-chip-trigger]:focus-visible]:border-focused
|
|
27
|
+
`
|
|
25
28
|
},
|
|
26
29
|
/**
|
|
27
30
|
* Controls the height and font size of the chip.
|
|
28
31
|
*/
|
|
29
32
|
size: {
|
|
30
|
-
sm: "h-7 text-
|
|
31
|
-
md: "h-8 text-
|
|
32
|
-
lg: "h-9 text-
|
|
33
|
+
sm: "h-7 text-body-md [&>svg]:icon-md [&>svg]:shrink-0",
|
|
34
|
+
md: "h-8 text-body-md [&>svg]:icon-md [&>svg]:shrink-0",
|
|
35
|
+
lg: "h-9 text-body-lg [&>svg]:icon-lg [&>svg]:shrink-0"
|
|
33
36
|
},
|
|
34
37
|
rounded: {
|
|
35
38
|
full: "rounded-full",
|
|
@@ -47,21 +50,16 @@ var CHIP_PADDING = {
|
|
|
47
50
|
md: "px-2.5 py-1",
|
|
48
51
|
lg: "px-3 py-1"
|
|
49
52
|
};
|
|
50
|
-
var CHIP_REMOVE_ICON_SIZE = {
|
|
51
|
-
sm: 12,
|
|
52
|
-
md: 16,
|
|
53
|
-
lg: 18
|
|
54
|
-
};
|
|
55
53
|
var CHIP_PRESSABLE_HOVER = {
|
|
56
|
-
default: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-
|
|
57
|
-
ghost: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
58
|
-
primary: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
59
|
-
secondary: "[@media(hover:_hover)]:has-[:hover]:bg-neutral-
|
|
60
|
-
error: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
61
|
-
success: "[@media(hover:_hover)]:has-[:hover]:bg-success-
|
|
62
|
-
tint: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
63
|
-
dashed: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
64
|
-
subtle: "[@media(hover:_hover)]:has-[:hover]:bg-
|
|
54
|
+
default: "[@media(hover:_hover)]:has-[:hover]:bg-surface-neutral-subtle-disabled",
|
|
55
|
+
ghost: "[@media(hover:_hover)]:has-[:hover]:bg-surface-overlay",
|
|
56
|
+
primary: "[@media(hover:_hover)]:has-[:hover]:bg-surface-brand-strong-hovered",
|
|
57
|
+
secondary: "[@media(hover:_hover)]:has-[:hover]:bg-surface-neutral-strong-hovered",
|
|
58
|
+
error: "[@media(hover:_hover)]:has-[:hover]:bg-surface-danger-strong-hovered",
|
|
59
|
+
success: "[@media(hover:_hover)]:has-[:hover]:bg-surface-success-strong-hovered",
|
|
60
|
+
tint: "[@media(hover:_hover)]:has-[:hover]:bg-surface-brand",
|
|
61
|
+
dashed: "[@media(hover:_hover)]:has-[:hover]:bg-surface-overlay",
|
|
62
|
+
subtle: "[@media(hover:_hover)]:has-[:hover]:bg-surface-tertiary"
|
|
65
63
|
};
|
|
66
64
|
/**
|
|
67
65
|
* A chip component for displaying compact information with optional remove functionality.
|
|
@@ -78,7 +76,7 @@ var CHIP_PRESSABLE_HOVER = {
|
|
|
78
76
|
* <Chip variant="error">Error</Chip>
|
|
79
77
|
*
|
|
80
78
|
* // With a leading icon (e.g. locked or add state)
|
|
81
|
-
* <Chip variant="tint" icon={<LockIcon
|
|
79
|
+
* <Chip variant="tint" icon={<LockIcon />}>Locked</Chip>
|
|
82
80
|
*
|
|
83
81
|
* // Pressable, to open a related panel
|
|
84
82
|
* <Chip pressable onClick={() => console.log('pressed')}>Pressable</Chip>
|
|
@@ -124,18 +122,16 @@ function Chip({ className, variant = "default", size = "md", rounded = "full", i
|
|
|
124
122
|
onClick: onRemove,
|
|
125
123
|
"data-size": size,
|
|
126
124
|
"data-pressable": pressable ? "" : void 0,
|
|
127
|
-
className: "\n inline-flex items-center justify-center rounded-full
|
|
125
|
+
className: "\n inline-flex items-center justify-center rounded-full\n data-pressable:absolute data-pressable:top-1/2 data-pressable:right-1 data-pressable:-translate-y-1/2\n data-[size=lg]:size-7\n data-[size=md]:size-6\n data-[size=sm]:size-5\n ",
|
|
128
126
|
"aria-label": "Remove",
|
|
129
127
|
children: /* @__PURE__ */ jsx(XIcon, {
|
|
130
|
-
size: CHIP_REMOVE_ICON_SIZE[size],
|
|
131
128
|
weight: "regular",
|
|
132
|
-
className: "shrink-0"
|
|
129
|
+
className: "icon-sm shrink-0"
|
|
133
130
|
})
|
|
134
131
|
}) : null]
|
|
135
132
|
});
|
|
136
133
|
}
|
|
137
134
|
Chip.displayName = "Chip";
|
|
138
|
-
//#endregion
|
|
139
135
|
export { Chip, chipVariants };
|
|
140
136
|
|
|
141
137
|
//# sourceMappingURL=Chip.js.map
|