@kaizen/components 0.0.0-canary-update-floating-fms-20250715035144 → 0.0.0-canary-handle-avatar-error-20250716233812
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/dist/cjs/alpha.cjs +4 -0
- package/dist/cjs/src/Avatar/Avatar.cjs +3 -2
- package/dist/cjs/src/Button/Button/Button.cjs +5 -0
- package/dist/cjs/src/Button/IconButton/IconButton.cjs +5 -0
- package/dist/cjs/src/Filter/FilterMultiSelect/FilterMultiSelect.cjs +3 -7
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.cjs +1 -1
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss.cjs +9 -0
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.cjs +2 -1
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.cjs +38 -69
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/{MenuPopup.module.css.cjs → MenuPopup.module.scss.cjs} +1 -1
- package/dist/cjs/src/LikertScaleLegacy/LikertScaleLegacy.cjs +3 -0
- package/dist/cjs/src/Modal/GenericModal/GenericModal.cjs +11 -1
- package/dist/cjs/src/Skirt/Skirt.cjs +3 -0
- package/dist/cjs/src/Skirt/subcomponents/SkirtCard/SkirtCard.cjs +4 -0
- package/dist/cjs/src/SplitButton/SplitButton.cjs +2 -0
- package/dist/cjs/src/TitleBlockZen/TitleBlockZen.cjs +3 -0
- package/dist/cjs/src/__alpha__/SingleSelect/SingleSelect.cjs +32 -0
- package/dist/cjs/src/__alpha__/SingleSelect/SingleSelect.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/List/List.cjs +24 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/List/List.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.cjs +24 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.cjs +25 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css.cjs +6 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.cjs +21 -0
- package/dist/cjs/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css.cjs +6 -0
- package/dist/esm/alpha.mjs +1 -0
- package/dist/esm/src/Avatar/Avatar.mjs +3 -2
- package/dist/esm/src/Button/Button/Button.mjs +5 -0
- package/dist/esm/src/Button/IconButton/IconButton.mjs +5 -0
- package/dist/esm/src/Filter/FilterMultiSelect/FilterMultiSelect.mjs +3 -7
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.mjs +1 -1
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss.mjs +7 -0
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs +2 -1
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.mjs +41 -70
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss.mjs +4 -0
- package/dist/esm/src/LikertScaleLegacy/LikertScaleLegacy.mjs +3 -0
- package/dist/esm/src/Modal/GenericModal/GenericModal.mjs +11 -1
- package/dist/esm/src/Skirt/Skirt.mjs +3 -0
- package/dist/esm/src/Skirt/subcomponents/SkirtCard/SkirtCard.mjs +4 -0
- package/dist/esm/src/SplitButton/SplitButton.mjs +2 -0
- package/dist/esm/src/TitleBlockZen/TitleBlockZen.mjs +3 -0
- package/dist/esm/src/__alpha__/SingleSelect/SingleSelect.mjs +27 -0
- package/dist/esm/src/__alpha__/SingleSelect/SingleSelect.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/List/List.mjs +18 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/List/List.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.mjs +18 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.mjs +19 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css.mjs +4 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.mjs +13 -0
- package/dist/esm/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css.mjs +4 -0
- package/dist/styles.css +81 -29
- package/dist/types/Button/Button/Button.d.ts +5 -0
- package/dist/types/Button/IconButton/IconButton.d.ts +5 -0
- package/dist/types/Filter/FilterMultiSelect/FilterMultiSelect.d.ts +1 -1
- package/dist/types/Filter/FilterMultiSelect/_docs/MockData.d.ts +0 -1
- package/dist/types/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.d.ts +4 -11
- package/dist/types/LikertScaleLegacy/LikertScaleLegacy.d.ts +3 -0
- package/dist/types/Skirt/Skirt.d.ts +3 -0
- package/dist/types/Skirt/subcomponents/SkirtCard/SkirtCard.d.ts +3 -0
- package/dist/types/SplitButton/SplitButton.d.ts +2 -0
- package/dist/types/TitleBlockZen/TitleBlockZen.d.ts +3 -0
- package/dist/types/__alpha__/SingleSelect/SingleSelect.d.ts +23 -0
- package/dist/types/__alpha__/SingleSelect/_docs/mockData.d.ts +59 -0
- package/dist/types/__alpha__/SingleSelect/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/List/List.d.ts +6 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/List/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.d.ts +6 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListItem/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.d.ts +8 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/ListSection/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/Trigger/index.d.ts +1 -0
- package/dist/types/__alpha__/SingleSelect/subcomponents/index.d.ts +4 -0
- package/dist/types/__alpha__/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/Avatar/Avatar.tsx +5 -2
- package/src/Avatar/_docs/Avatar.stickersheet.stories.tsx +2 -2
- package/src/Button/Button/Button.tsx +5 -0
- package/src/Button/IconButton/IconButton.tsx +5 -0
- package/src/Filter/FilterBar/subcomponents/FilterBarMultiSelect/FilterBarMultiSelect.spec.tsx +0 -1
- package/src/Filter/FilterMultiSelect/FilterMultiSelect.tsx +2 -3
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +0 -10
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.stories.tsx +1 -178
- package/src/Filter/FilterMultiSelect/_docs/MockData.ts +0 -39
- package/src/Filter/FilterMultiSelect/context/MenuTriggerProvider/MenuTriggerProvider.spec.tsx +18 -2
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.scss +25 -0
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.tsx +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.tsx +1 -1
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.scss +24 -0
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.tsx +42 -89
- package/src/LikertScaleLegacy/LikertScaleLegacy.tsx +3 -0
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.mdx +3 -2
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stickersheet.stories.tsx +1 -1
- package/src/LikertScaleLegacy/_docs/LikertScaleLegacy.stories.tsx +1 -1
- package/src/Modal/GenericModal/GenericModal.tsx +18 -1
- package/src/Skirt/Skirt.tsx +4 -0
- package/src/Skirt/_docs/Skirt.mdx +3 -1
- package/src/Skirt/_docs/Skirt.stories.tsx +1 -1
- package/src/Skirt/subcomponents/SkirtCard/SkirtCard.tsx +4 -0
- package/src/SplitButton/SplitButton.tsx +2 -0
- package/src/SplitButton/_docs/SplitButton.mdx +3 -1
- package/src/SplitButton/_docs/SplitButton.stickersheet.stories.tsx +1 -1
- package/src/SplitButton/_docs/SplitButton.stories.tsx +1 -1
- package/src/TitleBlockZen/TitleBlockZen.tsx +3 -0
- package/src/TitleBlockZen/_docs/TitleBlockZen.mdx +3 -2
- package/src/__alpha__/SingleSelect/SingleSelect.module.css +9 -0
- package/src/__alpha__/SingleSelect/SingleSelect.spec.tsx +26 -0
- package/src/__alpha__/SingleSelect/SingleSelect.tsx +27 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.mdx +27 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.stickersheet.stories.tsx +83 -0
- package/src/__alpha__/SingleSelect/_docs/SingleSelect.stories.tsx +23 -0
- package/src/__alpha__/SingleSelect/_docs/mockData.ts +92 -0
- package/src/__alpha__/SingleSelect/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/List.module.css +7 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/List.tsx +17 -0
- package/src/__alpha__/SingleSelect/subcomponents/List/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.module.css +9 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/ListItem.tsx +17 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListItem/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.module.css +9 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/ListSection.tsx +23 -0
- package/src/__alpha__/SingleSelect/subcomponents/ListSection/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.module.css +18 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/Trigger.tsx +13 -0
- package/src/__alpha__/SingleSelect/subcomponents/Trigger/index.ts +1 -0
- package/src/__alpha__/SingleSelect/subcomponents/index.ts +4 -0
- package/src/__alpha__/index.ts +1 -0
- package/src/__next__/Button/_docs/Button--api-specification.mdx +6 -0
- package/src/__next__/Button/_docs/Button.docs.stories.tsx +29 -0
- package/src/__next__/Menu/_docs/Menu--api-specification.mdx +6 -0
- package/src/__next__/Menu/_docs/Menu.stories.tsx +29 -0
- package/src/__next__/Tabs/subcomponents/TabList/TabList.module.css +3 -1
- package/dist/cjs/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.css.cjs +0 -9
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.css.mjs +0 -7
- package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.css.mjs +0 -4
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelectReportsTest.stories.tsx +0 -328
- package/src/Filter/FilterMultiSelect/subcomponents/ListBox/ListBox.module.css +0 -22
- package/src/Filter/FilterMultiSelect/subcomponents/MenuPopup/MenuPopup.module.css +0 -22
package/dist/esm/src/Filter/FilterMultiSelect/subcomponents/ListBoxSection/ListBoxSection.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { __rest } from 'tslib';
|
|
2
2
|
import React, { useId } from 'react';
|
|
3
|
+
import { VisuallyHidden } from '../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
3
4
|
import styles from './ListBoxSection.module.scss.mjs';
|
|
4
5
|
const ListBoxSection = /*#__PURE__*/function () {
|
|
5
6
|
const ListBoxSection = function (_a) {
|
|
@@ -20,7 +21,7 @@ const ListBoxSection = /*#__PURE__*/function () {
|
|
|
20
21
|
className: styles.listBoxSectionHeader,
|
|
21
22
|
id: listSectionId,
|
|
22
23
|
role: "presentation"
|
|
23
|
-
}, restProps.sectionHeader)), Array.from(items).map(function (node) {
|
|
24
|
+
}, sectionName && /*#__PURE__*/React.createElement(VisuallyHidden, null, sectionName, ". "), restProps.sectionHeader)), Array.from(items).map(function (node) {
|
|
24
25
|
return node != undefined && children(node);
|
|
25
26
|
})));
|
|
26
27
|
};
|
|
@@ -1,79 +1,50 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import React
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import { FocusOn } from 'react-focus-on';
|
|
1
|
+
import { __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { FocusScope } from '@react-aria/focus';
|
|
4
|
+
import { useOverlay, DismissButton } from '@react-aria/overlays';
|
|
6
5
|
import { useMenuTriggerContext } from '../../context/MenuTriggerProvider/MenuTriggerProvider.mjs';
|
|
7
6
|
import '../../context/SelectionProvider/SelectionProvider.mjs';
|
|
8
|
-
import styles from './MenuPopup.module.
|
|
7
|
+
import styles from './MenuPopup.module.scss.mjs';
|
|
9
8
|
const MenuPopup = /*#__PURE__*/function () {
|
|
10
9
|
const MenuPopup = function (_a) {
|
|
11
|
-
var
|
|
12
|
-
_b = _a.floatingConfig,
|
|
13
|
-
floatingConfig = _b === void 0 ? {
|
|
14
|
-
placement: 'bottom-start',
|
|
15
|
-
strategy: 'absolute',
|
|
16
|
-
whileElementsMounted: autoUpdate
|
|
17
|
-
} : _b,
|
|
18
|
-
classNameOverride = _a.classNameOverride,
|
|
19
|
-
isLoading = _a.isLoading,
|
|
10
|
+
var isLoading = _a.isLoading,
|
|
20
11
|
loadingSkeleton = _a.loadingSkeleton,
|
|
21
|
-
|
|
22
|
-
var
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
var _d = useMenuTriggerContext(),
|
|
26
|
-
menuTriggerState = _d.menuTriggerState,
|
|
27
|
-
buttonRef = _d.buttonRef;
|
|
28
|
-
var referenceElement = buttonRef.current;
|
|
29
|
-
var _e = useFloating(__assign({
|
|
30
|
-
elements: {
|
|
31
|
-
reference: referenceElement,
|
|
32
|
-
floating: floatingElement
|
|
33
|
-
},
|
|
34
|
-
middleware: [offset(6), floatingConfig.shouldFlip && autoPlacement({
|
|
35
|
-
allowedPlacements: ['bottom-start', 'top-start']
|
|
36
|
-
}), floatingConfig.shouldResize && size({
|
|
37
|
-
apply: function (_a) {
|
|
38
|
-
var availableHeight = _a.availableHeight,
|
|
39
|
-
elements = _a.elements;
|
|
40
|
-
Object.assign(elements.floating.style, {
|
|
41
|
-
maxHeight: Math.max(250, Math.min(availableHeight - 12, 500)) + 'px'
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
})]
|
|
45
|
-
}, floatingConfig)),
|
|
46
|
-
floatingStyles = _e.floatingStyles,
|
|
47
|
-
update = _e.update;
|
|
48
|
-
var handleReturnFocus = function () {
|
|
49
|
-
requestAnimationFrame(function () {
|
|
50
|
-
var _a;
|
|
51
|
-
(_a = buttonRef.current) === null || _a === void 0 ? void 0 : _a.focus();
|
|
52
|
-
});
|
|
12
|
+
children = _a.children;
|
|
13
|
+
var menuTriggerState = useMenuTriggerContext().menuTriggerState;
|
|
14
|
+
var onClose = function () {
|
|
15
|
+
return menuTriggerState.close();
|
|
53
16
|
};
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
17
|
+
// Handle events that should cause the menu to close,
|
|
18
|
+
// e.g. blur, clicking outside, or pressing the escape key.
|
|
19
|
+
var overlayRef = /*#__PURE__*/React.createRef();
|
|
20
|
+
var overlayProps = useOverlay({
|
|
21
|
+
onClose: onClose,
|
|
22
|
+
isOpen: menuTriggerState.isOpen,
|
|
23
|
+
isDismissable: true
|
|
24
|
+
}, overlayRef).overlayProps;
|
|
25
|
+
// Wrap in <FocusScope> so that focus is restored back to the trigger when the menu is closed
|
|
26
|
+
// and auto focus on the first focusable item after loading. (disable eslint no-autofocus error for it)
|
|
27
|
+
// In addition, add hidden <DismissButton> components at the start and end of the list
|
|
28
|
+
// to allow screen reader users to dismiss the popup easily.
|
|
29
|
+
return menuTriggerState.isOpen ? (/*#__PURE__*/React.createElement("div", __assign({}, overlayProps, {
|
|
30
|
+
ref: overlayRef,
|
|
31
|
+
className: styles.menuPopup
|
|
32
|
+
}), isLoading && loadingSkeleton ? (/*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DismissButton, {
|
|
33
|
+
onDismiss: onClose
|
|
34
|
+
}), loadingSkeleton, /*#__PURE__*/React.createElement(DismissButton, {
|
|
35
|
+
onDismiss: onClose
|
|
36
|
+
}))) : (
|
|
37
|
+
/*#__PURE__*/
|
|
38
|
+
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
39
|
+
React.createElement(FocusScope, {
|
|
40
|
+
contain: true,
|
|
41
|
+
autoFocus: true,
|
|
42
|
+
restoreFocus: true
|
|
43
|
+
}, /*#__PURE__*/React.createElement(DismissButton, {
|
|
44
|
+
onDismiss: onClose
|
|
45
|
+
}), children, /*#__PURE__*/React.createElement(DismissButton, {
|
|
46
|
+
onDismiss: onClose
|
|
47
|
+
}))))) : (/*#__PURE__*/React.createElement(React.Fragment, null));
|
|
77
48
|
};
|
|
78
49
|
MenuPopup.displayName = 'FilterMultiSelect.MenuPopup';
|
|
79
50
|
return MenuPopup;
|
|
@@ -13,6 +13,9 @@ var SelectedItemIcon = function () {
|
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
15
|
/**
|
|
16
|
+
* @deprecated This component will be renamed to LikertScale in v2.
|
|
17
|
+
* Start importing as LikertScale instead.
|
|
18
|
+
*
|
|
16
19
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082060201/Likert+Scale Guidance} |
|
|
17
20
|
* {@link https://cultureamp.design/?path=/docs/components-likertscalelegacy--docs Storybook}
|
|
18
21
|
*/
|
|
@@ -3,6 +3,7 @@ import { createPortal } from 'react-dom';
|
|
|
3
3
|
import { Transition } from '@headlessui/react';
|
|
4
4
|
import classnames from 'classnames';
|
|
5
5
|
import FocusLock from 'react-focus-lock';
|
|
6
|
+
import { useIsClientReady } from '../../utils/useIsClientReady/useIsClientReady.mjs';
|
|
6
7
|
import { warn } from '../util/console.mjs';
|
|
7
8
|
import { ModalContext } from './context/ModalContext.mjs';
|
|
8
9
|
import styles from './GenericModal.module.scss.mjs';
|
|
@@ -22,6 +23,7 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
22
23
|
var id = propsId !== null && propsId !== void 0 ? propsId : reactId;
|
|
23
24
|
var labelledByID = useId();
|
|
24
25
|
var describedByID = useId();
|
|
26
|
+
var isClientReady = useIsClientReady();
|
|
25
27
|
var _c = useState(null),
|
|
26
28
|
scrollLayer = _c[0],
|
|
27
29
|
setScrollLayer = _c[1];
|
|
@@ -43,6 +45,7 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
43
45
|
}
|
|
44
46
|
};
|
|
45
47
|
var focusOnAccessibleLabel = function () {
|
|
48
|
+
if (!isClientReady) return;
|
|
46
49
|
// Check if focus already exists within the modal
|
|
47
50
|
if (modalLayer === null || modalLayer === void 0 ? void 0 : modalLayer.contains(document.activeElement)) {
|
|
48
51
|
return;
|
|
@@ -51,6 +54,7 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
51
54
|
labelElement === null || labelElement === void 0 ? void 0 : labelElement.focus();
|
|
52
55
|
};
|
|
53
56
|
var a11yWarn = function () {
|
|
57
|
+
if (!isClientReady) return;
|
|
54
58
|
// Ensure that consumers have provided an element that labels the modal
|
|
55
59
|
// to meet ARIA accessibility guidelines.
|
|
56
60
|
if (!document.getElementById(labelledByID)) {
|
|
@@ -59,6 +63,7 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
59
63
|
};
|
|
60
64
|
var preventBodyScroll = function () {
|
|
61
65
|
var _a;
|
|
66
|
+
if (!isClientReady) return;
|
|
62
67
|
var hasScrollbar = window.innerWidth > document.documentElement.clientWidth;
|
|
63
68
|
var scrollStyles = [styles.unscrollable];
|
|
64
69
|
if (hasScrollbar) {
|
|
@@ -81,11 +86,12 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
81
86
|
}, [onEscapeKeyup]);
|
|
82
87
|
var onBeforeEnterHandler = function () {
|
|
83
88
|
preventBodyScroll();
|
|
84
|
-
if (onEscapeKeyup) {
|
|
89
|
+
if (onEscapeKeyup && isClientReady) {
|
|
85
90
|
document.addEventListener('keyup', escapeKeyHandler);
|
|
86
91
|
}
|
|
87
92
|
};
|
|
88
93
|
var cleanUpAfterClose = function () {
|
|
94
|
+
if (!isClientReady) return;
|
|
89
95
|
document.documentElement.classList.remove(styles.unscrollable, styles.pseudoScrollbar);
|
|
90
96
|
if (onEscapeKeyup) {
|
|
91
97
|
document.removeEventListener('keyup', escapeKeyHandler);
|
|
@@ -103,6 +109,10 @@ const GenericModal = /*#__PURE__*/function () {
|
|
|
103
109
|
cleanUpAfterClose();
|
|
104
110
|
propsOnAfterLeave === null || propsOnAfterLeave === void 0 ? void 0 : propsOnAfterLeave();
|
|
105
111
|
};
|
|
112
|
+
// Don't render portal during SSR
|
|
113
|
+
if (!isClientReady) {
|
|
114
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
115
|
+
}
|
|
106
116
|
return /*#__PURE__*/createPortal(/*#__PURE__*/React.createElement(Transition, {
|
|
107
117
|
appear: true,
|
|
108
118
|
show: isOpen,
|
|
@@ -8,6 +8,9 @@ import styles from './Skirt.module.scss.mjs';
|
|
|
8
8
|
var spacing = 24;
|
|
9
9
|
var maxHeight = 222;
|
|
10
10
|
var fallbackPercentage = 0.8;
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated This component will be removed in v2. Please remove any usages.
|
|
13
|
+
*/
|
|
11
14
|
const Skirt = /*#__PURE__*/function () {
|
|
12
15
|
const Skirt = function (_a) {
|
|
13
16
|
var children = _a.children,
|
|
@@ -3,6 +3,10 @@ import React from 'react';
|
|
|
3
3
|
import classnames from 'classnames';
|
|
4
4
|
import { Card } from '../../../Card/Card.mjs';
|
|
5
5
|
import styles from './SkirtCard.module.scss.mjs';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated This component will be removed in v2. Use a regular Card component instead.
|
|
9
|
+
*/
|
|
6
10
|
const SkirtCard = /*#__PURE__*/function () {
|
|
7
11
|
const SkirtCard = function (props) {
|
|
8
12
|
var classNameOverride = props.classNameOverride,
|
|
@@ -7,6 +7,8 @@ import { DropdownButton } from './subcomponents/DropdownButton/DropdownButton.mj
|
|
|
7
7
|
import styles from './SplitButton.module.scss.mjs';
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated This component will be removed in v2. Use a Button and Menu component instead.
|
|
11
|
+
*
|
|
10
12
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896196/Split+Button Guidance} |
|
|
11
13
|
* {@link https://cultureamp.design/storybook/?path=/docs/components-splitbutton--docs Storybook}
|
|
12
14
|
*/
|
|
@@ -159,6 +159,9 @@ var renderNavigationTabs = function (navigationTabs, collapse, ariaLabel) {
|
|
|
159
159
|
})))));
|
|
160
160
|
};
|
|
161
161
|
/**
|
|
162
|
+
* @deprecated This component will be renamed to TitleBlock in v2.
|
|
163
|
+
* Start importing as TitleBlock instead.
|
|
164
|
+
*
|
|
162
165
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3075605782/Title+Block Guidance} |
|
|
163
166
|
* {@link https://cultureamp.design/?path=/story/components-titleblock--docs Storybook}
|
|
164
167
|
*/
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import { Select, Popover } from 'react-aria-components';
|
|
4
|
+
import { List } from './subcomponents/List/List.mjs';
|
|
5
|
+
import { ListSection } from './subcomponents/ListSection/ListSection.mjs';
|
|
6
|
+
import { ListItem } from './subcomponents/ListItem/ListItem.mjs';
|
|
7
|
+
import { Trigger } from './subcomponents/Trigger/Trigger.mjs';
|
|
8
|
+
import styles from './SingleSelect.module.css.mjs';
|
|
9
|
+
const SingleSelect = /*#__PURE__*/function () {
|
|
10
|
+
const SingleSelect = function (_a) {
|
|
11
|
+
var classNameOverride = _a.classNameOverride,
|
|
12
|
+
children = _a.children,
|
|
13
|
+
restProps = __rest(_a, ["classNameOverride", "children"]);
|
|
14
|
+
return /*#__PURE__*/React.createElement(Select, __assign({
|
|
15
|
+
className: classNameOverride,
|
|
16
|
+
placeholder: ""
|
|
17
|
+
}, restProps), /*#__PURE__*/React.createElement(Trigger, null), /*#__PURE__*/React.createElement(Popover, {
|
|
18
|
+
className: styles.popover
|
|
19
|
+
}, children));
|
|
20
|
+
};
|
|
21
|
+
SingleSelect.displayName = 'SingleSelect';
|
|
22
|
+
SingleSelect.List = List;
|
|
23
|
+
SingleSelect.ListItem = ListItem;
|
|
24
|
+
SingleSelect.ListSection = ListSection;
|
|
25
|
+
return SingleSelect;
|
|
26
|
+
}();
|
|
27
|
+
export { SingleSelect };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { ListBox } from 'react-aria-components';
|
|
5
|
+
import styles from './List.module.css.mjs';
|
|
6
|
+
const List = /*#__PURE__*/function () {
|
|
7
|
+
const List = function (_a) {
|
|
8
|
+
var children = _a.children,
|
|
9
|
+
className = _a.className,
|
|
10
|
+
props = __rest(_a, ["children", "className"]);
|
|
11
|
+
return /*#__PURE__*/React.createElement(ListBox, __assign({
|
|
12
|
+
className: classnames(styles.list, className)
|
|
13
|
+
}, props), children);
|
|
14
|
+
};
|
|
15
|
+
List.displayName = 'SingleSelect.List';
|
|
16
|
+
return List;
|
|
17
|
+
}();
|
|
18
|
+
export { List };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { ListBoxItem } from 'react-aria-components';
|
|
5
|
+
import styles from './ListItem.module.css.mjs';
|
|
6
|
+
const ListItem = /*#__PURE__*/function () {
|
|
7
|
+
const ListItem = function (_a) {
|
|
8
|
+
var children = _a.children,
|
|
9
|
+
className = _a.className,
|
|
10
|
+
props = __rest(_a, ["children", "className"]);
|
|
11
|
+
return /*#__PURE__*/React.createElement(ListBoxItem, __assign({
|
|
12
|
+
className: classnames(styles.listItem, className)
|
|
13
|
+
}, props), children);
|
|
14
|
+
};
|
|
15
|
+
ListItem.displayName = 'SingleSelect.ListItem';
|
|
16
|
+
return ListItem;
|
|
17
|
+
}();
|
|
18
|
+
export { ListItem };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { __rest, __assign } from 'tslib';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import classnames from 'classnames';
|
|
4
|
+
import { ListBoxSection, Header } from 'react-aria-components';
|
|
5
|
+
import styles from './ListSection.module.css.mjs';
|
|
6
|
+
const ListSection = /*#__PURE__*/function () {
|
|
7
|
+
const ListSection = function (_a) {
|
|
8
|
+
var name = _a.name,
|
|
9
|
+
className = _a.className,
|
|
10
|
+
children = _a.children,
|
|
11
|
+
props = __rest(_a, ["name", "className", "children"]);
|
|
12
|
+
return /*#__PURE__*/React.createElement(ListBoxSection, __assign({}, props), /*#__PURE__*/React.createElement(Header, {
|
|
13
|
+
className: classnames(styles.listSectionHeader, className)
|
|
14
|
+
}, name), children);
|
|
15
|
+
};
|
|
16
|
+
ListSection.displayName = 'SingleSelect.ListSection';
|
|
17
|
+
return ListSection;
|
|
18
|
+
}();
|
|
19
|
+
export { ListSection };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Button, SelectValue } from 'react-aria-components';
|
|
3
|
+
import { Icon } from '../../../../__next__/Icon/Icon.mjs';
|
|
4
|
+
import styles from './Trigger.module.css.mjs';
|
|
5
|
+
var Trigger = function () {
|
|
6
|
+
return /*#__PURE__*/React.createElement(Button, {
|
|
7
|
+
className: styles.button
|
|
8
|
+
}, /*#__PURE__*/React.createElement(SelectValue, null), /*#__PURE__*/React.createElement(Icon, {
|
|
9
|
+
name: "keyboard_arrow_down",
|
|
10
|
+
isPresentational: true
|
|
11
|
+
}));
|
|
12
|
+
};
|
|
13
|
+
export { Trigger };
|
package/dist/styles.css
CHANGED
|
@@ -1,4 +1,61 @@
|
|
|
1
1
|
@layer tokens, normalize, reset, kz-components;@layer tokens{:root{--theme-key:heart;--animation-easing-function-ease-in-out:cubic-bezier(0.455,0.03,0.515,0.955);--animation-easing-function-ease-in:cubic-bezier(0.55,0.085,0.68,0.53);--animation-easing-function-ease-out:cubic-bezier(0.25,0.46,0.45,0.94);--animation-easing-function-linear:linear;--animation-easing-function-bounce-in:cubic-bezier(0.485,0.155,0.24,1.245);--animation-easing-function-bounce-out:cubic-bezier(0.485,0.155,0.515,0.845);--animation-easing-function-bounce-in-out:cubic-bezier(0.76,-0.245,0.24,1.245);--animation-duration-instant:0ms;--animation-duration-immediate:100ms;--animation-duration-rapid:200ms;--animation-duration-fast:300ms;--animation-duration-slow:400ms;--animation-duration-deliberate:700ms;--border-solid-border-width:2px;--border-solid-border-radius:7px;--border-solid-border-style:solid;--border-solid-border-color:#e1e2ea;--border-solid-border-color-rgb:225,226,234;--border-dashed-border-width:2px;--border-dashed-border-radius:7px;--border-dashed-border-style:dashed;--border-borderless-border-width:2px;--border-borderless-border-radius:7px;--border-borderless-border-style:solid;--border-borderless-border-color:transparent;--border-borderless-border-color-rgb:0,0,0;--border-focus-ring-border-width:2px;--border-focus-ring-border-radius:10px;--border-focus-ring-border-style:solid;--border-width-1:1px;--color-purple-100:#f4edf8;--color-purple-100-rgb:244,237,248;--color-purple-200:#dfc9ea;--color-purple-200-rgb:223,201,234;--color-purple-300:#c9a5dd;--color-purple-300-rgb:201,165,221;--color-purple-400:#ae67b1;--color-purple-400-rgb:174,103,177;--color-purple-500:#844587;--color-purple-500-rgb:132,69,135;--color-purple-600:#5f3361;--color-purple-600-rgb:95,51,97;--color-purple-700:#4a234d;--color-purple-700-rgb:74,35,77;--color-purple-800:#2f2438;--color-purple-800-rgb:47,36,56;--color-blue-100:#e6f6ff;--color-blue-100-rgb:230,246,255;--color-blue-200:#bde2f5;--color-blue-200-rgb:189,226,245;--color-blue-300:#73c0e8;--color-blue-300-rgb:115,192,232;--color-blue-400:#008bd6;--color-blue-400-rgb:0,139,214;--color-blue-500:#0168b3;--color-blue-500-rgb:1,104,179;--color-blue-600:#004970;--color-blue-600-rgb:0,73,112;--color-blue-700:#003157;--color-blue-700-rgb:0,49,87;--color-green-100:#e8f8f4;--color-green-100-rgb:232,248,244;--color-green-200:#c4ede2;--color-green-200-rgb:196,237,226;--color-green-300:#8fdbc7;--color-green-300-rgb:143,219,199;--color-green-400:#5dcaad;--color-green-400-rgb:93,202,173;--color-green-500:#3f9a86;--color-green-500-rgb:63,154,134;--color-green-600:#2c7d67;--color-green-600-rgb:44,125,103;--color-green-700:#22594a;--color-green-700-rgb:34,89,74;--color-yellow-100:#fff9e4;--color-yellow-100-rgb:255,249,228;--color-yellow-200:#ffeeb3;--color-yellow-200-rgb:255,238,179;--color-yellow-300:#ffe36e;--color-yellow-300-rgb:255,227,110;--color-yellow-400:#ffca4d;--color-yellow-400-rgb:255,202,77;--color-yellow-500:#ffb600;--color-yellow-500-rgb:255,182,0;--color-yellow-600:#c68600;--color-yellow-600-rgb:198,134,0;--color-yellow-700:#876400;--color-yellow-700-rgb:135,100,0;--color-red-100:#fdeaee;--color-red-100-rgb:253,234,238;--color-red-200:#f9c2cb;--color-red-200-rgb:249,194,203;--color-red-300:#f597a8;--color-red-300-rgb:245,151,168;--color-red-400:#e0707d;--color-red-400-rgb:224,112,125;--color-red-500:#c93b55;--color-red-500-rgb:201,59,85;--color-red-600:#a82433;--color-red-600-rgb:168,36,51;--color-red-700:#6c1e20;--color-red-700-rgb:108,30,32;--color-orange-100:#fff0e8;--color-orange-100-rgb:255,240,232;--color-orange-200:#ffd1b9;--color-orange-200-rgb:255,209,185;--color-orange-300:#ffb08a;--color-orange-300-rgb:255,176,138;--color-orange-400:#ff9461;--color-orange-400-rgb:255,148,97;--color-orange-500:#e96c2f;--color-orange-500-rgb:233,108,47;--color-orange-600:#b74302;--color-orange-600-rgb:183,67,2;--color-orange-700:#903c00;--color-orange-700-rgb:144,60,0;--color-gray-100:#f9f9f9;--color-gray-100-rgb:249,249,249;--color-gray-200:#f4f4f5;--color-gray-200-rgb:244,244,245;--color-gray-300:#eaeaec;--color-gray-300-rgb:234,234,236;--color-gray-400:#cdcdd0;--color-gray-400-rgb:205,205,208;--color-gray-500:#878792;--color-gray-500-rgb:135,135,146;--color-gray-600:#524e56;--color-gray-600-rgb:82,78,86;--color-white:#fff;--color-white-rgb:255,255,255;--color-black:#000;--color-black-rgb:0,0,0;--data-viz-favorable:#7dd5bd;--data-viz-favorable-rgb:125,213,189;--data-viz-unfavorable:#e68d97;--data-viz-unfavorable-rgb:230,141,151;--layout-content-max-width:1392px;--layout-content-max-width-with-sidebar:1080px;--layout-content-side-margin:72px;--layout-mobile-actions-drawer-height:60px;--layout-navigation-bar-height:72px;--layout-breakpoints-medium:768px;--layout-breakpoints-large:1080px;--shadow-small-box-shadow:0 1px 3px 0 rgba(0,0,0,.1),0 3px 16px 0 rgba(0,0,0,.06);--shadow-large-box-shadow:0 3px 9px 0 rgba(0,0,0,.1),0 8px 40px 0 rgba(0,0,0,.08);--spacing-0:0;--spacing-1:.0625rem;--spacing-2:.125rem;--spacing-4:.25rem;--spacing-6:.375rem;--spacing-8:.5rem;--spacing-12:.75rem;--spacing-16:1rem;--spacing-20:1.25rem;--spacing-24:1.5rem;--spacing-32:2rem;--spacing-40:2.5rem;--spacing-48:3rem;--spacing-56:3.5rem;--spacing-64:4rem;--spacing-72:4.5rem;--spacing-80:5rem;--spacing-96:6rem;--spacing-112:7rem;--spacing-128:8rem;--spacing-160:10rem;--spacing-200:12.5rem;--spacing-240:15rem;--spacing-280:17.5rem;--spacing-320:20rem;--spacing-xs:0.375rem;--spacing-sm:0.75rem;--spacing-md:1.5rem;--spacing-lg:2.25rem;--spacing-xl:3rem;--spacing-xxl:3.75rem;--spacing-xxxl:4.5rem;--spacing-xxxxl:5.25rem;--spacing-xxxxxl:6rem;--typography-data-large-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-font-weight:700;--typography-data-large-font-size:5.25rem;--typography-data-large-line-height:5.25rem;--typography-data-large-letter-spacing:normal;--typography-data-large-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-large-units-font-weight:700;--typography-data-large-units-font-size:2.625rem;--typography-data-large-units-line-height:5.25rem;--typography-data-large-units-letter-spacing:normal;--typography-data-medium-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-font-weight:700;--typography-data-medium-font-size:3rem;--typography-data-medium-line-height:5rem;--typography-data-medium-letter-spacing:normal;--typography-data-medium-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-medium-units-font-weight:700;--typography-data-medium-units-font-size:1.5rem;--typography-data-medium-units-line-height:5rem;--typography-data-medium-units-letter-spacing:normal;--typography-data-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-font-weight:700;--typography-data-small-font-size:1.5rem;--typography-data-small-line-height:1.5rem;--typography-data-small-letter-spacing:normal;--typography-data-small-units-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-data-small-units-font-weight:700;--typography-data-small-units-font-size:1.125rem;--typography-data-small-units-line-height:1.5rem;--typography-data-small-units-letter-spacing:normal;--typography-display-0-font-family:"Tiempos Headline",Georgia,serif;--typography-display-0-font-weight:800;--typography-display-0-font-size:4.5rem;--typography-display-0-line-height:5.25rem;--typography-display-0-letter-spacing:0em;--typography-heading-1-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-1-font-weight:500;--typography-heading-1-font-size:2.125rem;--typography-heading-1-line-height:2.625rem;--typography-heading-1-letter-spacing:normal;--typography-heading-2-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-2-font-weight:600;--typography-heading-2-font-size:1.75rem;--typography-heading-2-line-height:2.25rem;--typography-heading-2-letter-spacing:normal;--typography-heading-3-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-3-font-weight:600;--typography-heading-3-font-size:1.375rem;--typography-heading-3-line-height:1.875rem;--typography-heading-3-letter-spacing:normal;--typography-heading-4-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-4-font-weight:600;--typography-heading-4-font-size:1.125rem;--typography-heading-4-line-height:1.5rem;--typography-heading-4-letter-spacing:normal;--typography-heading-5-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-5-font-weight:600;--typography-heading-5-font-size:1rem;--typography-heading-5-line-height:1.5rem;--typography-heading-5-letter-spacing:normal;--typography-heading-6-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-heading-6-font-weight:600;--typography-heading-6-font-size:0.875rem;--typography-heading-6-line-height:1.5rem;--typography-heading-6-letter-spacing:normal;--typography-paragraph-intro-lede-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-intro-lede-font-weight:400;--typography-paragraph-intro-lede-font-size:1.25rem;--typography-paragraph-intro-lede-line-height:1.875rem;--typography-paragraph-intro-lede-letter-spacing:0;--typography-paragraph-intro-lede-max-width:975px;--typography-paragraph-body-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-body-font-weight:400;--typography-paragraph-body-font-size:1rem;--typography-paragraph-body-line-height:1.5rem;--typography-paragraph-body-letter-spacing:normal;--typography-paragraph-body-max-width:780px;--typography-paragraph-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-small-font-weight:400;--typography-paragraph-small-font-size:0.875rem;--typography-paragraph-small-line-height:1.125rem;--typography-paragraph-small-letter-spacing:normal;--typography-paragraph-small-max-width:680px;--typography-paragraph-extra-small-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-paragraph-extra-small-font-weight:400;--typography-paragraph-extra-small-font-size:0.75rem;--typography-paragraph-extra-small-line-height:1.125rem;--typography-paragraph-extra-small-letter-spacing:normal;--typography-paragraph-extra-small-max-width:600px;--typography-paragraph-bold-font-weight:600;--typography-button-primary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-primary-font-weight:500;--typography-button-primary-font-size:1.125rem;--typography-button-primary-line-height:1.5rem;--typography-button-primary-letter-spacing:normal;--typography-button-secondary-font-family:"Inter","Noto Sans",Helvetica,Arial,sans-serif;--typography-button-secondary-font-weight:500;--typography-button-secondary-font-size:1rem;--typography-button-secondary-line-height:1.5rem;--typography-button-secondary-letter-spacing:normal}}@layer normalize{html{text-size-adjust:100%;line-height:1.15}body{margin:0}main{display:block}h1{font-size:2em;margin:.67em 0}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace;font-size:1em}a{background-color:transparent}abbr[title]{border-bottom:none;text-decoration:underline;text-decoration:underline dotted}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}img{border-style:none}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{appearance:auto}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{border-style:none;padding:0}[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring,button:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-decoration{appearance:none}::-webkit-file-upload-button{appearance:auto;font:inherit}details{display:block}summary{display:list-item}template{display:none}[hidden]{display:none}}@layer reset{@font-face{font-family:Tiempos Headline;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-bold.woff)}@font-face{font-family:Tiempos Headline;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/tiempos/tiempos-headline-medium.woff)}@font-face{font-family:Greycliff CF;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-light.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-regular.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-medium.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-demi-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-bold.woff) format("woff")}@font-face{font-family:Greycliff CF;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/greycliff/greycliff-cf-extra-bold.woff) format("woff")}@font-face{font-family:Inter;font-weight:300;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-light.woff)}@font-face{font-family:Inter;font-weight:400;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-regular.woff)}@font-face{font-family:Inter;font-weight:500;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-medium.woff)}@font-face{font-family:Inter;font-weight:600;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-demi-bold.woff)}@font-face{font-family:Inter;font-weight:700;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-bold.woff)}@font-face{font-family:Inter;font-weight:800;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/inter/inter-extra-bold.woff)}@font-face{font-family:IBM Plex Mono;src:url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff2),url(https://d1e7r7b0lb8p4d.cloudfront.net/fonts/ibm-plex-mono/ibm-plex-mono-regular.woff)}}@layer reset{*,:after,:before{border-color:var(--border-solid-border-color,"currentColor");border-style:solid;border-width:0}}
|
|
2
|
+
@layer kz-components {
|
|
3
|
+
.SingleSelect-module_popover__ZjL9n {
|
|
4
|
+
background-color: var(--color-white);
|
|
5
|
+
border-radius: var(--spacing-8);
|
|
6
|
+
padding: var(--spacing-8);
|
|
7
|
+
width: 200px;
|
|
8
|
+
box-shadow: var(--shadow-small-box-shadow);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
@layer kz-components {
|
|
13
|
+
.List-module_list__bbFPn {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: var(--spacing-16);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@layer kz-components {
|
|
21
|
+
.ListSection-module_listSectionHeader__bptHg {
|
|
22
|
+
font-family: var(--typography-heading-5-font-family);
|
|
23
|
+
font-weight: var(--typography-heading-5-font-weight);
|
|
24
|
+
font-size: var(--typography-heading-5-font-size);
|
|
25
|
+
line-height: var(--typography-heading-5-line-height);
|
|
26
|
+
letter-spacing: var(--typography-heading-5-letter-spacing);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
@layer kz-components {
|
|
31
|
+
.ListItem-module_listItem__xGr6A {
|
|
32
|
+
font-family: var(--typography-paragraph-body-font-family);
|
|
33
|
+
font-weight: var(--typography-paragraph-body-font-weight);
|
|
34
|
+
font-size: var(--typography-paragraph-body-font-size);
|
|
35
|
+
line-height: var(--typography-paragraph-body-line-height);
|
|
36
|
+
letter-spacing: var(--typography-paragraph-body-letter-spacing);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@layer kz-components {
|
|
41
|
+
.Trigger-module_button__giSqA {
|
|
42
|
+
display: flex;
|
|
43
|
+
align-items: center;
|
|
44
|
+
justify-content: space-between;
|
|
45
|
+
font-family: var(--typography-paragraph-body-font-family);
|
|
46
|
+
font-weight: var(--typography-paragraph-body-font-weight);
|
|
47
|
+
font-size: var(--typography-paragraph-body-font-size);
|
|
48
|
+
line-height: var(--typography-paragraph-body-line-height);
|
|
49
|
+
letter-spacing: var(--typography-paragraph-body-letter-spacing);
|
|
50
|
+
padding: var(--spacing-12);
|
|
51
|
+
min-height: var(--spacing-48);
|
|
52
|
+
min-width: var(--spacing-200);
|
|
53
|
+
background-color: var(--color-white);
|
|
54
|
+
border-radius: var(--spacing-8);
|
|
55
|
+
border: 1px solid var(--color-gray-500);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
2
59
|
@layer kz-components {
|
|
3
60
|
/*
|
|
4
61
|
* This is taken from the Material Symbols CDN
|
|
@@ -3743,29 +3800,26 @@
|
|
|
3743
3800
|
}
|
|
3744
3801
|
}
|
|
3745
3802
|
|
|
3803
|
+
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3746
3804
|
@layer kz-components {
|
|
3747
|
-
.ListBox-
|
|
3805
|
+
.ListBox-module_listBox__q95MO {
|
|
3748
3806
|
list-style: none;
|
|
3749
|
-
padding: var(--spacing-
|
|
3750
|
-
margin: 0 var(--spacing-
|
|
3807
|
+
padding: var(--spacing-sm, 0.75rem);
|
|
3808
|
+
margin: 0 var(--spacing-sm, 0.75rem) 0 0;
|
|
3751
3809
|
display: grid;
|
|
3752
3810
|
max-height: 22rem;
|
|
3753
3811
|
overflow-y: auto;
|
|
3754
3812
|
}
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
padding-right: var(--spacing-12);
|
|
3813
|
+
.ListBox-module_overflown__wChQA {
|
|
3814
|
+
padding-right: var(--spacing-sm, 0.75rem);
|
|
3758
3815
|
}
|
|
3759
|
-
|
|
3760
|
-
.ListBox-module_hidden__mO-oL {
|
|
3816
|
+
.ListBox-module_hidden__eYdXv {
|
|
3761
3817
|
display: none;
|
|
3762
3818
|
}
|
|
3763
|
-
|
|
3764
|
-
.ListBox-module_noResultsWrapper__RnMj0 {
|
|
3819
|
+
.ListBox-module_noResultsWrapper__WcLRm {
|
|
3765
3820
|
list-style: none;
|
|
3766
3821
|
}
|
|
3767
3822
|
}
|
|
3768
|
-
|
|
3769
3823
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3770
3824
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3771
3825
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -3810,29 +3864,25 @@
|
|
|
3810
3864
|
margin-right: var(--spacing-sm, 0.75rem);
|
|
3811
3865
|
}
|
|
3812
3866
|
}
|
|
3867
|
+
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3868
|
+
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3869
|
+
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3870
|
+
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3813
3871
|
@layer kz-components {
|
|
3814
|
-
.MenuPopup-
|
|
3815
|
-
|
|
3872
|
+
.MenuPopup-module_menuPopup__UVgnP {
|
|
3873
|
+
position: absolute;
|
|
3816
3874
|
z-index: 1000;
|
|
3817
3875
|
box-sizing: border-box;
|
|
3818
|
-
background: var(--color-white);
|
|
3819
|
-
color: var(--color-purple-800);
|
|
3820
|
-
border-radius: var(--border-solid-border-radius);
|
|
3821
|
-
box-shadow: var(--shadow-large-box-shadow);
|
|
3822
|
-
padding: var(--spacing-
|
|
3823
|
-
margin-top: var(--spacing-
|
|
3876
|
+
background: var(--color-white, #ffffff);
|
|
3877
|
+
color: var(--color-purple-800, #2f2438);
|
|
3878
|
+
border-radius: var(--border-solid-border-radius, 7px);
|
|
3879
|
+
box-shadow: var(--shadow-large-box-shadow, 0 3px 9px 0 rgba(0, 0, 0, 0.1), 0 8px 40px 0 rgba(0, 0, 0, 0.08));
|
|
3880
|
+
padding: var(--spacing-sm, 0.75rem) 0;
|
|
3881
|
+
margin-top: var(--spacing-xs, 0.375rem);
|
|
3824
3882
|
text-align: start;
|
|
3825
|
-
width:
|
|
3826
|
-
max-height: var(--menu-container-height, 500px);
|
|
3827
|
-
}
|
|
3828
|
-
|
|
3829
|
-
.MenuPopup-module_menuPopup__QgGEa[popover]:popover-open {
|
|
3830
|
-
z-index: unset;
|
|
3831
|
-
margin: 0;
|
|
3832
|
-
inset: unset;
|
|
3883
|
+
width: 294px;
|
|
3833
3884
|
}
|
|
3834
3885
|
}
|
|
3835
|
-
|
|
3836
3886
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3837
3887
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
3838
3888
|
/** THIS IS AN AUTOGENERATED FILE **/
|
|
@@ -5069,7 +5119,9 @@
|
|
|
5069
5119
|
align-items: center;
|
|
5070
5120
|
justify-content: center;
|
|
5071
5121
|
position: absolute;
|
|
5072
|
-
|
|
5122
|
+
|
|
5123
|
+
/* from $ca-z-index-fixed */
|
|
5124
|
+
z-index: 1030;
|
|
5073
5125
|
background: var(--color-white);
|
|
5074
5126
|
inset-block: 0 1px;
|
|
5075
5127
|
width: 48px;
|
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { type ButtonRef, type GenericButtonProps } from '../GenericButton';
|
|
3
3
|
export type ButtonProps = GenericButtonProps;
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated This component will be replaced by the next Button component in v2.
|
|
6
|
+
* Use `@kaizen/components/next` Button instead.
|
|
7
|
+
* Migration guide: {@link https://cultureamp.design/?path=/docs/components-button-migration-guide--docs}
|
|
8
|
+
* Codemod available: `upgradeV1Buttons`
|
|
9
|
+
*
|
|
5
10
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3062890984/Button Guidance} |
|
|
6
11
|
* {@link https://cultureamp.design/?path=/docs/components-buttons-button--docs Storybook}
|
|
7
12
|
*/
|
|
@@ -2,6 +2,11 @@ import React from 'react';
|
|
|
2
2
|
import { type BaseButtonProps, type ButtonRef, type WorkingButtonProps } from '../GenericButton';
|
|
3
3
|
export type IconButtonProps = Omit<BaseButtonProps, 'iconPosition'> & WorkingButtonProps;
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated This component will be replaced by the next Button component in v2.
|
|
6
|
+
* Use `@kaizen/components/next` Button instead.
|
|
7
|
+
* Migration guide: {@link https://cultureamp.design/?path=/docs/components-button-migration-guide--docs}
|
|
8
|
+
* Codemod available: `upgradeV1Buttons`
|
|
9
|
+
*
|
|
5
10
|
* {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3062890984/Button Guidance} |
|
|
6
11
|
* {@link https://cultureamp.design/?path=/docs/components-iconbutton--docs Storybook}
|
|
7
12
|
*/
|
|
@@ -19,7 +19,7 @@ export type FilterMultiSelectProps = {
|
|
|
19
19
|
className?: string;
|
|
20
20
|
} & Omit<MenuPopupProps, 'children'> & Omit<MenuTriggerProviderProps, 'children'> & SelectionProps;
|
|
21
21
|
export declare const FilterMultiSelect: {
|
|
22
|
-
({ trigger, children, isOpen, defaultOpen, onOpenChange, isLoading, loadingSkeleton, label, items, selectedKeys, defaultSelectedKeys, onSelectionChange, selectionMode, onSearchInputChange, triggerRef, className,
|
|
22
|
+
({ trigger, children, isOpen, defaultOpen, onOpenChange, isLoading, loadingSkeleton, label, items, selectedKeys, defaultSelectedKeys, onSelectionChange, selectionMode, onSearchInputChange, triggerRef, className, }: FilterMultiSelectProps): JSX.Element;
|
|
23
23
|
displayName: string;
|
|
24
24
|
TriggerButton: {
|
|
25
25
|
({ selectedOptionLabels, label, classNameOverride, labelCharacterLimitBeforeTruncate, }: import("./subcomponents/Trigger").FilterTriggerButtonProps): JSX.Element;
|