@wonderflow/react-components 5.3.0 → 5.4.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/core/basic.css +1 -1
- package/core/typography.css +1 -1
- package/core.css +1 -1
- package/dist/components/autocomplete/autocomplete-option.d.ts +1 -1
- package/dist/components/autocomplete/autocomplete-option.d.ts.map +1 -1
- package/dist/components/autocomplete/autocomplete-option.js +1 -1
- package/dist/components/autocomplete/autocomplete.d.ts.map +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.d.ts.map +1 -1
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/chip/chip.js +1 -1
- package/dist/components/clamp-text/clamp-text.d.ts.map +1 -1
- package/dist/components/container/container.d.ts.map +1 -1
- package/dist/components/datetime/datetime.d.ts +11 -0
- package/dist/components/datetime/datetime.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.d.ts.map +1 -1
- package/dist/components/disclosure/disclosure.js +12 -7
- package/dist/components/disclosure/disclosure.module.css +1 -1
- package/dist/components/dropdown/dropdown.d.ts +8 -0
- package/dist/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/components/dropdown/dropdown.js +2 -2
- package/dist/components/icon/icon.d.ts +1 -1
- package/dist/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/components/info-state/info-state.d.ts +1 -1
- package/dist/components/info-state/info-state.d.ts.map +1 -1
- package/dist/components/input-group/input-group.d.ts +8 -8
- package/dist/components/input-group/input-group.d.ts.map +1 -1
- package/dist/components/input-group/input-group.js +1 -1
- package/dist/components/list/list.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item-checkbox.d.ts +1 -2
- package/dist/components/menu/menu-item/menu-item-checkbox.d.ts.map +1 -1
- package/dist/components/menu/menu-item/menu-item-checkbox.js +1 -1
- package/dist/components/menu/menu-item/menu-item.d.ts.map +1 -1
- package/dist/components/menu/menu.d.ts.map +1 -1
- package/dist/components/modal/content/modal-content.js +1 -1
- package/dist/components/prose/prose.d.ts.map +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.d.ts.map +1 -1
- package/dist/components/slider/slider.d.ts +5 -5
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/snackbar/snackbar.d.ts.map +1 -1
- package/dist/components/split-button/split-button.d.ts +2 -1
- package/dist/components/split-button/split-button.d.ts.map +1 -1
- package/dist/components/split-button/split-button.js +4 -3
- package/dist/components/stack/stack.d.ts +2 -2
- package/dist/components/stack/stack.d.ts.map +1 -1
- package/dist/components/star-meter/star-meter.d.ts +1 -1
- package/dist/components/star-meter/star-meter.d.ts.map +1 -1
- package/dist/components/tab/tab-item.d.ts +1 -1
- package/dist/components/tab/tab-item.d.ts.map +1 -1
- package/dist/components/tab/tab.d.ts.map +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/text/text.d.ts.map +1 -1
- package/dist/components/text/text.module.css +1 -1
- package/dist/components/textfield/textfield.d.ts +2 -2
- package/dist/components/textfield/textfield.d.ts.map +1 -1
- package/dist/components/textfield/textfield.js +1 -1
- package/dist/components/title/title.d.ts.map +1 -1
- package/dist/components/toggle-button/toggle-button.d.ts.map +1 -1
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/package.json +10 -10
package/core/basic.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:112.5%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;margin:0;scroll-padding:4.44rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0}
|
|
1
|
+
html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:112.5%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;margin:0;scroll-padding:4.44rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}
|
package/core/typography.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
:where(p){font-size:.89rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.22rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:1.78rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:1.78rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.22rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.22rem;font-family:monospace;font-size:1em;padding:0 4px 3px
|
|
1
|
+
:where(p){font-size:.89rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.22rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:1.78rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:1.78rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.22rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.22rem;font-family:monospace;font-size:1em;padding:0 4px 3px}
|
package/core.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:112.5%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;margin:0;scroll-padding:4.44rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0}[data-elevation]{--shadow-color:0deg 0% 0%}[data-elevation-hover="0"]:hover,[data-elevation="0"]{box-shadow:none;transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="1"]:hover,[data-elevation="1"]{box-shadow:0 3px 13px hsl(var(--shadow-color)/6%),0 2.5px 4.59px hsl(var(--shadow-color)/4.06%),0 1.34px 2.45px hsl(var(--shadow-color)/2.35%),0 .75px 1.37px hsl(var(--shadow-color)/4%),0 .39px .73px hsl(var(--shadow-color)/1.65%),0 .16px .3px hsl(var(--shadow-color)/.94%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="2"]:hover,[data-elevation="2"]{box-shadow:0 9px 25px hsl(var(--shadow-color)/8%),0 3.75px 10.44px hsl(var(--shadow-color)/6.35%),0 2.01px 5.58px hsl(var(--shadow-color)/4.75%),0 1.12px 3.13px hsl(var(--shadow-color)/4.5%),0 .6px 1.66px hsl(var(--shadow-color)/4.25%),0 .25px .69px hsl(var(--shadow-color)/3.65%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="3"]:hover,[data-elevation="3"]{box-shadow:0 18px 40px hsl(var(--shadow-color)/9%),0 7.51px 16.71px hsl(var(--shadow-color)/5.63%),0 4.02px 8.93px hsl(var(--shadow-color)/4.15%),0 2.25px 5px hsl(var(--shadow-color)/4%),0 1.19px 2.66px hsl(var(--shadow-color)/3.85%),0 .49px 1.1px hsl(var(--shadow-color)/3.37%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="4"]:hover,[data-elevation="4"]{box-shadow:0 33px 78px hsl(var(--shadow-color)/11%),0 12.04px 28.47px hsl(var(--shadow-color)/7.59%),0 5.84px 13.82px hsl(var(--shadow-color)/6.12%),0 2.86px 6.77px hsl(var(--shadow-color)/4.88%),0 1.13px 2.67px hsl(var(--shadow-color)/5.41%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}:where(p){font-size:.89rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.22rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:1.78rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:1.78rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.22rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.22rem;font-family:monospace;font-size:1em;padding:0 4px 3px
|
|
1
|
+
html{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;background-color:var(--global-background);box-sizing:border-box;font-size:112.5%;line-height:1.5}*,:after,:before{-webkit-tap-highlight-color:hsl(0 100% 47%/20%);box-sizing:inherit;margin:0}:focus-visible{outline:5px auto Highlight;outline:5px auto -webkit-focus-ring-color}body{font-feature-settings:"calt" off;color:var(--global-foreground);font-family:system-ui,sans-serif;margin:0;scroll-padding:4.44rem}::selection{background-color:var(--dimmed-7);color:var(--dimmed-0);text-shadow:none}img{display:block;inline-size:100%;max-inline-size:100%}svg:not([fill]){fill:currentcolor}fieldset{border:0;padding:0}[data-elevation]{--shadow-color:0deg 0% 0%}[data-elevation-hover="0"]:hover,[data-elevation="0"]{box-shadow:none;transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="1"]:hover,[data-elevation="1"]{box-shadow:0 3px 13px hsl(var(--shadow-color)/6%),0 2.5px 4.59px hsl(var(--shadow-color)/4.06%),0 1.34px 2.45px hsl(var(--shadow-color)/2.35%),0 .75px 1.37px hsl(var(--shadow-color)/4%),0 .39px .73px hsl(var(--shadow-color)/1.65%),0 .16px .3px hsl(var(--shadow-color)/.94%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="2"]:hover,[data-elevation="2"]{box-shadow:0 9px 25px hsl(var(--shadow-color)/8%),0 3.75px 10.44px hsl(var(--shadow-color)/6.35%),0 2.01px 5.58px hsl(var(--shadow-color)/4.75%),0 1.12px 3.13px hsl(var(--shadow-color)/4.5%),0 .6px 1.66px hsl(var(--shadow-color)/4.25%),0 .25px .69px hsl(var(--shadow-color)/3.65%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="3"]:hover,[data-elevation="3"]{box-shadow:0 18px 40px hsl(var(--shadow-color)/9%),0 7.51px 16.71px hsl(var(--shadow-color)/5.63%),0 4.02px 8.93px hsl(var(--shadow-color)/4.15%),0 2.25px 5px hsl(var(--shadow-color)/4%),0 1.19px 2.66px hsl(var(--shadow-color)/3.85%),0 .49px 1.1px hsl(var(--shadow-color)/3.37%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}[data-elevation-hover="4"]:hover,[data-elevation="4"]{box-shadow:0 33px 78px hsl(var(--shadow-color)/11%),0 12.04px 28.47px hsl(var(--shadow-color)/7.59%),0 5.84px 13.82px hsl(var(--shadow-color)/6.12%),0 2.86px 6.77px hsl(var(--shadow-color)/4.88%),0 1.13px 2.67px hsl(var(--shadow-color)/5.41%);transition:box-shadow .1s cubic-bezier(.3,.07,.34,1)}:where(p){font-size:.89rem;line-height:1.5;min-block-size:.01vh}small{font-size:.7em}b,strong{font-weight:600}:where(a:any-link){color:var(--global-interactive-text);text-decoration:none;word-break:break-word}:where(a:any-link):not([class]){background-image:linear-gradient(currentcolor,currentcolor);background-position:0 100%;background-repeat:no-repeat;background-size:0 1px;transition:background-size .2s cubic-bezier(0,0,.34,1)}:where(a:any-link):not([class]):focus,:where(a:any-link):not([class]):hover{background-size:100% 1px}del{background-color:var(--highlight-red-background);box-shadow:0 0 0 2px var(--highlight-red-background);color:var(--highlight-red-foreground)}del,ins{border-radius:.22rem;padding:2px 4px}ins{background-color:var(--highlight-green-background);box-shadow:0 0 0 2px var(--highlight-green-background);color:var(--highlight-green-foreground);text-decoration:none}address{font-style:normal;line-height:inherit}dt{font-weight:600}dd{margin:0;padding:0}ol,ul{padding-left:1rem}ul li::marker{font-size:inherit;font-weight:600;min-inline-size:1.78rem;text-align:right}ol li::marker{font-feature-settings:"tnum";font-size:inherit;font-variant-numeric:tabular-nums;font-weight:600;min-inline-size:1.78rem;white-space:nowrap}kbd{border:1px solid var(--dimmed-1);border-radius:.22rem;box-shadow:0 2px 0 var(--dimmed-1);font-weight:600;padding:2px 4px}mark{background:var(--highlight-yellow-background);color:var(--highlight-yellow-foreground);padding:0 2px}abbr{text-decoration:underline dashed var(--cta-default)}label,legend{font-size:inherit}code{background-color:var(--global-vibrancy-background);border-radius:.22rem;font-family:monospace;font-size:1em;padding:0 4px 3px}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MenuItemProps } from '
|
|
1
|
+
import { MenuItemProps } from '../..';
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import { Except } from 'type-fest';
|
|
4
4
|
export declare type AutocompleteOptionProps = PropsWithChildren<PropsWithClass> & Except<MenuItemProps, 'padding' | 'autoFocus' | 'description' | 'onClick'> & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete-option.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete-option.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"autocomplete-option.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete-option.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,cAAc,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAmC,MAAM,OAAO,CAAA;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,oBAAY,uBAAuB,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG,MAAM,CAC9E,aAAa,EACb,SAAS,GAAG,WAAW,GAAG,aAAa,GAAG,SAAS,CACpD,GAAG;IACF;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACjD;;;OAGG;IACH,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC7B,CAAA;AAED,eAAO,MAAM,kBAAkB;;;IAjB7B;;;OAGG;WACI,MAAM;IACb;;;OAGG;wEACyC,IAAI;IAChD;;;OAGG;cACO,MAAM,GAAG,MAAM,EAAE;qDA4B3B,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Menu } from '
|
|
2
|
+
import { Menu } from '../..';
|
|
3
3
|
import { forwardRef, useCallback, useRef } from 'react';
|
|
4
4
|
export const AutocompleteOption = forwardRef(({ children, value, onClick, ...otherProps }, forwardedRef) => {
|
|
5
5
|
const contentRef = useRef(null);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AACnF,OAAO,EACK,yBAAyB,EAEC,SAAS,EAC9C,MAAM,OAAO,CAAA;AAEd,OAAO,EAAyB,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"autocomplete.d.ts","sourceRoot":"","sources":["../../../src/components/autocomplete/autocomplete.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsB,uBAAuB,EAAE,MAAM,uBAAuB,CAAA;AACnF,OAAO,EACK,yBAAyB,EAEC,SAAS,EAC9C,MAAM,OAAO,CAAA;AAEd,OAAO,EAAyB,cAAc,EAAE,MAAM,cAAc,CAAA;AAKpE,oBAAY,iBAAiB,GAAG,cAAc,GAAG;IAC/C;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,CAAC;CAC1B,CAAC;AAEF,aAAK,qBAAqB,GAAG,yBAAyB,CAAC,iBAAiB,CAAC,GAAG;IAC1E,MAAM,EAAE,yBAAyB,CAAC,uBAAuB,CAAC,CAAC;CAC5D,CAAA;AAqBD,eAAO,MAAM,YAAY,uBA6IE,CAAA"}
|
|
@@ -3,7 +3,7 @@ import { IconProps, Polymorphic } from '../..';
|
|
|
3
3
|
export declare type ButtonProps = {
|
|
4
4
|
/**
|
|
5
5
|
* Set the style of the button.
|
|
6
|
-
* When disabled
|
|
6
|
+
* When `disabled` this property is overwritten.
|
|
7
7
|
*/
|
|
8
8
|
kind?: 'primary' | 'secondary' | 'flat';
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAsC,UAAU,EAAe,MAAM,OAAO,CAAA;AACvF,OAAO,EAAQ,SAAS,EAAE,WAAW,EAAW,MAAM,
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/button/button.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,EAAE,EAAsC,UAAU,EAAe,MAAM,OAAO,CAAA;AACvF,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,mBA+DI,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 +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,
|
|
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,eAAe,GAAG,iBAAiB,CAAC,GACpE;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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
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 { Icon, Stack } from '
|
|
4
|
+
import { Icon, Stack } from '../..';
|
|
5
5
|
import 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 = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"clamp-text.d.ts","sourceRoot":"","sources":["../../../src/components/clamp-text/clamp-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAE,MAAM,OAAO,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAK1C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC;AAEpF,eAAO,MAAM,SAAS,sBAsBI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/container/container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/container/container.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,oBAAY,cAAc,GAAG;IAC3B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AAEnF,eAAO,MAAM,SAAS,sBAmBI,CAAA"}
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
export declare type DatetimeProps = HTMLAttributes<HTMLTimeElement> & {
|
|
3
|
+
/**
|
|
4
|
+
* The date to format and display.
|
|
5
|
+
*/
|
|
3
6
|
date: string;
|
|
7
|
+
/**
|
|
8
|
+
* Set the locale to use to format the date.
|
|
9
|
+
*/
|
|
4
10
|
locale?: string | string[];
|
|
11
|
+
/**
|
|
12
|
+
* Customize the date format by passing options from Intl.DateTimeFormat
|
|
13
|
+
*
|
|
14
|
+
* Read more: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat
|
|
15
|
+
*/
|
|
5
16
|
options?: Intl.DateTimeFormatOptions;
|
|
6
17
|
};
|
|
7
18
|
export declare const Datetime: ({ date, locale, options, ...otherProps }: DatetimeProps) => JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/datetime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;AAE3D,oBAAY,aAAa,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC5D,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACtC,CAAA;AAED,eAAO,MAAM,QAAQ,6CAKlB,aAAa,gBAuBf,CAAA"}
|
|
1
|
+
{"version":3,"file":"datetime.d.ts","sourceRoot":"","sources":["../../../src/components/datetime/datetime.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAuB,MAAM,OAAO,CAAA;AAE3D,oBAAY,aAAa,GAAG,cAAc,CAAC,eAAe,CAAC,GAAG;IAC5D;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,IAAI,CAAC,qBAAqB,CAAC;CACtC,CAAA;AAED,eAAO,MAAM,QAAQ,6CAKlB,aAAa,gBAuBf,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"disclosure.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAA;AAMd,oBAAY,eAAe,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,GAAG;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,UAAU;IAnCrB;;OAEG;;IAEH;;;OAGG;aACM,SAAS;IAClB;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;
|
|
1
|
+
{"version":3,"file":"disclosure.d.ts","sourceRoot":"","sources":["../../../src/components/disclosure/disclosure.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,qBAAqB,EACrB,SAAS,EACV,MAAM,OAAO,CAAA;AAMd,oBAAY,eAAe,GAAG,qBAAqB,CAAC,kBAAkB,CAAC,GAAG;IACxE;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;;OAGG;IACH,OAAO,EAAE,SAAS,CAAC;IACnB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,UAAU;IAnCrB;;OAEG;;IAEH;;;OAGG;aACM,SAAS;IAClB;;;;OAIG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;sDAqGH,CAAA"}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { forwardRef, useCallback, useState } from 'react';
|
|
2
|
+
import { forwardRef, useCallback, useEffect, useRef, useState } from 'react';
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import styles from './disclosure.module.css';
|
|
5
5
|
import { Text, Icon } from '../..';
|
|
6
6
|
import { motion } from 'framer-motion';
|
|
7
7
|
export const Disclosure = forwardRef(({ children, open = false, padding = true, className, summary, contentMaxHeight, dimension = 'regular', iconPosition = 'left', expandable = true, style, ...otherProps }, forwardedRef) => {
|
|
8
|
+
const ref = useRef(forwardedRef);
|
|
8
9
|
const [isOpen, setIsOpen] = useState(open);
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
if (ref.current) {
|
|
12
|
+
ref.current.open = open;
|
|
13
|
+
}
|
|
14
|
+
}, [expandable, open]);
|
|
15
|
+
const handleOpen = useCallback(() => () => {
|
|
16
|
+
(ref.current && expandable) && setIsOpen(ref.current.open);
|
|
17
|
+
}, [expandable]);
|
|
13
18
|
const dynamicStyle = {
|
|
14
19
|
'--maxHeight': contentMaxHeight
|
|
15
20
|
};
|
|
@@ -27,7 +32,7 @@ export const Disclosure = forwardRef(({ children, open = false, padding = true,
|
|
|
27
32
|
icon: 24
|
|
28
33
|
}
|
|
29
34
|
};
|
|
30
|
-
const renderContent = useCallback(() => (_jsx(motion.div, { className: styles.Content, "data-disclosure-padding": padding, "data-disclosure-height": Boolean(contentMaxHeight), animate: isOpen ? { y: 5, opacity: 1 } : { y: 0, opacity: 0 }, transition: { ease: 'easeOut', duration: 0.1 }, initial: false, children: children }, void 0)), [children, contentMaxHeight,
|
|
31
|
-
return (_jsxs("details", { style: { ...dynamicStyle, ...style }, className: clsx(styles.Disclosure, className), "data-disclosure-icon-position": iconPosition, "data-disclosure-dimension": dimension, "data-disclosure-expandable": expandable, "aria-expanded": isOpen ? 'true' : 'false',
|
|
35
|
+
const renderContent = useCallback(() => (_jsx(motion.div, { className: styles.Content, "data-disclosure-padding": padding, "data-disclosure-height": Boolean(contentMaxHeight), animate: isOpen ? { y: 5, opacity: 1 } : { y: 0, opacity: 0 }, transition: { ease: 'easeOut', duration: 0.1 }, initial: false, children: children }, void 0)), [children, contentMaxHeight, padding, isOpen]);
|
|
36
|
+
return (_jsxs("details", { style: { ...dynamicStyle, ...style }, className: clsx(styles.Disclosure, className), "data-disclosure-icon-position": iconPosition, "data-disclosure-dimension": dimension, "data-disclosure-expandable": expandable, onToggle: handleOpen(), "aria-expanded": isOpen ? 'true' : 'false', ref: ref, ...otherProps, children: [_jsxs(Text, { as: "summary", responsive: false, className: styles.Summary, "aria-expanded": isOpen, tabIndex: !expandable ? -1 : 0, size: dimension ? sizes[dimension].summary : undefined, weight: "bold", children: [summary, expandable && (_jsx(Icon, { className: styles.ExpandIcon, source: "chevron-right", dimension: sizes[dimension].icon }, void 0))] }, void 0), renderContent()] }, void 0));
|
|
32
37
|
});
|
|
33
38
|
Disclosure.displayName = 'Disclosure';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Disclosure{--icon-size:1.11rem;--icon-padding:0.44rem;--padding:calc(var(--icon-size) + var(--icon-padding) + var(--icon-size)/2);--icon-top-offset:calc(var(--icon-size)/2);display:block;position:relative;transform:translateZ(0);z-index:0}.Disclosure *{box-sizing:border-box}.Disclosure[data-disclosure-dimension=small]{--icon-top-offset:calc(var(--icon-size)/1.5);--icon-size:0.67rem}.Disclosure[data-disclosure-dimension=regular]{--icon-size:0.89rem}.Disclosure[data-disclosure-dimension=big]{--icon-top-offset:calc(var(--icon-size)/4);--icon-size:1.33rem;--icon-padding:0.89rem}.Summary{display:list-item;outline-offset:-2px;padding:.11rem 0;position:relative;touch-action:manipulation;-webkit-user-select:none;user-select:none}.Disclosure[data-disclosure-icon-position=right][data-disclosure-expandable=true] .Summary{padding-inline-end:var(--padding)}.Disclosure[data-disclosure-icon-position=left][data-disclosure-expandable=true] .Summary{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-expandable=true] .Summary{cursor:pointer}.Summary::marker{content:""}.Summary::-webkit-details-marker{display:none}.ExpandIcon{block-size:var(--icon-size);content:"";inline-size:var(--icon-size);position:absolute;right:calc(var(--icon-size)/2);top:var(--icon-top-offset);transform-box:fill-box;transform-origin:50% center;transition:transform .1s cubic-bezier(.3,.07,.34,1)}.Disclosure[data-disclosure-icon-position=left] .ExpandIcon{left:calc(var(--icon-size)/2);right:auto}.Disclosure[open]
|
|
1
|
+
.Disclosure{--icon-size:1.11rem;--icon-padding:0.44rem;--padding:calc(var(--icon-size) + var(--icon-padding) + var(--icon-size)/2);--icon-top-offset:calc(var(--icon-size)/2);display:block;position:relative;transform:translateZ(0);z-index:0}.Disclosure *{box-sizing:border-box}.Disclosure[data-disclosure-dimension=small]{--icon-top-offset:calc(var(--icon-size)/1.5);--icon-size:0.67rem}.Disclosure[data-disclosure-dimension=regular]{--icon-size:0.89rem}.Disclosure[data-disclosure-dimension=big]{--icon-top-offset:calc(var(--icon-size)/4);--icon-size:1.33rem;--icon-padding:0.89rem}.Summary{display:list-item;outline-offset:-2px;padding:.11rem 0;position:relative;touch-action:manipulation;-webkit-user-select:none;user-select:none}.Disclosure[data-disclosure-icon-position=right][data-disclosure-expandable=true] .Summary{padding-inline-end:var(--padding)}.Disclosure[data-disclosure-icon-position=left][data-disclosure-expandable=true] .Summary{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-expandable=true] .Summary{cursor:pointer}.Summary::marker{content:""}.Summary::-webkit-details-marker{display:none}.ExpandIcon{block-size:var(--icon-size);content:"";inline-size:var(--icon-size);position:absolute;right:calc(var(--icon-size)/2);top:var(--icon-top-offset);transform-box:fill-box;transform-origin:50% center;transition:transform .1s cubic-bezier(.3,.07,.34,1)}.Disclosure[data-disclosure-icon-position=left] .ExpandIcon{left:calc(var(--icon-size)/2);right:auto}.Disclosure[open]>.Summary>.ExpandIcon{transform:rotate(90deg)}.Content{box-sizing:border-box}.Disclosure[data-disclosure-icon-position=left] .Content[data-disclosure-padding=true]{padding-inline-start:var(--padding)}.Disclosure[data-disclosure-icon-position=right] .Content[data-disclosure-padding=true]{padding-right:var(--padding)}.Content[data-disclosure-height=true]{-webkit-overflow-scrolling:touch;max-block-size:var(--maxHeight);overflow:auto;overscroll-behavior:contain}
|
|
@@ -23,6 +23,10 @@ export declare type DropdownProps = PropsWithClass & {
|
|
|
23
23
|
* based on the available space, and anchored at the top (start) of the trigger.
|
|
24
24
|
*/
|
|
25
25
|
placement?: AutoPlacement | BasePlacement | VariationPlacement;
|
|
26
|
+
/**
|
|
27
|
+
* Enable or disable the itneraction on the trigger.
|
|
28
|
+
*/
|
|
29
|
+
disabled?: boolean;
|
|
26
30
|
};
|
|
27
31
|
export declare const Dropdown: import("react").ForwardRefExoticComponent<PropsWithClass & {
|
|
28
32
|
/**
|
|
@@ -47,5 +51,9 @@ export declare const Dropdown: import("react").ForwardRefExoticComponent<PropsWi
|
|
|
47
51
|
* based on the available space, and anchored at the top (start) of the trigger.
|
|
48
52
|
*/
|
|
49
53
|
placement?: AutoPlacement | BasePlacement | VariationPlacement | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Enable or disable the itneraction on the trigger.
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean | undefined;
|
|
50
58
|
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
51
59
|
//# 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,EAMV,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;
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,SAAS,EAMV,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;CACpB,CAAA;AAqBD,eAAO,MAAM,QAAQ;IA/CnB;;OAEG;cACO,SAAS;IACnB;;OAEG;aACM,SAAS;IAClB;;OAEG;;IAEH;;;;;;;;OAQG;;IAEH;;OAEG;;kDA+GH,CAAA"}
|
|
@@ -24,7 +24,7 @@ const DropdownAnimation = {
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
27
|
-
export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement = 'auto-start', className, ...otherProps }, forwardedRef) => {
|
|
27
|
+
export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement = 'auto-start', disabled, className, ...otherProps }, forwardedRef) => {
|
|
28
28
|
const renderedChildren = Children.toArray(children).filter(Boolean);
|
|
29
29
|
const seedID = useUIDSeed();
|
|
30
30
|
const dropdownRef = useRef(forwardedRef);
|
|
@@ -32,7 +32,7 @@ export const Dropdown = forwardRef(({ children, trigger, offset = 8, placement =
|
|
|
32
32
|
const { getTooltipProps, setTooltipRef, setTriggerRef, visible } = usePopperTooltip({
|
|
33
33
|
delayShow: 0,
|
|
34
34
|
delayHide: 0,
|
|
35
|
-
trigger: ['click'],
|
|
35
|
+
trigger: !disabled ? ['click'] : null,
|
|
36
36
|
visible: isOpen,
|
|
37
37
|
closeOnTriggerHidden: true,
|
|
38
38
|
onVisibleChange: setIsOpen,
|
|
@@ -33,7 +33,7 @@ export declare const Icon: import("react").ForwardRefExoticComponent<SVGAttribut
|
|
|
33
33
|
* Set the size of the icon. To improve readability at any size, the style of the icon
|
|
34
34
|
* is automatically defined based on the dimension.
|
|
35
35
|
*/
|
|
36
|
-
dimension?: 16 |
|
|
36
|
+
dimension?: 16 | 24 | 12 | 32 | 40 | 48 | 56 | undefined;
|
|
37
37
|
/**
|
|
38
38
|
* Set the weight of the icon.
|
|
39
39
|
* The default weight is `solid` and outline or duotone icons are available
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../src/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG/D,oBAAY,eAAe,GAAG,IAAI,CAClC,WAAW,EACT,MAAM,GAAG,WAAW,GAAG,MAAM,GAAG,UAAU,GAAG,SAAS,GAAG,MAAM,CAChE,CAAA;AAED,aAAK,qBAAqB,GAAG,WAAW,CAAC,mBAAmB,CAC1D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,GAAG,eAAe,CACtD,CAAC;AAEF,eAAO,MAAM,UAAU,uBAmBI,CAAA"}
|
|
@@ -42,7 +42,7 @@ export declare const InfoState: import("react").ForwardRefExoticComponent<PropsW
|
|
|
42
42
|
* The icon to display. This is used to enforce the message of the info state.
|
|
43
43
|
* This is not displayed if `image` is set.
|
|
44
44
|
*/
|
|
45
|
-
icon?: import("
|
|
45
|
+
icon?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
46
46
|
/**
|
|
47
47
|
* Set the icon color. Please use the correct color based on the type of the message.
|
|
48
48
|
* Eg. Don't use `green` for negative informations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"info-state.d.ts","sourceRoot":"","sources":["../../../src/components/info-state/info-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,EAAS,UAAU,EAAQ,SAAS,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"info-state.d.ts","sourceRoot":"","sources":["../../../src/components/info-state/info-state.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChE,OAAO,EAAS,UAAU,EAAQ,SAAS,EAAe,MAAM,cAAc,CAAA;AAG9E,oBAAY,cAAc,GAAG,iBAAiB,CAAC,cAAc,CAAC,GAAG;IAC/D;;;OAGG;IACH,KAAK,EAAE,SAAS,CAAA;IAChB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAA;IAC1B;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,CAAA;IAC5E;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACpC;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC;CACrB,CAAA;AAED,eAAO,MAAM,SAAS;;;IA9BpB;;;OAGG;WACI,SAAS;IAChB;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;OAEG;gBACS,UAAU,CAAC,WAAW,CAAC;IACnC;;;OAGG;cACO,SAAS;kDAqDnB,CAAA"}
|
|
@@ -4,14 +4,14 @@ export declare type InputGroupProps = PropsWithClass & {
|
|
|
4
4
|
* Pas the input element to decorate
|
|
5
5
|
*/
|
|
6
6
|
input: ReactNode;
|
|
7
|
-
/**
|
|
8
|
-
* Add a decoration element before the input.
|
|
9
|
-
*/
|
|
10
|
-
end?: ReactNode;
|
|
11
7
|
/**
|
|
12
8
|
* Add a decoration element after the input.
|
|
13
9
|
*/
|
|
14
10
|
start?: ReactNode;
|
|
11
|
+
/**
|
|
12
|
+
* Add a decoration element before the input.
|
|
13
|
+
*/
|
|
14
|
+
end?: ReactNode;
|
|
15
15
|
/**
|
|
16
16
|
* Add an accessible label to the componsed input group
|
|
17
17
|
*/
|
|
@@ -26,14 +26,14 @@ export declare const InputGroup: import("react").ForwardRefExoticComponent<Props
|
|
|
26
26
|
* Pas the input element to decorate
|
|
27
27
|
*/
|
|
28
28
|
input: ReactNode;
|
|
29
|
-
/**
|
|
30
|
-
* Add a decoration element before the input.
|
|
31
|
-
*/
|
|
32
|
-
end?: ReactNode;
|
|
33
29
|
/**
|
|
34
30
|
* Add a decoration element after the input.
|
|
35
31
|
*/
|
|
36
32
|
start?: ReactNode;
|
|
33
|
+
/**
|
|
34
|
+
* Add a decoration element before the input.
|
|
35
|
+
*/
|
|
36
|
+
end?: ReactNode;
|
|
37
37
|
/**
|
|
38
38
|
* Add an accessible label to the componsed input group
|
|
39
39
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrE,oBAAY,eAAe,GAAG,cAAc,GAAG;IAC7C;;OAEG;IACH,KAAK,EAAE,SAAS,CAAC;IACjB;;OAEG;IACH,
|
|
1
|
+
{"version":3,"file":"input-group.d.ts","sourceRoot":"","sources":["../../../src/components/input-group/input-group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAsC,SAAS,EAAE,MAAM,OAAO,CAAA;AAKrE,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,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import clsx from 'clsx';
|
|
3
3
|
import { Children, cloneElement, forwardRef } from 'react';
|
|
4
|
-
import { Stack, Text } from '
|
|
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) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAgC,SAAS,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/components/list/list.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAgC,SAAS,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEnF,oBAAY,SAAS,GAAG;IACtB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC;AAExE,eAAO,MAAM,IAAI,iBAuDI,CAAA"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { MenuItem, MenuItemProps } from '
|
|
2
|
-
import { Polymorphic } from '../../..';
|
|
1
|
+
import { MenuItem, MenuItemProps, Polymorphic } from '../../..';
|
|
3
2
|
export declare type MenuItemCheckboxProps = MenuItemProps & {
|
|
4
3
|
/**
|
|
5
4
|
* Set the default checked state of the checkbox item
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item-checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,
|
|
1
|
+
{"version":3,"file":"menu-item-checkbox.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item-checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAEnE,oBAAY,qBAAqB,GAAG,aAAa,GAAG;IAClD;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,yBAAyB,GAAG,WAAW,CAAC,mBAAmB,CAC9D,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,qBAAqB,CAC9D,CAAC;AAEF,eAAO,MAAM,gBAAgB,2BAcC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef } from 'react';
|
|
3
|
-
import { MenuItem } from '
|
|
3
|
+
import { MenuItem } from '../../..';
|
|
4
4
|
export const MenuItemCheckbox = forwardRef(({ children, checked, ...otherProps }, forwardedRef) => (_jsx(MenuItem, { role: "menuitemcheckbox", "aria-checked": checked, ref: forwardedRef, ...otherProps, children: children }, void 0)));
|
|
5
5
|
MenuItemCheckbox.displayName = 'Menu.ItemCheckbox';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAkB,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"menu-item.d.ts","sourceRoot":"","sources":["../../../../src/components/menu/menu-item/menu-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAQ,WAAW,EAAkB,SAAS,EAAE,MAAM,cAAc,CAAA;AAE3E,OAAO,EAAE,SAAS,EAA4C,MAAM,OAAO,CAAA;AAI3E,oBAAY,aAAa,GAAG;IAC1B;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAChC;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAA;IAC/B;;OAEG;IACH,OAAO,CAAC,CAAC,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC9B;;;OAGG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,SAAS,CAAC;CACxB,CAAA;AAED,aAAK,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,qBA2FI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,SAAS,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAA;AAElG,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AACxF,OAAO,EAAmB,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/menu.tsx"],"names":[],"mappings":"AACA,OAAO,EAAwB,SAAS,EAAE,cAAc,EAAE,yBAAyB,EAAE,MAAM,OAAO,CAAA;AAElG,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAC/D,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAA;AACxF,OAAO,EAAmB,WAAW,EAAE,MAAM,cAAc,CAAA;AAI3D,oBAAY,SAAS,GAAG,cAAc,CAAC,gBAAgB,CAAC,GAAG;IACzD;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAA;AAED,aAAK,aAAa,GAAG,yBAAyB,CAAC,SAAS,CAAC,GAAG;IAC1D,IAAI,EAAE,WAAW,CAAC,mBAAmB,CACnC,WAAW,CAAC,gBAAgB,CAAC,OAAO,QAAQ,CAAC,EAC7C,WAAW,CAAC,QAAQ,CAAC,OAAO,QAAQ,CAAC,GAAG,aAAa,CACtD,CAAC;IACF,YAAY,EAAE,WAAW,CAAC,mBAAmB,CAC3C,WAAW,CAAC,gBAAgB,CAAC,OAAO,gBAAgB,CAAC,EACrD,WAAW,CAAC,QAAQ,CAAC,OAAO,gBAAgB,CAAC,GAAG,qBAAqB,CACtE,CAAC;CACH,CAAA;AAED,eAAO,MAAM,IAAI,eA2BE,CAAA"}
|
|
@@ -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 styles from './modal-content.module.css';
|
|
6
|
-
import { Title, Elevator, IconButton, Stack, useOverlayContext } from '
|
|
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
9
|
return (_jsx(Elevator, { resting: 4, children: _jsxs("div", { className: clsx(styles.Content, className), ref: forwardedRef, "data-theme": theme, ...otherProps, children: [_jsxs(Stack, { verticalAlign: "center", fill: false, horizontalAlign: "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));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../../src/components/prose/prose.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"prose.d.ts","sourceRoot":"","sources":["../../../src/components/prose/prose.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAI1C,oBAAY,UAAU,GAAG,EAAE,CAAA;AAE3B,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AAE3E,eAAO,MAAM,KAAK,kBAeI,CAAA"}
|
|
@@ -38,7 +38,7 @@ export declare const Select: import("react").ForwardRefExoticComponent<SelectHTM
|
|
|
38
38
|
/**
|
|
39
39
|
* Change the default icon displayed on the side of the select.
|
|
40
40
|
*/
|
|
41
|
-
icon?: import("
|
|
41
|
+
icon?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
42
42
|
/**
|
|
43
43
|
* Set the accessible label for the select.
|
|
44
44
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAqB,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../src/components/select/select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAc,oBAAoB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAChF,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAA;AAK3D,oBAAY,WAAW,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IAClE;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC7B;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,WAAW,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAA;CACvD,CAAA;AAED,eAAO,MAAM,MAAM;IA9BjB;;OAEG;cACO,SAAS;IACnB;;OAEG;;IAEH;;OAEG;YACK,SAAS;IACjB;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;;IAEH;;OAEG;qBACc,YAAY,iBAAiB,CAAC,GAAG,IAAI;qDA4DtD,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { IconProps } from '
|
|
2
|
+
import { IconProps } from '../..';
|
|
3
3
|
export declare type SliderProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
4
4
|
/**
|
|
5
5
|
* Set the minimum value of the slider. This value must be lower than `max`.
|
|
@@ -24,7 +24,7 @@ export declare type SliderProps = InputHTMLAttributes<HTMLInputElement> & {
|
|
|
24
24
|
*/
|
|
25
25
|
defaultValue?: number;
|
|
26
26
|
/**
|
|
27
|
-
* Show or hide the
|
|
27
|
+
* Show or hide the values beside the slider.
|
|
28
28
|
*/
|
|
29
29
|
showValues?: boolean;
|
|
30
30
|
/**
|
|
@@ -66,19 +66,19 @@ export declare const Slider: import("react").ForwardRefExoticComponent<InputHTML
|
|
|
66
66
|
*/
|
|
67
67
|
defaultValue?: number | undefined;
|
|
68
68
|
/**
|
|
69
|
-
* Show or hide the
|
|
69
|
+
* Show or hide the values beside the slider.
|
|
70
70
|
*/
|
|
71
71
|
showValues?: boolean | undefined;
|
|
72
72
|
/**
|
|
73
73
|
* Add an icon representing the minimum value.
|
|
74
74
|
* This is only available when `showValues` is `false`.
|
|
75
75
|
*/
|
|
76
|
-
iconMin?: import("
|
|
76
|
+
iconMin?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
77
77
|
/**
|
|
78
78
|
* Add an icon representing the maximum value.
|
|
79
79
|
* This is only available when `showValues` is `false`.
|
|
80
80
|
*/
|
|
81
|
-
iconMax?: import("
|
|
81
|
+
iconMax?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
82
82
|
/**
|
|
83
83
|
* Set the size of the slider.
|
|
84
84
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAyB,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAqB,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,mBAAmB,EAAyB,MAAM,OAAO,CAAA;AAC9E,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAA;AAI3D,oBAAY,WAAW,GAAG,mBAAmB,CAAC,gBAAgB,CAAC,GAAG;IAChE;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,OAAO,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC9B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC9B;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CACjC,CAAA;AAED,eAAO,MAAM,MAAM;IA1CjB;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;oBACa,MAAM,GAAG,IAAI;IAC7B;;OAEG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;;oDAyDH,CAAA"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { forwardRef, useCallback, useState } from 'react';
|
|
3
|
-
import { Stack, Text, Icon } from '
|
|
3
|
+
import { Stack, Text, Icon } from '../..';
|
|
4
4
|
import styles from './slider.module.css';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
export const Slider = forwardRef(({ min = 0, max = 100, step, onInput, className, defaultValue = 0, dimension = 'regular', showValues, iconMin, iconMax, ...otherProps }, forwardedRef) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAG7C,OAAO,EAAsB,SAAS,EAAE,WAAW,EAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"snackbar.d.ts","sourceRoot":"","sources":["../../../src/components/snackbar/snackbar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAG7C,OAAO,EAAsB,SAAS,EAAE,WAAW,EAAU,MAAM,cAAc,CAAA;AAEjF,oBAAY,aAAa,GAAG;IAC1B;;;OAGG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;;OAGG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;OAIG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAC;IAC9D;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,SAAS,CAAC,IAAI,IAAI,CAAC;CACpB,CAAA;AAED,aAAK,mBAAmB,GAAG,WAAW,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;AAEpF,eAAO,MAAM,QAAQ,qBA4CI,CAAA"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { Button, DropdownProps, Polymorphic } from '../..';
|
|
2
|
+
import { Except } from 'type-fest';
|
|
2
3
|
export declare type SplitButtonProps = Pick<DropdownProps, 'placement' | 'offset'> & {
|
|
3
4
|
/**
|
|
4
5
|
* Set the label of the action associated to the dropdown.
|
|
5
6
|
*/
|
|
6
7
|
label: string;
|
|
7
8
|
};
|
|
8
|
-
declare type PolymorphicSplitButton = Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof Button>, Polymorphic.OwnProps<typeof Button> & SplitButtonProps>;
|
|
9
|
+
declare type PolymorphicSplitButton = Polymorphic.ForwardRefComponent<Polymorphic.IntrinsicElement<typeof Button>, Except<Polymorphic.OwnProps<typeof Button>, 'iconPosition' | 'iconColor' | 'pressed'> & SplitButtonProps>;
|
|
9
10
|
export declare const SplitButton: PolymorphicSplitButton;
|
|
10
11
|
export {};
|
|
11
12
|
//# sourceMappingURL=split-button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/split-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,aAAa,EAAS,WAAW,EAAE,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"split-button.d.ts","sourceRoot":"","sources":["../../../src/components/split-button/split-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAY,aAAa,EAAS,WAAW,EAAE,MAAM,cAAc,CAAA;AAElF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAElC,oBAAY,gBAAgB,GAAG,IAAI,CAAC,aAAa,EAAE,WAAW,GAAG,QAAQ,CAAC,GAAG;IAC3E;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAA;AAED,aAAK,sBAAsB,GAAG,WAAW,CAAC,mBAAmB,CAC3D,WAAW,CAAC,gBAAgB,CAAC,OAAO,MAAM,CAAC,EAC3C,MAAM,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,MAAM,CAAC,EAAE,cAAc,GAAG,WAAW,GAAG,SAAS,CAAC,GAAG,gBAAgB,CACzG,CAAC;AAEF,eAAO,MAAM,WAAW,wBA+CI,CAAA"}
|
|
@@ -3,10 +3,11 @@ import clsx from 'clsx';
|
|
|
3
3
|
import { forwardRef } from 'react';
|
|
4
4
|
import { Button, Dropdown, Stack } from '../..';
|
|
5
5
|
import styles from './split-button.module.css';
|
|
6
|
-
export const SplitButton = forwardRef(({ className, label, icon = 'chevron-down', kind, dimension, fullWidth, disabled, busy, children, placement, offset, onClick,
|
|
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,
|
|
9
|
-
dimension
|
|
9
|
+
dimension,
|
|
10
|
+
disabled
|
|
10
11
|
};
|
|
11
|
-
return (_jsxs(Stack, { className: clsx(styles.SplitButton, className), direction: "row", inline: !fullWidth, children: [_jsx(Button, { busy: busy,
|
|
12
|
+
return (_jsxs(Stack, { className: clsx(styles.SplitButton, className), direction: "row", inline: !fullWidth, children: [_jsx(Button, { busy: busy, fullWidth: fullWidth, onClick: onClick, ref: forwardedRef, ...commonProps, ...otherProps, children: label }, void 0), _jsx(Dropdown, { placement: placement, offset: offset, disabled: disabled, trigger: _jsx(Button, { icon: icon, ...commonProps }, void 0), children: children }, void 0)] }, void 0));
|
|
12
13
|
});
|
|
@@ -23,12 +23,12 @@ export declare type StackProps = {
|
|
|
23
23
|
*/
|
|
24
24
|
fill?: boolean;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Set the vertical content placement instead of
|
|
27
27
|
* growing to fill the available space.
|
|
28
28
|
*/
|
|
29
29
|
verticalAlign?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* Set the horizontal content placement instead of
|
|
32
32
|
* growing to fill the available space.
|
|
33
33
|
*/
|
|
34
34
|
horizontalAlign?: string;
|
|
@@ -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,
|
|
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,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;OAEG;IACH,iBAAiB,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACzC;;OAEG;IACH,eAAe,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,CAAC;IACvC;;;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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAG7C,OAAO,EAAmB,KAAK,EAAQ,WAAW,
|
|
1
|
+
{"version":3,"file":"star-meter.d.ts","sourceRoot":"","sources":["../../../src/components/star-meter/star-meter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAc,SAAS,EAAE,MAAM,OAAO,CAAA;AAG7C,OAAO,EAAmB,KAAK,EAAQ,WAAW,EAAa,MAAM,cAAc,CAAA;AAInF,oBAAY,cAAc,GAAG;IAC3B;;;;;;;;;;;OAWG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,CAAA;AAED,aAAK,oBAAoB,GAAG,WAAW,CAAC,mBAAmB,CACzD,WAAW,CAAC,gBAAgB,CAAC,OAAO,KAAK,CAAC,EAC1C,WAAW,CAAC,QAAQ,CAAC,OAAO,KAAK,CAAC,GAAG,cAAc,CACpD,CAAC;AAEF,eAAO,MAAM,SAAS,sBAoGI,CAAA"}
|
|
@@ -18,6 +18,6 @@ export declare const TabItem: import("react").ForwardRefExoticComponent<ButtonHT
|
|
|
18
18
|
/**
|
|
19
19
|
* An optional icon to show beside the tab label.
|
|
20
20
|
*/
|
|
21
|
-
icon?: import("
|
|
21
|
+
icon?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
22
22
|
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
23
23
|
//# sourceMappingURL=tab-item.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-item.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAErB,MAAM,OAAO,CAAA;AAGd,OAAO,EAAe,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tab-item.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab-item.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAErB,MAAM,OAAO,CAAA;AAGd,OAAO,EAAe,SAAS,EAAE,MAAM,cAAc,CAAA;AAKrD;;;GAGG;AACH,oBAAY,YAAY,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACnE;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;CAC5B,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO;IAVlB;;OAEG;;qDAmDH,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAGV,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAA;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"tab.d.ts","sourceRoot":"","sources":["../../../src/components/tab/tab.tsx"],"names":[],"mappings":"AAAA,OAAO,EAIL,SAAS,EAGV,MAAM,OAAO,CAAA;AAGd,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACpC,OAAO,EAAW,YAAY,EAAE,MAAM,YAAY,CAAA;AAClD,OAAO,EAAY,aAAa,EAAE,MAAM,aAAa,CAAA;AAErD,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAQ1C;;;GAGG;AACH,oBAAY,QAAQ,GAAG,cAAc,GAAG;IACtC;;OAEG;IACH,QAAQ,EAAE,SAAS,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IAC/D;;OAEG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CAChC,CAAA;AAED,aAAK,YAAY,GAAG,KAAK,CAAC,yBAAyB,CAAC,QAAQ,CAAC,GAAG;IAC9D,KAAK,EAAE,KAAK,CAAC,yBAAyB,CAAC,aAAa,CAAC,CAAC;IACtD,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,WAAW,CAAC,QAAQ,CAAC,OAAO,OAAO,CAAC,CAAC,CAAC;IAC5E,IAAI,EAAE,KAAK,CAAC,yBAAyB,CAAC,YAAY,CAAC,CAAC;CACrD,CAAA;AAED;;;GAGG;AACH,eAAO,MAAM,GAAG,cA0DE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,EAAE,EAAE,MAAM,OAAO,CAAA;AACnC,OAAuB,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAQ,SAAS,EAAsB,MAAM,
|
|
1
|
+
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAW,EAAE,EAAE,MAAM,OAAO,CAAA;AACnC,OAAuB,EAAE,UAAU,IAAI,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC1F,OAAO,EAAQ,SAAS,EAAsB,MAAM,cAAc,CAAA;AAKlE,oBAAY,UAAU,CAAC,CAAC,IAAI,eAAe,CAAC,CAAC,CAAC,GAAG;IAC/C;;;OAGG;IACH,uBAAuB,CAAC,EAAE,EAAE,CAAC;QAAC,IAAI,CAAC,EAAE,CAAC,CAAA;KAAC,CAAC,CAAC;IACzC;;OAEG;IACH,gBAAgB,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IACvC;;OAEG;IACH,eAAe,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IACtC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAA;AAED,eAAO,MAAM,KAAK,8PAgEjB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,oBAAY,SAAS,GAAG;IACtB;;;OAGG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,SAAS,CAAC,EAAE,UAAU,GAAG,aAAa,GAAG,QAAQ,GAAG,SAAS,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACnB;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;CACzC,CAAA;AAED,aAAK,eAAe,GAAG,WAAW,CAAC,mBAAmB,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;AAEvE,eAAO,MAAM,IAAI,iBAoCI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.Text{font-size:var(--fs-max);max-inline-size:var(--maxW,initial);min-block-size:.01vh;text-align:var(--tAlign)}.Text[data-text-dimmed="5"]{color:var(--dimmed-5)}.Text[data-text-dimmed="6"]{color:var(--dimmed-6)}.Text[data-text-dimmed="7"]{color:var(--dimmed-7)}.Text[data-text-sentiment=positive]{color:var(--highlight-green-foreground)}.Text[data-text-sentiment=informative]{color:var(--highlight-blue-foreground)}.Text[data-text-sentiment=danger]{color:var(--highlight-red-foreground)}.Text[data-text-sentiment=warning]{color:var(--highlight-yellow-foreground)}.Text[data-text-size="14"]{
|
|
1
|
+
.Text{font-size:var(--fs-max);max-inline-size:var(--maxW,initial);min-block-size:.01vh;text-align:var(--tAlign)}.Text[data-text-dimmed="5"]{color:var(--dimmed-5)}.Text[data-text-dimmed="6"]{color:var(--dimmed-6)}.Text[data-text-dimmed="7"]{color:var(--dimmed-7)}.Text[data-text-sentiment=positive]{color:var(--highlight-green-foreground)}.Text[data-text-sentiment=informative]{color:var(--highlight-blue-foreground)}.Text[data-text-sentiment=danger]{color:var(--highlight-red-foreground)}.Text[data-text-sentiment=warning]{color:var(--highlight-yellow-foreground)}.Text[data-text-size="14"]{--fs-min:0.78rem;--fs-max:0.78rem}.Text[data-text-size="16"]{--fs-min:0.78rem;--fs-max:0.89rem}.Text[data-text-size="18"]{--fs-min:0.89rem;--fs-max:1.00rem}.Text[data-text-size="22"]{--fs-min:1.00rem;--fs-max:1.22rem}.Text[data-text-size="28"]{--fs-min:1.22rem;--fs-max:1.56rem}.Text[data-text-weight=thin]{font-weight:100}.Text[data-text-weight=bold]{font-weight:600}.Text[data-text-responsive=true]{font-size:var(--fs-min)}@media (min-width:48em){.Text[data-text-responsive=true]{font-size:var(--fs-max)}}.Text[data-text-line-height=none]{line-height:1}.Text[data-text-line-height=small]{line-height:1.2}.Text[data-text-line-height=large]{line-height:1.5}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseFieldProps, PrimitiveInputType } from './base-field';
|
|
2
2
|
import { ChangeEvent } from 'react';
|
|
3
|
-
import { IconProps } from '
|
|
3
|
+
import { IconProps } from '../..';
|
|
4
4
|
export declare type TextfieldProps = BaseFieldProps & {
|
|
5
5
|
/**
|
|
6
6
|
* Set the icon to show on the left or right side of the input.
|
|
@@ -53,7 +53,7 @@ export declare const Textfield: import("react").ForwardRefExoticComponent<import
|
|
|
53
53
|
/**
|
|
54
54
|
* Set the icon to show on the left or right side of the input.
|
|
55
55
|
*/
|
|
56
|
-
icon?: import("
|
|
56
|
+
icon?: import("packages/icons/dist").IconNames | import("react").ReactElement<HTMLOrSVGElement, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
57
57
|
/**
|
|
58
58
|
* Set in which side of the field the icon should be displayed.
|
|
59
59
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../src/components/textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAmD,MAAM,OAAO,CAAA;AAEpF,OAAO,EAAqC,SAAS,EAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"textfield.d.ts","sourceRoot":"","sources":["../../../src/components/textfield/textfield.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAA;AAC5E,OAAO,EAAE,WAAW,EAAmD,MAAM,OAAO,CAAA;AAEpF,OAAO,EAAqC,SAAS,EAAe,MAAM,cAAc,CAAA;AAIxF,oBAAY,cAAc,GAAG,cAAc,GAAG;IAC5C;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC3B;;OAEG;IACF,YAAY,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACjC;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,SAAS,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,kBAAkB,CAAC,KAAK,IAAI,CAAA;CAC5D,CAAA;AAED,eAAO,MAAM,SAAS;;;IA9CpB;;OAEG;;IAEH;;OAEG;;IAEH;;;;OAIG;;IAEH;;;;;OAKG;;IAEH;;;OAGG;;IAEH;;OAEG;;IAEH;;;OAGG;;IAEH;;;OAGG;;IAEH;;OAEG;wBACgB,YAAY,kBAAkB,CAAC,KAAK,IAAI;sDA8G3D,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { BaseField } from './base-field';
|
|
3
3
|
import { forwardRef, useCallback, useState, useMemo } from 'react';
|
|
4
4
|
import styles from './textfield.module.css';
|
|
5
|
-
import { Icon, IconButton, Stack, Text } from '
|
|
5
|
+
import { Icon, IconButton, Stack, Text } from '../..';
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { useUIDSeed } from 'react-uid';
|
|
8
8
|
export const Textfield = forwardRef(({ children, className, disabled = false, icon, label, textarea, readOnly, invalid, id, iconPosition = 'right', dimension = 'regular', type, style, onChange, ...otherProps }, forwardedRef) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"title.d.ts","sourceRoot":"","sources":["../../../src/components/title/title.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAA;AAG1C,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;CACtB,CAAA;AAED,aAAK,gBAAgB,GAAG,WAAW,CAAC,mBAAmB,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;AAE5E,eAAO,MAAM,KAAK,kBA+BI,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAmB,MAAM,
|
|
1
|
+
{"version":3,"file":"toggle-button.d.ts","sourceRoot":"","sources":["../../../src/components/toggle-button/toggle-button.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,WAAW,EAAmB,MAAM,cAAc,CAAA;AAExF,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAA;AAGlC,oBAAY,iBAAiB,GAAG,MAAM,CAAC,eAAe,EAAE,MAAM,CAAC,GAAG;IAChE;;OAEG;IACH,WAAW,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB,CAAA;AAED,aAAK,uBAAuB,GAAG,WAAW,CAAC,mBAAmB,CAC5D,WAAW,CAAC,gBAAgB,CAAC,OAAO,UAAU,CAAC,EAC/C,WAAW,CAAC,QAAQ,CAAC,OAAO,UAAU,CAAC,GAAG,iBAAiB,CAC5D,CAAC;AAqBF,eAAO,MAAM,YAAY,yBA4EI,CAAA"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { Children, cloneElement, useState, useRef } from 'react';
|
|
3
3
|
import { useUIDSeed } from 'react-uid';
|
|
4
4
|
import { useKeyPress, useFocusWithin } from 'ahooks';
|
|
5
|
-
import { Elevator } from '
|
|
5
|
+
import { Elevator } from '../..';
|
|
6
6
|
import styles from './tooltip.module.css';
|
|
7
7
|
import { usePopperTooltip } from 'react-popper-tooltip';
|
|
8
8
|
export const Tooltip = ({ children, trigger, placement = 'bottom-start', open, style, maxWidth = '40ch', fill = false, interactive = false, delay = 500 }) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wonderflow/react-components",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "UI components from Wonderflow's Wanda design system",
|
|
5
5
|
"author": "Wonderflow",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"prebuild": "rimraf dist core core.css",
|
|
24
24
|
"build": "run-s build:ts build:css",
|
|
25
25
|
"postbuild": "rimraf dist/**/_mixins.css",
|
|
26
|
-
"build:ts": "tsc",
|
|
26
|
+
"build:ts": "tsc && tsc-alias",
|
|
27
27
|
"build:css": "cpy '**/*.css' '../dist' --parents --cwd=src && postcss dist/*.css \"dist/**/!(utils)/!(_mixins).css\" --replace",
|
|
28
28
|
"postbuild:css": "mv dist/core.css ./core.css && mv dist/core ./core",
|
|
29
29
|
"lint": "run-s lint:styles",
|
|
@@ -56,25 +56,25 @@
|
|
|
56
56
|
"react-dom": "^17.0"
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
|
-
"@babel/core": "7.
|
|
59
|
+
"@babel/core": "7.17.0",
|
|
60
60
|
"@babel/preset-typescript": "7.16.7",
|
|
61
|
-
"@storybook/addon-actions": "6.4.
|
|
62
|
-
"@storybook/addon-essentials": "6.4.
|
|
63
|
-
"@storybook/addon-links": "6.4.
|
|
61
|
+
"@storybook/addon-actions": "6.4.18",
|
|
62
|
+
"@storybook/addon-essentials": "6.4.18",
|
|
63
|
+
"@storybook/addon-links": "6.4.18",
|
|
64
64
|
"@storybook/addon-postcss": "2.0.0",
|
|
65
65
|
"@storybook/addons": "6.5.0-alpha.21",
|
|
66
66
|
"@storybook/builder-webpack5": "6.5.0-alpha.21",
|
|
67
67
|
"@storybook/manager-webpack5": "6.5.0-alpha.21",
|
|
68
|
-
"@storybook/react": "6.4.
|
|
68
|
+
"@storybook/react": "6.4.18",
|
|
69
69
|
"@storybook/theming": "6.5.0-alpha.21",
|
|
70
|
-
"@types/react": "17.0.
|
|
70
|
+
"@types/react": "17.0.39",
|
|
71
71
|
"@types/react-dom": "17.0.11",
|
|
72
72
|
"@wonderflow/config": "*",
|
|
73
73
|
"@wonderflow/stylelint-config": "1.1.4",
|
|
74
74
|
"@wonderflow/tokens": "*",
|
|
75
75
|
"babel-loader": "8.2.3",
|
|
76
76
|
"cpy-cli": "3.1.1",
|
|
77
|
-
"postcss": "8.4.
|
|
77
|
+
"postcss": "8.4.6",
|
|
78
78
|
"postcss-cli": "9.1.0",
|
|
79
79
|
"react": "17.0.2",
|
|
80
80
|
"react-dom": "17.0.2",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"dependencies": {
|
|
88
88
|
"ahooks": "3.1.9",
|
|
89
89
|
"clsx": "1.1.1",
|
|
90
|
-
"framer-motion": "
|
|
90
|
+
"framer-motion": "6.2.4",
|
|
91
91
|
"react-data-table-component": "7.4.7",
|
|
92
92
|
"react-focus-on": "3.5.4",
|
|
93
93
|
"react-masonry-css": "1.0.16",
|