@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.
Files changed (154) hide show
  1. package/README.md +2 -1
  2. package/bundles/web-react.umd.js +450 -277
  3. package/bundles/web-react.umd.js.map +1 -1
  4. package/bundles/web-react.umd.min.js +1 -1
  5. package/bundles/web-react.umd.min.js.map +1 -1
  6. package/components/Accordion/Accordion.cjs +2 -2
  7. package/components/Accordion/Accordion.cjs.map +1 -1
  8. package/components/ActionGroup/ActionGroup.cjs +2 -2
  9. package/components/ActionGroup/ActionGroup.cjs.map +1 -1
  10. package/components/Avatar/Avatar.js.map +1 -1
  11. package/components/Button/Button.cjs +49 -12
  12. package/components/Button/Button.cjs.map +1 -1
  13. package/components/Button/Button.js.map +1 -1
  14. package/components/Button/useButtonStyleProps.js +6 -6
  15. package/components/Button/useButtonStyleProps.js.map +1 -1
  16. package/components/ButtonLink/ButtonLink.js.map +1 -1
  17. package/components/ButtonLink/useButtonLinkStyleProps.js +6 -6
  18. package/components/ButtonLink/useButtonLinkStyleProps.js.map +1 -1
  19. package/components/Card/CardLink.js.map +1 -1
  20. package/components/Checkbox/Checkbox.cjs +45 -1
  21. package/components/Checkbox/Checkbox.cjs.map +1 -1
  22. package/components/Checkbox/Checkbox.js.map +1 -1
  23. package/components/Checkbox/useCheckboxStyleProps.js +5 -2
  24. package/components/Checkbox/useCheckboxStyleProps.js.map +1 -1
  25. package/components/Collapse/Collapse.cjs +2 -2
  26. package/components/Collapse/Collapse.cjs.map +1 -1
  27. package/components/ControlButton/ControlButton.js.map +1 -1
  28. package/components/ControlButton/useControlButtonStyleProps.js +3 -4
  29. package/components/ControlButton/useControlButtonStyleProps.js.map +1 -1
  30. package/components/Drawer/Drawer.cjs +49 -12
  31. package/components/Drawer/Drawer.cjs.map +1 -1
  32. package/components/Drawer/DrawerPanel.js.map +1 -1
  33. package/components/FileUploader/useFileUploaderInput.js.map +1 -1
  34. package/components/Flex/Flex.cjs +2 -2
  35. package/components/Flex/Flex.cjs.map +1 -1
  36. package/components/Grid/Grid.cjs +6 -5
  37. package/components/Grid/Grid.cjs.map +1 -1
  38. package/components/Grid/useGridItemStyleProps.js +6 -5
  39. package/components/Grid/useGridItemStyleProps.js.map +1 -1
  40. package/components/Header/Header.cjs +49 -12
  41. package/components/Header/Header.cjs.map +1 -1
  42. package/components/Header/HeaderDialogLink.js.map +1 -1
  43. package/components/Header/HeaderLink.js.map +1 -1
  44. package/components/Hidden/Hidden.d.ts +9 -0
  45. package/components/Hidden/Hidden.js +31 -0
  46. package/components/Hidden/Hidden.js.map +1 -0
  47. package/components/Hidden/index.d.ts +1 -0
  48. package/components/Hidden/index.js +2 -0
  49. package/components/Hidden/index.js.map +1 -0
  50. package/components/Icon/Icon.js.map +1 -1
  51. package/components/Link/Link.js.map +1 -1
  52. package/components/Matrix/Matrix.cjs.map +1 -1
  53. package/components/Matrix/Matrix.js +2 -2
  54. package/components/Matrix/Matrix.js.map +1 -1
  55. package/components/Matrix/useMatrixStyleProps.d.ts +1 -1
  56. package/components/Matrix/useMatrixStyleProps.js.map +1 -1
  57. package/components/Modal/Modal.cjs +50 -14
  58. package/components/Modal/Modal.cjs.map +1 -1
  59. package/components/Modal/useModalDialogStyleProps.js +1 -2
  60. package/components/Modal/useModalDialogStyleProps.js.map +1 -1
  61. package/components/Navigation/NavigationAction.js.map +1 -1
  62. package/components/Navigation/NavigationAvatar.js.map +1 -1
  63. package/components/Pagination/Pagination.cjs +50 -13
  64. package/components/Pagination/Pagination.cjs.map +1 -1
  65. package/components/Pagination/PaginationButtonLink.js.map +1 -1
  66. package/components/Pagination/PaginationLink.js +1 -1
  67. package/components/Pagination/PaginationLink.js.map +1 -1
  68. package/components/Pagination/PaginationLinkNext.js.map +1 -1
  69. package/components/Pagination/PaginationLinkPrevious.js.map +1 -1
  70. package/components/PricingPlan/PricingPlan.cjs +50 -14
  71. package/components/PricingPlan/PricingPlan.cjs.map +1 -1
  72. package/components/Radio/Radio.cjs +45 -1
  73. package/components/Radio/Radio.cjs.map +1 -1
  74. package/components/Radio/Radio.js.map +1 -1
  75. package/components/Radio/useRadioStyleProps.js +5 -2
  76. package/components/Radio/useRadioStyleProps.js.map +1 -1
  77. package/components/ScrollView/ScrollView.cjs +39 -3
  78. package/components/ScrollView/ScrollView.cjs.map +1 -1
  79. package/components/ScrollView/useScrollPosition.js.map +1 -1
  80. package/components/SegmentedControl/SegmentedControlContext.js.map +1 -1
  81. package/components/Select/Select.js.map +1 -1
  82. package/components/SkipLink/SkipLink.js.map +1 -1
  83. package/components/Slider/Slider.js.map +1 -1
  84. package/components/Spinner/Spinner.js.map +1 -1
  85. package/components/SplitButton/SplitButton.cjs +49 -12
  86. package/components/SplitButton/SplitButton.cjs.map +1 -1
  87. package/components/Tabs/TabContext.js.map +1 -1
  88. package/components/Tabs/TabLink.js.map +1 -1
  89. package/components/Tag/Tag.js.map +1 -1
  90. package/components/TextArea/TextArea.js.map +1 -1
  91. package/components/TextArea/useAdjustHeight.js.map +1 -1
  92. package/components/TextField/TextField.js.map +1 -1
  93. package/components/TextFieldBase/TextFieldBase.js.map +1 -1
  94. package/components/TextFieldBase/TextFieldBaseInput.js.map +1 -1
  95. package/components/Toast/Toast.cjs.map +1 -1
  96. package/components/Toast/ToastBarLink.js.map +1 -1
  97. package/components/Toast/ToastContext.js +2 -2
  98. package/components/Toast/ToastContext.js.map +1 -1
  99. package/components/Toggle/Toggle.cjs +46 -1
  100. package/components/Toggle/Toggle.cjs.map +1 -1
  101. package/components/Toggle/Toggle.js.map +1 -1
  102. package/components/Toggle/useToggleStyleProps.js +5 -2
  103. package/components/Toggle/useToggleStyleProps.js.map +1 -1
  104. package/components/UNSTABLE_Header/UNSTABLE_HeaderLogo.js.map +1 -1
  105. package/components/components.cjs +344 -263
  106. package/components/components.cjs.map +1 -1
  107. package/components/index.d.ts +1 -0
  108. package/components/index.js +1 -0
  109. package/components/index.js.map +1 -1
  110. package/constants/constants.cjs +6 -0
  111. package/constants/constants.cjs.map +1 -1
  112. package/constants/index.d.ts +1 -0
  113. package/constants/index.js +1 -0
  114. package/constants/index.js.map +1 -1
  115. package/constants/inputs.d.ts +4 -0
  116. package/constants/inputs.js +5 -0
  117. package/constants/inputs.js.map +1 -0
  118. package/hooks/hooks.cjs +48 -7
  119. package/hooks/hooks.cjs.map +1 -1
  120. package/hooks/index.d.ts +2 -1
  121. package/hooks/index.js +2 -1
  122. package/hooks/index.js.map +1 -1
  123. package/hooks/useDeprecationMessage.js +2 -2
  124. package/hooks/useDeprecationMessage.js.map +1 -1
  125. package/hooks/useInputPositionClass.d.ts +2 -0
  126. package/hooks/useInputPositionClass.js +8 -0
  127. package/hooks/useInputPositionClass.js.map +1 -0
  128. package/hooks/useSymmetry.d.ts +7 -0
  129. package/hooks/useSymmetry.js +39 -0
  130. package/hooks/useSymmetry.js.map +1 -0
  131. package/index.cjs +347 -268
  132. package/index.cjs.map +1 -1
  133. package/package.json +6 -15
  134. package/spirit-web-react.cjs +347 -268
  135. package/spirit-web-react.cjs.map +1 -1
  136. package/spirit-web-react.min.cjs +1 -1
  137. package/types/button.d.ts +2 -2
  138. package/types/checkbox.d.ts +2 -1
  139. package/types/controlButton.d.ts +2 -2
  140. package/types/hidden.d.ts +10 -0
  141. package/types/hidden.js +2 -0
  142. package/types/hidden.js.map +1 -0
  143. package/types/index.d.ts +1 -0
  144. package/types/index.js +1 -0
  145. package/types/index.js.map +1 -1
  146. package/types/item.d.ts +2 -2
  147. package/types/pricingPlan.d.ts +1 -1
  148. package/types/radio.d.ts +2 -1
  149. package/types/shared/inputs.d.ts +3 -0
  150. package/types/slider.d.ts +2 -2
  151. package/types/toggle.d.ts +2 -1
  152. package/hooks/useDirectionClass.d.ts +0 -2
  153. package/hooks/useDirectionClass.js +0 -5
  154. package/hooks/useDirectionClass.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"Checkbox.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/useAriaDescribedBy.js","../../hooks/useClassNamePrefix.js","../../context/IconsContext.js","../../hooks/useIcon.js","../../hooks/useIconName.js","../Field/HelperText.js","../Field/Label.js","../Field/useAriaIds.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","../Field/useValidationIcon.js","../Field/ValidationText.js","../Field/constants.js","../Field/useValidationTextRole.js","useCheckboxStyleProps.js","Checkbox.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 { useMemo } from 'react';\nexport const useAriaDescribedBy = (ids) => useMemo(() => (ids.length ? { 'aria-describedby': ids.join(' ') } : {}), [ids]);\n//# sourceMappingURL=useAriaDescribedBy.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 function useIconName(key, iconMap, defaultKey = 'default') {\n return key && iconMap[key] ? iconMap[key] : iconMap[defaultKey];\n}\n//# sourceMappingURL=useIconName.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, { useEffect } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nconst defaultProps = {\n elementType: 'div',\n id: undefined,\n registerAria: undefined,\n};\nconst HelperText = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { helperText, elementType: ElementTag = defaultProps.elementType, id, registerAria } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"helperText\", \"elementType\", \"id\", \"registerAria\"]);\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, transferProps });\n useEffect(() => {\n helperText && (registerAria === null || registerAria === void 0 ? void 0 : registerAria({ add: id }));\n return () => {\n registerAria === null || registerAria === void 0 ? void 0 : registerAria({ remove: id });\n };\n }, [helperText, id, registerAria]);\n if (helperText) {\n return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, { id: id }), helperText));\n }\n return null;\n};\nHelperText.spiritComponent = 'HelperText';\nexport default HelperText;\n//# sourceMappingURL=HelperText.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\";\nconst Label = (props) => {\n const { elementType: ElementTag = 'label', children, htmlFor, for: labelFor } = props, restProps = __rest(props, [\"elementType\", \"children\", \"htmlFor\", \"for\"]);\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, otherProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps, { htmlFor: ElementTag === 'label' ? labelFor || htmlFor : undefined }), children));\n};\nLabel.spiritComponent = 'Label';\nexport default Label;\n//# sourceMappingURL=Label.js.map","'use client';\nimport { useCallback, useState } from 'react';\nconst useAriaIds = (otherAriaIds) => {\n const [ids, setIds] = useState(otherAriaIds ? otherAriaIds.split(' ') : []);\n const register = useCallback(({ add, remove }) => {\n setIds((prevIds) => {\n let newIds = [...prevIds];\n if (remove) {\n newIds = newIds.filter((item) => item !== remove);\n }\n if (add) {\n newIds = [...newIds, add];\n }\n return newIds;\n });\n }, []);\n return [ids, register];\n};\nexport default useAriaIds;\n//# sourceMappingURL=useAriaIds.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","import { useIconName } from \"../../hooks/index.js\";\nexport function useValidationIcon({ hasValidationStateIcon }) {\n const iconNameValue = useIconName(hasValidationStateIcon, {\n success: 'check-plain',\n warning: 'warning',\n danger: 'danger',\n });\n return iconNameValue;\n}\n//# sourceMappingURL=useValidationIcon.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, { useEffect } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useValidationIcon } from \"./useValidationIcon.js\";\nconst defaultProps = {\n elementType: 'div',\n id: undefined,\n registerAria: undefined,\n role: undefined,\n};\nconst ValidationText = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = defaultProps.elementType, id, hasValidationStateIcon, registerAria, role, validationText } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"id\", \"hasValidationStateIcon\", \"registerAria\", \"role\", \"validationText\"]);\n const validationIconName = useValidationIcon({ hasValidationStateIcon });\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, transferProps });\n useEffect(() => {\n validationText && (registerAria === null || registerAria === void 0 ? void 0 : registerAria({ add: id }));\n return () => {\n registerAria === null || registerAria === void 0 ? void 0 : registerAria({ remove: id });\n };\n }, [id, registerAria, validationText]);\n if (!validationText) {\n return null;\n }\n const nonArrayValidationText = hasValidationStateIcon ? React.createElement(\"div\", null, validationText) : validationText;\n return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, { id: id, role: role }),\n hasValidationStateIcon && React.createElement(Icon, { name: validationIconName, boxSize: \"20\" }),\n Array.isArray(validationText) ? (React.createElement(\"ul\", null, validationText.map((item) => (React.createElement(\"li\", { key: `validationText_${item}` }, item))))) : (nonArrayValidationText)));\n};\nValidationText.spiritComponent = 'ValidationText';\nexport default ValidationText;\n//# sourceMappingURL=ValidationText.js.map","export const A11Y_ALERT_ROLE = 'alert';\n//# sourceMappingURL=constants.js.map","'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport { A11Y_ALERT_ROLE } from \"./constants.js\";\nexport const useValidationTextRole = ({ validationState, validationText, }) => {\n const [role, setRole] = useState();\n const previousValidationText = useRef(validationText);\n const previousValidationState = useRef(validationState);\n useEffect(() => {\n if (previousValidationText.current !== validationText || previousValidationState.current !== validationState) {\n setRole(A11Y_ALERT_ROLE);\n }\n previousValidationText.current = validationText;\n previousValidationState.current = validationState;\n }, [validationText, validationState]);\n return role;\n};\n//# sourceMappingURL=useValidationTextRole.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 useCheckboxStyleProps(props) {\n const { validationState, isItem, isLabelHidden } = props, restProps = __rest(props, [\"validationState\", \"isItem\", \"isLabelHidden\"]);\n const { isDisabled, isRequired } = restProps;\n const checkboxClass = useClassNamePrefix('Checkbox');\n const checkboxDisabledClass = `${checkboxClass}--disabled`;\n const checkboxItemClass = `${checkboxClass}--item`;\n const checkboxInputClass = `${checkboxClass}__input`;\n const checkboxTextClass = `${checkboxClass}__text`;\n const checkboxLabelClass = `${checkboxClass}__label`;\n const checkboxLabelRequiredClass = `${checkboxClass}__label--required`;\n const checkboxLabelHiddenClass = `${checkboxClass}__label--hidden`;\n const checkboxHelperTextClass = `${checkboxClass}__helperText`;\n const checkboxValidationTextClass = `${checkboxClass}__validationText`;\n const checkboxValidationClass = `${checkboxClass}--${validationState}`;\n const rootStyles = classNames(checkboxClass, {\n [checkboxDisabledClass]: isDisabled,\n [checkboxItemClass]: isItem,\n [checkboxValidationClass]: validationState,\n });\n const labelStyles = classNames(checkboxLabelClass, {\n [checkboxLabelRequiredClass]: isRequired,\n [checkboxLabelHiddenClass]: isLabelHidden,\n });\n return {\n classProps: {\n root: rootStyles,\n text: checkboxTextClass,\n label: labelStyles,\n input: checkboxInputClass,\n helperText: checkboxHelperTextClass,\n validationText: checkboxValidationTextClass,\n },\n props: Object.assign(Object.assign({}, restProps), { validationState }),\n };\n}\n//# sourceMappingURL=useCheckboxStyleProps.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 React, { forwardRef } from 'react';\nimport { useAriaDescribedBy, useStyleProps } from \"../../hooks/index.js\";\nimport { HelperText, Label, ValidationText, useAriaIds } from \"../Field/index.js\";\nimport { useValidationTextRole } from \"../Field/useValidationTextRole.js\";\nimport { useCheckboxStyleProps } from \"./useCheckboxStyleProps.js\";\nconst _Checkbox = (props, ref) => {\n const { classProps, props: modifiedProps } = useCheckboxStyleProps(props);\n const { 'aria-describedby': ariaDescribedBy = '', hasValidationIcon, helperText, id, isChecked, isDisabled, isRequired, label, validationState, validationText, value } = modifiedProps, restProps = __rest(modifiedProps, ['aria-describedby', \"hasValidationIcon\", \"helperText\", \"id\", \"isChecked\", \"isDisabled\", \"isRequired\", \"label\", \"validationState\", \"validationText\", \"value\"]);\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const [ids, register] = useAriaIds(ariaDescribedBy);\n const ariaDescribedByProp = useAriaDescribedBy(ids);\n const validationTextRole = useValidationTextRole({\n validationState,\n validationText,\n });\n return (React.createElement(\"div\", { style: styleProps.style, className: classNames(classProps.root, styleProps.className) },\n React.createElement(\"input\", Object.assign({}, otherProps, ariaDescribedByProp, { type: \"checkbox\", id: id, className: classProps.input, disabled: isDisabled, required: isRequired, checked: isChecked, value: value, ref: ref })),\n React.createElement(\"div\", { className: classProps.text },\n React.createElement(Label, { UNSAFE_className: classProps.label, htmlFor: id }, label),\n React.createElement(HelperText, { UNSAFE_className: classProps.helperText, id: `${id}__helperText`, registerAria: register, helperText: helperText }),\n validationState && (React.createElement(ValidationText, Object.assign({ UNSAFE_className: classProps.validationText, id: `${id}__validationText` }, (hasValidationIcon && { hasValidationStateIcon: validationState }), { validationText: validationText, registerAria: register, role: validationTextRole }))))));\n};\nconst Checkbox = forwardRef(_Checkbox);\nCheckbox.spiritComponent = 'Checkbox';\nexport default Checkbox;\n//# sourceMappingURL=Checkbox.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","useMemo","defaultProps","useEffect","useState","useCallback","cssVariablePrefix","forwardRef","useRef"],"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,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,MAAM,CAAC,qBAAqB,KAAK,UAAU;AACvE,QAAQ,KAAK,IAAI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,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,CAAC;AAC3O,QAAQ,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE;AACjE,YAAY,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,gBAAgB,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC;AAClG,YAAY,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,gBAAgB,EAAE,UAAU,CAAC,UAAU,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,YAAY,CAAC,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC;AACjK,YAAY,eAAe,KAAK,KAAK,CAAC,aAAa,CAAC,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,gBAAgB,EAAE,UAAU,CAAC,cAAc,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,gBAAgB,CAAC,EAAE,GAAG,iBAAiB,IAAI,EAAE,sBAAsB,EAAE,eAAe,EAAE,GAAG,EAAE,cAAc,EAAE,cAAc,EAAE,YAAY,EAAE,QAAQ,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7T,CAAC;AACI,MAAC,QAAQ,GAAGe,gBAAU,CAAC,SAAS;AACrC,QAAQ,CAAC,eAAe,GAAG,UAAU;;;;;"}
1
+ {"version":3,"file":"Checkbox.cjs","sources":["../../common/constants/environments.js","../../common/utilities/warning.js","../../constants/dictionaries.js","../../constants/direction.js","../../constants/inputs.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","../../utils/toPascalCase.js","../../utils/stylePropsClassesGenerator.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useAriaDescribedBy.js","../../hooks/useClassNamePrefix.js","../../context/IconsContext.js","../../hooks/useIcon.js","../../hooks/useIconName.js","../../hooks/useInputPositionClass.js","../Field/HelperText.js","../Field/Label.js","../Field/useAriaIds.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","../Field/useValidationIcon.js","../Field/ValidationText.js","../Field/constants.js","../Field/useValidationTextRole.js","useCheckboxStyleProps.js","Checkbox.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 InputPositions = {\n START: 'start',\n END: 'end',\n};\n//# sourceMappingURL=inputs.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","export function toPascalCase(str) {\n if (typeof str !== 'string') {\n return str;\n }\n return str\n .split('-')\n .map((word) => word.charAt(0).toUpperCase() + word.slice(1))\n .join('');\n}\n//# sourceMappingURL=toPascalCase.js.map","import { toPascalCase } from \"./toPascalCase.js\";\nexport function generateStaticStylePropsClasses(componentClass, property, type) {\n return `${componentClass}--${type || ''}${type ? toPascalCase(property) : property}`;\n}\nexport function generateResponsiveStylePropsClasses(componentClass, property, type) {\n return Object.keys(property)\n .map((key) => {\n const infix = key === 'mobile' ? '' : `--${key}`;\n const responsiveProperty = property[key];\n return `${componentClass}${infix}--${type || ''}${type ? toPascalCase(responsiveProperty) : responsiveProperty}`;\n })\n .join(' ');\n}\nfunction isResponsiveProperty(property) {\n return property && typeof property === 'object';\n}\nexport function generateStylePropsClassNames(componentClass, property, type) {\n const generate = isResponsiveProperty(property)\n ? generateResponsiveStylePropsClasses\n : generateStaticStylePropsClasses;\n return generate(componentClass, property, type);\n}\n//# sourceMappingURL=stylePropsClassesGenerator.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 { useMemo } from 'react';\nexport const useAriaDescribedBy = (ids) => useMemo(() => (ids.length ? { 'aria-describedby': ids.join(' ') } : {}), [ids]);\n//# sourceMappingURL=useAriaDescribedBy.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 function useIconName(key, iconMap, defaultKey = 'default') {\n return key && iconMap[key] ? iconMap[key] : iconMap[defaultKey];\n}\n//# sourceMappingURL=useIconName.js.map","import { generateStylePropsClassNames } from \"../utils/index.js\";\nexport function useInputPositionClass(componentClass, property) {\n if (!property) {\n return '';\n }\n return generateStylePropsClassNames(componentClass, property, 'inputPosition');\n}\n//# sourceMappingURL=useInputPositionClass.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, { useEffect } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nconst defaultProps = {\n elementType: 'div',\n id: undefined,\n registerAria: undefined,\n};\nconst HelperText = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { helperText, elementType: ElementTag = defaultProps.elementType, id, registerAria } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"helperText\", \"elementType\", \"id\", \"registerAria\"]);\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, transferProps });\n useEffect(() => {\n helperText && (registerAria === null || registerAria === void 0 ? void 0 : registerAria({ add: id }));\n return () => {\n registerAria === null || registerAria === void 0 ? void 0 : registerAria({ remove: id });\n };\n }, [helperText, id, registerAria]);\n if (helperText) {\n return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, { id: id }), helperText));\n }\n return null;\n};\nHelperText.spiritComponent = 'HelperText';\nexport default HelperText;\n//# sourceMappingURL=HelperText.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\";\nconst Label = (props) => {\n const { elementType: ElementTag = 'label', children, htmlFor, for: labelFor } = props, restProps = __rest(props, [\"elementType\", \"children\", \"htmlFor\", \"for\"]);\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, otherProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, mergedStyleProps, { htmlFor: ElementTag === 'label' ? labelFor || htmlFor : undefined }), children));\n};\nLabel.spiritComponent = 'Label';\nexport default Label;\n//# sourceMappingURL=Label.js.map","'use client';\nimport { useCallback, useState } from 'react';\nconst useAriaIds = (otherAriaIds) => {\n const [ids, setIds] = useState(otherAriaIds ? otherAriaIds.split(' ') : []);\n const register = useCallback(({ add, remove }) => {\n setIds((prevIds) => {\n let newIds = [...prevIds];\n if (remove) {\n newIds = newIds.filter((item) => item !== remove);\n }\n if (add) {\n newIds = [...newIds, add];\n }\n return newIds;\n });\n }, []);\n return [ids, register];\n};\nexport default useAriaIds;\n//# sourceMappingURL=useAriaIds.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","import { useIconName } from \"../../hooks/index.js\";\nexport function useValidationIcon({ hasValidationStateIcon }) {\n const iconNameValue = useIconName(hasValidationStateIcon, {\n success: 'check-plain',\n warning: 'warning',\n danger: 'danger',\n });\n return iconNameValue;\n}\n//# sourceMappingURL=useValidationIcon.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, { useEffect } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useValidationIcon } from \"./useValidationIcon.js\";\nconst defaultProps = {\n elementType: 'div',\n id: undefined,\n registerAria: undefined,\n role: undefined,\n};\nconst ValidationText = (props) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = defaultProps.elementType, id, hasValidationStateIcon, registerAria, role, validationText } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"id\", \"hasValidationStateIcon\", \"registerAria\", \"role\", \"validationText\"]);\n const validationIconName = useValidationIcon({ hasValidationStateIcon });\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { styleProps, transferProps });\n useEffect(() => {\n validationText && (registerAria === null || registerAria === void 0 ? void 0 : registerAria({ add: id }));\n return () => {\n registerAria === null || registerAria === void 0 ? void 0 : registerAria({ remove: id });\n };\n }, [id, registerAria, validationText]);\n if (!validationText) {\n return null;\n }\n const nonArrayValidationText = hasValidationStateIcon ? React.createElement(\"div\", null, validationText) : validationText;\n return (React.createElement(ElementTag, Object.assign({}, transferProps, mergedStyleProps, { id: id, role: role }),\n hasValidationStateIcon && React.createElement(Icon, { name: validationIconName, boxSize: \"20\" }),\n Array.isArray(validationText) ? (React.createElement(\"ul\", null, validationText.map((item) => (React.createElement(\"li\", { key: `validationText_${item}` }, item))))) : (nonArrayValidationText)));\n};\nValidationText.spiritComponent = 'ValidationText';\nexport default ValidationText;\n//# sourceMappingURL=ValidationText.js.map","export const A11Y_ALERT_ROLE = 'alert';\n//# sourceMappingURL=constants.js.map","'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport { A11Y_ALERT_ROLE } from \"./constants.js\";\nexport const useValidationTextRole = ({ validationState, validationText, }) => {\n const [role, setRole] = useState();\n const previousValidationText = useRef(validationText);\n const previousValidationState = useRef(validationState);\n useEffect(() => {\n if (previousValidationText.current !== validationText || previousValidationState.current !== validationState) {\n setRole(A11Y_ALERT_ROLE);\n }\n previousValidationText.current = validationText;\n previousValidationState.current = validationState;\n }, [validationText, validationState]);\n return role;\n};\n//# sourceMappingURL=useValidationTextRole.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 { InputPositions } from \"../../constants/index.js\";\nimport { useClassNamePrefix, useInputPositionClass } from \"../../hooks/index.js\";\nexport function useCheckboxStyleProps(props) {\n const { inputPosition = InputPositions.START, isItem, isLabelHidden, validationState } = props, restProps = __rest(props, [\"inputPosition\", \"isItem\", \"isLabelHidden\", \"validationState\"]);\n const { isDisabled, isRequired } = restProps;\n const checkboxClass = useClassNamePrefix('Checkbox');\n const checkboxDisabledClass = `${checkboxClass}--disabled`;\n const checkboxItemClass = `${checkboxClass}--item`;\n const checkboxInputClass = `${checkboxClass}__input`;\n const checkboxInputPositionClass = useInputPositionClass(checkboxClass, inputPosition);\n const checkboxTextClass = `${checkboxClass}__text`;\n const checkboxLabelClass = `${checkboxClass}__label`;\n const checkboxLabelRequiredClass = `${checkboxClass}__label--required`;\n const checkboxLabelHiddenClass = `${checkboxClass}__label--hidden`;\n const checkboxHelperTextClass = `${checkboxClass}__helperText`;\n const checkboxValidationTextClass = `${checkboxClass}__validationText`;\n const checkboxValidationClass = `${checkboxClass}--${validationState}`;\n const rootStyles = classNames(checkboxClass, {\n [checkboxInputPositionClass]: checkboxInputPositionClass,\n [checkboxDisabledClass]: isDisabled,\n [checkboxItemClass]: isItem,\n [checkboxValidationClass]: validationState,\n });\n const labelStyles = classNames(checkboxLabelClass, {\n [checkboxLabelRequiredClass]: isRequired,\n [checkboxLabelHiddenClass]: isLabelHidden,\n });\n return {\n classProps: {\n root: rootStyles,\n text: checkboxTextClass,\n label: labelStyles,\n input: checkboxInputClass,\n helperText: checkboxHelperTextClass,\n validationText: checkboxValidationTextClass,\n },\n props: Object.assign(Object.assign({}, restProps), { validationState }),\n };\n}\n//# sourceMappingURL=useCheckboxStyleProps.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 React, { forwardRef } from 'react';\nimport { useAriaDescribedBy, useStyleProps } from \"../../hooks/index.js\";\nimport { HelperText, Label, ValidationText, useAriaIds } from \"../Field/index.js\";\nimport { useValidationTextRole } from \"../Field/useValidationTextRole.js\";\nimport { useCheckboxStyleProps } from \"./useCheckboxStyleProps.js\";\nconst _Checkbox = (props, ref) => {\n const { classProps, props: modifiedProps } = useCheckboxStyleProps(props);\n const { 'aria-describedby': ariaDescribedBy = '', hasValidationIcon, helperText, id, isChecked, isDisabled, isRequired, label, validationState, validationText, value } = modifiedProps, restProps = __rest(modifiedProps, ['aria-describedby', \"hasValidationIcon\", \"helperText\", \"id\", \"isChecked\", \"isDisabled\", \"isRequired\", \"label\", \"validationState\", \"validationText\", \"value\"]);\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const [ids, register] = useAriaIds(ariaDescribedBy);\n const ariaDescribedByProp = useAriaDescribedBy(ids);\n const validationTextRole = useValidationTextRole({\n validationState,\n validationText,\n });\n return (React.createElement(\"div\", { style: styleProps.style, className: classNames(classProps.root, styleProps.className) },\n React.createElement(\"input\", Object.assign({}, otherProps, ariaDescribedByProp, { type: \"checkbox\", id: id, className: classProps.input, disabled: isDisabled, required: isRequired, checked: isChecked, value: value, ref: ref })),\n React.createElement(\"div\", { className: classProps.text },\n React.createElement(Label, { UNSAFE_className: classProps.label, htmlFor: id }, label),\n React.createElement(HelperText, { UNSAFE_className: classProps.helperText, id: `${id}__helperText`, registerAria: register, helperText: helperText }),\n validationState && (React.createElement(ValidationText, Object.assign({ UNSAFE_className: classProps.validationText, id: `${id}__validationText` }, (hasValidationIcon && { hasValidationStateIcon: validationState }), { validationText: validationText, registerAria: register, role: validationTextRole }))))));\n};\nconst Checkbox = forwardRef(_Checkbox);\nCheckbox.spiritComponent = 'Checkbox';\nexport default Checkbox;\n//# sourceMappingURL=Checkbox.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","useMemo","defaultProps","useEffect","useState","useCallback","cssVariablePrefix","forwardRef","useRef"],"mappings":";;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EA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,OAAO,CACL,6BAAK,KAAK,EAAE,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC;QACxF,+CACM,UAAU,EACV,mBAAmB,IACvB,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,EAAE,EACN,SAAS,EAAE,UAAU,CAAC,KAAK,EAC3B,QAAQ,EAAE,UAAU,EACpB,QAAQ,EAAE,UAAU,EACpB,OAAO,EAAE,SAAS,EAClB,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,GAAG,IACR;QACF,6BAAK,SAAS,EAAE,UAAU,CAAC,IAAI;YAC7B,oBAAC,KAAK,IAAC,gBAAgB,EAAE,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,IACnD,KAAK,CACA;YACR,oBAAC,UAAU,IACT,gBAAgB,EAAE,UAAU,CAAC,UAAU,EACvC,EAAE,EAAE,GAAG,EAAE,cAAc,EACvB,YAAY,EAAE,QAAQ,EACtB,UAAU,EAAE,UAAU,GACtB;YACD,eAAe,IAAI,CAClB,oBAAC,cAAc,kBACb,gBAAgB,EAAE,UAAU,CAAC,cAAc,EAC3C,EAAE,EAAE,GAAG,EAAE,kBAAkB,IACvB,CAAC,iBAAiB,IAAI,EAAE,sBAAsB,EAAE,eAAe,EAAE,CAAC,IACtE,cAAc,EAAE,cAAc,EAC9B,YAAY,EAAE,QAAQ,EACtB,IAAI,EAAE,kBAAkB,IACxB,CACH,CACG,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,MAAM,QAAQ,GAAG,UAAU,CAAwC,SAAS,CAAC,CAAC;AAE9E,QAAQ,CAAC,eAAe,GAAG,UAAU,CAAC;AAEtC,eAAe,QAAQ,CAAC"}
@@ -10,14 +10,16 @@ var __rest = (this && this.__rest) || function (s, e) {
10
10
  return t;
11
11
  };
12
12
  import classNames from 'classnames';
13
- import { useClassNamePrefix } from "../../hooks/index.js";
13
+ import { InputPositions } from "../../constants/index.js";
14
+ import { useClassNamePrefix, useInputPositionClass } from "../../hooks/index.js";
14
15
  export function useCheckboxStyleProps(props) {
15
- const { validationState, isItem, isLabelHidden } = props, restProps = __rest(props, ["validationState", "isItem", "isLabelHidden"]);
16
+ const { inputPosition = InputPositions.START, isItem, isLabelHidden, validationState } = props, restProps = __rest(props, ["inputPosition", "isItem", "isLabelHidden", "validationState"]);
16
17
  const { isDisabled, isRequired } = restProps;
17
18
  const checkboxClass = useClassNamePrefix('Checkbox');
18
19
  const checkboxDisabledClass = `${checkboxClass}--disabled`;
19
20
  const checkboxItemClass = `${checkboxClass}--item`;
20
21
  const checkboxInputClass = `${checkboxClass}__input`;
22
+ const checkboxInputPositionClass = useInputPositionClass(checkboxClass, inputPosition);
21
23
  const checkboxTextClass = `${checkboxClass}__text`;
22
24
  const checkboxLabelClass = `${checkboxClass}__label`;
23
25
  const checkboxLabelRequiredClass = `${checkboxClass}__label--required`;
@@ -26,6 +28,7 @@ export function useCheckboxStyleProps(props) {
26
28
  const checkboxValidationTextClass = `${checkboxClass}__validationText`;
27
29
  const checkboxValidationClass = `${checkboxClass}--${validationState}`;
28
30
  const rootStyles = classNames(checkboxClass, {
31
+ [checkboxInputPositionClass]: checkboxInputPositionClass,
29
32
  [checkboxDisabledClass]: isDisabled,
30
33
  [checkboxItemClass]: isItem,
31
34
  [checkboxValidationClass]: validationState,
@@ -1 +1 @@
1
- {"version":3,"file":"useCheckboxStyleProps.js","sourceRoot":"","sources":["../../../src/components/Checkbox/useCheckboxStyleProps.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AAiBjD,MAAM,UAAU,qBAAqB,CAAC,KAA0B;IAC9D,MAAM,EAAE,eAAe,EAAE,MAAM,EAAE,aAAa,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAhE,8CAAwD,CAAQ,CAAC;IACvE,M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,0BAA0B,CAAC,EAAE,0BAA0B;QACxD,CAAC,qBAAqB,CAAC,EAAE,UAAU;QACnC,CAAC,iBAAiB,CAAC,EAAE,MAAM;QAC3B,CAAC,uBAAuB,CAAC,EAAE,eAAe;KAC3C,CAAC,CAAC;IACH,MAAM,WAAW,GAAG,UAAU,CAAC,kBAAkB,EAAE;QACjD,CAAC,0BAA0B,CAAC,EAAE,UAAU;QACxC,CAAC,wBAAwB,CAAC,EAAE,aAAa;KAC1C,CAAC,CAAC;IAEH,OAAO;QACL,UAAU,EAAE;YACV,IAAI,EAAE,UAAU;YAChB,IAAI,EAAE,iBAAiB;YACvB,KAAK,EAAE,WAAW;YAClB,KAAK,EAAE,kBAAkB;YACzB,UAAU,EAAE,uBAAuB;YACnC,cAAc,EAAE,2BAA2B;SAC5C;QACD,KAAK,kCACA,SAAS,KACZ,eAAe,GAChB;KACF,CAAC;AACJ,CAAC"}
@@ -318,11 +318,11 @@ const useClassNamePrefix = (className) => {
318
318
  };
319
319
 
320
320
  const useDeprecationMessage = ({ method = 'component', trigger, componentName, componentProps, propertyProps, customText, }) => {
321
- let message;
322
- let hasProps;
323
321
  const messageBase = `Deprecation warning (${componentName}):`;
324
322
  React.useEffect(() => {
325
323
  const isExecutable = trigger && componentName && process.env.NODE_ENV === 'development';
324
+ let message;
325
+ let hasProps;
326
326
  switch (method) {
327
327
  case 'property':
328
328
  if (propertyProps === null || propertyProps === void 0 ? void 0 : propertyProps.delete) {