@chotot/clad-ui 2.2.0 → 2.3.1-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/Button/Button.styles.js +12 -12
- package/dist/components/Button/GhostButton.styles.js +10 -10
- package/dist/components/Chip/Chip.d.ts +1 -1
- package/dist/components/Chip/Chip.d.ts.map +1 -1
- package/dist/components/Chip/Chip.js +2 -2
- package/dist/components/Chip/Chip.stories.d.ts +11 -0
- package/dist/components/Chip/Chip.stories.d.ts.map +1 -1
- package/dist/components/Chip/Chip.stories.js +81 -24
- package/dist/components/Chip/Chip.styles.d.ts.map +1 -1
- package/dist/components/Chip/Chip.styles.js +64 -58
- package/dist/components/Input/Input.styles.d.ts.map +1 -1
- package/dist/components/Input/Input.styles.js +33 -19
- package/dist/components/RowItem/RowItem.styles.d.ts.map +1 -1
- package/dist/components/RowItem/RowItem.styles.js +8 -0
- package/dist/components/Snack/Snack.d.ts +9 -0
- package/dist/components/Snack/Snack.d.ts.map +1 -1
- package/dist/components/Snack/Snack.js +7 -4
- package/dist/components/Snack/Snack.stories.d.ts +22 -0
- package/dist/components/Snack/Snack.stories.d.ts.map +1 -1
- package/dist/components/Snack/Snack.stories.js +137 -0
- package/dist/components/Snack/Snack.styles.d.ts +7 -1
- package/dist/components/Snack/Snack.styles.d.ts.map +1 -1
- package/dist/components/Snack/Snack.styles.js +44 -3
- package/dist/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.styles.js +12 -8
- package/dist/icons/ChevronDown.d.ts.map +1 -1
- package/dist/icons/ChevronDown.js +1 -3
- package/dist/icons/ChevronLeft.d.ts.map +1 -1
- package/dist/icons/ChevronLeft.js +1 -3
- package/dist/icons/ChevronRight.d.ts.map +1 -1
- package/dist/icons/ChevronRight.js +1 -3
- package/dist/icons/ChevronUp.d.ts.map +1 -1
- package/dist/icons/ChevronUp.js +1 -3
- package/dist/patterns/Drawer/Drawer.d.ts +19 -10
- package/dist/patterns/Drawer/Drawer.d.ts.map +1 -1
- package/dist/patterns/Drawer/Drawer.js +30 -18
- package/dist/patterns/Drawer/Drawer.stories.d.ts +20 -0
- package/dist/patterns/Drawer/Drawer.stories.d.ts.map +1 -1
- package/dist/patterns/Drawer/Drawer.stories.js +329 -42
- package/dist/patterns/Drawer/Drawer.styles.d.ts +1 -1
- package/dist/patterns/Drawer/Drawer.styles.d.ts.map +1 -1
- package/dist/patterns/Drawer/Drawer.styles.js +11 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.d.ts.map +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.d.ts.map +1 -1
- package/dist/patterns/MultiSearchDropdown/MultiSearchDropdown.styles.js +1 -5
- package/dist/storybook/Type.d.ts +1 -1
- package/dist/theme/chotot.d.ts +3 -2
- package/dist/theme/chotot.d.ts.map +1 -1
- package/dist/theme/chotot.js +3 -2
- package/dist/theme/ct-job.d.ts +3 -2
- package/dist/theme/ct-job.d.ts.map +1 -1
- package/dist/theme/ct-pty.d.ts +3 -2
- package/dist/theme/ct-pty.d.ts.map +1 -1
- package/dist/theme/ct-veh.d.ts +3 -2
- package/dist/theme/ct-veh.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -14,25 +14,22 @@ export interface DrawerProps {
|
|
|
14
14
|
*/
|
|
15
15
|
children: React.ReactNode;
|
|
16
16
|
/**
|
|
17
|
-
* Primary button label
|
|
18
|
-
*
|
|
19
|
-
* Leave it empty to hide button group
|
|
17
|
+
* Primary button label. Leave it empty to hide button group
|
|
18
|
+
* @deprecated Use `actions` prop for more flexibility
|
|
20
19
|
*/
|
|
21
20
|
primaryBtnLabel?: string;
|
|
22
21
|
/**
|
|
23
|
-
* Secondary button label
|
|
24
|
-
*
|
|
25
|
-
* Leave it empty to hide button group
|
|
22
|
+
* Secondary button label. Leave it empty to hide button group
|
|
23
|
+
* @deprecated Use `actions` prop for more flexibility
|
|
26
24
|
*/
|
|
27
25
|
secondaryBtnLabel?: string;
|
|
28
26
|
/**
|
|
29
|
-
* Optional button label can be icon or text
|
|
30
|
-
*
|
|
31
|
-
* Leave it empty to hide button
|
|
27
|
+
* Optional button label can be icon or text. Leave it empty to hide button
|
|
32
28
|
*/
|
|
33
29
|
optionalBtnLabel?: React.ReactNode;
|
|
34
30
|
/**
|
|
35
31
|
* Button Group Position
|
|
32
|
+
* @deprecated Use custom styling in `actions` prop instead
|
|
36
33
|
*/
|
|
37
34
|
btnRowPosition?: 'justify' | 'left' | 'right';
|
|
38
35
|
/**
|
|
@@ -49,10 +46,12 @@ export interface DrawerProps {
|
|
|
49
46
|
onClose?: React.MouseEventHandler<HTMLElement>;
|
|
50
47
|
/**
|
|
51
48
|
* Callback when main button is clicked
|
|
49
|
+
* @deprecated Use `actions` prop for more flexibility
|
|
52
50
|
*/
|
|
53
51
|
onPrimaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
54
52
|
/**
|
|
55
53
|
* Callback when secondary button is clicked
|
|
54
|
+
* @deprecated Use `actions` prop for more flexibility
|
|
56
55
|
*/
|
|
57
56
|
onSecondaryButtonClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
58
57
|
/**
|
|
@@ -61,6 +60,7 @@ export interface DrawerProps {
|
|
|
61
60
|
onOptionalBtnClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
62
61
|
/**
|
|
63
62
|
* Primary Button Color
|
|
63
|
+
* @deprecated Use `actions` prop for more flexibility
|
|
64
64
|
*/
|
|
65
65
|
primaryColor?: ButtonColor;
|
|
66
66
|
/**
|
|
@@ -84,13 +84,22 @@ export interface DrawerProps {
|
|
|
84
84
|
*/
|
|
85
85
|
contentClassName?: string;
|
|
86
86
|
needBypassScrollLock?: boolean;
|
|
87
|
+
/**
|
|
88
|
+
* Custom action buttons. Pass your own button components for full control. Overrides legacy button props (primaryBtnLabel, secondaryBtnLabel, etc.)
|
|
89
|
+
*/
|
|
90
|
+
actions?: React.ReactNode;
|
|
91
|
+
/**
|
|
92
|
+
* Hide scrollbar for the drawer's main content area.
|
|
93
|
+
* Useful when you want only nested scrollable elements to show scrollbars.
|
|
94
|
+
*/
|
|
95
|
+
hideScrollbar?: boolean;
|
|
87
96
|
}
|
|
88
97
|
/**
|
|
89
98
|
* Drawer is a window sitting overtop of the main content to provide information or inquire confirmation.
|
|
90
99
|
* Drawer is very intrusive toward user and should be used sparingly.
|
|
91
100
|
*
|
|
92
101
|
* Usecase:
|
|
93
|
-
* Show promotion, label explanation, information or What
|
|
102
|
+
* Show promotion, label explanation, information or What's new.
|
|
94
103
|
* Request confirmation when user perform important or destructive actions.
|
|
95
104
|
* Congrat user after completing a userflow or achieve a milestone.
|
|
96
105
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AA+B1E,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAe,EAAE,KAAK,WAAW,EAAE,MAAM,gCAAgC,CAAC;AA+B1E,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACnC;;;OAGG;IACH,cAAc,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IAC9C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC;IAC/C;;;OAGG;IACH,oBAAoB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAClE;;;OAGG;IACH,sBAAsB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IACpE;;OAEG;IACH,kBAAkB,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,CAAC;IAChE;;;OAGG;IACH,YAAY,CAAC,EAAE,WAAW,CAAC;IAC3B;;OAEG;IACH,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAClC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB;AAED;;;;;;;;;;GAUG;AAEH,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA2OjC,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -22,16 +22,17 @@ const BTN_GROUP_POSITION = {
|
|
|
22
22
|
* Drawer is very intrusive toward user and should be used sparingly.
|
|
23
23
|
*
|
|
24
24
|
* Usecase:
|
|
25
|
-
* Show promotion, label explanation, information or What
|
|
25
|
+
* Show promotion, label explanation, information or What's new.
|
|
26
26
|
* Request confirmation when user perform important or destructive actions.
|
|
27
27
|
* Congrat user after completing a userflow or achieve a milestone.
|
|
28
28
|
*
|
|
29
29
|
* `✅ Stable`
|
|
30
30
|
*/
|
|
31
|
-
const Drawer = ({ className = '', title = '', children, primaryBtnLabel, secondaryBtnLabel, primaryColor = 'primary', optionalBtnLabel, onOptionalBtnClick, btnRowPosition = 'justify', open = false, onClose = noop, onPrimaryButtonClick = noop, onSecondaryButtonClick = null, childrenOverflowVisible = false, isEmptyDrawer = false, haveClose = true, closeIcon = <Close />, contentClassName = '', needBypassScrollLock = false, }) => {
|
|
31
|
+
const Drawer = ({ className = '', title = '', children, primaryBtnLabel, secondaryBtnLabel, primaryColor = 'primary', optionalBtnLabel, onOptionalBtnClick, btnRowPosition = 'justify', open = false, onClose = noop, onPrimaryButtonClick = noop, onSecondaryButtonClick = null, childrenOverflowVisible = false, isEmptyDrawer = false, haveClose = true, closeIcon = <Close />, contentClassName = '', needBypassScrollLock = false, actions, hideScrollbar = false, }) => {
|
|
32
32
|
const { useEffect, useRef, useState } = React;
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
// Determine if we should show actions (either new or legacy)
|
|
34
|
+
const hasActions = !!actions || !!primaryBtnLabel;
|
|
35
|
+
const childrenWrapperClasses = cx((typeof children === 'string' || typeof children === 'number') && 'is-single-string', !hasActions && 'no-button', childrenOverflowVisible && showChildrenOverflowClass, hideScrollbar && 'hide-scrollbar', contentClassName);
|
|
35
36
|
const [scrollTop, scrollProps] = useScrollTop();
|
|
36
37
|
const wrapperProps = { ...scrollProps };
|
|
37
38
|
// Use the new scroll lock hook with reference counting
|
|
@@ -88,6 +89,29 @@ const Drawer = ({ className = '', title = '', children, primaryBtnLabel, seconda
|
|
|
88
89
|
setShowShadowBtm(show);
|
|
89
90
|
}, [open, scrollTop, children]);
|
|
90
91
|
const closeIconClass = cx((typeof closeIcon === 'string' || typeof closeIcon === 'number') && 'is-text');
|
|
92
|
+
// Render legacy buttons or custom actions
|
|
93
|
+
const renderActions = () => {
|
|
94
|
+
// If actions prop is provided, use it (new way)
|
|
95
|
+
if (actions) {
|
|
96
|
+
return <StyledButtonGroup data-clad="Drawer">{actions}</StyledButtonGroup>;
|
|
97
|
+
}
|
|
98
|
+
// Otherwise, render legacy buttons if primaryBtnLabel exists
|
|
99
|
+
if (primaryBtnLabel) {
|
|
100
|
+
return (<StyledButtonGroup {...btnGroupProps} data-clad="Drawer">
|
|
101
|
+
{!!secondaryBtnLabel && (<Button variant="outline" color="tertiary" size="large" extraClasses={cx(
|
|
102
|
+
// Keep button width maintain on column direction
|
|
103
|
+
btnRowPosition === 'justify' && buttonClass)} onClick={onSecondaryButtonClick ? onSecondaryButtonClick : onClose}>
|
|
104
|
+
{secondaryBtnLabel}
|
|
105
|
+
</Button>)}
|
|
106
|
+
<Button color={primaryColor} size="large" extraClasses={cx(
|
|
107
|
+
// Keep button width maintain on column direction
|
|
108
|
+
btnRowPosition === 'justify' && buttonClass)} onClick={onPrimaryButtonClick}>
|
|
109
|
+
{primaryBtnLabel}
|
|
110
|
+
</Button>
|
|
111
|
+
</StyledButtonGroup>);
|
|
112
|
+
}
|
|
113
|
+
return null;
|
|
114
|
+
};
|
|
91
115
|
/* eslint-disable react/jsx-no-useless-fragment */
|
|
92
116
|
return (<>
|
|
93
117
|
{!!open &&
|
|
@@ -96,7 +120,7 @@ const Drawer = ({ className = '', title = '', children, primaryBtnLabel, seconda
|
|
|
96
120
|
<StyledPopup className={cx(className, isEmptyDrawer && noSpacingClass)}>
|
|
97
121
|
{!isEmptyDrawer ? (<>
|
|
98
122
|
{/* HEADER */}
|
|
99
|
-
<StyledHeader data-clad={!
|
|
123
|
+
<StyledHeader data-clad={!hasActions ? 'Drawer' : undefined}>
|
|
100
124
|
<HeaderTopBar>
|
|
101
125
|
{!!haveClose && (<CloseButton type="button" onClick={onClose} className={closeIconClass}>
|
|
102
126
|
{closeIcon}
|
|
@@ -122,21 +146,9 @@ const Drawer = ({ className = '', title = '', children, primaryBtnLabel, seconda
|
|
|
122
146
|
{children}
|
|
123
147
|
</ChildrenContent>
|
|
124
148
|
</ChildrenWrapper>
|
|
125
|
-
{/* BTN */}
|
|
126
149
|
{/* ------------------------------------ */}
|
|
127
150
|
{/* FOOTER */}
|
|
128
|
-
{
|
|
129
|
-
{!!secondaryBtnLabel && (<Button variant="outline" color="tertiary" size="large" extraClasses={cx(
|
|
130
|
-
// Keep button width maintain on column direction
|
|
131
|
-
btnRowPosition === 'justify' && buttonClass)} onClick={onSecondaryButtonClick ? onSecondaryButtonClick : onClose}>
|
|
132
|
-
{secondaryBtnLabel}
|
|
133
|
-
</Button>)}
|
|
134
|
-
<Button color={primaryColor} size="large" extraClasses={cx(
|
|
135
|
-
// Keep button width maintain on column direction
|
|
136
|
-
btnRowPosition === 'justify' && buttonClass)} onClick={onPrimaryButtonClick}>
|
|
137
|
-
{primaryBtnLabel}
|
|
138
|
-
</Button>
|
|
139
|
-
</StyledButtonGroup>)}
|
|
151
|
+
{renderActions()}
|
|
140
152
|
</>) : (<ChildrenWrapper className={childrenWrapperClasses} ref={childrenWrapperRef} data-clad="Drawer" {...wrapperProps}>
|
|
141
153
|
<div className="shadow-top shadow" style={{
|
|
142
154
|
opacity: +scrollTop > 0 ? '1' : '0',
|
|
@@ -105,4 +105,24 @@ export declare const ContentClassName: {
|
|
|
105
105
|
};
|
|
106
106
|
};
|
|
107
107
|
};
|
|
108
|
+
export declare const CustomActions: {
|
|
109
|
+
render: () => JSX.Element;
|
|
110
|
+
parameters: {
|
|
111
|
+
docs: {
|
|
112
|
+
description: {
|
|
113
|
+
story: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
};
|
|
118
|
+
export declare const NestedScroll: {
|
|
119
|
+
render: () => JSX.Element;
|
|
120
|
+
parameters: {
|
|
121
|
+
docs: {
|
|
122
|
+
description: {
|
|
123
|
+
story: string;
|
|
124
|
+
};
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
108
128
|
//# sourceMappingURL=Drawer.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.stories.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ClB,CAAC;AAEF,eAAe,aAAa,CAAC;AAM7B,eAAO,MAAM,QAAQ;;CAgBpB,CAAC;
|
|
1
|
+
{"version":3,"file":"Drawer.stories.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoC,MAAM,OAAO,CAAC;AASzD,QAAA,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ClB,CAAC;AAEF,eAAe,aAAa,CAAC;AAM7B,eAAO,MAAM,QAAQ;;CAgBpB,CAAC;AA4EF,eAAO,MAAM,YAAY;;;;;;;;;;CA8CxB,CAAC;AAEF,eAAO,MAAM,kBAAkB;;;;;;;;;;CAmJ9B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;CAkG3B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;CAuG3B,CAAC;AAEF,eAAO,MAAM,WAAW;;;;;;;;;;CAqCvB,CAAC;AAGF,eAAO,MAAM,gBAAgB;;;;;;;;;;CA0C5B,CAAC;AAEF,eAAO,MAAM,aAAa;;;;;;;;;CAgHzB,CAAC;AAeF,eAAO,MAAM,YAAY;;;;;;;;;CAoOxB,CAAC"}
|
|
@@ -122,12 +122,22 @@ const ip100vhClass = css `
|
|
|
122
122
|
height: 100vh;
|
|
123
123
|
}
|
|
124
124
|
`;
|
|
125
|
+
/**
|
|
126
|
+
* Hook to inline portals for Storybook stories.
|
|
127
|
+
* - 'sync': release immediately in useLayoutEffect (default, for simple Drawers that don't re-render)
|
|
128
|
+
* - 'none': never release (for Drawers with long content/scroll that trigger internal re-renders)
|
|
129
|
+
*/
|
|
130
|
+
const useInlinePortal = (release = 'sync') => {
|
|
131
|
+
inlineCreatePortal();
|
|
132
|
+
useLayoutEffect(() => {
|
|
133
|
+
if (release === 'sync') {
|
|
134
|
+
releaseCreatePortal();
|
|
135
|
+
}
|
|
136
|
+
}, []);
|
|
137
|
+
};
|
|
125
138
|
export const WithChildren = {
|
|
126
139
|
render: () => {
|
|
127
|
-
|
|
128
|
-
useLayoutEffect(() => {
|
|
129
|
-
releaseCreatePortal();
|
|
130
|
-
}, []);
|
|
140
|
+
useInlinePortal('none');
|
|
131
141
|
return (<>
|
|
132
142
|
<p>Dialog has string as children.</p>
|
|
133
143
|
<Box width="full" className={popupInlineClass}>
|
|
@@ -155,8 +165,7 @@ export const WithChildren = {
|
|
|
155
165
|
};
|
|
156
166
|
export const CustomizeWithImage = {
|
|
157
167
|
render: () => {
|
|
158
|
-
|
|
159
|
-
// deliberate left out releaseCreatePortal
|
|
168
|
+
useInlinePortal('none');
|
|
160
169
|
return (<>
|
|
161
170
|
<p>Limit Children Height</p>
|
|
162
171
|
<Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
|
|
@@ -287,10 +296,7 @@ export const CustomizeWithImage = {
|
|
|
287
296
|
};
|
|
288
297
|
export const CustomizeHeader = {
|
|
289
298
|
render: () => {
|
|
290
|
-
|
|
291
|
-
useLayoutEffect(() => {
|
|
292
|
-
releaseCreatePortal();
|
|
293
|
-
}, []);
|
|
299
|
+
useInlinePortal('none');
|
|
294
300
|
return (<>
|
|
295
301
|
<p>Optional Button Label Text</p>
|
|
296
302
|
<Box width="full" className={popupInlineClass}>
|
|
@@ -359,10 +365,7 @@ export const CustomizeHeader = {
|
|
|
359
365
|
};
|
|
360
366
|
export const ButtonsPosition = {
|
|
361
367
|
render: () => {
|
|
362
|
-
|
|
363
|
-
useLayoutEffect(() => {
|
|
364
|
-
releaseCreatePortal();
|
|
365
|
-
}, []);
|
|
368
|
+
useInlinePortal('none');
|
|
366
369
|
return (<>
|
|
367
370
|
<p>Buttons on the Left</p>
|
|
368
371
|
<Box width="full" className={popupInlineClass}>
|
|
@@ -435,17 +438,7 @@ export const ButtonsPosition = {
|
|
|
435
438
|
};
|
|
436
439
|
export const EmptyDrawer = {
|
|
437
440
|
render: () => {
|
|
438
|
-
|
|
439
|
-
useLayoutEffect(() => {
|
|
440
|
-
requestAnimationFrame(() => {
|
|
441
|
-
requestAnimationFrame(() => {
|
|
442
|
-
console.log('raf timeout release');
|
|
443
|
-
// this is magic to release the inline portal
|
|
444
|
-
// properly and avoid scroll lock
|
|
445
|
-
releaseCreatePortal();
|
|
446
|
-
});
|
|
447
|
-
});
|
|
448
|
-
}, []);
|
|
441
|
+
useInlinePortal('none');
|
|
449
442
|
return (<>
|
|
450
443
|
<p>Empty Drawer No Styling</p>
|
|
451
444
|
<Box width="full" className={popupInlineClass}>
|
|
@@ -472,27 +465,21 @@ export const EmptyDrawer = {
|
|
|
472
465
|
};
|
|
473
466
|
export const ContentClassName = {
|
|
474
467
|
render: () => {
|
|
475
|
-
|
|
476
|
-
useLayoutEffect(() => {
|
|
477
|
-
requestAnimationFrame(() => {
|
|
478
|
-
requestAnimationFrame(() => {
|
|
479
|
-
releaseCreatePortal();
|
|
480
|
-
});
|
|
481
|
-
});
|
|
482
|
-
}, []);
|
|
468
|
+
useInlinePortal('none');
|
|
483
469
|
const contentClassName = css `
|
|
484
470
|
padding: 0;
|
|
485
471
|
`;
|
|
486
472
|
return (<Box width="full" className={popupInlineClass}>
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
</
|
|
473
|
+
<Drawer open onClose={() => alert('Close clicked')} onPrimaryButtonClick={onMainBtnClick} title="Content class name demo" primaryBtnLabel="Primary" secondaryBtnLabel="Click to Dismiss" btnRowPosition="justify" contentClassName={contentClassName} needBypassScrollLock>
|
|
474
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam nec purus nec nunc lacinia
|
|
475
|
+
maximus. Donec vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam
|
|
476
|
+
nec purus nec nunc lacinia maximus. Donec vel luctus nisi. In hac habitasse platea
|
|
477
|
+
dictumst. Nulla facilisi. Nullam nec purus nec nunc lacinia maximus. Donec vel luctus
|
|
478
|
+
nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam nec purus nec nunc lacinia
|
|
479
|
+
maximus. Donec vel luctus nisi. In hac habitasse platea dictumst. Nulla facilisi. Nullam
|
|
480
|
+
nec purus nec nunc
|
|
481
|
+
</Drawer>
|
|
482
|
+
</Box>);
|
|
496
483
|
},
|
|
497
484
|
name: 'ContentClassName',
|
|
498
485
|
parameters: {
|
|
@@ -503,3 +490,303 @@ export const ContentClassName = {
|
|
|
503
490
|
},
|
|
504
491
|
},
|
|
505
492
|
};
|
|
493
|
+
export const CustomActions = {
|
|
494
|
+
render: () => {
|
|
495
|
+
useInlinePortal('none');
|
|
496
|
+
const verticalActionsStyle = css `
|
|
497
|
+
display: flex;
|
|
498
|
+
flex-direction: column;
|
|
499
|
+
gap: 8px;
|
|
500
|
+
width: 100%;
|
|
501
|
+
`;
|
|
502
|
+
return (<>
|
|
503
|
+
<p>Custom Actions - Horizontal Layout (default)</p>
|
|
504
|
+
<Box width="full" className={popupInlineClass}>
|
|
505
|
+
<Drawer open onClose={() => alert('Close clicked')} title="Custom Actions - Horizontal" actions={<>
|
|
506
|
+
<Button variant="outline" color="tertiary" size="large">
|
|
507
|
+
Cancel
|
|
508
|
+
</Button>
|
|
509
|
+
<Button color="primary" size="large">
|
|
510
|
+
Save
|
|
511
|
+
</Button>
|
|
512
|
+
</>} needBypassScrollLock>
|
|
513
|
+
<ChildrenWrapper>
|
|
514
|
+
<ChildrenTextWrapper>
|
|
515
|
+
<p>
|
|
516
|
+
You can pass custom button components using the actions prop. This gives you full
|
|
517
|
+
control over button variants, colors, and functionality.
|
|
518
|
+
</p>
|
|
519
|
+
</ChildrenTextWrapper>
|
|
520
|
+
</ChildrenWrapper>
|
|
521
|
+
</Drawer>
|
|
522
|
+
</Box>
|
|
523
|
+
<p className={mt24}>Custom Actions - Vertical Layout</p>
|
|
524
|
+
<Box width="full" className={popupInlineClass}>
|
|
525
|
+
<Drawer open onClose={() => alert('Close clicked')} title="Custom Actions - Vertical" actions={<div className={verticalActionsStyle}>
|
|
526
|
+
<Button color="primary" size="large" stretch>
|
|
527
|
+
Confirm
|
|
528
|
+
</Button>
|
|
529
|
+
<Button variant="outline" color="tertiary" size="large" stretch>
|
|
530
|
+
Cancel
|
|
531
|
+
</Button>
|
|
532
|
+
</div>} needBypassScrollLock>
|
|
533
|
+
<ChildrenWrapper>
|
|
534
|
+
<ChildrenTextWrapper>
|
|
535
|
+
<p>
|
|
536
|
+
Vertical layout - just wrap your buttons in a div with flex-direction: column. You
|
|
537
|
+
have complete control over styling and layout.
|
|
538
|
+
</p>
|
|
539
|
+
</ChildrenTextWrapper>
|
|
540
|
+
</ChildrenWrapper>
|
|
541
|
+
</Drawer>
|
|
542
|
+
</Box>
|
|
543
|
+
<p className={mt24}>Custom Actions - Multiple Buttons</p>
|
|
544
|
+
<Box width="full" className={popupInlineClass}>
|
|
545
|
+
<Drawer open onClose={() => alert('Close clicked')} title="Multiple Actions" actions={<>
|
|
546
|
+
<Button variant="outline" color="tertiary" size="large">
|
|
547
|
+
Skip
|
|
548
|
+
</Button>
|
|
549
|
+
<Button variant="outline" color="tertiary" size="large">
|
|
550
|
+
Save Draft
|
|
551
|
+
</Button>
|
|
552
|
+
<Button color="primary" size="large">
|
|
553
|
+
Publish
|
|
554
|
+
</Button>
|
|
555
|
+
</>} needBypassScrollLock>
|
|
556
|
+
<ChildrenWrapper>
|
|
557
|
+
<ChildrenTextWrapper>
|
|
558
|
+
<p>
|
|
559
|
+
You can add as many buttons as you need. The actions prop accepts any React nodes,
|
|
560
|
+
giving you complete flexibility.
|
|
561
|
+
</p>
|
|
562
|
+
</ChildrenTextWrapper>
|
|
563
|
+
</ChildrenWrapper>
|
|
564
|
+
</Drawer>
|
|
565
|
+
</Box>
|
|
566
|
+
</>);
|
|
567
|
+
},
|
|
568
|
+
parameters: {
|
|
569
|
+
docs: {
|
|
570
|
+
description: {
|
|
571
|
+
story: 'Use the `actions` prop to pass custom button components for full control over the action area. You can control layout (horizontal/vertical), alignment, and styling directly in your custom components. The legacy button props (primaryBtnLabel, secondaryBtnLabel) are still supported for backward compatibility.',
|
|
572
|
+
},
|
|
573
|
+
},
|
|
574
|
+
},
|
|
575
|
+
};
|
|
576
|
+
const ScrollableBox = styled.div `
|
|
577
|
+
width: 100%;
|
|
578
|
+
max-height: 200px;
|
|
579
|
+
overflow-y: auto;
|
|
580
|
+
border: 1px solid #e0e0e0;
|
|
581
|
+
border-radius: 8px;
|
|
582
|
+
padding: 16px;
|
|
583
|
+
margin: 16px 0;
|
|
584
|
+
background-color: #f9f9f9;
|
|
585
|
+
`;
|
|
586
|
+
export const NestedScroll = {
|
|
587
|
+
render: () => {
|
|
588
|
+
useInlinePortal('none');
|
|
589
|
+
return (<>
|
|
590
|
+
<p>With Drawer Scrollbar (default)</p>
|
|
591
|
+
<Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
|
|
592
|
+
<Drawer open onClose={() => alert('Close clicked')} title="Nested Scroll - With Drawer Scrollbar" actions={<>
|
|
593
|
+
<Button variant="outline" color="tertiary" size="large">
|
|
594
|
+
Cancel
|
|
595
|
+
</Button>
|
|
596
|
+
<Button color="primary" size="large">
|
|
597
|
+
Confirm
|
|
598
|
+
</Button>
|
|
599
|
+
</>} needBypassScrollLock>
|
|
600
|
+
<ChildrenWrapper>
|
|
601
|
+
<ChildrenTextWrapper>
|
|
602
|
+
<h4>Long Content with Nested Scrollable Area</h4>
|
|
603
|
+
<p>
|
|
604
|
+
This drawer demonstrates two independent scroll areas: the drawer's main
|
|
605
|
+
scroll and a nested scrollable box below. Both scrollbars are visible.
|
|
606
|
+
</p>
|
|
607
|
+
|
|
608
|
+
<h5>Section 1</h5>
|
|
609
|
+
<p>
|
|
610
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
611
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
612
|
+
nostrud amet.
|
|
613
|
+
</p>
|
|
614
|
+
<p>
|
|
615
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
616
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
617
|
+
nostrud amet.
|
|
618
|
+
</p>
|
|
619
|
+
|
|
620
|
+
<h5>Nested Scrollable Box</h5>
|
|
621
|
+
<ScrollableBox>
|
|
622
|
+
<h6>This box has its own scroll</h6>
|
|
623
|
+
<p>Line 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
624
|
+
<p>Line 2: Nullam nec purus nec nunc lacinia maximus.</p>
|
|
625
|
+
<p>Line 3: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
626
|
+
<p>Line 4: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
|
|
627
|
+
<p>Line 5: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
628
|
+
<p>Line 6: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
629
|
+
<p>Line 7: Nullam nec purus nec nunc lacinia maximus.</p>
|
|
630
|
+
<p>Line 8: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
631
|
+
<p>Line 9: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
|
|
632
|
+
<p>Line 10: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
633
|
+
</ScrollableBox>
|
|
634
|
+
|
|
635
|
+
<h5>Section 2</h5>
|
|
636
|
+
<p>
|
|
637
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
638
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
639
|
+
nostrud amet.
|
|
640
|
+
</p>
|
|
641
|
+
<p>
|
|
642
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
643
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
644
|
+
nostrud amet.
|
|
645
|
+
</p>
|
|
646
|
+
|
|
647
|
+
<h5>Section 3</h5>
|
|
648
|
+
<p>
|
|
649
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
650
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
651
|
+
nostrud amet.
|
|
652
|
+
</p>
|
|
653
|
+
<p>
|
|
654
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
655
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
656
|
+
nostrud amet.
|
|
657
|
+
</p>
|
|
658
|
+
|
|
659
|
+
<h5>Section 4</h5>
|
|
660
|
+
<p>
|
|
661
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
662
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
663
|
+
nostrud amet.
|
|
664
|
+
</p>
|
|
665
|
+
<p>
|
|
666
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
667
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
668
|
+
nostrud amet.
|
|
669
|
+
</p>
|
|
670
|
+
|
|
671
|
+
<h5>Section 5</h5>
|
|
672
|
+
<p>
|
|
673
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
674
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
675
|
+
nostrud amet.
|
|
676
|
+
</p>
|
|
677
|
+
<p>
|
|
678
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
679
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
680
|
+
nostrud amet. This is the end of the content.
|
|
681
|
+
</p>
|
|
682
|
+
</ChildrenTextWrapper>
|
|
683
|
+
</ChildrenWrapper>
|
|
684
|
+
</Drawer>
|
|
685
|
+
</Box>
|
|
686
|
+
|
|
687
|
+
<p className={mt24}>Hidden Drawer Scrollbar - Only Nested Box Shows Scrollbar</p>
|
|
688
|
+
<Box width="full" height="vH" className={`${popupInlineClass} ${ip100vhClass}`}>
|
|
689
|
+
<Drawer open onClose={() => alert('Close clicked')} title="Nested Scroll - Hidden Drawer Scrollbar" actions={<>
|
|
690
|
+
<Button variant="outline" color="tertiary" size="large">
|
|
691
|
+
Cancel
|
|
692
|
+
</Button>
|
|
693
|
+
<Button color="primary" size="large">
|
|
694
|
+
Confirm
|
|
695
|
+
</Button>
|
|
696
|
+
</>} hideScrollbar needBypassScrollLock>
|
|
697
|
+
<ChildrenWrapper>
|
|
698
|
+
<ChildrenTextWrapper>
|
|
699
|
+
<h4>Long Content with Nested Scrollable Area</h4>
|
|
700
|
+
<p>
|
|
701
|
+
This drawer has hideScrollbar=true. The main drawer scrollbar is hidden, but you
|
|
702
|
+
can still scroll the content. Only the nested box shows a scrollbar.
|
|
703
|
+
</p>
|
|
704
|
+
|
|
705
|
+
<h5>Section 1</h5>
|
|
706
|
+
<p>
|
|
707
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
708
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
709
|
+
nostrud amet.
|
|
710
|
+
</p>
|
|
711
|
+
<p>
|
|
712
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
713
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
714
|
+
nostrud amet.
|
|
715
|
+
</p>
|
|
716
|
+
|
|
717
|
+
<h5>Nested Scrollable Box</h5>
|
|
718
|
+
<ScrollableBox>
|
|
719
|
+
<h6>This box has its own scroll (scrollbar visible)</h6>
|
|
720
|
+
<p>Line 1: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
721
|
+
<p>Line 2: Nullam nec purus nec nunc lacinia maximus.</p>
|
|
722
|
+
<p>Line 3: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
723
|
+
<p>Line 4: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
|
|
724
|
+
<p>Line 5: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
725
|
+
<p>Line 6: Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
|
|
726
|
+
<p>Line 7: Nullam nec purus nec nunc lacinia maximus.</p>
|
|
727
|
+
<p>Line 8: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
728
|
+
<p>Line 9: Nulla facilisi. Nullam nec purus nec nunc lacinia maximus.</p>
|
|
729
|
+
<p>Line 10: Donec vel luctus nisi. In hac habitasse platea dictumst.</p>
|
|
730
|
+
</ScrollableBox>
|
|
731
|
+
|
|
732
|
+
<h5>Section 2</h5>
|
|
733
|
+
<p>
|
|
734
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
735
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
736
|
+
nostrud amet.
|
|
737
|
+
</p>
|
|
738
|
+
<p>
|
|
739
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
740
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
741
|
+
nostrud amet.
|
|
742
|
+
</p>
|
|
743
|
+
|
|
744
|
+
<h5>Section 3</h5>
|
|
745
|
+
<p>
|
|
746
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
747
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
748
|
+
nostrud amet.
|
|
749
|
+
</p>
|
|
750
|
+
<p>
|
|
751
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
752
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
753
|
+
nostrud amet.
|
|
754
|
+
</p>
|
|
755
|
+
|
|
756
|
+
<h5>Section 4</h5>
|
|
757
|
+
<p>
|
|
758
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
759
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
760
|
+
nostrud amet.
|
|
761
|
+
</p>
|
|
762
|
+
<p>
|
|
763
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
764
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
765
|
+
nostrud amet.
|
|
766
|
+
</p>
|
|
767
|
+
|
|
768
|
+
<h5>Section 5</h5>
|
|
769
|
+
<p>
|
|
770
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
771
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
772
|
+
nostrud amet.
|
|
773
|
+
</p>
|
|
774
|
+
<p>
|
|
775
|
+
Amet minim mollit non deserunt ullamco est sit aliqua dolor do amet sint. Velit
|
|
776
|
+
officia consequat duis enim velit mollit. Exercitation veniam consequat sunt
|
|
777
|
+
nostrud amet. This is the end of the content.
|
|
778
|
+
</p>
|
|
779
|
+
</ChildrenTextWrapper>
|
|
780
|
+
</ChildrenWrapper>
|
|
781
|
+
</Drawer>
|
|
782
|
+
</Box>
|
|
783
|
+
</>);
|
|
784
|
+
},
|
|
785
|
+
parameters: {
|
|
786
|
+
docs: {
|
|
787
|
+
description: {
|
|
788
|
+
story: "Testing two independent scroll areas with the `hideScrollbar` prop. When hideScrollbar=true, the drawer's main scrollbar is hidden (useful for Safari), but only nested scrollable elements show scrollbars. The drawer content remains scrollable.",
|
|
789
|
+
},
|
|
790
|
+
},
|
|
791
|
+
},
|
|
792
|
+
};
|
|
@@ -11,7 +11,7 @@ declare const StyledHeader: import("@linaria/react").StyledMeta & import("react"
|
|
|
11
11
|
as?: import("react").ElementType;
|
|
12
12
|
}>;
|
|
13
13
|
declare const StyledButtonGroup: import("@linaria/react").StyledMeta & import("react").FunctionComponent<import("react").ClassAttributes<HTMLDivElement> & import("react").HTMLAttributes<HTMLDivElement> & {
|
|
14
|
-
position
|
|
14
|
+
position?: {
|
|
15
15
|
justifyContent: string;
|
|
16
16
|
};
|
|
17
17
|
} & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.styles.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,KAAK;;EAeV,CAAC;AAEF,QAAA,MAAM,QAAQ;;EAQb,CAAC;AAEF,QAAA,MAAM,WAAW;;EA4DhB,CAAC;AAEF,QAAA,MAAM,YAAY;;EAYjB,CAAC;AAEF,QAAA,MAAM,iBAAiB;
|
|
1
|
+
{"version":3,"file":"Drawer.styles.d.ts","sourceRoot":"","sources":["../../../patterns/Drawer/Drawer.styles.ts"],"names":[],"mappings":"AAmBA,QAAA,MAAM,KAAK;;EAeV,CAAC;AAEF,QAAA,MAAM,QAAQ;;EAQb,CAAC;AAEF,QAAA,MAAM,WAAW;;EA4DhB,CAAC;AAEF,QAAA,MAAM,YAAY;;EAYjB,CAAC;AAEF,QAAA,MAAM,iBAAiB;eACV;QAAE,cAAc,EAAE,MAAM,CAAA;KAAE;;;EAmBtC,CAAC;AAEF,QAAA,MAAM,WAAW,0CAGhB,CAAC;AAEF,QAAA,MAAM,WAAW;;EA0ChB,CAAC;AAEF,QAAA,MAAM,YAAY;;EA2CjB,CAAC;AAEF,QAAA,MAAM,eAAe;;EAiCpB,CAAC;AAEF,QAAA,MAAM,eAAe;;EA2CpB,CAAC;AAGF,QAAA,MAAM,yBAAyB,0CAE9B,CAAC;AAEF,QAAA,MAAM,YAAY;;EAcjB,CAAC;AAEF,QAAA,MAAM,cAAc,0CAEnB,CAAC;AAEF,OAAO,EACL,KAAK,EACL,WAAW,EACX,WAAW,EACX,YAAY,EACZ,YAAY,EACZ,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,QAAQ,EACR,WAAW,EACX,yBAAyB,EACzB,YAAY,EACZ,cAAc,GACf,CAAC"}
|