asterui 0.12.16 → 0.12.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Checkbox.d.ts +3 -1
- package/dist/components/Form.d.ts +7 -1
- package/dist/components/Input.d.ts +10 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +134 -136
- package/dist/index.js.map +1 -1
- package/dist/index10.js +70 -65
- package/dist/index10.js.map +1 -1
- package/dist/index100.js +43 -11
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +11 -44
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +12 -10
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +7 -14
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +12 -7
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +29 -11
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +16 -29
- package/dist/index106.js.map +1 -1
- package/dist/index34.js +198 -158
- package/dist/index34.js.map +1 -1
- package/dist/index42.js +185 -148
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +19 -19
- package/dist/index43.js.map +1 -1
- package/dist/index46.js +134 -18
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +10 -134
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +35 -13
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +34 -35
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +81 -34
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +166 -71
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +144 -167
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +11 -152
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +20 -10
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +14 -22
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +7 -14
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +333 -6
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +47 -334
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +122 -47
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +108 -120
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +167 -107
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +29 -167
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +120 -30
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +80 -116
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +19 -85
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +73 -19
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +54 -71
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +44 -56
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +49 -42
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +121 -50
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +102 -118
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +41 -107
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +68 -41
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +19 -66
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +55 -18
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +251 -55
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +22 -254
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +31 -22
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +93 -30
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +324 -89
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +73 -322
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +39 -79
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +23 -40
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +93 -21
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +148 -87
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +152 -147
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +63 -159
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +35 -65
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +234 -35
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +31 -231
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +210 -34
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +198 -195
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +241 -159
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +166 -283
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +253 -173
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +14 -258
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +31 -12
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +5 -32
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +13 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/Label.d.ts +0 -15
- package/dist/index107.js +0 -21
- package/dist/index107.js.map +0 -1
|
@@ -28,9 +28,11 @@ export interface CheckboxGroupProps {
|
|
|
28
28
|
onChange?: (values: (string | number)[]) => void;
|
|
29
29
|
disabled?: boolean;
|
|
30
30
|
options?: (string | number | CheckboxOptionType)[];
|
|
31
|
+
/** Layout direction for options */
|
|
32
|
+
direction?: 'horizontal' | 'vertical';
|
|
31
33
|
className?: string;
|
|
32
34
|
}
|
|
33
|
-
declare function CheckboxGroup({ children, value, defaultValue, onChange, disabled, options, className }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
35
|
+
declare function CheckboxGroup({ children, value, defaultValue, onChange, disabled, options, direction, className }: CheckboxGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
34
36
|
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>> & {
|
|
35
37
|
Group: typeof CheckboxGroup;
|
|
36
38
|
};
|
|
@@ -42,6 +42,8 @@ export type ValidateTrigger = 'onChange' | 'onBlur' | 'onSubmit' | ('onChange' |
|
|
|
42
42
|
export interface FormItemProps {
|
|
43
43
|
name?: string | string[];
|
|
44
44
|
label?: string;
|
|
45
|
+
/** Floating label text (alternative to label, uses DaisyUI floating-label) */
|
|
46
|
+
floatingLabel?: string;
|
|
45
47
|
help?: string;
|
|
46
48
|
required?: boolean;
|
|
47
49
|
rules?: FormRule | FormRule[];
|
|
@@ -63,6 +65,10 @@ export interface FormItemProps {
|
|
|
63
65
|
initialValue?: any;
|
|
64
66
|
/** Hide this field (still validates and submits) */
|
|
65
67
|
hidden?: boolean;
|
|
68
|
+
/** Text/element before input (outside, using DaisyUI label) */
|
|
69
|
+
addonBefore?: React.ReactNode;
|
|
70
|
+
/** Text/element after input (outside, using DaisyUI label) */
|
|
71
|
+
addonAfter?: React.ReactNode;
|
|
66
72
|
}
|
|
67
73
|
export interface FormListProps<TFieldValues extends FieldValues = FieldValues> {
|
|
68
74
|
name: FieldArrayPath<TFieldValues>;
|
|
@@ -73,7 +79,7 @@ export interface FormListProps<TFieldValues extends FieldValues = FieldValues> {
|
|
|
73
79
|
}) => React.ReactNode;
|
|
74
80
|
}
|
|
75
81
|
declare function FormRoot<TFieldValues extends FieldValues = FieldValues>({ form: externalForm, onFinish, onFinishFailed, initialValues, layout, labelWidth, size, disabled, children, className, noValidate, ...props }: FormProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
76
|
-
declare function FormItem({ name, label, help, required, rules, valuePropName, inline, className, children, tooltip, extra, hasFeedback, dependencies, validateTrigger, initialValue, hidden, }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
declare function FormItem({ name, label, floatingLabel, help, required, rules, valuePropName, inline, className, children, tooltip, extra, hasFeedback, dependencies, validateTrigger, initialValue, hidden, addonBefore, addonAfter, }: FormItemProps): import("react/jsx-runtime").JSX.Element;
|
|
77
83
|
declare function FormList<TFieldValues extends FieldValues = FieldValues>({ name, children, }: FormListProps<TFieldValues>): import("react/jsx-runtime").JSX.Element;
|
|
78
84
|
export declare function useFormInstance<TFieldValues extends FieldValues = FieldValues>(): UseFormReturn<TFieldValues, any, TFieldValues> & {
|
|
79
85
|
setFieldValue: import('react-hook-form').UseFormSetValue<TFieldValues>;
|
|
@@ -18,11 +18,19 @@ export interface InputProps extends Omit<React.InputHTMLAttributes<HTMLInputElem
|
|
|
18
18
|
};
|
|
19
19
|
/** Callback when clear button is clicked */
|
|
20
20
|
onClear?: () => void;
|
|
21
|
-
/** Prefix icon or element */
|
|
21
|
+
/** Prefix icon or element (inside input) */
|
|
22
22
|
prefix?: React.ReactNode;
|
|
23
|
-
/** Suffix icon or element */
|
|
23
|
+
/** Suffix icon or element (inside input) */
|
|
24
24
|
suffix?: React.ReactNode;
|
|
25
|
+
/** Text/element before input (outside, using DaisyUI label) */
|
|
26
|
+
addonBefore?: React.ReactNode;
|
|
27
|
+
/** Text/element after input (outside, using DaisyUI label) */
|
|
28
|
+
addonAfter?: React.ReactNode;
|
|
29
|
+
/** Floating label text (uses DaisyUI floating-label) */
|
|
30
|
+
floatingLabel?: string;
|
|
25
31
|
/** ID for error message element (for aria-describedby) */
|
|
26
32
|
errorId?: string;
|
|
33
|
+
/** Render as unstyled input (for use inside styled wrappers) */
|
|
34
|
+
unstyled?: boolean;
|
|
27
35
|
}
|
|
28
36
|
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -86,8 +86,6 @@ export { Join } from './components/Join';
|
|
|
86
86
|
export type { JoinProps } from './components/Join';
|
|
87
87
|
export { Kbd } from './components/Kbd';
|
|
88
88
|
export type { KbdProps } from './components/Kbd';
|
|
89
|
-
export { Label } from './components/Label';
|
|
90
|
-
export type { LabelProps, FloatingLabelProps } from './components/Label';
|
|
91
89
|
export { Layout, useSiderContext } from './components/Layout';
|
|
92
90
|
export type { LayoutProps, LayoutHeaderProps, LayoutFooterProps, LayoutContentProps, LayoutSiderProps } from './components/Layout';
|
|
93
91
|
export { List } from './components/List';
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { Anchor as p } from "./index3.js";
|
|
|
3
3
|
import { Alert as f } from "./index4.js";
|
|
4
4
|
import { Autocomplete as a } from "./index5.js";
|
|
5
5
|
import { Avatar as n, AvatarGroup as s } from "./index6.js";
|
|
6
|
-
import { Badge as
|
|
6
|
+
import { Badge as l } from "./index7.js";
|
|
7
7
|
import { Breadcrumb as c } from "./index8.js";
|
|
8
8
|
import { Button as T } from "./index9.js";
|
|
9
9
|
import { Checkbox as P } from "./index10.js";
|
|
@@ -13,7 +13,7 @@ import { Card as w } from "./index13.js";
|
|
|
13
13
|
import { Cascader as v } from "./index14.js";
|
|
14
14
|
import { Chart as R } from "./index15.js";
|
|
15
15
|
import { Carousel as A } from "./index16.js";
|
|
16
|
-
import { Collapse as
|
|
16
|
+
import { Collapse as M } from "./index17.js";
|
|
17
17
|
import { Container as H } from "./index18.js";
|
|
18
18
|
import { ContextMenu as K } from "./index19.js";
|
|
19
19
|
import { Countdown as O } from "./index20.js";
|
|
@@ -30,7 +30,7 @@ import { Filter as mo } from "./index30.js";
|
|
|
30
30
|
import { Flex as xo } from "./index31.js";
|
|
31
31
|
import { FloatButton as io } from "./index32.js";
|
|
32
32
|
import { Footer as so } from "./index33.js";
|
|
33
|
-
import { Form as
|
|
33
|
+
import { Form as lo, useFormInstance as co } from "./index34.js";
|
|
34
34
|
import { Col as To, Grid as go, Row as Po } from "./index35.js";
|
|
35
35
|
import { Hero as bo } from "./index36.js";
|
|
36
36
|
import { HoverGallery as Do } from "./index37.js";
|
|
@@ -38,72 +38,71 @@ import { Image as wo } from "./index38.js";
|
|
|
38
38
|
import { Indicator as vo } from "./index39.js";
|
|
39
39
|
import { Dropdown as Ro } from "./index40.js";
|
|
40
40
|
import { Empty as Ao } from "./index41.js";
|
|
41
|
-
import { Input as
|
|
41
|
+
import { Input as Mo } from "./index42.js";
|
|
42
42
|
import { InputNumber as Ho } from "./index43.js";
|
|
43
43
|
import { Join as Ko } from "./index44.js";
|
|
44
44
|
import { Kbd as Oo } from "./index45.js";
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
49
|
-
import {
|
|
50
|
-
import {
|
|
51
|
-
import {
|
|
52
|
-
import {
|
|
53
|
-
import {
|
|
54
|
-
import {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
import {
|
|
63
|
-
import {
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import {
|
|
67
|
-
import {
|
|
68
|
-
import {
|
|
69
|
-
import {
|
|
70
|
-
import {
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import {
|
|
74
|
-
import {
|
|
75
|
-
import {
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
90
|
-
import {
|
|
91
|
-
import {
|
|
92
|
-
import {
|
|
93
|
-
import {
|
|
94
|
-
import {
|
|
95
|
-
import {
|
|
96
|
-
import {
|
|
97
|
-
import {
|
|
98
|
-
import {
|
|
99
|
-
import {
|
|
100
|
-
import {
|
|
101
|
-
import {
|
|
102
|
-
import {
|
|
103
|
-
import {
|
|
104
|
-
import {
|
|
105
|
-
import {
|
|
106
|
-
import { useWindowSize as mt } from "./index107.js";
|
|
45
|
+
import { Layout as zo, useSiderContext as Eo } from "./index46.js";
|
|
46
|
+
import { List as Qo } from "./index47.js";
|
|
47
|
+
import { Loading as jo } from "./index48.js";
|
|
48
|
+
import { Mask as Vo } from "./index49.js";
|
|
49
|
+
import { Masonry as Yo } from "./index50.js";
|
|
50
|
+
import { Mention as _o } from "./index51.js";
|
|
51
|
+
import { Menu as or } from "./index52.js";
|
|
52
|
+
import { Browser as er } from "./index53.js";
|
|
53
|
+
import { Code as pr } from "./index54.js";
|
|
54
|
+
import { Phone as fr } from "./index55.js";
|
|
55
|
+
import { Window as ar } from "./index56.js";
|
|
56
|
+
import { Modal as nr } from "./index57.js";
|
|
57
|
+
import { Navbar as ur } from "./index58.js";
|
|
58
|
+
import { notification as dr } from "./index59.js";
|
|
59
|
+
import { OTPInput as Cr } from "./index60.js";
|
|
60
|
+
import { Pagination as gr } from "./index61.js";
|
|
61
|
+
import { PageLayout as Sr } from "./index62.js";
|
|
62
|
+
import { Popconfirm as kr } from "./index63.js";
|
|
63
|
+
import { Popover as hr } from "./index64.js";
|
|
64
|
+
import { Progress as yr } from "./index65.js";
|
|
65
|
+
import { QRCode as Fr } from "./index66.js";
|
|
66
|
+
import { Radio as Ir } from "./index67.js";
|
|
67
|
+
import { RadialProgress as Br } from "./index68.js";
|
|
68
|
+
import { Range as Lr } from "./index69.js";
|
|
69
|
+
import { Rating as Gr } from "./index70.js";
|
|
70
|
+
import { Result as Nr } from "./index71.js";
|
|
71
|
+
import { Select as Wr } from "./index72.js";
|
|
72
|
+
import { Segmented as Er } from "./index73.js";
|
|
73
|
+
import { Skeleton as Qr } from "./index74.js";
|
|
74
|
+
import { Space as jr } from "./index75.js";
|
|
75
|
+
import { Splitter as Vr } from "./index76.js";
|
|
76
|
+
import { Stats as Yr } from "./index77.js";
|
|
77
|
+
import { Status as _r } from "./index78.js";
|
|
78
|
+
import { Steps as oe } from "./index79.js";
|
|
79
|
+
import { Table as ee } from "./index80.js";
|
|
80
|
+
import { Tabs as pe } from "./index81.js";
|
|
81
|
+
import { Textarea as fe } from "./index82.js";
|
|
82
|
+
import { TextRotate as ae } from "./index83.js";
|
|
83
|
+
import { CheckableTag as ne, Tag as se } from "./index84.js";
|
|
84
|
+
import { ThemeController as le } from "./index85.js";
|
|
85
|
+
import { TimePicker as ce } from "./index86.js";
|
|
86
|
+
import { Timeline as Te } from "./index87.js";
|
|
87
|
+
import { Toggle as Pe } from "./index88.js";
|
|
88
|
+
import { Tour as be } from "./index89.js";
|
|
89
|
+
import { Tooltip as De } from "./index90.js";
|
|
90
|
+
import { Transfer as we } from "./index91.js";
|
|
91
|
+
import { Tree as ve } from "./index92.js";
|
|
92
|
+
import { TreeSelect as Re } from "./index93.js";
|
|
93
|
+
import { Typography as Ae } from "./index94.js";
|
|
94
|
+
import { Upload as Me } from "./index95.js";
|
|
95
|
+
import { Hide as He, Show as Ge } from "./index96.js";
|
|
96
|
+
import { useBreakpoint as Ne } from "./index97.js";
|
|
97
|
+
import { useDisclosure as We } from "./index98.js";
|
|
98
|
+
import { useClipboard as Ee } from "./index99.js";
|
|
99
|
+
import { useLocalStorage as Qe } from "./index100.js";
|
|
100
|
+
import { useDebounce as je } from "./index101.js";
|
|
101
|
+
import { useClickOutside as Ve } from "./index102.js";
|
|
102
|
+
import { usePrevious as Ye } from "./index103.js";
|
|
103
|
+
import { useHover as _e } from "./index104.js";
|
|
104
|
+
import { useKeyPress as ot, useKeyPressCallback as rt } from "./index105.js";
|
|
105
|
+
import { useWindowSize as tt } from "./index106.js";
|
|
107
106
|
export {
|
|
108
107
|
e as Affix,
|
|
109
108
|
f as Alert,
|
|
@@ -111,20 +110,20 @@ export {
|
|
|
111
110
|
a as Autocomplete,
|
|
112
111
|
n as Avatar,
|
|
113
112
|
s as AvatarGroup,
|
|
114
|
-
|
|
113
|
+
l as Badge,
|
|
115
114
|
c as Breadcrumb,
|
|
116
|
-
|
|
115
|
+
er as Browser,
|
|
117
116
|
T as Button,
|
|
118
117
|
w as Card,
|
|
119
118
|
A as Carousel,
|
|
120
119
|
v as Cascader,
|
|
121
120
|
R as Chart,
|
|
122
121
|
b as Chat,
|
|
123
|
-
|
|
122
|
+
ne as CheckableTag,
|
|
124
123
|
P as Checkbox,
|
|
125
|
-
|
|
124
|
+
pr as Code,
|
|
126
125
|
To as Col,
|
|
127
|
-
|
|
126
|
+
M as Collapse,
|
|
128
127
|
D as ColorPicker,
|
|
129
128
|
H as Container,
|
|
130
129
|
K as ContextMenu,
|
|
@@ -143,81 +142,80 @@ export {
|
|
|
143
142
|
xo as Flex,
|
|
144
143
|
io as FloatButton,
|
|
145
144
|
so as Footer,
|
|
146
|
-
|
|
145
|
+
lo as Form,
|
|
147
146
|
go as Grid,
|
|
148
147
|
bo as Hero,
|
|
149
|
-
|
|
148
|
+
He as Hide,
|
|
150
149
|
Do as HoverGallery,
|
|
151
150
|
wo as Image,
|
|
152
151
|
vo as Indicator,
|
|
153
|
-
|
|
152
|
+
Mo as Input,
|
|
154
153
|
Ho as InputNumber,
|
|
155
154
|
Ko as Join,
|
|
156
155
|
Oo as Kbd,
|
|
157
|
-
zo as
|
|
158
|
-
|
|
159
|
-
jo as
|
|
160
|
-
Vo as
|
|
161
|
-
Yo as
|
|
162
|
-
_o as
|
|
163
|
-
or as
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
hr as
|
|
172
|
-
yr as
|
|
173
|
-
Fr as
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
Gr as
|
|
178
|
-
Nr as
|
|
179
|
-
Wr as Result,
|
|
156
|
+
zo as Layout,
|
|
157
|
+
Qo as List,
|
|
158
|
+
jo as Loading,
|
|
159
|
+
Vo as Mask,
|
|
160
|
+
Yo as Masonry,
|
|
161
|
+
_o as Mention,
|
|
162
|
+
or as Menu,
|
|
163
|
+
nr as Modal,
|
|
164
|
+
ur as Navbar,
|
|
165
|
+
Cr as OTPInput,
|
|
166
|
+
Sr as PageLayout,
|
|
167
|
+
gr as Pagination,
|
|
168
|
+
fr as Phone,
|
|
169
|
+
kr as Popconfirm,
|
|
170
|
+
hr as Popover,
|
|
171
|
+
yr as Progress,
|
|
172
|
+
Fr as QRCode,
|
|
173
|
+
Br as RadialProgress,
|
|
174
|
+
Ir as Radio,
|
|
175
|
+
Lr as Range,
|
|
176
|
+
Gr as Rating,
|
|
177
|
+
Nr as Result,
|
|
180
178
|
Po as Row,
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
179
|
+
Er as Segmented,
|
|
180
|
+
Wr as Select,
|
|
181
|
+
Ge as Show,
|
|
184
182
|
$ as SidebarDrawer,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
183
|
+
Qr as Skeleton,
|
|
184
|
+
jr as Space,
|
|
185
|
+
Vr as Splitter,
|
|
186
|
+
Yr as Stats,
|
|
187
|
+
_r as Status,
|
|
188
|
+
oe as Steps,
|
|
189
|
+
ee as Table,
|
|
190
|
+
pe as Tabs,
|
|
191
|
+
se as Tag,
|
|
192
|
+
ae as TextRotate,
|
|
193
|
+
fe as Textarea,
|
|
194
|
+
le as ThemeController,
|
|
195
|
+
ce as TimePicker,
|
|
196
|
+
Te as Timeline,
|
|
197
|
+
Pe as Toggle,
|
|
198
|
+
De as Tooltip,
|
|
199
|
+
be as Tour,
|
|
200
|
+
we as Transfer,
|
|
201
|
+
ve as Tree,
|
|
202
|
+
Re as TreeSelect,
|
|
203
|
+
Ae as Typography,
|
|
204
|
+
Me as Upload,
|
|
205
|
+
ar as Window,
|
|
206
|
+
dr as notification,
|
|
207
|
+
Ne as useBreakpoint,
|
|
208
|
+
Ve as useClickOutside,
|
|
209
|
+
Ee as useClipboard,
|
|
210
|
+
je as useDebounce,
|
|
211
|
+
We as useDisclosure,
|
|
214
212
|
co as useFormInstance,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
213
|
+
_e as useHover,
|
|
214
|
+
ot as useKeyPress,
|
|
215
|
+
rt as useKeyPressCallback,
|
|
216
|
+
Qe as useLocalStorage,
|
|
217
|
+
Ye as usePrevious,
|
|
218
|
+
Eo as useSiderContext,
|
|
219
|
+
tt as useWindowSize
|
|
222
220
|
};
|
|
223
221
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/index10.js
CHANGED
|
@@ -1,52 +1,57 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import R, { forwardRef as G, useContext as
|
|
3
|
-
const y =
|
|
4
|
-
function
|
|
5
|
-
children:
|
|
6
|
-
value:
|
|
7
|
-
defaultValue:
|
|
8
|
-
onChange:
|
|
1
|
+
import { jsxs as p, jsx as c } from "react/jsx-runtime";
|
|
2
|
+
import R, { forwardRef as G, useContext as $, createContext as B } from "react";
|
|
3
|
+
const y = B(null);
|
|
4
|
+
function I({
|
|
5
|
+
children: f,
|
|
6
|
+
value: o,
|
|
7
|
+
defaultValue: x,
|
|
8
|
+
onChange: h,
|
|
9
9
|
disabled: n = !1,
|
|
10
|
-
options:
|
|
11
|
-
|
|
10
|
+
options: d,
|
|
11
|
+
direction: a = "vertical",
|
|
12
|
+
className: u = ""
|
|
12
13
|
}) {
|
|
13
|
-
const [
|
|
14
|
-
value:
|
|
15
|
-
onChange: (
|
|
16
|
-
const
|
|
17
|
-
|
|
14
|
+
const [C, g] = R.useState(x || []), r = o !== void 0 ? o : C, t = {
|
|
15
|
+
value: r,
|
|
16
|
+
onChange: (i, e) => {
|
|
17
|
+
const k = e ? [...r, i] : r.filter((b) => b !== i);
|
|
18
|
+
o === void 0 && g(k), h?.(k);
|
|
18
19
|
},
|
|
19
20
|
disabled: n
|
|
20
21
|
};
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/* @__PURE__ */ c("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
/* @__PURE__ */
|
|
27
|
-
|
|
22
|
+
if (d) {
|
|
23
|
+
const i = a === "horizontal" ? "flex flex-row flex-wrap gap-4" : "flex flex-col";
|
|
24
|
+
return /* @__PURE__ */ c(y.Provider, { value: t, children: /* @__PURE__ */ c("div", { className: `${i} ${u}`.trim(), children: d.map((e) => typeof e == "string" || typeof e == "number" ? /* @__PURE__ */ p("label", { className: "label cursor-pointer justify-start gap-2", children: [
|
|
25
|
+
/* @__PURE__ */ c(m, { value: e }),
|
|
26
|
+
/* @__PURE__ */ c("span", { className: "label-text", children: e })
|
|
27
|
+
] }, e) : /* @__PURE__ */ p("label", { className: "label cursor-pointer justify-start gap-2", children: [
|
|
28
|
+
/* @__PURE__ */ c(m, { value: e.value, disabled: e.disabled }),
|
|
29
|
+
/* @__PURE__ */ c("span", { className: "label-text", children: e.label })
|
|
30
|
+
] }, e.value)) }) });
|
|
31
|
+
}
|
|
32
|
+
return /* @__PURE__ */ c(y.Provider, { value: t, children: /* @__PURE__ */ c("div", { className: u, children: f }) });
|
|
28
33
|
}
|
|
29
|
-
const
|
|
34
|
+
const m = G(
|
|
30
35
|
({
|
|
31
|
-
children:
|
|
32
|
-
size:
|
|
33
|
-
color:
|
|
34
|
-
indeterminate:
|
|
36
|
+
children: f,
|
|
37
|
+
size: o,
|
|
38
|
+
color: x,
|
|
39
|
+
indeterminate: h = !1,
|
|
35
40
|
swap: n,
|
|
36
|
-
className:
|
|
37
|
-
value:
|
|
38
|
-
checked:
|
|
39
|
-
onChange:
|
|
40
|
-
disabled:
|
|
41
|
-
...
|
|
42
|
-
},
|
|
43
|
-
const
|
|
41
|
+
className: d = "",
|
|
42
|
+
value: a,
|
|
43
|
+
checked: u,
|
|
44
|
+
onChange: C,
|
|
45
|
+
disabled: g,
|
|
46
|
+
...r
|
|
47
|
+
}, l) => {
|
|
48
|
+
const t = $(y), i = {
|
|
44
49
|
xs: "checkbox-xs",
|
|
45
50
|
sm: "checkbox-sm",
|
|
46
51
|
md: "checkbox-md",
|
|
47
52
|
lg: "checkbox-lg",
|
|
48
53
|
xl: "checkbox-xl"
|
|
49
|
-
},
|
|
54
|
+
}, e = {
|
|
50
55
|
primary: "checkbox-primary",
|
|
51
56
|
secondary: "checkbox-secondary",
|
|
52
57
|
accent: "checkbox-accent",
|
|
@@ -55,36 +60,36 @@ const u = G(
|
|
|
55
60
|
warning: "checkbox-warning",
|
|
56
61
|
info: "checkbox-info",
|
|
57
62
|
error: "checkbox-error"
|
|
58
|
-
},
|
|
63
|
+
}, k = [
|
|
59
64
|
"checkbox",
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
].filter(Boolean).join(" "),
|
|
63
|
-
|
|
65
|
+
o && i[o],
|
|
66
|
+
x && e[x]
|
|
67
|
+
].filter(Boolean).join(" "), b = t && a !== void 0 && (typeof a == "string" || typeof a == "number") ? t.value?.includes(a) ?? !1 : u, N = t?.disabled || g, v = (s) => {
|
|
68
|
+
t && a !== void 0 && (typeof a == "string" || typeof a == "number") && t.onChange?.(a, s.target.checked), C?.(s);
|
|
64
69
|
}, V = R.useCallback(
|
|
65
|
-
(
|
|
66
|
-
|
|
70
|
+
(s) => {
|
|
71
|
+
s && (s.indeterminate = h), typeof l == "function" ? l(s) : l && (l.current = s);
|
|
67
72
|
},
|
|
68
|
-
[
|
|
69
|
-
),
|
|
73
|
+
[h, l]
|
|
74
|
+
), j = h ? "indeterminate" : b ? "checked" : "unchecked";
|
|
70
75
|
if (n) {
|
|
71
|
-
const
|
|
76
|
+
const s = [
|
|
72
77
|
"swap",
|
|
73
78
|
n.effect === "rotate" && "swap-rotate",
|
|
74
79
|
n.effect === "flip" && "swap-flip",
|
|
75
|
-
|
|
80
|
+
d
|
|
76
81
|
].filter(Boolean).join(" ");
|
|
77
|
-
return /* @__PURE__ */
|
|
82
|
+
return /* @__PURE__ */ p("label", { className: s, children: [
|
|
78
83
|
/* @__PURE__ */ c(
|
|
79
84
|
"input",
|
|
80
85
|
{
|
|
81
|
-
ref:
|
|
86
|
+
ref: l,
|
|
82
87
|
type: "checkbox",
|
|
83
|
-
checked:
|
|
84
|
-
onChange:
|
|
88
|
+
checked: b,
|
|
89
|
+
onChange: v,
|
|
85
90
|
disabled: N,
|
|
86
|
-
"data-state":
|
|
87
|
-
...
|
|
91
|
+
"data-state": j,
|
|
92
|
+
...r
|
|
88
93
|
}
|
|
89
94
|
),
|
|
90
95
|
/* @__PURE__ */ c("div", { className: "swap-on", children: n.on }),
|
|
@@ -96,26 +101,26 @@ const u = G(
|
|
|
96
101
|
{
|
|
97
102
|
ref: V,
|
|
98
103
|
type: "checkbox",
|
|
99
|
-
className:
|
|
100
|
-
value:
|
|
101
|
-
checked:
|
|
102
|
-
onChange:
|
|
104
|
+
className: k,
|
|
105
|
+
value: a,
|
|
106
|
+
checked: b,
|
|
107
|
+
onChange: v,
|
|
103
108
|
disabled: N,
|
|
104
|
-
"data-state":
|
|
105
|
-
...
|
|
109
|
+
"data-state": j,
|
|
110
|
+
...r
|
|
106
111
|
}
|
|
107
112
|
);
|
|
108
|
-
return
|
|
113
|
+
return f ? /* @__PURE__ */ p("label", { className: `label cursor-pointer justify-start gap-2 ${d}`, children: [
|
|
109
114
|
w,
|
|
110
|
-
/* @__PURE__ */ c("span", { className: "label-text", children:
|
|
115
|
+
/* @__PURE__ */ c("span", { className: "label-text", children: f })
|
|
111
116
|
] }) : w;
|
|
112
117
|
}
|
|
113
118
|
);
|
|
114
|
-
|
|
115
|
-
const
|
|
116
|
-
Group:
|
|
119
|
+
m.displayName = "Checkbox";
|
|
120
|
+
const z = Object.assign(m, {
|
|
121
|
+
Group: I
|
|
117
122
|
});
|
|
118
123
|
export {
|
|
119
|
-
|
|
124
|
+
z as Checkbox
|
|
120
125
|
};
|
|
121
126
|
//# sourceMappingURL=index10.js.map
|