twenty-ui 2.48.0 → 2.50.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/CHANGELOG.md +18 -0
- package/README.md +27 -2
- package/dist/Button-CU8BS-Yd.js +75 -0
- package/dist/Button-iVyxlrwO.cjs +1 -0
- package/dist/Dropdown-ChTVyesF.js +1018 -0
- package/dist/Dropdown-DlItz8Gh.cjs +1 -0
- package/dist/Heading-CHvEXL6n.cjs +1 -0
- package/dist/{Heading-pXllCJCO.js → Heading-Nj5BlPqB.js} +3 -3
- package/dist/{ListItem-CHTR-GLd.cjs → ListItem-C6Xl00m1.cjs} +1 -1
- package/dist/{ListItem-CjnrSbka.js → ListItem-C84ANa76.js} +2 -2
- package/dist/{OverflowingTextWithTooltip-Z2daM0_x.cjs → OverflowingTextWithTooltip-BQmpPObX.cjs} +1 -1
- package/dist/{OverflowingTextWithTooltip-BmUROIah.js → OverflowingTextWithTooltip-BtB9cGdJ.js} +20 -21
- package/dist/ProgressBar-CzGs7cuE.cjs +1 -0
- package/dist/ProgressBar-D4tKQ7OA.js +84 -0
- package/dist/{Radio-DMI1B7o5.js → Radio-BwBZ4e8g.js} +29 -29
- package/dist/{Radio-xmHgGHQO.cjs → Radio-sIYxZnR_.cjs} +1 -1
- package/dist/ResizeHandle-B1MuHTNA.cjs +1 -0
- package/dist/{ResizeHandle-C1kQ3MYR.js → ResizeHandle-B30OYZxS.js} +56 -55
- package/dist/Shortcut-Bp9iDdQg.js +73 -0
- package/dist/Shortcut-N8TELGPI.cjs +1 -0
- package/dist/TabsTabContent-6rkARU9F.cjs +1 -0
- package/dist/TabsTabContent-DPkLTBi2.js +39 -0
- package/dist/Tooltip-6uS8_wdA.js +132 -0
- package/dist/Tooltip-DL3sfbuw.cjs +1 -0
- package/dist/components/__stories__/reading-direction/DirectionalLayoutExample.d.ts +3 -1
- package/dist/components/code-editor.cjs +1 -1
- package/dist/components/code-editor.mjs +52 -51
- package/dist/components/data-display.cjs +1 -1
- package/dist/components/data-display.mjs +6 -7
- package/dist/components/feedback/InlineBanner/InlineBanner.d.ts +2 -2
- package/dist/components/feedback/InlineBanner/internal/InlineBannerComponent.d.ts +1 -1
- package/dist/components/feedback/InlineBanner/types/InlineBannerProps.d.ts +1 -0
- package/dist/components/feedback.cjs +1 -1
- package/dist/components/feedback.mjs +1 -1
- package/dist/components/input/CountrySelect/CountrySelect.d.ts +5 -2
- package/dist/components/input/CountrySelect/__stories__/CountrySelectPartsExample.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectComponent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContext.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectContextValue.d.ts +11 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectDropdown.d.ts +4 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectOptions.d.ts +2 -11
- package/dist/components/input/CountrySelect/internal/CountrySelectOptionsContent.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectRoot.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/CountrySelectTrigger.d.ts +2 -0
- package/dist/components/input/CountrySelect/internal/NO_COUNTRY_SELECTION_VALUE.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/PreparedCountryChoice.d.ts +5 -0
- package/dist/components/input/CountrySelect/internal/getCountrySelectionValue.d.ts +1 -0
- package/dist/components/input/CountrySelect/internal/useCountrySelectContextOrThrow.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountryChoice.d.ts +1 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsProps.d.ts +10 -0
- package/dist/components/input/CountrySelect/types/CountrySelectOptionsState.d.ts +4 -0
- package/dist/components/input/CountrySelect/types/CountrySelectProps.d.ts +7 -13
- package/dist/components/input/CountrySelect/types/CountrySelectRootProps.d.ts +12 -0
- package/dist/components/input/CountrySelect/types/CountrySelectTriggerProps.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/CurrencyPicker.d.ts +4 -3
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerChangingDefaultExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerControlledSearchExample.d.ts +5 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerExample.d.ts +3 -4
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerListLabelExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/__stories__/CurrencyPickerRootStateExample.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerContext.d.ts +11 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerOptions.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerRoot.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerShorthand.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/CurrencyPickerTrigger.d.ts +1 -1
- package/dist/components/input/CurrencyPicker/internal/PreparedCurrencyPickerOption.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/internal/getCurrencyPickerSearchText.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/internal/useCurrencyPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerChangeEventDetails.d.ts +2 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOption.d.ts +1 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerOptionsProps.d.ts +6 -5
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerProps.d.ts +10 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerRootProps.d.ts +17 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerState.d.ts +6 -0
- package/dist/components/input/CurrencyPicker/types/CurrencyPickerTriggerProps.d.ts +3 -2
- package/dist/components/input/IconButton/__stories__/IconButtonExample.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/PhoneCountryPicker.d.ts +5 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/PhoneCountryPickerExample.d.ts +7 -3
- package/dist/components/input/PhoneCountryPicker/__stories__/testDisabledPhoneCountryPicker.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryCallingCodeDirection.d.ts +3 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountryNullSelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/__stories__/testPhoneCountrySelection.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerContext.d.ts +9 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerOptions.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerRoot.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/PhoneCountryPickerTrigger.d.ts +1 -1
- package/dist/components/input/PhoneCountryPicker/internal/PreparedPhoneCountryOption.d.ts +5 -0
- package/dist/components/input/PhoneCountryPicker/internal/getPhoneCountryOptionTooltipLabel.d.ts +2 -0
- package/dist/components/input/PhoneCountryPicker/internal/matchesPhoneCountrySearch.d.ts +6 -0
- package/dist/components/input/PhoneCountryPicker/internal/usePhoneCountryPickerContextOrThrow.d.ts +7 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryOption.d.ts +1 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerOptionsProps.d.ts +4 -5
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerProps.d.ts +10 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerRootProps.d.ts +12 -0
- package/dist/components/input/PhoneCountryPicker/types/PhoneCountryPickerTriggerProps.d.ts +1 -3
- package/dist/components/input/SegmentedControl/types/SegmentedControlProps.d.ts +1 -1
- package/dist/components/input/index.d.ts +10 -0
- package/dist/components/input.cjs +1 -1
- package/dist/components/input.mjs +13 -13
- package/dist/components/layout/OverflowingList/internal/measureItemWidths.d.ts +1 -2
- package/dist/components/layout/OverflowingList/internal/measureOverflowingListLayout.d.ts +1 -2
- package/dist/components/layout.cjs +1 -1
- package/dist/components/layout.mjs +1 -1
- package/dist/components/navigation/Dropdown/Dropdown.d.ts +3 -2
- package/dist/components/navigation/Dropdown/__stories__/DropdownIconGridExample.d.ts +3 -0
- package/dist/components/navigation/Dropdown/__stories__/DropdownSelectionGroupsExample.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/DropdownContextValue.d.ts +6 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItem.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownOptionItemOwner.d.ts +7 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSearch.d.ts +1 -1
- package/dist/components/navigation/Dropdown/internal/DropdownSearchEffect.d.ts +8 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContext.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionContextValue.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroup.d.ts +2 -0
- package/dist/components/navigation/Dropdown/internal/DropdownSelectionGroupEffect.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/createDropdownSelectionEventDetails.d.ts +5 -0
- package/dist/components/navigation/Dropdown/internal/dropdownItemActivation.d.ts +11 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownItemExplicitId.d.ts +2 -2
- package/dist/components/navigation/Dropdown/internal/getDropdownOptionItemRole.d.ts +9 -0
- package/dist/components/navigation/Dropdown/internal/getDropdownSelectionGroupState.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/getTrailingFocusGuard.d.ts +1 -0
- package/dist/components/navigation/Dropdown/internal/isDropdownOptionItemSelected.d.ts +6 -0
- package/dist/components/navigation/Dropdown/internal/useDropdownSelections.d.ts +12 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemProps.d.ts +7 -2
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemSelectEventDetails.d.ts +2 -0
- package/dist/components/navigation/Dropdown/types/DropdownOptionItemState.d.ts +5 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupChangeEventDetails.d.ts +7 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupProps.d.ts +21 -0
- package/dist/components/navigation/Dropdown/types/DropdownSelectionGroupState.d.ts +7 -0
- package/dist/components/navigation/index.d.ts +5 -11
- package/dist/components/navigation.cjs +1 -1
- package/dist/components/navigation.mjs +6 -11
- package/dist/components/settings.cjs +1 -1
- package/dist/components/settings.mjs +1 -1
- package/dist/components.cjs +1 -1
- package/dist/components.mjs +37 -43
- package/dist/data-display-C-eoJ5En.js +378 -0
- package/dist/data-display-CM1yXpnE.cjs +2 -0
- package/dist/data-display-CXw-mxeS.js +252 -0
- package/dist/data-display-DdES9XqZ.cjs +1 -0
- package/dist/doNotTranslate-BSVT8Xyd.js +4 -0
- package/dist/doNotTranslate-CHE7WmRS.cjs +1 -0
- package/dist/feedback-4HKPcMRs.js +666 -0
- package/dist/feedback-BSOWDBI0.js +38 -0
- package/dist/feedback-DBRXDPSP.cjs +1 -0
- package/dist/feedback-DspXawf9.cjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +625 -631
- package/dist/input-CWWp7cqL.cjs +1 -0
- package/dist/input-CvZ_uB_9.cjs +1 -0
- package/dist/input-Qn5_aFYU.js +785 -0
- package/dist/input-k5cMhFI_.js +428 -0
- package/dist/layout-DDqeMgFv.js +439 -0
- package/dist/layout-iSfGrMrH.cjs +1 -0
- package/dist/navigation-7Y6gHFlj.cjs +1 -0
- package/dist/navigation-BY8X2w04.js +132 -0
- package/dist/navigation-BcXCiLE1.js +86 -0
- package/dist/navigation-ByYN6NgX.cjs +1 -0
- package/dist/normalizeSearchText-DLmPiBUZ.js +19 -0
- package/dist/normalizeSearchText-Do0MELpQ.cjs +1 -0
- package/dist/preventDismissingClickActivation-BEBrL9aB.cjs +1 -0
- package/dist/preventDismissingClickActivation-BQFMKRey.js +29 -0
- package/dist/primitives/accessibility.cjs +1 -1
- package/dist/primitives/accessibility.mjs +1 -1
- package/dist/primitives/data-display/Avatar/constants/AvatarPropertiesBySize.d.ts +4 -0
- package/dist/primitives/data-display/Avatar/types/AvatarSize.d.ts +1 -1
- package/dist/primitives/data-display/Badge/types/BadgeColor.d.ts +1 -1
- package/dist/primitives/data-display/Chip/types/ChipVariant.d.ts +1 -1
- package/dist/primitives/data-display.cjs +1 -1
- package/dist/primitives/data-display.mjs +7 -8
- package/dist/primitives/feedback/Banner/Banner.d.ts +1 -1
- package/dist/primitives/feedback/Banner/internal/BannerAction.d.ts +1 -1
- package/dist/primitives/feedback.cjs +1 -1
- package/dist/primitives/feedback.mjs +2 -2
- package/dist/primitives/input/Autocomplete/Autocomplete.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/internal/AutocompleteInput.d.ts +1 -1
- package/dist/primitives/input/Autocomplete/types/AutocompleteInputProps.d.ts +8 -1
- package/dist/primitives/input/Button/types/ButtonColor.d.ts +1 -1
- package/dist/primitives/input/Radio/__stories__/RadioCardContent.d.ts +8 -0
- package/dist/primitives/input/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/primitives/input/RadioGroup/types/RadioGroupProps.d.ts +3 -1
- package/dist/primitives/input.cjs +1 -1
- package/dist/primitives/input.mjs +3 -3
- package/dist/primitives/layout/ResizeHandle/__stories__/ResizableNotesExample.d.ts +2 -0
- package/dist/primitives/layout.cjs +1 -1
- package/dist/primitives/layout.mjs +1 -1
- package/dist/primitives/navigation/Tabs/types/TabsSize.d.ts +1 -1
- package/dist/primitives/navigation.cjs +1 -1
- package/dist/primitives/navigation.mjs +2 -2
- package/dist/primitives/surfaces/Card/Card.d.ts +1 -1
- package/dist/primitives/surfaces/Card/internal/CardRoot.d.ts +1 -1
- package/dist/primitives/surfaces/Card/types/CardRootProps.d.ts +0 -1
- package/dist/primitives/surfaces/Tooltip/Tooltip.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/__stories__/findTooltip.d.ts +1 -0
- package/dist/primitives/surfaces/Tooltip/internal/TooltipBody.d.ts +2 -8
- package/dist/primitives/surfaces/Tooltip/types/TooltipBodyProps.d.ts +6 -0
- package/dist/primitives/surfaces/index.d.ts +1 -0
- package/dist/primitives/surfaces.cjs +1 -1
- package/dist/primitives/surfaces.mjs +2 -2
- package/dist/primitives/typography/Heading/types/HeadingProps.d.ts +1 -1
- package/dist/primitives/typography.cjs +1 -1
- package/dist/primitives/typography.mjs +4 -4
- package/dist/primitives.cjs +1 -1
- package/dist/primitives.mjs +46 -47
- package/dist/{settings-BAYsnlZJ.cjs → settings-DT5bEO6A.cjs} +1 -1
- package/dist/{settings-BjEZiHXE.js → settings-XGSJtobU.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/surfaces-q8voTXEJ.cjs +1 -0
- package/dist/{surfaces-BLsR5ka0.js → surfaces-vhSZBmbz.js} +77 -78
- package/dist/testing/GroupedCatalog.d.ts +14 -0
- package/dist/testing/index.d.ts +2 -0
- package/dist/testing/utils/waitForStorybookFontsLoaded.d.ts +1 -0
- package/dist/testing.cjs +1 -1
- package/dist/testing.mjs +102 -62
- package/dist/{typography-fOTFr0jS.js → typography-BPdXzW2T.js} +2 -2
- package/dist/{typography-B5QEuPaL.cjs → typography-CWtuNruY.cjs} +1 -1
- package/dist/useIsMobile-Byp9AIq-.cjs +1 -0
- package/dist/useIsMobile-D1ImfQnE.js +38 -0
- package/dist/utilities/internal/doNotTranslate.d.ts +1 -0
- package/dist/utilities-BKCMZyqZ.js +53 -0
- package/dist/utilities-xZh8D2gd.cjs +1 -0
- package/dist/utilities.cjs +1 -1
- package/dist/utilities.mjs +11 -10
- package/package.json +3 -3
- package/dist/Avatar-CQhIEazb.cjs +0 -1
- package/dist/Avatar-D-QA0RE5.js +0 -72
- package/dist/Button-D5enZ0Qz.js +0 -72
- package/dist/Button-Dbi5P05r.cjs +0 -1
- package/dist/Dropdown-BKjAaZS0.cjs +0 -1
- package/dist/Dropdown-C2hXrjvD.js +0 -820
- package/dist/Heading-CTRYClCO.cjs +0 -1
- package/dist/ProgressBar-BvT1dyFo.js +0 -84
- package/dist/ProgressBar-DfFz0fFB.cjs +0 -1
- package/dist/ResizeHandle-DI4LHIQm.cjs +0 -1
- package/dist/Shortcut-BvWUZ3pb.js +0 -72
- package/dist/Shortcut-CgrdLv_L.cjs +0 -1
- package/dist/TabsTabContent-Co27Y2TU.cjs +0 -1
- package/dist/TabsTabContent-DVcObDp6.js +0 -39
- package/dist/TintedIconTile-4BGa8g8n.js +0 -40
- package/dist/TintedIconTile-CU2hCerq.cjs +0 -1
- package/dist/Tooltip-Bg9Uk01p.cjs +0 -1
- package/dist/Tooltip-cLCgtFBF.js +0 -124
- package/dist/components/navigation/MenuItem/MenuItem.d.ts +0 -2
- package/dist/components/navigation/MenuItem/parts/MenuItemIcon.d.ts +0 -9
- package/dist/components/navigation/MenuItem/parts/MenuItemIconBoxContainer.d.ts +0 -7
- package/dist/components/navigation/MenuItem/parts/MenuItemIconWithGripSwap.d.ts +0 -8
- package/dist/components/navigation/MenuItem/parts/MenuItemLeftContent.d.ts +0 -19
- package/dist/components/navigation/MenuItem/parts/StyledMenuItemBase.d.ts +0 -25
- package/dist/components/navigation/MenuItem/types/MenuItemDraggableGripMode.d.ts +0 -1
- package/dist/components/navigation/MenuItem/types/MenuItemProps.d.ts +0 -33
- package/dist/components/navigation/MenuItemAvatar/MenuItemAvatar.d.ts +0 -2
- package/dist/components/navigation/MenuItemAvatar/types/MenuItemAvatarProps.d.ts +0 -18
- package/dist/components/navigation/MenuItemDraggable/MenuItemDraggable.d.ts +0 -2
- package/dist/components/navigation/MenuItemDraggable/types/MenuItemDraggableProps.d.ts +0 -20
- package/dist/components/navigation/MenuItemSuggestion/MenuItemSuggestion.d.ts +0 -2
- package/dist/components/navigation/MenuItemSuggestion/types/MenuItemSuggestionProps.d.ts +0 -12
- package/dist/components/navigation/MenuPicker/MenuPicker.d.ts +0 -2
- package/dist/components/navigation/MenuPicker/types/MenuPickerProps.d.ts +0 -15
- package/dist/data-display-0QO_WDSs.js +0 -183
- package/dist/data-display-CPmTJAWJ.cjs +0 -1
- package/dist/data-display-DjhAHvj1.cjs +0 -2
- package/dist/data-display-KyZbLLy-.js +0 -344
- package/dist/feedback-CM6fatE8.js +0 -664
- package/dist/feedback-DA-AU5z5.js +0 -38
- package/dist/feedback-DNLERYY9.cjs +0 -1
- package/dist/feedback-ybO4n69s.cjs +0 -1
- package/dist/input-3D2lXywH.cjs +0 -1
- package/dist/input-CJDYNwoO.cjs +0 -1
- package/dist/input-DRpDiMRi.js +0 -421
- package/dist/input-TM3nUdu6.js +0 -554
- package/dist/layout-BszCDxAO.js +0 -441
- package/dist/layout-VaIq7Sjr.cjs +0 -1
- package/dist/navigation-B1SRvzKK.js +0 -403
- package/dist/navigation-CYAs2LnR.js +0 -131
- package/dist/navigation-CthkGHJ8.cjs +0 -1
- package/dist/navigation-DrOV5E67.cjs +0 -1
- package/dist/preventDismissingClickActivation-CzWqpjiX.js +0 -44
- package/dist/preventDismissingClickActivation-DZxTSLV3.cjs +0 -1
- package/dist/surfaces-0rL5DoHt.cjs +0 -1
- package/dist/useIsMobile-DxOPI2_E.cjs +0 -1
- package/dist/useIsMobile-nrufFzMb.js +0 -37
- package/dist/utilities-BeLfNQ0Q.cjs +0 -1
- package/dist/utilities-CEi9I09B.js +0 -52
- /package/dist/{handleClickableElementKeyDown-C8Uz61XJ.js → accessibility-C8Uz61XJ.js} +0 -0
- /package/dist/{handleClickableElementKeyDown-CByqtBhO.cjs → accessibility-CByqtBhO.cjs} +0 -0
|
@@ -1,155 +1,154 @@
|
|
|
1
|
-
import { t as
|
|
1
|
+
import { t as D } from "./isDefined-fMi6eQ4r.js";
|
|
2
2
|
import { t as _ } from "./theme-B2EaXhye.js";
|
|
3
3
|
import { t as p } from "./mergeClassNames-ClFMR1v0.js";
|
|
4
4
|
import { t as v } from "./useProvidedTextDirection-Dk8LBQeF.js";
|
|
5
|
-
import { t as
|
|
5
|
+
import { t as u } from "./Heading-Nj5BlPqB.js";
|
|
6
6
|
import { useRender as c } from "@base-ui/react/use-render";
|
|
7
|
-
import { isUndefined as
|
|
7
|
+
import { isUndefined as f } from "@sniptt/guards";
|
|
8
8
|
import { clsx as s } from "clsx";
|
|
9
9
|
import { jsx as i } from "react/jsx-runtime";
|
|
10
10
|
import { AlertDialog as d } from "@base-ui/react/alert-dialog";
|
|
11
11
|
import { Dialog as l } from "@base-ui/react/dialog";
|
|
12
|
-
var
|
|
13
|
-
backdrop:
|
|
14
|
-
viewport:
|
|
15
|
-
popup:
|
|
16
|
-
header:
|
|
17
|
-
body:
|
|
18
|
-
footer:
|
|
19
|
-
title:
|
|
20
|
-
description:
|
|
21
|
-
},
|
|
12
|
+
var C = "_backdrop_aak4r_1", N = "_viewport_aak4r_12", k = "_popup_aak4r_30", H = "_header_aak4r_82", P = "_body_aak4r_91", T = "_footer_aak4r_95", y = "_title_aak4r_106", A = "_description_aak4r_113", t = {
|
|
13
|
+
backdrop: C,
|
|
14
|
+
viewport: N,
|
|
15
|
+
popup: k,
|
|
16
|
+
header: H,
|
|
17
|
+
body: P,
|
|
18
|
+
footer: T,
|
|
19
|
+
title: y,
|
|
20
|
+
description: A
|
|
21
|
+
}, w = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Backdrop, {
|
|
22
22
|
...a,
|
|
23
23
|
className: p(t.backdrop, r)
|
|
24
|
-
}),
|
|
24
|
+
}), B = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
25
25
|
render: r,
|
|
26
26
|
ref: a,
|
|
27
27
|
props: {
|
|
28
28
|
...o,
|
|
29
29
|
className: s(t.body, e)
|
|
30
30
|
}
|
|
31
|
-
}),
|
|
31
|
+
}), F = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Description, {
|
|
32
32
|
...a,
|
|
33
33
|
className: p(t.description, r)
|
|
34
|
-
}),
|
|
34
|
+
}), b = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
35
35
|
render: r,
|
|
36
36
|
ref: a,
|
|
37
37
|
props: {
|
|
38
38
|
...o,
|
|
39
39
|
className: s(t.footer, e)
|
|
40
40
|
}
|
|
41
|
-
}),
|
|
41
|
+
}), h = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
42
42
|
render: r,
|
|
43
43
|
ref: a,
|
|
44
44
|
props: {
|
|
45
45
|
...o,
|
|
46
46
|
className: s(t.header, e)
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), R = ({ container: r, ...a }) => {
|
|
49
49
|
const e = _(), o = v();
|
|
50
50
|
return /* @__PURE__ */ i(d.Portal, {
|
|
51
51
|
dir: o,
|
|
52
52
|
...a,
|
|
53
53
|
container: r === void 0 ? e ?? void 0 : r
|
|
54
54
|
});
|
|
55
|
-
},
|
|
55
|
+
}, V = ({ size: r = "md", className: a, ...e }) => /* @__PURE__ */ i(d.Popup, {
|
|
56
56
|
...e,
|
|
57
57
|
"data-size": r,
|
|
58
58
|
className: p(t.popup, a)
|
|
59
|
-
}),
|
|
59
|
+
}), x = ({ className: r, ...a }) => /* @__PURE__ */ i(d.Title, {
|
|
60
60
|
...a,
|
|
61
61
|
className: p(t.title, r)
|
|
62
|
-
}),
|
|
62
|
+
}), $ = ({ className: r, ...a }) => {
|
|
63
63
|
const e = v();
|
|
64
64
|
return /* @__PURE__ */ i(d.Viewport, {
|
|
65
65
|
dir: e,
|
|
66
66
|
...a,
|
|
67
67
|
className: p(t.viewport, r)
|
|
68
68
|
});
|
|
69
|
-
},
|
|
69
|
+
}, z = () => ({
|
|
70
70
|
Root: d.Root,
|
|
71
71
|
Trigger: d.Trigger,
|
|
72
|
-
Portal:
|
|
73
|
-
Backdrop:
|
|
74
|
-
Viewport:
|
|
75
|
-
Popup:
|
|
76
|
-
Title:
|
|
77
|
-
Description:
|
|
72
|
+
Portal: R,
|
|
73
|
+
Backdrop: w,
|
|
74
|
+
Viewport: $,
|
|
75
|
+
Popup: V,
|
|
76
|
+
Title: x,
|
|
77
|
+
Description: F,
|
|
78
78
|
Close: d.Close,
|
|
79
|
-
Header:
|
|
80
|
-
Body:
|
|
81
|
-
Footer:
|
|
79
|
+
Header: h,
|
|
80
|
+
Body: B,
|
|
81
|
+
Footer: b,
|
|
82
82
|
Handle: d.Handle,
|
|
83
83
|
createHandle: d.createHandle
|
|
84
|
-
}),
|
|
84
|
+
}), Cr = /* @__PURE__ */ z(), j = "_cardContent_122dn_1", U = { cardContent: j }, q = ({ className: r, divider: a, render: e, ref: o, ...n }) => c({
|
|
85
85
|
render: e,
|
|
86
86
|
ref: o,
|
|
87
87
|
props: {
|
|
88
88
|
...n,
|
|
89
|
-
className: s(
|
|
89
|
+
className: s(U.cardContent, r),
|
|
90
90
|
"data-divider": a || void 0
|
|
91
91
|
}
|
|
92
|
-
}),
|
|
92
|
+
}), E = "_cardFooter_yo8y2_1", G = { cardFooter: E }, I = ({ className: r, divider: a, render: e, ref: o, ...n }) => c({
|
|
93
93
|
render: e,
|
|
94
94
|
ref: o,
|
|
95
95
|
props: {
|
|
96
96
|
...n,
|
|
97
|
-
className: s(
|
|
97
|
+
className: s(G.cardFooter, r),
|
|
98
98
|
"data-no-divider": a === !1 || void 0
|
|
99
99
|
}
|
|
100
|
-
}),
|
|
100
|
+
}), J = "_cardHeader_18psr_1", K = { cardHeader: J }, L = ({ className: r, render: a, ref: e, ...o }) => c({
|
|
101
101
|
render: a,
|
|
102
102
|
ref: e,
|
|
103
103
|
props: {
|
|
104
104
|
...o,
|
|
105
|
-
className: s(
|
|
105
|
+
className: s(K.cardHeader, r)
|
|
106
106
|
}
|
|
107
|
-
}),
|
|
108
|
-
render:
|
|
109
|
-
ref:
|
|
107
|
+
}), M = "_card_l2pp2_1", O = { card: M }, Q = ({ className: r, fullWidth: a, backgroundColor: e, style: o, render: n, ref: m, ...g }) => c({
|
|
108
|
+
render: n,
|
|
109
|
+
ref: m,
|
|
110
110
|
props: {
|
|
111
|
-
...
|
|
112
|
-
className: s(
|
|
111
|
+
...g,
|
|
112
|
+
className: s(O.card, r),
|
|
113
113
|
"data-full-width": a || void 0,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
} : n
|
|
114
|
+
style: D(e) ? {
|
|
115
|
+
...o,
|
|
116
|
+
"--card-background-color": e
|
|
117
|
+
} : o
|
|
119
118
|
}
|
|
120
|
-
}),
|
|
121
|
-
Root:
|
|
122
|
-
Header:
|
|
123
|
-
Content:
|
|
124
|
-
Footer:
|
|
125
|
-
},
|
|
119
|
+
}), Nr = {
|
|
120
|
+
Root: Q,
|
|
121
|
+
Header: L,
|
|
122
|
+
Content: q,
|
|
123
|
+
Footer: I
|
|
124
|
+
}, S = ({ className: r, ...a }) => /* @__PURE__ */ i(l.Backdrop, {
|
|
126
125
|
...a,
|
|
127
126
|
className: p(t.backdrop, r)
|
|
128
|
-
}),
|
|
127
|
+
}), W = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
129
128
|
render: r,
|
|
130
129
|
ref: a,
|
|
131
130
|
props: {
|
|
132
131
|
...o,
|
|
133
132
|
className: s(t.body, e)
|
|
134
133
|
}
|
|
135
|
-
}),
|
|
134
|
+
}), X = "_description_3f4d1_1", Y = { description: X }, Z = ({ className: r, ...a }) => /* @__PURE__ */ i(l.Description, {
|
|
136
135
|
...a,
|
|
137
|
-
className: p(s(t.description,
|
|
138
|
-
}),
|
|
136
|
+
className: p(s(t.description, Y.description), r)
|
|
137
|
+
}), rr = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
139
138
|
render: r,
|
|
140
139
|
ref: a,
|
|
141
140
|
props: {
|
|
142
141
|
...o,
|
|
143
142
|
className: s(t.footer, e)
|
|
144
143
|
}
|
|
145
|
-
}),
|
|
144
|
+
}), ar = ({ render: r, ref: a, className: e, ...o }) => c({
|
|
146
145
|
render: r,
|
|
147
146
|
ref: a,
|
|
148
147
|
props: {
|
|
149
148
|
...o,
|
|
150
149
|
className: s(t.header, e)
|
|
151
150
|
}
|
|
152
|
-
}),
|
|
151
|
+
}), er = ({ size: r = "md", className: a, ...e }) => {
|
|
153
152
|
const o = v();
|
|
154
153
|
return /* @__PURE__ */ i(l.Popup, {
|
|
155
154
|
dir: o,
|
|
@@ -157,46 +156,46 @@ var N = "_backdrop_aak4r_1", k = "_viewport_aak4r_12", H = "_popup_aak4r_30", P
|
|
|
157
156
|
"data-size": r,
|
|
158
157
|
className: p(t.popup, a)
|
|
159
158
|
});
|
|
160
|
-
},
|
|
159
|
+
}, or = ({ container: r, ...a }) => {
|
|
161
160
|
const e = _();
|
|
162
161
|
return /* @__PURE__ */ i(l.Portal, {
|
|
163
162
|
...a,
|
|
164
|
-
container:
|
|
163
|
+
container: f(r) ? e ?? void 0 : r
|
|
165
164
|
});
|
|
166
|
-
},
|
|
165
|
+
}, tr = "_title_yzpck_1", ir = { title: tr }, dr = ({ level: r = 2, size: a = "lg", color: e = "primary", className: o, render: n, ...m }) => /* @__PURE__ */ i(l.Title, {
|
|
167
166
|
...m,
|
|
168
|
-
className: p(
|
|
169
|
-
render: /* @__PURE__ */ i(
|
|
167
|
+
className: p(ir.title, o),
|
|
168
|
+
render: /* @__PURE__ */ i(u, {
|
|
170
169
|
level: r,
|
|
171
170
|
size: a,
|
|
172
171
|
color: e,
|
|
173
172
|
render: n
|
|
174
173
|
})
|
|
175
|
-
}),
|
|
174
|
+
}), lr = ({ className: r, ...a }) => {
|
|
176
175
|
const e = v();
|
|
177
176
|
return /* @__PURE__ */ i(l.Viewport, {
|
|
178
177
|
dir: e,
|
|
179
178
|
...a,
|
|
180
179
|
className: p(t.viewport, r)
|
|
181
180
|
});
|
|
182
|
-
},
|
|
181
|
+
}, kr = {
|
|
183
182
|
createHandle: l.createHandle,
|
|
184
183
|
Handle: l.Handle,
|
|
185
184
|
Root: l.Root,
|
|
186
185
|
Trigger: l.Trigger,
|
|
187
|
-
Portal:
|
|
188
|
-
Backdrop:
|
|
189
|
-
Viewport:
|
|
190
|
-
Popup:
|
|
191
|
-
Title:
|
|
192
|
-
Description:
|
|
186
|
+
Portal: or,
|
|
187
|
+
Backdrop: S,
|
|
188
|
+
Viewport: lr,
|
|
189
|
+
Popup: er,
|
|
190
|
+
Title: dr,
|
|
191
|
+
Description: Z,
|
|
193
192
|
Close: l.Close,
|
|
194
|
-
Header:
|
|
195
|
-
Body:
|
|
196
|
-
Footer:
|
|
193
|
+
Header: ar,
|
|
194
|
+
Body: W,
|
|
195
|
+
Footer: rr
|
|
197
196
|
};
|
|
198
197
|
export {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
198
|
+
Nr as n,
|
|
199
|
+
Cr as r,
|
|
200
|
+
kr as t
|
|
202
201
|
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
type GroupedCatalogProps<CatalogExample extends {
|
|
3
|
+
label: string;
|
|
4
|
+
}> = {
|
|
5
|
+
groups: {
|
|
6
|
+
label: string;
|
|
7
|
+
examples: CatalogExample[];
|
|
8
|
+
}[];
|
|
9
|
+
renderExample: (example: CatalogExample) => ReactNode;
|
|
10
|
+
};
|
|
11
|
+
export declare const GroupedCatalog: <CatalogExample extends {
|
|
12
|
+
label: string;
|
|
13
|
+
}>({ groups, renderExample, }: GroupedCatalogProps<CatalogExample>) => import("react").JSX.Element;
|
|
14
|
+
export {};
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -3,6 +3,8 @@ export { ComponentStorybookLayout } from './ComponentStorybookLayout';
|
|
|
3
3
|
export type { CatalogDimension, CatalogOptions, } from './decorators/CatalogDecorator';
|
|
4
4
|
export { CatalogDecorator } from './decorators/CatalogDecorator';
|
|
5
5
|
export { ComponentDecorator } from './decorators/ComponentDecorator';
|
|
6
|
+
export { GroupedCatalog } from './GroupedCatalog';
|
|
6
7
|
export { AVATAR_URL_MOCK } from './mocks/avatarUrlMock';
|
|
7
8
|
export type { CatalogStory } from './types/CatalogStory';
|
|
8
9
|
export { overrideMediaQueryMatches } from './utils/overrideMediaQueryMatches';
|
|
10
|
+
export { waitForStorybookFontsLoaded } from './utils/waitForStorybookFontsLoaded';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const waitForStorybookFontsLoaded: () => Promise<void>;
|
package/dist/testing.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const p=require("./theme-1XkFz8Qu.cjs"),w=require("./isDefined-DS2Q42p5.cjs"),B=require("./Heading-CHvEXL6n.cjs");let h=require("@sniptt/guards"),y=require("clsx"),r=require("react/jsx-runtime");var U={test:"error",config:{rules:[{id:"color-contrast",enabled:!1}]}},T="_layout_17ld0_1",j={layout:T},E=({width:e,backgroundColor:A,height:a,children:t})=>(0,r.jsx)("div",{className:j.layout,style:{background:A,height:w.isDefined(a)?`${a}px`:"fit-content",minWidth:e?"unset":"300px",width:e?`${e}px`:"fit-content"},children:t}),V="_columnTitle_5dert_1",M="_rowsTitle_5dert_7",F="_rowTitle_5dert_15",f="_elementTitle_5dert_23",S="_container_5dert_32",b="_columnContainer_5dert_37",k="_rowsContainer_5dert_43",D="_rowContainer_5dert_49",N="_elementContainer_5dert_56",I="_cellContainer_5dert_60",o={columnTitle:V,rowsTitle:M,rowTitle:F,elementTitle:f,container:S,columnContainer:b,rowsContainer:k,rowContainer:D,elementContainer:N,cellContainer:I},m={name:"",values:[void 0],props:()=>({})},g=e=>(0,h.isString)(e)||(0,h.isNumber)(e),L=(e,A)=>{const{catalog:{dimensions:a=[],options:t={}}={dimensions:[],options:{}}}=A.parameters||{};if(!a||!Array.isArray(a))return(0,r.jsx)(e,{});const[n=m,i=m,u=m,C=m]=a;return(0,r.jsx)("div",{className:o.container,children:C.values.map((l,_)=>(0,r.jsxs)("div",{className:o.columnContainer,children:[(0,r.jsx)("div",{className:o.columnTitle,children:C.labels?.(l)??(g(l)?l:"")}),u.values.map((d,R)=>(0,r.jsxs)("div",{className:o.rowsContainer,children:[(0,r.jsx)("div",{className:o.rowsTitle,children:u.labels?.(d)??(g(d)?d:"")}),i.values.map((c,v)=>(0,r.jsxs)("div",{className:o.rowContainer,children:[(0,r.jsx)("div",{className:o.rowTitle,children:i.labels?.(c)??(g(c)?c:"")}),n.values.map((s,Q)=>(0,r.jsxs)("div",{className:o.cellContainer,id:a.length>1?`catalog-cell-${_}-${R}-${v}-${Q}`:s,children:[(0,r.jsx)("span",{className:o.elementTitle,children:n.labels?.(s)??(g(s)?s:"")}),(0,r.jsx)("div",{className:(0,y.clsx)(o.elementContainer,t?.elementContainer?.className),style:{minWidth:t?.elementContainer?.width?`${t.elementContainer.width}px`:"auto",...t?.elementContainer?.style},children:(0,r.jsx)(e,{args:{...A.args,...n.props(s),...i.props(c),...u.props(d),...C.props(l)}})})]},`d1-${Q}`))]},`d2-${v}`))]},`d3-${R}`))]},`d4-${_}`))})},x=(e,A)=>{if(e)switch(A){case"default":return p.themeCssVariables.grayScale.gray11;case"danger":return p.themeCssVariables.color.red;case"blue":return p.themeCssVariables.color.blue;default:return}},O=(e,A)=>{const{container:a}=A.parameters,t=A.args.inverted,n=A.args.accent,i=x(t,n);return(0,r.jsx)(E,{width:a?.width,height:a?.height,backgroundColor:i,children:(0,r.jsx)(e,{})})},K=({groups:e,renderExample:A})=>(0,r.jsx)("div",{style:{display:"grid",gap:"var(--t-spacing-6)",width:"100%"},children:e.map(({label:a,examples:t})=>(0,r.jsxs)("section",{"aria-label":a,children:[(0,r.jsx)(B.Heading,{level:3,children:a}),(0,r.jsx)("div",{style:{display:"flex",flexWrap:"wrap",gap:"var(--t-spacing-6)",marginTop:"var(--t-spacing-3)"},children:t.map(n=>(0,r.jsx)("div",{style:{display:"grid",gap:"var(--t-spacing-2)",justifyItems:"start"},children:A(n)},n.label))})]},a))}),q="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRf/dAAQAAv/aAAwDAQACEQMRAD8Ava1q728otYY98joSCTgZrnbXWdTtrhrfVZXWLafmcAEkdgR/hVltQku9Q8+OIEBcGOT+ID0PY1ka1KH2u8ToqnPLbmIqG7u6LtbQ7RXBRec4Uck9eKXcPWsKDWVnhWSL5kYcFelSf2m3901POh8jP//QoyIAnTuKpXsY82NsksUyWPU5q/L9z8RVK++/F/uCsVsaEURwgA4HtT9x9TUcf3KfUGh//9k=",W=e=>Object.assign(new EventTarget,{media:e,matches:!1,onchange:null,addListener:()=>{},removeListener:()=>{}}),Y=e=>{const A=window.matchMedia;return window.matchMedia=a=>{const t=(0,h.isFunction)(A)?A.call(window,a):W(a),n=e[a];return w.isDefined(n)&&Object.defineProperty(t,"matches",{value:n}),t},()=>{window.matchMedia=A}},J=["400 1em Inter","500 1em Inter","600 1em Inter","700 1em Inter",'400 1em "DM Mono"','500 1em "DM Mono"'],X=async()=>{await Promise.all(J.map(e=>document.fonts.load(e))),await document.fonts.ready};exports.A11Y_DEFER_COLOR_CONTRAST=U;exports.AVATAR_URL_MOCK=q;exports.CatalogDecorator=L;exports.ComponentDecorator=O;exports.ComponentStorybookLayout=E;exports.GroupedCatalog=K;exports.overrideMediaQueryMatches=Y;exports.waitForStorybookFontsLoaded=X;
|
package/dist/testing.mjs
CHANGED
|
@@ -1,108 +1,137 @@
|
|
|
1
|
-
import { t as
|
|
2
|
-
import { a as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
1
|
+
import { t as B } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { a as u } from "./theme-B2EaXhye.js";
|
|
3
|
+
import { t as E } from "./Heading-Nj5BlPqB.js";
|
|
4
|
+
import { isFunction as _, isNumber as U, isString as f } from "@sniptt/guards";
|
|
5
|
+
import { clsx as y } from "clsx";
|
|
6
|
+
import { jsx as a, jsxs as l } from "react/jsx-runtime";
|
|
7
|
+
var P = {
|
|
7
8
|
test: "error",
|
|
8
9
|
config: { rules: [{
|
|
9
10
|
id: "color-contrast",
|
|
10
11
|
enabled: !1
|
|
11
12
|
}] }
|
|
12
|
-
}, T = "_layout_17ld0_1",
|
|
13
|
-
className:
|
|
13
|
+
}, T = "_layout_17ld0_1", V = { layout: T }, F = ({ width: e, backgroundColor: A, height: r, children: t }) => /* @__PURE__ */ a("div", {
|
|
14
|
+
className: V.layout,
|
|
14
15
|
style: {
|
|
15
16
|
background: A,
|
|
16
|
-
height:
|
|
17
|
+
height: B(r) ? `${r}px` : "fit-content",
|
|
17
18
|
minWidth: e ? "unset" : "300px",
|
|
18
19
|
width: e ? `${e}px` : "fit-content"
|
|
19
20
|
},
|
|
20
21
|
children: t
|
|
21
|
-
}), M = "_columnTitle_5dert_1",
|
|
22
|
+
}), M = "_columnTitle_5dert_1", S = "_rowsTitle_5dert_7", N = "_rowTitle_5dert_15", k = "_elementTitle_5dert_23", I = "_container_5dert_32", b = "_columnContainer_5dert_37", D = "_rowsContainer_5dert_43", L = "_rowContainer_5dert_49", K = "_elementContainer_5dert_56", W = "_cellContainer_5dert_60", o = {
|
|
22
23
|
columnTitle: M,
|
|
23
|
-
rowsTitle:
|
|
24
|
-
rowTitle:
|
|
25
|
-
elementTitle:
|
|
26
|
-
container:
|
|
24
|
+
rowsTitle: S,
|
|
25
|
+
rowTitle: N,
|
|
26
|
+
elementTitle: k,
|
|
27
|
+
container: I,
|
|
27
28
|
columnContainer: b,
|
|
28
29
|
rowsContainer: D,
|
|
29
|
-
rowContainer:
|
|
30
|
-
elementContainer:
|
|
31
|
-
cellContainer:
|
|
32
|
-
},
|
|
30
|
+
rowContainer: L,
|
|
31
|
+
elementContainer: K,
|
|
32
|
+
cellContainer: W
|
|
33
|
+
}, g = {
|
|
33
34
|
name: "",
|
|
34
35
|
values: [void 0],
|
|
35
36
|
props: () => ({})
|
|
36
|
-
},
|
|
37
|
+
}, p = (e) => f(e) || U(e), $ = (e, A) => {
|
|
37
38
|
const { catalog: { dimensions: r = [], options: t = {} } = {
|
|
38
39
|
dimensions: [],
|
|
39
40
|
options: {}
|
|
40
41
|
} } = A.parameters || {};
|
|
41
42
|
if (!r || !Array.isArray(r)) return /* @__PURE__ */ a(e, {});
|
|
42
|
-
const [
|
|
43
|
+
const [n = g, i = g, C = g, h = g] = r;
|
|
43
44
|
return /* @__PURE__ */ a("div", {
|
|
44
|
-
className:
|
|
45
|
-
children:
|
|
46
|
-
className:
|
|
45
|
+
className: o.container,
|
|
46
|
+
children: h.values.map((d, v) => /* @__PURE__ */ l("div", {
|
|
47
|
+
className: o.columnContainer,
|
|
47
48
|
children: [/* @__PURE__ */ a("div", {
|
|
48
|
-
className:
|
|
49
|
-
children:
|
|
50
|
-
}),
|
|
51
|
-
className:
|
|
49
|
+
className: o.columnTitle,
|
|
50
|
+
children: h.labels?.(d) ?? (p(d) ? d : "")
|
|
51
|
+
}), C.values.map((c, Q) => /* @__PURE__ */ l("div", {
|
|
52
|
+
className: o.rowsContainer,
|
|
52
53
|
children: [/* @__PURE__ */ a("div", {
|
|
53
|
-
className:
|
|
54
|
-
children:
|
|
55
|
-
}), i.values.map((
|
|
56
|
-
className:
|
|
54
|
+
className: o.rowsTitle,
|
|
55
|
+
children: C.labels?.(c) ?? (p(c) ? c : "")
|
|
56
|
+
}), i.values.map((m, R) => /* @__PURE__ */ l("div", {
|
|
57
|
+
className: o.rowContainer,
|
|
57
58
|
children: [/* @__PURE__ */ a("div", {
|
|
58
|
-
className:
|
|
59
|
-
children: i.labels?.(
|
|
60
|
-
}),
|
|
61
|
-
className:
|
|
62
|
-
id: r.length > 1 ? `catalog-cell-${
|
|
59
|
+
className: o.rowTitle,
|
|
60
|
+
children: i.labels?.(m) ?? (p(m) ? m : "")
|
|
61
|
+
}), n.values.map((s, w) => /* @__PURE__ */ l("div", {
|
|
62
|
+
className: o.cellContainer,
|
|
63
|
+
id: r.length > 1 ? `catalog-cell-${v}-${Q}-${R}-${w}` : s,
|
|
63
64
|
children: [/* @__PURE__ */ a("span", {
|
|
64
|
-
className:
|
|
65
|
-
children:
|
|
65
|
+
className: o.elementTitle,
|
|
66
|
+
children: n.labels?.(s) ?? (p(s) ? s : "")
|
|
66
67
|
}), /* @__PURE__ */ a("div", {
|
|
67
|
-
className:
|
|
68
|
+
className: y(o.elementContainer, t?.elementContainer?.className),
|
|
68
69
|
style: {
|
|
69
70
|
minWidth: t?.elementContainer?.width ? `${t.elementContainer.width}px` : "auto",
|
|
70
71
|
...t?.elementContainer?.style
|
|
71
72
|
},
|
|
72
73
|
children: /* @__PURE__ */ a(e, { args: {
|
|
73
74
|
...A.args,
|
|
74
|
-
...
|
|
75
|
-
...i.props(
|
|
76
|
-
...
|
|
77
|
-
...
|
|
75
|
+
...n.props(s),
|
|
76
|
+
...i.props(m),
|
|
77
|
+
...C.props(c),
|
|
78
|
+
...h.props(d)
|
|
78
79
|
} })
|
|
79
80
|
})]
|
|
80
|
-
}, `d1-${
|
|
81
|
-
}, `d2-${
|
|
82
|
-
}, `d3-${
|
|
83
|
-
}, `d4-${
|
|
81
|
+
}, `d1-${w}`))]
|
|
82
|
+
}, `d2-${R}`))]
|
|
83
|
+
}, `d3-${Q}`))]
|
|
84
|
+
}, `d4-${v}`))
|
|
84
85
|
});
|
|
85
|
-
},
|
|
86
|
+
}, j = (e, A) => {
|
|
86
87
|
if (e)
|
|
87
88
|
switch (A) {
|
|
88
89
|
case "default":
|
|
89
|
-
return
|
|
90
|
+
return u.grayScale.gray11;
|
|
90
91
|
case "danger":
|
|
91
|
-
return
|
|
92
|
+
return u.color.red;
|
|
92
93
|
case "blue":
|
|
93
|
-
return
|
|
94
|
+
return u.color.blue;
|
|
94
95
|
default:
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
|
-
},
|
|
98
|
-
const { container: r } = A.parameters, t = A.args.inverted,
|
|
98
|
+
}, x = (e, A) => {
|
|
99
|
+
const { container: r } = A.parameters, t = A.args.inverted, n = A.args.accent, i = j(t, n);
|
|
99
100
|
return /* @__PURE__ */ a(F, {
|
|
100
101
|
width: r?.width,
|
|
101
102
|
height: r?.height,
|
|
102
103
|
backgroundColor: i,
|
|
103
104
|
children: /* @__PURE__ */ a(e, {})
|
|
104
105
|
});
|
|
105
|
-
},
|
|
106
|
+
}, z = ({ groups: e, renderExample: A }) => /* @__PURE__ */ a("div", {
|
|
107
|
+
style: {
|
|
108
|
+
display: "grid",
|
|
109
|
+
gap: "var(--t-spacing-6)",
|
|
110
|
+
width: "100%"
|
|
111
|
+
},
|
|
112
|
+
children: e.map(({ label: r, examples: t }) => /* @__PURE__ */ l("section", {
|
|
113
|
+
"aria-label": r,
|
|
114
|
+
children: [/* @__PURE__ */ a(E, {
|
|
115
|
+
level: 3,
|
|
116
|
+
children: r
|
|
117
|
+
}), /* @__PURE__ */ a("div", {
|
|
118
|
+
style: {
|
|
119
|
+
display: "flex",
|
|
120
|
+
flexWrap: "wrap",
|
|
121
|
+
gap: "var(--t-spacing-6)",
|
|
122
|
+
marginTop: "var(--t-spacing-3)"
|
|
123
|
+
},
|
|
124
|
+
children: t.map((n) => /* @__PURE__ */ a("div", {
|
|
125
|
+
style: {
|
|
126
|
+
display: "grid",
|
|
127
|
+
gap: "var(--t-spacing-2)",
|
|
128
|
+
justifyItems: "start"
|
|
129
|
+
},
|
|
130
|
+
children: A(n)
|
|
131
|
+
}, n.label))
|
|
132
|
+
})]
|
|
133
|
+
}, r))
|
|
134
|
+
}), ee = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAYABgAAD/4QCMRXhpZgAATU0AKgAAAAgABQESAAMAAAABAAEAAAEaAAUAAAABAAAASgEbAAUAAAABAAAAUgEoAAMAAAABAAIAAIdpAAQAAAABAAAAWgAAAAAAAABgAAAAAQAAAGAAAAABAAOgAQADAAAAAQABAACgAgAEAAAAAQAAABSgAwAEAAAAAQAAABQAAAAA/8AAEQgAFAAUAwEiAAIRAQMRAf/EAB8AAAEFAQEBAQEBAAAAAAAAAAABAgMEBQYHCAkKC//EALUQAAIBAwMCBAMFBQQEAAABfQECAwAEEQUSITFBBhNRYQcicRQygZGhCCNCscEVUtHwJDNicoIJChYXGBkaJSYnKCkqNDU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6g4SFhoeIiYqSk5SVlpeYmZqio6Slpqeoqaqys7S1tre4ubrCw8TFxsfIycrS09TV1tfY2drh4uPk5ebn6Onq8fLz9PX29/j5+v/EAB8BAAMBAQEBAQEBAQEAAAAAAAABAgMEBQYHCAkKC//EALURAAIBAgQEAwQHBQQEAAECdwABAgMRBAUhMQYSQVEHYXETIjKBCBRCkaGxwQkjM1LwFWJy0QoWJDThJfEXGBkaJicoKSo1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoKDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uLj5OXm5+jp6vLz9PX29/j5+v/bAEMACwgICggHCwoJCg0MCw0RHBIRDw8RIhkaFBwpJCsqKCQnJy0yQDctMD0wJyc4TDk9Q0VISUgrNk9VTkZUQEdIRf/bAEMBDA0NEQ8RIRISIUUuJy5FRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRUVFRf/dAAQAAv/aAAwDAQACEQMRAD8Ava1q728otYY98joSCTgZrnbXWdTtrhrfVZXWLafmcAEkdgR/hVltQku9Q8+OIEBcGOT+ID0PY1ka1KH2u8ToqnPLbmIqG7u6LtbQ7RXBRec4Uck9eKXcPWsKDWVnhWSL5kYcFelSf2m3901POh8jP//QoyIAnTuKpXsY82NsksUyWPU5q/L9z8RVK++/F/uCsVsaEURwgA4HtT9x9TUcf3KfUGh//9k=", Y = (e) => Object.assign(new EventTarget(), {
|
|
106
135
|
media: e,
|
|
107
136
|
matches: !1,
|
|
108
137
|
onchange: null,
|
|
@@ -110,20 +139,31 @@ var q = {
|
|
|
110
139
|
},
|
|
111
140
|
removeListener: () => {
|
|
112
141
|
}
|
|
113
|
-
}),
|
|
142
|
+
}), re = (e) => {
|
|
114
143
|
const A = window.matchMedia;
|
|
115
144
|
return window.matchMedia = (r) => {
|
|
116
|
-
const t = _(A) ? A.call(window, r) :
|
|
117
|
-
return
|
|
145
|
+
const t = _(A) ? A.call(window, r) : Y(r), n = e[r];
|
|
146
|
+
return B(n) && Object.defineProperty(t, "matches", { value: n }), t;
|
|
118
147
|
}, () => {
|
|
119
148
|
window.matchMedia = A;
|
|
120
149
|
};
|
|
150
|
+
}, O = [
|
|
151
|
+
"400 1em Inter",
|
|
152
|
+
"500 1em Inter",
|
|
153
|
+
"600 1em Inter",
|
|
154
|
+
"700 1em Inter",
|
|
155
|
+
'400 1em "DM Mono"',
|
|
156
|
+
'500 1em "DM Mono"'
|
|
157
|
+
], Ae = async () => {
|
|
158
|
+
await Promise.all(O.map((e) => document.fonts.load(e))), await document.fonts.ready;
|
|
121
159
|
};
|
|
122
160
|
export {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
161
|
+
P as A11Y_DEFER_COLOR_CONTRAST,
|
|
162
|
+
ee as AVATAR_URL_MOCK,
|
|
163
|
+
$ as CatalogDecorator,
|
|
164
|
+
x as ComponentDecorator,
|
|
127
165
|
F as ComponentStorybookLayout,
|
|
128
|
-
|
|
166
|
+
z as GroupedCatalog,
|
|
167
|
+
re as overrideMediaQueryMatches,
|
|
168
|
+
Ae as waitForStorybookFontsLoaded
|
|
129
169
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { n as r } from "./Shortcut-
|
|
2
|
-
import { n as e } from "./OverflowingTextWithTooltip-
|
|
1
|
+
import { n as r } from "./Shortcut-Bp9iDdQg.js";
|
|
2
|
+
import { n as e } from "./OverflowingTextWithTooltip-BtB9cGdJ.js";
|
|
3
3
|
import { jsx as i } from "react/jsx-runtime";
|
|
4
4
|
var v = ({ mode: o, children: t }) => /* @__PURE__ */ i(e.Provider, {
|
|
5
5
|
value: o,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const t=require("./Shortcut-
|
|
1
|
+
const t=require("./Shortcut-N8TELGPI.cjs"),o=require("./OverflowingTextWithTooltip-BQmpPObX.cjs");let i=require("react/jsx-runtime");var n=({mode:e,children:r})=>(0,i.jsx)(o.OverflowingTextTooltipModeContext.Provider,{value:e,children:r}),u=e=>t.getShortcutPresentation(e).text;Object.defineProperty(exports,"OverflowingTextTooltipModeProvider",{enumerable:!0,get:function(){return n}});Object.defineProperty(exports,"formatShortcut",{enumerable:!0,get:function(){return u}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const S=require("./theme-1XkFz8Qu.cjs"),u=require("./isDefined-DS2Q42p5.cjs"),s=require("./doNotTranslate-CHE7WmRS.cjs");let a=require("@sniptt/guards"),c=require("react");var l=()=>{const r=globalThis.navigator?.userAgent;if(!(0,a.isString)(r))return"unknown";const e=r.toLowerCase();return e.includes("ios")||e.includes("iphone")||e.includes("ipad")?"ios":e.includes(s.doNotTranslate("mac os x"))||e.includes("macos")?"mac":e.includes("windows")?"windows":e.includes("android")?"android":e.includes("linux")?"linux":"unknown"},o=s.doNotTranslate("(max-width: 768px)"),f={getSnapshot:()=>!1,subscribe:()=>()=>{}},i=new WeakMap,g=r=>({getSnapshot:()=>r.matches,subscribe:e=>(r.addEventListener("change",e),()=>r.removeEventListener("change",e))}),y=r=>{const e=i.get(r);if(u.isDefined(e))return e;const t=new Map;return i.set(r,t),t},M=r=>{if(typeof window>"u"||!(0,a.isFunction)(window.matchMedia))return f;const e=y(window.matchMedia),t=e.get(r);if(u.isDefined(t))return t;const n=g(window.matchMedia(r));return e.set(r,n),n},m=()=>!1,d=r=>{const{subscribe:e,getSnapshot:t}=M(r);return(0,c.useSyncExternalStore)(e,t,m)},w=()=>d(o);Object.defineProperty(exports,"MOBILE_MEDIA_QUERY",{enumerable:!0,get:function(){return o}});Object.defineProperty(exports,"getUserDevice",{enumerable:!0,get:function(){return l}});Object.defineProperty(exports,"useIsMobile",{enumerable:!0,get:function(){return w}});Object.defineProperty(exports,"useMediaQuery",{enumerable:!0,get:function(){return d}});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { t as s } from "./isDefined-fMi6eQ4r.js";
|
|
2
|
+
import { t as a } from "./doNotTranslate-BSVT8Xyd.js";
|
|
3
|
+
import "./theme-B2EaXhye.js";
|
|
4
|
+
import { isFunction as o, isString as u } from "@sniptt/guards";
|
|
5
|
+
import { useSyncExternalStore as d } from "react";
|
|
6
|
+
var E = () => {
|
|
7
|
+
const r = globalThis.navigator?.userAgent;
|
|
8
|
+
if (!u(r)) return "unknown";
|
|
9
|
+
const e = r.toLowerCase();
|
|
10
|
+
return e.includes("ios") || e.includes("iphone") || e.includes("ipad") ? "ios" : e.includes(a("mac os x")) || e.includes("macos") ? "mac" : e.includes("windows") ? "windows" : e.includes("android") ? "android" : e.includes("linux") ? "linux" : "unknown";
|
|
11
|
+
}, c = a("(max-width: 768px)"), m = {
|
|
12
|
+
getSnapshot: () => !1,
|
|
13
|
+
subscribe: () => () => {
|
|
14
|
+
}
|
|
15
|
+
}, i = /* @__PURE__ */ new WeakMap(), f = (r) => ({
|
|
16
|
+
getSnapshot: () => r.matches,
|
|
17
|
+
subscribe: (e) => (r.addEventListener("change", e), () => r.removeEventListener("change", e))
|
|
18
|
+
}), l = (r) => {
|
|
19
|
+
const e = i.get(r);
|
|
20
|
+
if (s(e)) return e;
|
|
21
|
+
const t = /* @__PURE__ */ new Map();
|
|
22
|
+
return i.set(r, t), t;
|
|
23
|
+
}, w = (r) => {
|
|
24
|
+
if (typeof window > "u" || !o(window.matchMedia)) return m;
|
|
25
|
+
const e = l(window.matchMedia), t = e.get(r);
|
|
26
|
+
if (s(t)) return t;
|
|
27
|
+
const n = f(window.matchMedia(r));
|
|
28
|
+
return e.set(r, n), n;
|
|
29
|
+
}, S = () => !1, p = (r) => {
|
|
30
|
+
const { subscribe: e, getSnapshot: t } = w(r);
|
|
31
|
+
return d(e, t, S);
|
|
32
|
+
}, b = () => p(c);
|
|
33
|
+
export {
|
|
34
|
+
E as i,
|
|
35
|
+
p as n,
|
|
36
|
+
c as r,
|
|
37
|
+
b as t
|
|
38
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const doNotTranslate: <TValue>(value: TValue) => TValue;
|