@wonderflow/react-components 10.7.0 → 10.8.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 (62) hide show
  1. package/dist/components/autocomplete/autocomplete.js +1 -1
  2. package/dist/components/avatar/avatar.js +1 -1
  3. package/dist/components/button/button.js +1 -1
  4. package/dist/components/button/button.module.css +1 -1
  5. package/dist/components/card/card.js +1 -1
  6. package/dist/components/card/card.module.css +1 -1
  7. package/dist/components/chip/chip.js +1 -1
  8. package/dist/components/circular-progress/circular-progress.js +1 -1
  9. package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
  10. package/dist/components/clamp-text/clamp-text.js +2 -1
  11. package/dist/components/clamp-text/clamp-text.module.css +1 -1
  12. package/dist/components/container/container.js +1 -1
  13. package/dist/components/disclosure/disclosure.js +1 -1
  14. package/dist/components/drawer/drawer.js +1 -1
  15. package/dist/components/grid/grid.js +1 -1
  16. package/dist/components/grid/item/grid-item.js +1 -1
  17. package/dist/components/icon-button/icon-button.js +1 -1
  18. package/dist/components/info-state/info-state.js +1 -1
  19. package/dist/components/input-group/input-group.js +1 -1
  20. package/dist/components/linear-progress/linear-progress.js +1 -1
  21. package/dist/components/list/list-item.js +1 -1
  22. package/dist/components/list/list.js +1 -1
  23. package/dist/components/masonry/masonry.js +1 -1
  24. package/dist/components/menu/menu-item/menu-item.js +2 -2
  25. package/dist/components/menu/menu.js +1 -1
  26. package/dist/components/modal/content/modal-content.d.ts +4 -0
  27. package/dist/components/modal/content/modal-content.d.ts.map +1 -1
  28. package/dist/components/modal/content/modal-content.js +1 -1
  29. package/dist/components/modal/modal.js +1 -1
  30. package/dist/components/overlay-container/overlay-container.js +1 -1
  31. package/dist/components/pagination/pagination.js +1 -1
  32. package/dist/components/popover/popover.js +1 -1
  33. package/dist/components/prose/prose.js +1 -1
  34. package/dist/components/select/select.js +1 -1
  35. package/dist/components/selection-controls/checkbox.js +1 -1
  36. package/dist/components/selection-controls/radio.js +1 -1
  37. package/dist/components/selection-controls/toggle.js +1 -1
  38. package/dist/components/separator/separator.js +1 -1
  39. package/dist/components/skeleton/skeleton.js +1 -1
  40. package/dist/components/slider/slider.js +1 -1
  41. package/dist/components/snackbar/snackbar.js +1 -1
  42. package/dist/components/snackbar/snackbar.module.css +1 -1
  43. package/dist/components/split-button/split-button.js +1 -1
  44. package/dist/components/stack/stack.js +2 -2
  45. package/dist/components/star-meter/star-meter.js +1 -1
  46. package/dist/components/symbol/symbol.js +1 -1
  47. package/dist/components/tab/tab.js +1 -1
  48. package/dist/components/tab/tabs-panel.js +1 -1
  49. package/dist/components/table/table-cell/table-cell.js +1 -1
  50. package/dist/components/table/table-checkbox/table-checkbox.js +1 -1
  51. package/dist/components/table/table-expand/table-expand.js +1 -1
  52. package/dist/components/table/table-header/table-header.js +1 -1
  53. package/dist/components/table/table-row/table-row.js +1 -1
  54. package/dist/components/table/table.js +2 -2
  55. package/dist/components/text/text.js +1 -1
  56. package/dist/components/textfield/base-field/base-field.js +1 -1
  57. package/dist/components/textfield/textfield.js +1 -1
  58. package/dist/components/title/title.d.ts.map +1 -1
  59. package/dist/components/title/title.js +4 -2
  60. package/dist/components/toggle-button/toggle-button.js +1 -1
  61. package/dist/components/tooltip/tooltip.js +2 -2
  62. package/package.json +8 -5
@@ -6,7 +6,7 @@ import { mergeRefs } from 'react-merge-refs';
6
6
  import { usePopperTooltip } from 'react-popper-tooltip';
7
7
  import { useUIDSeed } from 'react-uid';
8
8
  import { Menu, Skeleton, Stack, Text, Textfield, } from '../..';
9
- import styles from './autocomplete.module.css';
9
+ import * as styles from './autocomplete.module.css';
10
10
  import { AutocompleteOption } from './autocomplete-option';
11
11
  const AutocompleteAnimation = {
12
12
  visible: {
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './avatar.module.css';
4
+ import * as styles from './avatar.module.css';
5
5
  export const Avatar = forwardRef(({ className, src, dimension = 'regular', ...otherProps }, forwardedRef) => (_jsxs("picture", { className: clsx(styles.Avatar, className), "data-avatar-dimension": dimension, children: [_jsxs("svg", { "aria-hidden": "true", className: styles.Placeholder, height: 18, viewBox: "0 0 12 18", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { opacity: 0.7, d: "M6 0C3.795 0 2 1.794 2 4s1.795 4 4 4 4-1.794 4-4-1.795-4-4-4z", fill: "var(--highlight-blue-foreground)" }), _jsx("path", { d: "M8.4 9H3.6C1.612 9 0 10.575 0 12.531v5.126C1.814 18.517 3.85 19 6 19s4.186-.483 6-1.343v-5.126C12 10.581 10.394 9 8.4 9z", fill: "var(--highlight-blue-foreground)" })] }), src && (_jsx("img", { ref: forwardedRef, alt: "", src: src, ...otherProps }))] })));
6
6
  Avatar.displayName = 'Avatar';
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { Children, cloneElement, forwardRef, isValidElement, useCallback, } from 'react';
4
4
  import { Spinner, Symbol, } from '../..';
5
- import styles from './button.module.css';
5
+ import * as styles from './button.module.css';
6
6
  export const Button = forwardRef(({ kind = 'primary', dimension = 'regular', className, children, fullWidth, icon, disabled, iconPosition = 'left', iconColor, type = 'button', pressed, onClick, busy, as: Wrapper = 'button', ...otherProps }, forwardedRef) => {
7
7
  const handleClick = useCallback(() => (event) => {
8
8
  if (!disabled && onClick)
@@ -1 +1 @@
1
- :where(.Button){-webkit-touch-callout:none;grid-gap:.5rem;align-items:center;appearance:none;background:none;border:0;border-radius:.25rem;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}:where(.Button):not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):active{transform:scale(.98);transform-origin:center}[data-button-dimension=big]:where(.Button){block-size:3rem;font-size:1.13rem;padding:.55rem 1.5rem .66rem}[data-button-dimension=regular]:where(.Button){block-size:2.5rem;font-size:1rem;padding:.33rem 1rem .5rem}[data-button-dimension=small]:where(.Button){grid-gap:.25rem;block-size:1.5rem;font-size:.88rem;padding:0 .5rem .11rem}[data-button-kind=primary]:where(.Button){background:var(--cta-default);color:var(--cta-foreground)}[data-button-kind=primary]:where(.Button):where([aria-pressed=true]),[data-button-kind=primary]:where(.Button):where([aria-pressed=true]:hover){background:#9e0018;color:#fff}[data-button-kind=primary]:where(.Button):not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background:var(--cta-dark)}[data-button-kind=secondary]:where(.Button){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);color:var(--global-vibrancy-foreground)}[data-button-kind=secondary]:where(.Button):where([aria-pressed=true]),[data-button-kind=secondary]:where(.Button):where([aria-pressed=true]:hover){background:var(--dimmed-7);color:var(--dimmed-0)}[data-button-kind=secondary]:where(.Button):not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}[data-button-kind=flat]:where(.Button){color:var(--global-vibrancy-foreground)}[data-button-kind=flat]:where(.Button):where([aria-pressed=true]),[data-button-kind=flat]:where(.Button):where([aria-pressed=true]:is(:active,:focus)){background:var(--dimmed-7);color:var(--dimmed-0)}[data-button-kind=flat]:where(.Button):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)}[data-button-kind=flat]:where(.Button):not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background)}[data-button-fullwidth=true]:where(.Button){inline-size:100%}[data-button-icon-position=right]:where(.Button){flex-direction:row-reverse}[aria-disabled=true]:where(.Button),[aria-disabled=true]:where(.Button):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}[aria-busy=true]:where(.Button){pointer-events:none}[aria-busy=true]:where(.Button)>: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:.5rem;align-items:center;appearance:none;background:none;border:0;border-radius:.25rem;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:3rem;font-size:1.13rem;padding:.55rem 1.5rem .66rem}.Button[data-button-dimension=regular]{block-size:2.5rem;font-size:1rem;padding:.33rem 1rem .5rem}.Button[data-button-dimension=small]{grid-gap:.25rem;block-size:1.5rem;font-size:.88rem;padding:0 .5rem .11rem}.Button[data-button-kind=primary]{background:var(--cta-default);color:var(--cta-foreground)}.Button[data-button-kind=primary]:where([aria-pressed=true]),.Button[data-button-kind=primary]:where([aria-pressed=true]:hover){background:#9e0018;color:#fff}.Button[data-button-kind=primary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background:var(--cta-dark)}.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]:where([aria-pressed=true]),.Button[data-button-kind=secondary]:where([aria-pressed=true]:hover){background:var(--dimmed-7);color:var(--dimmed-0)}.Button[data-button-kind=secondary]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background-hard);color:var(--global-vibrancy-foreground)}.Button[data-button-kind=flat]{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-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]:not([aria-pressed=true],[aria-disabled=true],[aria-busy=true]):is(:hover){background-color:var(--global-vibrancy-background)}.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}
@@ -3,7 +3,7 @@ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
3
  import clsx from 'clsx';
4
4
  import { forwardRef } from 'react';
5
5
  import { Stack } from '../..';
6
- import styles from './card.module.css';
6
+ import * as styles from './card.module.css';
7
7
  export const Card = forwardRef(({ as: Wrapper = 'div', children, className, padding = 24, radius = 8, left, right, dimmed, bordered, columnGap = 24, rowGap = 24, vAlign = 'start', hAlign = 'space-between', vibrant = false, highlightOnHover = false, wrap, style, ...otherProps }, forwardedRef) => {
8
8
  const dynamicStyle = {
9
9
  '--padding': padding && tkns.space[padding],
@@ -1 +1 @@
1
- :where(.Card){background-color:var(--global-background);border-radius:var(--radius);padding:var(--padding);position:relative}[data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-0)}[data-card-dimmed="0"]:where(.Card){background-color:var(--dimmed-0)}[data-card-dimmed="0"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-background)}[data-card-dimmed="0"][data-card-bordered=true]:where(.Card){border:1px solid var(--dimmed-1)}[data-card-dimmed="1"]:where(.Card){background-color:var(--dimmed-1)}[data-card-dimmed="1"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-0)}[data-card-dimmed="1"][data-card-bordered=true]:where(.Card){border:1px solid var(--dimmed-2)}[data-card-dimmed="2"]:where(.Card){background-color:var(--dimmed-2)}[data-card-dimmed="2"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-1)}[data-card-dimmed="2"][data-card-bordered=true]:where(.Card){border:1px solid var(--dimmed-3)}[data-card-vibrant=true]:where(.Card){-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background)}[data-card-vibrant=true][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}[data-card-vibrant=true][data-card-dimmed="0"]:where(.Card){background-color:var(--global-vibrancy-background-soft)}[data-card-vibrant=true][data-card-dimmed="0"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-background)}[data-card-vibrant=true][data-card-dimmed="1"]:where(.Card){background-color:var(--global-vibrancy-background)}[data-card-vibrant=true][data-card-dimmed="1"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}[data-card-vibrant=true][data-card-dimmed="2"]:where(.Card){background-color:var(--global-vibrancy-background-hard)}[data-card-vibrant=true][data-card-dimmed="2"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-vibrancy-background)}.Left{flex-shrink:0}.Content{flex-grow:1}.Right{flex-shrink:0}
1
+ .Card{background-color:var(--global-background);border-radius:var(--radius);padding:var(--padding);position:relative}.Card[data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"]{background-color:var(--dimmed-0)}.Card[data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-dimmed="0"][data-card-bordered=true]{border:1px solid var(--dimmed-1)}.Card[data-card-dimmed="1"]{background-color:var(--dimmed-1)}.Card[data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-0)}.Card[data-card-dimmed="1"][data-card-bordered=true]{border:1px solid var(--dimmed-2)}.Card[data-card-dimmed="2"]{background-color:var(--dimmed-2)}.Card[data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--dimmed-1)}.Card[data-card-dimmed="2"][data-card-bordered=true]{border:1px solid var(--dimmed-3)}.Card[data-card-vibrant=true]{-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"]{background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="0"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"]{background-color:var(--global-vibrancy-background)}.Card[data-card-vibrant=true][data-card-dimmed="1"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background-soft)}.Card[data-card-vibrant=true][data-card-dimmed="2"]{background-color:var(--global-vibrancy-background-hard)}.Card[data-card-vibrant=true][data-card-dimmed="2"][data-card-highlight-hover=true]:is(:hover,:focus-visible){background-color:var(--global-vibrancy-background)}.Left{flex-shrink:0}.Content{flex-grow:1}.Right{flex-shrink:0}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Stack, Symbol } from '../..';
5
- import styles from './chip.module.css';
5
+ import * as styles from './chip.module.css';
6
6
  export const Chip = forwardRef(({ children, className, dimension = 'regular', color = 'gray', interactive, onDismissClick, ...otherProps }, forwardedRef) => {
7
7
  const properties = {
8
8
  small: {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef, useCallback, useMemo, } from 'react';
4
- import styles from './circular-progress.module.css';
4
+ import * as styles from './circular-progress.module.css';
5
5
  export const CircularProgress = forwardRef(({ className, value, max = 100, dimension = 'regular', showProgress, style, ...otherProps }, forwardedRef) => {
6
6
  const getPercentage = useCallback(() => (value ? Math.round((100 * value) / max) : 0), [max, value]);
7
7
  const clamp = useMemo(() => (num, min, max) => Math.min(Math.max(num, min), max), []);
@@ -1 +1 @@
1
- {"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AACA,OAAO,EACsB,SAAS,EACrC,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAyB,MAAM,cAAc,CAAC;AAIlE,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS,sBAgDI,CAAC"}
1
+ {"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AACA,OAAO,EACsB,SAAS,EACrC,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAyB,MAAM,cAAc,CAAC;AAIlE,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS,sBAiDI,CAAC"}
@@ -2,11 +2,12 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef, useState, } from 'react';
4
4
  import { ToggleButton, Tooltip } from '../..';
5
- import styles from './clamp-text.module.css';
5
+ import * as styles from './clamp-text.module.css';
6
6
  export const ClampText = forwardRef(({ className, children, rows = 1, style, expandable, as: Wrapper = 'div', ...otherProps }, forwardedRef) => {
7
7
  const [isExpanded, setIsExpandend] = useState(false);
8
8
  const dynamicStyle = {
9
9
  '--r': rows,
10
+ '--padding': expandable && '2rem',
10
11
  };
11
12
  return (_jsxs(Wrapper, { ref: forwardedRef, className: clsx(styles.ClampText, className), ...otherProps, children: [_jsx("span", { className: styles.Content, "data-clamp-text-expanded": isExpanded, style: { ...dynamicStyle, ...style }, children: children }), expandable && (_jsxs(Tooltip, { trigger: (_jsx(ToggleButton, { className: styles.Trigger, pressed: isExpanded, onClick: () => setIsExpandend(state => !state), restingIcon: "plus", pressedIcon: "minus", dimension: "small", kind: "secondary" })), children: [`${isExpanded ? 'Collapse' : 'Expand'} text`, ' ', "text"] }))] }));
12
13
  });
@@ -1 +1 @@
1
- .ClampText{display:inline-block;position:relative}.Content{-webkit-line-clamp:var(--r,1);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;padding-right:1.75rem}.Content[data-clamp-text-expanded=true]{-webkit-line-clamp:unset}.Trigger{position:absolute;right:0;top:.25rem}
1
+ .ClampText{display:inline-block;position:relative}.Content{-webkit-line-clamp:var(--r,1);-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden;padding-right:var(--padding)}.Content[data-clamp-text-expanded=true]{-webkit-line-clamp:unset}.Trigger{position:absolute;right:0;top:.25rem}
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './container.module.css';
4
+ import * as styles from './container.module.css';
5
5
  export const Container = forwardRef(({ children, className, dimension = 'full', padding = true, as: Wrapper = 'div', ...otherProps }, forwardedRef) => (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Container, className), "data-container-dimension": dimension, "data-container-padding": padding, ...otherProps, children: children })));
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { domMax, LazyMotion, m } from 'framer-motion';
4
4
  import { forwardRef, useCallback, useEffect, useRef, useState, } from 'react';
5
5
  import { Symbol, Text, } from '../..';
6
- import styles from './disclosure.module.css';
6
+ import * as styles from './disclosure.module.css';
7
7
  export const Disclosure = forwardRef(({ children, open = false, padding = true, className, summary, contentMaxHeight, dimension = 'regular', iconPosition = 'left', expandable = true, style, onToggle, ...otherProps }, forwardedRef) => {
8
8
  const ref = useRef(forwardedRef);
9
9
  const [isOpen, setIsOpen] = useState(open);
@@ -6,7 +6,7 @@ import { domMax, LazyMotion, m } from 'framer-motion';
6
6
  import { forwardRef, } from 'react';
7
7
  import { AutoFocusInside, FocusOn } from 'react-focus-on';
8
8
  import { Elevator, IconButton, Stack, Title, useOverlayContext, } from '../..';
9
- import styles from './drawer.module.css';
9
+ import * as styles from './drawer.module.css';
10
10
  export const Drawer = forwardRef(({ children, className, closeOnClickOutside = true, showHeader = true, maxWidth = '400px', side = 'right', theme = 'light', isModal = true, title, ...otherProps }, forwardedRef) => {
11
11
  const { titleId, onClose } = useOverlayContext();
12
12
  useKeyPress('esc', () => (!isModal && onClose) && onClose());
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
3
  import clsx from 'clsx';
4
4
  import { forwardRef } from 'react';
5
- import styles from './grid.module.css';
5
+ import * as styles from './grid.module.css';
6
6
  import { GridItem } from './item/grid-item';
7
7
  export const Grid = forwardRef(({ className, children, columns, rows, rowGap, columnGap, style, filling = 'fill', colMinWidth = '10rem', rowMinHeight = '1fr', ...otherProps }, forwardedRef) => {
8
8
  const computedStyle = {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './grid-item.module.css';
4
+ import * as styles from './grid-item.module.css';
5
5
  export const GridItem = forwardRef(({ style, children, className, fullWidth = false, column, row, ...otherProps }, forwardedRef) => {
6
6
  const dynamicStyle = {
7
7
  '--column': column,
@@ -2,5 +2,5 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Button } from '../..';
5
- import styles from './icon-button.module.css';
5
+ import * as styles from './icon-button.module.css';
6
6
  export const IconButton = forwardRef(({ className, icon, dimension, kind, disabled, busy, ...otherProps }, forwardedRef) => (_jsx(Button, { ref: forwardedRef, icon: icon, dimension: dimension, kind: kind, disabled: disabled, busy: busy, className: clsx(styles.IconButton, className), ...otherProps })));
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { domMax, LazyMotion, m } from 'framer-motion';
3
3
  import { forwardRef } from 'react';
4
4
  import { Stack, Symbol, Text, Title, } from '../..';
5
- import styles from './info-state.module.css';
5
+ import * as styles from './info-state.module.css';
6
6
  export const InfoState = forwardRef(({ className, children, title, icon, image, direction = 'column', iconColor = 'blue', actions, ...otherProps }, forwardedRef) => {
7
7
  const isHorizontal = direction === 'row';
8
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: {
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { Children, cloneElement, forwardRef, isValidElement, } from 'react';
4
4
  import { useUIDSeed } from 'react-uid';
5
5
  import { Stack, Text } from '../..';
6
- import styles from './input-group.module.css';
6
+ import * as styles from './input-group.module.css';
7
7
  export const InputGroup = forwardRef(({ className, input, suffix, prefix, label, dimension = 'regular', ...otherProps }, forwardedRef) => {
8
8
  const seedID = useUIDSeed();
9
9
  return (_jsxs(Stack, { rowGap: 4, hAlign: "stretch", vAlign: "start", fill: false, children: [label && _jsx(Text, { as: "label", size: dimension === 'small' ? 14 : 16, htmlFor: seedID('field'), children: label }), _jsxs(Stack, { as: "fieldset", direction: "row", vAlign: "start", hAlign: "start", fill: false, inline: true, ref: forwardedRef, className: clsx(styles.InputGroup, className), "data-input-group-has-end": Boolean(suffix), "data-input-group-has-start": !!prefix, ...otherProps, children: [_jsx("div", { className: styles.Start, children: Children.map(prefix, child => isValidElement(child) && cloneElement(child, {
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef, useCallback } from 'react';
4
4
  import { Text } from '../..';
5
- import styles from './linear-progress.module.css';
5
+ import * as styles from './linear-progress.module.css';
6
6
  export const LinearProgress = forwardRef(({ className, value, max = 100, dimension = 'regular', showProgress, ...otherProps }, forwardedRef) => {
7
7
  const getPercentage = useCallback(() => (value ? Math.round((100 * value) / max) : 0), [max, value]);
8
8
  const clamp = (num, min, max) => Math.min(Math.max(num, min), max);
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Stack, Symbol, Text, } from '../..';
5
- import styles from './list.module.css';
5
+ import * as styles from './list.module.css';
6
6
  export const ListItem = forwardRef(({ className, hideMarker, marker = 'bullet', markerColor, children, dimension = 'regular', ...otherProps }, forwardedRef) => {
7
7
  const sizes = {
8
8
  small: {
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { Children, cloneElement, forwardRef, isValidElement, useMemo, } from 'react';
4
- import styles from './list.module.css';
4
+ import * as styles from './list.module.css';
5
5
  import { ListItem } from './list-item';
6
6
  export const List = forwardRef(({ as: Wrapper = 'ul', children, dimension = 'regular', className, hideMarker = false, ...otherProps }, forwardedRef) => {
7
7
  const isUnordered = useMemo(() => Wrapper === 'ul', [Wrapper]);
@@ -3,7 +3,7 @@ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
3
  import clsx from 'clsx';
4
4
  import { Children, cloneElement, isValidElement, } from 'react';
5
5
  import MasonryLayout from 'react-masonry-css';
6
- import styles from './masonry.module.css';
6
+ import * as styles from './masonry.module.css';
7
7
  export const Masonry = ({ className, children, columns = 3, gutter = 16, style, ...otherProps }) => {
8
8
  const breakpoints = {
9
9
  'extra-small': 480,
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { forwardRef, useCallback, useMemo, useRef, } from 'react';
4
4
  import { useFocusEffect, useRovingTabIndex } from 'react-roving-tabindex';
5
5
  import { Stack, Symbol, Tooltip, } from '../../..';
6
- import styles from './menu-item.module.css';
6
+ import * as styles from './menu-item.module.css';
7
7
  export const MenuItem = forwardRef(({ className, children, onClick, icon, dimension = 'regular', as: Wrapper = 'button', iconPosition = 'left', description, padding = true, disabled = false, autoFocus, decoration, value, ...otherProps }, forwardedRef) => {
8
8
  const itemRef = useRef(forwardedRef);
9
9
  const [tabIndex, focused, handleKeyDown, handleClick] = useRovingTabIndex(itemRef, disabled);
@@ -15,7 +15,7 @@ export const MenuItem = forwardRef(({ className, children, onClick, icon, dimens
15
15
  onClick(e, value);
16
16
  }
17
17
  }, [handleClick, onClick, value]);
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(Symbol, { 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]);
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(Symbol, { className: styles.Icon, 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
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
20
  ? (_jsx(Tooltip, { fill: true, open: focused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }))
21
21
  : InnerContent }) }));
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { forwardRef, } from 'react';
4
4
  import { RovingTabIndexProvider } from 'react-roving-tabindex';
5
5
  import { Elevator, Stack } from '../..';
6
- import styles from './menu.module.css';
6
+ import * as styles from './menu.module.css';
7
7
  import { MenuItem } from './menu-item/menu-item';
8
8
  import { MenuItemCheckbox } from './menu-item/menu-item-checkbox';
9
9
  import { MenuSeparator } from './menu-separator/menu-separator';
@@ -12,6 +12,10 @@ export declare type ModalContentProps = PropsWithChildren<PropsWithClass<{
12
12
  theme?: 'dark' | 'light' | 'auto';
13
13
  }>>;
14
14
  export declare const ModalContent: import("react").ForwardRefExoticComponent<{
15
+ /**
16
+ * Set the theme of the content card. To ensure contrast with the default overlay color (dark),
17
+ * this is set to `light` by default.
18
+ */
15
19
  style?: Record<string, any> | undefined;
16
20
  className?: string | undefined;
17
21
  } & {
@@ -1 +1 @@
1
- {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/content/modal-content.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASjE,oBAAY,iBAAiB,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACnC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,YAAY;;;;IAZvB;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;;;kDA+BH,CAAC"}
1
+ {"version":3,"file":"modal-content.d.ts","sourceRoot":"","sources":["../../../../src/components/modal/content/modal-content.tsx"],"names":[],"mappings":"AACA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AASjE,oBAAY,iBAAiB,GAAG,iBAAiB,CAAC,cAAc,CAAC;IAC/D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;CACnC,CAAC,CAAC,CAAA;AAEH,eAAO,MAAM,YAAY;IAPvB;;;OAGG;;;;IARH;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;;;kDA+BH,CAAC"}
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { AutoFocusInside } from 'react-focus-on';
5
5
  import { Elevator, IconButton, Stack, Title, useOverlayContext, } from '../../..';
6
- import styles from './modal-content.module.css';
6
+ import * as styles from './modal-content.module.css';
7
7
  export const ModalContent = forwardRef(({ children, className, title, theme = 'light', ...otherProps }, forwardedRef) => {
8
8
  const { onClose, titleId } = useOverlayContext();
9
9
  return (_jsx(Elevator, { resting: 4, children: _jsxs("div", { className: clsx(styles.Content, className), ref: forwardedRef, "data-theme": theme, ...otherProps, children: [_jsxs(Stack, { vAlign: "center", fill: false, hAlign: "space-between", direction: "row", className: styles.Header, children: [_jsx(Title, { responsive: false, level: "5", id: titleId, children: title }), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" })] }), _jsx(AutoFocusInside, { children: children })] }) }));
@@ -6,7 +6,7 @@ import { forwardRef, useMemo } from 'react';
6
6
  import { FocusOn } from 'react-focus-on';
7
7
  import { useOverlayContext, useResponsiveContext } from '../..';
8
8
  import { ModalContent } from './content/modal-content';
9
- import styles from './modal.module.css';
9
+ import * as styles from './modal.module.css';
10
10
  const cssEasingToArray = (cssEasing) => {
11
11
  const [x1, y1, x2, y2] = cssEasing.replace(/[^0-9.,]+/g, '').split(',').map(i => parseFloat(i));
12
12
  return [x1, y1, x2, y2];
@@ -4,7 +4,7 @@ import { useEffect } from 'react';
4
4
  import { createPortal } from 'react-dom';
5
5
  import { useUIDSeed } from 'react-uid';
6
6
  import { OverlayProvider } from '../..';
7
- import styles from './overlay-container.module.css';
7
+ import * as styles from './overlay-container.module.css';
8
8
  export const OverlayContainer = ({ children, root = document.body, overlayColor = 'dark', index = 4, obfuscate = true, onClose, }) => {
9
9
  const seedID = useUIDSeed();
10
10
  useEffect(() => {
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { useEffect, useState } from 'react';
4
4
  import ReactPaginate from 'react-paginate';
5
5
  import { Symbol } from '../..';
6
- import styles from './pagination.module.css';
6
+ import * as styles from './pagination.module.css';
7
7
  export const Pagination = ({ className, itemsCount, itemsPerPage = 10, onPageClick, pageCount, pageRangeDisplayed = 3, marginPagesDisplayed = 1, ...otherProps }) => {
8
8
  const [computedPageCount, setComputedPageCount] = useState(0);
9
9
  useEffect(() => {
@@ -7,7 +7,7 @@ import { Children, cloneElement, forwardRef, isValidElement, useEffect, useMemo,
7
7
  import { mergeRefs } from 'react-merge-refs';
8
8
  import { usePopperTooltip } from 'react-popper-tooltip';
9
9
  import { useUIDSeed } from 'react-uid';
10
- import styles from './popover.module.css';
10
+ import * as styles from './popover.module.css';
11
11
  const cssEasingToArray = (cssEasing) => {
12
12
  const [x1, y1, x2, y2] = cssEasing.replace(/[^0-9.,]+/g, '').split(',').map(i => parseFloat(i));
13
13
  return [x1, y1, x2, y2];
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './prose.module.css';
4
+ import * as styles from './prose.module.css';
5
5
  export const Prose = forwardRef(({ children, className, as: Wrapper = 'div', ...otherProps }, forwardedRef) => (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Prose, className), ...otherProps, children: children })));
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { forwardRef, } from 'react';
4
4
  import { useUIDSeed } from 'react-uid';
5
5
  import { Stack, Symbol, Text, } from '../..';
6
- import styles from './select.module.css';
6
+ import * as styles from './select.module.css';
7
7
  export const Select = forwardRef(({ children, className, disabled = false, icon = 'sort-alt', label, kind = 'single', dimension = 'regular', onChange, ...otherProps }, forwardedRef) => {
8
8
  const seedID = useUIDSeed();
9
9
  const iconSizes = {
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { domAnimation, LazyMotion, m } from 'framer-motion';
4
4
  import { forwardRef, useEffect, useRef, } from 'react';
5
- import styles from './selection-controls.module.css';
5
+ import * as styles from './selection-controls.module.css';
6
6
  export const Checkbox = forwardRef(({ className, disabled, dimension = 'regular', onChange, indeterminate, hidden, ...otherProps }, forwardedRef) => {
7
7
  const ref = useRef(forwardedRef);
8
8
  useEffect(() => {
@@ -2,6 +2,6 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { domAnimation, LazyMotion, m } from 'framer-motion';
4
4
  import { forwardRef } from 'react';
5
- import styles from './selection-controls.module.css';
5
+ import * as styles from './selection-controls.module.css';
6
6
  export const Radio = forwardRef(({ className, disabled, dimension = 'regular', onChange, hidden, ...otherProps }, forwardedRef) => (_jsx(LazyMotion, { features: domAnimation, strict: true, children: _jsx(m.span, { className: clsx(styles.InputWrapper, className), whileTap: { scale: 1.15 }, transition: { duration: 0.3, ease: 'backOut' }, "data-radio-control": hidden, children: _jsx("input", { type: "radio", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: styles.RadioInput, ref: forwardedRef, hidden: hidden, ...otherProps }) }) })));
7
7
  Radio.displayName = 'Radio';
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './selection-controls.module.css';
4
+ import * as styles from './selection-controls.module.css';
5
5
  export const Toggle = forwardRef(({ className, disabled, dimension = 'regular', onChange, ...otherProps }, forwardedRef) => (_jsx("input", { type: "checkbox", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: clsx(styles.Toggle, className), ref: forwardedRef, ...otherProps })));
6
6
  Toggle.displayName = 'Toggle';
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './separator.module.css';
4
+ import * as styles from './separator.module.css';
5
5
  export const Separator = forwardRef(({ className, ...otherProps }, forwardedRef) => (_jsx("hr", { ref: forwardedRef, className: clsx(styles.Separator, className), ...otherProps })));
6
6
  Separator.displayName = 'Separator';
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
3
  import { Fragment, useCallback } from 'react';
4
4
  import { useUIDSeed } from 'react-uid';
5
- import styles from './skeleton.module.css';
5
+ import * as styles from './skeleton.module.css';
6
6
  export const Skeleton = ({ className, borderRadius = 4, style, width, height, count = 1, gap, enableAnimation = true, inline, circle, ...otherProps }) => {
7
7
  const uid = useUIDSeed();
8
8
  const computedWidth = typeof width === 'number' ? `${width}px` : width;
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef, useCallback, useState, } from 'react';
4
4
  import { Stack, Symbol, Text, Textfield, } from '../..';
5
- import styles from './slider.module.css';
5
+ import * as styles from './slider.module.css';
6
6
  export const Slider = forwardRef(({ min = 0, max = 100, step, onInput, className, defaultValue = 0, dimension = 'regular', showValues, iconMin, iconMax, ...otherProps }, forwardedRef) => {
7
7
  const [value, setValue] = useState(defaultValue);
8
8
  const isSmall = dimension === 'small';
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Button, Stack, Symbol, Text, Title, } from '../..';
5
- import styles from './snackbar.module.css';
5
+ import * as styles from './snackbar.module.css';
6
6
  export const Snackbar = forwardRef(({ children, className, title, icon, kind = 'neutral', as: Wrapper = 'output', dismissable, dismissLabel = 'Dismiss', onDismiss, ...otherProps }, forwardedRef) => {
7
7
  const defaultIcons = {
8
8
  info: 'circle-info',
@@ -1 +1 @@
1
- .Snackbar{background:var(--global-background);border:1px solid var(--global-vibrancy-background);border-radius:.5rem;display:block;overflow:hidden;padding:.5rem 1rem}.Snackbar p{font-size:1rem}.Snackbar[data-snackbar-kind=neutral]{--heading-foreground:var(--highlight-gray-foreground);--snackbar-bg:var(--highlight-gray-background);--snackbar-fg:var(--highlight-gray-foreground)}.Snackbar[data-snackbar-kind=positive]{--heading-foreground:var(--highlight-green-foreground);--snackbar-bg:var(--highlight-green-background);--snackbar-fg:var(--highlight-green-foreground)}.Snackbar[data-snackbar-kind=warning]{--heading-foreground:var(--highlight-yellow-foreground);--snackbar-bg:var(--highlight-yellow-background);--snackbar-fg:var(--highlight-yellow-foreground)}.Snackbar[data-snackbar-kind=info]{--heading-foreground:var(--highlight-blue-foreground);--snackbar-bg:var(--highlight-blue-background);--snackbar-fg:var(--highlight-blue-foreground)}.Snackbar[data-snackbar-kind=danger]{--heading-foreground:var(--highlight-red-foreground);--snackbar-bg:var(--highlight-red-background);--snackbar-fg:var(--highlight-red-foreground)}.Icon{color:var(--snackbar-fg);flex-grow:0;flex-shrink:0;height:1rem;margin-top:.5rem;max-width:1rem;width:1rem}.Action:is(.Action.Action){background-color:var(--snackbar-fg);color:var(--snackbar-bg)}.Action:is(.Action.Action):active{background-color:var(--snackbar-fg);color:var(--snackbar-bg);opacity:.8}
1
+ .Snackbar{background:var(--global-background);border:1px solid var(--global-vibrancy-background);border-radius:.5rem;display:block;overflow:hidden;padding:.5rem 1rem}.Snackbar p{font-size:1rem}.Snackbar[data-snackbar-kind=neutral]{--heading-foreground:var(--highlight-gray-foreground);--snackbar-bg:var(--highlight-gray-background);--snackbar-fg:var(--highlight-gray-foreground)}.Snackbar[data-snackbar-kind=positive]{--heading-foreground:var(--highlight-green-foreground);--snackbar-bg:var(--highlight-green-background);--snackbar-fg:var(--highlight-green-foreground)}.Snackbar[data-snackbar-kind=warning]{--heading-foreground:var(--highlight-yellow-foreground);--snackbar-bg:var(--highlight-yellow-background);--snackbar-fg:var(--highlight-yellow-foreground)}.Snackbar[data-snackbar-kind=info]{--heading-foreground:var(--highlight-blue-foreground);--snackbar-bg:var(--highlight-blue-background);--snackbar-fg:var(--highlight-blue-foreground)}.Snackbar[data-snackbar-kind=danger]{--heading-foreground:var(--highlight-red-foreground);--snackbar-bg:var(--highlight-red-background);--snackbar-fg:var(--highlight-red-foreground)}.Icon{color:var(--snackbar-fg);flex-grow:0;flex-shrink:0;height:1rem;margin-top:.5rem;max-width:1rem;width:1rem}.Action:is(.Action.Action){background-color:var(--snackbar-fg);color:var(--snackbar-bg)}.Action:is(.Action.Action):is(:active,:hover){background-color:var(--snackbar-fg);color:var(--snackbar-bg);opacity:.8}
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Button, Popover, Stack, } from '../..';
5
- import styles from './split-button.module.css';
5
+ import * as styles from './split-button.module.css';
6
6
  export const SplitButton = forwardRef(({ className, label, icon = 'chevron-down', kind, dimension, fullWidth, disabled, busy, children, placement, offset, onClick, ...otherProps }, forwardedRef) => {
7
7
  const commonProps = {
8
8
  kind,
@@ -2,7 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
3
3
  import clsx from 'clsx';
4
4
  import { forwardRef } from 'react';
5
- import styles from './stack.module.css';
5
+ import * as styles from './stack.module.css';
6
6
  export const Stack = forwardRef(({ children, className, rowGap, columnGap, as: Wrapper = 'div', inline = false, direction = 'column', wrap = false, fill = true, vAlign = 'initial', hAlign = 'initial', hPadding, vPadding, style, maxWidth, ...otherProps }, forwardedRef) => {
7
7
  const alignmentTemplate = (prop) => {
8
8
  if (prop.includes('start') || prop.includes('end')) {
@@ -19,5 +19,5 @@ export const Stack = forwardRef(({ children, className, rowGap, columnGap, as: W
19
19
  '--h-padding': hPadding ? tkns.space[hPadding] : 0,
20
20
  '--max-w': maxWidth,
21
21
  };
22
- return (_jsx(Wrapper, { ref: forwardedRef, style: { ...computedStyle, ...style }, "data-stack-inline": inline, "data-stack-wrap": wrap, "data-stack-direction": direction, "data-stack-fill": fill, "data-stack-has-padding": Boolean(hPadding ?? vPadding), className: clsx(styles.Stack, styles.StackWrapper, className), ...otherProps, children: children }));
22
+ return (_jsx(Wrapper, { ref: forwardedRef, style: { ...computedStyle, ...style }, "data-stack-inline": inline, "data-stack-wrap": wrap, "data-stack-direction": direction, "data-stack-fill": fill, "data-stack-has-padding": Boolean(hPadding ?? vPadding), className: clsx(styles.Stack, className), ...otherProps, children: children }));
23
23
  });
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { forwardRef, useCallback, useMemo, } from 'react';
4
4
  import { useUIDSeed } from 'react-uid';
5
5
  import { Stack, Symbol, Text, } from '../..';
6
- import styles from './star-meter.module.css';
6
+ import * as styles from './star-meter.module.css';
7
7
  export const StarMeter = forwardRef(({ className, value = 0, starCount = 5, label, dimension = 'regular', hideLabel = false, ...otherProps }, forwardedRef) => {
8
8
  const seedID = useUIDSeed();
9
9
  const properties = useMemo(() => ({
@@ -3,7 +3,7 @@ import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
3
3
  import sprite from '@wonderflow/symbols/sprite.svg';
4
4
  import clsx from 'clsx';
5
5
  import { Children, cloneElement, forwardRef, useMemo, } from 'react';
6
- import styles from './symbol.module.css';
6
+ import * as styles from './symbol.module.css';
7
7
  export const Symbol = forwardRef(({ className, source, dimension = 16, weight = 'outline', fill, ...otherProps }, forwardedRef) => {
8
8
  const computedStyle = useMemo(() => (dimension < 18 ? 'solid' : weight), [weight, dimension]);
9
9
  return (typeof source === 'string')
@@ -4,7 +4,7 @@ import { domMax, LazyMotion, m } from 'framer-motion';
4
4
  import { Children, isValidElement, useCallback, useState, } from 'react';
5
5
  import { useUIDSeed } from 'react-uid';
6
6
  import { Button, Symbol } from '../..';
7
- import styles from './tab.module.css';
7
+ import * as styles from './tab.module.css';
8
8
  import { TabPanel } from './tabs-panel';
9
9
  export const Tab = ({ className, children, onValueChange, defaultValue, value, loop, dimension = 'regular', ...otherProps }) => {
10
10
  const [activeItem, setActiveItem] = useState(defaultValue ?? value ?? '');
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import * as TabsPrimitive from '@radix-ui/react-tabs';
3
3
  import clsx from 'clsx';
4
- import styles from './tab.module.css';
4
+ import * as styles from './tab.module.css';
5
5
  export const TabPanel = ({ className, children, label, ...otherProps }) => (_jsx(TabsPrimitive.Content, { className: clsx(styles.Panel, className), "data-tabs-label": label, ...otherProps, children: children }));
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
4
  import { Symbol } from '../../..';
5
- import styles from './table-cell.module.css';
5
+ import * as styles from './table-cell.module.css';
6
6
  export const TableCell = forwardRef(({ children, className, collapsed, isSorted, align = 'start', style, isSortedDesc, as: Wrapper = 'td', padding = true, width, ...otherProps }, forwardedRef) => {
7
7
  const isWidthString = typeof width === 'string';
8
8
  const computedWidthNumber = typeof width === 'number' ? `${width}px` : undefined;
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { Checkbox } from '../../..';
3
- import styles from './table-checkbox.module.css';
3
+ import * as styles from './table-checkbox.module.css';
4
4
  export const TableCheckbox = ({ ...otherProps }) => (_jsx(Checkbox, { className: styles.TableCheckbox, dimension: "small", ...otherProps }));
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import styles from './table-expand.module.css';
2
+ import * as styles from './table-expand.module.css';
3
3
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4
4
  export const TableExpand = ({ data, component: Component, }) => (_jsx("div", { className: styles.TableExpand, children: _jsx("div", { className: styles.ExpandContent, children: Component ? _jsx(Component, { ...data }) : null }) }));
@@ -1,4 +1,4 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { Stack, Title } from '../../..';
3
- import styles from './table-header.module.css';
3
+ import * as styles from './table-header.module.css';
4
4
  export const TableHeader = ({ children, title, id, ...otherProps }) => (_jsxs(Stack, { direction: "row", columnGap: 32, vAlign: "center", hAlign: "space-between", fill: false, className: styles.TableHeader, ...otherProps, children: [_jsx("div", { children: typeof title === 'string' ? _jsx(Title, { id: id, level: "5", children: title }) : title }), _jsx(Stack, { direction: "row", vAlign: "center", columnGap: 8, inline: true, children: children })] }));
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { useMemo } from 'react';
4
- import styles from './table-row.module.css';
4
+ import * as styles from './table-row.module.css';
5
5
  export const TableRow = ({ children, className, expanded, rowData, expandedRows, ...otherProps }) => {
6
6
  const highlightRow = useMemo(() => {
7
7
  const [currentParentRowId] = rowData?.id.match(/.*(?=\.)/) ?? [];
@@ -6,7 +6,7 @@ import { Fragment, useCallback, useEffect, useMemo, } from 'react';
6
6
  import { useExpanded, usePagination, useRowSelect, useSortBy, useTable, } from 'react-table';
7
7
  import { useUIDSeed } from 'react-uid';
8
8
  import { Skeleton, Stack, Text, ToggleButton, } from '../..';
9
- import styles from './table.module.css';
9
+ import * as styles from './table.module.css';
10
10
  import { TableCell } from './table-cell';
11
11
  import { TableCheckbox } from './table-checkbox';
12
12
  import { ToggleColumnsControl } from './table-controls';
@@ -135,7 +135,7 @@ export const Table = ({ className, style, columns, data = [], selectableRows, se
135
135
  }, children: _jsxs(TableHeader, { title: title, children: [(columnsControl && data.length)
136
136
  ? (_jsx(ToggleColumnsControl, { columns: allColumns, visibleColumns: filteredVisibleColumns }))
137
137
  : null, actions] }) }))] }) }), ((data.length || loading) && filteredVisibleColumns.length)
138
- ? (_jsx("div", { className: styles.TableWrapper, "data-table-scrolling": Boolean(height), children: _jsxs("table", { className: styles.TableElement, "data-table-stripes": stripes, "data-table-separators": showSeparators, "data-table-loading": loading, "aria-labelledby": uid('table-title'), ...getTableProps(), ...otherProps, children: [showTableHead && (_jsx("thead", { className: styles.THead, children: headerGroups.map(headerGroup => (_jsx(TableRow, { ...headerGroup.getHeaderGroupProps(), children: headerGroup.headers.map((column) => (_jsx(TableCell, { as: "th", width: column.minWidth === 0 ? undefined : column.minWidth, collapsed: column.isCollapsed, isSorted: column.isSorted, isSortedDesc: column.isSorted && column.isSortedDesc, align: column.align, ...column.getHeaderProps(column.getSortByToggleProps()), children: column.render('Header') }))) }))) })), _jsx("tbody", { className: styles.TBody, ...getTableBodyProps(), children: loading
138
+ ? (_jsx("div", { className: styles.TableWrapper, "data-table-scrolling": Boolean(height), children: _jsxs("table", { className: styles.TableElement, "data-table-stripes": stripes, "data-table-separators": showSeparators, "data-table-loading": loading, "aria-labelledby": uid('table-title'), ...getTableProps(), ...otherProps, children: [showTableHead && (_jsx("thead", { className: styles.THead, children: headerGroups.map(headerGroup => (_jsx(TableRow, { ...headerGroup.getHeaderGroupProps(), children: headerGroup.headers.map((column) => (_jsx(TableCell, { as: "th", width: column.minWidth === 0 ? undefined : column.minWidth, collapsed: column.isCollapsed, isSorted: column.isSorted, isSortedDesc: column.isSorted && column.isSortedDesc, align: column.align, ...column.getHeaderProps(column.getSortByToggleProps()), children: column.render('Header') }))) }))) })), _jsx("tbody", { ...getTableBodyProps(), children: loading
139
139
  ? (_jsx(TableRow, { children: _jsx(TableCell, { colSpan: 100, children: _jsx(Skeleton, { gap: 16, height: 24, count: 10 }) }) }))
140
140
  : rowEntries.map((row) => {
141
141
  prepareRow(row);
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './text.module.css';
4
+ import * as styles from './text.module.css';
5
5
  export const Text = forwardRef(({ children, className, size, sentiment, dimmed, weight, maxWidth, textAlign = 'start', as: Wrapper = 'p', responsive = true, lineHeight = 'large', style, ...otherProps }, forwardedRef) => {
6
6
  const dynamicStyle = {
7
7
  '--max-w': maxWidth,
@@ -1,6 +1,6 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import clsx from 'clsx';
3
3
  import { forwardRef } from 'react';
4
- import styles from './base-field.module.css';
4
+ import * as styles from './base-field.module.css';
5
5
  export const BaseField = forwardRef(({ as: Wrapper = 'input', invalid, className, ...otherProps }, forwardedRef) => (_jsx(Wrapper, { ref: forwardedRef, "data-basefield-invalid": invalid, className: clsx(styles.BaseField, className), ...otherProps })));
6
6
  BaseField.displayName = 'BaseField';
@@ -4,7 +4,7 @@ import { forwardRef, useCallback, useMemo, useState, } from 'react';
4
4
  import { useUIDSeed } from 'react-uid';
5
5
  import { IconButton, Stack, Symbol, Text, } from '../..';
6
6
  import { BaseField } from './base-field';
7
- import styles from './textfield.module.css';
7
+ import * as styles from './textfield.module.css';
8
8
  export const Textfield = forwardRef(({ children, className, disabled = false, icon, label, textarea, readOnly, invalid, id, iconPosition = 'right', dimension = 'regular', type, style, onChange, fullWidth, ...otherProps }, forwardedRef) => {
9
9
  const [passwordVisible, setPasswordVisible] = useState(false);
10
10
  const seedID = useUIDSeed();
@@ -1 +1 @@
1
- {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAInD,oBAAY,UAAU,GAAG;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IACtD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5E,eAAO,MAAM,KAAK,kBAoDI,CAAC"}
1
+ {"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,WAAW,EAAU,MAAM,cAAc,CAAC;AAInD,oBAAY,UAAU,GAAG;IACvB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,SAAS,CAAC;IACtD;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;;;;OAMG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5E,eAAO,MAAM,KAAK,kBAqDI,CAAC"}
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { Children, forwardRef, useCallback, } from 'react';
4
4
  import slugify from 'slugify';
5
5
  import { Symbol } from '../..';
6
- import styles from './title.module.css';
6
+ import * as styles from './title.module.css';
7
7
  export const Title = forwardRef(({ children, className, as: Wrapper = 'span', lineHeight = 'small', level = '1', textAlign = 'start', maxWidth, responsive = true, style, anchor, id, ...otherProps }, forwardedRef) => {
8
8
  const computedLevel = level.match(/\d/g) ? `H${level}` : `${level.charAt(0).toUpperCase()}${level.slice(1)}`;
9
9
  const getTextFromChildren = useCallback(() => {
@@ -20,5 +20,7 @@ export const Title = forwardRef(({ children, className, as: Wrapper = 'span', li
20
20
  '--max-w': maxWidth,
21
21
  '--t-align': textAlign,
22
22
  };
23
- return (_jsxs(Wrapper, { ref: forwardedRef, "data-title-line-height": lineHeight, "data-title-responsive": responsive, className: clsx(styles.Title, styles[computedLevel], className), style: { ...dynamicStyle, ...style }, id: generatedID, ...otherProps, children: [children, anchor && (_jsx("a", { href: `#${generatedID}`, className: styles.Anchor, children: _jsx(Symbol, { source: "link", weight: "duotone", dimension: 24 }) }))] }));
23
+ return (_jsxs(Wrapper, { ref: forwardedRef, "data-title-line-height": lineHeight, "data-title-responsive": responsive,
24
+ // @ts-expect-error
25
+ className: clsx(styles.Title, styles[computedLevel], className), style: { ...dynamicStyle, ...style }, id: generatedID, ...otherProps, children: [children, anchor && (_jsx("a", { href: `#${generatedID}`, className: styles.Anchor, children: _jsx(Symbol, { source: "link", weight: "duotone", dimension: 24 }) }))] }));
24
26
  });
@@ -3,7 +3,7 @@ import clsx from 'clsx';
3
3
  import { domMax, LazyMotion, m } from 'framer-motion';
4
4
  import { forwardRef, useCallback, useEffect, useState, } from 'react';
5
5
  import { IconButton, Symbol, } from '../..';
6
- import styles from './toggle-button.module.css';
6
+ import * as styles from './toggle-button.module.css';
7
7
  const scaleAnimation = {
8
8
  scaleIn: {
9
9
  scale: 1,
@@ -4,7 +4,7 @@ import { Children, cloneElement, isValidElement, useRef, useState, } from 'react
4
4
  import { usePopperTooltip } from 'react-popper-tooltip';
5
5
  import { useUIDSeed } from 'react-uid';
6
6
  import { Elevator } from '../..';
7
- import styles from './tooltip.module.css';
7
+ import * as styles from './tooltip.module.css';
8
8
  export const Tooltip = ({ children, trigger, placement = 'bottom-start', open, style, maxWidth = '40ch', fill = false, interactive = false, delay = 500, }) => {
9
9
  const seedID = useUIDSeed();
10
10
  const [isOpen, setIsOpen] = useState(false);
@@ -35,7 +35,7 @@ export const Tooltip = ({ children, trigger, placement = 'bottom-start', open, s
35
35
  const dynamycStyle = {
36
36
  '--max-w': maxWidth,
37
37
  };
38
- return (_jsxs("div", { "data-tooltip-fill": fill, className: styles.TooltipClass, ref: tooltipContainerRef, "data-tooltip-has-focus-within": isFocusWithin, style: { ...style }, children: [Children.map(trigger, child => isValidElement(child) && cloneElement(child, {
38
+ return (_jsxs("div", { "data-tooltip-fill": fill, className: styles.Tooltip, ref: tooltipContainerRef, "data-tooltip-has-focus-within": isFocusWithin, style: { ...style }, children: [Children.map(trigger, child => isValidElement(child) && cloneElement(child, {
39
39
  ref: setTriggerRef,
40
40
  tabIndex: 0,
41
41
  'aria-describedby': seedID('tooltip-content'),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wonderflow/react-components",
3
- "version": "10.7.0",
3
+ "version": "10.8.0",
4
4
  "description": "UI components from Wonderflow's Wanda design system",
5
5
  "author": "Wonderflow",
6
6
  "license": "MIT",
@@ -20,7 +20,7 @@
20
20
  },
21
21
  "scripts": {
22
22
  "start": "start-storybook --quiet -p 6006",
23
- "prebuild": "rimraf dist core core.css",
23
+ "prebuild": "run-s clean build:csstypes",
24
24
  "build": "run-s build:ts build:css",
25
25
  "postbuild": "rimraf dist/**/_mixins.css",
26
26
  "build:ts": "tsc && tsc-alias",
@@ -29,7 +29,9 @@
29
29
  "lint": "run-s lint:styles",
30
30
  "lint:styles": "stylelint ./src/**/*.css",
31
31
  "storybook": "start-storybook -p 6006",
32
- "build-storybook": "build-storybook"
32
+ "build-storybook": "build-storybook",
33
+ "clean": "rimraf dist core core.css",
34
+ "build:csstypes": "tcm -p '**/*.module.css' src"
33
35
  },
34
36
  "repository": {
35
37
  "type": "git",
@@ -70,8 +72,8 @@
70
72
  "@types/react": "17.0.43",
71
73
  "@types/react-dom": "17.0.14",
72
74
  "@types/react-table": "7.7.12",
73
- "@wonderflow/config": "10.7.0",
74
- "@wonderflow/tokens": "10.7.0",
75
+ "@wonderflow/config": "10.8.0",
76
+ "@wonderflow/tokens": "10.8.0",
75
77
  "babel-loader": "8.2.5",
76
78
  "cpy-cli": "3.1.1",
77
79
  "postcss": "8.4.16",
@@ -81,6 +83,7 @@
81
83
  "storybook-addon-themes": "6.1.0",
82
84
  "storybook-css-modules-preset": "1.1.1",
83
85
  "tsconfig": "10.0.0",
86
+ "typed-css-modules": "0.7.2",
84
87
  "typescript": "4.7.4",
85
88
  "typescript-plugin-css-modules": "3.4.0"
86
89
  },