@wonderflow/react-components 8.5.0 → 9.0.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.
Files changed (36) hide show
  1. package/dist/components/aspect-ratio/aspect-ratio.d.ts +6 -0
  2. package/dist/components/aspect-ratio/aspect-ratio.d.ts.map +1 -0
  3. package/dist/components/aspect-ratio/aspect-ratio.js +5 -0
  4. package/dist/components/aspect-ratio/index.d.ts +3 -0
  5. package/dist/components/aspect-ratio/index.d.ts.map +1 -0
  6. package/dist/components/aspect-ratio/index.js +1 -0
  7. package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
  8. package/dist/components/autocomplete/autocomplete.js +5 -2
  9. package/dist/components/button/button.module.css +1 -1
  10. package/dist/components/circular-progress/circular-progress.module.css +1 -1
  11. package/dist/components/drawer/drawer.d.ts.map +1 -1
  12. package/dist/components/drawer/drawer.js +10 -5
  13. package/dist/components/drawer/drawer.module.css +1 -1
  14. package/dist/components/index.d.ts +2 -0
  15. package/dist/components/index.d.ts.map +1 -1
  16. package/dist/components/index.js +2 -0
  17. package/dist/components/info-state/info-state.d.ts.map +1 -1
  18. package/dist/components/info-state/info-state.js +10 -1
  19. package/dist/components/input-group/input-group.module.css +1 -1
  20. package/dist/components/linear-progress/linear-progress.module.css +1 -1
  21. package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
  22. package/dist/components/menu/menu-item/menu-item.js +3 -3
  23. package/dist/components/menu/menu-separator/menu-separator.d.ts +3 -0
  24. package/dist/components/menu/menu-separator/menu-separator.d.ts.map +1 -0
  25. package/dist/components/menu/menu-separator/menu-separator.js +3 -0
  26. package/dist/components/menu/menu.d.ts +2 -0
  27. package/dist/components/menu/menu.d.ts.map +1 -1
  28. package/dist/components/menu/menu.js +4 -3
  29. package/dist/components/modal/content/modal-content.module.css +1 -1
  30. package/dist/components/modal/modal.d.ts.map +1 -1
  31. package/dist/components/modal/modal.js +30 -18
  32. package/dist/components/modal/modal.module.css +1 -1
  33. package/dist/components/popover/popover.d.ts.map +1 -1
  34. package/dist/components/popover/popover.js +7 -2
  35. package/dist/components/toggle-button/toggle-button.module.css +1 -1
  36. package/package.json +1 -1
@@ -0,0 +1,6 @@
1
+ import { PropsWithChildren } from 'react';
2
+ export declare type AspectRatioProps = PropsWithChildren<PropsWithClass> & {
3
+ ratio: string;
4
+ };
5
+ export declare const AspectRatio: ({ children, ratio }: AspectRatioProps) => JSX.Element;
6
+ //# sourceMappingURL=aspect-ratio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"aspect-ratio.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/aspect-ratio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAoD,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAE3F,oBAAY,gBAAgB,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IACjE,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,eAAO,MAAM,WAAW,wBAGrB,gBAAgB,gBASlB,CAAA"}
@@ -0,0 +1,5 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Children, cloneElement, Fragment, isValidElement } from 'react';
3
+ export const AspectRatio = ({ children, ratio }) => {
4
+ return (_jsx(Fragment, { children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, { style: { ...child.props.style, aspectRatio: ratio } })) }));
5
+ };
@@ -0,0 +1,3 @@
1
+ export { AspectRatio } from './aspect-ratio';
2
+ export type { AspectRatioProps } from './aspect-ratio';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/aspect-ratio/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,YAAY,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA"}
@@ -0,0 +1 @@
1
+ export { AspectRatio } from './aspect-ratio';
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEnF,OAAO,EACK,yBAAyB,EAEd,SAAS,EAC/B,MAAM,OAAO,CAAA;AAEd,OAAO,EAAyB,cAAc,EAAmB,MAAM,cAAc,CAAA;AAIrF,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,oBAAY,iBAAiB,GAAG,cAAc,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC;;;MAGE;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,aAAK,qBAAqB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC1E,MAAM,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAC5D,CAAA;AAqBD,eAAO,MAAM,YAAY,uBAyJE,CAAA"}
1
+ {"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AAEnF,OAAO,EACK,yBAAyB,EAEd,SAAS,EAC/B,MAAM,OAAO,CAAA;AAEd,OAAO,EAAyB,cAAc,EAAmB,MAAM,cAAc,CAAA;AAIrF,OAAO,EAAE,SAAS,EAAE,MAAM,SAAS,CAAA;AAEnC,aAAK,SAAS,GAAG;IACf,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,oBAAY,iBAAiB,GAAG,cAAc,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAC;IACjC;;;MAGE;IACH,SAAS,CAAC,EAAE,SAAS,CAAC,WAAW,CAAC,CAAC;IACnC;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;CAChB,CAAC;AAEF,aAAK,qBAAqB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC1E,MAAM,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAC5D,CAAA;AAqBD,eAAO,MAAM,YAAY,uBA6JE,CAAA"}
@@ -67,15 +67,18 @@ export const Autocomplete = forwardRef(({ children, onChange, disabled, readOnly
67
67
  setIsOpen(false);
68
68
  }, [onChange]);
69
69
  const handleFilter = useCallback(({ currentTarget }) => {
70
+ const targetValue = currentTarget.value.toLowerCase();
70
71
  setQuery(currentTarget.value);
71
72
  setValue(currentTarget.value);
72
73
  onChange?.({
73
74
  query: currentTarget.value,
74
- value: optionsValues.includes(currentTarget.value) ? currentTarget.value : ''
75
+ value: optionsValues.includes(targetValue) ? optionsValues[optionsValues.indexOf(targetValue)] : ''
75
76
  });
76
77
  }, [onChange, optionsValues]);
77
78
  useEffect(() => {
78
- const currentValues = Children.map(filteredOptions, (o) => o.props.value);
79
+ const currentValues = Children.map(filteredOptions, (o) => {
80
+ return typeof o.props.children === 'string' ? o.props.children.toLowerCase() : o.props.children.join('').toLowerCase();
81
+ });
79
82
  val && setValue(String(val));
80
83
  setOptionValues(currentValues);
81
84
  }, [filteredOptions, val]);
@@ -1 +1 @@
1
- .Button{-webkit-touch-callout:none;grid-gap:.44rem;align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:.22rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-weight:600;justify-content:center;margin:0;min-inline-size:min-content;overflow:hidden;position:relative;text-decoration:none;-webkit-user-select:none;user-select:none;white-space:nowrap}.Button[data-button-dimension=big]{block-size:2.67rem;font-size:1rem;padding:.55rem 1.33rem .66rem}.Button[data-button-dimension=regular]{block-size:2.22rem;font-size:.89rem;padding:.33rem .89rem .44rem}.Button[data-button-dimension=small]{grid-gap:.22rem;block-size:1.33rem;font-size:.78rem;padding:0 .44rem .11rem}.Button[data-button-kind=primary]{background:var(--cta-default);color:var(--cta-foreground)}.Button[data-button-kind=primary]:not([aria-pressed=true],[aria-disabled=true]):is(:active){background:var(--cta-dark)}.Button[data-button-kind=primary]:where([aria-pressed=true]),.Button[data-button-kind=primary]:where([aria-pressed=true]:active){background:#9e0018;color:#fff}.Button[data-button-kind=secondary]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:not([aria-pressed=true],[aria-disabled=true]):is(:active){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:where([aria-pressed=true]),.Button[data-button-kind=secondary]:where([aria-pressed=true]:active){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=flat]{color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:not([aria-pressed=true],[aria-disabled=true]):is(:active){background-color:var(--global-vibrancy-background-hard)}.Button[data-button-kind=flat]:is(:hover,:focus){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:where([aria-pressed=true]),.Button[data-button-kind=flat]:where([aria-pressed=true]:is(:active,:focus)){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-fullwidth=true]{inline-size:100%}.Button[data-button-icon-position=right]{flex-direction:row-reverse}.Button[aria-disabled=true],.Button[aria-disabled=true]:is(:hover,:focus,:active){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed}.Button[aria-busy=true]>:not(.SpinnerIndicator){visibility:hidden}.SpinnerIndicator{bottom:0;display:grid;left:0;place-content:center;position:absolute;right:0;top:0}.ButtonsGroup{display:inline-flex}.ButtonsGroup>*+*{box-shadow:inset 1px 0 0 hsla(0,0%,40%,.2)}.ButtonsGroup>:not(:first-child,:last-child,:only-of-type){border-radius:0}.ButtonsGroup>:first-child:not(:only-of-type){border-bottom-right-radius:0;border-top-right-radius:0}.ButtonsGroup>:last-child:not(:only-of-type){border-bottom-left-radius:0;border-top-left-radius:0}
1
+ .Button{-webkit-touch-callout:none;grid-gap:.44rem;align-items:center;-webkit-appearance:none;appearance:none;background:none;border:0;border-radius:.22rem;box-sizing:border-box;cursor:pointer;display:inline-flex;font-family:inherit;font-weight:600;justify-content:center;margin:0;min-inline-size:min-content;overflow:hidden;position:relative;text-decoration:none;transition:all .1s cubic-bezier(.3,.07,.34,1);-webkit-user-select:none;user-select:none;white-space:nowrap}.Button:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):active{transform:scale(.98);transform-origin:center}.Button[data-button-dimension=big]{block-size:2.67rem;font-size:1rem;padding:.55rem 1.33rem .66rem}.Button[data-button-dimension=regular]{block-size:2.22rem;font-size:.89rem;padding:.33rem .89rem .44rem}.Button[data-button-dimension=small]{grid-gap:.22rem;block-size:1.33rem;font-size:.78rem;padding:0 .44rem .11rem}.Button[data-button-kind=primary]{background:var(--cta-default);color:var(--cta-foreground)}.Button[data-button-kind=primary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:active){background:var(--cta-dark)}.Button[data-button-kind=primary]:where([aria-pressed=true]),.Button[data-button-kind=primary]:where([aria-pressed=true]:active){background:#9e0018;color:#fff}.Button[data-button-kind=secondary]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:active){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=secondary]:where([aria-pressed=true]),.Button[data-button-kind=secondary]:where([aria-pressed=true]:active){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=flat]{color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:active){background-color:var(--global-vibrancy-background-hard)}.Button[data-button-kind=flat]:is(:hover,:focus){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]:where([aria-pressed=true]),.Button[data-button-kind=flat]:where([aria-pressed=true]:is(:active,:focus)){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-fullwidth=true]{inline-size:100%}.Button[data-button-icon-position=right]{flex-direction:row-reverse}.Button[aria-disabled=true],.Button[aria-disabled=true]:is(:hover,:focus,:active){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed;pointer-events:none}.Button[aria-busy=true]{pointer-events:none}.Button[aria-busy=true]>:not(.SpinnerIndicator){visibility:hidden}.SpinnerIndicator{bottom:0;display:grid;left:0;place-content:center;position:absolute;right:0;top:0}.ButtonsGroup{display:inline-flex}.ButtonsGroup>*+*{box-shadow:inset 1px 0 0 hsla(0,0%,40%,.2)}.ButtonsGroup>:not(:first-child,:last-child,:only-of-type){border-radius:0}.ButtonsGroup>:first-child:not(:only-of-type){border-bottom-right-radius:0;border-top-right-radius:0}.ButtonsGroup>:last-child:not(:only-of-type){border-bottom-left-radius:0;border-top-left-radius:0}
@@ -1 +1 @@
1
- .CircularProgress{--hue:220;--track-size:4px;--track-bg:var(--dimmed-1);aspect-ratio:1/1;display:grid;font-size:1rem;font-weight:700;inline-size:3.56rem;min-inline-size:64px;place-items:center;position:relative}.CircularProgress[data-circular-progress-show-progress=true]:after{content:attr(data-circular-progress);display:block}.CircularProgress[data-circular-progress-dimension=regular]{--track-size:8px;font-size:1.77rem;inline-size:7.56rem}.CircularProgress[data-circular-progress-dimension=big]{--track-size:16px;font-size:2.37rem;inline-size:10.22rem}.CircularProgress:before{background:conic-gradient(var(--cta-default),var(--cta-default) var(--progress,0),var(--track-bg) var(--progress,0) 100%);border-radius:50%;bottom:0;content:"";left:0;-webkit-mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));position:absolute;right:0;top:0;z-index:-1}
1
+ .CircularProgress{--hue:220;--track-size:4px;--track-bg:var(--dimmed-1);aspect-ratio:1/1;display:grid;font-size:1rem;font-weight:700;inline-size:3.56rem;min-inline-size:64px;place-items:center;position:relative}.CircularProgress[data-circular-progress-show-progress=true]:after{content:attr(data-circular-progress);display:block}.CircularProgress[data-circular-progress-dimension=regular]{--track-size:8px;font-size:1.77rem;inline-size:7.56rem}.CircularProgress[data-circular-progress-dimension=big]{--track-size:16px;font-size:2.37rem;inline-size:10.22rem}.CircularProgress:before{background:conic-gradient(var(--progress-color,var(--cta-default)),var(--progress-color,var(--cta-default)) var(--progress,0),var(--track-bg) var(--progress,0) 100%);border-radius:50%;bottom:0;content:"";left:0;-webkit-mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));mask-image:radial-gradient(transparent calc(71% - var(--track-size)),#000 calc(71% - var(--track-size) + .5px));position:absolute;right:0;top:0;z-index:-1}
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.d.ts","sourceRoot":"","sources":["../../../src/components/drawer/drawer.tsx"],"names":[],"mappings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OAAO,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,eAAO,MAAM,MAAM;;;IAzCjB;;;;;;OAMG;;IAEH;;;OAGG;YACK,SAAS;IACjB;;;;OAIG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;;OAIG;;kDAkGH,CAAA"}
@@ -6,8 +6,13 @@ import { FocusOn, AutoFocusInside } from 'react-focus-on';
6
6
  import { useKeyPress } from 'ahooks';
7
7
  import styles from './drawer.module.css';
8
8
  import { useOverlayContext, Elevator, IconButton, Stack, Title } from '../..';
9
+ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
9
10
  export const Drawer = forwardRef(({ children, className, closeOnClickOutside = true, showHeader = true, maxWidth = '400px', side = 'right', theme = 'light', isModal = true, title, ...otherProps }, forwardedRef) => {
10
11
  const { titleId, onClose } = useOverlayContext();
12
+ const cssEasingToArray = (cssEasing) => {
13
+ const [x1, y1, x2, y2] = cssEasing.replace(/[^0-9.,]+/g, '').split(',').map(i => parseFloat(i));
14
+ return [x1, y1, x2, y2];
15
+ };
11
16
  useKeyPress('esc', () => (!isModal && onClose) && onClose());
12
17
  const dynamicStyle = {
13
18
  '--max-w': maxWidth
@@ -16,18 +21,18 @@ export const Drawer = forwardRef(({ children, className, closeOnClickOutside = t
16
21
  visible: {
17
22
  x: 0,
18
23
  transition: {
19
- ease: [0, 0, 0.34, 1],
20
- duration: 0.35
24
+ ease: cssEasingToArray(tkns.easing.entrance),
25
+ duration: parseFloat(tkns.duration[500].replace('s', ''))
21
26
  }
22
27
  },
23
28
  hidden: {
24
29
  x: side === 'right' ? '100%' : '-100%',
25
30
  transition: {
26
- ease: [0.3, 0.07, 1, 1],
27
- duration: 0.2
31
+ ease: cssEasingToArray(tkns.easing.exit),
32
+ duration: parseFloat(tkns.duration[500].replace('s', ''))
28
33
  }
29
34
  }
30
35
  };
31
- return (_jsx("div", { role: "dialog", "aria-modal": isModal, "data-theme": theme, "aria-labelledby": titleId, className: clsx(styles.Drawer, className), ref: forwardedRef, ...otherProps, children: _jsx(FocusOn, { enabled: isModal, onClickOutside: closeOnClickOutside ? onClose : undefined, onEscapeKey: onClose, children: _jsx(LazyMotion, { features: domMax, children: _jsx(m.div, { variants: DrawerAnimation, initial: "hidden", animate: "visible", exit: "hidden", className: styles.Container, "data-drawer-side": side, children: _jsx(Elevator, { resting: 4, children: _jsxs("div", { className: styles.Content, style: dynamicStyle, ref: forwardedRef, ...otherProps, children: [(showHeader && title) && (_jsxs(Stack, { vAlign: "center", fill: false, hAlign: "space-between", direction: "row", className: styles.Header, children: [_jsx(Title, { responsive: false, level: "6", id: titleId, children: title }), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" })] })), _jsx(AutoFocusInside, { children: children })] }) }) }) }) }) }));
36
+ return (_jsx("div", { role: "dialog", "aria-modal": isModal, "data-theme": theme, "aria-labelledby": titleId, className: clsx(styles.Drawer, className), ref: forwardedRef, ...otherProps, children: _jsx(FocusOn, { enabled: isModal, onClickOutside: closeOnClickOutside ? onClose : undefined, onEscapeKey: onClose, children: _jsx(LazyMotion, { features: domMax, children: _jsx(m.div, { variants: DrawerAnimation, initial: "hidden", animate: "visible", exit: "hidden", className: styles.Container, "data-drawer-side": side, children: _jsx(Elevator, { resting: 4, children: _jsxs("div", { className: styles.Content, style: dynamicStyle, ref: forwardedRef, ...otherProps, children: [(showHeader && title) && (_jsxs(Stack, { vAlign: "center", hAlign: "space-between", direction: "row", className: styles.Header, columnGap: 24, children: [_jsx(Title, { responsive: false, level: "6", id: titleId, children: title }), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" })] })), _jsx(AutoFocusInside, { children: children })] }) }) }) }) }) }));
32
37
  });
33
38
  Drawer.displayName = 'Drawer';
@@ -1 +1 @@
1
- .Drawer{display:contents}.Container{align-items:stretch;bottom:0;display:grid;left:0;pointer-events:none;position:absolute;right:0;top:0}.Container[data-drawer-side=right]{justify-content:flex-end}.Container[data-drawer-side=left]{justify-content:flex-start}@media (min-width:30em){.Container{overflow:auto}}.Container>*{pointer-events:auto}.Content{-webkit-overflow-scrolling:touch;background-color:var(--global-background);inline-size:100%;max-inline-size:var(--max-w);overflow:auto;overscroll-behavior:contain}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:.89rem 4.44rem .89rem 1.33rem;position:sticky;top:0}.CloseButton.CloseButton{position:absolute;right:.44rem;top:50%;transform:translateY(-50%)}
1
+ .Drawer{display:contents}.Container{align-items:stretch;bottom:0;display:grid;left:0;pointer-events:none;position:absolute;right:0;top:0}.Container[data-drawer-side=right]{justify-content:flex-end}.Container[data-drawer-side=left]{justify-content:flex-start}@media (min-width:30em){.Container{overflow:auto}}.Container>*{pointer-events:auto}.Content{-webkit-overflow-scrolling:touch;background-color:var(--global-background);inline-size:100%;max-inline-size:var(--max-w);overflow:auto;overscroll-behavior:contain}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:.89rem .89rem 1.33rem 1.33rem;position:sticky;top:0}.CloseButton.CloseButton{flex-grow:0}
@@ -1,4 +1,5 @@
1
1
  export * from './autocomplete';
2
+ export * from './aspect-ratio';
2
3
  export * from './avatar';
3
4
  export * from './button';
4
5
  export * from './card';
@@ -8,6 +9,7 @@ export * from './clamp-text';
8
9
  export * from './container';
9
10
  export * from './datetime';
10
11
  export * from './disclosure';
12
+ export * from './aspect-ratio';
11
13
  export * from './drawer';
12
14
  export * from './popover';
13
15
  export * from './elevator';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA;AACxB,cAAc,QAAQ,CAAA;AACtB,cAAc,QAAQ,CAAA;AACtB,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;A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1B,cAAc,cAAc,CAAA;AAC5B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,UAAU,CAAA;AACxB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,QAAQ,CAAA;AACtB,cAAc,eAAe,CAAA;AAC7B,cAAc,QAAQ,CAAA;AACtB,cAAc,cAAc,CAAA;AAC5B,cAAc,eAAe,CAAA;AAC7B,cAAc,mBAAmB,CAAA;AACjC,cAAc,QAAQ,CAAA;AACtB,cAAc,WAAW,CAAA;AACzB,cAAc,QAAQ,CAAA;AACtB,cAAc,SAAS,CAAA;AACvB,cAAc,qBAAqB,CAAA;AACnC,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,UAAU,CAAA;AACxB,cAAc,sBAAsB,CAAA;AACpC,cAAc,aAAa,CAAA;AAC3B,cAAc,YAAY,CAAA;AAC1B,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA;AAC1B,cAAc,WAAW,CAAA;AACzB,cAAc,gBAAgB,CAAA;AAC9B,cAAc,SAAS,CAAA;AACvB,cAAc,cAAc,CAAA;AAC5B,cAAc,OAAO,CAAA;AACrB,cAAc,SAAS,CAAA;AACvB,cAAc,QAAQ,CAAA;AACtB,cAAc,aAAa,CAAA;AAC3B,cAAc,SAAS,CAAA;AACvB,cAAc,iBAAiB,CAAA;AAC/B,cAAc,WAAW,CAAA"}
@@ -1,4 +1,5 @@
1
1
  export * from './autocomplete';
2
+ export * from './aspect-ratio';
2
3
  export * from './avatar';
3
4
  export * from './button';
4
5
  export * from './card';
@@ -8,6 +9,7 @@ export * from './clamp-text';
8
9
  export * from './container';
9
10
  export * from './datetime';
10
11
  export * from './disclosure';
12
+ export * from './aspect-ratio';
11
13
  export * from './drawer';
12
14
  export * from './popover';
13
15
  export * from './elevator';
@@ -1 +1 @@
1
- {"version":3,"file":"info-state.d.ts","sourceRoot":"","sources":["../../../src/components/info-state/info-state.tsx"],"names":[],"mappings":"AA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AAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;IAC5E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,SAAS;;;IA9BpB;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;gBACS,UAAU,CAAC,WAAW,CAAC;IACnC;;;OAGG;cACO,SAAS;kDAoEnB,CAAA"}
@@ -2,8 +2,17 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { forwardRef } from 'react';
3
3
  import { Stack, Icon, Title, Text } from '../..';
4
4
  import styles from './info-state.module.css';
5
+ import { domMax, LazyMotion, m } from 'framer-motion';
5
6
  export const InfoState = forwardRef(({ className, children, title, icon, image, direction = 'column', iconColor = 'blue', actions, ...otherProps }, forwardedRef) => {
6
7
  const isHorizontal = direction === 'row';
7
- return (_jsxs(Stack, { ref: forwardedRef, direction: direction, rowGap: 24, columnGap: 32, className: className, hAlign: isHorizontal ? 'start' : 'center', vAlign: (isHorizontal && image) ? 'center' : 'start', fill: false, wrap: !!image, ...otherProps, children: [(!image && icon) && (_jsx("span", { "data-info-state-icon-color": iconColor, className: styles.IconWrapper, children: _jsx(Icon, { source: icon, dimension: 48 }) })), (image && !icon) && _jsx("img", { className: styles.Image, alt: "", width: "400", src: image, loading: "lazy", decoding: "async" }), _jsxs(Stack, { rowGap: 16, hAlign: isHorizontal ? 'start' : 'center', vAlign: "center", fill: false, children: [_jsx(Title, { maxWidth: "20ch", textAlign: isHorizontal ? 'start' : 'center', level: "4", children: title }), _jsx(Text, { maxWidth: "60ch", dimmed: 6, textAlign: isHorizontal ? 'start' : 'center', children: children }), actions && (_jsx(Stack, { vPadding: 16, inline: true, direction: "row", columnGap: 16, rowGap: 16, wrap: true, children: actions }))] })] }));
8
+ return (_jsx(Stack, { ref: forwardedRef, direction: direction, rowGap: 24, columnGap: 32, className: className, hAlign: isHorizontal ? 'start' : 'center', vAlign: (isHorizontal && image) ? 'center' : 'start', fill: false, wrap: !!image, ...otherProps, children: _jsxs(LazyMotion, { features: domMax, children: [(!image && icon) && (_jsx(m.span, { "data-info-state-icon-color": iconColor, className: styles.IconWrapper, animate: {
9
+ scale: [1, 0.8, 1]
10
+ }, transition: {
11
+ duration: 0.8,
12
+ repeat: Infinity,
13
+ repeatDelay: 5.2,
14
+ repeatType: 'reverse',
15
+ type: 'spring'
16
+ }, children: _jsx(Icon, { source: icon, dimension: 48 }) })), (image && !icon) && _jsx("img", { className: styles.Image, alt: "", width: "400", src: image, loading: "lazy", decoding: "async" }), _jsxs(Stack, { rowGap: 16, hAlign: isHorizontal ? 'start' : 'center', vAlign: "center", fill: false, children: [_jsx(Title, { maxWidth: "20ch", textAlign: isHorizontal ? 'start' : 'center', level: "4", children: title }), _jsx(Text, { maxWidth: "60ch", dimmed: 6, textAlign: isHorizontal ? 'start' : 'center', children: children }), actions && (_jsx(Stack, { vPadding: 16, inline: true, direction: "row", columnGap: 16, rowGap: 16, wrap: true, children: actions }))] })] }) }));
8
17
  });
9
18
  InfoState.displayName = 'InfoState';
@@ -1 +1 @@
1
- .InputGroup{position:relative}.InputGroup[data-input-group-has-end=true] .Start *{border-bottom-right-radius:0;border-top-right-radius:0}.InputGroup[data-input-group-has-end=true] .InputField input{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.InputGroup[data-input-group-has-start=true] .InputField input{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.InputGroup[data-input-group-has-end=true] .End *{border-bottom-left-radius:0;border-top-left-radius:0}
1
+ .InputGroup{position:relative}.Start :is(button,input,a,select,fieldset[tabindex="0"]){outline-offset:-2px}.InputGroup[data-input-group-has-end=true] .Start *{border-bottom-right-radius:0;border-top-right-radius:0}.InputField :is(button,input,a,select,fieldset[tabindex="0"]){outline-offset:-2px}.InputGroup[data-input-group-has-end=true] .InputField input{border-bottom-right-radius:0;border-right:0;border-top-right-radius:0}.InputGroup[data-input-group-has-start=true] .InputField input{border-bottom-left-radius:0;border-left:0;border-top-left-radius:0}.End :is(button,input,a,select,fieldset[tabindex="0"]){outline-offset:-2px}.InputGroup[data-input-group-has-end=true] .End *{border-bottom-left-radius:0;border-top-left-radius:0}
@@ -1 +1 @@
1
- .LinearProgress,.Progress{position:relative}.Progress{--progress-height:0.22rem;--track-color:var(--dimmed-1);--fill-color:var(--cta-default);-webkit-appearance:none;appearance:none;background:var(--track-color);border:none;display:block;height:var(--progress-height);overflow:hidden;vertical-align:baseline;width:100%}.Progress[data-progress-dimension=big]{--progress-height:0.44rem}.Progress::-webkit-progress-bar{background-color:transparent}.Progress::-webkit-progress-value{background:var(--fill-color);-webkit-transition:width .2s ease-out;transition:width .2s ease-out}.Progress::-moz-progress-bar{background:var(--fill-color)}.Progress:not([value])::-moz-progress-bar{background:transparent}.Progress:indeterminate{animation:progress-stripes 2s linear infinite;background-image:linear-gradient(to right,transparent 50%,var(--fill-color) 50%,var(--fill-color) 60%,transparent 60%,transparent 71.5%,var(--fill-color) 71.5%,var(--fill-color) 84%,transparent 84%);background-size:200% 100%}.Percentage{left:var(--offset);position:absolute;transform:translateX(var(--translation));transition:left .2s ease-out}@keyframes progress-stripes{0%{background-position:left -31.25% top 0;background-size:200% 100%}50%{background-position:left -49% top 0;background-size:800% 100%}to{background-position:left -102% top 0;background-size:400% 100%}}
1
+ .LinearProgress,.Progress{position:relative}.Progress{--progress-height:0.22rem;--track-color:var(--dimmed-1);--fill-color:var(--cta-default);-webkit-appearance:none;appearance:none;background:var(--track-color);border:none;display:block;height:var(--progress-height);overflow:hidden;vertical-align:baseline;width:100%}.Progress[data-progress-dimension=big]{--progress-height:0.44rem}.Progress::-webkit-progress-bar{background-color:transparent}.Progress::-webkit-progress-value{background:var(--fill-color);-webkit-transition:width .2s cubic-bezier(0,0,.34,1);transition:width .2s cubic-bezier(0,0,.34,1)}.Progress::-moz-progress-bar{background:var(--fill-color)}.Progress:not([value])::-moz-progress-bar{background:transparent}.Progress:indeterminate{animation:progress-stripes 2s linear infinite;background-image:linear-gradient(to right,transparent 50%,var(--fill-color) 50%,var(--fill-color) 60%,transparent 60%,transparent 71.5%,var(--fill-color) 71.5%,var(--fill-color) 84%,transparent 84%);background-size:200% 100%}.Percentage{left:var(--offset);position:absolute;transform:translateX(var(--translation));transition:left .2s cubic-bezier(0,0,.34,1)}@keyframes progress-stripes{0%{background-position:left -31.25% top 0;background-size:200% 100%}50%{background-position:left -49% top 0;background-size:800% 100%}to{background-position:left -102% top 0;background-size:400% 100%}}
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAI3E,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAA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@ -16,8 +16,8 @@ export const MenuItem = forwardRef(({ className, children, onClick, icon, dimens
16
16
  }
17
17
  }, [handleClick, onClick, value]);
18
18
  const InnerContent = useMemo(() => (_jsxs(Stack, { direction: isIconRight ? 'row-reverse' : 'row', as: "span", fill: false, className: styles.ItemContent, hAlign: isIconRight ? 'space-between' : 'start', vAlign: "center", columnGap: 8, hPadding: 16, vPadding: 8, "data-menu-item-icon-right": isIconRight, "data-menu-item-has-icon": Boolean(icon), "data-menu-item-padding": padding, style: { inlineSize: '100%' }, children: [icon && (_jsx(Icon, { className: styles.IconClass, source: icon, dimension: dimension === 'small' ? 12 : 16 })), _jsxs(Stack, { className: styles.DecorationContent, columnGap: 16, fill: false, direction: "row", hAlign: "space-between", children: [children, decoration] })] })), [children, dimension, icon, isIconRight, decoration, padding]);
19
- return (_jsx(Wrapper, { autoFocus: autoFocus, ref: itemRef, role: "menuitem", className: clsx(styles.MenuItem, className), onClick: disabled ? undefined : triggerClick, onKeyDown: disabled ? undefined : handleKeyDown, tabIndex: tabIndex, "aria-disabled": disabled, type: Wrapper === 'button' ? 'button' : undefined, "data-menu-item-dimension": dimension, ...otherProps, children: description
20
- ? (_jsx(Tooltip, { fill: true, open: focused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }))
21
- : InnerContent }));
19
+ return (_jsx(Stack, { as: "li", role: "none", children: _jsx(Wrapper, { autoFocus: autoFocus, ref: itemRef, role: "menuitem", className: clsx(styles.MenuItem, className), onClick: disabled ? undefined : triggerClick, onKeyDown: disabled ? undefined : handleKeyDown, tabIndex: tabIndex, "aria-disabled": disabled, type: Wrapper === 'button' ? 'button' : undefined, "data-menu-item-dimension": dimension, ...otherProps, children: description
20
+ ? (_jsx(Tooltip, { fill: true, open: focused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }))
21
+ : InnerContent }) }));
22
22
  });
23
23
  MenuItem.displayName = 'Menu.Item';
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const MenuSeparator: () => JSX.Element;
3
+ //# sourceMappingURL=menu-separator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"menu-separator.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-separator/menu-separator.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,aAAa,mBAAsE,CAAA"}
@@ -0,0 +1,3 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { Stack, Separator } from '../../..';
3
+ export const MenuSeparator = () => _jsx(Stack, { as: "li", role: "none", vPadding: 8, children: _jsx(Separator, {}) });
@@ -1,5 +1,6 @@
1
1
  import { ReactNode, HTMLAttributes, ForwardRefExoticComponent } from 'react';
2
2
  import { MenuItem, MenuItemProps } from './menu-item/menu-item';
3
+ import { MenuSeparator } from './menu-separator/menu-separator';
3
4
  import { MenuItemCheckbox, MenuItemCheckboxProps } from './menu-item/menu-item-checkbox';
4
5
  import { Polymorphic } from '../..';
5
6
  export declare type MenuProps = HTMLAttributes<HTMLUListElement> & {
@@ -15,6 +16,7 @@ export declare type MenuProps = HTMLAttributes<HTMLUListElement> & {
15
16
  declare type MenuComponent = ForwardRefExoticComponent<MenuProps> & {
16
17
  Item: Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof MenuItem>, Polymorphic.OwnProps<typeof MenuItem> & MenuItemProps>;
17
18
  ItemCheckbox: Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof MenuItemCheckbox>, Polymorphic.OwnProps<typeof MenuItemCheckbox> & MenuItemCheckboxProps>;
19
+ Separator: typeof MenuSeparator;
18
20
  };
19
21
  export declare const Menu: MenuComponent;
20
22
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,SAAS,EAAE,cAAc,EAAE,yBAAyB,EAAiB,MAAM,OAAO,CAAA;AAEjH,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBA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G;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAA;AAED,aAAK,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAC1D,IAAI,EAAE,WAAW,CAAC,mBAAmB,CACnC,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,aAAa,CACtD,CAAC;IACF,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAC3C,WAAW,CAAC,gBAAgB,CAAC,OAAO,gBAAgB,CAAC,EACrD,WAAW,CAAC,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG,qBAAqB,CACtE,CAAC;IACF,SAAS,EAAE,OAAO,aAAa,CAAC;CACjC,CAAA;AAED,eAAO,MAAM,IAAI,eA6BE,CAAA"}
@@ -1,18 +1,19 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { Children, forwardRef } from 'react';
2
+ import { forwardRef } from 'react';
3
3
  import { RovingTabIndexProvider } from 'react-roving-tabindex';
4
4
  import { MenuItem } from './menu-item/menu-item';
5
+ import { MenuSeparator } from './menu-separator/menu-separator';
5
6
  import { MenuItemCheckbox } from './menu-item/menu-item-checkbox';
6
7
  import { Stack, Elevator } from '../..';
7
8
  import styles from './menu.module.css';
8
9
  import clsx from 'clsx';
9
10
  export const Menu = forwardRef(({ className, children, maxHeight, style, ...otherProps }, forwardedRef) => {
10
- const renderedChildren = Children.toArray(children).filter(Boolean);
11
11
  const computedStyle = {
12
12
  '--max-height': maxHeight
13
13
  };
14
- return (_jsx(Elevator, { resting: 2, children: _jsx(Stack, { as: "ul", ref: forwardedRef, className: clsx(styles.Menu, className), style: { ...computedStyle, ...style }, "data-menu-should-scroll": Boolean(maxHeight), vPadding: 8, role: "menu", ...otherProps, children: _jsx(RovingTabIndexProvider, { options: { direction: 'vertical', loopAround: true }, children: Children.map(renderedChildren, (child) => (_jsx(Stack, { as: "li", role: "none", vPadding: child.type?.displayName === 'Separator' ? 8 : undefined, children: child }))) }) }) }));
14
+ return (_jsx(Elevator, { resting: 2, children: _jsx(Stack, { as: "ul", ref: forwardedRef, className: clsx(styles.Menu, className), style: { ...computedStyle, ...style }, "data-menu-should-scroll": Boolean(maxHeight), vPadding: 8, role: "menu", ...otherProps, children: _jsx(RovingTabIndexProvider, { options: { direction: 'vertical', loopAround: true }, children: children }) }) }));
15
15
  });
16
16
  Menu.displayName = 'Menu';
17
17
  Menu.Item = MenuItem;
18
18
  Menu.ItemCheckbox = MenuItemCheckbox;
19
+ Menu.Separator = MenuSeparator;
@@ -1 +1 @@
1
- .Content{-webkit-overflow-scrolling:touch;align-self:end;background-color:var(--global-background);border-radius:.89rem .89rem 0 0;inline-size:100%;justify-self:center;max-block-size:95vh;overflow:auto;overscroll-behavior:contain}@media (min-width:30em){.Content{align-self:center;border-radius:.44rem;justify-self:center;max-block-size:80vh;max-inline-size:600px}}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:.89rem 4.44rem .89rem 1.33rem;position:sticky;top:0}.CloseButton.CloseButton{position:absolute;right:.44rem;top:.44rem}
1
+ .Content{-webkit-overflow-scrolling:touch;align-self:end;background-color:var(--global-background);border-radius:.89rem .89rem 0 0;inline-size:100%;justify-self:center;max-block-size:95vh;overflow:auto;overscroll-behavior:contain}@media (min-width:48em){.Content{align-self:center;border-radius:.44rem;justify-self:center;max-block-size:80vh;max-inline-size:600px}}.Header{background-color:inherit;border-bottom:1px solid var(--dimmed-1);padding:.89rem 4.44rem .89rem 1.33rem;position:sticky;top:0}.CloseButton.CloseButton{position:absolute;right:.44rem;top:.44rem}
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAIrD,OAAO,EAAgB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAIzE,oBAAY,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC3D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAA;AAED,aAAK,cAAc,GAAG,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,GAAG;IAClE,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAA;AAqBD,eAAO,MAAM,KAAK,gBAmCE,CAAA"}
1
+ {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/modal.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAW,MAAM,OAAO,CAAA;AAI9D,OAAO,EAAgB,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAMzE,oBAAY,UAAU,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC3D;;;;OAIG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAA;AAED,aAAK,cAAc,GAAG,KAAK,CAAC,yBAAyB,CAAC,UAAU,CAAC,GAAG;IAClE,OAAO,EAAE,KAAK,CAAC,yBAAyB,CAAC,iBAAiB,CAAC,CAAC;CAC7D,CAAA;AAWD,eAAO,MAAM,KAAK,gBAyDE,CAAA"}
@@ -1,31 +1,43 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { forwardRef } from 'react';
2
+ import { forwardRef, useMemo } from 'react';
3
3
  import { domMax, LazyMotion, m } from 'framer-motion';
4
4
  import clsx from 'clsx';
5
5
  import { FocusOn } from 'react-focus-on';
6
6
  import { ModalContent } from './content/modal-content';
7
7
  import styles from './modal.module.css';
8
8
  import { useOverlayContext } from '../..';
9
- const ModalAnimation = {
10
- visible: {
11
- scale: 1,
12
- opacity: 1,
13
- transition: {
14
- ease: [0, 0, 0.34, 1],
15
- duration: 0.35
16
- }
17
- },
18
- hidden: {
19
- scale: 0.98,
20
- opacity: 0,
21
- transition: {
22
- ease: [0.3, 0.07, 1, 1],
23
- duration: 0.2
24
- }
25
- }
9
+ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
10
+ import { configResponsive, useResponsive } from 'ahooks';
11
+ const cssEasingToArray = (cssEasing) => {
12
+ const [x1, y1, x2, y2] = cssEasing.replace(/[^0-9.,]+/g, '').split(',').map(i => parseFloat(i));
13
+ return [x1, y1, x2, y2];
26
14
  };
15
+ configResponsive({
16
+ wide: 768
17
+ });
27
18
  export const Modal = forwardRef(({ children, className, closeOnClickOutside = true, ...otherProps }, forwardedRef) => {
28
19
  const { titleId, onClose } = useOverlayContext();
20
+ const responsive = useResponsive();
21
+ const ModalAnimation = useMemo(() => ({
22
+ visible: {
23
+ scale: 1,
24
+ opacity: 1,
25
+ y: 0,
26
+ transition: {
27
+ ease: cssEasingToArray(tkns.easing.entrance),
28
+ duration: parseFloat(tkns.duration[300].replace('s', ''))
29
+ }
30
+ },
31
+ hidden: {
32
+ scale: responsive.wide ? 0.98 : 1,
33
+ opacity: responsive.wide ? 0 : 1,
34
+ y: responsive.wide ? 0 : '100%',
35
+ transition: {
36
+ ease: cssEasingToArray(tkns.easing.exit),
37
+ duration: responsive.wide ? parseFloat(tkns.duration[200].replace('s', '')) : parseFloat(tkns.duration[500].replace('s', ''))
38
+ }
39
+ }
40
+ }), [responsive]);
29
41
  return (_jsx("div", { role: "dialog", "aria-modal": "true", "aria-labelledby": titleId, className: clsx(styles.Modal, className), ref: forwardedRef, ...otherProps, children: _jsx(FocusOn, { onClickOutside: closeOnClickOutside ? onClose : undefined, onEscapeKey: onClose, children: _jsx(LazyMotion, { features: domMax, children: _jsx(m.div, { variants: ModalAnimation, initial: "hidden", animate: "visible", exit: "hidden", className: styles.Container, children: children }) }) }) }));
30
42
  });
31
43
  Modal.displayName = 'Modal';
@@ -1 +1 @@
1
- .Modal{display:contents}.Container{align-items:center;bottom:0;display:grid;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (min-width:30em){.Container{overflow:auto;padding:0 1.33rem}}.Container>*{pointer-events:auto}
1
+ .Modal{display:contents}.Container{align-items:center;bottom:0;display:grid;justify-content:center;left:0;pointer-events:none;position:absolute;right:0;top:0;z-index:1}@media (min-width:48em){.Container{overflow:auto;padding:0 1.33rem}}.Container>*{pointer-events:auto}
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EASV,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAY,MAAM,gBAAgB,CAAA;AAK3F,oBAAY,YAAY,GAAG,cAAc,GAAG;IAC1C;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAA;AAqBD,eAAO,MAAM,OAAO;IAjElB;;OAEG;cACO,SAAS;IACnB;;OAEG;aACM,SAAS;IAClB;;OAEG;;IAEH;;;;;;;;OAQG;;IAEH;;OAEG;;IAEH;;;OAGG;2BACmB,OAAO,KAAK,IAAI;IACtC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;kDAkJH,CAAA"}
1
+ {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/popover/popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EASV,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAY,MAAM,gBAAgB,CAAA;AAM3F,oBAAY,YAAY,GAAG,cAAc,GAAG;IAC1C;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,aAAa,GAAG,aAAa,GAAG,kBAAkB,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B,CAAA;AA0BD,eAAO,MAAM,OAAO;IAtElB;;OAEG;cACO,SAAS;IACnB;;OAEG;aACM,SAAS;IAClB;;OAEG;;IAEH;;;;;;;;OAQG;;IAEH;;OAEG;;IAEH;;;OAGG;2BACmB,OAAO,KAAK,IAAI;IACtC;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;;kDAuJH,CAAA"}
@@ -6,12 +6,17 @@ import { useUIDSeed } from 'react-uid';
6
6
  import { usePopperTooltip } from 'react-popper-tooltip';
7
7
  import { domMax, LazyMotion, m, AnimatePresence } from 'framer-motion';
8
8
  import clsx from 'clsx';
9
+ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
10
+ const cssEasingToArray = (cssEasing) => {
11
+ const [x1, y1, x2, y2] = cssEasing.replace(/[^0-9.,]+/g, '').split(',').map(i => parseFloat(i));
12
+ return [x1, y1, x2, y2];
13
+ };
9
14
  const PopoverAnimation = {
10
15
  visible: {
11
16
  y: 0,
12
17
  opacity: 1,
13
18
  transition: {
14
- ease: [0, 0, 0.34, 1],
19
+ ease: cssEasingToArray(tkns.easing.entrance),
15
20
  duration: 0.1
16
21
  }
17
22
  },
@@ -19,7 +24,7 @@ const PopoverAnimation = {
19
24
  y: -5,
20
25
  opacity: 0,
21
26
  transition: {
22
- ease: [0.3, 0.07, 1, 1],
27
+ ease: cssEasingToArray(tkns.easing.exit),
23
28
  duration: 0.1
24
29
  }
25
30
  }
@@ -1 +1 @@
1
- .ToggleButton{border-radius:200px;line-height:0;padding:0;transition:box-shadow .3s cubic-bezier(0,0,.34,1)}.ToggleButton[aria-pressed=true]{box-shadow:0 0 0 var(--border-width) var(--border-color),0 0 0 var(--border-width) var(--border-color)}.ToggleButton[data-button-kind=primary]{--border-color:rgba(207,42,67,.25)}.ToggleButton[data-button-kind=primary][aria-pressed=true]{background:none;color:var(--cta-default)}.ToggleButton[data-button-kind=secondary]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=secondary][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-kind=flat]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=flat][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-dimension=small]{--border-width:2px}.ToggleButton[data-button-dimension=regular]{--border-width:4px}.ToggleButton[data-button-dimension=big]{--border-width:6px}
1
+ .ToggleButton{border-radius:200px;line-height:0;padding:0}.ToggleButton[aria-pressed=true]{box-shadow:0 0 0 var(--border-width) var(--border-color),0 0 0 var(--border-width) var(--border-color)}.ToggleButton[data-button-kind=primary]{--border-color:rgba(207,42,67,.25)}.ToggleButton[data-button-kind=primary][aria-pressed=true]{background:none;color:var(--cta-default)}.ToggleButton[data-button-kind=secondary]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=secondary][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-kind=flat]{--border-color:var(--dimmed-2)}.ToggleButton[data-button-kind=flat][aria-pressed=true]{background:none;color:var(--global-vibrancy-foreground)}.ToggleButton[data-button-dimension=small]{--border-width:2px}.ToggleButton[data-button-dimension=regular]{--border-width:4px}.ToggleButton[data-button-dimension=big]{--border-width:6px}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderflow/react-components",
3
- "version": "8.5.0",
3
+ "version": "9.0.0",
4
4
  "description": "UI components from Wonderflow's Wanda design system",
5
5
  "author": "Wonderflow",
6
6
  "license": "MIT",