welcome-ui 9.0.0-alpha.2 → 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.
- package/README.md +47 -3
- package/dist/2W3RN7C5-bkX-rIa3.js +61 -0
- package/dist/4I4MLMKD-BLxAidnq.js +43 -0
- package/dist/Accordion.js +6 -6
- package/dist/Alert.js +1 -1
- package/dist/AspectRatio.js +1 -1
- package/dist/Avatar.js +1 -1
- package/dist/{4CMBR7SL-Dhp8uJop.js → B7UTNDHN-BlIblHCu.js} +59 -59
- package/dist/Badge.js +1 -1
- package/dist/Breadcrumb.css +1 -1
- package/dist/Breadcrumb.js +27 -27
- package/dist/Button.js +2 -2
- package/dist/ButtonGroup.js +1 -1
- package/dist/Card.js +1 -1
- package/dist/Checkbox.css +1 -1
- package/dist/Checkbox.js +22 -22
- package/dist/CloseButton.js +3 -3
- package/dist/{SYRFVSLH-CHNUB1rW.js → DSAASPLT-BaaCUKsb.js} +7 -7
- package/dist/DatePicker.js +5 -5
- package/dist/DateTimePicker.js +2 -2
- package/dist/Drawer.css +1 -1
- package/dist/Drawer.js +67 -67
- package/dist/DropdownMenu.js +261 -259
- package/dist/Field.js +1 -1
- package/dist/FieldGroup.js +1 -1
- package/dist/FileDrop.js +194 -221
- package/dist/FileUpload.js +2 -2
- package/dist/GVVKDT6A-bET6V7Py.js +724 -0
- package/dist/Hint.js +1 -1
- package/dist/{Icon-BisRi8B3.js → Icon-EG7O4YwD.js} +1 -1
- package/dist/Icon.js +12 -12
- package/dist/InputText.js +1 -1
- package/dist/{ASMQKSDT-SH1qSiMi.js → KPUWHTQJ-D2TPji47.js} +30 -30
- package/dist/Label.js +3 -3
- package/dist/Link.css +1 -1
- package/dist/Link.js +27 -27
- package/dist/Loader.js +1 -1
- package/dist/Logo.js +1 -1
- package/dist/Modal.js +10 -10
- package/dist/{JC64G2H7-DPy9R0De.js → NI3IVY7K-Ztb3-XAv.js} +571 -571
- package/dist/{P4IRICAX-7kH4HzWI.js → NMGNQVTG-C6TqBngP.js} +5 -5
- package/dist/{LVA2YJMS-NUHCRwFZ.js → OE2EFRVA-C3721cM3.js} +316 -315
- package/dist/{ITI7HKP4-C5xLpoVY.js → OLVWQA7U-DysaSaZj.js} +59 -59
- package/dist/Pagination.css +1 -1
- package/dist/Pagination.js +81 -73
- package/dist/PasswordInput.js +17 -18
- package/dist/Popover.js +14 -14
- package/dist/{YV4JVR4I-CVFstk2K.js → RTNCFSKZ-qpPg689E.js} +75 -73
- package/dist/Radio.css +1 -1
- package/dist/Radio.js +29 -29
- package/dist/RadioGroup.js +21 -21
- package/dist/RadioTab.js +2 -2
- package/dist/{P2CTZE2T-D1TepwxQ.js → SBSPVDDI-DJKkC1eb.js} +43 -43
- package/dist/{NLEBE274-B4zy25kL.js → SQZLCNLX-CHDXnZ16.js} +16 -16
- package/dist/Search.js +2 -2
- package/dist/Select.js +170 -181
- package/dist/Slider.js +1 -1
- package/dist/Swiper.css +1 -1
- package/dist/Swiper.js +151 -151
- package/dist/{VGCJ63VH-CVhs4PYt.js → T22PY7TE-C1N0q8Kn.js} +109 -109
- package/dist/Table.js +1 -1
- package/dist/Tabs.js +303 -308
- package/dist/Tag.js +3 -3
- package/dist/Text.js +1 -1
- package/dist/Textarea.js +1 -1
- package/dist/TimePicker.js +2 -2
- package/dist/Toast.js +1 -1
- package/dist/Toggle.js +2 -2
- package/dist/Tooltip.js +72 -72
- package/dist/VariantIcon.js +3 -3
- package/dist/WelcomeLoader.js +1 -1
- package/dist/XCKGTAUF-DkxWCbaW.js +25 -0
- package/dist/Y67KZUMI-DFEgrUv2.js +15 -0
- package/dist/{AXB53BZF-BHeessqV.js → ZTXFEM5L-CkrIQCN1.js} +7 -7
- package/dist/{field-icon-size-Du58qHNC.js → field-icon-size-Z5NulTSk.js} +216 -224
- package/dist/{index-5rXezknO.js → index-BC2bF45u.js} +1 -1
- package/dist/{index-C8GsqBDe.js → index-BeetbagJ.js} +1 -1
- package/dist/{index-BJLXLdM3.js → index-Bt79XJ8R.js} +1 -1
- package/dist/{index-Dcq5gh3E.js → index-BtwrJ6N4.js} +1 -1
- package/dist/{index-DL4-ut3P.js → index-CCASZBtz.js} +1 -1
- package/dist/{index-lbUBMgHp.js → index-CPqDZeah.js} +2 -2
- package/dist/{index-CTgip19b.js → index-CQEPCbEE.js} +1 -1
- package/dist/{index-CnxSNAPH.js → index-Crpe9CvH.js} +1 -1
- package/dist/{index-CWVOLBDY.js → index-D5a8Oe6k.js} +1 -1
- package/dist/{index-C1jjVTAc.js → index-D8dq-I5s.js} +1 -1
- package/dist/{index-Cvtm6uuS.js → index-DkwTwo3z.js} +1 -1
- package/dist/{index-BG2aV9o8.js → index-DnO8yBVT.js} +1 -1
- package/dist/index.css +0 -0
- package/dist/tslib.es6-DpB4Y59c.js +683 -0
- package/dist/types/components/Pagination/index.d.ts +1 -2
- package/dist/types/components/Pagination/types.d.ts +5 -2
- package/dist/types/components/PasswordInput/ToggleButton.d.ts +1 -1
- package/dist/types/components/PasswordInput/types.d.ts +1 -1
- package/dist/types/components/Tabs/components/TabList/index.d.ts +1 -1
- package/dist/types/components/Tabs/index.d.ts +1 -1
- package/dist/types/components/Tabs/types.d.ts +1 -2
- package/dist/types/components/Tabs/utils.d.ts +1 -2
- package/dist/types/utils/index.d.ts +1 -0
- package/dist/types/utils/theme/index.d.ts +0 -0
- package/dist/types/utils/useForkRef.d.ts +7 -1
- package/dist/useForkRef-D807AV7D.js +22 -0
- package/dist/{utils-BNMgUIHQ.js → utils-BpbIqM56.js} +1 -1
- package/dist/utils.js +2 -2
- package/package.json +5 -5
- package/dist/BYC7LY2E-DbSoi9cN.js +0 -673
- package/dist/KUU7WJ55-CsIy9XMu.js +0 -61
- package/dist/MTZPJQMC-D_TnSwZf.js +0 -15
- package/dist/QYJ6MIDR-Dm7lYMh6.js +0 -43
- package/dist/X5NMLKT6-PeY306ft.js +0 -25
- package/dist/index--0U5Rubs.js +0 -644
- /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,
|
|
6
|
+
export declare const ToggleButton: ({ isHidden, onClick, ...rest }: ToggleButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -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<
|
|
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<
|
|
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
|
|
32
|
+
export type TabProps = TabOptions & TabStoreProps;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import {
|
|
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;
|
|
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
|
+
};
|
package/dist/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { b as f } from "./index-
|
|
3
|
-
import { c as d } from "./index-
|
|
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
|
|
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.
|
|
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.
|
|
79
|
-
"@testing-library/react": "^16.
|
|
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.
|
|
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",
|