welcome-ui 9.0.0-alpha.4 → 9.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/README.md +47 -3
  2. package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
  3. package/dist/4I4MLMKD-BLxAidnq.js +43 -0
  4. package/dist/Accordion.js +6 -6
  5. package/dist/Alert.js +1 -1
  6. package/dist/AspectRatio.js +1 -1
  7. package/dist/Avatar.js +1 -1
  8. package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
  9. package/dist/Badge.js +1 -1
  10. package/dist/Breadcrumb.css +1 -1
  11. package/dist/Breadcrumb.js +27 -27
  12. package/dist/Button.js +2 -2
  13. package/dist/ButtonGroup.js +1 -1
  14. package/dist/Card.js +1 -1
  15. package/dist/Checkbox.css +1 -1
  16. package/dist/Checkbox.js +22 -22
  17. package/dist/CloseButton.js +3 -3
  18. package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
  19. package/dist/DatePicker.js +5 -5
  20. package/dist/DateTimePicker.js +2 -2
  21. package/dist/Drawer.css +1 -1
  22. package/dist/Drawer.js +67 -67
  23. package/dist/DropdownMenu.js +261 -259
  24. package/dist/Field.js +1 -1
  25. package/dist/FieldGroup.js +1 -1
  26. package/dist/FileDrop.js +194 -221
  27. package/dist/FileUpload.js +2 -2
  28. package/dist/GVVKDT6A-bET6V7Py.js +724 -0
  29. package/dist/Hint.js +1 -1
  30. package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
  31. package/dist/Icon.js +12 -12
  32. package/dist/InputText.js +1 -1
  33. package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
  34. package/dist/Label.js +3 -3
  35. package/dist/Link.css +1 -1
  36. package/dist/Link.js +27 -27
  37. package/dist/Loader.js +1 -1
  38. package/dist/Logo.js +1 -1
  39. package/dist/Modal.js +10 -10
  40. package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
  41. package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
  42. package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
  43. package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
  44. package/dist/Pagination.css +1 -1
  45. package/dist/Pagination.js +81 -73
  46. package/dist/PasswordInput.js +17 -18
  47. package/dist/Popover.js +14 -14
  48. package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
  49. package/dist/Radio.css +1 -1
  50. package/dist/Radio.js +29 -29
  51. package/dist/RadioGroup.js +21 -21
  52. package/dist/RadioTab.js +2 -2
  53. package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
  54. package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
  55. package/dist/Search.js +2 -2
  56. package/dist/Select.js +170 -181
  57. package/dist/Slider.js +1 -1
  58. package/dist/Swiper.css +1 -1
  59. package/dist/Swiper.js +151 -151
  60. package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
  61. package/dist/Table.js +1 -1
  62. package/dist/Tabs.js +303 -308
  63. package/dist/Tag.js +3 -3
  64. package/dist/Text.js +1 -1
  65. package/dist/Textarea.js +1 -1
  66. package/dist/TimePicker.js +2 -2
  67. package/dist/Toast.js +1 -1
  68. package/dist/Toggle.js +2 -2
  69. package/dist/Tooltip.js +72 -72
  70. package/dist/VariantIcon.js +3 -3
  71. package/dist/WelcomeLoader.js +1 -1
  72. package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
  73. package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
  74. package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
  75. package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
  76. package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
  77. package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
  78. package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
  79. package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
  80. package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
  81. package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
  82. package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
  83. package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
  84. package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
  85. package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
  86. package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
  87. package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
  88. package/dist/index.css +0 -0
  89. package/dist/tslib.es6-DpB4Y59c.js +683 -0
  90. package/dist/types/components/Pagination/index.d.ts +1 -2
  91. package/dist/types/components/Pagination/types.d.ts +5 -2
  92. package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
  93. package/dist/types/components/PasswordInput/types.d.ts +1 -1
  94. package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
  95. package/dist/types/components/Tabs/index.d.ts +1 -1
  96. package/dist/types/components/Tabs/types.d.ts +1 -2
  97. package/dist/types/components/Tabs/utils.d.ts +1 -2
  98. package/dist/types/utils/index.d.ts +1 -0
  99. package/dist/types/utils/theme/index.d.ts +0 -0
  100. package/dist/types/utils/useForkRef.d.ts +7 -1
  101. package/dist/useForkRef-D807AV7D.js +22 -0
  102. package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
  103. package/dist/utils.js +2 -2
  104. package/package.json +5 -5
  105. package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
  106. package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
  107. package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
  108. package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
  109. package/dist/X5NMLKT6-PeY306ft.js +0 -25
  110. package/dist/index--0U5Rubs.js +0 -644
  111. /package/dist/{index-PAaZGbyz.js → index-CdiHdiVB.js} +0 -0
@@ -3,4 +3,4 @@ import { Button } from '../Button';
3
3
  export type ToggleButtonProps = React.ComponentPropsWithoutRef<typeof Button> & {
4
4
  isHidden: boolean;
5
5
  };
6
- export declare const ToggleButton: ({ isHidden, onClick, title, ...rest }: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ export declare const ToggleButton: ({ isHidden, onClick, ...rest }: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,4 +1,4 @@
1
1
  import { InputTextProps } from '../InputText/types';
2
2
  export type PasswordInputProps = InputTextProps & {
3
- 'data-testid'?: string;
3
+ toggleAriaLabel?: string;
4
4
  };
@@ -1,3 +1,3 @@
1
1
  import { default as React } from 'react';
2
2
  import { TabListProps } from '../../types';
3
- export declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<"div">>;
3
+ export declare const TabList: React.ForwardRefExoticComponent<TabListProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,7 +1,7 @@
1
1
  import { TabProps } from './types';
2
2
  export declare const TabComponent: import('../../utils').FunctionComponentWithAs<"button", TabProps>;
3
3
  export declare const Tab: import('../../utils').FunctionComponentWithAs<"button", TabProps> & {
4
- List: import('react').ForwardRefExoticComponent<import('./types').TabListProps & import('react').RefAttributes<"div">>;
4
+ List: import('react').ForwardRefExoticComponent<import('./types').TabListProps & import('react').RefAttributes<HTMLDivElement>>;
5
5
  Panel: import('react').ForwardRefExoticComponent<import('./types').TabPanelProps & import('react').RefAttributes<HTMLDivElement>>;
6
6
  };
7
7
  export { useTabStore as useTab } from '@ariakit/react';
@@ -1,5 +1,4 @@
1
1
  import { TabStore, TabStoreProps } from '@ariakit/react';
2
- import { PolymorphicProps } from '../../theme/types';
3
2
  import { UseTab, UseTabState } from '.';
4
3
  export interface ActiveBarProps {
5
4
  activeTab: HTMLElement;
@@ -30,4 +29,4 @@ export type TabPanelProps = {
30
29
  store: UseTab;
31
30
  tabId?: string;
32
31
  };
33
- export type TabProps<T extends React.ElementType = 'button'> = PolymorphicProps<T> & TabOptions & TabStoreProps;
32
+ export type TabProps = TabOptions & TabStoreProps;
@@ -1,7 +1,6 @@
1
- import { ForwardedRef, default as React } from 'react';
1
+ import { default as React } from 'react';
2
2
  import { UseTabState } from '.';
3
3
  export declare const getParentScale: (element: HTMLElement | null) => number;
4
- export declare function useForkRef(refA: ForwardedRef<unknown>, refB: ForwardedRef<unknown>): (instance: unknown) => void;
5
4
  export declare function useTrackActiveTabs(selectedId: UseTabState['selectedId'], children: React.ReactNode): {
6
5
  activeTab: HTMLElement | null;
7
6
  tabs: React.ReactNode;
@@ -1,4 +1,5 @@
1
1
  export * from './classNames';
2
2
  export * from './forwardRefWithAs';
3
+ export * from './theme';
3
4
  export * from './ts-utils';
4
5
  export * from './use-copy-text';
File without changes
@@ -1,4 +1,10 @@
1
- import { Ref } from 'react';
1
+ import { default as React, Ref } from 'react';
2
+ /**
3
+ * Gets the ref of a child element if it exists.
4
+ * @param child - A React node which may have a ref.
5
+ * @returns The ref of the child element or null.
6
+ */
7
+ export declare function getChildRef<T>(child: React.ReactNode): Ref<T>;
2
8
  /**
3
9
  * Merges multiple refs into a single ref callback.
4
10
  */
@@ -0,0 +1,22 @@
1
+ "use client";
2
+ import u, { useRef as o, useMemo as f } from "react";
3
+ function i(e) {
4
+ return u.isValidElement(e) && Object.prototype.hasOwnProperty.call(e, "ref") ? e == null ? void 0 : e.ref : null;
5
+ }
6
+ function s(...e) {
7
+ return (t) => {
8
+ e.forEach((n) => a(n, t));
9
+ };
10
+ }
11
+ function a(e, t) {
12
+ e && (typeof e == "function" && t !== void 0 ? e(t) : e.current = t ?? null);
13
+ }
14
+ function R(e, t) {
15
+ const n = o(null), r = f(() => s(e, n, t), [e, n, t]);
16
+ return [n, r];
17
+ }
18
+ export {
19
+ i as g,
20
+ s as m,
21
+ R as u
22
+ };
@@ -1,5 +1,5 @@
1
1
  "use client";
2
- import { g as J } from "./index-PAaZGbyz.js";
2
+ import { g as J } from "./index-CdiHdiVB.js";
3
3
  const Y = {
4
4
  "custom-header": "_custom-header_191j7_2",
5
5
  "date-picker": "_date-picker_191j7_9",
package/dist/utils.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import { b as f } from "./index-PAaZGbyz.js";
3
- import { c as d } from "./index-PAaZGbyz.js";
2
+ import { b as f } from "./index-CdiHdiVB.js";
3
+ import { c as d } from "./index-CdiHdiVB.js";
4
4
  import { f as C } from "./forwardRefWithAs-8eP3ZN15.js";
5
5
  import { useState as p, useCallback as a } from "react";
6
6
  function n(e, o) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "welcome-ui",
3
- "version": "9.0.0-alpha.4",
3
+ "version": "9.0.0",
4
4
  "description": "Customizable design system with react, typescript, tailwindcss and ariakit.",
5
5
  "files": [
6
6
  "dist"
@@ -57,7 +57,7 @@
57
57
  "url": "https://github.com/WTTJ/welcome-ui/issues"
58
58
  },
59
59
  "dependencies": {
60
- "@ariakit/react": "0.4.15",
60
+ "@ariakit/react": "0.4.19",
61
61
  "@emotion/is-prop-valid": "^1.4.0",
62
62
  "@juggle/resize-observer": "^3.4.0",
63
63
  "copy-to-clipboard": "^3.3.3",
@@ -75,14 +75,14 @@
75
75
  },
76
76
  "devDependencies": {
77
77
  "@testing-library/dom": "^10.4.1",
78
- "@testing-library/jest-dom": "^6.8.0",
79
- "@testing-library/react": "^16.2.0",
78
+ "@testing-library/jest-dom": "^6.9.1",
79
+ "@testing-library/react": "^16.3.0",
80
80
  "@testing-library/user-event": "^14.6.1",
81
81
  "@types/lodash.capitalize": "^4.2.9",
82
82
  "@types/lodash.debounce": "^4.0.6",
83
83
  "@types/lodash.merge": "^4.6.9",
84
84
  "@types/lodash.range": "^3.2.9",
85
- "@types/ramda": "^0.30.2",
85
+ "@types/ramda": "^0.31.1",
86
86
  "@types/react-datepicker": "^7.0.0",
87
87
  "jsdom": "^26.0.0",
88
88
  "lodash.merge": "^4.6.2",