@alma-oss/spirit-web-react 4.1.0 → 4.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/web-react.umd.js +318 -145
- package/bundles/web-react.umd.js.map +1 -1
- package/bundles/web-react.umd.min.js +1 -1
- package/bundles/web-react.umd.min.js.map +1 -1
- package/components/Accordion/Accordion.cjs +22 -6
- package/components/Accordion/Accordion.cjs.map +1 -1
- package/components/Accordion/Accordion.d.ts +5 -3
- package/components/Accordion/Accordion.js +2 -0
- package/components/Accordion/Accordion.js.map +1 -1
- package/components/Accordion/AccordionHeader.d.ts +5 -3
- package/components/Accordion/AccordionHeader.js +14 -4
- package/components/Accordion/AccordionHeader.js.map +1 -1
- package/components/Accordion/AccordionItem.d.ts +5 -3
- package/components/Accordion/AccordionItem.js +2 -0
- package/components/Accordion/AccordionItem.js.map +1 -1
- package/components/Accordion/UncontrolledAccordion.d.ts +5 -3
- package/components/Accordion/UncontrolledAccordion.js +3 -1
- package/components/Accordion/UncontrolledAccordion.js.map +1 -1
- package/components/Accordion/useAccordion.d.ts +2 -2
- package/components/Accordion/useAccordion.js.map +1 -1
- package/components/ActionGroup/ActionGroup.cjs +2 -0
- package/components/ActionGroup/ActionGroup.cjs.map +1 -1
- package/components/Card/CardLink.d.ts +1 -1
- package/components/FileUploader/FileUploader.cjs +6 -4
- package/components/FileUploader/FileUploader.cjs.map +1 -1
- package/components/FileUploader/FileUploaderAttachment.js +3 -3
- package/components/FileUploader/FileUploaderAttachment.js.map +1 -1
- package/components/FileUploader/FileUploaderList.js +2 -1
- package/components/FileUploader/FileUploaderList.js.map +1 -1
- package/components/FileUploader/constants.d.ts +1 -0
- package/components/FileUploader/constants.js +1 -0
- package/components/FileUploader/constants.js.map +1 -1
- package/components/Flex/Flex.cjs +2 -0
- package/components/Flex/Flex.cjs.map +1 -1
- package/components/Flex/Flex.d.ts +2 -0
- package/components/Flex/Flex.js +2 -0
- package/components/Flex/Flex.js.map +1 -1
- package/components/Flex/useFlexStyleProps.d.ts +2 -2
- package/components/Footer/Footer.cjs +40 -3
- package/components/Footer/Footer.cjs.map +1 -1
- package/components/Footer/Footer.d.ts +2 -2
- package/components/Footer/Footer.js +5 -3
- package/components/Footer/Footer.js.map +1 -1
- package/components/Footer/useFooterStyleProps.d.ts +2 -2
- package/components/Footer/useFooterStyleProps.js.map +1 -1
- package/components/Grid/Grid.cjs +4 -0
- package/components/Grid/Grid.cjs.map +1 -1
- package/components/Grid/Grid.d.ts +2 -0
- package/components/Grid/Grid.js +2 -0
- package/components/Grid/Grid.js.map +1 -1
- package/components/Grid/GridItem.d.ts +2 -0
- package/components/Grid/GridItem.js +2 -0
- package/components/Grid/GridItem.js.map +1 -1
- package/components/Grid/useGridItemStyleProps.d.ts +2 -2
- package/components/Grid/useGridStyleProps.d.ts +2 -2
- package/components/Icon/useIconStyleProps.d.ts +10 -10
- package/components/Modal/Modal.cjs +4 -2
- package/components/Modal/Modal.cjs.map +1 -1
- package/components/Modal/ModalCloseButton.js +2 -1
- package/components/Modal/ModalCloseButton.js.map +1 -1
- package/components/Modal/ModalHeader.js +2 -1
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Modal/constants.d.ts +1 -0
- package/components/Modal/constants.js +2 -0
- package/components/Modal/constants.js.map +1 -0
- package/components/Pagination/Pagination.cjs +11 -6
- package/components/Pagination/Pagination.cjs.map +1 -1
- package/components/Pagination/PaginationButtonLink.js +4 -1
- package/components/Pagination/PaginationButtonLink.js.map +1 -1
- package/components/Pagination/PaginationLink.js +3 -1
- package/components/Pagination/PaginationLink.js.map +1 -1
- package/components/Pagination/UncontrolledPagination.js +2 -1
- package/components/Pagination/UncontrolledPagination.js.map +1 -1
- package/components/Pagination/constants.d.ts +1 -0
- package/components/Pagination/constants.js +1 -0
- package/components/Pagination/constants.js.map +1 -1
- package/components/PricingPlan/PricingPlan.cjs +4 -2
- package/components/PricingPlan/PricingPlan.cjs.map +1 -1
- package/components/ScrollView/ScrollView.cjs +41 -8
- package/components/ScrollView/ScrollView.cjs.map +1 -1
- package/components/ScrollView/ScrollViewArrows.js +3 -8
- package/components/ScrollView/ScrollViewArrows.js.map +1 -1
- package/components/ScrollView/constants.d.ts +1 -0
- package/components/ScrollView/constants.js +1 -0
- package/components/ScrollView/constants.js.map +1 -1
- package/components/ScrollView/index.d.ts +1 -0
- package/components/ScrollView/index.js +1 -0
- package/components/ScrollView/index.js.map +1 -1
- package/components/ScrollView/useScrollCallback.d.ts +10 -0
- package/components/ScrollView/useScrollCallback.js +41 -0
- package/components/ScrollView/useScrollCallback.js.map +1 -0
- package/components/Skeleton/useSkeletonShapeStyleProps.d.ts +10 -10
- package/components/SplitButton/SplitButton.cjs +3 -0
- package/components/SplitButton/SplitButton.cjs.map +1 -1
- package/components/SplitButton/UncontrolledSplitButton.js +2 -0
- package/components/SplitButton/UncontrolledSplitButton.js.map +1 -1
- package/components/SplitButton/constants.d.ts +1 -0
- package/components/SplitButton/constants.js +2 -0
- package/components/SplitButton/constants.js.map +1 -0
- package/components/TextArea/TextArea.cjs +7 -1
- package/components/TextArea/TextArea.cjs.map +1 -1
- package/components/TextField/TextField.cjs +7 -1
- package/components/TextField/TextField.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.cjs +7 -1
- package/components/TextFieldBase/TextFieldBase.cjs.map +1 -1
- package/components/TextFieldBase/TextFieldBase.d.ts +2 -2
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js +5 -1
- package/components/TextFieldBase/TextFieldBasePasswordToggle.js.map +1 -1
- package/components/TextFieldBase/constants.d.ts +2 -0
- package/components/TextFieldBase/constants.js +3 -0
- package/components/TextFieldBase/constants.js.map +1 -0
- package/components/Toast/Toast.cjs +1 -1
- package/components/Toast/Toast.cjs.map +1 -1
- package/components/Toast/UncontrolledToast.js +2 -1
- package/components/Toast/UncontrolledToast.js.map +1 -1
- package/components/Toast/useToastBarStyleProps.d.ts +10 -10
- package/components/components.cjs +105 -30
- package/components/components.cjs.map +1 -1
- package/index.cjs +105 -30
- package/index.cjs.map +1 -1
- package/package.json +8 -6
- package/spirit-web-react.cjs +105 -30
- package/spirit-web-react.cjs.map +1 -1
- package/spirit-web-react.min.cjs +1 -1
- package/types/accordion.d.ts +14 -7
- package/types/box.d.ts +2 -2
- package/types/flex.d.ts +2 -3
- package/types/footer.d.ts +7 -2
- package/types/grid.d.ts +3 -5
|
@@ -453,6 +453,7 @@ function useResizeObserver(options) {
|
|
|
453
453
|
|
|
454
454
|
const DEBOUNCE_DELAY = 50;
|
|
455
455
|
const EDGE_DETECTION_INACCURACY_PX = 1;
|
|
456
|
+
const SCROLL_CANCEL_DELAY = 10;
|
|
456
457
|
const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = 'Scroll right';
|
|
457
458
|
const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = 'Scroll left';
|
|
458
459
|
const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = 'Scroll down';
|
|
@@ -614,6 +615,43 @@ const _Icon = (props, ref) => {
|
|
|
614
615
|
const Icon = React.forwardRef(_Icon);
|
|
615
616
|
Icon.spiritComponent = 'Icon';
|
|
616
617
|
|
|
618
|
+
const useScrollCallback = ({ viewportRef, direction }) => {
|
|
619
|
+
const scrollTimeoutRef = React.useRef(null);
|
|
620
|
+
React.useEffect(() => () => {
|
|
621
|
+
if (scrollTimeoutRef.current) {
|
|
622
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
623
|
+
}
|
|
624
|
+
}, []);
|
|
625
|
+
const handleScroll = React.useCallback((step) => {
|
|
626
|
+
if (!viewportRef.current) {
|
|
627
|
+
return;
|
|
628
|
+
}
|
|
629
|
+
const isHorizontal = isDirectionHorizontal(direction);
|
|
630
|
+
const scrollToDirection = isHorizontal ? Position.LEFT : Position.TOP;
|
|
631
|
+
const currentScrollPosition = isHorizontal ? viewportRef.current.scrollLeft : viewportRef.current.scrollTop;
|
|
632
|
+
const maxScroll = isHorizontal
|
|
633
|
+
? viewportRef.current.scrollWidth - viewportRef.current.clientWidth
|
|
634
|
+
: viewportRef.current.scrollHeight - viewportRef.current.clientHeight;
|
|
635
|
+
viewportRef.current.scrollTo({
|
|
636
|
+
[scrollToDirection]: currentScrollPosition,
|
|
637
|
+
behavior: 'auto',
|
|
638
|
+
});
|
|
639
|
+
if (scrollTimeoutRef.current) {
|
|
640
|
+
clearTimeout(scrollTimeoutRef.current);
|
|
641
|
+
}
|
|
642
|
+
const targetPosition = Math.max(0, Math.min(currentScrollPosition + step, maxScroll));
|
|
643
|
+
scrollTimeoutRef.current = setTimeout(() => {
|
|
644
|
+
if (viewportRef.current) {
|
|
645
|
+
viewportRef.current.scrollTo({
|
|
646
|
+
[scrollToDirection]: targetPosition,
|
|
647
|
+
behavior: 'smooth',
|
|
648
|
+
});
|
|
649
|
+
}
|
|
650
|
+
}, SCROLL_CANCEL_DELAY);
|
|
651
|
+
}, [viewportRef, direction]);
|
|
652
|
+
return { handleScroll };
|
|
653
|
+
};
|
|
654
|
+
|
|
617
655
|
const getDefaultArrowLabels = (isHorizontal) => isHorizontal
|
|
618
656
|
? {
|
|
619
657
|
start: SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START,
|
|
@@ -697,14 +735,7 @@ const ScrollViewArrows = (props) => {
|
|
|
697
735
|
const mergedStyleProps = mergeStyleProps('button', { classProps: classProps.arrows, styleProps });
|
|
698
736
|
const isHorizontal = isDirectionHorizontal(direction);
|
|
699
737
|
const { arrows } = useScrollViewArrows(isHorizontal, ariaLabelArrows, scrollStep);
|
|
700
|
-
const handleScroll = (
|
|
701
|
-
var _a;
|
|
702
|
-
const scrollToDirection = isHorizontal ? 'left' : 'top';
|
|
703
|
-
(_a = viewportRef.current) === null || _a === void 0 ? void 0 : _a.scrollBy({
|
|
704
|
-
[scrollToDirection]: step,
|
|
705
|
-
behavior: 'smooth',
|
|
706
|
-
});
|
|
707
|
-
};
|
|
738
|
+
const { handleScroll } = useScrollCallback({ viewportRef, direction });
|
|
708
739
|
return (React.createElement("div", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (React.createElement(ControlButton, { key: icon, "aria-label": label, onClick: () => handleScroll(step), size: "small", isSymmetrical: true },
|
|
709
740
|
React.createElement(Icon, { name: icon }))))));
|
|
710
741
|
};
|
|
@@ -794,6 +825,7 @@ ScrollView.spiritComponent = 'ScrollView';
|
|
|
794
825
|
|
|
795
826
|
exports.DEBOUNCE_DELAY = DEBOUNCE_DELAY;
|
|
796
827
|
exports.EDGE_DETECTION_INACCURACY_PX = EDGE_DETECTION_INACCURACY_PX;
|
|
828
|
+
exports.SCROLL_CANCEL_DELAY = SCROLL_CANCEL_DELAY;
|
|
797
829
|
exports.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END;
|
|
798
830
|
exports.SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START;
|
|
799
831
|
exports.SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END;
|
|
@@ -802,6 +834,7 @@ exports.SCROLL_VIEW_DEFAULT_DIRECTION = SCROLL_VIEW_DEFAULT_DIRECTION;
|
|
|
802
834
|
exports.SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR = SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR;
|
|
803
835
|
exports.ScrollView = ScrollView;
|
|
804
836
|
exports.ScrollViewArrows = ScrollViewArrows;
|
|
837
|
+
exports.useScrollCallback = useScrollCallback;
|
|
805
838
|
exports.useScrollPosition = useScrollPosition;
|
|
806
839
|
exports.useScrollViewArrows = useScrollViewArrows;
|
|
807
840
|
exports.useScrollViewStyleProps = useScrollViewStyleProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollView.cjs","sources":["../../common/constants/environments.js","../../common/utilities/warning.js","../../constants/dictionaries.js","../../constants/direction.js","../../constants/position.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/compose.js","../../utils/debounce.js","../../utils/htmlReactParser.js","../../utils/mergeStyleProps.js","../../utils/ssr.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../hooks/useClick.js","../../context/IconsContext.js","../../hooks/useIcon.js","../../hooks/useIsMounted.js","../../hooks/useResizeObserver.js","constants.js","../ControlButton/useControlButtonProps.js","../ControlButton/useControlButtonStyleProps.js","../ControlButton/ControlButton.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","useScrollViewArrows.js","useScrollViewStyleProps.js","ScrollViewArrows.js","useScrollPosition.js","ScrollView.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 Position = {\n LEFT: 'left',\n RIGHT: 'right',\n TOP: 'top',\n BOTTOM: 'bottom',\n};\n//# sourceMappingURL=position.js.map","export const BackgroundStyleProps = {\n backgroundGradient: 'bg-gradient',\n};\nexport const BorderRadiusStyleProps = {\n borderRadius: 'rounded',\n};\nexport const SpacingStyleProp = {\n margin: 'm',\n marginTop: 'mt',\n marginRight: 'mr',\n marginBottom: 'mb',\n marginLeft: 'ml',\n marginX: 'mx',\n marginY: 'my',\n};\nexport const PaddingStyleProps = {\n padding: 'p',\n paddingBottom: 'pb',\n paddingLeft: 'pl',\n paddingRight: 'pr',\n paddingTop: 'pt',\n paddingX: 'px',\n paddingY: 'py',\n};\nexport const TextStyleProps = {\n isTextBalanced: 'text-wrap-pretty',\n textAlignment: 'text',\n textHyphens: 'text-hyphens',\n textWordBreak: 'text-word-break',\n};\nexport const HeadingStyleProps = {\n isTextBalanced: 'text-wrap-balance',\n};\nexport const DisplayStyleProps = {\n hideOn: 'd',\n hideFrom: 'd',\n};\nexport const ThemeStyleProps = {\n theme: '',\n};\n//# sourceMappingURL=style.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst ClassNamePrefixContext = createContext(defaultContext);\nconst ClassNamePrefixProvider = ClassNamePrefixContext.Provider;\nconst ClassNamePrefixConsumer = ClassNamePrefixContext.Consumer;\nexport default ClassNamePrefixContext;\nexport { ClassNamePrefixConsumer, ClassNamePrefixProvider };\n//# sourceMappingURL=ClassNamePrefixContext.js.map","import { Sizes } from \"../constants/index.js\";\nexport const CardSizes = Object.assign(Object.assign({}, Sizes), { AUTO: 'auto' });\n//# sourceMappingURL=card.js.map","export const STYLE_SPACING_AUTO = 'auto';\n//# sourceMappingURL=style.js.map","export const BREAKPOINT_MOBILE = 'mobile';\n//# sourceMappingURL=tokens.js.map","export * from \"./adornments.js\";\nexport * from \"./buttons.js\";\nexport * from \"./colors.js\";\nexport * from \"./columns.js\";\nexport * from \"./dialogs.js\";\nexport * from \"./dictionaries.js\";\nexport * from \"./directions.js\";\nexport * from \"./dragAndDrop.js\";\nexport * from \"./element.js\";\nexport * from \"./events.js\";\nexport * from \"./inputs.js\";\nexport * from \"./item.js\";\nexport * from \"./positions.js\";\nexport * from \"./radii.js\";\nexport * from \"./refs.js\";\nexport * from \"./responsive.js\";\nexport * from \"./rest.js\";\nexport * from \"./sizes.js\";\nexport * from \"./style.js\";\nexport * from \"./text.js\";\nexport * from \"./tokens.js\";\nexport var SpiritBreakpoints;\n(function (SpiritBreakpoints) {\n SpiritBreakpoints[\"TABLET\"] = \"tablet\";\n SpiritBreakpoints[\"DESKTOP\"] = \"desktop\";\n})(SpiritBreakpoints || (SpiritBreakpoints = {}));\n//# sourceMappingURL=index.js.map","export const isNullish = (value) => value == null;\nexport const isEmptyString = (value) => typeof value === 'string' && value.trim() === '';\nexport const isEmptyArray = (value) => Array.isArray(value) && value.length === 0;\nexport const isEmptyObject = (value) => typeof value === 'object' && value !== null && Object.keys(value).length === 0;\nexport const isEnumerable = (value) => {\n if (typeof value === 'object' && value !== null) {\n for (const key in value) {\n if (Object.hasOwnProperty.call(value, key)) {\n return true;\n }\n }\n }\n return false;\n};\nexport const isEmpty = (value) => {\n if (isNullish(value)) {\n return true;\n }\n if (isEmptyString(value)) {\n return true;\n }\n if (isEmptyArray(value)) {\n return true;\n }\n if (isEmptyObject(value)) {\n return true;\n }\n if (isEnumerable(value)) {\n return false;\n }\n return false;\n};\n//# sourceMappingURL=assert.js.map","export const applyClassNamePrefix = (prefix) => (className) => prefix != null && prefix !== '' ? `${prefix}-${className}` : className;\nexport const applyColor = (color) => (className) => `${className}--${color}`;\nexport const applySize = (size) => (className) => `${className}--${size}`;\nexport const applyTheme = (theme) => (className) => `${className}--${theme}`;\n//# sourceMappingURL=classname.js.map","export const compose = (...functions) => functions.reduceRight((prevFunction, nextFunction) => (...args) => nextFunction(prevFunction(...args)), (value) => value);\n//# sourceMappingURL=compose.js.map","export const debounce = (callback, delay) => {\n let timeout;\n let isThrottled = false;\n return (args) => {\n if (!isThrottled) {\n isThrottled = true;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n callback(args);\n isThrottled = false;\n }, delay);\n }\n };\n};\n//# sourceMappingURL=debounce.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 isSSR = typeof window === 'undefined';\n//# sourceMappingURL=ssr.js.map","export const camelCaseToKebabCase = (input) => input.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\nexport const kebabCaseToCamelCase = (input) => input.replace(/-([a-z])/g, (g) => g[1].toUpperCase());\nexport const kebabCaseToCamelCaseValues = (input) => {\n if (typeof input === 'object' && input !== null) {\n const result = {};\n for (const [key, value] of Object.entries(input)) {\n result[key] = typeof value === 'string' ? kebabCaseToCamelCase(value) : value;\n }\n return result;\n }\n return input;\n};\nexport const stringOrObjectKebabCaseToCamelCase = (input) => {\n if (typeof input === 'string') {\n return kebabCaseToCamelCase(input);\n }\n if (typeof input === 'object' && input !== null) {\n return kebabCaseToCamelCaseValues(input);\n }\n return input;\n};\n//# sourceMappingURL=string.js.map","import { SpacingStyleProp as DefaultSpacingStyleProp, DisplayStyleProps, ThemeStyleProps } from \"../constants/index.js\";\nimport { BREAKPOINT_MOBILE, STYLE_SPACING_AUTO, } from \"../types/index.js\";\nimport { applyClassNamePrefix, camelCaseToKebabCase, isEmpty } from \"../utils/index.js\";\nconst CLASS_SEPARATOR = '-';\nconst normalizeSpacingValue = (value) => value === STYLE_SPACING_AUTO ? STYLE_SPACING_AUTO : value.replace(/[^0-9]/g, '');\nconst isSpaceToken = (value) => typeof value === 'string' && value.startsWith('space-');\nconst getUtilityValue = (value) => (isSpaceToken(value) ? normalizeSpacingValue(value) : value);\nconst isKeyIncluded = (object, key) => Object.keys(object).includes(key);\nconst processBreakpointProperties = (utilityName, propValue, prefix) => Object.keys(propValue).reduce((accumulatedBreakpointUtilities, breakpoint) => {\n const breakpointValue = propValue[breakpoint];\n if (typeof breakpointValue === 'string') {\n const utilityValue = getUtilityValue(breakpointValue);\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n accumulatedBreakpointUtilities.push(applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}${utilityValue}`));\n }\n return accumulatedBreakpointUtilities;\n}, []);\nconst processHideOnProperty = (utilityName, propValue, prefix) => {\n const breakpoints = Array.isArray(propValue) ? propValue : [propValue];\n return breakpoints.map((breakpoint) => applyClassNamePrefix(prefix)(`${utilityName}${CLASS_SEPARATOR}only${CLASS_SEPARATOR}${breakpoint}${CLASS_SEPARATOR}none`));\n};\nconst processHideFromProperty = (utilityName, propValue, prefix) => {\n const breakpoint = propValue;\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n return [applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}none`)];\n};\nconst processDisplayProperties = (utilityKey, utilityName, propValue, prefix) => {\n switch (utilityKey) {\n case 'hideOn':\n return processHideOnProperty(utilityName, propValue, prefix);\n case 'hideFrom':\n return processHideFromProperty(utilityName, propValue, prefix);\n default:\n return [];\n }\n};\nconst processProperties = (utilityKey, utilityName, propValue, prefix) => {\n if (utilityName === ThemeStyleProps.theme) {\n if (typeof propValue !== 'string') {\n return [];\n }\n const themeClassName = camelCaseToKebabCase(propValue);\n return [applyClassNamePrefix(prefix)(themeClassName)];\n }\n if (utilityKey in DisplayStyleProps) {\n return processDisplayProperties(utilityKey, utilityName, propValue, prefix);\n }\n if (typeof propValue === 'boolean') {\n return propValue ? [applyClassNamePrefix(prefix)(utilityName)] : [];\n }\n if (typeof propValue === 'string') {\n return [applyClassNamePrefix(prefix)(`${utilityName}-${getUtilityValue(propValue)}`)];\n }\n return processBreakpointProperties(utilityName, propValue, prefix);\n};\nconst isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {\n const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);\n const isProcessable = (options.includesKey ? isStylePropKeyIncluded : !isStylePropKeyIncluded) && !isEmpty(stylePropValue);\n return isProcessable;\n};\nexport const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {\n const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, DefaultSpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);\n const propEntries = Object.entries(props);\n const styleUtilities = propEntries.reduce((accumulatedUtilities, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue)) {\n const utilityName = styleProps[key];\n return [\n ...accumulatedUtilities,\n ...processProperties(key, utilityName, propValue, prefix),\n ];\n }\n return accumulatedUtilities;\n }, []);\n const updatedProps = propEntries.reduce((accumulatedProps, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue, { includesKey: false })) {\n return Object.assign(Object.assign({}, accumulatedProps), { [key]: propValue });\n }\n return accumulatedProps;\n }, {});\n return {\n styleUtilities,\n props: updatedProps,\n };\n};\n//# sourceMappingURL=useStyleUtilities.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useContext } from 'react';\nimport { warning } from \"../common/utilities/index.js\";\nimport { ThemeStyleProps } from \"../constants/index.js\";\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { useStyleUtilities } from \"./useStyleUtilities.js\";\nexport function useStyleProps(props, additionalUtilities) {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n const { UNSAFE_className, UNSAFE_style } = props, otherProps = __rest(props, [\"UNSAFE_className\", \"UNSAFE_style\"]);\n const styleUtilitiesConfig = Object.assign({ theme: ThemeStyleProps.theme }, (additionalUtilities !== null && additionalUtilities !== void 0 ? additionalUtilities : {}));\n const { styleUtilities, props: modifiedProps } = useStyleUtilities(otherProps, classNamePrefix, styleUtilitiesConfig);\n const style = Object.assign({}, UNSAFE_style);\n if (modifiedProps.className) {\n warning(false, 'The className prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.className;\n }\n if (modifiedProps.style) {\n warning(false, 'The style prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.style;\n }\n const styleProps = {\n style: Object.keys(style).length > 0 ? style : undefined,\n className: classNames(UNSAFE_className, ...styleUtilities) || undefined,\n };\n return {\n styleProps,\n props: modifiedProps,\n };\n}\n//# sourceMappingURL=styleProps.js.map","'use client';\nimport { useContext } from 'react';\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { applyClassNamePrefix } from \"../utils/classname.js\";\nexport const useClassNamePrefix = (className) => {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n let prefixedClassName = className;\n if (className && classNamePrefix) {\n prefixedClassName = applyClassNamePrefix(classNamePrefix)(className);\n }\n else if (classNamePrefix) {\n prefixedClassName = classNamePrefix;\n }\n return prefixedClassName;\n};\n//# sourceMappingURL=useClassNamePrefix.js.map","'use client';\nimport { useCallback } from 'react';\nexport const useClick = (isDisabled, onClick) => useCallback((event) => {\n if (isDisabled) {\n event.preventDefault();\n return;\n }\n if (onClick) {\n onClick(event);\n }\n}, [isDisabled, onClick]);\n//# sourceMappingURL=useClick.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","'use client';\nimport { useCallback, useEffect, useRef } from 'react';\nexport function useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\n//# sourceMappingURL=useIsMounted.js.map","'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport { isSSR } from \"../utils/index.js\";\nimport { useIsMounted } from \"./useIsMounted.js\";\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === 'contentBoxSize') {\n return entry.contentRect[sizeType === 'inlineSize' ? 'width' : 'height'];\n }\n return undefined;\n }\n return Array.isArray(entry[box])\n ? entry[box][0][sizeType]\n :\n entry[box][sizeType];\n}\nconst initialSize = {\n width: undefined,\n height: undefined,\n};\nexport function useResizeObserver(options) {\n const { ref, box = 'border-box' } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef(Object.assign({}, initialSize));\n const onResize = useRef(undefined);\n onResize.current = options.onResize;\n useEffect(() => {\n if (isSSR) {\n return;\n }\n if (!('ResizeObserver' in window)) {\n return;\n }\n if (!ref.current) {\n return;\n }\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === 'border-box'\n ? 'borderBoxSize'\n : box === 'device-pixel-content-box'\n ? 'devicePixelContentBoxSize'\n : 'contentBoxSize';\n const newWidth = extractSize(entry, boxProp, 'inlineSize');\n const newHeight = extractSize(entry, boxProp, 'blockSize');\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n }\n else if (isMounted()) {\n setSize(newSize);\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\n//# sourceMappingURL=useResizeObserver.js.map","import { Direction } from \"../../constants/index.js\";\nexport const DEBOUNCE_DELAY = 50;\nexport const EDGE_DETECTION_INACCURACY_PX = 1;\nexport const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = 'Scroll right';\nexport const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = 'Scroll left';\nexport const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = 'Scroll down';\nexport const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START = 'Scroll up';\nexport const SCROLL_VIEW_DEFAULT_DIRECTION = Direction.VERTICAL;\nexport const SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR = 'shadows';\n//# sourceMappingURL=constants.js.map","import { useClick } from \"../../hooks/index.js\";\nexport const useControlButtonProps = (props) => {\n const { isDisabled, onClick, type = 'button' } = props;\n const handleClick = useClick(isDisabled, onClick);\n const additionalProps = {\n type,\n disabled: isDisabled,\n };\n return {\n controlButtonProps: Object.assign(Object.assign({}, additionalProps), { onClick: handleClick }),\n };\n};\n//# sourceMappingURL=useControlButtonProps.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\";\nimport { applySize, compose } from \"../../utils/index.js\";\nconst getControlButtonSizeClassname = (className, size) => compose(applySize(size))(className);\nexport function useControlButtonStyleProps(props) {\n const { isDisabled, isSubtle, isSymmetrical, size } = props, restProps = __rest(props, [\"isDisabled\", \"isSubtle\", \"isSymmetrical\", \"size\"]);\n const controlButtonClass = useClassNamePrefix('ControlButton');\n const controlButtonBackgroundClass = `${controlButtonClass}--hasBackground`;\n const controlButtonDisabledClass = `${controlButtonClass}--disabled`;\n const controlButtonSymmetricalClass = `${controlButtonClass}--symmetrical`;\n const dynamicColorBackgroundInteractiveClass = useClassNamePrefix('dynamic-color-background-interactive');\n const dynamicColorBorderClass = useClassNamePrefix('dynamic-color-border');\n const accessibilityTapTargetClass = useClassNamePrefix('accessibility-tap-target');\n const classProps = classNames(controlButtonClass, getControlButtonSizeClassname(controlButtonClass, size), dynamicColorBackgroundInteractiveClass, accessibilityTapTargetClass, {\n [controlButtonDisabledClass]: isDisabled,\n [controlButtonSymmetricalClass]: isSymmetrical,\n [controlButtonBackgroundClass]: !isSubtle,\n [dynamicColorBorderClass]: !isSubtle,\n });\n return {\n classProps,\n props: restProps,\n };\n}\n//# sourceMappingURL=useControlButtonStyleProps.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 { Sizes } from \"../../constants/index.js\";\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { useControlButtonProps } from \"./useControlButtonProps.js\";\nimport { useControlButtonStyleProps } from \"./useControlButtonStyleProps.js\";\nconst defaultProps = {\n elementType: 'button',\n isDisabled: false,\n isSubtle: false,\n isSymmetrical: false,\n size: Sizes.MEDIUM,\n type: 'button',\n};\nconst _ControlButton = (props, ref) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = defaultProps.elementType, children } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"children\"]);\n const { controlButtonProps } = useControlButtonProps(restProps);\n const { classProps, props: modifiedProps } = useControlButtonStyleProps(restProps);\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { classProps, styleProps, otherProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, controlButtonProps, { ref: ref }, mergedStyleProps), children));\n};\nconst ControlButton = forwardRef(_ControlButton);\nControlButton.spiritComponent = 'ControlButton';\nexport default ControlButton;\n//# sourceMappingURL=ControlButton.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 { SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END, SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START, SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END, SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START, } from \"./constants.js\";\nconst getDefaultArrowLabels = (isHorizontal) => isHorizontal\n ? {\n start: SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START,\n end: SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END,\n }\n : {\n top: SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START,\n bottom: SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END,\n };\nexport const useScrollViewArrows = (isHorizontal, ariaLabelArrows, scrollStep = 300) => {\n var _a, _b, _c, _d;\n const defaultArrowLabels = getDefaultArrowLabels(isHorizontal);\n const mergedArrowLabels = Object.assign(Object.assign({}, defaultArrowLabels), ariaLabelArrows);\n const arrows = [\n {\n icon: isHorizontal ? 'chevron-left' : 'chevron-up',\n label: (isHorizontal\n ? ((_a = mergedArrowLabels.start) !== null && _a !== void 0 ? _a : defaultArrowLabels.start)\n : ((_b = mergedArrowLabels.top) !== null && _b !== void 0 ? _b : defaultArrowLabels.top)),\n step: -scrollStep,\n },\n {\n icon: isHorizontal ? 'chevron-right' : 'chevron-down',\n label: (isHorizontal\n ? ((_c = mergedArrowLabels.end) !== null && _c !== void 0 ? _c : defaultArrowLabels.end)\n : ((_d = mergedArrowLabels.bottom) !== null && _d !== void 0 ? _d : defaultArrowLabels.bottom)),\n step: scrollStep,\n },\n ];\n return { arrows };\n};\n//# sourceMappingURL=useScrollViewArrows.js.map","import classNames from 'classnames';\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nimport { SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } from \"./constants.js\";\nexport const useScrollViewStyleProps = ({ direction, isScrollbarDisabled, isScrolledAtEnd, isScrolledAtStart, overflowDecorators = SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR, }) => {\n const scrollViewRootClass = useClassNamePrefix('ScrollView');\n const scrollViewRootDirectionClass = `${scrollViewRootClass}--${direction}`;\n const scrollViewRootScrollbarDisabledClass = `${scrollViewRootClass}--scrollbarDisabled`;\n const scrollViewViewportClass = `${scrollViewRootClass}__viewport`;\n const scrollViewContentClass = `${scrollViewRootClass}__content`;\n const scrollViewOverflowDecoratorsClass = `${scrollViewRootClass}__overflowDecorators`;\n const scrollViewRootOverflowDecoratorsClasses = {\n shadows: `${scrollViewOverflowDecoratorsClass}--shadows`,\n borders: `${scrollViewOverflowDecoratorsClass}--borders`,\n both: classNames(`${scrollViewOverflowDecoratorsClass}--shadows`, `${scrollViewOverflowDecoratorsClass}--borders`),\n };\n const scrollViewRootOverflowDecoratorsClass = scrollViewRootOverflowDecoratorsClasses[overflowDecorators];\n const scrollViewAtStartClass = 'is-scrolled-at-start';\n const scrollViewAtEndClass = 'is-scrolled-at-end';\n const scrollViewArrowsClass = `${scrollViewRootClass}__arrows`;\n return {\n classProps: {\n root: classNames(scrollViewRootClass, scrollViewRootDirectionClass, {\n [scrollViewRootScrollbarDisabledClass]: isScrollbarDisabled,\n [scrollViewAtEndClass]: isScrolledAtEnd,\n [scrollViewAtStartClass]: isScrolledAtStart,\n }),\n viewport: scrollViewViewportClass,\n content: scrollViewContentClass,\n overflowDecorators: classNames(scrollViewOverflowDecoratorsClass, scrollViewRootOverflowDecoratorsClass),\n arrows: scrollViewArrowsClass,\n },\n };\n};\n//# sourceMappingURL=useScrollViewStyleProps.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 React from 'react';\nimport { isDirectionHorizontal } from \"../../constants/index.js\";\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { ControlButton } from \"../ControlButton/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useScrollViewArrows } from \"./useScrollViewArrows.js\";\nimport { useScrollViewStyleProps } from \"./useScrollViewStyleProps.js\";\nconst ScrollViewArrows = (props) => {\n const { ariaLabelArrows, direction, scrollStep, viewportRef } = props, restProps = __rest(props, [\"ariaLabelArrows\", \"direction\", \"scrollStep\", \"viewportRef\"]);\n const { classProps } = useScrollViewStyleProps({\n direction,\n });\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps('button', { classProps: classProps.arrows, styleProps });\n const isHorizontal = isDirectionHorizontal(direction);\n const { arrows } = useScrollViewArrows(isHorizontal, ariaLabelArrows, scrollStep);\n const handleScroll = (step) => {\n var _a;\n const scrollToDirection = isHorizontal ? 'left' : 'top';\n (_a = viewportRef.current) === null || _a === void 0 ? void 0 : _a.scrollBy({\n [scrollToDirection]: step,\n behavior: 'smooth',\n });\n };\n return (React.createElement(\"div\", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (React.createElement(ControlButton, { key: icon, \"aria-label\": label, onClick: () => handleScroll(step), size: \"small\", isSymmetrical: true },\n React.createElement(Icon, { name: icon }))))));\n};\nScrollViewArrows.spiritComponent = 'ScrollViewArrows';\nexport default ScrollViewArrows;\n//# sourceMappingURL=ScrollViewArrows.js.map","'use client';\nimport { useCallback, useEffect, useState } from 'react';\nimport { Position, isDirectionHorizontal } from \"../../constants/index.js\";\nimport { useResizeObserver } from \"../../hooks/index.js\";\nimport { debounce } from \"../../utils/index.js\";\nimport { DEBOUNCE_DELAY, EDGE_DETECTION_INACCURACY_PX } from \"./constants.js\";\nexport const useScrollPosition = ({ viewportReference, contentReference, direction, }) => {\n const [isScrolledAtStart, setScrolledStart] = useState(false);\n const [isScrolledAtEnd, setScrolledAtEnd] = useState(false);\n const getElementsPositionDifference = () => {\n if (!(contentReference.current && viewportReference.current)) {\n return null;\n }\n const contentPosition = contentReference.current.getBoundingClientRect();\n const viewportPosition = viewportReference.current.getBoundingClientRect();\n return {\n [Position.BOTTOM]: contentPosition.bottom - viewportPosition.bottom,\n [Position.LEFT]: contentPosition.left - viewportPosition.left,\n [Position.RIGHT]: contentPosition.right - viewportPosition.right,\n [Position.TOP]: contentPosition.top - viewportPosition.top,\n };\n };\n const handleScrollViewState = () => {\n const isHorizontal = isDirectionHorizontal(direction);\n const scrollPositionStart = isHorizontal ? Position.LEFT : Position.TOP;\n const scrollPositionEnd = isHorizontal ? Position.RIGHT : Position.BOTTOM;\n const currentPosition = getElementsPositionDifference();\n if (!currentPosition) {\n return;\n }\n const isScrolledAtStartActive = currentPosition[scrollPositionStart] <= -1 * EDGE_DETECTION_INACCURACY_PX;\n const isScrolledAtEndActive = currentPosition[scrollPositionEnd] >= EDGE_DETECTION_INACCURACY_PX;\n if (isScrolledAtStartActive !== isScrolledAtStart) {\n setScrolledStart(isScrolledAtStartActive);\n }\n if (isScrolledAtEndActive !== isScrolledAtEnd) {\n setScrolledAtEnd(isScrolledAtEndActive);\n }\n };\n const debouncedHandler = useCallback(debounce(handleScrollViewState, DEBOUNCE_DELAY), [handleScrollViewState]);\n useResizeObserver({\n ref: viewportReference,\n onResize: debouncedHandler,\n });\n useEffect(handleScrollViewState, []);\n return {\n isScrolledAtEnd,\n isScrolledAtStart,\n onScroll: debounce(handleScrollViewState, DEBOUNCE_DELAY),\n };\n};\n//# sourceMappingURL=useScrollPosition.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, { useRef } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { SCROLL_VIEW_DEFAULT_DIRECTION, SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } from \"./constants.js\";\nimport ScrollViewArrows from \"./ScrollViewArrows.js\";\nimport { useScrollPosition } from \"./useScrollPosition.js\";\nimport { useScrollViewStyleProps } from \"./useScrollViewStyleProps.js\";\nconst ScrollView = (props) => {\n const { ariaLabelArrows, arrowsScrollStep = 300, children, direction = SCROLL_VIEW_DEFAULT_DIRECTION, hasArrows = false, isScrollbarDisabled, overflowDecorators = SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } = props, restProps = __rest(props, [\"ariaLabelArrows\", \"arrowsScrollStep\", \"children\", \"direction\", \"hasArrows\", \"isScrollbarDisabled\", \"overflowDecorators\"]);\n const contentReference = useRef(null);\n const viewportReference = useRef(null);\n const { isScrolledAtEnd, isScrolledAtStart, onScroll } = useScrollPosition({\n contentReference,\n direction,\n viewportReference,\n });\n const { classProps } = useScrollViewStyleProps({\n direction,\n isScrollbarDisabled,\n isScrolledAtStart,\n isScrolledAtEnd,\n overflowDecorators,\n });\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n return (React.createElement(\"div\", Object.assign({}, transferProps, styleProps, { className: classNames(classProps.root, styleProps.className) }),\n React.createElement(\"div\", { className: classProps.viewport, onScroll: onScroll, ref: viewportReference, tabIndex: 0 },\n React.createElement(\"div\", { className: classProps.content, ref: contentReference }, children)),\n React.createElement(\"div\", { className: classProps.overflowDecorators, \"aria-hidden\": \"true\" }),\n hasArrows && (React.createElement(ScrollViewArrows, { ariaLabelArrows: ariaLabelArrows, direction: direction, scrollStep: arrowsScrollStep, viewportRef: viewportReference }))));\n};\nScrollView.spiritComponent = 'ScrollView';\nexport default ScrollView;\n//# sourceMappingURL=ScrollView.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","useCallback","useRef","useEffect","useState","defaultProps","forwardRef","cssVariablePrefix"],"mappings":";;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACNlF,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AAIzB,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,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,G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js","sources":["../../common/constants/environments.js","../../common/utilities/warning.js","../../constants/dictionaries.js","../../constants/direction.js","../../constants/position.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/compose.js","../../utils/debounce.js","../../utils/htmlReactParser.js","../../utils/mergeStyleProps.js","../../utils/ssr.js","../../utils/string.js","../../hooks/useStyleUtilities.js","../../hooks/styleProps.js","../../hooks/useClassNamePrefix.js","../../hooks/useClick.js","../../context/IconsContext.js","../../hooks/useIcon.js","../../hooks/useIsMounted.js","../../hooks/useResizeObserver.js","constants.js","../ControlButton/useControlButtonProps.js","../ControlButton/useControlButtonStyleProps.js","../ControlButton/ControlButton.js","../Icon/constants.js","../Icon/useIconBoxSize.js","../Icon/useIconStyleProps.js","../Icon/Icon.js","useScrollCallback.js","useScrollViewArrows.js","useScrollViewStyleProps.js","ScrollViewArrows.js","useScrollPosition.js","ScrollView.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 Position = {\n LEFT: 'left',\n RIGHT: 'right',\n TOP: 'top',\n BOTTOM: 'bottom',\n};\n//# sourceMappingURL=position.js.map","export const BackgroundStyleProps = {\n backgroundGradient: 'bg-gradient',\n};\nexport const BorderRadiusStyleProps = {\n borderRadius: 'rounded',\n};\nexport const SpacingStyleProp = {\n margin: 'm',\n marginTop: 'mt',\n marginRight: 'mr',\n marginBottom: 'mb',\n marginLeft: 'ml',\n marginX: 'mx',\n marginY: 'my',\n};\nexport const PaddingStyleProps = {\n padding: 'p',\n paddingBottom: 'pb',\n paddingLeft: 'pl',\n paddingRight: 'pr',\n paddingTop: 'pt',\n paddingX: 'px',\n paddingY: 'py',\n};\nexport const TextStyleProps = {\n isTextBalanced: 'text-wrap-pretty',\n textAlignment: 'text',\n textHyphens: 'text-hyphens',\n textWordBreak: 'text-word-break',\n};\nexport const HeadingStyleProps = {\n isTextBalanced: 'text-wrap-balance',\n};\nexport const DisplayStyleProps = {\n hideOn: 'd',\n hideFrom: 'd',\n};\nexport const ThemeStyleProps = {\n theme: '',\n};\n//# sourceMappingURL=style.js.map","'use client';\nimport { createContext } from 'react';\nconst defaultContext = undefined;\nconst ClassNamePrefixContext = createContext(defaultContext);\nconst ClassNamePrefixProvider = ClassNamePrefixContext.Provider;\nconst ClassNamePrefixConsumer = ClassNamePrefixContext.Consumer;\nexport default ClassNamePrefixContext;\nexport { ClassNamePrefixConsumer, ClassNamePrefixProvider };\n//# sourceMappingURL=ClassNamePrefixContext.js.map","import { Sizes } from \"../constants/index.js\";\nexport const CardSizes = Object.assign(Object.assign({}, Sizes), { AUTO: 'auto' });\n//# sourceMappingURL=card.js.map","export const STYLE_SPACING_AUTO = 'auto';\n//# sourceMappingURL=style.js.map","export const BREAKPOINT_MOBILE = 'mobile';\n//# sourceMappingURL=tokens.js.map","export * from \"./adornments.js\";\nexport * from \"./buttons.js\";\nexport * from \"./colors.js\";\nexport * from \"./columns.js\";\nexport * from \"./dialogs.js\";\nexport * from \"./dictionaries.js\";\nexport * from \"./directions.js\";\nexport * from \"./dragAndDrop.js\";\nexport * from \"./element.js\";\nexport * from \"./events.js\";\nexport * from \"./inputs.js\";\nexport * from \"./item.js\";\nexport * from \"./positions.js\";\nexport * from \"./radii.js\";\nexport * from \"./refs.js\";\nexport * from \"./responsive.js\";\nexport * from \"./rest.js\";\nexport * from \"./sizes.js\";\nexport * from \"./style.js\";\nexport * from \"./text.js\";\nexport * from \"./tokens.js\";\nexport var SpiritBreakpoints;\n(function (SpiritBreakpoints) {\n SpiritBreakpoints[\"TABLET\"] = \"tablet\";\n SpiritBreakpoints[\"DESKTOP\"] = \"desktop\";\n})(SpiritBreakpoints || (SpiritBreakpoints = {}));\n//# sourceMappingURL=index.js.map","export const isNullish = (value) => value == null;\nexport const isEmptyString = (value) => typeof value === 'string' && value.trim() === '';\nexport const isEmptyArray = (value) => Array.isArray(value) && value.length === 0;\nexport const isEmptyObject = (value) => typeof value === 'object' && value !== null && Object.keys(value).length === 0;\nexport const isEnumerable = (value) => {\n if (typeof value === 'object' && value !== null) {\n for (const key in value) {\n if (Object.hasOwnProperty.call(value, key)) {\n return true;\n }\n }\n }\n return false;\n};\nexport const isEmpty = (value) => {\n if (isNullish(value)) {\n return true;\n }\n if (isEmptyString(value)) {\n return true;\n }\n if (isEmptyArray(value)) {\n return true;\n }\n if (isEmptyObject(value)) {\n return true;\n }\n if (isEnumerable(value)) {\n return false;\n }\n return false;\n};\n//# sourceMappingURL=assert.js.map","export const applyClassNamePrefix = (prefix) => (className) => prefix != null && prefix !== '' ? `${prefix}-${className}` : className;\nexport const applyColor = (color) => (className) => `${className}--${color}`;\nexport const applySize = (size) => (className) => `${className}--${size}`;\nexport const applyTheme = (theme) => (className) => `${className}--${theme}`;\n//# sourceMappingURL=classname.js.map","export const compose = (...functions) => functions.reduceRight((prevFunction, nextFunction) => (...args) => nextFunction(prevFunction(...args)), (value) => value);\n//# sourceMappingURL=compose.js.map","export const debounce = (callback, delay) => {\n let timeout;\n let isThrottled = false;\n return (args) => {\n if (!isThrottled) {\n isThrottled = true;\n if (timeout) {\n clearTimeout(timeout);\n }\n timeout = setTimeout(() => {\n callback(args);\n isThrottled = false;\n }, delay);\n }\n };\n};\n//# sourceMappingURL=debounce.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 isSSR = typeof window === 'undefined';\n//# sourceMappingURL=ssr.js.map","export const camelCaseToKebabCase = (input) => input.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();\nexport const kebabCaseToCamelCase = (input) => input.replace(/-([a-z])/g, (g) => g[1].toUpperCase());\nexport const kebabCaseToCamelCaseValues = (input) => {\n if (typeof input === 'object' && input !== null) {\n const result = {};\n for (const [key, value] of Object.entries(input)) {\n result[key] = typeof value === 'string' ? kebabCaseToCamelCase(value) : value;\n }\n return result;\n }\n return input;\n};\nexport const stringOrObjectKebabCaseToCamelCase = (input) => {\n if (typeof input === 'string') {\n return kebabCaseToCamelCase(input);\n }\n if (typeof input === 'object' && input !== null) {\n return kebabCaseToCamelCaseValues(input);\n }\n return input;\n};\n//# sourceMappingURL=string.js.map","import { SpacingStyleProp as DefaultSpacingStyleProp, DisplayStyleProps, ThemeStyleProps } from \"../constants/index.js\";\nimport { BREAKPOINT_MOBILE, STYLE_SPACING_AUTO, } from \"../types/index.js\";\nimport { applyClassNamePrefix, camelCaseToKebabCase, isEmpty } from \"../utils/index.js\";\nconst CLASS_SEPARATOR = '-';\nconst normalizeSpacingValue = (value) => value === STYLE_SPACING_AUTO ? STYLE_SPACING_AUTO : value.replace(/[^0-9]/g, '');\nconst isSpaceToken = (value) => typeof value === 'string' && value.startsWith('space-');\nconst getUtilityValue = (value) => (isSpaceToken(value) ? normalizeSpacingValue(value) : value);\nconst isKeyIncluded = (object, key) => Object.keys(object).includes(key);\nconst processBreakpointProperties = (utilityName, propValue, prefix) => Object.keys(propValue).reduce((accumulatedBreakpointUtilities, breakpoint) => {\n const breakpointValue = propValue[breakpoint];\n if (typeof breakpointValue === 'string') {\n const utilityValue = getUtilityValue(breakpointValue);\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n accumulatedBreakpointUtilities.push(applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}${utilityValue}`));\n }\n return accumulatedBreakpointUtilities;\n}, []);\nconst processHideOnProperty = (utilityName, propValue, prefix) => {\n const breakpoints = Array.isArray(propValue) ? propValue : [propValue];\n return breakpoints.map((breakpoint) => applyClassNamePrefix(prefix)(`${utilityName}${CLASS_SEPARATOR}only${CLASS_SEPARATOR}${breakpoint}${CLASS_SEPARATOR}none`));\n};\nconst processHideFromProperty = (utilityName, propValue, prefix) => {\n const breakpoint = propValue;\n const infix = breakpoint === BREAKPOINT_MOBILE ? '' : `${CLASS_SEPARATOR}${breakpoint}`;\n return [applyClassNamePrefix(prefix)(`${utilityName}${infix}${CLASS_SEPARATOR}none`)];\n};\nconst processDisplayProperties = (utilityKey, utilityName, propValue, prefix) => {\n switch (utilityKey) {\n case 'hideOn':\n return processHideOnProperty(utilityName, propValue, prefix);\n case 'hideFrom':\n return processHideFromProperty(utilityName, propValue, prefix);\n default:\n return [];\n }\n};\nconst processProperties = (utilityKey, utilityName, propValue, prefix) => {\n if (utilityName === ThemeStyleProps.theme) {\n if (typeof propValue !== 'string') {\n return [];\n }\n const themeClassName = camelCaseToKebabCase(propValue);\n return [applyClassNamePrefix(prefix)(themeClassName)];\n }\n if (utilityKey in DisplayStyleProps) {\n return processDisplayProperties(utilityKey, utilityName, propValue, prefix);\n }\n if (typeof propValue === 'boolean') {\n return propValue ? [applyClassNamePrefix(prefix)(utilityName)] : [];\n }\n if (typeof propValue === 'string') {\n return [applyClassNamePrefix(prefix)(`${utilityName}-${getUtilityValue(propValue)}`)];\n }\n return processBreakpointProperties(utilityName, propValue, prefix);\n};\nconst isStylePropProcessable = (styleProps, stylePropKey, stylePropValue, options = { includesKey: true }) => {\n const isStylePropKeyIncluded = isKeyIncluded(styleProps, stylePropKey);\n const isProcessable = (options.includesKey ? isStylePropKeyIncluded : !isStylePropKeyIncluded) && !isEmpty(stylePropValue);\n return isProcessable;\n};\nexport const useStyleUtilities = (props, prefix = '', additionalProps = {}) => {\n const styleProps = Object.assign(Object.assign(Object.assign(Object.assign({}, DefaultSpacingStyleProp), DisplayStyleProps), ThemeStyleProps), additionalProps);\n const propEntries = Object.entries(props);\n const styleUtilities = propEntries.reduce((accumulatedUtilities, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue)) {\n const utilityName = styleProps[key];\n return [\n ...accumulatedUtilities,\n ...processProperties(key, utilityName, propValue, prefix),\n ];\n }\n return accumulatedUtilities;\n }, []);\n const updatedProps = propEntries.reduce((accumulatedProps, [key, propValue]) => {\n if (isStylePropProcessable(styleProps, key, propValue, { includesKey: false })) {\n return Object.assign(Object.assign({}, accumulatedProps), { [key]: propValue });\n }\n return accumulatedProps;\n }, {});\n return {\n styleUtilities,\n props: updatedProps,\n };\n};\n//# sourceMappingURL=useStyleUtilities.js.map","'use client';\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport classNames from 'classnames';\nimport { useContext } from 'react';\nimport { warning } from \"../common/utilities/index.js\";\nimport { ThemeStyleProps } from \"../constants/index.js\";\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { useStyleUtilities } from \"./useStyleUtilities.js\";\nexport function useStyleProps(props, additionalUtilities) {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n const { UNSAFE_className, UNSAFE_style } = props, otherProps = __rest(props, [\"UNSAFE_className\", \"UNSAFE_style\"]);\n const styleUtilitiesConfig = Object.assign({ theme: ThemeStyleProps.theme }, (additionalUtilities !== null && additionalUtilities !== void 0 ? additionalUtilities : {}));\n const { styleUtilities, props: modifiedProps } = useStyleUtilities(otherProps, classNamePrefix, styleUtilitiesConfig);\n const style = Object.assign({}, UNSAFE_style);\n if (modifiedProps.className) {\n warning(false, 'The className prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_className if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.className;\n }\n if (modifiedProps.style) {\n warning(false, 'The style prop is unsafe and is unsupported in Spirit Web React. ' +\n 'Please use style props with Spirit Design Tokens, or UNSAFE_style if you absolutely must do something custom. ' +\n 'Note that this may break in future versions due to DOM structure changes.');\n delete modifiedProps.style;\n }\n const styleProps = {\n style: Object.keys(style).length > 0 ? style : undefined,\n className: classNames(UNSAFE_className, ...styleUtilities) || undefined,\n };\n return {\n styleProps,\n props: modifiedProps,\n };\n}\n//# sourceMappingURL=styleProps.js.map","'use client';\nimport { useContext } from 'react';\nimport ClassNamePrefixContext from \"../context/ClassNamePrefixContext.js\";\nimport { applyClassNamePrefix } from \"../utils/classname.js\";\nexport const useClassNamePrefix = (className) => {\n const classNamePrefix = useContext(ClassNamePrefixContext);\n let prefixedClassName = className;\n if (className && classNamePrefix) {\n prefixedClassName = applyClassNamePrefix(classNamePrefix)(className);\n }\n else if (classNamePrefix) {\n prefixedClassName = classNamePrefix;\n }\n return prefixedClassName;\n};\n//# sourceMappingURL=useClassNamePrefix.js.map","'use client';\nimport { useCallback } from 'react';\nexport const useClick = (isDisabled, onClick) => useCallback((event) => {\n if (isDisabled) {\n event.preventDefault();\n return;\n }\n if (onClick) {\n onClick(event);\n }\n}, [isDisabled, onClick]);\n//# sourceMappingURL=useClick.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","'use client';\nimport { useCallback, useEffect, useRef } from 'react';\nexport function useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\n//# sourceMappingURL=useIsMounted.js.map","'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport { isSSR } from \"../utils/index.js\";\nimport { useIsMounted } from \"./useIsMounted.js\";\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === 'contentBoxSize') {\n return entry.contentRect[sizeType === 'inlineSize' ? 'width' : 'height'];\n }\n return undefined;\n }\n return Array.isArray(entry[box])\n ? entry[box][0][sizeType]\n :\n entry[box][sizeType];\n}\nconst initialSize = {\n width: undefined,\n height: undefined,\n};\nexport function useResizeObserver(options) {\n const { ref, box = 'border-box' } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef(Object.assign({}, initialSize));\n const onResize = useRef(undefined);\n onResize.current = options.onResize;\n useEffect(() => {\n if (isSSR) {\n return;\n }\n if (!('ResizeObserver' in window)) {\n return;\n }\n if (!ref.current) {\n return;\n }\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === 'border-box'\n ? 'borderBoxSize'\n : box === 'device-pixel-content-box'\n ? 'devicePixelContentBoxSize'\n : 'contentBoxSize';\n const newWidth = extractSize(entry, boxProp, 'inlineSize');\n const newHeight = extractSize(entry, boxProp, 'blockSize');\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n }\n else if (isMounted()) {\n setSize(newSize);\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\n//# sourceMappingURL=useResizeObserver.js.map","import { Direction } from \"../../constants/index.js\";\nexport const DEBOUNCE_DELAY = 50;\nexport const EDGE_DETECTION_INACCURACY_PX = 1;\nexport const SCROLL_CANCEL_DELAY = 10;\nexport const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = 'Scroll right';\nexport const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = 'Scroll left';\nexport const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = 'Scroll down';\nexport const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START = 'Scroll up';\nexport const SCROLL_VIEW_DEFAULT_DIRECTION = Direction.VERTICAL;\nexport const SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR = 'shadows';\n//# sourceMappingURL=constants.js.map","import { useClick } from \"../../hooks/index.js\";\nexport const useControlButtonProps = (props) => {\n const { isDisabled, onClick, type = 'button' } = props;\n const handleClick = useClick(isDisabled, onClick);\n const additionalProps = {\n type,\n disabled: isDisabled,\n };\n return {\n controlButtonProps: Object.assign(Object.assign({}, additionalProps), { onClick: handleClick }),\n };\n};\n//# sourceMappingURL=useControlButtonProps.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\";\nimport { applySize, compose } from \"../../utils/index.js\";\nconst getControlButtonSizeClassname = (className, size) => compose(applySize(size))(className);\nexport function useControlButtonStyleProps(props) {\n const { isDisabled, isSubtle, isSymmetrical, size } = props, restProps = __rest(props, [\"isDisabled\", \"isSubtle\", \"isSymmetrical\", \"size\"]);\n const controlButtonClass = useClassNamePrefix('ControlButton');\n const controlButtonBackgroundClass = `${controlButtonClass}--hasBackground`;\n const controlButtonDisabledClass = `${controlButtonClass}--disabled`;\n const controlButtonSymmetricalClass = `${controlButtonClass}--symmetrical`;\n const dynamicColorBackgroundInteractiveClass = useClassNamePrefix('dynamic-color-background-interactive');\n const dynamicColorBorderClass = useClassNamePrefix('dynamic-color-border');\n const accessibilityTapTargetClass = useClassNamePrefix('accessibility-tap-target');\n const classProps = classNames(controlButtonClass, getControlButtonSizeClassname(controlButtonClass, size), dynamicColorBackgroundInteractiveClass, accessibilityTapTargetClass, {\n [controlButtonDisabledClass]: isDisabled,\n [controlButtonSymmetricalClass]: isSymmetrical,\n [controlButtonBackgroundClass]: !isSubtle,\n [dynamicColorBorderClass]: !isSubtle,\n });\n return {\n classProps,\n props: restProps,\n };\n}\n//# sourceMappingURL=useControlButtonStyleProps.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 { Sizes } from \"../../constants/index.js\";\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { useControlButtonProps } from \"./useControlButtonProps.js\";\nimport { useControlButtonStyleProps } from \"./useControlButtonStyleProps.js\";\nconst defaultProps = {\n elementType: 'button',\n isDisabled: false,\n isSubtle: false,\n isSymmetrical: false,\n size: Sizes.MEDIUM,\n type: 'button',\n};\nconst _ControlButton = (props, ref) => {\n const propsWithDefaults = Object.assign(Object.assign({}, defaultProps), props);\n const { elementType: ElementTag = defaultProps.elementType, children } = propsWithDefaults, restProps = __rest(propsWithDefaults, [\"elementType\", \"children\"]);\n const { controlButtonProps } = useControlButtonProps(restProps);\n const { classProps, props: modifiedProps } = useControlButtonStyleProps(restProps);\n const { styleProps, props: otherProps } = useStyleProps(modifiedProps);\n const mergedStyleProps = mergeStyleProps(ElementTag, { classProps, styleProps, otherProps });\n return (React.createElement(ElementTag, Object.assign({}, otherProps, controlButtonProps, { ref: ref }, mergedStyleProps), children));\n};\nconst ControlButton = forwardRef(_ControlButton);\nControlButton.spiritComponent = 'ControlButton';\nexport default ControlButton;\n//# sourceMappingURL=ControlButton.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","'use client';\nimport { useCallback, useEffect, useRef } from 'react';\nimport { Position, isDirectionHorizontal } from \"../../constants/index.js\";\nimport { SCROLL_CANCEL_DELAY } from \"./constants.js\";\nexport const useScrollCallback = ({ viewportRef, direction }) => {\n const scrollTimeoutRef = useRef(null);\n useEffect(() => () => {\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n }, []);\n const handleScroll = useCallback((step) => {\n if (!viewportRef.current) {\n return;\n }\n const isHorizontal = isDirectionHorizontal(direction);\n const scrollToDirection = isHorizontal ? Position.LEFT : Position.TOP;\n const currentScrollPosition = isHorizontal ? viewportRef.current.scrollLeft : viewportRef.current.scrollTop;\n const maxScroll = isHorizontal\n ? viewportRef.current.scrollWidth - viewportRef.current.clientWidth\n : viewportRef.current.scrollHeight - viewportRef.current.clientHeight;\n viewportRef.current.scrollTo({\n [scrollToDirection]: currentScrollPosition,\n behavior: 'auto',\n });\n if (scrollTimeoutRef.current) {\n clearTimeout(scrollTimeoutRef.current);\n }\n const targetPosition = Math.max(0, Math.min(currentScrollPosition + step, maxScroll));\n scrollTimeoutRef.current = setTimeout(() => {\n if (viewportRef.current) {\n viewportRef.current.scrollTo({\n [scrollToDirection]: targetPosition,\n behavior: 'smooth',\n });\n }\n }, SCROLL_CANCEL_DELAY);\n }, [viewportRef, direction]);\n return { handleScroll };\n};\n//# sourceMappingURL=useScrollCallback.js.map","import { SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END, SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START, SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END, SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START, } from \"./constants.js\";\nconst getDefaultArrowLabels = (isHorizontal) => isHorizontal\n ? {\n start: SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START,\n end: SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END,\n }\n : {\n top: SCROLL_VIEW_ARROWS_LABEL_VERTICAL_START,\n bottom: SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END,\n };\nexport const useScrollViewArrows = (isHorizontal, ariaLabelArrows, scrollStep = 300) => {\n var _a, _b, _c, _d;\n const defaultArrowLabels = getDefaultArrowLabels(isHorizontal);\n const mergedArrowLabels = Object.assign(Object.assign({}, defaultArrowLabels), ariaLabelArrows);\n const arrows = [\n {\n icon: isHorizontal ? 'chevron-left' : 'chevron-up',\n label: (isHorizontal\n ? ((_a = mergedArrowLabels.start) !== null && _a !== void 0 ? _a : defaultArrowLabels.start)\n : ((_b = mergedArrowLabels.top) !== null && _b !== void 0 ? _b : defaultArrowLabels.top)),\n step: -scrollStep,\n },\n {\n icon: isHorizontal ? 'chevron-right' : 'chevron-down',\n label: (isHorizontal\n ? ((_c = mergedArrowLabels.end) !== null && _c !== void 0 ? _c : defaultArrowLabels.end)\n : ((_d = mergedArrowLabels.bottom) !== null && _d !== void 0 ? _d : defaultArrowLabels.bottom)),\n step: scrollStep,\n },\n ];\n return { arrows };\n};\n//# sourceMappingURL=useScrollViewArrows.js.map","import classNames from 'classnames';\nimport { useClassNamePrefix } from \"../../hooks/index.js\";\nimport { SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } from \"./constants.js\";\nexport const useScrollViewStyleProps = ({ direction, isScrollbarDisabled, isScrolledAtEnd, isScrolledAtStart, overflowDecorators = SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR, }) => {\n const scrollViewRootClass = useClassNamePrefix('ScrollView');\n const scrollViewRootDirectionClass = `${scrollViewRootClass}--${direction}`;\n const scrollViewRootScrollbarDisabledClass = `${scrollViewRootClass}--scrollbarDisabled`;\n const scrollViewViewportClass = `${scrollViewRootClass}__viewport`;\n const scrollViewContentClass = `${scrollViewRootClass}__content`;\n const scrollViewOverflowDecoratorsClass = `${scrollViewRootClass}__overflowDecorators`;\n const scrollViewRootOverflowDecoratorsClasses = {\n shadows: `${scrollViewOverflowDecoratorsClass}--shadows`,\n borders: `${scrollViewOverflowDecoratorsClass}--borders`,\n both: classNames(`${scrollViewOverflowDecoratorsClass}--shadows`, `${scrollViewOverflowDecoratorsClass}--borders`),\n };\n const scrollViewRootOverflowDecoratorsClass = scrollViewRootOverflowDecoratorsClasses[overflowDecorators];\n const scrollViewAtStartClass = 'is-scrolled-at-start';\n const scrollViewAtEndClass = 'is-scrolled-at-end';\n const scrollViewArrowsClass = `${scrollViewRootClass}__arrows`;\n return {\n classProps: {\n root: classNames(scrollViewRootClass, scrollViewRootDirectionClass, {\n [scrollViewRootScrollbarDisabledClass]: isScrollbarDisabled,\n [scrollViewAtEndClass]: isScrolledAtEnd,\n [scrollViewAtStartClass]: isScrolledAtStart,\n }),\n viewport: scrollViewViewportClass,\n content: scrollViewContentClass,\n overflowDecorators: classNames(scrollViewOverflowDecoratorsClass, scrollViewRootOverflowDecoratorsClass),\n arrows: scrollViewArrowsClass,\n },\n };\n};\n//# sourceMappingURL=useScrollViewStyleProps.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 { isDirectionHorizontal } from \"../../constants/index.js\";\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { mergeStyleProps } from \"../../utils/index.js\";\nimport { ControlButton } from \"../ControlButton/index.js\";\nimport { Icon } from \"../Icon/index.js\";\nimport { useScrollCallback } from \"./useScrollCallback.js\";\nimport { useScrollViewArrows } from \"./useScrollViewArrows.js\";\nimport { useScrollViewStyleProps } from \"./useScrollViewStyleProps.js\";\nconst ScrollViewArrows = (props) => {\n const { ariaLabelArrows, direction, scrollStep, viewportRef } = props, restProps = __rest(props, [\"ariaLabelArrows\", \"direction\", \"scrollStep\", \"viewportRef\"]);\n const { classProps } = useScrollViewStyleProps({\n direction,\n });\n const { styleProps, props: otherProps } = useStyleProps(restProps);\n const mergedStyleProps = mergeStyleProps('button', { classProps: classProps.arrows, styleProps });\n const isHorizontal = isDirectionHorizontal(direction);\n const { arrows } = useScrollViewArrows(isHorizontal, ariaLabelArrows, scrollStep);\n const { handleScroll } = useScrollCallback({ viewportRef, direction });\n return (React.createElement(\"div\", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (React.createElement(ControlButton, { key: icon, \"aria-label\": label, onClick: () => handleScroll(step), size: \"small\", isSymmetrical: true },\n React.createElement(Icon, { name: icon }))))));\n};\nScrollViewArrows.spiritComponent = 'ScrollViewArrows';\nexport default ScrollViewArrows;\n//# sourceMappingURL=ScrollViewArrows.js.map","'use client';\nimport { useCallback, useEffect, useState } from 'react';\nimport { Position, isDirectionHorizontal } from \"../../constants/index.js\";\nimport { useResizeObserver } from \"../../hooks/index.js\";\nimport { debounce } from \"../../utils/index.js\";\nimport { DEBOUNCE_DELAY, EDGE_DETECTION_INACCURACY_PX } from \"./constants.js\";\nexport const useScrollPosition = ({ viewportReference, contentReference, direction, }) => {\n const [isScrolledAtStart, setScrolledStart] = useState(false);\n const [isScrolledAtEnd, setScrolledAtEnd] = useState(false);\n const getElementsPositionDifference = () => {\n if (!(contentReference.current && viewportReference.current)) {\n return null;\n }\n const contentPosition = contentReference.current.getBoundingClientRect();\n const viewportPosition = viewportReference.current.getBoundingClientRect();\n return {\n [Position.BOTTOM]: contentPosition.bottom - viewportPosition.bottom,\n [Position.LEFT]: contentPosition.left - viewportPosition.left,\n [Position.RIGHT]: contentPosition.right - viewportPosition.right,\n [Position.TOP]: contentPosition.top - viewportPosition.top,\n };\n };\n const handleScrollViewState = () => {\n const isHorizontal = isDirectionHorizontal(direction);\n const scrollPositionStart = isHorizontal ? Position.LEFT : Position.TOP;\n const scrollPositionEnd = isHorizontal ? Position.RIGHT : Position.BOTTOM;\n const currentPosition = getElementsPositionDifference();\n if (!currentPosition) {\n return;\n }\n const isScrolledAtStartActive = currentPosition[scrollPositionStart] <= -1 * EDGE_DETECTION_INACCURACY_PX;\n const isScrolledAtEndActive = currentPosition[scrollPositionEnd] >= EDGE_DETECTION_INACCURACY_PX;\n if (isScrolledAtStartActive !== isScrolledAtStart) {\n setScrolledStart(isScrolledAtStartActive);\n }\n if (isScrolledAtEndActive !== isScrolledAtEnd) {\n setScrolledAtEnd(isScrolledAtEndActive);\n }\n };\n const debouncedHandler = useCallback(debounce(handleScrollViewState, DEBOUNCE_DELAY), [handleScrollViewState]);\n useResizeObserver({\n ref: viewportReference,\n onResize: debouncedHandler,\n });\n useEffect(handleScrollViewState, []);\n return {\n isScrolledAtEnd,\n isScrolledAtStart,\n onScroll: debounce(handleScrollViewState, DEBOUNCE_DELAY),\n };\n};\n//# sourceMappingURL=useScrollPosition.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, { useRef } from 'react';\nimport { useStyleProps } from \"../../hooks/index.js\";\nimport { SCROLL_VIEW_DEFAULT_DIRECTION, SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } from \"./constants.js\";\nimport ScrollViewArrows from \"./ScrollViewArrows.js\";\nimport { useScrollPosition } from \"./useScrollPosition.js\";\nimport { useScrollViewStyleProps } from \"./useScrollViewStyleProps.js\";\nconst ScrollView = (props) => {\n const { ariaLabelArrows, arrowsScrollStep = 300, children, direction = SCROLL_VIEW_DEFAULT_DIRECTION, hasArrows = false, isScrollbarDisabled, overflowDecorators = SCROLL_VIEW_DEFAULT_OVERFLOW_DECORATOR } = props, restProps = __rest(props, [\"ariaLabelArrows\", \"arrowsScrollStep\", \"children\", \"direction\", \"hasArrows\", \"isScrollbarDisabled\", \"overflowDecorators\"]);\n const contentReference = useRef(null);\n const viewportReference = useRef(null);\n const { isScrolledAtEnd, isScrolledAtStart, onScroll } = useScrollPosition({\n contentReference,\n direction,\n viewportReference,\n });\n const { classProps } = useScrollViewStyleProps({\n direction,\n isScrollbarDisabled,\n isScrolledAtStart,\n isScrolledAtEnd,\n overflowDecorators,\n });\n const { styleProps, props: transferProps } = useStyleProps(restProps);\n return (React.createElement(\"div\", Object.assign({}, transferProps, styleProps, { className: classNames(classProps.root, styleProps.className) }),\n React.createElement(\"div\", { className: classProps.viewport, onScroll: onScroll, ref: viewportReference, tabIndex: 0 },\n React.createElement(\"div\", { className: classProps.content, ref: contentReference }, children)),\n React.createElement(\"div\", { className: classProps.overflowDecorators, \"aria-hidden\": \"true\" }),\n hasArrows && (React.createElement(ScrollViewArrows, { ariaLabelArrows: ariaLabelArrows, direction: direction, scrollStep: arrowsScrollStep, viewportRef: viewportReference }))));\n};\nScrollView.spiritComponent = 'ScrollView';\nexport default ScrollView;\n//# sourceMappingURL=ScrollView.js.map"],"names":["__rest","this","componentColors","emotionColors","textColors","containers","defaultContext","createContext","DefaultSpacingStyleProp","useContext","useCallback","useRef","useEffect","useState","defaultProps","forwardRef","cssVariablePrefix"],"mappings":";;;;;;;;AAAO,MAAM,YAAY,GAAG;AAC5B,IAEI,UAAU,EAAE,YAAY;AAC5B,CAAC;AAGM,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC,UAAU;;ACNlF,MAAM,OAAO,GAAG,CAAC,SAAS,EAAE,OAAO,KAAK;AACxC,IAAI,IAAI,CAAC,YAAY,EAAE,EAAE;AAIzB,QAAQ,MAAM,IAAI,GAAG,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AAC1C,QAAQ,IAAI,OAAO,OAAO,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,QA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,kBAAkB;AAC1B,KAAK,CAAC;AACN,IAAI,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,aAAa,CAAC,SAAS,CAAC;AACzE,IAAI,QAAQ,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,UAAU,CAAC,IAAI,EAAE,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;AACrJ,QAAQ,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE,CAAC,EAAE;AAC9H,YAAY,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,GAAG,EAAE,gBAAgB,EAAE,EAAE,QAAQ,CAAC,CAAC;AAC3G,QAAQ,KAAK,CAAC,aAAa,CAAC,KAAK,EAAE,EAAE,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE,aAAa,EAAE,MAAM,EAAE,CAAC;AACvG,QAAQ,SAAS,KAAK,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE,EAAE,eAAe,EAAE,eAAe,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,iBAAiB,EAAE,CAAC,CAAC,CAAC;AACvL;AACA,UAAU,CAAC,eAAe,GAAG,YAAY;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
'use client';
|
|
1
2
|
var __rest = (this && this.__rest) || function (s, e) {
|
|
2
3
|
var t = {};
|
|
3
4
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
@@ -15,6 +16,7 @@ import { useStyleProps } from "../../hooks/index.js";
|
|
|
15
16
|
import { mergeStyleProps } from "../../utils/index.js";
|
|
16
17
|
import { ControlButton } from "../ControlButton/index.js";
|
|
17
18
|
import { Icon } from "../Icon/index.js";
|
|
19
|
+
import { useScrollCallback } from "./useScrollCallback.js";
|
|
18
20
|
import { useScrollViewArrows } from "./useScrollViewArrows.js";
|
|
19
21
|
import { useScrollViewStyleProps } from "./useScrollViewStyleProps.js";
|
|
20
22
|
const ScrollViewArrows = (props) => {
|
|
@@ -26,14 +28,7 @@ const ScrollViewArrows = (props) => {
|
|
|
26
28
|
const mergedStyleProps = mergeStyleProps('button', { classProps: classProps.arrows, styleProps });
|
|
27
29
|
const isHorizontal = isDirectionHorizontal(direction);
|
|
28
30
|
const { arrows } = useScrollViewArrows(isHorizontal, ariaLabelArrows, scrollStep);
|
|
29
|
-
const handleScroll = (
|
|
30
|
-
var _a;
|
|
31
|
-
const scrollToDirection = isHorizontal ? 'left' : 'top';
|
|
32
|
-
(_a = viewportRef.current) === null || _a === void 0 ? void 0 : _a.scrollBy({
|
|
33
|
-
[scrollToDirection]: step,
|
|
34
|
-
behavior: 'smooth',
|
|
35
|
-
});
|
|
36
|
-
};
|
|
31
|
+
const { handleScroll } = useScrollCallback({ viewportRef, direction });
|
|
37
32
|
return (React.createElement("div", Object.assign({}, otherProps, mergedStyleProps), arrows.map(({ icon, label, step }) => (React.createElement(ControlButton, { key: icon, "aria-label": label, onClick: () => handleScroll(step), size: "small", isSymmetrical: true },
|
|
38
33
|
React.createElement(Icon, { name: icon }))))));
|
|
39
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollViewArrows.js","sourceRoot":"","sources":["../../../src/components/ScrollView/ScrollViewArrows.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollViewArrows.js","sourceRoot":"","sources":["../../../src/components/ScrollView/ScrollViewArrows.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;AAEb,OAAO,KA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,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACrC,oBAAC,aAAa,IAAC,GAAG,EAAE,IAAI,gBAAc,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,IAAI,EAAC,OAAO,EAAC,aAAa;QACxG,oBAAC,IAAI,IAAC,IAAI,EAAE,IAAI,GAAI,CACN,CACjB,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,eAAe,GAAG,kBAAkB,CAAC;AAEtD,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export declare const DEBOUNCE_DELAY = 50;
|
|
2
2
|
export declare const EDGE_DETECTION_INACCURACY_PX = 1;
|
|
3
|
+
export declare const SCROLL_CANCEL_DELAY = 10;
|
|
3
4
|
export declare const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = "Scroll right";
|
|
4
5
|
export declare const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = "Scroll left";
|
|
5
6
|
export declare const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = "Scroll down";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Direction } from "../../constants/index.js";
|
|
2
2
|
export const DEBOUNCE_DELAY = 50;
|
|
3
3
|
export const EDGE_DETECTION_INACCURACY_PX = 1;
|
|
4
|
+
export const SCROLL_CANCEL_DELAY = 10;
|
|
4
5
|
export const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_END = 'Scroll right';
|
|
5
6
|
export const SCROLL_VIEW_ARROWS_LABEL_HORIZONTAL_START = 'Scroll left';
|
|
6
7
|
export const SCROLL_VIEW_ARROWS_LABEL_VERTICAL_END = 'Scroll down';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ScrollView/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,uCAAuC,GAAG,cAAc,CAAC;AACtE,MAAM,CAAC,MAAM,yCAAyC,GAAG,aAAa,CAAC;AACvE,MAAM,CAAC,MAAM,qCAAqC,GAAG,aAAa,CAAC;AACnE,MAAM,CAAC,MAAM,uCAAuC,GAAG,WAAW,CAAC;AACnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,SAAS,CAAC,QAAQ,CAAC;AAChE,MAAM,CAAC,MAAM,sCAAsC,GAAG,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../src/components/ScrollView/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAE5C,MAAM,CAAC,MAAM,cAAc,GAAG,EAAE,CAAC;AACjC,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,mBAAmB,GAAG,EAAE,CAAC;AACtC,MAAM,CAAC,MAAM,uCAAuC,GAAG,cAAc,CAAC;AACtE,MAAM,CAAC,MAAM,yCAAyC,GAAG,aAAa,CAAC;AACvE,MAAM,CAAC,MAAM,qCAAqC,GAAG,aAAa,CAAC;AACnE,MAAM,CAAC,MAAM,uCAAuC,GAAG,WAAW,CAAC;AACnE,MAAM,CAAC,MAAM,6BAA6B,GAAG,SAAS,CAAC,QAAQ,CAAC;AAChE,MAAM,CAAC,MAAM,sCAAsC,GAAG,SAAS,CAAC"}
|
|
@@ -2,5 +2,6 @@ export { default as ScrollView } from './ScrollView';
|
|
|
2
2
|
export { default as ScrollViewArrows } from './ScrollViewArrows';
|
|
3
3
|
export * from './constants';
|
|
4
4
|
export * from './useScrollPosition';
|
|
5
|
+
export * from './useScrollCallback';
|
|
5
6
|
export * from './useScrollViewArrows';
|
|
6
7
|
export * from './useScrollViewStyleProps';
|
|
@@ -2,6 +2,7 @@ export { default as ScrollView } from "./ScrollView.js";
|
|
|
2
2
|
export { default as ScrollViewArrows } from "./ScrollViewArrows.js";
|
|
3
3
|
export * from "./constants.js";
|
|
4
4
|
export * from "./useScrollPosition.js";
|
|
5
|
+
export * from "./useScrollCallback.js";
|
|
5
6
|
export * from "./useScrollViewArrows.js";
|
|
6
7
|
export * from "./useScrollViewStyleProps.js";
|
|
7
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ScrollView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ScrollView/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AACrD,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACjE,cAAc,aAAa,CAAC;AAC5B,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type MutableRefObject } from 'react';
|
|
2
|
+
import { type ScrollViewArrowsScrollStepType, type ScrollViewDirectionType } from '../../types';
|
|
3
|
+
export interface UseScrollCallbackProps {
|
|
4
|
+
viewportRef: MutableRefObject<HTMLDivElement | null>;
|
|
5
|
+
direction: ScrollViewDirectionType;
|
|
6
|
+
}
|
|
7
|
+
export interface UseScrollCallbackReturn {
|
|
8
|
+
handleScroll: (step: ScrollViewArrowsScrollStepType) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const useScrollCallback: ({ viewportRef, direction }: UseScrollCallbackProps) => UseScrollCallbackReturn;
|