@wonderflow/react-components 5.5.0 → 6.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/autocomplete/autocomplete.js +2 -2
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/button/button.js +4 -4
- package/dist/components/card/card.d.ts +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/card/card.js +2 -2
- package/dist/components/card/card.module.css +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/chip/chip.module.css +1 -1
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/dropdown/dropdown.d.ts +28 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.js +13 -8
- package/dist/components/elevator/elevator.d.ts.map +1 -1
- package/dist/components/elevator/elevator.js +2 -2
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/grid/grid.module.css +1 -1
- package/dist/components/icon/icon.d.ts +7 -5
- package/dist/components/icon/icon.d.ts.map +1 -1
- package/dist/components/icon/icon.js +1 -1
- package/dist/components/info-state/info-state.js +1 -1
- package/dist/components/input-group/input-group.d.ts.map +1 -1
- package/dist/components/input-group/input-group.js +4 -4
- package/dist/components/list/list.js +1 -1
- package/dist/components/masonry/masonry.d.ts.map +1 -1
- package/dist/components/masonry/masonry.js +2 -2
- package/dist/components/menu/menu-item/menu-item.js +1 -1
- package/dist/components/menu/menu.js +1 -1
- package/dist/components/modal/content/modal-content.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/selection-controls/checkbox.d.ts.map +1 -1
- package/dist/components/selection-controls/checkbox.js +2 -1
- package/dist/components/selection-controls/radio.d.ts.map +1 -1
- package/dist/components/selection-controls/radio.js +2 -1
- package/dist/components/selection-controls/selection-controls.module.css +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/snackbar/snackbar.js +1 -1
- package/dist/components/stack/stack.d.ts +4 -4
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/stack/stack.js +6 -6
- package/dist/components/star-meter/star-meter.js +1 -1
- package/dist/components/tab/tab-item.d.ts.map +1 -1
- package/dist/components/tab/tab-item.js +3 -2
- package/dist/components/tab/tab.d.ts.map +1 -1
- package/dist/components/tab/tab.js +4 -5
- package/dist/components/tab/tab.module.css +1 -1
- package/dist/components/table/table-cell/table-cell.d.ts +0 -4
- package/dist/components/table/table-cell/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell/table-cell.js +9 -20
- package/dist/components/table/table-cell/table-cell.module.css +1 -1
- package/dist/components/table/table-controls/toggle-columns.d.ts +4 -4
- package/dist/components/table/table-controls/toggle-columns.d.ts.map +1 -1
- package/dist/components/table/table-controls/toggle-columns.js +3 -3
- package/dist/components/table/table-header/table-header.d.ts +1 -1
- package/dist/components/table/table-header/table-header.d.ts.map +1 -1
- package/dist/components/table/table-header/table-header.js +2 -2
- package/dist/components/table/table-pagination/table-pagination.d.ts +1 -1
- package/dist/components/table/table-pagination/table-pagination.d.ts.map +1 -1
- package/dist/components/table/table-pagination/table-pagination.js +5 -3
- package/dist/components/table/table-row/table-row.d.ts +8 -3
- package/dist/components/table/table-row/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row/table-row.js +12 -3
- package/dist/components/table/table-row/table-row.module.css +1 -1
- package/dist/components/table/table.d.ts +9 -9
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +50 -37
- package/dist/components/table/types.d.ts +9 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/textfield/textfield.js +2 -2
- package/dist/components/toggle-button/toggle-button.module.css +1 -1
- package/dist/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.js +4 -3
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { AnimatePresence, motion } from 'framer-motion';
|
|
3
3
|
import { AutocompleteOption } from './autocomplete-option';
|
|
4
|
-
import { Children, cloneElement, forwardRef, useCallback, useMemo, useRef, useState, useEffect } from 'react';
|
|
4
|
+
import { Children, cloneElement, forwardRef, useCallback, useMemo, useRef, useState, useEffect, isValidElement } from 'react';
|
|
5
5
|
import { useDebounce, useFocusWithin, useKeyPress, useSize } from 'ahooks';
|
|
6
6
|
import { Text, Menu, Textfield } from '../..';
|
|
7
7
|
import styles from './autocomplete.module.css';
|
|
@@ -73,7 +73,7 @@ export const Autocomplete = forwardRef(({ children, onChange, disabled, readOnly
|
|
|
73
73
|
}, [value]);
|
|
74
74
|
return (_jsxs("div", { ref: autocompleteRef, className: styles.Autocomplete, "data-focus-within": isFocusWithin, children: [_jsx(Textfield, { ref: setTriggerRef, id: seedID('autocomplete-trigger'), "aria-haspopup": "true", "aria-controls": seedID('autocomplete-menu'), "aria-expanded": isOpen, onChange: handleFilter, value: content, autoComplete: "off", disabled: disabled, readOnly: readOnly, ...otherProps }, seedID('autocomplete-trigger')), _jsx(AnimatePresence, { children: visible && (_jsx("div", { ref: setTooltipRef, ...getTooltipProps({ className: styles.PopUp, style: { minInlineSize: triggerSize ? (triggerSize.width + 2) : 'auto' } }), children: _jsx(motion.div, { variants: AutocompleteAnimation, initial: "hidden", animate: "visible", exit: "hidden", children: _jsx(Menu, { role: "listbox", id: seedID('autocomplete-menu'), className: styles.OptionsList, style: dynamicStyle, "aria-labelledby": seedID('autocomplete-trigger'), children: filteredOptions.length === 0
|
|
75
75
|
? _jsx(Text, { as: "div", textAlign: "center", dimmed: 5, children: emptyMessage }, void 0)
|
|
76
|
-
: Children.map(filteredOptions, (child) => cloneElement(child, {
|
|
76
|
+
: Children.map(filteredOptions, (child) => isValidElement(child) && cloneElement(child, {
|
|
77
77
|
onClick: handleOptionClick
|
|
78
78
|
})) }, void 0) }, void 0) }, void 0)) }, void 0)] }, void 0));
|
|
79
79
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAsC,UAAU,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAsC,UAAU,EAA+B,MAAM,OAAO,CAAA;AACvG,OAAO,EAAQ,SAAS,EAAE,WAAW,EAAW,MAAM,cAAc,CAAA;AAGpE,oBAAY,WAAW,GAAG;IACxB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;IACrC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,GAAG,iBAAiB,CAAC,GAAG,IAAI,CAAC;CAC1E,CAAA;AAED,aAAK,iBAAiB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;AAEhF,eAAO,MAAM,MAAM,mBAgEI,CAAA;AAEvB,oBAAY,iBAAiB,GAAG,cAAc,GAAG,IAAI,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAAC,CAAA;AAExF,eAAO,MAAM,YAAY,EAAE,EAAE,CAAC,iBAAiB,CAe9C,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { Children, cloneElement, forwardRef, useCallback } from 'react';
|
|
3
|
+
import { Children, cloneElement, forwardRef, useCallback, isValidElement } from 'react';
|
|
4
4
|
import { Icon, Spinner } from '../..';
|
|
5
5
|
import 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) => {
|
|
@@ -11,13 +11,13 @@ export const Button = forwardRef(({ kind = 'primary', dimension = 'regular', cla
|
|
|
11
11
|
event.preventDefault();
|
|
12
12
|
}, [disabled, onClick]);
|
|
13
13
|
const iconSize = {
|
|
14
|
-
big:
|
|
14
|
+
big: 16,
|
|
15
15
|
regular: 16,
|
|
16
16
|
small: 12
|
|
17
17
|
};
|
|
18
|
-
return (_jsxs(Wrapper, { ref: forwardedRef, type: Wrapper === 'button' ? type : undefined, className: clsx(styles.Button, className), "data-button-icon-position": iconPosition, "data-button-dimension": dimension, "data-button-kind": kind, "data-button-fullwidth": fullWidth, "aria-disabled": disabled, "aria-busy": busy, "aria-pressed": Wrapper === 'button' ? pressed : undefined, "aria-live": busy ? 'polite' : undefined, onClick: handleClick(), ...otherProps, children: [icon && (_jsx(Icon, { source: icon, fill: iconColor, dimension: iconSize[dimension] }, void 0)), (children && busy) ? _jsx("span", { children: children }, void 0) : children, busy && (_jsx("span", { className: styles.SpinnerIndicator, children: _jsx(Spinner, { dimension: dimension }, void 0) }, void 0))] }, void 0));
|
|
18
|
+
return (_jsxs(Wrapper, { ref: forwardedRef, type: Wrapper === 'button' ? type : undefined, className: clsx(styles.Button, className), "data-button-icon-position": iconPosition, "data-button-dimension": dimension, "data-button-kind": kind, "data-button-fullwidth": fullWidth, "aria-disabled": disabled, "aria-busy": busy, "aria-pressed": Wrapper === 'button' ? pressed : undefined, "aria-live": busy ? 'polite' : undefined, onClick: handleClick(), ...otherProps, children: [icon && (_jsx(Icon, { source: icon, fill: iconColor, weight: "solid", dimension: iconSize[dimension] }, void 0)), (children && busy) ? _jsx("span", { children: children }, void 0) : children, busy && (_jsx("span", { className: styles.SpinnerIndicator, children: _jsx(Spinner, { dimension: dimension }, void 0) }, void 0))] }, void 0));
|
|
19
19
|
});
|
|
20
|
-
export const ButtonsGroup = ({ children, className, kind, dimension = 'regular' }) => (_jsx("div", { className: clsx(styles.ButtonsGroup, className), children: Children.map(children, (child) => cloneElement(child, {
|
|
20
|
+
export const ButtonsGroup = ({ children, className, kind, dimension = 'regular' }) => (_jsx("div", { className: clsx(styles.ButtonsGroup, className), children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, {
|
|
21
21
|
kind,
|
|
22
22
|
dimension
|
|
23
23
|
})) }, void 0));
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
2
|
import { StackProps, Polymorphic } from '../..';
|
|
3
3
|
import { TokensTypes } from '@wonderflow/tokens/platforms/web';
|
|
4
|
-
export declare type CardProps = Pick<StackProps, 'wrap' | 'columnGap' | 'rowGap' | '
|
|
4
|
+
export declare type CardProps = Pick<StackProps, 'wrap' | 'columnGap' | 'rowGap' | 'vAlign' | 'hAlign'> & {
|
|
5
5
|
/**
|
|
6
6
|
* Set the padding on each side of the card.
|
|
7
7
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAS,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,oBAAY,SAAS,GAAG,IAAI,CAC5B,UAAU,EACR,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/card/card.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAE5D,OAAO,EAAS,UAAU,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI7D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,oBAAY,SAAS,GAAG,IAAI,CAC5B,UAAU,EACR,MAAM,GAAG,WAAW,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,GACpD;IACF;;OAEG;IACH,OAAO,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,GAAG,WAAW,CAAC,QAAQ,CAAC,CAAC;IACvC;;OAEG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC;AAEzE,eAAO,MAAM,IAAI,iBA6DI,CAAA"}
|
|
@@ -4,10 +4,10 @@ import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
|
|
|
4
4
|
import { Stack } from '../..';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import styles from './card.module.css';
|
|
7
|
-
export const Card = forwardRef(({ as: Wrapper = 'div', children, className, padding = 24, radius = 8, left, right, dimmed, bordered, columnGap = 24, rowGap = 24,
|
|
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],
|
|
10
10
|
'--radius': radius && tkns.radius[radius]
|
|
11
11
|
};
|
|
12
|
-
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Card, className), style: { ...dynamicStyle, ...style }, "data-card-dimmed": dimmed, "data-card-bordered": bordered, "data-card-vibrant": vibrant, "data-card-highlight-hover": highlightOnHover, ...otherProps, children: _jsxs(Stack, { direction: "row", fill: false,
|
|
12
|
+
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Card, className), style: { ...dynamicStyle, ...style }, "data-card-dimmed": dimmed, "data-card-bordered": bordered, "data-card-vibrant": vibrant, "data-card-highlight-hover": highlightOnHover, ...otherProps, children: _jsxs(Stack, { direction: "row", fill: false, vAlign: vAlign, hAlign: hAlign, columnGap: columnGap, rowGap: rowGap, wrap: wrap, children: [left && _jsx("div", { className: styles.Left, children: left }, void 0), children && (_jsx("div", { className: styles.Content, children: children }, void 0)), right && (_jsx("div", { className: styles.Right, children: right }, void 0))] }, void 0) }, void 0));
|
|
13
13
|
});
|
|
@@ -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="1"]:where(.Card){background-color:var(--dimmed-0)}[data-card-dimmed="1"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-background)}[data-card-dimmed="2"]:where(.Card){background-color:var(--dimmed-1)}[data-card-dimmed="2"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-0)}[data-card-dimmed="3"]:where(.Card){background-color:var(--dimmed-2)}[data-card-dimmed="3"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-1)}[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-bordered=true]:where(.Card){border:1px solid var(--dimmed-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="1"]:where(.Card){background-color:var(--dimmed-0)}[data-card-dimmed="1"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--global-background)}[data-card-dimmed="2"]:where(.Card){background-color:var(--dimmed-1)}[data-card-dimmed="2"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-0)}[data-card-dimmed="3"]:where(.Card){background-color:var(--dimmed-2)}[data-card-dimmed="3"][data-card-highlight-hover=true]:where(.Card):is(:hover,:focus-visible){background-color:var(--dimmed-1)}[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-bordered=true]:where(.Card){border:1px solid var(--dimmed-1)}.Left{flex-shrink:0}.Content{flex-grow:1}.Right{flex-shrink:0}
|
|
@@ -18,6 +18,6 @@ export const Chip = forwardRef(({ children, className, dimension = 'regular', co
|
|
|
18
18
|
style: 'outline'
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
return (_jsxs(Stack, { as: "span", direction: "row", columnGap: 8, inline: true, "data-chip-color": color, "data-chip-dimension": dimension, className: clsx(styles.Chip, className),
|
|
21
|
+
return (_jsxs(Stack, { as: "span", direction: "row", columnGap: 8, inline: true, "data-chip-color": color, "data-chip-dimension": dimension, className: clsx(styles.Chip, className), vAlign: "center", ref: forwardedRef, ...otherProps, children: [_jsx("b", { children: children }, void 0), interactive && (_jsx("button", { onClick: interactive && onDismissClick, className: styles.Action, type: "button", children: _jsx(Icon, { source: "xmark", weight: properties[dimension].style, dimension: properties[dimension].iconSize }, void 0) }, void 0))] }, void 0));
|
|
22
22
|
});
|
|
23
23
|
Chip.displayName = 'Chip';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Chip{background-color:var(--highlight-gray-background);block-size:1.78rem;border-radius:2.67rem;color:var(--highlight-gray-foreground);font-size:.89rem;font-weight:600;padding:
|
|
1
|
+
.Chip{background-color:var(--highlight-gray-background);block-size:1.78rem;border-radius:2.67rem;color:var(--highlight-gray-foreground);font-size:.89rem;font-weight:600;padding:0 .44rem .22rem}.Chip[data-chip-dimension=small]{block-size:1.33rem;font-size:.78rem}.Chip[data-chip-dimension=big]{font-size:1rem}.Chip[data-chip-color=cyan]{background-color:var(--highlight-cyan-background);color:var(--highlight-cyan-foreground)}.Chip[data-chip-color=green]{background-color:var(--highlight-green-background);color:var(--highlight-green-foreground)}.Chip[data-chip-color=purple]{background-color:var(--highlight-purple-background);color:var(--highlight-purple-foreground)}.Chip[data-chip-color=yellow]{background-color:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground)}.Chip[data-chip-color=red]{background-color:var(--highlight-red-background);color:var(--highlight-red-foreground)}.Chip[data-chip-color=blue]{background-color:var(--highlight-blue-background);color:var(--highlight-blue-foreground)}.Action{-webkit-appearance:none;appearance:none;background:none;border:0;color:inherit;cursor:pointer;display:inline-flex;font:inherit;margin-top:1px;padding:0}
|
|
@@ -28,6 +28,6 @@ export const Drawer = forwardRef(({ children, className, closeOnClickOutside = t
|
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
};
|
|
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(motion.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, {
|
|
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(motion.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 }, void 0), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" }, void 0)] }, void 0)), _jsx(AutoFocusInside, { children: children }, void 0)] }, void 0) }, void 0) }, void 0) }, void 0) }, void 0));
|
|
32
32
|
});
|
|
33
33
|
Drawer.displayName = 'Drawer';
|
|
@@ -27,6 +27,20 @@ export declare type DropdownProps = PropsWithClass & {
|
|
|
27
27
|
* Enable or disable the itneraction on the trigger.
|
|
28
28
|
*/
|
|
29
29
|
disabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Callback triggered when the dropdown state changes.
|
|
32
|
+
* It returns the new `boolean` state.
|
|
33
|
+
*/
|
|
34
|
+
onOpenChange?: (open: boolean) => void;
|
|
35
|
+
/**
|
|
36
|
+
* Programmatically open or close the dropdown. If set to `true`, the dropdown
|
|
37
|
+
* will be open when rendered. This make the dropdown a controlled component.
|
|
38
|
+
*/
|
|
39
|
+
open?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Enable or disable the auto close of the dropdown when clicking outside of it.
|
|
42
|
+
*/
|
|
43
|
+
closeOnOutsideClick?: boolean;
|
|
30
44
|
};
|
|
31
45
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<PropsWithClass & {
|
|
32
46
|
/**
|
|
@@ -55,5 +69,19 @@ export declare const Dropdown: import("react").ForwardRefExoticComponent<PropsWi
|
|
|
55
69
|
* Enable or disable the itneraction on the trigger.
|
|
56
70
|
*/
|
|
57
71
|
disabled?: boolean | undefined;
|
|
72
|
+
/**
|
|
73
|
+
* Callback triggered when the dropdown state changes.
|
|
74
|
+
* It returns the new `boolean` state.
|
|
75
|
+
*/
|
|
76
|
+
onOpenChange?: ((open: boolean) => void) | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Programmatically open or close the dropdown. If set to `true`, the dropdown
|
|
79
|
+
* will be open when rendered. This make the dropdown a controlled component.
|
|
80
|
+
*/
|
|
81
|
+
open?: boolean | undefined;
|
|
82
|
+
/**
|
|
83
|
+
* Enable or disable the auto close of the dropdown when clicking outside of it.
|
|
84
|
+
*/
|
|
85
|
+
closeOnOutsideClick?: boolean | undefined;
|
|
58
86
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
59
87
|
//# sourceMappingURL=dropdown.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAQV,MAAM,OAAO,CAAA;AAId,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAKjF,oBAAY,aAAa,GAAG,cAAc,GAAG;IAC3C;;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;CAC/B,CAAA;AAqBD,eAAO,MAAM,QAAQ;IA7DnB;;OAEG;cACO,SAAS;IACnB;;OAEG;aACM,SAAS;IAClB;;OAEG;;IAEH;;;;;;;;OAQG;;IAEH;;OAEG;;IAEH;;;OAGG;2BACmB,OAAO,KAAK,IAAI;IACtC;;;OAGG;;IAEH;;OAEG;;kDAwHH,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useState, Children, cloneElement, useRef, forwardRef } from 'react';
|
|
2
|
+
import { useState, Children, cloneElement, useRef, forwardRef, isValidElement, useEffect } from 'react';
|
|
3
3
|
import { useKeyPress, useFocusWithin } from 'ahooks';
|
|
4
4
|
import styles from './dropdown.module.css';
|
|
5
5
|
import { useUIDSeed } from 'react-uid';
|
|
@@ -24,8 +24,7 @@ const DropdownAnimation = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement = 'auto-start', disabled, className, ...otherProps }, forwardedRef) => {
|
|
28
|
-
const renderedChildren = Children.toArray(children).filter(Boolean);
|
|
27
|
+
export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement = 'auto-start', open, disabled, closeOnOutsideClick = true, className, onOpenChange, ...otherProps }, forwardedRef) => {
|
|
29
28
|
const seedID = useUIDSeed();
|
|
30
29
|
const dropdownRef = useRef(forwardedRef);
|
|
31
30
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -35,10 +34,13 @@ export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement =
|
|
|
35
34
|
trigger: !disabled ? ['click'] : null,
|
|
36
35
|
visible: isOpen,
|
|
37
36
|
closeOnTriggerHidden: true,
|
|
38
|
-
|
|
37
|
+
closeOnOutsideClick,
|
|
38
|
+
onVisibleChange: state => {
|
|
39
|
+
onOpenChange?.(state);
|
|
40
|
+
setIsOpen(state);
|
|
41
|
+
},
|
|
39
42
|
placement: placement,
|
|
40
|
-
offset: [0, offset]
|
|
41
|
-
closeOnOutsideClick: true
|
|
43
|
+
offset: [0, offset]
|
|
42
44
|
});
|
|
43
45
|
const isFocusWithin = useFocusWithin(dropdownRef, {
|
|
44
46
|
onBlur: (e) => {
|
|
@@ -48,7 +50,10 @@ export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement =
|
|
|
48
50
|
}
|
|
49
51
|
});
|
|
50
52
|
useKeyPress('esc', () => setIsOpen(false));
|
|
51
|
-
|
|
53
|
+
useEffect(() => {
|
|
54
|
+
open !== undefined && setIsOpen(open);
|
|
55
|
+
}, [open]);
|
|
56
|
+
return (_jsxs("div", { ref: dropdownRef, className: clsx(styles.Dropdown, className), "data-dropdown-has-focus": isFocusWithin, children: [Children.map(trigger, (child) => isValidElement(child) && cloneElement(child, {
|
|
52
57
|
ref: setTriggerRef,
|
|
53
58
|
id: seedID('dropdown-trigger'),
|
|
54
59
|
key: seedID('dropdown-trigger'),
|
|
@@ -56,7 +61,7 @@ export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement =
|
|
|
56
61
|
'aria-controls': seedID('dropdown-menu'),
|
|
57
62
|
'aria-expanded': isOpen,
|
|
58
63
|
...otherProps
|
|
59
|
-
})), _jsx(AnimatePresence, { children: visible && (_jsx("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), ...getTooltipProps({ className: styles.PopUp }), children: _jsx(motion.div, { variants: DropdownAnimation, initial: "hidden", animate: "visible", exit: "hidden", children: Children.map(
|
|
64
|
+
})), _jsx(AnimatePresence, { children: visible && (_jsx("div", { ref: setTooltipRef, role: "tooltip", id: seedID('tooltip-content'), ...getTooltipProps({ className: styles.PopUp }), children: _jsx(motion.div, { variants: DropdownAnimation, initial: "hidden", animate: "visible", exit: "hidden", children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, {
|
|
60
65
|
id: seedID('dropdown-menu'),
|
|
61
66
|
'aria-labelledby': seedID('dropdown-trigger')
|
|
62
67
|
})) }, void 0) }, seedID('tooltip-content'))) }, void 0)] }, void 0));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"elevator.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/elevator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoC,YAAY,
|
|
1
|
+
{"version":3,"file":"elevator.d.ts","sourceRoot":"","sources":["../../../src/components/elevator/elevator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAoC,YAAY,EAAkB,MAAM,OAAO,CAAA;AAE1F,oBAAY,aAAa,GAAG;IAC1B;;MAEE;IACF,OAAO,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAC1B;;;;OAIG;IACH,QAAQ,EAAE,YAAY,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgBtC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Fragment, Children, cloneElement } from 'react';
|
|
2
|
+
import { Fragment, Children, cloneElement, isValidElement } from 'react';
|
|
3
3
|
export const Elevator = ({ children, resting, hover }) => {
|
|
4
|
-
return (_jsx(Fragment, { children: Children.map(children, (child) => cloneElement(child, {
|
|
4
|
+
return (_jsx(Fragment, { children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, {
|
|
5
5
|
'data-elevation': resting,
|
|
6
6
|
'data-elevation-hover': hover
|
|
7
7
|
})) }, void 0));
|
|
@@ -4,10 +4,10 @@ import clsx from 'clsx';
|
|
|
4
4
|
import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
|
|
5
5
|
import { GridItem } from './item/grid-item';
|
|
6
6
|
import styles from './grid.module.css';
|
|
7
|
-
export const Grid = forwardRef(({ className, children, columns, rows, rowGap
|
|
7
|
+
export const Grid = forwardRef(({ className, children, columns, rows, rowGap, columnGap, style, filling = 'fill', colMinWidth = '10rem', rowMinHeight = '1fr', ...otherProps }, forwardedRef) => {
|
|
8
8
|
const computedStyle = {
|
|
9
|
-
'--
|
|
10
|
-
'--
|
|
9
|
+
'--row-gap': rowGap ? tkns.space[rowGap] : 0,
|
|
10
|
+
'--column-gap': columnGap ? tkns.space[columnGap] : 0,
|
|
11
11
|
'--columns': columns,
|
|
12
12
|
'--column-min-w': colMinWidth,
|
|
13
13
|
'--rows': rows,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Grid{--column-size:minmax(min(var(--column-min-w),100%),1fr);grid-gap:var(--
|
|
1
|
+
.Grid{--column-size:minmax(min(var(--column-min-w),100%),1fr);grid-gap:var(--row-gap,.44rem) var(--column-gap,.44rem);display:grid;grid-template-columns:repeat(var(--columns),var(--column-size));grid-template-rows:repeat(var(--rows),var(--row-min-h));list-style:none;margin:0;padding:0}.Grid[data-grid-filling-type=fill]{grid-template-columns:repeat(auto-fill,var(--column-size))}.Grid[data-grid-filling-type=fit]{grid-template-columns:repeat(auto-fit,var(--column-size))}
|
|
@@ -16,8 +16,9 @@ export declare type IconProps = SVGAttributes<SVGElement | SVGSVGElement> & {
|
|
|
16
16
|
dimension?: TokensTypes['icon']['size'];
|
|
17
17
|
/**
|
|
18
18
|
* Set the weight of the icon.
|
|
19
|
-
* The default weight is `
|
|
20
|
-
*
|
|
19
|
+
* The default weight is `outline` if `dimension` is greather than `12` or `undefined`.
|
|
20
|
+
* If `dimension` is set to `12`, the weight is ignored and the icon forced to use
|
|
21
|
+
* the `solid` style to improve the readability.
|
|
21
22
|
*/
|
|
22
23
|
weight?: 'solid' | 'outline' | 'duotone';
|
|
23
24
|
};
|
|
@@ -33,11 +34,12 @@ export declare const Icon: import("react").ForwardRefExoticComponent<SVGAttribut
|
|
|
33
34
|
* Set the size of the icon. To improve readability at any size, the style of the icon
|
|
34
35
|
* is automatically defined based on the dimension.
|
|
35
36
|
*/
|
|
36
|
-
dimension?: 16 |
|
|
37
|
+
dimension?: 16 | 12 | 24 | 32 | 40 | 48 | 56 | undefined;
|
|
37
38
|
/**
|
|
38
39
|
* Set the weight of the icon.
|
|
39
|
-
* The default weight is `
|
|
40
|
-
*
|
|
40
|
+
* The default weight is `outline` if `dimension` is greather than `12` or `undefined`.
|
|
41
|
+
* If `dimension` is set to `12`, the weight is ignored and the icon forced to use
|
|
42
|
+
* the `solid` style to improve the readability.
|
|
41
43
|
*/
|
|
42
44
|
weight?: "solid" | "outline" | "duotone" | undefined;
|
|
43
45
|
} & import("react").RefAttributes<SVGSVGElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAIL,YAAY,EACZ,aAAa,EAEd,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAI9D,oBAAY,SAAS,GAAG,aAAa,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG;IAClE;;;;;OAKG;IACH,MAAM,EAAE,SAAS,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACnD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAC7C,OAAO,EAIL,YAAY,EACZ,aAAa,EAEd,MAAM,OAAO,CAAA;AAEd,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAI9D,oBAAY,SAAS,GAAG,aAAa,CAAC,UAAU,GAAG,aAAa,CAAC,GAAG;IAClE;;;;;OAKG;IACH,MAAM,EAAE,SAAS,GAAG,YAAY,CAAC,gBAAgB,CAAC,CAAC;IACnD;;;OAGG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACxC;;;;;MAKE;IACF,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C,CAAA;AAED,eAAO,MAAM,IAAI;IArBf;;;;;OAKG;YACK,SAAS,GAAG,aAAa,gBAAgB,CAAC;IAClD;;;OAGG;;IAEH;;;;;MAKE;;iDAyCF,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { Children, cloneElement, forwardRef, useMemo } from 'react';
|
|
3
|
-
import sprite from '@wonderflow/icons/sprite';
|
|
3
|
+
import sprite from '@wonderflow/icons/sprite.svg';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import styles from './icon.module.css';
|
|
6
6
|
export const Icon = forwardRef(({ className, source, dimension = 16, weight = 'outline', fill, ...otherProps }, forwardedRef) => {
|
|
@@ -4,6 +4,6 @@ import { Stack, Icon, Title, Text } from '../..';
|
|
|
4
4
|
import styles from './info-state.module.css';
|
|
5
5
|
export const InfoState = forwardRef(({ className, children, title, icon, image, direction = 'column', iconColor = 'blue', actions, ...otherProps }, forwardedRef) => {
|
|
6
6
|
const isHorizontal = direction === 'row';
|
|
7
|
-
return (_jsxs(Stack, { ref: forwardedRef, direction: direction, rowGap: 24, columnGap: 32, className: className,
|
|
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 }, void 0) }, void 0)), (image && !icon) && _jsx("img", { className: styles.Image, alt: "", width: "400", src: image, loading: "lazy", decoding: "async" }, void 0), _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 }, void 0), _jsx(Text, { maxWidth: "60ch", dimmed: 6, textAlign: isHorizontal ? 'start' : 'center', children: children }, void 0), actions && (_jsx(Stack, { vPadding: 16, inline: true, direction: "row", columnGap: 16, rowGap: 16, wrap: true, children: actions }, void 0))] }, void 0)] }, void 0));
|
|
8
8
|
});
|
|
9
9
|
InfoState.displayName = 'InfoState';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.tsx"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsD,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrF,oBAAY,eAAe,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,GAAG,CAAC,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,SAAS,CAAC;CACzC,CAAA;AAED,eAAO,MAAM,UAAU;IAtBrB;;OAEG;WACI,SAAS;IAChB;;OAEG;YACK,SAAS;IACjB;;OAEG;UACG,SAAS;IACf;;OAEG;YACK,SAAS;IACjB;;OAEG;;uDAgEH,CAAA"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { Children, cloneElement, forwardRef } from 'react';
|
|
3
|
+
import { Children, cloneElement, forwardRef, isValidElement } from 'react';
|
|
4
4
|
import { Stack, Text } from '../..';
|
|
5
5
|
import { useUIDSeed } from 'react-uid';
|
|
6
6
|
import styles from './input-group.module.css';
|
|
7
7
|
export const InputGroup = forwardRef(({ className, input, end, start, label, dimension = 'regular', ...otherProps }, forwardedRef) => {
|
|
8
8
|
const seedID = useUIDSeed();
|
|
9
|
-
return (_jsxs(Stack, { rowGap: 4,
|
|
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 }, void 0), _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(end), "data-input-group-has-start": !!start, ...otherProps, children: [_jsx("div", { className: styles.Start, children: Children.map(start, (child) => isValidElement(child) && cloneElement(child, {
|
|
10
10
|
dimension
|
|
11
|
-
})) }, void 0), _jsx("div", { className: styles.InputField, children: Children.map(input, (child) => cloneElement(child, {
|
|
11
|
+
})) }, void 0), _jsx("div", { className: styles.InputField, children: Children.map(input, (child) => isValidElement(child) && cloneElement(child, {
|
|
12
12
|
id: seedID('field'),
|
|
13
13
|
dimension
|
|
14
|
-
})) }, void 0), _jsx("div", { className: styles.End, children: Children.map(end, (child) => cloneElement(child, {
|
|
14
|
+
})) }, void 0), _jsx("div", { className: styles.End, children: Children.map(end, (child) => isValidElement(child) && cloneElement(child, {
|
|
15
15
|
dimension
|
|
16
16
|
})) }, void 0)] }, void 0)] }, void 0));
|
|
17
17
|
});
|
|
@@ -19,5 +19,5 @@ export const List = forwardRef(({ as: Wrapper = 'ul', children, marker = 'circle
|
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
const isUnordered = useMemo(() => Wrapper === 'ul', [Wrapper]);
|
|
22
|
-
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.List, className), "data-list-size": dimension, "data-list-ordered": !isUnordered, "data-list-no-marker": hideMarker, ...otherProps, children: Children.map(children, (child) => (_jsxs(Stack, { as: "li", direction: "row",
|
|
22
|
+
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.List, className), "data-list-size": dimension, "data-list-ordered": !isUnordered, "data-list-no-marker": hideMarker, ...otherProps, children: Children.map(children, (child) => (_jsxs(Stack, { as: "li", direction: "row", hAlign: "start", vAlign: "start", fill: false, children: [(isUnordered && !hideMarker) && (_jsx(Icon, { source: marker, className: styles.Marker, fill: markerColor, "data-list-default-marker": marker === 'circle', weight: marker === 'circle' ? 'solid' : undefined, dimension: marker !== 'circle' ? sizes[dimension].icon : 16 }, void 0)), _jsx(Text, { as: "span", size: sizes[dimension].text, children: child.props.children }, void 0)] }, void 0))) }, void 0));
|
|
23
23
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"masonry.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/masonry.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"masonry.d.ts","sourceRoot":"","sources":["../../../src/components/masonry/masonry.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAyD,MAAM,OAAO,CAAA;AAGjF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAG9D,oBAAY,YAAY,GAAG,cAAc,GAAG;IAC1C;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC;IAClC;;;;;;;;;;;;;;;;;OAiBG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC3B,CAAA;AAED,aAAK,OAAO,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CA4CpC,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
|
-
import { Children, cloneElement } from 'react';
|
|
3
|
+
import { Children, cloneElement, isValidElement } from 'react';
|
|
4
4
|
import MasonryLayout from 'react-masonry-css';
|
|
5
5
|
import tkns from '@wonderflow/tokens/platforms/web/tokens.json';
|
|
6
6
|
import styles from './masonry.module.css';
|
|
@@ -20,7 +20,7 @@ export const Masonry = ({ className, children, columns = 3, gutter = 16, style,
|
|
|
20
20
|
default: columns.default,
|
|
21
21
|
[breakpoints[current]]: columns[current]
|
|
22
22
|
}), {});
|
|
23
|
-
return (_jsx(MasonryLayout, { role: "list", className: clsx(styles.Masonry, className), columnClassName: styles.Column, breakpointCols: typeof columns === 'number' ? columns : computedColumns, style: { ...dynamicStyle, ...style }, ...otherProps, children: Children.map(children, (child) => cloneElement(child, {
|
|
23
|
+
return (_jsx(MasonryLayout, { role: "list", className: clsx(styles.Masonry, className), columnClassName: styles.Column, breakpointCols: typeof columns === 'number' ? columns : computedColumns, style: { ...dynamicStyle, ...style }, ...otherProps, children: Children.map(children, (child) => isValidElement(child) && cloneElement(child, {
|
|
24
24
|
role: 'listitem'
|
|
25
25
|
})) }, void 0));
|
|
26
26
|
};
|
|
@@ -15,7 +15,7 @@ export const MenuItem = forwardRef(({ className, children, onClick, icon, dimens
|
|
|
15
15
|
onClick(e);
|
|
16
16
|
}
|
|
17
17
|
}, [handleClick, onClick]);
|
|
18
|
-
const InnerContent = useMemo(() => (_jsxs(Stack, { direction: isIconRight ? 'row-reverse' : 'row', as: "span", fill: false, className: styles.ItemContent,
|
|
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 }, void 0)), _jsxs(Stack, { className: styles.DecorationContent, columnGap: 16, fill: false, direction: "row", hAlign: "space-between", children: [children, decoration] }, void 0)] }, void 0)), [children, dimension, icon, isIconRight, decoration, padding]);
|
|
19
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
20
|
? (_jsx(Tooltip, { fill: true, open: focused, placement: "right-start", interactive: true, trigger: InnerContent, children: description }, void 0))
|
|
21
21
|
: InnerContent }, void 0));
|
|
@@ -8,7 +8,7 @@ import styles from './menu.module.css';
|
|
|
8
8
|
import clsx from 'clsx';
|
|
9
9
|
export const Menu = forwardRef(({ className, children, ...otherProps }, forwardedRef) => {
|
|
10
10
|
const renderedChildren = Children.toArray(children).filter(Boolean);
|
|
11
|
-
return (_jsx(Elevator, { resting: 2, children: _jsx(Stack, { as: "ul", ref: forwardedRef, className: clsx(styles.Menu, className),
|
|
11
|
+
return (_jsx(Elevator, { resting: 2, children: _jsx(Stack, { as: "ul", ref: forwardedRef, className: clsx(styles.Menu, className), 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 }, void 0))) }, void 0) }, void 0) }, void 0));
|
|
12
12
|
});
|
|
13
13
|
Menu.displayName = 'Menu';
|
|
14
14
|
Menu.Item = MenuItem;
|
|
@@ -6,6 +6,6 @@ import styles from './modal-content.module.css';
|
|
|
6
6
|
import { Title, Elevator, IconButton, Stack, useOverlayContext } from '../../..';
|
|
7
7
|
export const ModalContent = forwardRef(({ children, className, title, theme = 'light', ...otherProps }, forwardedRef) => {
|
|
8
8
|
const { onClose, titleId } = useOverlayContext();
|
|
9
|
-
return (_jsx(Elevator, { resting: 4, children: _jsxs("div", { className: clsx(styles.Content, className), ref: forwardedRef, "data-theme": theme, ...otherProps, children: [_jsxs(Stack, {
|
|
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 }, void 0), onClose && _jsx(IconButton, { onClick: onClose, className: styles.CloseButton, icon: "xmark", kind: "flat" }, void 0)] }, void 0), _jsx(AutoFocusInside, { children: children }, void 0)] }, void 0) }, void 0));
|
|
10
10
|
});
|
|
11
11
|
ModalContent.displayName = 'Modal.Content';
|
|
@@ -11,6 +11,6 @@ export const Select = forwardRef(({ children, className, disabled = false, icon
|
|
|
11
11
|
regular: 16,
|
|
12
12
|
big: 24
|
|
13
13
|
};
|
|
14
|
-
return (_jsxs(Stack, { as: "fieldset", rowGap: 4, className: clsx(styles.Select, className), "data-select-is-multiple": kind === 'multiple', "data-select-has-label": Boolean(label), "data-select-dimension": dimension, "aria-disabled": disabled,
|
|
14
|
+
return (_jsxs(Stack, { as: "fieldset", rowGap: 4, className: clsx(styles.Select, className), "data-select-is-multiple": kind === 'multiple', "data-select-has-label": Boolean(label), "data-select-dimension": dimension, "aria-disabled": disabled, hAlign: "start", vAlign: "start", inline: true, tabIndex: disabled ? 0 : undefined, children: [label && _jsx(Text, { as: "label", size: dimension === 'small' ? 14 : 16, htmlFor: seedID('select'), children: label }, void 0), _jsxs("div", { className: styles.FieldContainer, children: [_jsx("select", { disabled: disabled, className: styles.Field, id: seedID('select'), multiple: kind === 'multiple', onChange: onChange, ref: forwardedRef, ...otherProps, children: children }, void 0), kind === 'single' && (_jsx(Icon, { className: styles.Icon, source: icon, dimension: iconSizes[dimension] }, void 0))] }, void 0)] }, void 0));
|
|
15
15
|
});
|
|
16
16
|
Select.displayName = 'Select';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAqB,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAqB,MAAM,OAAO,CAAA;AAIvF,oBAAY,aAAa,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAClE;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACvD,CAAA;AAED,eAAO,MAAM,QAAQ;IApBnB;;OAEG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;qBACc,YAAY,gBAAgB,CAAC,GAAG,IAAI;oDAuCrD,CAAA"}
|
|
@@ -2,6 +2,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef, useEffect, useRef } from 'react';
|
|
4
4
|
import styles from './selection-controls.module.css';
|
|
5
|
+
import { domAnimation, LazyMotion, m } from 'framer-motion';
|
|
5
6
|
export const Checkbox = forwardRef(({ className, disabled, dimension = 'regular', onChange, indeterminate, ...otherProps }, forwardedRef) => {
|
|
6
7
|
const ref = useRef(forwardedRef);
|
|
7
8
|
useEffect(() => {
|
|
@@ -9,6 +10,6 @@ export const Checkbox = forwardRef(({ className, disabled, dimension = 'regular'
|
|
|
9
10
|
ref.current.indeterminate = indeterminate;
|
|
10
11
|
}
|
|
11
12
|
}, [indeterminate]);
|
|
12
|
-
return (_jsx("input", { type: "checkbox", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: clsx(styles.
|
|
13
|
+
return (_jsx(LazyMotion, { features: domAnimation, strict: true, children: _jsx(m.span, { className: styles.InputWrapper, whileTap: { scale: 1.15 }, transition: { duration: 0.3, ease: 'backOut' }, children: _jsx("input", { type: "checkbox", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: clsx(styles.CheckboxInput, className), ref: ref, ...otherProps }, void 0) }, void 0) }, void 0));
|
|
13
14
|
});
|
|
14
15
|
Checkbox.displayName = 'Checkbox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/components/selection-controls/radio.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAc,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAIpE,oBAAY,UAAU,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAC/D;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,WAAW,CAAC,gBAAgB,CAAC,GAAG,IAAI,CAAC;CACvD,CAAA;AAED,eAAO,MAAM,KAAK;IAfhB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;qBACc,YAAY,gBAAgB,CAAC,GAAG,IAAI;oDA8BrD,CAAA"}
|
|
@@ -2,7 +2,8 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import styles from './selection-controls.module.css';
|
|
5
|
+
import { domAnimation, LazyMotion, m } from 'framer-motion';
|
|
5
6
|
export const Radio = forwardRef(({ className, disabled, dimension = 'regular', onChange, ...otherProps }, forwardedRef) => {
|
|
6
|
-
return (_jsx("input", { type: "radio", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: clsx(styles.
|
|
7
|
+
return (_jsx(LazyMotion, { features: domAnimation, strict: true, children: _jsx(m.span, { className: styles.InputWrapper, whileTap: { scale: 1.15 }, transition: { duration: 0.3, ease: 'backOut' }, children: _jsx("input", { type: "radio", disabled: disabled, "aria-disabled": disabled, "data-control-dimension": dimension, onChange: onChange, className: clsx(styles.RadioInput, className), ref: forwardedRef, ...otherProps }, void 0) }, void 0) }, void 0));
|
|
7
8
|
});
|
|
8
9
|
Radio.displayName = 'Radio';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.InputWrapper{display:inline-block;line-height:0}.CheckboxInput{--w:24px;--h:24px;-webkit-appearance:none;appearance:none;-webkit-backdrop-filter:saturate(180%) blur(62px);backdrop-filter:saturate(180%) blur(62px);background-color:var(--global-vibrancy-background);block-size:var(--h);border-radius:.22rem;color:var(--global-background);inline-size:var(--w);max-block-size:var(--h);max-inline-size:var(--w);position:relative}.CheckboxInput:after{block-size:27%;border-bottom:2px solid;border-left:2px solid;content:"";display:none;inline-size:50%;left:50%;position:absolute;top:50%;transform:translate(-50%,-80%) rotate(-45deg)}.CheckboxInput:active{background-color:var(--global-vibrancy-background-hard)}.CheckboxInput:checked,.CheckboxInput:indeterminate{background:var(--dimmed-7)}.CheckboxInput:checked:after,.CheckboxInput:indeterminate:after{display:block}.CheckboxInput:disabled{background-color:var(--global-disabled-background);color:var(--global-disabled-foreground);cursor:not-allowed}.CheckboxInput[data-control-dimension=small]{--w:16px;--h:16px}.CheckboxInput:indeterminate:after{block-size:2px;border-left:0;transform:translate(-50%,-50%)}.RadioInput{composes:CheckboxInput;border-radius:100%}.RadioInput:after{background-color:currentcolor;block-size:50%;border:0;border-radius:100%;inline-size:50%;transform:translate(-50%,-50%)}.Toggle{--w:44px;--h:24px;--p:2px;composes:RadioInput;border-radius:200px;color:var(--dimmed-7)}.Toggle:checked{color:var(--global-background)}.Toggle:disabled{color:var(--global-disabled-foreground)}.Toggle:after{block-size:calc(var(--h) - var(--p)*2);bottom:var(--p);display:block;inline-size:calc(var(--h) - var(--p)*2);left:var(--p);top:var(--p);transform:none;transition:transform .1s cubic-bezier(.3,.07,.34,1),background-color .1s cubic-bezier(.3,.07,.34,1)}.Toggle:checked:after{display:block;transform:translateX(100%)}.Toggle[data-control-dimension=small]{--w:28px;--h:16px}
|
|
@@ -10,6 +10,6 @@ export const Slider = forwardRef(({ min = 0, max = 100, step, onInput, className
|
|
|
10
10
|
onInput && onInput(currentTarget.valueAsNumber);
|
|
11
11
|
setValue(currentTarget.valueAsNumber);
|
|
12
12
|
}, [onInput]);
|
|
13
|
-
return (_jsxs(Stack, { direction: "row",
|
|
13
|
+
return (_jsxs(Stack, { direction: "row", vAlign: "center", columnGap: 8, className: clsx(styles.Slider, className), "data-slider-dimension": dimension, children: [showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", textAlign: "end", className: styles.Value, children: value }, void 0), (iconMin && !showValues) && _jsx(Icon, { source: iconMin, dimension: isSmall ? 16 : 24 }, void 0), _jsx("input", { ref: forwardedRef, className: styles.Input, type: "range", min: min, max: max, defaultValue: value, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value, step: step, onInput: handleInput, ...otherProps }, void 0), showValues && _jsx(Text, { as: "span", size: isSmall ? 14 : 16, weight: "bold", className: styles.Value, children: max }, void 0), (iconMax && !showValues) && _jsx(Icon, { source: iconMax, dimension: isSmall ? 16 : 24 }, void 0)] }, void 0));
|
|
14
14
|
});
|
|
15
15
|
Slider.displayName = 'Slider';
|
|
@@ -11,5 +11,5 @@ export const Snackbar = forwardRef(({ children, className, title, icon, kind = '
|
|
|
11
11
|
positive: 'check',
|
|
12
12
|
danger: 'circle-x'
|
|
13
13
|
};
|
|
14
|
-
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Snackbar, className), "data-snackbar-kind": kind, role: "status", ...otherProps, children: _jsxs(Stack, {
|
|
14
|
+
return (_jsx(Wrapper, { ref: forwardedRef, className: clsx(styles.Snackbar, className), "data-snackbar-kind": kind, role: "status", ...otherProps, children: _jsxs(Stack, { vAlign: "start", hAlign: "start", direction: "row", columnGap: 16, fill: false, children: [_jsx(Icon, { className: styles.Icon, weight: "duotone", source: icon || defaultIcons[kind], dimension: 24 }, void 0), _jsxs(Stack, { rowGap: 16, children: [_jsxs(Stack, { rowGap: 8, children: [title && _jsx(Title, { level: "5", children: title }, void 0), _jsx("p", { children: children }, void 0)] }, void 0), dismissable && (_jsx(Stack, { hAlign: "end", children: _jsx(Button, { onClick: onDismiss, className: styles.Action, children: dismissLabel }, void 0) }, void 0))] }, void 0)] }, void 0) }, void 0));
|
|
15
15
|
});
|
|
@@ -26,20 +26,20 @@ export declare type StackProps = {
|
|
|
26
26
|
* Set the vertical content placement instead of
|
|
27
27
|
* growing to fill the available space.
|
|
28
28
|
*/
|
|
29
|
-
|
|
29
|
+
vAlign?: string;
|
|
30
30
|
/**
|
|
31
31
|
* Set the horizontal content placement instead of
|
|
32
32
|
* growing to fill the available space.
|
|
33
33
|
*/
|
|
34
|
-
|
|
34
|
+
hAlign?: string;
|
|
35
35
|
/**
|
|
36
36
|
* Set the horizontal padding (left/right)
|
|
37
37
|
*/
|
|
38
|
-
|
|
38
|
+
hPadding?: TokensTypes['space'];
|
|
39
39
|
/**
|
|
40
40
|
* Set the vertical padding (top/bottom)
|
|
41
41
|
*/
|
|
42
|
-
|
|
42
|
+
vPadding?: TokensTypes['space'];
|
|
43
43
|
/**
|
|
44
44
|
* Renderes children as rows or columns. The value can be one of the flex directions.
|
|
45
45
|
* More info: https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/components/stack/stack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,
|
|
1
|
+
{"version":3,"file":"stack.d.ts","sourceRoot":"","sources":["../../../src/components/stack/stack.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,oBAAY,UAAU,GAAG;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACjC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;OAEG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,aAAa,GAAG,gBAAgB,CAAC;CACjE,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAE3E,eAAO,MAAM,KAAK,kBAgDI,CAAA"}
|