@alma-oss/spirit-web-react 4.2.0 → 4.3.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/README.md +11 -11
- package/bundles/web-react.umd.js +33199 -32811
- package/bundles/web-react.umd.js.map +1 -1
- package/bundles/web-react.umd.min.js +3 -3
- package/bundles/web-react.umd.min.js.map +1 -1
- package/common/common.cjs.map +1 -1
- package/common/utilities/utilities.cjs.map +1 -1
- package/components/Accordion/Accordion.cjs +33 -25
- package/components/Accordion/Accordion.cjs.map +1 -1
- package/components/Accordion/Accordion.d.ts +2 -8
- package/components/Accordion/Accordion.js +8 -7
- package/components/Accordion/Accordion.js.map +1 -1
- package/components/Accordion/AccordionContext.d.ts +5 -5
- package/components/Accordion/AccordionContext.js.map +1 -1
- package/components/Accordion/AccordionHeader.d.ts +2 -8
- package/components/Accordion/AccordionHeader.js +8 -7
- package/components/Accordion/AccordionHeader.js.map +1 -1
- package/components/Accordion/AccordionItem.d.ts +2 -8
- package/components/Accordion/AccordionItem.js +8 -7
- package/components/Accordion/AccordionItem.js.map +1 -1
- package/components/Accordion/UncontrolledAccordion.d.ts +2 -3
- package/components/Accordion/UncontrolledAccordion.js +1 -2
- package/components/Accordion/UncontrolledAccordion.js.map +1 -1
- package/components/Accordion/useAccordion.d.ts +2 -2
- package/components/Accordion/useAccordion.js.map +1 -1
- package/components/Accordion/useAccordionStyleProps.d.ts +2 -3
- package/components/Accordion/useAccordionStyleProps.js.map +1 -1
- package/components/ActionGroup/ActionGroup.cjs +17 -11
- package/components/ActionGroup/ActionGroup.cjs.map +1 -1
- package/components/Alert/Alert.cjs +17 -7
- package/components/Alert/Alert.cjs.map +1 -1
- package/components/Alert/Alert.d.ts +2 -6
- package/components/Alert/Alert.js +9 -5
- package/components/Alert/Alert.js.map +1 -1
- package/components/Alert/useAlertIcon.d.ts +1 -1
- package/components/Alert/useAlertStyleProps.d.ts +4 -5
- package/components/Alert/useAlertStyleProps.js.map +1 -1
- package/components/Avatar/Avatar.cjs +41 -16
- package/components/Avatar/Avatar.cjs.map +1 -1
- package/components/Avatar/Avatar.d.ts +2 -5
- package/components/Avatar/Avatar.js +6 -6
- package/components/Avatar/Avatar.js.map +1 -1
- package/components/Avatar/useAvatarStyleProps.d.ts +4 -4
- package/components/Avatar/useAvatarStyleProps.js +5 -5
- package/components/Avatar/useAvatarStyleProps.js.map +1 -1
- package/components/Box/Box.cjs +15 -9
- package/components/Box/Box.cjs.map +1 -1
- package/components/Box/Box.d.ts +3 -8
- package/components/Box/Box.js +8 -7
- package/components/Box/Box.js.map +1 -1
- package/components/Box/useBoxStyleProps.d.ts +2 -2
- package/components/Breadcrumbs/Breadcrumbs.cjs +14 -6
- package/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
- package/components/Breadcrumbs/Breadcrumbs.d.ts +1 -1
- package/components/Button/Button.cjs +68 -21
- package/components/Button/Button.cjs.map +1 -1
- package/components/Button/Button.d.ts +2 -2
- package/components/Button/Button.js +5 -3
- package/components/Button/Button.js.map +1 -1
- package/components/Button/useButtonStyleProps.d.ts +19 -6
- package/components/Button/useButtonStyleProps.js +6 -6
- package/components/Button/useButtonStyleProps.js.map +1 -1
- package/components/ButtonLink/ButtonLink.d.ts +2 -2
- package/components/ButtonLink/ButtonLink.js +5 -3
- package/components/ButtonLink/ButtonLink.js.map +1 -1
- package/components/ButtonLink/useButtonLinkProps.d.ts +10 -4
- package/components/ButtonLink/useButtonLinkProps.js.map +1 -1
- package/components/ButtonLink/useButtonLinkStyleProps.d.ts +19 -6
- package/components/ButtonLink/useButtonLinkStyleProps.js +6 -6
- package/components/ButtonLink/useButtonLinkStyleProps.js.map +1 -1
- package/components/Card/Card.cjs +13 -6
- package/components/Card/Card.cjs.map +1 -1
- package/components/Card/Card.d.ts +1 -1
- package/components/Card/Card.js +2 -2
- package/components/Card/Card.js.map +1 -1
- package/components/Card/CardLink.d.ts +2 -4
- package/components/Card/CardLink.js +1 -0
- package/components/Card/CardLink.js.map +1 -1
- package/components/Card/CardTitle.d.ts +1 -1
- package/components/Card/useCardStyleProps.d.ts +2 -1
- package/components/Card/useCardStyleProps.js +2 -1
- package/components/Card/useCardStyleProps.js.map +1 -1
- package/components/Checkbox/Checkbox.cjs +56 -5
- package/components/Checkbox/Checkbox.cjs.map +1 -1
- package/components/Checkbox/Checkbox.d.ts +2 -3
- package/components/Checkbox/Checkbox.js +1 -0
- package/components/Checkbox/Checkbox.js.map +1 -1
- package/components/Checkbox/useCheckboxStyleProps.js +5 -2
- package/components/Checkbox/useCheckboxStyleProps.js.map +1 -1
- package/components/Collapse/Collapse.cjs +10 -5
- package/components/Collapse/Collapse.cjs.map +1 -1
- package/components/Container/Container.cjs +4 -2
- package/components/Container/Container.cjs.map +1 -1
- package/components/ControlButton/ControlButton.d.ts +2 -2
- package/components/ControlButton/ControlButton.js +5 -3
- package/components/ControlButton/ControlButton.js.map +1 -1
- package/components/ControlButton/useControlButtonStyleProps.d.ts +19 -6
- package/components/ControlButton/useControlButtonStyleProps.js +3 -4
- package/components/ControlButton/useControlButtonStyleProps.js.map +1 -1
- package/components/Dialog/Dialog.cjs +42 -11
- package/components/Dialog/Dialog.cjs.map +1 -1
- package/components/Dialog/Dialog.d.ts +3 -4
- package/components/Dialog/Dialog.js +4 -2
- package/components/Dialog/Dialog.js.map +1 -1
- package/components/Dialog/constants.d.ts +1 -0
- package/components/Dialog/constants.js +2 -0
- package/components/Dialog/constants.js.map +1 -0
- package/components/Dialog/useDialog.js +38 -9
- package/components/Dialog/useDialog.js.map +1 -1
- package/components/Divider/Divider.cjs +4 -2
- package/components/Divider/Divider.cjs.map +1 -1
- package/components/Drawer/Drawer.cjs +175 -38
- package/components/Drawer/Drawer.cjs.map +1 -1
- package/components/Drawer/DrawerCloseButton.js +4 -4
- package/components/Drawer/DrawerCloseButton.js.map +1 -1
- package/components/Drawer/DrawerPanel.d.ts +3 -3
- package/components/Drawer/DrawerPanel.js +5 -3
- package/components/Drawer/DrawerPanel.js.map +1 -1
- package/components/Drawer/constants.d.ts +0 -1
- package/components/Drawer/constants.js +0 -1
- package/components/Drawer/constants.js.map +1 -1
- package/components/Dropdown/Dropdown.cjs +8 -3
- package/components/Dropdown/Dropdown.cjs.map +1 -1
- package/components/Dropdown/DropdownTrigger.d.ts +1 -1
- package/components/EmptyState/EmptyState.cjs +43 -17
- package/components/EmptyState/EmptyState.cjs.map +1 -1
- package/components/Field/Field.cjs +10 -4
- package/components/Field/Field.cjs.map +1 -1
- package/components/Field/HelperText.d.ts +1 -1
- package/components/Field/Label.d.ts +1 -1
- package/components/Field/ValidationText.d.ts +1 -1
- package/components/Field/ValidationText.js +1 -1
- package/components/Field/ValidationText.js.map +1 -1
- package/components/Field/types.d.ts +3 -3
- package/components/FieldGroup/FieldGroup.cjs +10 -4
- package/components/FieldGroup/FieldGroup.cjs.map +1 -1
- package/components/FileUploader/FileUploader.cjs +77 -15
- package/components/FileUploader/FileUploader.cjs.map +1 -1
- package/components/FileUploader/FileUploaderAttachment.js +8 -5
- package/components/FileUploader/FileUploaderAttachment.js.map +1 -1
- package/components/FileUploader/FileUploaderList.js +5 -4
- package/components/FileUploader/FileUploaderList.js.map +1 -1
- package/components/FileUploader/constants.d.ts +0 -3
- package/components/FileUploader/constants.js +0 -3
- package/components/FileUploader/constants.js.map +1 -1
- package/components/FileUploader/useFileUploaderInput.js.map +1 -1
- package/components/Flex/Flex.cjs +17 -11
- package/components/Flex/Flex.cjs.map +1 -1
- package/components/Flex/Flex.d.ts +2 -8
- package/components/Flex/Flex.js +8 -7
- package/components/Flex/Flex.js.map +1 -1
- package/components/Flex/useFlexStyleProps.d.ts +3 -3
- package/components/Flex/useFlexStyleProps.js.map +1 -1
- package/components/Footer/Footer.cjs +17 -9
- package/components/Footer/Footer.cjs.map +1 -1
- package/components/Footer/Footer.d.ts +2 -6
- package/components/Footer/Footer.js +10 -7
- package/components/Footer/Footer.js.map +1 -1
- package/components/Grid/Grid.cjs +34 -22
- package/components/Grid/Grid.cjs.map +1 -1
- package/components/Grid/Grid.d.ts +2 -8
- package/components/Grid/Grid.js +8 -7
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/GridItem.d.ts +2 -8
- package/components/Grid/GridItem.js +11 -7
- package/components/Grid/GridItem.js.map +1 -1
- package/components/Grid/useGridItemStyleProps.js +7 -5
- package/components/Grid/useGridItemStyleProps.js.map +1 -1
- package/components/Header/Header.cjs +120 -38
- package/components/Header/Header.cjs.map +1 -1
- package/components/Header/HeaderDialogContext.d.ts +2 -2
- package/components/Header/HeaderDialogContext.js.map +1 -1
- package/components/Header/HeaderDialogLink.d.ts +2 -3
- package/components/Header/HeaderDialogLink.js +5 -3
- package/components/Header/HeaderDialogLink.js.map +1 -1
- package/components/Header/HeaderLink.d.ts +2 -3
- package/components/Header/HeaderLink.js +5 -3
- package/components/Header/HeaderLink.js.map +1 -1
- package/components/Heading/Heading.cjs +8 -3
- package/components/Heading/Heading.cjs.map +1 -1
- package/components/Heading/Heading.d.ts +1 -1
- package/components/Heading/Heading.js.map +1 -1
- package/components/Heading/useHeadingStyleProps.d.ts +3 -3
- package/components/Heading/useHeadingStyleProps.js.map +1 -1
- package/components/Hidden/Hidden.d.ts +3 -0
- package/components/Hidden/Hidden.js +32 -0
- package/components/Hidden/Hidden.js.map +1 -0
- package/components/Hidden/index.d.ts +1 -0
- package/components/Hidden/index.js +2 -0
- package/components/Hidden/index.js.map +1 -0
- package/components/Icon/Icon.cjs +5 -2
- package/components/Icon/Icon.cjs.map +1 -1
- package/components/Icon/Icon.d.ts +2 -3
- package/components/Icon/Icon.js +1 -0
- package/components/Icon/Icon.js.map +1 -1
- package/components/Icon/useIconStyleProps.d.ts +6 -1322
- package/components/Icon/useIconStyleProps.js.map +1 -1
- package/components/IconBox/IconBox.cjs +21 -11
- package/components/IconBox/IconBox.cjs.map +1 -1
- package/components/IconBox/IconBox.d.ts +2 -6
- package/components/IconBox/IconBox.js +6 -3
- package/components/IconBox/IconBox.js.map +1 -1
- package/components/IconBox/useIconBoxStyleProps.d.ts +2 -2
- package/components/Item/Item.cjs +9 -3
- package/components/Item/Item.cjs.map +1 -1
- package/components/Item/Item.d.ts +1 -1
- package/components/Link/Link.cjs +13 -6
- package/components/Link/Link.cjs.map +1 -1
- package/components/Link/Link.d.ts +2 -3
- package/components/Link/Link.js +5 -3
- package/components/Link/Link.js.map +1 -1
- package/components/Link/useLinkStyleProps.d.ts +5 -7
- package/components/Link/useLinkStyleProps.js.map +1 -1
- package/components/Matrix/Matrix.cjs +8 -3
- package/components/Matrix/Matrix.cjs.map +1 -1
- package/components/Matrix/Matrix.d.ts +1 -1
- package/components/Matrix/Matrix.js +3 -3
- package/components/Matrix/Matrix.js.map +1 -1
- package/components/Matrix/{constant.js → constants.js} +1 -1
- package/components/Matrix/constants.js.map +1 -0
- package/components/Matrix/useMatrixStyleProps.d.ts +1 -1
- package/components/Matrix/useMatrixStyleProps.js +1 -1
- package/components/Matrix/useMatrixStyleProps.js.map +1 -1
- package/components/Modal/Modal.cjs +184 -46
- package/components/Modal/Modal.cjs.map +1 -1
- package/components/Modal/ModalCloseButton.js +5 -3
- package/components/Modal/ModalCloseButton.js.map +1 -1
- package/components/Modal/ModalDialog.d.ts +4 -3
- package/components/Modal/ModalDialog.js +8 -5
- package/components/Modal/ModalDialog.js.map +1 -1
- package/components/Modal/ModalHeader.js +5 -4
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/useModalDialogStyleProps.d.ts +11 -833
- package/components/Modal/useModalDialogStyleProps.js +1 -2
- package/components/Modal/useModalDialogStyleProps.js.map +1 -1
- package/components/Navigation/Navigation.cjs +47 -19
- package/components/Navigation/Navigation.cjs.map +1 -1
- package/components/Navigation/NavigationAction.d.ts +3 -3
- package/components/Navigation/NavigationAction.js +1 -0
- package/components/Navigation/NavigationAction.js.map +1 -1
- package/components/Navigation/NavigationAvatar.d.ts +3 -3
- package/components/Navigation/NavigationAvatar.js +5 -3
- package/components/Navigation/NavigationAvatar.js.map +1 -1
- package/components/NoSsr/NoSsr.cjs.map +1 -1
- package/components/Pagination/Pagination.cjs +155 -44
- package/components/Pagination/Pagination.cjs.map +1 -1
- package/components/Pagination/PaginationButtonLink.d.ts +2 -3
- package/components/Pagination/PaginationButtonLink.js +6 -5
- package/components/Pagination/PaginationButtonLink.js.map +1 -1
- package/components/Pagination/PaginationLink.d.ts +3 -3
- package/components/Pagination/PaginationLink.js +8 -6
- package/components/Pagination/PaginationLink.js.map +1 -1
- package/components/Pagination/PaginationLinkNext.d.ts +2 -3
- package/components/Pagination/PaginationLinkNext.js +6 -3
- package/components/Pagination/PaginationLinkNext.js.map +1 -1
- package/components/Pagination/PaginationLinkPrevious.d.ts +2 -3
- package/components/Pagination/PaginationLinkPrevious.js +6 -3
- package/components/Pagination/PaginationLinkPrevious.js.map +1 -1
- package/components/Pagination/UncontrolledPagination.js +9 -5
- package/components/Pagination/UncontrolledPagination.js.map +1 -1
- package/components/Pagination/index.d.ts +0 -1
- package/components/Pagination/index.js +0 -1
- package/components/Pagination/index.js.map +1 -1
- package/components/PartnerLogo/PartnerLogo.cjs +4 -2
- package/components/PartnerLogo/PartnerLogo.cjs.map +1 -1
- package/components/Pill/Pill.cjs +8 -3
- package/components/Pill/Pill.cjs.map +1 -1
- package/components/Pill/Pill.d.ts +1 -1
- package/components/Pill/usePillStyleProps.d.ts +1 -1
- package/components/PricingPlan/PricingPlan.cjs +196 -53
- package/components/PricingPlan/PricingPlan.cjs.map +1 -1
- package/components/PricingPlan/PricingPlan.d.ts +1 -1
- package/components/PricingPlan/PricingPlanBody.d.ts +1 -1
- package/components/PricingPlan/PricingPlanFooter.d.ts +1 -1
- package/components/PricingPlan/PricingPlanHeader.d.ts +1 -1
- package/components/ProductLogo/ProductLogo.cjs +4 -2
- package/components/ProductLogo/ProductLogo.cjs.map +1 -1
- package/components/Radio/Radio.cjs +55 -4
- package/components/Radio/Radio.cjs.map +1 -1
- package/components/Radio/Radio.d.ts +2 -3
- package/components/Radio/Radio.js +1 -0
- package/components/Radio/Radio.js.map +1 -1
- package/components/Radio/useRadioStyleProps.js +5 -2
- package/components/Radio/useRadioStyleProps.js.map +1 -1
- package/components/ScrollView/ScrollView.cjs +53 -9
- package/components/ScrollView/ScrollView.cjs.map +1 -1
- package/components/ScrollView/useScrollPosition.js.map +1 -1
- package/components/Section/Section.cjs +16 -9
- package/components/Section/Section.cjs.map +1 -1
- package/components/Section/Section.d.ts +2 -6
- package/components/Section/Section.js +8 -6
- package/components/Section/Section.js.map +1 -1
- package/components/Section/useSectionSizeProps.d.ts +4 -6
- package/components/Section/useSectionSizeProps.js +1 -1
- package/components/Section/useSectionSizeProps.js.map +1 -1
- package/components/Section/useSectionStyleProps.d.ts +3 -5
- package/components/Section/useSectionStyleProps.js.map +1 -1
- package/components/SegmentedControl/SegmentedControl.cjs +13 -6
- package/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/components/SegmentedControl/SegmentedControlContext.js.map +1 -1
- package/components/SegmentedControl/SegmentedControlItem.d.ts +2 -3
- package/components/SegmentedControl/SegmentedControlItem.js +5 -3
- package/components/SegmentedControl/SegmentedControlItem.js.map +1 -1
- package/components/Select/Select.cjs +11 -4
- package/components/Select/Select.cjs.map +1 -1
- package/components/Select/Select.d.ts +2 -3
- package/components/Select/Select.js +1 -0
- package/components/Select/Select.js.map +1 -1
- package/components/Skeleton/Skeleton.cjs +8 -3
- package/components/Skeleton/Skeleton.cjs.map +1 -1
- package/components/Skeleton/SkeletonHeading.d.ts +1 -1
- package/components/Skeleton/SkeletonShape.d.ts +1 -1
- package/components/Skeleton/SkeletonText.d.ts +1 -1
- package/components/Skeleton/useSkeletonShapeStyleProps.d.ts +10 -848
- package/components/Skeleton/useSkeletonShapeStyleProps.js.map +1 -1
- package/components/Skeleton/useSkeletonStyleProps.d.ts +1 -1
- package/components/SkipLink/SkipLink.cjs +5 -2
- package/components/SkipLink/SkipLink.cjs.map +1 -1
- package/components/SkipLink/SkipLink.d.ts +3 -3
- package/components/SkipLink/SkipLink.js +1 -0
- package/components/SkipLink/SkipLink.js.map +1 -1
- package/components/Slider/Slider.cjs +11 -4
- package/components/Slider/Slider.cjs.map +1 -1
- package/components/Slider/Slider.d.ts +2 -3
- package/components/Slider/Slider.js +1 -0
- package/components/Slider/Slider.js.map +1 -1
- package/components/Spinner/Spinner.cjs +5 -2
- package/components/Spinner/Spinner.cjs.map +1 -1
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/SplitButton/SplitButton.cjs +130 -27
- package/components/SplitButton/SplitButton.cjs.map +1 -1
- package/components/SplitButton/UncontrolledSplitButton.js +6 -5
- package/components/SplitButton/UncontrolledSplitButton.js.map +1 -1
- package/components/Stack/Stack.cjs +27 -13
- package/components/Stack/Stack.cjs.map +1 -1
- package/components/Stack/Stack.d.ts +2 -6
- package/components/Stack/Stack.js +8 -5
- package/components/Stack/Stack.js.map +1 -1
- package/components/Stack/StackItem.d.ts +2 -6
- package/components/Stack/StackItem.js +11 -5
- package/components/Stack/StackItem.js.map +1 -1
- package/components/Stack/useStackStyleProps.d.ts +19 -10
- package/components/Stack/useStackStyleProps.js.map +1 -1
- package/components/Tabs/TabContext.js.map +1 -1
- package/components/Tabs/TabLink.d.ts +2 -3
- package/components/Tabs/TabLink.js +5 -3
- package/components/Tabs/TabLink.js.map +1 -1
- package/components/Tabs/Tabs.cjs +13 -6
- package/components/Tabs/Tabs.cjs.map +1 -1
- package/components/Tag/Tag.cjs +13 -6
- package/components/Tag/Tag.cjs.map +1 -1
- package/components/Tag/Tag.d.ts +3 -3
- package/components/Tag/Tag.js +5 -3
- package/components/Tag/Tag.js.map +1 -1
- package/components/Tag/useTagStyleProps.d.ts +1 -1
- package/components/Text/Text.cjs +8 -3
- package/components/Text/Text.cjs.map +1 -1
- package/components/Text/Text.d.ts +1 -1
- package/components/Text/Text.js.map +1 -1
- package/components/Text/useTextStyleProps.d.ts +3 -3
- package/components/Text/useTextStyleProps.js.map +1 -1
- package/components/TextArea/TextArea.cjs +74 -12
- package/components/TextArea/TextArea.cjs.map +1 -1
- package/components/TextArea/TextArea.d.ts +2 -3
- package/components/TextArea/TextArea.js +1 -0
- package/components/TextArea/TextArea.js.map +1 -1
- package/components/TextArea/useAdjustHeight.js.map +1 -1
- package/components/TextField/TextField.cjs +74 -12
- package/components/TextField/TextField.cjs.map +1 -1
- package/components/TextField/TextField.d.ts +2 -3
- package/components/TextField/TextField.js +1 -0
- package/components/TextField/TextField.js.map +1 -1
- package/components/TextFieldBase/TextFieldBase.cjs +73 -12
- package/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.d.ts +2 -6
- package/components/TextFieldBase/TextFieldBase.js +1 -0
- package/components/TextFieldBase/TextFieldBase.js.map +1 -1
- package/components/TextFieldBase/TextFieldBaseInput.d.ts +2 -3
- package/components/TextFieldBase/TextFieldBaseInput.js +3 -2
- package/components/TextFieldBase/TextFieldBaseInput.js.map +1 -1
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js +3 -4
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js.map +1 -1
- package/components/Timeline/Timeline.cjs +8 -3
- package/components/Timeline/Timeline.cjs.map +1 -1
- package/components/Timeline/Timeline.d.ts +1 -1
- package/components/Timeline/TimelineStep.d.ts +1 -1
- package/components/Toast/Toast.cjs +79 -12
- package/components/Toast/Toast.cjs.map +1 -1
- package/components/Toast/ToastBar.js +6 -4
- package/components/Toast/ToastBar.js.map +1 -1
- package/components/Toast/ToastBarLink.d.ts +2 -3
- package/components/Toast/ToastBarLink.js +5 -3
- package/components/Toast/ToastBarLink.js.map +1 -1
- package/components/Toast/ToastContext.js +2 -2
- package/components/Toast/ToastContext.js.map +1 -1
- package/components/Toast/UncontrolledToast.js +5 -3
- package/components/Toast/UncontrolledToast.js.map +1 -1
- package/components/Toast/constants.d.ts +0 -1
- package/components/Toast/constants.js +0 -1
- package/components/Toast/constants.js.map +1 -1
- package/components/Toggle/Toggle.cjs +57 -5
- package/components/Toggle/Toggle.cjs.map +1 -1
- package/components/Toggle/Toggle.d.ts +2 -3
- package/components/Toggle/Toggle.js +1 -0
- package/components/Toggle/Toggle.js.map +1 -1
- package/components/Toggle/useToggleStyleProps.js +5 -2
- package/components/Toggle/useToggleStyleProps.js.map +1 -1
- package/components/Tooltip/Tooltip.cjs +78 -10
- package/components/Tooltip/Tooltip.cjs.map +1 -1
- package/components/Tooltip/Tooltip.d.ts +2 -6
- package/components/Tooltip/Tooltip.js +9 -6
- package/components/Tooltip/Tooltip.js.map +1 -1
- package/components/Tooltip/TooltipCloseButton.js +5 -3
- package/components/Tooltip/TooltipCloseButton.js.map +1 -1
- package/components/Tooltip/useTooltipStyleProps.d.ts +20 -8
- package/components/Tooltip/useTooltipStyleProps.js.map +1 -1
- package/components/Truncate/Truncate.cjs +8 -3
- package/components/Truncate/Truncate.cjs.map +1 -1
- package/components/Truncate/Truncate.d.ts +1 -1
- package/components/Truncate/useTruncateStyleProps.d.ts +3 -3
- package/components/UNSTABLE_Header/UNSTABLE_Header.cjs +13 -6
- package/components/UNSTABLE_Header/UNSTABLE_Header.cjs.map +1 -1
- package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.d.ts +2 -3
- package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.js +5 -3
- package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.js.map +1 -1
- package/components/VisuallyHidden/VisuallyHidden.cjs +8 -3
- package/components/VisuallyHidden/VisuallyHidden.cjs.map +1 -1
- package/components/VisuallyHidden/VisuallyHidden.d.ts +1 -1
- package/components/VisuallyHidden/useVisuallyHiddenProps.d.ts +3 -3
- package/components/components.cjs +715 -457
- package/components/components.cjs.map +1 -1
- package/components/index.d.ts +1 -0
- package/components/index.js +1 -0
- package/components/index.js.map +1 -1
- package/constants/constants.cjs +6 -0
- package/constants/constants.cjs.map +1 -1
- package/constants/index.d.ts +1 -0
- package/constants/index.js +1 -0
- package/constants/index.js.map +1 -1
- package/constants/inputs.d.ts +4 -0
- package/constants/inputs.js +5 -0
- package/constants/inputs.js.map +1 -0
- package/hooks/hooks.cjs +110 -9
- package/hooks/hooks.cjs.map +1 -1
- package/hooks/index.d.ts +3 -1
- package/hooks/index.js +3 -1
- package/hooks/index.js.map +1 -1
- package/hooks/useDeprecationMessage.js +2 -2
- package/hooks/useDeprecationMessage.js.map +1 -1
- package/hooks/useI18n.d.ts +6 -0
- package/hooks/useI18n.js +9 -0
- package/hooks/useI18n.js.map +1 -0
- package/hooks/useInputPositionClass.d.ts +2 -0
- package/hooks/useInputPositionClass.js +8 -0
- package/hooks/useInputPositionClass.js.map +1 -0
- package/hooks/useStyleUtilities.js +4 -2
- package/hooks/useStyleUtilities.js.map +1 -1
- package/hooks/useSymmetry.d.ts +7 -0
- package/hooks/useSymmetry.js +39 -0
- package/hooks/useSymmetry.js.map +1 -0
- package/index.cjs +722 -462
- package/index.cjs.map +1 -1
- package/index.d.ts +1 -0
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/package.json +29 -36
- package/spirit-web-react.cjs +723 -463
- package/spirit-web-react.cjs.map +1 -1
- package/spirit-web-react.min.cjs +1 -1
- package/translations/defaults.d.ts +29 -0
- package/translations/defaults.js +30 -0
- package/translations/defaults.js.map +1 -0
- package/translations/index.d.ts +3 -0
- package/translations/index.js +4 -0
- package/translations/index.js.map +1 -0
- package/translations/replaceTranslationParams.d.ts +1 -0
- package/translations/replaceTranslationParams.js +5 -0
- package/translations/replaceTranslationParams.js.map +1 -0
- package/translations/resolveTranslationKey.d.ts +10 -0
- package/translations/resolveTranslationKey.js +14 -0
- package/translations/resolveTranslationKey.js.map +1 -0
- package/types/accordion.d.ts +18 -18
- package/types/alert.d.ts +4 -6
- package/types/avatar.d.ts +6 -6
- package/types/box.d.ts +4 -6
- package/types/breadcrumbs.d.ts +2 -2
- package/types/button.d.ts +10 -12
- package/types/card.d.ts +9 -9
- package/types/card.js.map +1 -1
- package/types/checkbox.d.ts +2 -1
- package/types/controlButton.d.ts +9 -8
- package/types/drawer.d.ts +3 -3
- package/types/flex.d.ts +7 -8
- package/types/footer.d.ts +6 -7
- package/types/grid.d.ts +14 -12
- package/types/header.d.ts +16 -18
- package/types/heading.d.ts +4 -4
- package/types/hidden.d.ts +11 -0
- package/types/hidden.js +2 -0
- package/types/hidden.js.map +1 -0
- package/types/icon.d.ts +5 -3
- package/types/iconBox.d.ts +7 -6
- package/types/index.d.ts +1 -0
- package/types/index.js +1 -0
- package/types/index.js.map +1 -1
- package/types/item.d.ts +4 -4
- package/types/link.d.ts +9 -8
- package/types/link.js.map +1 -1
- package/types/matrix.d.ts +3 -3
- package/types/modal.d.ts +7 -5
- package/types/navigation.d.ts +10 -5
- package/types/pill.d.ts +3 -3
- package/types/pricingPlan.d.ts +3 -3
- package/types/radio.d.ts +2 -1
- package/types/section.d.ts +6 -5
- package/types/shared/dialogs.d.ts +6 -3
- package/types/shared/element.d.ts +5 -7
- package/types/shared/index.d.ts +4 -3
- package/types/shared/index.js +1 -0
- package/types/shared/index.js.map +1 -1
- package/types/shared/inputs.d.ts +3 -0
- package/types/shared/polymorphic.d.ts +13 -0
- package/types/shared/polymorphic.js +2 -0
- package/types/shared/polymorphic.js.map +1 -0
- package/types/shared/shared.cjs.map +1 -1
- package/types/skeleton.d.ts +9 -6
- package/types/slider.d.ts +2 -2
- package/types/spinner.d.ts +1 -1
- package/types/stack.d.ts +12 -10
- package/types/tabs.d.ts +6 -5
- package/types/tag.d.ts +3 -3
- package/types/text.d.ts +3 -3
- package/types/toggle.d.ts +2 -1
- package/types/tooltip.d.ts +23 -21
- package/types/tooltip.js.map +1 -1
- package/types/types.cjs.map +1 -1
- package/types/unstableHeader.d.ts +9 -7
- package/types/visuallyHidden.d.ts +4 -4
- package/utils/mergeStyleProps.js +4 -1
- package/utils/mergeStyleProps.js.map +1 -1
- package/utils/utils.cjs +4 -1
- package/utils/utils.cjs.map +1 -1
- package/components/Matrix/constant.js.map +0 -1
- package/components/Modal/constants.d.ts +0 -1
- package/components/Modal/constants.js +0 -2
- package/components/Modal/constants.js.map +0 -1
- package/components/Pagination/constants.d.ts +0 -3
- package/components/Pagination/constants.js +0 -4
- package/components/Pagination/constants.js.map +0 -1
- package/components/SplitButton/constants.d.ts +0 -1
- package/components/SplitButton/constants.js +0 -2
- package/components/SplitButton/constants.js.map +0 -1
- package/components/TextFieldBase/constants.d.ts +0 -2
- package/components/TextFieldBase/constants.js +0 -3
- package/components/TextFieldBase/constants.js.map +0 -1
- package/hooks/useDirectionClass.d.ts +0 -2
- package/hooks/useDirectionClass.js +0 -5
- package/hooks/useDirectionClass.js.map +0 -1
- /package/components/Matrix/{constant.d.ts → constants.d.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.cjs","sources":["../../common/constants/environments.js","../../common/utilities/warning.js","../../constants/dictionaries.js","../../constants/direction.js","../../constants/style.js","../../context/ClassNamePrefixContext.js","../../types/card.js","../../types/shared/style.js","../../types/shared/tokens.js","../../types/shared/index.js","../../utils/assert.js","../../utils/classname.js","../../utils/htmlReactParser.js","../../utils/mergeStyleProps.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../context/IconsContext.js","../../hooks/useIcon.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","useSpinnerStyleProps.js","Spinner.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { componentColors, containers, emotionColors, textColors } from '@alma-oss/spirit-design-tokens';\nfunction createUppercaseKeyDictionary(obj) {\n return Object.fromEntries(Object.keys(obj).map((key) => [key.toUpperCase(), key]));\n}\nexport const AlignmentX = {\n LEFT: 'left',\n CENTER: 'center',\n RIGHT: 'right',\n};\nexport const AlignmentXExtended = Object.assign({ SPACE_BETWEEN: 'space-between', STRETCH: 'stretch' }, AlignmentX);\nexport const AlignmentY = {\n TOP: 'top',\n CENTER: 'center',\n BOTTOM: 'bottom',\n};\nexport const AlignmentYExtended = Object.assign({ BASELINE: 'baseline', STRETCH: 'stretch' }, AlignmentY);\nexport const TextAlignments = {\n LEFT: 'left',\n CENTER: 'center',\n RIGHT: 'right',\n};\nexport const BorderColors = {\n BASIC: 'basic',\n};\nexport const BorderRadii = {\n 0: '0',\n 100: '100',\n 200: '200',\n 300: '300',\n 400: '400',\n 500: '500',\n FULL: 'full',\n};\nexport const BorderStyles = {\n SOLID: 'solid',\n DOTTED: 'dotted',\n DASHED: 'dashed',\n};\nexport const BorderWidths = {\n 0: '0',\n 100: '100',\n 200: '200',\n};\nexport const BackgroundColors = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n TERTIARY: 'tertiary',\n};\nexport const ComponentButtonColors = createUppercaseKeyDictionary(componentColors.button);\nexport const EmotionColors = createUppercaseKeyDictionary(emotionColors);\nexport const LinkColors = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n TERTIARY: 'tertiary',\n};\nexport const TextColors = createUppercaseKeyDictionary(textColors);\nexport const Intensity = {\n BASIC: 'basic',\n SUBTLE: 'subtle',\n};\nexport const Emphasis = {\n REGULAR: 'regular',\n SEMIBOLD: 'semibold',\n BOLD: 'bold',\n ITALIC: 'italic',\n};\nexport const BackgroundGradients = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n};\nexport const Placements = {\n TOP: 'top',\n TOP_START: 'top-start',\n TOP_END: 'top-end',\n BOTTOM: 'bottom',\n BOTTOM_START: 'bottom-start',\n BOTTOM_END: 'bottom-end',\n LEFT: 'left',\n LEFT_START: 'left-start',\n LEFT_END: 'left-end',\n RIGHT: 'right',\n RIGHT_START: 'right-start',\n RIGHT_END: 'right-end',\n};\nexport const Sizes = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n};\nexport const SizesExtended = Object.assign(Object.assign({ XSMALL: 'xsmall' }, Sizes), { XLARGE: 'xlarge' });\nconst _a = createUppercaseKeyDictionary(containers), { MAXWIDTH, PADDING } = _a, ContainerTokenSizes = __rest(_a, [\"MAXWIDTH\", \"PADDING\"]);\nexport { ContainerTokenSizes };\nexport const ValidationStates = {\n SUCCESS: 'success',\n WARNING: 'warning',\n DANGER: 'danger',\n};\nexport const FillVariants = {\n FILL: 'fill',\n OUTLINE: 'outline',\n};\nexport const ShapeVariants = {\n BOX: 'box',\n PILL: 'pill',\n};\n//# sourceMappingURL=dictionaries.js.map","export const Direction = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n};\nexport const DirectionExtended = Object.assign(Object.assign({}, Direction), { HORIZONTAL_REVERSED: 'horizontal-reversed' });\nexport var DirectionAxis;\n(function (DirectionAxis) {\n DirectionAxis[\"X\"] = \"x\";\n DirectionAxis[\"Y\"] = \"y\";\n})(DirectionAxis || (DirectionAxis = {}));\nexport const isDirectionHorizontal = (direction) => direction === Direction.HORIZONTAL;\n//# sourceMappingURL=direction.js.map","export const BackgroundStyleProps = {\n backgroundGradient: 'bg-gradient',\n};\nexport const BorderRadiusStyleProps = {\n borderRadius: 'rounded',\n};\nexport const SpacingStyleProp = {\n margin: 'm',\n marginTop: 'mt',\n marginRight: 'mr',\n marginBottom: 'mb',\n marginLeft: 'ml',\n marginX: 'mx',\n marginY: 'my',\n};\nexport const PaddingStyleProps = {\n padding: 'p',\n paddingBottom: 'pb',\n paddingLeft: 'pl',\n paddingRight: 'pr',\n paddingTop: 'pt',\n paddingX: 'px',\n paddingY: 'py',\n};\nexport const TextStyleProps = {\n isTextBalanced: 'text-wrap-pretty',\n textAlignment: 'text',\n textHyphens: 'text-hyphens',\n textWordBreak: 'text-word-break',\n};\nexport const HeadingStyleProps = {\n isTextBalanced: 'text-wrap-balance',\n};\nexport const DisplayStyleProps = {\n hideOn: 'd',\n hideFrom: 'd',\n};\nexport const ThemeStyleProps = {\n theme: '',\n};\n//# sourceMappingURL=style.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst ClassNamePrefixContext = createContext(defaultContext);\nconst ClassNamePrefixProvider = ClassNamePrefixContext.Provider;\nconst ClassNamePrefixConsumer = ClassNamePrefixContext.Consumer;\nexport default ClassNamePrefixContext;\nexport { ClassNamePrefixConsumer, ClassNamePrefixProvider };\n//# sourceMappingURL=ClassNamePrefixContext.js.map","import { Sizes } from \"../constants/index.js\";\nexport const CardSizes = Object.assign(Object.assign({}, Sizes), { AUTO: 'auto' });\n//# sourceMappingURL=card.js.map","export const STYLE_SPACING_AUTO = 'auto';\n//# sourceMappingURL=style.js.map","export const BREAKPOINT_MOBILE = 'mobile';\n//# sourceMappingURL=tokens.js.map","export * from \"./adornments.js\";\nexport * from \"./buttons.js\";\nexport * from \"./colors.js\";\nexport * from \"./columns.js\";\nexport * from \"./dialogs.js\";\nexport * from \"./dictionaries.js\";\nexport * from \"./directions.js\";\nexport * from \"./dragAndDrop.js\";\nexport * from \"./element.js\";\nexport * from \"./events.js\";\nexport * from \"./inputs.js\";\nexport * from \"./item.js\";\nexport * from \"./positions.js\";\nexport * from \"./radii.js\";\nexport * from \"./refs.js\";\nexport * from \"./responsive.js\";\nexport * from \"./rest.js\";\nexport * from \"./sizes.js\";\nexport * from \"./style.js\";\nexport * from \"./text.js\";\nexport * from \"./tokens.js\";\nexport var SpiritBreakpoints;\n(function (SpiritBreakpoints) {\n SpiritBreakpoints[\"TABLET\"] = \"tablet\";\n SpiritBreakpoints[\"DESKTOP\"] = \"desktop\";\n})(SpiritBreakpoints || (SpiritBreakpoints = {}));\n//# sourceMappingURL=index.js.map","export const isNullish = (value) => value == null;\nexport const isEmptyString = (value) => typeof value === 'string' && value.trim() === '';\nexport const isEmptyArray = (value) => Array.isArray(value) && value.length === 0;\nexport const isEmptyObject = (value) => typeof value === 'object' && value !== null && Object.keys(value).length === 0;\nexport const isEnumerable = (value) => {\n if (typeof value === 'object' && value !== null) {\n for (const key in value) {\n if (Object.hasOwnProperty.call(value, key)) {\n return true;\n }\n }\n }\n return false;\n};\nexport const isEmpty = (value) => {\n if (isNullish(value)) {\n return true;\n }\n if (isEmptyString(value)) {\n return true;\n }\n if (isEmptyArray(value)) {\n return true;\n }\n if (isEmptyObject(value)) {\n return true;\n }\n if (isEnumerable(value)) {\n return false;\n }\n return false;\n};\n//# sourceMappingURL=assert.js.map","export const applyClassNamePrefix = (prefix) => (className) => prefix != null && prefix !== '' ? `${prefix}-${className}` : className;\nexport const applyColor = (color) => (className) => `${className}--${color}`;\nexport const applySize = (size) => (className) => `${className}--${size}`;\nexport const applyTheme = (theme) => (className) => `${className}--${theme}`;\n//# sourceMappingURL=classname.js.map","import htmlDomParser from 'html-dom-parser';\nimport domToReactLib from 'html-react-parser/lib/dom-to-react';\nexport const htmlReactParser = (html) => {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n if (!html) {\n return [];\n }\n const htmlToDOM = typeof htmlDomParser.default === 'function' ? htmlDomParser.default : htmlDomParser;\n const domToReact = typeof domToReactLib.default === 'function' ? domToReactLib.default : domToReactLib;\n return domToReact(htmlToDOM(html));\n};\n//# sourceMappingURL=htmlReactParser.js.map","export function mergeStyleProps(ElementTag, styleProps) {\n const isSpiritComponent = typeof ElementTag !== 'string' && !!(ElementTag === null || ElementTag === void 0 ? void 0 : ElementTag.spiritComponent);\n const isNonNullableObject = (styleProp) => typeof styleProp === 'object' && styleProp !== null;\n const extractClassNames = (styleProp) => {\n if (typeof styleProp === 'string') {\n return [styleProp];\n }\n if (isNonNullableObject(styleProp)) {\n return [styleProp.className, styleProp.UNSAFE_className].filter(Boolean);\n }\n return [];\n };\n const extractCssVariables = (styleProp) => isNonNullableObject(styleProp)\n ? Object.entries(styleProp)\n .filter(([key]) => key.startsWith('--'))\n .reduce((extractedCssVariable, [key, value]) => (Object.assign(Object.assign({}, extractedCssVariable), { [key]: value })), {})\n : {};\n const extractCssStylesAndVariables = (cssProperties, styleProp) => {\n if (!isNonNullableObject(styleProp)) {\n return cssProperties;\n }\n const typedStyleProp = styleProp;\n const styles = typedStyleProp.style || typedStyleProp.UNSAFE_style || {};\n const cssVariables = extractCssVariables(styleProp);\n return Object.assign(Object.assign(Object.assign({}, cssProperties), styles), cssVariables);\n };\n const mergedClasses = Object.values(styleProps).flatMap(extractClassNames).filter(Boolean).join(' ');\n const mergedStyles = Object.values(styleProps)\n .filter(isNonNullableObject)\n .reduce(extractCssStylesAndVariables, {});\n return isSpiritComponent\n ? { UNSAFE_className: mergedClasses, UNSAFE_style: mergedStyles }\n : { className: mergedClasses, style: mergedStyles };\n}\n//# sourceMappingURL=mergeStyleProps.js.map","export const camelCaseToKebabCase = (input) => input.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\nexport const kebabCaseToCamelCase = (input) => input.replace(/-([a-z])/g, (g) => g[1].toUpperCase());\nexport const kebabCaseToCamelCaseValues = (input) => {\n if (typeof input === 'object' && input !== null) {\n const result = {};\n for (const [key, value] of Object.entries(input)) {\n result[key] = typeof value === 'string' ? kebabCaseToCamelCase(value) : value;\n }\n return result;\n }\n return input;\n};\nexport const stringOrObjectKebabCaseToCamelCase = (input) => {\n if (typeof input === 'string') {\n return kebabCaseToCamelCase(input);\n }\n if (typeof input === 'object' && input !== null) {\n return kebabCaseToCamelCaseValues(input);\n }\n return input;\n};\n//# sourceMappingURL=string.js.map","import { SpacingStyleProp as DefaultSpacingStyleProp, DisplayStyleProps, ThemeStyleProps } from \"../constants/index.js\";\nimport { BREAKPOINT_MOBILE, STYLE_SPACING_AUTO, } from \"../types/index.js\";\nimport { applyClassNamePrefix, camelCaseToKebabCase, isEmpty } from \"../utils/index.js\";\nconst CLASS_SEPARATOR = '-';\nconst normalizeSpacingValue = (value) => value === STYLE_SPACING_AUTO ? STYLE_SPACING_AUTO : value.replace(/[^0-9]/g, '');\nconst isSpaceToken = (value) => typeof value === 'string' && value.startsWith('space-');\nconst getUtilityValue = (value) => (isSpaceToken(value) ? normalizeSpacingValue(value) : value);\nconst isKeyIncluded = (object, key) => Object.keys(object).includes(key);\nconst processBreakpointProperties = (utilityName, propValue, prefix) => Object.keys(propValue).reduce((accumulatedBreakpointUtilities, breakpoint) => {\n const breakpointValue = propValue[breakpoint];\n if (typeof breakpointValue === 'string') {\n const utilityValue = getUtilityValue(breakpointValue);\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n accumulatedBreakpointUtilities.push(applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}${utilityValue}`));\n }\n return accumulatedBreakpointUtilities;\n}, []);\nconst processHideOnProperty = (utilityName, propValue, prefix) => {\n const breakpoints = Array.isArray(propValue) ? propValue : [propValue];\n return breakpoints.map((breakpoint) => applyClassNamePrefix(prefix)(`${utilityName}${CLASS_SEPARATOR}only${CLASS_SEPARATOR}${breakpoint}${CLASS_SEPARATOR}none`));\n};\nconst processHideFromProperty = (utilityName, propValue, prefix) => {\n const breakpoint = propValue;\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n return [applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}none`)];\n};\nconst processDisplayProperties = (utilityKey, utilityName, propValue, prefix) => {\n switch (utilityKey) {\n case 'hideOn':\n return processHideOnProperty(utilityName, propValue, prefix);\n case 'hideFrom':\n return processHideFromProperty(utilityName, propValue, prefix);\n default:\n return [];\n }\n};\nconst processProperties = (utilityKey, utilityName, propValue, prefix) => {\n if (utilityName === ThemeStyleProps.theme) {\n if (typeof propValue !== 'string') {\n return [];\n }\n const themeClassName = camelCaseToKebabCase(propValue);\n return [applyClassNamePrefix(prefix)(themeClassName)];\n }\n if (utilityKey in DisplayStyleProps) {\n return processDisplayProperties(utilityKey, utilityName, propValue, prefix);\n }\n if (typeof propValue === 'boolean') {\n return propValue ? [applyClassNamePrefix(prefix)(utilityName)] : [];\n }\n if (typeof propValue === 'string') {\n return [applyClassNamePrefix(prefix)(`${utilityName}-${getUtilityValue(propValue)}`)];\n }\n return processBreakpointProperties(utilityName, propValue, prefix);\n};\nconst isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {\n const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);\n const isProcessable = (options.includesKey ? isStylePropKeyIncluded : !isStylePropKeyIncluded) && !isEmpty(stylePropValue);\n return isProcessable;\n};\nexport const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {\n const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, DefaultSpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);\n const propEntries = Object.entries(props);\n const styleUtilities = propEntries.reduce((accumulatedUtilities, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue)) {\n const utilityName = styleProps[key];\n return [\n ...accumulatedUtilities,\n ...processProperties(key, utilityName, propValue, prefix),\n ];\n }\n return accumulatedUtilities;\n }, []);\n const updatedProps = propEntries.reduce((accumulatedProps, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue, { includesKey: false })) {\n return Object.assign(Object.assign({}, accumulatedProps), { [key]: propValue });\n }\n return accumulatedProps;\n }, {});\n return {\n styleUtilities,\n props: updatedProps,\n };\n};\n//# sourceMappingURL=useStyleUtilities.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useContext } from 'react';\nimport { warning } from \"../common/utilities/index.js\";\nimport { ThemeStyleProps } from \"../constants/index.js\";\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { useStyleUtilities } from \"./useStyleUtilities.js\";\nexport function useStyleProps(props, additionalUtilities) {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n const { UNSAFE_className, UNSAFE_style } = props, otherProps = __rest(props, [\"UNSAFE_className\", \"UNSAFE_style\"]);\n const styleUtilitiesConfig = Object.assign({ theme: ThemeStyleProps.theme }, (additionalUtilities !== null && additionalUtilities !== void 0 ? additionalUtilities : {}));\n const { styleUtilities, props: modifiedProps } = useStyleUtilities(otherProps, classNamePrefix, styleUtilitiesConfig);\n const style = Object.assign({}, UNSAFE_style);\n if (modifiedProps.className) {\n warning(false, 'The className prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.className;\n }\n if (modifiedProps.style) {\n warning(false, 'The style prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.style;\n }\n const styleProps = {\n style: Object.keys(style).length > 0 ? style : undefined,\n className: classNames(UNSAFE_className, ...styleUtilities) || undefined,\n };\n return {\n styleProps,\n props: modifiedProps,\n };\n}\n//# sourceMappingURL=styleProps.js.map","'use client';\nimport { useContext } from 'react';\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { applyClassNamePrefix } from \"../utils/classname.js\";\nexport const useClassNamePrefix = (className) => {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n let prefixedClassName = className;\n if (className && classNamePrefix) {\n prefixedClassName = applyClassNamePrefix(classNamePrefix)(className);\n }\n else if (classNamePrefix) {\n prefixedClassName = classNamePrefix;\n }\n return prefixedClassName;\n};\n//# sourceMappingURL=useClassNamePrefix.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst IconsContext = createContext(defaultContext);\nconst IconsProvider = IconsContext.Provider;\nconst IconsConsumer = IconsContext.Consumer;\nexport default IconsContext;\nexport { IconsConsumer, IconsProvider };\n//# sourceMappingURL=IconsContext.js.map","'use client';\nimport { useContext } from 'react';\nimport warning from \"../common/utilities/warning.js\";\nimport IconsContext from \"../context/IconsContext.js\";\nexport const useIcon = (name) => {\n const icons = useContext(IconsContext);\n if (icons != null && icons[name] != null) {\n return icons[name];\n }\n warning(false, `The ${name} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`);\n return '';\n};\n//# sourceMappingURL=useIcon.js.map","export const DEFAULT_BOX_SIZE = 24;\n//# sourceMappingURL=constants.js.map","import { DEFAULT_BOX_SIZE } from \"./constants.js\";\nexport const useIconBoxSize = (boxSize) => { var _a; return typeof boxSize === 'object' ? ((_a = boxSize.mobile) !== null && _a !== void 0 ? _a : DEFAULT_BOX_SIZE) : (boxSize !== null && boxSize !== void 0 ? boxSize : DEFAULT_BOX_SIZE); };\n//# sourceMappingURL=useIconBoxSize.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { cssVariablePrefix } from '@alma-oss/spirit-design-tokens';\nimport classNames from 'classnames';\nimport { TextColors } from \"../../constants/index.js\";\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nconst setCustomDimension = (prefix, size) => {\n const style = {};\n if (typeof size === 'object') {\n Object.entries(size).forEach(([breakpoint, breakpointSize]) => {\n const breakpointSuffix = breakpoint === 'mobile' ? '' : `-${breakpoint}`;\n style[`${prefix}${breakpointSuffix}`] = `${breakpointSize === null || breakpointSize === void 0 ? void 0 : breakpointSize.toString()}px`;\n });\n }\n return style;\n};\nexport const useIconStyleProps = (props) => {\n const { boxSize, color, name } = props, otherProps = __rest(props, [\"boxSize\", \"color\", \"name\"]);\n const stylePrefix = `--${cssVariablePrefix}icon`;\n const isDualtoneIcon = String(name).includes('-dualtone');\n const dualtoneColorWithDefault = isDualtoneIcon && !color ? TextColors.PRIMARY : color;\n const iconClass = useClassNamePrefix('Icon');\n const iconDualtoneColorClass = `${iconClass}--${dualtoneColorWithDefault}`;\n const classProps = classNames(iconClass, {\n [iconDualtoneColorClass]: color || dualtoneColorWithDefault,\n });\n const customizedIconStyle = Object.assign({}, (boxSize ? setCustomDimension(`${stylePrefix}-size`, boxSize) : {}));\n return {\n classProps,\n iconStyleProps: customizedIconStyle,\n props: otherProps,\n };\n};\n//# sourceMappingURL=useIconStyleProps.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useIcon, useStyleProps } from \"../../hooks/index.js\";\nimport { htmlReactParser, mergeStyleProps } from \"../../utils/index.js\";\nimport { DEFAULT_BOX_SIZE } from \"./constants.js\";\nimport { useIconBoxSize } from \"./useIconBoxSize.js\";\nimport { useIconStyleProps } from \"./useIconStyleProps.js\";\nconst defaultProps = {\n ariaHidden: true,\n boxSize: DEFAULT_BOX_SIZE,\n};\nconst _Icon = (props, ref) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { boxSize, name, title, ariaHidden } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"boxSize\", \"name\", \"title\", \"ariaHidden\"]);\n let icon = useIcon(name);\n const iconSize = useIconBoxSize(boxSize);\n const { classProps, iconStyleProps, props: modifiedProps } = useIconStyleProps(Object.assign({ boxSize, name }, restProps));\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps('svg', {\n classProps,\n iconStyleProps,\n styleProps,\n });\n if (title) {\n icon = `<title>${title}</title>${icon}`;\n }\n return (React.createElement(\"svg\", Object.assign({}, otherProps, mergedStyleProps, { viewBox: \"0 0 24 24\", fill: \"none\", width: iconSize, height: iconSize, \"aria-hidden\": ariaHidden, ref: ref }), htmlReactParser(icon)));\n};\nconst Icon = forwardRef(_Icon);\nIcon.spiritComponent = 'Icon';\nexport default Icon;\n//# sourceMappingURL=Icon.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nexport function useSpinnerStyleProps(props) {\n const { color } = props, restProps = __rest(props, [\"color\"]);\n const spinnerClass = useClassNamePrefix('text');\n const spinnerColorClass = color ? `${spinnerClass}-${color}` : '';\n const spinnerAnimation = useClassNamePrefix('animation-spin-clockwise');\n const className = classNames(spinnerColorClass, spinnerAnimation);\n return {\n classProps: className,\n props: restProps,\n };\n}\n//# sourceMappingURL=useSpinnerStyleProps.js.map","'use client';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useSpinnerStyleProps } from \"./useSpinnerStyleProps.js\";\nconst Spinner = (props) => {\n const { classProps, props: modifiedProps } = useSpinnerStyleProps(props);\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n return (React.createElement(Icon, Object.assign({}, otherProps, { name: \"spinner\", UNSAFE_className: classNames(classProps, styleProps.className), UNSAFE_style: styleProps.style })));\n};\nSpinner.spiritComponent = 'Spinner';\nexport default Spinner;\n//# sourceMappingURL=Spinner.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","cssVariablePrefix","forwardRef"],"mappings":";;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACNlF,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AAIzB,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;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GAAG,kBAAkB,CAAC,MAAM,CAAC;AACnD,IAAI,MAAM,iBAAiB,GAAG,KAAK,GAAG,CAAC,EAAE,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,EAAE;AACrE,IAAI,MAAM,gBAAgB,GAAG,kBAAkB,CAAC,0BAA0B,CAAC;AAC3E,IAAI,MAAM,SAAS,GAAG,UAAU,CAAC,iBAAiB,EAAE,gBAAgB,CAAC;AACrE,IAAI,OAAO;AACX,QAAQ,UAAU,EAAE,SAAS;AAC7B,QAAQ,KAAK,EAAE,SAAS;AACxB,KAAK;AACL;;ACjBK,MAAC,OAAO,GAAG,CAAC,KAAK,KAAK;AAC3B,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAC5E,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1E,IAAI,QAAQ,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;AACzL;AACA,OAAO,CAAC,eAAe,GAAG,SAAS;;;;;"}
|
|
1
|
+
{"version":3,"file":"Spinner.cjs","sources":["../../common/constants/environments.js","../../common/utilities/warning.js","../../constants/dictionaries.js","../../constants/direction.js","../../constants/style.js","../../context/ClassNamePrefixContext.js","../../types/card.js","../../types/shared/style.js","../../types/shared/tokens.js","../../types/shared/index.js","../../utils/assert.js","../../utils/classname.js","../../utils/htmlReactParser.js","../../utils/mergeStyleProps.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../context/IconsContext.js","../../hooks/useIcon.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","useSpinnerStyleProps.js","Spinner.js"],"sourcesContent":["export const ENVIRONMENTS = {\n DEVELOPMENT: 'development',\n TESTING: 'testing',\n PRODUCTION: 'production',\n};\nexport const isDevelopment = () => process.env.NODE_ENV === ENVIRONMENTS.DEVELOPMENT;\nexport const isTesting = () => process.env.NODE_ENV === ENVIRONMENTS.TESTING;\nexport const isProduction = () => process.env.NODE_ENV === ENVIRONMENTS.PRODUCTION;\n//# sourceMappingURL=environments.js.map","import { isProduction } from \"../constants/environments.js\";\nconst warning = (condition, message) => {\n if (!isProduction()) {\n if (condition) {\n return;\n }\n const text = `Warning: ${message}`;\n if (typeof console !== 'undefined') {\n console.warn(text);\n }\n try {\n throw Error(text);\n }\n catch (x) {\n }\n }\n};\nexport default warning;\n//# sourceMappingURL=warning.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { componentColors, containers, emotionColors, textColors } from '@alma-oss/spirit-design-tokens';\nfunction createUppercaseKeyDictionary(obj) {\n return Object.fromEntries(Object.keys(obj).map((key) => [key.toUpperCase(), key]));\n}\nexport const AlignmentX = {\n LEFT: 'left',\n CENTER: 'center',\n RIGHT: 'right',\n};\nexport const AlignmentXExtended = Object.assign({ SPACE_BETWEEN: 'space-between', STRETCH: 'stretch' }, AlignmentX);\nexport const AlignmentY = {\n TOP: 'top',\n CENTER: 'center',\n BOTTOM: 'bottom',\n};\nexport const AlignmentYExtended = Object.assign({ BASELINE: 'baseline', STRETCH: 'stretch' }, AlignmentY);\nexport const TextAlignments = {\n LEFT: 'left',\n CENTER: 'center',\n RIGHT: 'right',\n};\nexport const BorderColors = {\n BASIC: 'basic',\n};\nexport const BorderRadii = {\n 0: '0',\n 100: '100',\n 200: '200',\n 300: '300',\n 400: '400',\n 500: '500',\n FULL: 'full',\n};\nexport const BorderStyles = {\n SOLID: 'solid',\n DOTTED: 'dotted',\n DASHED: 'dashed',\n};\nexport const BorderWidths = {\n 0: '0',\n 100: '100',\n 200: '200',\n};\nexport const BackgroundColors = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n TERTIARY: 'tertiary',\n};\nexport const ComponentButtonColors = createUppercaseKeyDictionary(componentColors.button);\nexport const EmotionColors = createUppercaseKeyDictionary(emotionColors);\nexport const LinkColors = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n TERTIARY: 'tertiary',\n};\nexport const TextColors = createUppercaseKeyDictionary(textColors);\nexport const Intensity = {\n BASIC: 'basic',\n SUBTLE: 'subtle',\n};\nexport const Emphasis = {\n REGULAR: 'regular',\n SEMIBOLD: 'semibold',\n BOLD: 'bold',\n ITALIC: 'italic',\n};\nexport const BackgroundGradients = {\n PRIMARY: 'primary',\n SECONDARY: 'secondary',\n};\nexport const Placements = {\n TOP: 'top',\n TOP_START: 'top-start',\n TOP_END: 'top-end',\n BOTTOM: 'bottom',\n BOTTOM_START: 'bottom-start',\n BOTTOM_END: 'bottom-end',\n LEFT: 'left',\n LEFT_START: 'left-start',\n LEFT_END: 'left-end',\n RIGHT: 'right',\n RIGHT_START: 'right-start',\n RIGHT_END: 'right-end',\n};\nexport const Sizes = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n};\nexport const SizesExtended = Object.assign(Object.assign({ XSMALL: 'xsmall' }, Sizes), { XLARGE: 'xlarge' });\nconst _a = createUppercaseKeyDictionary(containers), { MAXWIDTH, PADDING } = _a, ContainerTokenSizes = __rest(_a, [\"MAXWIDTH\", \"PADDING\"]);\nexport { ContainerTokenSizes };\nexport const ValidationStates = {\n SUCCESS: 'success',\n WARNING: 'warning',\n DANGER: 'danger',\n};\nexport const FillVariants = {\n FILL: 'fill',\n OUTLINE: 'outline',\n};\nexport const ShapeVariants = {\n BOX: 'box',\n PILL: 'pill',\n};\n//# sourceMappingURL=dictionaries.js.map","export const Direction = {\n HORIZONTAL: 'horizontal',\n VERTICAL: 'vertical',\n};\nexport const DirectionExtended = Object.assign(Object.assign({}, Direction), { HORIZONTAL_REVERSED: 'horizontal-reversed' });\nexport var DirectionAxis;\n(function (DirectionAxis) {\n DirectionAxis[\"X\"] = \"x\";\n DirectionAxis[\"Y\"] = \"y\";\n})(DirectionAxis || (DirectionAxis = {}));\nexport const isDirectionHorizontal = (direction) => direction === Direction.HORIZONTAL;\n//# sourceMappingURL=direction.js.map","export const BackgroundStyleProps = {\n backgroundGradient: 'bg-gradient',\n};\nexport const BorderRadiusStyleProps = {\n borderRadius: 'rounded',\n};\nexport const SpacingStyleProp = {\n margin: 'm',\n marginTop: 'mt',\n marginRight: 'mr',\n marginBottom: 'mb',\n marginLeft: 'ml',\n marginX: 'mx',\n marginY: 'my',\n};\nexport const PaddingStyleProps = {\n padding: 'p',\n paddingBottom: 'pb',\n paddingLeft: 'pl',\n paddingRight: 'pr',\n paddingTop: 'pt',\n paddingX: 'px',\n paddingY: 'py',\n};\nexport const TextStyleProps = {\n isTextBalanced: 'text-wrap-pretty',\n textAlignment: 'text',\n textHyphens: 'text-hyphens',\n textWordBreak: 'text-word-break',\n};\nexport const HeadingStyleProps = {\n isTextBalanced: 'text-wrap-balance',\n};\nexport const DisplayStyleProps = {\n hideOn: 'd',\n hideFrom: 'd',\n};\nexport const ThemeStyleProps = {\n theme: '',\n};\n//# sourceMappingURL=style.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst ClassNamePrefixContext = createContext(defaultContext);\nconst ClassNamePrefixProvider = ClassNamePrefixContext.Provider;\nconst ClassNamePrefixConsumer = ClassNamePrefixContext.Consumer;\nexport default ClassNamePrefixContext;\nexport { ClassNamePrefixConsumer, ClassNamePrefixProvider };\n//# sourceMappingURL=ClassNamePrefixContext.js.map","import { Sizes } from \"../constants/index.js\";\nexport const CardSizes = Object.assign(Object.assign({}, Sizes), { AUTO: 'auto' });\n//# sourceMappingURL=card.js.map","export const STYLE_SPACING_AUTO = 'auto';\n//# sourceMappingURL=style.js.map","export const BREAKPOINT_MOBILE = 'mobile';\n//# sourceMappingURL=tokens.js.map","export * from \"./adornments.js\";\nexport * from \"./buttons.js\";\nexport * from \"./colors.js\";\nexport * from \"./columns.js\";\nexport * from \"./dialogs.js\";\nexport * from \"./dictionaries.js\";\nexport * from \"./directions.js\";\nexport * from \"./dragAndDrop.js\";\nexport * from \"./element.js\";\nexport * from \"./events.js\";\nexport * from \"./inputs.js\";\nexport * from \"./item.js\";\nexport * from \"./polymorphic.js\";\nexport * from \"./positions.js\";\nexport * from \"./radii.js\";\nexport * from \"./refs.js\";\nexport * from \"./responsive.js\";\nexport * from \"./rest.js\";\nexport * from \"./sizes.js\";\nexport * from \"./style.js\";\nexport * from \"./text.js\";\nexport * from \"./tokens.js\";\nexport var SpiritBreakpoints;\n(function (SpiritBreakpoints) {\n SpiritBreakpoints[\"TABLET\"] = \"tablet\";\n SpiritBreakpoints[\"DESKTOP\"] = \"desktop\";\n})(SpiritBreakpoints || (SpiritBreakpoints = {}));\n//# sourceMappingURL=index.js.map","export const isNullish = (value) => value == null;\nexport const isEmptyString = (value) => typeof value === 'string' && value.trim() === '';\nexport const isEmptyArray = (value) => Array.isArray(value) && value.length === 0;\nexport const isEmptyObject = (value) => typeof value === 'object' && value !== null && Object.keys(value).length === 0;\nexport const isEnumerable = (value) => {\n if (typeof value === 'object' && value !== null) {\n for (const key in value) {\n if (Object.hasOwnProperty.call(value, key)) {\n return true;\n }\n }\n }\n return false;\n};\nexport const isEmpty = (value) => {\n if (isNullish(value)) {\n return true;\n }\n if (isEmptyString(value)) {\n return true;\n }\n if (isEmptyArray(value)) {\n return true;\n }\n if (isEmptyObject(value)) {\n return true;\n }\n if (isEnumerable(value)) {\n return false;\n }\n return false;\n};\n//# sourceMappingURL=assert.js.map","export const applyClassNamePrefix = (prefix) => (className) => prefix != null && prefix !== '' ? `${prefix}-${className}` : className;\nexport const applyColor = (color) => (className) => `${className}--${color}`;\nexport const applySize = (size) => (className) => `${className}--${size}`;\nexport const applyTheme = (theme) => (className) => `${className}--${theme}`;\n//# sourceMappingURL=classname.js.map","import htmlDomParser from 'html-dom-parser';\nimport domToReactLib from 'html-react-parser/lib/dom-to-react';\nexport const htmlReactParser = (html) => {\n if (typeof html !== 'string') {\n throw new TypeError('First argument must be a string');\n }\n if (!html) {\n return [];\n }\n const htmlToDOM = typeof htmlDomParser.default === 'function' ? htmlDomParser.default : htmlDomParser;\n const domToReact = typeof domToReactLib.default === 'function' ? domToReactLib.default : domToReactLib;\n return domToReact(htmlToDOM(html));\n};\n//# sourceMappingURL=htmlReactParser.js.map","function hasSpiritComponent(elementTag) {\n return typeof elementTag !== 'string' && elementTag !== null && 'spiritComponent' in elementTag;\n}\nexport function mergeStyleProps(ElementTag, styleProps) {\n const isSpiritComponent = hasSpiritComponent(ElementTag);\n const isNonNullableObject = (styleProp) => typeof styleProp === 'object' && styleProp !== null;\n const extractClassNames = (styleProp) => {\n if (typeof styleProp === 'string') {\n return [styleProp];\n }\n if (isNonNullableObject(styleProp)) {\n return [styleProp.className, styleProp.UNSAFE_className].filter(Boolean);\n }\n return [];\n };\n const extractCssVariables = (styleProp) => isNonNullableObject(styleProp)\n ? Object.entries(styleProp)\n .filter(([key]) => key.startsWith('--'))\n .reduce((extractedCssVariable, [key, value]) => (Object.assign(Object.assign({}, extractedCssVariable), { [key]: value })), {})\n : {};\n const extractCssStylesAndVariables = (cssProperties, styleProp) => {\n if (!isNonNullableObject(styleProp)) {\n return cssProperties;\n }\n const typedStyleProp = styleProp;\n const styles = typedStyleProp.style || typedStyleProp.UNSAFE_style || {};\n const cssVariables = extractCssVariables(styleProp);\n return Object.assign(Object.assign(Object.assign({}, cssProperties), styles), cssVariables);\n };\n const mergedClasses = Object.values(styleProps).flatMap(extractClassNames).filter(Boolean).join(' ');\n const mergedStyles = Object.values(styleProps)\n .filter(isNonNullableObject)\n .reduce(extractCssStylesAndVariables, {});\n return isSpiritComponent\n ? { UNSAFE_className: mergedClasses, UNSAFE_style: mergedStyles }\n : { className: mergedClasses, style: mergedStyles };\n}\n//# sourceMappingURL=mergeStyleProps.js.map","export const camelCaseToKebabCase = (input) => input.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\nexport const kebabCaseToCamelCase = (input) => input.replace(/-([a-z])/g, (g) => g[1].toUpperCase());\nexport const kebabCaseToCamelCaseValues = (input) => {\n if (typeof input === 'object' && input !== null) {\n const result = {};\n for (const [key, value] of Object.entries(input)) {\n result[key] = typeof value === 'string' ? kebabCaseToCamelCase(value) : value;\n }\n return result;\n }\n return input;\n};\nexport const stringOrObjectKebabCaseToCamelCase = (input) => {\n if (typeof input === 'string') {\n return kebabCaseToCamelCase(input);\n }\n if (typeof input === 'object' && input !== null) {\n return kebabCaseToCamelCaseValues(input);\n }\n return input;\n};\n//# sourceMappingURL=string.js.map","import { SpacingStyleProp as DefaultSpacingStyleProp, DisplayStyleProps, ThemeStyleProps } from \"../constants/index.js\";\nimport { BREAKPOINT_MOBILE, STYLE_SPACING_AUTO, } from \"../types/index.js\";\nimport { applyClassNamePrefix, camelCaseToKebabCase, isEmpty } from \"../utils/index.js\";\nconst CLASS_SEPARATOR = '-';\nconst normalizeSpacingValue = (value) => value === STYLE_SPACING_AUTO ? STYLE_SPACING_AUTO : value.replace(/[^0-9]/g, '');\nconst isSpaceToken = (value) => typeof value === 'string' && value.startsWith('space-');\nconst getUtilityValue = (value) => (isSpaceToken(value) ? normalizeSpacingValue(value) : value);\nconst isKeyIncluded = (object, key) => Object.keys(object).includes(key);\nconst processBreakpointProperties = (utilityName, propValue, prefix) => Object.keys(propValue).reduce((accumulatedBreakpointUtilities, breakpoint) => {\n const breakpointValue = propValue[breakpoint];\n if (typeof breakpointValue === 'string') {\n const utilityValue = getUtilityValue(breakpointValue);\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n accumulatedBreakpointUtilities.push(applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}${utilityValue}`));\n }\n return accumulatedBreakpointUtilities;\n}, []);\nconst processHideOnProperty = (utilityName, propValue, prefix) => {\n const breakpoints = Array.isArray(propValue) ? propValue : [propValue];\n return breakpoints.map((breakpoint) => applyClassNamePrefix(prefix)(`${utilityName}${CLASS_SEPARATOR}only${CLASS_SEPARATOR}${breakpoint}${CLASS_SEPARATOR}none`));\n};\nconst processHideFromProperty = (utilityName, propValue, prefix) => {\n const breakpoint = propValue;\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n return [applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}none`)];\n};\nconst processDisplayProperties = (utilityKey, utilityName, propValue, prefix) => {\n switch (utilityKey) {\n case 'hideOn':\n return processHideOnProperty(utilityName, propValue, prefix);\n case 'hideFrom':\n return processHideFromProperty(utilityName, propValue, prefix);\n default:\n return [];\n }\n};\nconst processProperties = (utilityKey, utilityName, propValue, prefix) => {\n if (utilityName === ThemeStyleProps.theme) {\n if (typeof propValue !== 'string') {\n return [];\n }\n const themeClassName = camelCaseToKebabCase(propValue);\n return [applyClassNamePrefix(prefix)(themeClassName)];\n }\n if (utilityKey in DisplayStyleProps) {\n return processDisplayProperties(utilityKey, utilityName, propValue, prefix);\n }\n if (typeof propValue === 'boolean') {\n return propValue ? [applyClassNamePrefix(prefix)(utilityName)] : [];\n }\n if (typeof propValue === 'string') {\n return [applyClassNamePrefix(prefix)(`${utilityName}-${getUtilityValue(propValue)}`)];\n }\n return processBreakpointProperties(utilityName, propValue, prefix);\n};\nconst isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {\n const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);\n if (options.includesKey) {\n return isStylePropKeyIncluded && !isEmpty(stylePropValue);\n }\n return !isStylePropKeyIncluded;\n};\nexport const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {\n const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, DefaultSpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);\n const propEntries = Object.entries(props);\n const styleUtilities = propEntries.reduce((accumulatedUtilities, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue)) {\n const utilityName = styleProps[key];\n return [\n ...accumulatedUtilities,\n ...processProperties(key, utilityName, propValue, prefix),\n ];\n }\n return accumulatedUtilities;\n }, []);\n const updatedProps = propEntries.reduce((accumulatedProps, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue, { includesKey: false })) {\n return Object.assign(Object.assign({}, accumulatedProps), { [key]: propValue });\n }\n return accumulatedProps;\n }, {});\n return {\n styleUtilities,\n props: updatedProps,\n };\n};\n//# sourceMappingURL=useStyleUtilities.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useContext } from 'react';\nimport { warning } from \"../common/utilities/index.js\";\nimport { ThemeStyleProps } from \"../constants/index.js\";\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { useStyleUtilities } from \"./useStyleUtilities.js\";\nexport function useStyleProps(props, additionalUtilities) {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n const { UNSAFE_className, UNSAFE_style } = props, otherProps = __rest(props, [\"UNSAFE_className\", \"UNSAFE_style\"]);\n const styleUtilitiesConfig = Object.assign({ theme: ThemeStyleProps.theme }, (additionalUtilities !== null && additionalUtilities !== void 0 ? additionalUtilities : {}));\n const { styleUtilities, props: modifiedProps } = useStyleUtilities(otherProps, classNamePrefix, styleUtilitiesConfig);\n const style = Object.assign({}, UNSAFE_style);\n if (modifiedProps.className) {\n warning(false, 'The className prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.className;\n }\n if (modifiedProps.style) {\n warning(false, 'The style prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.style;\n }\n const styleProps = {\n style: Object.keys(style).length > 0 ? style : undefined,\n className: classNames(UNSAFE_className, ...styleUtilities) || undefined,\n };\n return {\n styleProps,\n props: modifiedProps,\n };\n}\n//# sourceMappingURL=styleProps.js.map","'use client';\nimport { useContext } from 'react';\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { applyClassNamePrefix } from \"../utils/classname.js\";\nexport const useClassNamePrefix = (className) => {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n let prefixedClassName = className;\n if (className && classNamePrefix) {\n prefixedClassName = applyClassNamePrefix(classNamePrefix)(className);\n }\n else if (classNamePrefix) {\n prefixedClassName = classNamePrefix;\n }\n return prefixedClassName;\n};\n//# sourceMappingURL=useClassNamePrefix.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst IconsContext = createContext(defaultContext);\nconst IconsProvider = IconsContext.Provider;\nconst IconsConsumer = IconsContext.Consumer;\nexport default IconsContext;\nexport { IconsConsumer, IconsProvider };\n//# sourceMappingURL=IconsContext.js.map","'use client';\nimport { useContext } from 'react';\nimport warning from \"../common/utilities/warning.js\";\nimport IconsContext from \"../context/IconsContext.js\";\nexport const useIcon = (name) => {\n const icons = useContext(IconsContext);\n if (icons != null && icons[name] != null) {\n return icons[name];\n }\n warning(false, `The ${name} icon is missing from your assets or icon map provided by the IconsProvider. Please make sure you have provided all icons needed by used components.`);\n return '';\n};\n//# sourceMappingURL=useIcon.js.map","export const DEFAULT_BOX_SIZE = 24;\n//# sourceMappingURL=constants.js.map","import { DEFAULT_BOX_SIZE } from \"./constants.js\";\nexport const useIconBoxSize = (boxSize) => { var _a; return typeof boxSize === 'object' ? ((_a = boxSize.mobile) !== null && _a !== void 0 ? _a : DEFAULT_BOX_SIZE) : (boxSize !== null && boxSize !== void 0 ? boxSize : DEFAULT_BOX_SIZE); };\n//# sourceMappingURL=useIconBoxSize.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { cssVariablePrefix } from '@alma-oss/spirit-design-tokens';\nimport classNames from 'classnames';\nimport { TextColors } from \"../../constants/index.js\";\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nconst setCustomDimension = (prefix, size) => {\n const style = {};\n if (typeof size === 'object') {\n Object.entries(size).forEach(([breakpoint, breakpointSize]) => {\n const breakpointSuffix = breakpoint === 'mobile' ? '' : `-${breakpoint}`;\n style[`${prefix}${breakpointSuffix}`] = `${breakpointSize === null || breakpointSize === void 0 ? void 0 : breakpointSize.toString()}px`;\n });\n }\n return style;\n};\nexport const useIconStyleProps = (props) => {\n const { boxSize, color, name } = props, otherProps = __rest(props, [\"boxSize\", \"color\", \"name\"]);\n const stylePrefix = `--${cssVariablePrefix}icon`;\n const isDualtoneIcon = String(name).includes('-dualtone');\n const dualtoneColorWithDefault = isDualtoneIcon && !color ? TextColors.PRIMARY : color;\n const iconClass = useClassNamePrefix('Icon');\n const iconDualtoneColorClass = `${iconClass}--${dualtoneColorWithDefault}`;\n const classProps = classNames(iconClass, {\n [iconDualtoneColorClass]: color || dualtoneColorWithDefault,\n });\n const customizedIconStyle = Object.assign({}, (boxSize ? setCustomDimension(`${stylePrefix}-size`, boxSize) : {}));\n return {\n classProps,\n iconStyleProps: customizedIconStyle,\n props: otherProps,\n };\n};\n//# sourceMappingURL=useIconStyleProps.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport React, { forwardRef } from 'react';\nimport { useIcon, useStyleProps } from \"../../hooks/index.js\";\nimport { htmlReactParser, mergeStyleProps } from \"../../utils/index.js\";\nimport { DEFAULT_BOX_SIZE } from \"./constants.js\";\nimport { useIconBoxSize } from \"./useIconBoxSize.js\";\nimport { useIconStyleProps } from \"./useIconStyleProps.js\";\nconst defaultProps = {\n ariaHidden: true,\n boxSize: DEFAULT_BOX_SIZE,\n};\nconst _Icon = (props, ref) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { boxSize, name, title, ariaHidden } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"boxSize\", \"name\", \"title\", \"ariaHidden\"]);\n let icon = useIcon(name);\n const iconSize = useIconBoxSize(boxSize);\n const { classProps, iconStyleProps, props: modifiedProps } = useIconStyleProps(Object.assign({ boxSize, name }, restProps));\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps('svg', {\n classProps,\n iconStyleProps,\n styleProps,\n });\n if (title) {\n icon = `<title>${title}</title>${icon}`;\n }\n return (React.createElement(\"svg\", Object.assign({}, otherProps, mergedStyleProps, { viewBox: \"0 0 24 24\", fill: \"none\", width: iconSize, height: iconSize, \"aria-hidden\": ariaHidden, ref: ref }), htmlReactParser(icon)));\n};\nconst Icon = forwardRef(_Icon);\nIcon.spiritComponent = 'Icon';\nIcon.displayName = 'Icon';\nexport default Icon;\n//# sourceMappingURL=Icon.js.map","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nexport function useSpinnerStyleProps(props) {\n const { color } = props, restProps = __rest(props, [\"color\"]);\n const spinnerClass = useClassNamePrefix('text');\n const spinnerColorClass = color ? `${spinnerClass}-${color}` : '';\n const spinnerAnimation = useClassNamePrefix('animation-spin-clockwise');\n const className = classNames(spinnerColorClass, spinnerAnimation);\n return {\n classProps: className,\n props: restProps,\n };\n}\n//# sourceMappingURL=useSpinnerStyleProps.js.map","'use client';\nimport classNames from 'classnames';\nimport React from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useSpinnerStyleProps } from \"./useSpinnerStyleProps.js\";\nconst Spinner = (props) => {\n const { classProps, props: modifiedProps } = useSpinnerStyleProps(props);\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n return (React.createElement(Icon, Object.assign({}, otherProps, { name: \"spinner\", UNSAFE_className: classNames(classProps, styleProps.className), UNSAFE_style: styleProps.style })));\n};\nSpinner.spiritComponent = 'Spinner';\nexport default Spinner;\n//# sourceMappingURL=Spinner.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","cssVariablePrefix","forwardRef"],"mappings":";;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACNlF,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AAIzB,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,KAAK,WAAW,EAAE;AAC5C,YAAY,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC;AAC9B,QAAQ;AACR,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B,QAAQ;AACR,QAAQ,OAAO,CAAC,EAAE;AAClB,QAAQ;AACR,IAAI;AACJ,CAAC;;AChBD,IAAIA,QAAM,GAAG,CAACC,SAAI,IAAIA,SAAI,CAAC,MAAM,KAAK,UAAU,CAAC,EAAE,CAAC,EAAE;AACtD,IAAI,IAAI,CAAC,GAAG,EAAE;AACd,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC;AACvF,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;AACnB,IAAI,IAAI,CAAC,IAAI,IAAI,IAAI,OAAO,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AK,EAAE,SAAS;AACxB,KAAK;AACL;;ACjBK,MAAC,OAAO,GAAG,CAAC,KAAK,KAAK;AAC3B,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC;AAC5E,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1E,IAAI,QAAQ,KAAK,CAAC,aAAa,CAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,YAAY,EAAE,UAAU,CAAC,KAAK,EAAE,CAAC,CAAC;AACzL;AACA,OAAO,CAAC,eAAe,GAAG,SAAS;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,OAAO,GAAG,CAAkC,KAA4B,EAAe,EAAE;IAC7F,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACzE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;IAEvE,OAAO,
|
|
1
|
+
{"version":3,"file":"Spinner.js","sourceRoot":"","sources":["../../../src/components/Spinner/Spinner.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,MAAM,OAAO,GAAG,CAAkC,KAA4B,EAAe,EAAE;IAC7F,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IACzE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;IAEvE,OAAO,CAEL,oBAAC,IAAI,oBACC,UAAU,IACd,IAAI,EAAC,SAAS,EACd,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,SAAS,CAAC,EAC9D,YAAY,EAAE,UAAU,CAAC,KAAK,IAC9B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC;AAEpC,eAAe,OAAO,CAAC"}
|
|
@@ -175,8 +175,11 @@ const htmlReactParser = (html) => {
|
|
|
175
175
|
return domToReact(htmlToDOM(html));
|
|
176
176
|
};
|
|
177
177
|
|
|
178
|
+
function hasSpiritComponent(elementTag) {
|
|
179
|
+
return typeof elementTag !== 'string' && elementTag !== null && 'spiritComponent' in elementTag;
|
|
180
|
+
}
|
|
178
181
|
function mergeStyleProps(ElementTag, styleProps) {
|
|
179
|
-
const isSpiritComponent =
|
|
182
|
+
const isSpiritComponent = hasSpiritComponent(ElementTag);
|
|
180
183
|
const isNonNullableObject = (styleProp) => typeof styleProp === 'object' && styleProp !== null;
|
|
181
184
|
const extractClassNames = (styleProp) => {
|
|
182
185
|
if (typeof styleProp === 'string') {
|
|
@@ -300,8 +303,10 @@ const processProperties = (utilityKey, utilityName, propValue, prefix) => {
|
|
|
300
303
|
};
|
|
301
304
|
const isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {
|
|
302
305
|
const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);
|
|
303
|
-
|
|
304
|
-
|
|
306
|
+
if (options.includesKey) {
|
|
307
|
+
return isStylePropKeyIncluded && !isEmpty(stylePropValue);
|
|
308
|
+
}
|
|
309
|
+
return !isStylePropKeyIncluded;
|
|
305
310
|
};
|
|
306
311
|
const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {
|
|
307
312
|
const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, SpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);
|
|
@@ -429,11 +434,11 @@ const useClickOutside = ({ ref, callback }) => {
|
|
|
429
434
|
};
|
|
430
435
|
|
|
431
436
|
const useDeprecationMessage = ({ method = 'component', trigger, componentName, componentProps, propertyProps, customText, }) => {
|
|
432
|
-
let message;
|
|
433
|
-
let hasProps;
|
|
434
437
|
const messageBase = `Deprecation warning (${componentName}):`;
|
|
435
438
|
React.useEffect(() => {
|
|
436
439
|
const isExecutable = trigger && componentName && process.env.NODE_ENV === 'development';
|
|
440
|
+
let message;
|
|
441
|
+
let hasProps;
|
|
437
442
|
switch (method) {
|
|
438
443
|
case 'property':
|
|
439
444
|
if (propertyProps === null || propertyProps === void 0 ? void 0 : propertyProps.delete) {
|
|
@@ -468,6 +473,63 @@ const useDeprecationMessage = ({ method = 'component', trigger, componentName, c
|
|
|
468
473
|
}, []);
|
|
469
474
|
};
|
|
470
475
|
|
|
476
|
+
const defaultLabels = {
|
|
477
|
+
common: {
|
|
478
|
+
close: 'Close',
|
|
479
|
+
edit: 'Edit',
|
|
480
|
+
remove: 'Remove',
|
|
481
|
+
},
|
|
482
|
+
breadcrumbs: {
|
|
483
|
+
back: 'Go back',
|
|
484
|
+
},
|
|
485
|
+
fileUploader: {
|
|
486
|
+
edit: 'Edit',
|
|
487
|
+
remove: 'Remove',
|
|
488
|
+
attachments: 'Attachments',
|
|
489
|
+
},
|
|
490
|
+
pagination: {
|
|
491
|
+
next: 'Next',
|
|
492
|
+
previous: 'Previous',
|
|
493
|
+
goToPage: 'Go to page',
|
|
494
|
+
},
|
|
495
|
+
textField: {
|
|
496
|
+
password: {
|
|
497
|
+
show: 'Show password',
|
|
498
|
+
hide: 'Hide password',
|
|
499
|
+
},
|
|
500
|
+
},
|
|
501
|
+
splitButton: {
|
|
502
|
+
dropdown: 'More',
|
|
503
|
+
},
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
const replaceTranslationParams = (translation, params) => Object.entries(params).reduce((result, [paramKey, value]) => {
|
|
507
|
+
const safeParamKey = paramKey.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
508
|
+
return result.replace(new RegExp(`\\{${safeParamKey}\\}`, 'g'), String(value));
|
|
509
|
+
}, translation);
|
|
510
|
+
|
|
511
|
+
const resolveTranslationKey = (obj, path) => {
|
|
512
|
+
const keys = path.split('.');
|
|
513
|
+
let current = obj;
|
|
514
|
+
for (const key of keys) {
|
|
515
|
+
if (typeof current === 'object' && current !== null && key in current) {
|
|
516
|
+
current = current[key];
|
|
517
|
+
}
|
|
518
|
+
else {
|
|
519
|
+
return path;
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
return typeof current === 'string' ? current : path;
|
|
523
|
+
};
|
|
524
|
+
|
|
525
|
+
const useI18n = () => {
|
|
526
|
+
const t = (key, params) => {
|
|
527
|
+
const translation = resolveTranslationKey(defaultLabels, key);
|
|
528
|
+
return !params ? translation : replaceTranslationParams(translation, params);
|
|
529
|
+
};
|
|
530
|
+
return { t };
|
|
531
|
+
};
|
|
532
|
+
|
|
471
533
|
const useIcon = (name) => {
|
|
472
534
|
const icons = React.useContext(IconsContext);
|
|
473
535
|
if (icons != null && icons[name] != null) {
|
|
@@ -477,6 +539,43 @@ const useIcon = (name) => {
|
|
|
477
539
|
return '';
|
|
478
540
|
};
|
|
479
541
|
|
|
542
|
+
const SYMMETRICAL_CLASS_SUFFIX = '--symmetrical';
|
|
543
|
+
const NON_SYMMETRICAL_CLASS_SUFFIX = '--asymmetrical';
|
|
544
|
+
function getSymmetryClassNamesReducer(componentClass, isSymmetrical) {
|
|
545
|
+
return (acc, breakpoint) => {
|
|
546
|
+
if (breakpoint in isSymmetrical) {
|
|
547
|
+
const value = isSymmetrical[breakpoint];
|
|
548
|
+
const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `--${breakpoint}`;
|
|
549
|
+
if (value) {
|
|
550
|
+
return {
|
|
551
|
+
classes: [...acc.classes, `${componentClass}${infix}${SYMMETRICAL_CLASS_SUFFIX}`],
|
|
552
|
+
wasSymmetrical: true,
|
|
553
|
+
};
|
|
554
|
+
}
|
|
555
|
+
if (acc.wasSymmetrical) {
|
|
556
|
+
return {
|
|
557
|
+
classes: [...acc.classes, `${componentClass}${infix}${NON_SYMMETRICAL_CLASS_SUFFIX}`],
|
|
558
|
+
wasSymmetrical: acc.wasSymmetrical,
|
|
559
|
+
};
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
return acc;
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
function useSymmetry(componentClass, isSymmetrical) {
|
|
566
|
+
if (typeof isSymmetrical !== 'object' || isSymmetrical === null) {
|
|
567
|
+
return {
|
|
568
|
+
isSymmetricalActive: isSymmetrical === true,
|
|
569
|
+
symmetricalClassName: isSymmetrical ? `${componentClass}${SYMMETRICAL_CLASS_SUFFIX}` : '',
|
|
570
|
+
};
|
|
571
|
+
}
|
|
572
|
+
const { classes } = Object.keys(spiritDesignTokens.breakpoints).reduce(getSymmetryClassNamesReducer(componentClass, isSymmetrical), { classes: [], wasSymmetrical: false });
|
|
573
|
+
return {
|
|
574
|
+
isSymmetricalActive: Object.values(isSymmetrical).includes(true),
|
|
575
|
+
symmetricalClassName: classes.join(' '),
|
|
576
|
+
};
|
|
577
|
+
}
|
|
578
|
+
|
|
480
579
|
function useSplitButtonStyleProps() {
|
|
481
580
|
const SplitButtonClass = useClassNamePrefix('SplitButton');
|
|
482
581
|
return {
|
|
@@ -545,16 +644,16 @@ function useButtonStyleProps(props) {
|
|
|
545
644
|
const buttonBlockClass = `${buttonClass}--block`;
|
|
546
645
|
const buttonDisabledClass = `${buttonClass}--disabled`;
|
|
547
646
|
const buttonLoadingClass = `${buttonClass}--loading`;
|
|
548
|
-
const
|
|
549
|
-
if (isBlock &&
|
|
647
|
+
const { isSymmetricalActive, symmetricalClassName } = useSymmetry(buttonClass, isSymmetrical);
|
|
648
|
+
if (isBlock && isSymmetricalActive) {
|
|
550
649
|
warning(false, 'isBlock and isSymmetrical props are mutually exclusive');
|
|
551
650
|
}
|
|
651
|
+
const shouldApplyBlock = () => isBlock && !isSymmetricalActive;
|
|
552
652
|
const classProps = classNames(buttonClass, getButtonColorClassname(buttonClass, color), getButtonSizeClassname(buttonClass, size), {
|
|
553
|
-
[buttonBlockClass]:
|
|
653
|
+
[buttonBlockClass]: shouldApplyBlock(),
|
|
554
654
|
[buttonDisabledClass]: isDisabled || isLoading,
|
|
555
655
|
[buttonLoadingClass]: isLoading,
|
|
556
|
-
|
|
557
|
-
});
|
|
656
|
+
}, symmetricalClassName);
|
|
558
657
|
return {
|
|
559
658
|
classProps,
|
|
560
659
|
props: restProps,
|
|
@@ -638,6 +737,7 @@ const _Icon = (props, ref) => {
|
|
|
638
737
|
};
|
|
639
738
|
const Icon = React.forwardRef(_Icon);
|
|
640
739
|
Icon.spiritComponent = 'Icon';
|
|
740
|
+
Icon.displayName = 'Icon';
|
|
641
741
|
|
|
642
742
|
var __rest$a = (undefined && undefined.__rest) || function (s, e) {
|
|
643
743
|
var t = {};
|
|
@@ -693,17 +793,19 @@ const defaultProps$3 = {
|
|
|
693
793
|
const _Button = (props, ref) => {
|
|
694
794
|
const propsWithContext = usePropsContext();
|
|
695
795
|
const propsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaultProps$3), props), propsWithContext);
|
|
696
|
-
const { elementType
|
|
796
|
+
const { elementType = defaultProps$3.elementType, children } = propsWithDefaults, restProps = __rest$9(propsWithDefaults, ["elementType", "children"]);
|
|
797
|
+
const Component = elementType;
|
|
697
798
|
const { buttonProps } = useButtonProps(restProps);
|
|
698
799
|
const { classProps, props: modifiedProps } = useButtonStyleProps(restProps);
|
|
699
800
|
const { styleProps, props: otherProps } = useStyleProps(modifiedProps);
|
|
700
|
-
const mergedStyleProps = mergeStyleProps(
|
|
701
|
-
return (React.createElement(
|
|
801
|
+
const mergedStyleProps = mergeStyleProps(Component, { classProps, styleProps, otherProps });
|
|
802
|
+
return (React.createElement(Component, Object.assign({}, otherProps, buttonProps, { ref: ref }, mergedStyleProps),
|
|
702
803
|
children,
|
|
703
804
|
restProps.isLoading && React.createElement(Spinner, null)));
|
|
704
805
|
};
|
|
705
806
|
const Button = React.forwardRef(_Button);
|
|
706
807
|
Button.spiritComponent = 'Button';
|
|
808
|
+
Button.displayName = 'Button';
|
|
707
809
|
|
|
708
810
|
const useButtonLinkProps = (props) => {
|
|
709
811
|
const { elementType, isDisabled, isLoading, onClick, href, target, rel } = props;
|
|
@@ -745,16 +847,16 @@ function useButtonLinkStyleProps(props) {
|
|
|
745
847
|
const buttonBlockClass = `${buttonClass}--block`;
|
|
746
848
|
const buttonDisabledClass = `${buttonClass}--disabled`;
|
|
747
849
|
const buttonLoadingClass = `${buttonClass}--loading`;
|
|
748
|
-
const
|
|
749
|
-
if (isBlock &&
|
|
850
|
+
const { isSymmetricalActive, symmetricalClassName } = useSymmetry(buttonClass, isSymmetrical);
|
|
851
|
+
if (isBlock && isSymmetricalActive) {
|
|
750
852
|
warning(false, 'isBlock and isSymmetrical props are mutually exclusive');
|
|
751
853
|
}
|
|
854
|
+
const shouldApplyBlock = () => isBlock && !isSymmetricalActive;
|
|
752
855
|
const classProps = classNames(buttonClass, getButtonLinkColorClassname(buttonClass, color), getButtonLinkSizeClassname(buttonClass, size), {
|
|
753
|
-
[buttonBlockClass]:
|
|
856
|
+
[buttonBlockClass]: shouldApplyBlock(),
|
|
754
857
|
[buttonDisabledClass]: isDisabled || isLoading,
|
|
755
858
|
[buttonLoadingClass]: isLoading,
|
|
756
|
-
|
|
757
|
-
});
|
|
859
|
+
}, symmetricalClassName);
|
|
758
860
|
return {
|
|
759
861
|
classProps,
|
|
760
862
|
props: restProps,
|
|
@@ -783,17 +885,19 @@ const defaultProps$2 = {
|
|
|
783
885
|
};
|
|
784
886
|
const _ButtonLink = (props, ref) => {
|
|
785
887
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps$2), props);
|
|
786
|
-
const { elementType
|
|
888
|
+
const { elementType = defaultProps$2.elementType, children } = propsWithDefaults, restProps = __rest$7(propsWithDefaults, ["elementType", "children"]);
|
|
889
|
+
const Component = elementType;
|
|
787
890
|
const { buttonLinkProps } = useButtonLinkProps(propsWithDefaults);
|
|
788
891
|
const { classProps, props: modifiedProps } = useButtonLinkStyleProps(restProps);
|
|
789
892
|
const { styleProps, props: otherProps } = useStyleProps(modifiedProps);
|
|
790
|
-
const mergedStyleProps = mergeStyleProps(
|
|
791
|
-
return (React.createElement(
|
|
893
|
+
const mergedStyleProps = mergeStyleProps(Component, { classProps, styleProps, otherProps });
|
|
894
|
+
return (React.createElement(Component, Object.assign({}, otherProps, buttonLinkProps, mergedStyleProps, { ref: ref }),
|
|
792
895
|
children,
|
|
793
896
|
restProps.isLoading && React.createElement(Spinner, null)));
|
|
794
897
|
};
|
|
795
898
|
const ButtonLink = React.forwardRef(_ButtonLink);
|
|
796
899
|
ButtonLink.spiritComponent = 'ButtonLink';
|
|
900
|
+
ButtonLink.displayName = 'ButtonLink';
|
|
797
901
|
|
|
798
902
|
const NAME_ARIA_EXPANDED = 'aria-expanded';
|
|
799
903
|
const NAME_ARIA_CONTROLS = 'aria-controls';
|
|
@@ -1004,8 +1108,6 @@ const VisuallyHidden = (props) => {
|
|
|
1004
1108
|
};
|
|
1005
1109
|
VisuallyHidden.spiritComponent = 'VisuallyHidden';
|
|
1006
1110
|
|
|
1007
|
-
const UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT = 'More';
|
|
1008
|
-
|
|
1009
1111
|
var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
1010
1112
|
var t = {};
|
|
1011
1113
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -1020,20 +1122,21 @@ var __rest = (undefined && undefined.__rest) || function (s, e) {
|
|
|
1020
1122
|
const defaultProps = {
|
|
1021
1123
|
dropdownPlacement: 'bottom-end',
|
|
1022
1124
|
dropdownTriggerIconName: 'chevron-down',
|
|
1023
|
-
dropdownTriggerLabel: UNCONTROLLED_SPLIT_BUTTON_DROPDOWN_TRIGGER_LABEL_DEFAULT,
|
|
1024
1125
|
};
|
|
1025
1126
|
const UncontrolledSplitButton = (props) => {
|
|
1127
|
+
const { t } = useI18n();
|
|
1026
1128
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
1027
1129
|
const { buttonIconName, buttonLabel, buttonOnClick, children, dropdownTriggerIconName, dropdownTriggerLabel, dropdownPlacement, id, isButtonLabelHidden, isDisabled, isDropdownTriggerLabelHidden } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["buttonIconName", "buttonLabel", "buttonOnClick", "children", "dropdownTriggerIconName", "dropdownTriggerLabel", "dropdownPlacement", "id", "isButtonLabelHidden", "isDisabled", "isDropdownTriggerLabelHidden"]);
|
|
1130
|
+
const resolvedDropdownTriggerLabel = dropdownTriggerLabel !== null && dropdownTriggerLabel !== void 0 ? dropdownTriggerLabel : t('splitButton.dropdown');
|
|
1028
1131
|
const [openDropdownState, setOpenDropdownState] = React.useState(false);
|
|
1029
1132
|
return (React.createElement(SplitButton, Object.assign({}, restProps, { id: id, isDisabled: isDisabled }),
|
|
1030
1133
|
React.createElement(Button, { onClick: buttonOnClick },
|
|
1031
|
-
buttonIconName && React.createElement(Icon, { name: buttonIconName,
|
|
1134
|
+
buttonIconName && React.createElement(Icon, Object.assign({ name: buttonIconName }, (!isButtonLabelHidden && { marginRight: 'space-400' }))),
|
|
1032
1135
|
isButtonLabelHidden ? React.createElement(VisuallyHidden, null, buttonLabel) : buttonLabel),
|
|
1033
1136
|
React.createElement(Dropdown, { id: `${id}-dropdown`, isOpen: openDropdownState, onToggle: () => setOpenDropdownState(!openDropdownState), placement: dropdownPlacement },
|
|
1034
1137
|
React.createElement(DropdownTrigger, { elementType: Button },
|
|
1035
|
-
isDropdownTriggerLabelHidden ? (React.createElement(VisuallyHidden, null,
|
|
1036
|
-
React.createElement(Icon, { name: dropdownTriggerIconName,
|
|
1138
|
+
isDropdownTriggerLabelHidden ? (React.createElement(VisuallyHidden, null, resolvedDropdownTriggerLabel)) : (resolvedDropdownTriggerLabel),
|
|
1139
|
+
React.createElement(Icon, Object.assign({ name: dropdownTriggerIconName }, (!isDropdownTriggerLabelHidden && { marginLeft: 'space-400' })))),
|
|
1037
1140
|
React.createElement(DropdownPopover, null, children))));
|
|
1038
1141
|
};
|
|
1039
1142
|
|