welcome-ui 7.0.0-alpha.9 → 7.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/dist/Checkbox.js +1 -1
  2. package/dist/Checkbox.mjs +1 -1
  3. package/dist/{CustomInput-BCCxIle7.mjs → CustomInput-Cewo45Hd.mjs} +1 -1
  4. package/dist/{CustomInput-CDNZy-pz.js → CustomInput-DVH2rh9-.js} +1 -1
  5. package/dist/DatePicker.js +1 -1
  6. package/dist/DatePicker.mjs +1 -1
  7. package/dist/DateTimePicker.js +1 -1
  8. package/dist/DateTimePicker.mjs +1 -1
  9. package/dist/DateTimePickerCommon.js +1 -1
  10. package/dist/DateTimePickerCommon.mjs +1 -1
  11. package/dist/InputText.js +1 -1
  12. package/dist/InputText.mjs +1 -1
  13. package/dist/Radio.js +1 -1
  14. package/dist/Radio.mjs +1 -1
  15. package/dist/RadioTab.js +1 -1
  16. package/dist/RadioTab.mjs +1 -1
  17. package/dist/Search.js +1 -1
  18. package/dist/Search.mjs +1 -1
  19. package/dist/Select.js +1 -1
  20. package/dist/Select.mjs +1 -1
  21. package/dist/Tabs.js +9 -9
  22. package/dist/Tabs.mjs +83 -90
  23. package/dist/Textarea.js +1 -1
  24. package/dist/Textarea.mjs +1 -1
  25. package/dist/TimePicker.js +1 -1
  26. package/dist/TimePicker.mjs +1 -1
  27. package/dist/Toast.js +6 -6
  28. package/dist/Toast.mjs +17 -18
  29. package/dist/Toggle.js +1 -1
  30. package/dist/Toggle.mjs +1 -1
  31. package/dist/{field-styles-CeV7pnOp.mjs → field-styles-DLIhqG_8.mjs} +3 -3
  32. package/dist/{field-styles-D_gf6ypV.js → field-styles-DYEc1l_A.js} +1 -1
  33. package/dist/{index-CDjY0N2Z.mjs → index-BSdL4wPb.mjs} +1 -1
  34. package/dist/{index-CUtaVckz.js → index-Dn-QEAu6.js} +1 -1
  35. package/dist/theme.js +5 -5
  36. package/dist/theme.mjs +613 -532
  37. package/dist/types/components/Field/index.d.ts +2 -2
  38. package/dist/types/components/Field/styles.d.ts +3 -3
  39. package/dist/types/components/Select/styles.d.ts +3 -3
  40. package/dist/types/components/Toast/index.d.ts +5 -7
  41. package/dist/types/theme/defaultFields.d.ts +3 -3
  42. package/dist/types/utils/field-styles.d.ts +4 -8
  43. package/dist/types/utils/index.d.ts +7 -3
  44. package/dist/use-fork-ref-Bjf1e56Z.js +1 -0
  45. package/dist/use-fork-ref-CUZErtAC.mjs +14 -0
  46. package/dist/utils.js +1 -1
  47. package/dist/utils.mjs +36 -26
  48. package/package.json +3 -1
@@ -18,9 +18,9 @@ export type FieldProps = CreateWuiProps<'div', FieldOptions>;
18
18
  export declare const Field: import('../System').CreateWuiComponent<"div", FieldProps>;
19
19
  export declare const IconWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
20
20
  iconPlacement: "left" | "right";
21
- size?: import('../../utils/field-styles').FieldIconSize;
21
+ size?: import('../../utils').DefaultFieldIconSize;
22
22
  }, never>;
23
23
  export declare const IconGroupWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
24
- size: import('../../utils/field-styles').FieldIconSize;
24
+ size: import('../../utils').DefaultFieldIconSize;
25
25
  }, never>;
26
26
  export { getBaseType };
@@ -1,4 +1,4 @@
1
- import { FieldIconSize } from '../../utils/field-styles';
1
+ import { DefaultFieldIconSize } from '../../utils/field-styles';
2
2
  import { WuiProps } from '../System';
3
3
  type StyledFieldProps = {
4
4
  checked?: boolean;
@@ -12,10 +12,10 @@ export declare const Label: import('styled-components').StyledComponent<string,
12
12
  export declare const LabelWithHint: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {}, never>;
13
13
  type IconWrapperProps = {
14
14
  iconPlacement: 'left' | 'right';
15
- size?: FieldIconSize;
15
+ size?: DefaultFieldIconSize;
16
16
  };
17
17
  export declare const IconWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & IconWrapperProps, never>;
18
18
  export declare const IconGroupWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
19
- size: FieldIconSize;
19
+ size: DefaultFieldIconSize;
20
20
  }, never>;
21
21
  export {};
@@ -1,8 +1,8 @@
1
- import { Size } from '../../utils/field-styles';
1
+ import { DefaultFieldStylesProps } from '../../utils/field-styles';
2
2
  import { SelectOptions } from './index';
3
3
  export declare const IconWrapper: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
4
4
  iconPlacement: "left" | "right";
5
- size?: import('../../utils/field-styles').FieldIconSize;
5
+ size?: import('../../utils/field-styles').DefaultFieldIconSize;
6
6
  }, never>;
7
7
  export declare const Wrapper: import('styled-components').StyledComponent<import('../System').CreateWuiComponent<"div", import('../Box').BoxProps>, import('@xstyled/system').Theme, {
8
8
  disabled: boolean;
@@ -24,7 +24,7 @@ export declare const Item: import('styled-components').StyledComponent<string, i
24
24
  isSelected: boolean;
25
25
  }, never>;
26
26
  export declare const Indicators: import('styled-components').StyledComponent<"div", import('@xstyled/system').Theme, import('@xstyled/system').SystemProps<import('@xstyled/system').Theme> & {
27
- size: Size;
27
+ size: DefaultFieldStylesProps["size"];
28
28
  }, never>;
29
29
  export declare const DropDownIndicator: import('styled-components').StyledComponent<string, import('@xstyled/system').Theme, {
30
30
  isOpen?: boolean;
@@ -1,5 +1,7 @@
1
1
  import { default as React } from 'react';
2
2
  import { ToastPosition } from 'react-hot-toast/headless';
3
+ import { GrowlProps } from './Growl';
4
+ import { SnackbarProps } from './Snackbar';
3
5
  import { TextProps } from '../Text';
4
6
  type NotificationsProps = {
5
7
  pauseOnHover?: boolean;
@@ -14,14 +16,10 @@ export declare const Notifications: React.FC<NotificationsProps>;
14
16
  export declare const toast: (component: JSX.Element, options?: ToastOptions) => string;
15
17
  export declare const remove: (id?: string) => void;
16
18
  export declare const dismiss: (id?: string) => void;
17
- /**
18
- * @deprecated use directly `toast` function instead
19
- */
20
- export declare const useToast: () => (component: JSX.Element, options?: ToastOptions) => string;
21
19
  export declare const Toast: {
22
20
  Title: React.FC<TextProps>;
23
- Growl: import('../System').CreateWuiComponent<"div", import('./Growl').GrowlProps>;
24
- Snackbar: import('../System').CreateWuiComponent<"div", import('./Snackbar').SnackbarProps>;
21
+ Growl: import('../System').CreateWuiComponent<"div", GrowlProps>;
22
+ Snackbar: import('../System').CreateWuiComponent<"div", SnackbarProps>;
25
23
  SnackbarAction: import('../System').CreateWuiComponent<"button", import('../Button').ButtonProps>;
26
24
  };
27
- export {};
25
+ export type { GrowlProps, SnackbarProps };
@@ -1,5 +1,5 @@
1
1
  import { CSSObject } from '@xstyled/styled-components';
2
- import { Size } from '../utils/field-styles';
2
+ import { DefaultFieldStylesProps } from '../utils/field-styles';
3
3
  import { ThemeValues } from '.';
4
4
  type VariantsTheme = {
5
5
  danger: CSSObject;
@@ -22,7 +22,7 @@ export type ThemeDefaultFields = {
22
22
  default: CSSObject;
23
23
  };
24
24
  hover: CSSObject;
25
- iconPlacement: Record<Size, CSSObject>;
25
+ iconPlacement: Record<DefaultFieldStylesProps['size'], CSSObject>;
26
26
  placeholder: CSSObject;
27
27
  select: {
28
28
  default: CSSObject;
@@ -32,7 +32,7 @@ export type ThemeDefaultFields = {
32
32
  selected: CSSObject;
33
33
  selectedAndHighlighted: CSSObject;
34
34
  };
35
- sizes: Record<Size, CSSObject>;
35
+ sizes: Record<DefaultFieldStylesProps['size'], CSSObject>;
36
36
  variants: VariantsTheme;
37
37
  };
38
38
  export declare const getDefaultFields: (theme: ThemeValues) => ThemeDefaultFields;
@@ -1,13 +1,9 @@
1
1
  import { css } from '@xstyled/styled-components';
2
- type FieldIconSizes = {
3
- lg: 'sm';
4
- md: 'sm';
5
- sm: 'sm';
6
- xs: 'xs';
7
- };
8
- export declare const FIELD_ICON_SIZE: FieldIconSizes;
2
+ export type DefaultFieldIconSize = 'sm' | 'xs';
9
3
  export type Size = 'xs' | 'sm' | 'md' | 'lg';
10
- export type FieldIconSize = 'xs' | 'sm';
4
+ export declare const FIELD_ICON_SIZE: {
5
+ [key in Size]: DefaultFieldIconSize;
6
+ };
11
7
  export type DefaultFieldStylesProps = Partial<{
12
8
  hasIcon?: boolean;
13
9
  iconPlacement?: 'right' | 'left' | 'both';
@@ -1,4 +1,8 @@
1
- export * from './use-copy-text';
2
- export * from './throttle';
3
- export * from './hex-to-rgba';
4
1
  export * from './format-bytes';
2
+ export * from './hex-to-rgba';
3
+ export * from './field-styles';
4
+ export * from './overflow-ellipsis';
5
+ export * from './throttle';
6
+ export * from './use-copy-text';
7
+ export * from './use-fork-ref';
8
+ export * from './use-isomorphic-layout-effect';
@@ -0,0 +1 @@
1
+ "use client";"use strict";const s=require("react");function t(u,e){typeof u=="function"?u(e):u&&(u.current=e)}function i(u,e){return s.useMemo(()=>u==null&&e==null?null:n=>{t(u,n),t(e,n)},[u,e])}exports.setRef=t;exports.useForkRef=i;
@@ -0,0 +1,14 @@
1
+ "use client";
2
+ import { useMemo as e } from "react";
3
+ function o(u, n) {
4
+ typeof u == "function" ? u(n) : u && (u.current = n);
5
+ }
6
+ function l(u, n) {
7
+ return e(() => u == null && n == null ? null : (t) => {
8
+ o(u, t), o(n, t);
9
+ }, [u, n]);
10
+ }
11
+ export {
12
+ o as s,
13
+ l as u
14
+ };
package/dist/utils.js CHANGED
@@ -1 +1 @@
1
- "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("react"),m=require("./_commonjsHelpers-DvH0V_XJ.js"),y=require("./throttle-BB1Y3bfD.js"),g=require("./hex-to-rgba-cCYXRc5D.js"),b=require("./format-bytes-drUpnBnQ.js");var v=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],o=0;o<e.rangeCount;o++)r.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(s){e.addRange(s)}),t&&t.focus()}},C=v,d={"text/plain":"Text","text/html":"Url",default:"Text"},w="Copy to clipboard: #{key}, Enter";function D(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function x(e,t){var r,o,s,n,l,a,i=!1;t||(t={}),r=t.debug||!1;try{s=C(),n=document.createRange(),l=document.getSelection(),a=document.createElement("span"),a.textContent=e,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(c){if(c.stopPropagation(),t.format)if(c.preventDefault(),typeof c.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=d[t.format]||d.default;window.clipboardData.setData(u,e)}else c.clipboardData.clearData(),c.clipboardData.setData(t.format,e);t.onCopy&&(c.preventDefault(),t.onCopy(c.clipboardData))}),document.body.appendChild(a),n.selectNodeContents(a),l.addRange(n);var p=document.execCommand("copy");if(!p)throw new Error("copy command was unsuccessful");i=!0}catch(c){r&&console.error("unable to copy using execCommand: ",c),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),i=!0}catch(u){r&&console.error("unable to copy using clipboardData: ",u),r&&console.error("falling back to prompt"),o=D("message"in t?t.message:w),window.prompt(o,e)}}finally{l&&(typeof l.removeRange=="function"?l.removeRange(n):l.removeAllRanges()),a&&document.body.removeChild(a),s()}return i}var T=x;const h=m.getDefaultExportFromCjs(T);function E(e,t){const[r,o]=f.useState();return[f.useCallback(()=>{let n;typeof e=="number"||typeof e=="string"?n=e.toString():e.current instanceof HTMLInputElement?n=e.current.value:e.current instanceof HTMLElement&&(n=e.current.textContent);const l=h(n);o(l),t&&setTimeout(o,t)},[e,t]),r]}exports.throttle=y.throttle;exports.hexToRGBA=g.hexToRGBA;exports.formatBytes=b.formatBytes;exports.useCopyText=E;
1
+ "use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./format-bytes-drUpnBnQ.js"),v=require("./hex-to-rgba-cCYXRc5D.js"),p=require("./field-styles-DYEc1l_A.js"),b=require("./overflow-ellipsis-C2ESrF8C.js"),C=require("./throttle-BB1Y3bfD.js"),f=require("react"),E=require("./_commonjsHelpers-DvH0V_XJ.js"),y=require("./use-fork-ref-Bjf1e56Z.js"),w=require("./use-isomorphic-layout-effect-C1_Gy5Nu.js");var D=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,a=[],o=0;o<e.rangeCount;o++)a.push(e.getRangeAt(o));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||a.forEach(function(c){e.addRange(c)}),t&&t.focus()}},h=D,d={"text/plain":"Text","text/html":"Url",default:"Text"},R="Copy to clipboard: #{key}, Enter";function S(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function x(e,t){var a,o,c,n,s,r,i=!1;t||(t={}),a=t.debug||!1;try{c=h(),n=document.createRange(),s=document.getSelection(),r=document.createElement("span"),r.textContent=e,r.ariaHidden="true",r.style.all="unset",r.style.position="fixed",r.style.top=0,r.style.clip="rect(0, 0, 0, 0)",r.style.whiteSpace="pre",r.style.webkitUserSelect="text",r.style.MozUserSelect="text",r.style.msUserSelect="text",r.style.userSelect="text",r.addEventListener("copy",function(l){if(l.stopPropagation(),t.format)if(l.preventDefault(),typeof l.clipboardData>"u"){a&&console.warn("unable to use e.clipboardData"),a&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var u=d[t.format]||d.default;window.clipboardData.setData(u,e)}else l.clipboardData.clearData(),l.clipboardData.setData(t.format,e);t.onCopy&&(l.preventDefault(),t.onCopy(l.clipboardData))}),document.body.appendChild(r),n.selectNodeContents(r),s.addRange(n);var m=document.execCommand("copy");if(!m)throw new Error("copy command was unsuccessful");i=!0}catch(l){a&&console.error("unable to copy using execCommand: ",l),a&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),i=!0}catch(u){a&&console.error("unable to copy using clipboardData: ",u),a&&console.error("falling back to prompt"),o=S("message"in t?t.message:R),window.prompt(o,e)}}finally{s&&(typeof s.removeRange=="function"?s.removeRange(n):s.removeAllRanges()),r&&document.body.removeChild(r),c()}return i}var T=x;const I=E.getDefaultExportFromCjs(T);function k(e,t){const[a,o]=f.useState();return[f.useCallback(()=>{let n;typeof e=="number"||typeof e=="string"?n=e.toString():e.current instanceof HTMLInputElement?n=e.current.value:e.current instanceof HTMLElement&&(n=e.current.textContent);const s=I(n);o(s),t&&setTimeout(o,t)},[e,t]),a]}exports.formatBytes=g.formatBytes;exports.hexToRGBA=v.hexToRGBA;exports.FIELD_ICON_SIZE=p.FIELD_ICON_SIZE;exports.defaultFieldStyles=p.defaultFieldStyles;exports.overflowEllipsis=b.overflowEllipsis;exports.throttle=C.throttle;exports.setRef=y.setRef;exports.useForkRef=y.useForkRef;exports.useIsomorphicLayoutEffect=w.useIsomorphicLayoutEffect;exports.useCopyText=k;
package/dist/utils.mjs CHANGED
@@ -1,9 +1,13 @@
1
1
  "use client";
2
+ import { f as k } from "./format-bytes-gST0dTWd.mjs";
3
+ import { h as A } from "./hex-to-rgba-BIDK-3ab.mjs";
4
+ import { F as U, d as L } from "./field-styles-DLIhqG_8.mjs";
5
+ import { o as N } from "./overflow-ellipsis-DGV5Kgt-.mjs";
6
+ import { t as P } from "./throttle-BDBzFeFj.mjs";
2
7
  import { useState as d, useCallback as m } from "react";
3
8
  import { g as y } from "./_commonjsHelpers-CXJ7dpIk.mjs";
4
- import { t as k } from "./throttle-BDBzFeFj.mjs";
5
- import { h as U } from "./hex-to-rgba-BIDK-3ab.mjs";
6
- import { f as M } from "./format-bytes-gST0dTWd.mjs";
9
+ import { s as _, u as j } from "./use-fork-ref-CUZErtAC.mjs";
10
+ import { u as G } from "./use-isomorphic-layout-effect-Izr-e2pi.mjs";
7
11
  var g = function() {
8
12
  var e = document.getSelection();
9
13
  if (!e.rangeCount)
@@ -25,59 +29,65 @@ var g = function() {
25
29
  e.addRange(s);
26
30
  }), t && t.focus();
27
31
  };
28
- }, b = g, f = {
32
+ }, v = g, f = {
29
33
  "text/plain": "Text",
30
34
  "text/html": "Url",
31
35
  default: "Text"
32
- }, v = "Copy to clipboard: #{key}, Enter";
36
+ }, b = "Copy to clipboard: #{key}, Enter";
33
37
  function C(e) {
34
38
  var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
35
39
  return e.replace(/#{\s*key\s*}/g, t);
36
40
  }
37
- function w(e, t) {
38
- var r, o, s, n, l, a, i = !1;
41
+ function x(e, t) {
42
+ var r, o, s, n, c, a, i = !1;
39
43
  t || (t = {}), r = t.debug || !1;
40
44
  try {
41
- s = b(), n = document.createRange(), l = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.ariaHidden = "true", a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(c) {
42
- if (c.stopPropagation(), t.format)
43
- if (c.preventDefault(), typeof c.clipboardData > "u") {
45
+ s = v(), n = document.createRange(), c = document.getSelection(), a = document.createElement("span"), a.textContent = e, a.ariaHidden = "true", a.style.all = "unset", a.style.position = "fixed", a.style.top = 0, a.style.clip = "rect(0, 0, 0, 0)", a.style.whiteSpace = "pre", a.style.webkitUserSelect = "text", a.style.MozUserSelect = "text", a.style.msUserSelect = "text", a.style.userSelect = "text", a.addEventListener("copy", function(l) {
46
+ if (l.stopPropagation(), t.format)
47
+ if (l.preventDefault(), typeof l.clipboardData > "u") {
44
48
  r && console.warn("unable to use e.clipboardData"), r && console.warn("trying IE specific stuff"), window.clipboardData.clearData();
45
49
  var u = f[t.format] || f.default;
46
50
  window.clipboardData.setData(u, e);
47
51
  } else
48
- c.clipboardData.clearData(), c.clipboardData.setData(t.format, e);
49
- t.onCopy && (c.preventDefault(), t.onCopy(c.clipboardData));
50
- }), document.body.appendChild(a), n.selectNodeContents(a), l.addRange(n);
52
+ l.clipboardData.clearData(), l.clipboardData.setData(t.format, e);
53
+ t.onCopy && (l.preventDefault(), t.onCopy(l.clipboardData));
54
+ }), document.body.appendChild(a), n.selectNodeContents(a), c.addRange(n);
51
55
  var p = document.execCommand("copy");
52
56
  if (!p)
53
57
  throw new Error("copy command was unsuccessful");
54
58
  i = !0;
55
- } catch (c) {
56
- r && console.error("unable to copy using execCommand: ", c), r && console.warn("trying IE specific stuff");
59
+ } catch (l) {
60
+ r && console.error("unable to copy using execCommand: ", l), r && console.warn("trying IE specific stuff");
57
61
  try {
58
62
  window.clipboardData.setData(t.format || "text", e), t.onCopy && t.onCopy(window.clipboardData), i = !0;
59
63
  } catch (u) {
60
- r && console.error("unable to copy using clipboardData: ", u), r && console.error("falling back to prompt"), o = C("message" in t ? t.message : v), window.prompt(o, e);
64
+ r && console.error("unable to copy using clipboardData: ", u), r && console.error("falling back to prompt"), o = C("message" in t ? t.message : b), window.prompt(o, e);
61
65
  }
62
66
  } finally {
63
- l && (typeof l.removeRange == "function" ? l.removeRange(n) : l.removeAllRanges()), a && document.body.removeChild(a), s();
67
+ c && (typeof c.removeRange == "function" ? c.removeRange(n) : c.removeAllRanges()), a && document.body.removeChild(a), s();
64
68
  }
65
69
  return i;
66
70
  }
67
- var x = w;
68
- const D = /* @__PURE__ */ y(x);
69
- function T(e, t) {
71
+ var w = x;
72
+ const D = /* @__PURE__ */ y(w);
73
+ function R(e, t) {
70
74
  const [r, o] = d();
71
75
  return [m(() => {
72
76
  let n;
73
77
  typeof e == "number" || typeof e == "string" ? n = e.toString() : e.current instanceof HTMLInputElement ? n = e.current.value : e.current instanceof HTMLElement && (n = e.current.textContent);
74
- const l = D(n);
75
- o(l), t && setTimeout(o, t);
78
+ const c = D(n);
79
+ o(c), t && setTimeout(o, t);
76
80
  }, [e, t]), r];
77
81
  }
78
82
  export {
79
- M as formatBytes,
80
- U as hexToRGBA,
81
- k as throttle,
82
- T as useCopyText
83
+ U as FIELD_ICON_SIZE,
84
+ L as defaultFieldStyles,
85
+ k as formatBytes,
86
+ A as hexToRGBA,
87
+ N as overflowEllipsis,
88
+ _ as setRef,
89
+ P as throttle,
90
+ R as useCopyText,
91
+ j as useForkRef,
92
+ G as useIsomorphicLayoutEffect
83
93
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "7.0.0-alpha.9",
3
+ "version": "7.0.1-alpha.0",
4
4
  "description": "Customizable design system with react • styled-components • styled-system and ariakit.",
5
5
  "files": [
6
6
  "dist"
@@ -85,6 +85,7 @@
85
85
  "@types/lodash.debounce": "^4.0.6",
86
86
  "@types/lodash.range": "^3.2.9",
87
87
  "@types/node": "22.9.0",
88
+ "@types/ramda": "^0.30.2",
88
89
  "@types/react": "18.0.25",
89
90
  "@types/react-datepicker": "^4.15.0",
90
91
  "@types/react-dom": "18.0.11",
@@ -96,6 +97,7 @@
96
97
  "jest": "29.7.0",
97
98
  "jest-environment-jsdom": "^29.7.0",
98
99
  "jest-styled-components": "7.2.0",
100
+ "ramda": "^0.30.1",
99
101
  "react": "^18.0.0",
100
102
  "release-it": "^18.1.2",
101
103
  "rollup-preserve-directives": "^1.1.3",