@alma-oss/spirit-web-react 4.2.0 → 4.2.1
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 +2 -1
- package/bundles/web-react.umd.js +450 -277
- package/bundles/web-react.umd.js.map +1 -1
- package/bundles/web-react.umd.min.js +1 -1
- package/bundles/web-react.umd.min.js.map +1 -1
- package/components/Accordion/Accordion.cjs +2 -2
- package/components/Accordion/Accordion.cjs.map +1 -1
- package/components/ActionGroup/ActionGroup.cjs +2 -2
- package/components/ActionGroup/ActionGroup.cjs.map +1 -1
- package/components/Avatar/Avatar.js.map +1 -1
- package/components/Button/Button.cjs +49 -12
- package/components/Button/Button.cjs.map +1 -1
- package/components/Button/Button.js.map +1 -1
- package/components/Button/useButtonStyleProps.js +6 -6
- package/components/Button/useButtonStyleProps.js.map +1 -1
- package/components/ButtonLink/ButtonLink.js.map +1 -1
- package/components/ButtonLink/useButtonLinkStyleProps.js +6 -6
- package/components/ButtonLink/useButtonLinkStyleProps.js.map +1 -1
- package/components/Card/CardLink.js.map +1 -1
- package/components/Checkbox/Checkbox.cjs +45 -1
- package/components/Checkbox/Checkbox.cjs.map +1 -1
- 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 +2 -2
- package/components/Collapse/Collapse.cjs.map +1 -1
- package/components/ControlButton/ControlButton.js.map +1 -1
- package/components/ControlButton/useControlButtonStyleProps.js +3 -4
- package/components/ControlButton/useControlButtonStyleProps.js.map +1 -1
- package/components/Drawer/Drawer.cjs +49 -12
- package/components/Drawer/Drawer.cjs.map +1 -1
- package/components/Drawer/DrawerPanel.js.map +1 -1
- package/components/FileUploader/useFileUploaderInput.js.map +1 -1
- package/components/Flex/Flex.cjs +2 -2
- package/components/Flex/Flex.cjs.map +1 -1
- package/components/Grid/Grid.cjs +6 -5
- package/components/Grid/Grid.cjs.map +1 -1
- package/components/Grid/useGridItemStyleProps.js +6 -5
- package/components/Grid/useGridItemStyleProps.js.map +1 -1
- package/components/Header/Header.cjs +49 -12
- package/components/Header/Header.cjs.map +1 -1
- package/components/Header/HeaderDialogLink.js.map +1 -1
- package/components/Header/HeaderLink.js.map +1 -1
- package/components/Hidden/Hidden.d.ts +9 -0
- package/components/Hidden/Hidden.js +31 -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.js.map +1 -1
- package/components/Link/Link.js.map +1 -1
- package/components/Matrix/Matrix.cjs.map +1 -1
- package/components/Matrix/Matrix.js +2 -2
- package/components/Matrix/Matrix.js.map +1 -1
- package/components/Matrix/useMatrixStyleProps.d.ts +1 -1
- package/components/Matrix/useMatrixStyleProps.js.map +1 -1
- package/components/Modal/Modal.cjs +50 -14
- package/components/Modal/Modal.cjs.map +1 -1
- package/components/Modal/useModalDialogStyleProps.js +1 -2
- package/components/Modal/useModalDialogStyleProps.js.map +1 -1
- package/components/Navigation/NavigationAction.js.map +1 -1
- package/components/Navigation/NavigationAvatar.js.map +1 -1
- package/components/Pagination/Pagination.cjs +50 -13
- package/components/Pagination/Pagination.cjs.map +1 -1
- package/components/Pagination/PaginationButtonLink.js.map +1 -1
- package/components/Pagination/PaginationLink.js +1 -1
- package/components/Pagination/PaginationLink.js.map +1 -1
- package/components/Pagination/PaginationLinkNext.js.map +1 -1
- package/components/Pagination/PaginationLinkPrevious.js.map +1 -1
- package/components/PricingPlan/PricingPlan.cjs +50 -14
- package/components/PricingPlan/PricingPlan.cjs.map +1 -1
- package/components/Radio/Radio.cjs +45 -1
- package/components/Radio/Radio.cjs.map +1 -1
- 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 +39 -3
- package/components/ScrollView/ScrollView.cjs.map +1 -1
- package/components/ScrollView/useScrollPosition.js.map +1 -1
- package/components/SegmentedControl/SegmentedControlContext.js.map +1 -1
- package/components/Select/Select.js.map +1 -1
- package/components/SkipLink/SkipLink.js.map +1 -1
- package/components/Slider/Slider.js.map +1 -1
- package/components/Spinner/Spinner.js.map +1 -1
- package/components/SplitButton/SplitButton.cjs +49 -12
- package/components/SplitButton/SplitButton.cjs.map +1 -1
- package/components/Tabs/TabContext.js.map +1 -1
- package/components/Tabs/TabLink.js.map +1 -1
- package/components/Tag/Tag.js.map +1 -1
- package/components/TextArea/TextArea.js.map +1 -1
- package/components/TextArea/useAdjustHeight.js.map +1 -1
- package/components/TextField/TextField.js.map +1 -1
- package/components/TextFieldBase/TextFieldBase.js.map +1 -1
- package/components/TextFieldBase/TextFieldBaseInput.js.map +1 -1
- package/components/Toast/Toast.cjs.map +1 -1
- 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/Toggle/Toggle.cjs +46 -1
- package/components/Toggle/Toggle.cjs.map +1 -1
- 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/UNSTABLE_Header/UNSTABLE_HeaderLogo.js.map +1 -1
- package/components/components.cjs +344 -263
- 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 +48 -7
- package/hooks/hooks.cjs.map +1 -1
- package/hooks/index.d.ts +2 -1
- package/hooks/index.js +2 -1
- package/hooks/index.js.map +1 -1
- package/hooks/useDeprecationMessage.js +2 -2
- package/hooks/useDeprecationMessage.js.map +1 -1
- package/hooks/useInputPositionClass.d.ts +2 -0
- package/hooks/useInputPositionClass.js +8 -0
- package/hooks/useInputPositionClass.js.map +1 -0
- package/hooks/useSymmetry.d.ts +7 -0
- package/hooks/useSymmetry.js +39 -0
- package/hooks/useSymmetry.js.map +1 -0
- package/index.cjs +347 -268
- package/index.cjs.map +1 -1
- package/package.json +6 -15
- package/spirit-web-react.cjs +347 -268
- package/spirit-web-react.cjs.map +1 -1
- package/spirit-web-react.min.cjs +1 -1
- package/types/button.d.ts +2 -2
- package/types/checkbox.d.ts +2 -1
- package/types/controlButton.d.ts +2 -2
- package/types/hidden.d.ts +10 -0
- package/types/hidden.js +2 -0
- package/types/hidden.js.map +1 -0
- 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 +2 -2
- package/types/pricingPlan.d.ts +1 -1
- package/types/radio.d.ts +2 -1
- package/types/shared/inputs.d.ts +3 -0
- package/types/slider.d.ts +2 -2
- package/types/toggle.d.ts +2 -1
- package/hooks/useDirectionClass.d.ts +0 -2
- package/hooks/useDirectionClass.js +0 -5
- package/hooks/useDirectionClass.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderDialogLink.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderDialogLink.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAoB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"HeaderDialogLink.js","sourceRoot":"","sources":["../../../src/components/Header/HeaderDialogLink.tsx"],"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AY,CAAC;AAE1C,eAAe,UAAU,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React, { type ElementType } from 'react';
|
|
2
|
+
import { type SpiritHiddenProps } from '../../types';
|
|
3
|
+
declare const Hidden: {
|
|
4
|
+
<T extends ElementType = "span">(props: SpiritHiddenProps<T>): React.JSX.Element;
|
|
5
|
+
spiritComponent: string;
|
|
6
|
+
spiritDefaultElement: "span";
|
|
7
|
+
spiritDefaultProps: SpiritHiddenProps<"span">;
|
|
8
|
+
};
|
|
9
|
+
export default Hidden;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import { useStyleProps } from "../../hooks/index.js";
|
|
15
|
+
import { mergeStyleProps } from "../../utils/index.js";
|
|
16
|
+
const defaultProps = {
|
|
17
|
+
elementType: 'span',
|
|
18
|
+
};
|
|
19
|
+
const Hidden = (props) => {
|
|
20
|
+
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
21
|
+
const { elementType: ElementTag = 'span', children, on, from } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["elementType", "children", "on", "from"]);
|
|
22
|
+
const stylePropsWithMapping = Object.assign(Object.assign({}, restProps), { hideOn: on || restProps.hideOn, hideFrom: from || restProps.hideFrom });
|
|
23
|
+
const { styleProps, props: otherProps } = useStyleProps(stylePropsWithMapping);
|
|
24
|
+
const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps });
|
|
25
|
+
return (React.createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));
|
|
26
|
+
};
|
|
27
|
+
Hidden.spiritComponent = 'Hidden';
|
|
28
|
+
Hidden.spiritDefaultElement = 'span';
|
|
29
|
+
Hidden.spiritDefaultProps = null;
|
|
30
|
+
export default Hidden;
|
|
31
|
+
//# sourceMappingURL=Hidden.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Hidden.js","sourceRoot":"","sources":["../../../src/components/Hidden/Hidden.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAA2B,MAAM,OAAO,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE9C,MAAM,YAAY,GAAG;IACnB,WAAW,EAAE,MAAe;CAC7B,CAAC;AAEF,MAAM,MAAM,GAAG,CAAiC,KAA2B,EAAE,EAAE;IAC7E,MAAM,iBAAiB,mCAAQ,YAAY,GAAK,KAAK,CAAE,CAAC;IACxD,MAAM,EAAE,WAAW,EAAE,UAAU,GAAG,MAAM,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,KAAmB,iBAAiB,EAA/B,SAAS,UAAK,iBAAiB,EAA1F,yCAAsE,CAAoB,CAAC;IAEjG,MAAM,qBAAqB,mCACtB,SAAS,KACZ,MAAM,EAAE,EAAE,IAAI,SAAS,CAAC,MAAM,EAC9B,QAAQ,EAAE,IAAI,IAAI,SAAS,CAAC,QAAQ,GACrC,CAAC;IAEF,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,qBAAqB,CAAC,CAAC;IAC/E,MAAM,gBAAgB,GAAG,eAAe,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,CAAC,CAAC;IAErE,OAAO,CACL,oBAAC,UAAU,oBAAK,UAAU,EAAM,gBAAgB,GAC7C,QAAQ,CACE,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,CAAC,eAAe,GAAG,QAAQ,CAAC;AAClC,MAAM,CAAC,oBAAoB,GAAG,MAAe,CAAC;AAC9C,MAAM,CAAC,kBAAkB,GAAG,IAA4C,CAAC;AAEzE,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Hidden } from './Hidden';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Hidden/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAqB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,YAAY,GAAG;IACnB,UAAU,EAAE,IAAI;IAChB,OAAO,EAAE,gBAAgB;CAC1B,CAAC;
|
|
1
|
+
{"version":3,"file":"Icon.js","sourceRoot":"","sources":["../../../src/components/Icon/Icon.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAqB,UAAU,EA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WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAE,QAAQ,EACf,MAAM,EAAE,QAAQ,iBACH,UAAU,EACvB,GAAG,EAAE,GAAG,KAEP,eAAe,CAAC,IAAI,CAAC,CAClB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,UAAU,CAAiC,KAAK,CAAC,CAAC;AAE/D,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC;AAE9B,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAoB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,YAAY,GAA6B;IAC7C,WAAW,EAAE,GAAG;IAChB,KAAK,EAAE,SAAS;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE,OAAO;CACpB,CAAC;
|
|
1
|
+
{"version":3,"file":"Link.js","sourceRoot":"","sources":["../../../src/components/Link/Link.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAoB,UAAU,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAExD,MAAM,YAAY,GAA6B;IAC7C,WAAW,EAAE,GAAG;IAChB,KAAK,EAAE,SAAS;IAChB,sBAAsB,EAAE,KAAK;IAC7B,UAAU,EAAE,OAAO;CACpB,CAAC;AAEF,MAAM,KAAK,GAAG,CACZ,KAA4B,EAC5B,GAAsB,EACT,EAAE;IACf,MAAM,iBAAiB,mCAAQ,YAAY,GAAK,KAAK,CAAE,CAAC;IACxD,MAAM,EACJ,WAAW,EAAE,UAAU,GAAG,YAAY,CAAC,WAA0B,EACjE,QAAQ,KAEN,iBAAiB,EADhB,SAAS,UACV,iBAAiB,EAJf,2BAIL,CAAoB,CAAC;IACtB,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAAC;IAC1E,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC,CAAC;IACvE,MAAM,gBAAgB,GAAG,eAAe,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC;IAE7F,OAAO,CACL,oBAAC,UAAU,oBAAK,UAAU,EAAM,gBAAgB,IAAE,IAAI,EAAE,SAAS,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,KAC7E,QAAQ,CACE,CACd,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,IAAI,GAAG,UAAU,CAAkD,KAAK,CAAC,CAAC;AAEhF,IAAI,CAAC,eAAe,GAAG,MAAM,CAAC;AAE9B,eAAe,IAAI,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Matrix.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/mergeStyleProps.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../hooks/useDimensionStyle.js","../../context/IconsContext.js","../../hooks/useSpacingStyle.js","constant.js","useMatrixStyleProps.js","Matrix.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","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","export const useDimensionStyle = (property, prefix) => {\n const style = {};\n const cssPrefix = `--${prefix}`;\n if (typeof property === 'object' && property !== null) {\n Object.keys(property).forEach((key) => {\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n const value = property[key];\n style[`${cssPrefix}${breakpointSuffix}`] = `${value === null || value === void 0 ? void 0 : value.toString()}`;\n });\n }\n else if (property) {\n style[`${cssPrefix}`] = `${property === null || property === void 0 ? void 0 : property.toString()}`;\n }\n return style;\n};\n//# sourceMappingURL=useDimensionStyle.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","import { cssVariablePrefix } from '@alma-oss/spirit-design-tokens';\nexport function useSpacingStyle(spacing, prefix, direction = undefined) {\n const style = {};\n const directionSuffix = direction ? `-${direction}` : '';\n if (typeof spacing === 'object' && spacing !== null) {\n Object.keys(spacing).forEach((key) => {\n var _a;\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n style[`--${prefix}-spacing${directionSuffix}${breakpointSuffix}`] =\n `var(--${cssVariablePrefix}${(_a = spacing[key]) === null || _a === void 0 ? void 0 : _a.toString()})`;\n });\n }\n else if (spacing) {\n style[`--${prefix}-spacing${directionSuffix}`] =\n `var(--${cssVariablePrefix}${spacing})`;\n }\n return style;\n}\n//# sourceMappingURL=useSpacingStyle.js.map","export const MATRIX_COLS_DEFAULT = 3;\nexport const MATRIX_ROWS_DEFAULT = 100;\nexport const MATRIX_ITEM_ROWS_DEFAULT = 100;\nexport const MATRIX_SPACING_X_DEFAULT = 'space-700';\nexport const MATRIX_SPACING_Y_DEFAULT = 'space-0';\n//# sourceMappingURL=constant.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 { DirectionAxis } from \"../../constants/index.js\";\nimport { useClassNamePrefix, useDimensionStyle, useSpacingStyle } from \"../../hooks/index.js\";\nimport { MATRIX_ROWS_DEFAULT } from \"./constant.js\";\nexport const useDefaultResponsiveRowsStyle = (cols, rows, itemsCount, prefix) => {\n const style = {};\n const cssPrefix = `--${prefix}`;\n if (typeof cols === 'object' && rows === MATRIX_ROWS_DEFAULT && itemsCount > 0) {\n Object.keys(cols).forEach((key) => {\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n style[`${cssPrefix}-items-count`] = `${itemsCount}`;\n style[`${cssPrefix}-rows${breakpointSuffix}`] =\n `calc(var(${cssPrefix}-item-rows) * var(${cssPrefix}-items-count) / var(${cssPrefix}-columns${breakpointSuffix}))`;\n });\n }\n return style;\n};\nexport function useMatrixStyleProps(props) {\n const { cols, itemsCount, itemRows, rows, spacing, spacingX, spacingY } = props, restProps = __rest(props, [\"cols\", \"itemsCount\", \"itemRows\", \"rows\", \"spacing\", \"spacingX\", \"spacingY\"]);\n const matrixClass = useClassNamePrefix('Matrix');\n const matrixPrefix = `${cssVariablePrefix}matrix`;\n const matrixCustomStyle = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, useDimensionStyle(cols, `${matrixPrefix}-columns`)), useDimensionStyle(rows, `${matrixPrefix}-rows`)), useDimensionStyle(itemRows, `${matrixPrefix}-item-rows`)), useDefaultResponsiveRowsStyle(cols, rows, itemsCount, matrixPrefix)), useSpacingStyle(spacing, matrixPrefix, DirectionAxis.X)), useSpacingStyle(spacing, matrixPrefix, DirectionAxis.Y)), useSpacingStyle(spacingX, matrixPrefix, DirectionAxis.X)), useSpacingStyle(spacingY, matrixPrefix, DirectionAxis.Y));\n return {\n classProps: classNames(matrixClass),\n props: restProps,\n styleProps: matrixCustomStyle,\n };\n}\n//# sourceMappingURL=useMatrixStyleProps.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 from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { MATRIX_COLS_DEFAULT, MATRIX_ITEM_ROWS_DEFAULT, MATRIX_ROWS_DEFAULT, MATRIX_SPACING_X_DEFAULT, MATRIX_SPACING_Y_DEFAULT, } from \"./constant.js\";\nimport { useMatrixStyleProps } from \"./useMatrixStyleProps.js\";\nconst defaultProps = {\n cols: MATRIX_COLS_DEFAULT,\n elementType: 'div',\n itemRows: MATRIX_ITEM_ROWS_DEFAULT,\n rows: MATRIX_ROWS_DEFAULT,\n spacingX: MATRIX_SPACING_X_DEFAULT,\n spacingY: MATRIX_SPACING_Y_DEFAULT,\n};\nconst Matrix = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = 'div', children } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"children\"]);\n const itemsCount = React.Children.count(children);\n const { classProps, props: modifiedProps, styleProps: matrixStyleProps, } = useMatrixStyleProps(Object.assign(Object.assign({}, restProps), { itemsCount }));\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { classProps, styleProps, otherProps, matrixStyleProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));\n};\nMatrix.spiritComponent = 'Matrix';\nexport default Matrix;\n//# sourceMappingURL=Matrix.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","cssVariablePrefix"],"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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AC,CAAC;AAChK,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1E,IAAI,MAAM,gBAAgB,GAAG,eAAe,CAAC,UAAU,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,gBAAgB,EAAE,CAAC;AAClH,IAAI,QAAQ,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,UAAU,EAAE,gBAAgB,CAAC,EAAE,QAAQ,CAAC;AACtG;AACA,MAAM,CAAC,eAAe,GAAG,QAAQ;;;;;;"}
|
|
1
|
+
{"version":3,"file":"Matrix.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/mergeStyleProps.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../hooks/useDimensionStyle.js","../../context/IconsContext.js","../../hooks/useSpacingStyle.js","constant.js","useMatrixStyleProps.js","Matrix.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","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","export const useDimensionStyle = (property, prefix) => {\n const style = {};\n const cssPrefix = `--${prefix}`;\n if (typeof property === 'object' && property !== null) {\n Object.keys(property).forEach((key) => {\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n const value = property[key];\n style[`${cssPrefix}${breakpointSuffix}`] = `${value === null || value === void 0 ? void 0 : value.toString()}`;\n });\n }\n else if (property) {\n style[`${cssPrefix}`] = `${property === null || property === void 0 ? void 0 : property.toString()}`;\n }\n return style;\n};\n//# sourceMappingURL=useDimensionStyle.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","import { cssVariablePrefix } from '@alma-oss/spirit-design-tokens';\nexport function useSpacingStyle(spacing, prefix, direction = undefined) {\n const style = {};\n const directionSuffix = direction ? `-${direction}` : '';\n if (typeof spacing === 'object' && spacing !== null) {\n Object.keys(spacing).forEach((key) => {\n var _a;\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n style[`--${prefix}-spacing${directionSuffix}${breakpointSuffix}`] =\n `var(--${cssVariablePrefix}${(_a = spacing[key]) === null || _a === void 0 ? void 0 : _a.toString()})`;\n });\n }\n else if (spacing) {\n style[`--${prefix}-spacing${directionSuffix}`] =\n `var(--${cssVariablePrefix}${spacing})`;\n }\n return style;\n}\n//# sourceMappingURL=useSpacingStyle.js.map","export const MATRIX_COLS_DEFAULT = 3;\nexport const MATRIX_ROWS_DEFAULT = 100;\nexport const MATRIX_ITEM_ROWS_DEFAULT = 100;\nexport const MATRIX_SPACING_X_DEFAULT = 'space-700';\nexport const MATRIX_SPACING_Y_DEFAULT = 'space-0';\n//# sourceMappingURL=constant.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 { DirectionAxis } from \"../../constants/index.js\";\nimport { useClassNamePrefix, useDimensionStyle, useSpacingStyle } from \"../../hooks/index.js\";\nimport { MATRIX_ROWS_DEFAULT } from \"./constant.js\";\nexport const useDefaultResponsiveRowsStyle = (cols, rows, itemsCount, prefix) => {\n const style = {};\n const cssPrefix = `--${prefix}`;\n if (typeof cols === 'object' && rows === MATRIX_ROWS_DEFAULT && itemsCount > 0) {\n Object.keys(cols).forEach((key) => {\n const breakpointSuffix = key === 'mobile' ? '' : `-${key}`;\n style[`${cssPrefix}-items-count`] = `${itemsCount}`;\n style[`${cssPrefix}-rows${breakpointSuffix}`] =\n `calc(var(${cssPrefix}-item-rows) * var(${cssPrefix}-items-count) / var(${cssPrefix}-columns${breakpointSuffix}))`;\n });\n }\n return style;\n};\nexport function useMatrixStyleProps(props) {\n const { cols, itemsCount, itemRows, rows, spacing, spacingX, spacingY } = props, restProps = __rest(props, [\"cols\", \"itemsCount\", \"itemRows\", \"rows\", \"spacing\", \"spacingX\", \"spacingY\"]);\n const matrixClass = useClassNamePrefix('Matrix');\n const matrixPrefix = `${cssVariablePrefix}matrix`;\n const matrixCustomStyle = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, useDimensionStyle(cols, `${matrixPrefix}-columns`)), useDimensionStyle(rows, `${matrixPrefix}-rows`)), useDimensionStyle(itemRows, `${matrixPrefix}-item-rows`)), useDefaultResponsiveRowsStyle(cols, rows, itemsCount, matrixPrefix)), useSpacingStyle(spacing, matrixPrefix, DirectionAxis.X)), useSpacingStyle(spacing, matrixPrefix, DirectionAxis.Y)), useSpacingStyle(spacingX, matrixPrefix, DirectionAxis.X)), useSpacingStyle(spacingY, matrixPrefix, DirectionAxis.Y));\n return {\n classProps: classNames(matrixClass),\n props: restProps,\n styleProps: matrixCustomStyle,\n };\n}\n//# sourceMappingURL=useMatrixStyleProps.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, { Children } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { MATRIX_COLS_DEFAULT, MATRIX_ITEM_ROWS_DEFAULT, MATRIX_ROWS_DEFAULT, MATRIX_SPACING_X_DEFAULT, MATRIX_SPACING_Y_DEFAULT, } from \"./constant.js\";\nimport { useMatrixStyleProps } from \"./useMatrixStyleProps.js\";\nconst defaultProps = {\n cols: MATRIX_COLS_DEFAULT,\n elementType: 'div',\n itemRows: MATRIX_ITEM_ROWS_DEFAULT,\n rows: MATRIX_ROWS_DEFAULT,\n spacingX: MATRIX_SPACING_X_DEFAULT,\n spacingY: MATRIX_SPACING_Y_DEFAULT,\n};\nconst Matrix = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = 'div', children } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"children\"]);\n const itemsCount = Children.count(children);\n const { classProps, props: modifiedProps, styleProps: matrixStyleProps, } = useMatrixStyleProps(Object.assign(Object.assign({}, restProps), { itemsCount }));\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { classProps, styleProps, otherProps, matrixStyleProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps), children));\n};\nMatrix.spiritComponent = 'Matrix';\nexport default Matrix;\n//# sourceMappingURL=Matrix.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","cssVariablePrefix","Children"],"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;AACA,QAAQ,IAAI;AACZ,YAAY,MAAM,KAAK,CAAC,IAAI,CAAC;AAC7B;AACA,QAAQ,OAAO,CAAC,EAAE;AAClB;AACA;AACA,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,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
11
|
return t;
|
|
12
12
|
};
|
|
13
|
-
import React from 'react';
|
|
13
|
+
import React, { Children } from 'react';
|
|
14
14
|
import { useStyleProps } from "../../hooks/index.js";
|
|
15
15
|
import { mergeStyleProps } from "../../utils/index.js";
|
|
16
16
|
import { MATRIX_COLS_DEFAULT, MATRIX_ITEM_ROWS_DEFAULT, MATRIX_ROWS_DEFAULT, MATRIX_SPACING_X_DEFAULT, MATRIX_SPACING_Y_DEFAULT, } from "./constant.js";
|
|
@@ -26,7 +26,7 @@ const defaultProps = {
|
|
|
26
26
|
const Matrix = (props) => {
|
|
27
27
|
const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);
|
|
28
28
|
const { elementType: ElementTag = 'div', children } = propsWithDefaults, restProps = __rest(propsWithDefaults, ["elementType", "children"]);
|
|
29
|
-
const itemsCount =
|
|
29
|
+
const itemsCount = Children.count(children);
|
|
30
30
|
const { classProps, props: modifiedProps, styleProps: matrixStyleProps, } = useMatrixStyleProps(Object.assign(Object.assign({}, restProps), { itemsCount }));
|
|
31
31
|
const { styleProps, props: otherProps } = useStyleProps(modifiedProps);
|
|
32
32
|
const mergedStyleProps = mergeStyleProps(ElementTag, { classProps, styleProps, otherProps, matrixStyleProps });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Matrix.js","sourceRoot":"","sources":["../../../src/components/Matrix/Matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,
|
|
1
|
+
{"version":3,"file":"Matrix.js","sourceRoot":"","sources":["../../../src/components/Matrix/Matrix.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAoB,MAAM,OAAO,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAE5C,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EACL,mBAAmB,EACnB,wBA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ps: CSSProperties;
|
|
7
7
|
}
|
|
8
|
-
export declare const useDefaultResponsiveRowsStyle: (cols: DimensionType | undefined, rows: DimensionType | undefined, itemsCount: number, prefix: string) =>
|
|
8
|
+
export declare const useDefaultResponsiveRowsStyle: (cols: DimensionType | undefined, rows: DimensionType | undefined, itemsCount: number, prefix: string) => CSSProperties;
|
|
9
9
|
export declare function useMatrixStyleProps(props: SpiritMatrixProps<ElementType>): MatrixStyles<SpiritMatrixProps<ElementType>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useMatrixStyleProps.js","sourceRoot":"","sources":["../../../src/components/Matrix/useMatrixStyleProps.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAA+B,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAElH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAoBjD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,IAA+B,EAC/B,IAA+B,EAC/B,UAAkB,EAClB,MAAc,
|
|
1
|
+
{"version":3,"file":"useMatrixStyleProps.js","sourceRoot":"","sources":["../../../src/components/Matrix/useMatrixStyleProps.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAA+B,kBAAkB,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAElH,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAoBjD,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAC3C,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CAAC,GACxD,6BAA6B,CAAC,IAAI,EAAE,IAAI,EAAE,UAAoB,EAAE,YAAY,CAAC,GAC7E,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,GACvD,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,GACvD,eAAe,CAAC,QAAQ,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,GACxD,eAAe,CAAC,QAAQ,EAAE,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAC5D,CAAC;IAEF,OAAO;QACL,UAAU,EAAE,UAAU,CAAC,WAAW,CAAC;QACnC,KAAK,EAAE,SAAS;QAChB,UAAU,EAAE,iBAAiB;KAC9B,CAAC;AACJ,CAAC"}
|
|
@@ -412,11 +412,11 @@ const useClickOutside = ({ ref, callback }) => {
|
|
|
412
412
|
};
|
|
413
413
|
|
|
414
414
|
const useDeprecationMessage = ({ method = 'component', trigger, componentName, componentProps, propertyProps, customText, }) => {
|
|
415
|
-
let message;
|
|
416
|
-
let hasProps;
|
|
417
415
|
const messageBase = `Deprecation warning (${componentName}):`;
|
|
418
416
|
React.useEffect(() => {
|
|
419
417
|
const isExecutable = trigger && componentName && process.env.NODE_ENV === 'development';
|
|
418
|
+
let message;
|
|
419
|
+
let hasProps;
|
|
420
420
|
switch (method) {
|
|
421
421
|
case 'property':
|
|
422
422
|
if (propertyProps === null || propertyProps === void 0 ? void 0 : propertyProps.delete) {
|
|
@@ -503,6 +503,43 @@ const useScrollControl = (ref, isOpen) => {
|
|
|
503
503
|
}, [isOpen, ref]);
|
|
504
504
|
};
|
|
505
505
|
|
|
506
|
+
const SYMMETRICAL_CLASS_SUFFIX = '--symmetrical';
|
|
507
|
+
const NON_SYMMETRICAL_CLASS_SUFFIX = '--asymmetrical';
|
|
508
|
+
function getSymmetryClassNamesReducer(componentClass, isSymmetrical) {
|
|
509
|
+
return (acc, breakpoint) => {
|
|
510
|
+
if (breakpoint in isSymmetrical) {
|
|
511
|
+
const value = isSymmetrical[breakpoint];
|
|
512
|
+
const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `--${breakpoint}`;
|
|
513
|
+
if (value) {
|
|
514
|
+
return {
|
|
515
|
+
classes: [...acc.classes, `${componentClass}${infix}${SYMMETRICAL_CLASS_SUFFIX}`],
|
|
516
|
+
wasSymmetrical: true,
|
|
517
|
+
};
|
|
518
|
+
}
|
|
519
|
+
if (acc.wasSymmetrical) {
|
|
520
|
+
return {
|
|
521
|
+
classes: [...acc.classes, `${componentClass}${infix}${NON_SYMMETRICAL_CLASS_SUFFIX}`],
|
|
522
|
+
wasSymmetrical: acc.wasSymmetrical,
|
|
523
|
+
};
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
return acc;
|
|
527
|
+
};
|
|
528
|
+
}
|
|
529
|
+
function useSymmetry(componentClass, isSymmetrical) {
|
|
530
|
+
if (typeof isSymmetrical !== 'object' || isSymmetrical === null) {
|
|
531
|
+
return {
|
|
532
|
+
isSymmetricalActive: isSymmetrical === true,
|
|
533
|
+
symmetricalClassName: isSymmetrical ? `${componentClass}${SYMMETRICAL_CLASS_SUFFIX}` : '',
|
|
534
|
+
};
|
|
535
|
+
}
|
|
536
|
+
const { classes } = Object.keys(spiritDesignTokens.breakpoints).reduce(getSymmetryClassNamesReducer(componentClass, isSymmetrical), { classes: [], wasSymmetrical: false });
|
|
537
|
+
return {
|
|
538
|
+
isSymmetricalActive: Object.values(isSymmetrical).includes(true),
|
|
539
|
+
symmetricalClassName: classes.join(' '),
|
|
540
|
+
};
|
|
541
|
+
}
|
|
542
|
+
|
|
506
543
|
const useDialog = (ref, isOpen) => {
|
|
507
544
|
const handleTransitionEnd = React.useCallback((event) => {
|
|
508
545
|
const dialogNode = ref === null || ref === void 0 ? void 0 : ref.current;
|
|
@@ -728,16 +765,16 @@ function useButtonStyleProps(props) {
|
|
|
728
765
|
const buttonBlockClass = `${buttonClass}--block`;
|
|
729
766
|
const buttonDisabledClass = `${buttonClass}--disabled`;
|
|
730
767
|
const buttonLoadingClass = `${buttonClass}--loading`;
|
|
731
|
-
const
|
|
732
|
-
if (isBlock &&
|
|
768
|
+
const { isSymmetricalActive, symmetricalClassName } = useSymmetry(buttonClass, isSymmetrical);
|
|
769
|
+
if (isBlock && isSymmetricalActive) {
|
|
733
770
|
warning(false, 'isBlock and isSymmetrical props are mutually exclusive');
|
|
734
771
|
}
|
|
772
|
+
const shouldApplyBlock = () => isBlock && !isSymmetricalActive;
|
|
735
773
|
const classProps = classNames(buttonClass, getButtonColorClassname(buttonClass, color), getButtonSizeClassname(buttonClass, size), {
|
|
736
|
-
[buttonBlockClass]:
|
|
774
|
+
[buttonBlockClass]: shouldApplyBlock(),
|
|
737
775
|
[buttonDisabledClass]: isDisabled || isLoading,
|
|
738
776
|
[buttonLoadingClass]: isLoading,
|
|
739
|
-
|
|
740
|
-
});
|
|
777
|
+
}, symmetricalClassName);
|
|
741
778
|
return {
|
|
742
779
|
classProps,
|
|
743
780
|
props: restProps,
|
|
@@ -936,16 +973,16 @@ function useButtonLinkStyleProps(props) {
|
|
|
936
973
|
const buttonBlockClass = `${buttonClass}--block`;
|
|
937
974
|
const buttonDisabledClass = `${buttonClass}--disabled`;
|
|
938
975
|
const buttonLoadingClass = `${buttonClass}--loading`;
|
|
939
|
-
const
|
|
940
|
-
if (isBlock &&
|
|
976
|
+
const { isSymmetricalActive, symmetricalClassName } = useSymmetry(buttonClass, isSymmetrical);
|
|
977
|
+
if (isBlock && isSymmetricalActive) {
|
|
941
978
|
warning(false, 'isBlock and isSymmetrical props are mutually exclusive');
|
|
942
979
|
}
|
|
980
|
+
const shouldApplyBlock = () => isBlock && !isSymmetricalActive;
|
|
943
981
|
const classProps = classNames(buttonClass, getButtonLinkColorClassname(buttonClass, color), getButtonLinkSizeClassname(buttonClass, size), {
|
|
944
|
-
[buttonBlockClass]:
|
|
982
|
+
[buttonBlockClass]: shouldApplyBlock(),
|
|
945
983
|
[buttonDisabledClass]: isDisabled || isLoading,
|
|
946
984
|
[buttonLoadingClass]: isLoading,
|
|
947
|
-
|
|
948
|
-
});
|
|
985
|
+
}, symmetricalClassName);
|
|
949
986
|
return {
|
|
950
987
|
classProps,
|
|
951
988
|
props: restProps,
|
|
@@ -1066,8 +1103,7 @@ const setCustomHeight = (baseVarName, propValue) => {
|
|
|
1066
1103
|
var _a;
|
|
1067
1104
|
const suffix = key === 'mobile' ? '' : `-${key}`;
|
|
1068
1105
|
const propName = `--${baseVarName}${suffix}`;
|
|
1069
|
-
acc[propName]
|
|
1070
|
-
return acc;
|
|
1106
|
+
return Object.assign(Object.assign({}, acc), { [propName]: (_a = propValue[key]) === null || _a === void 0 ? void 0 : _a.toString() });
|
|
1071
1107
|
}, {});
|
|
1072
1108
|
}
|
|
1073
1109
|
const propName = `--${baseVarName}`;
|