@deepnoid/ui 0.1.12 → 0.1.14
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/.turbo/turbo-build.log +166 -156
- package/dist/{chunk-LHDOM76J.mjs → chunk-2KAR2PTQ.mjs} +1 -1
- package/dist/{chunk-QYJORE4E.mjs → chunk-4GLKWK3Z.mjs} +1 -1
- package/dist/{chunk-H5DOTBKA.mjs → chunk-56RN6YOP.mjs} +1 -1
- package/dist/{chunk-RMTHVIPI.mjs → chunk-57WBWSSL.mjs} +2 -2
- package/dist/{chunk-ILFY6MZ6.mjs → chunk-6G7GOPSB.mjs} +5 -5
- package/dist/{chunk-G3LQ3ZX6.mjs → chunk-72JRFZCH.mjs} +4 -4
- package/dist/{chunk-PI6Q5JDU.mjs → chunk-7R4NOC2G.mjs} +11 -11
- package/dist/{chunk-6BBDU4HW.mjs → chunk-7R4QY3TA.mjs} +1 -1
- package/dist/{chunk-M5KV3WZ2.mjs → chunk-A7OXEUCC.mjs} +29 -37
- package/dist/{chunk-W55GVLPJ.mjs → chunk-AHTNXGAY.mjs} +1 -1
- package/dist/{chunk-M2IRRTFM.mjs → chunk-D7WPZ5C6.mjs} +17 -14
- package/dist/{chunk-RRI3I435.mjs → chunk-DADMVOYI.mjs} +1 -1
- package/dist/{chunk-ASQAVFM5.mjs → chunk-GQS6V47G.mjs} +1 -1
- package/dist/{chunk-C62UPLCC.mjs → chunk-GXWSYM7Z.mjs} +2 -2
- package/dist/{chunk-OHDRKCOC.mjs → chunk-KFBG45BI.mjs} +43 -26
- package/dist/chunk-KSZEUKBY.mjs +143 -0
- package/dist/{chunk-KHI2DZTG.mjs → chunk-LP724WOP.mjs} +4 -4
- package/dist/{chunk-BWURZ3WF.mjs → chunk-NEUCUEIG.mjs} +2 -2
- package/dist/{chunk-DPCE4DLW.mjs → chunk-NJ4PBW65.mjs} +1 -1
- package/dist/chunk-QRAHATAM.mjs +380 -0
- package/dist/{chunk-N4F3R6HG.mjs → chunk-WB24YDE2.mjs} +1 -1
- package/dist/{chunk-N4UFXIUC.mjs → chunk-YQGZRSUQ.mjs} +1 -1
- package/dist/components/avatar/avatar.js +29 -37
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +29 -37
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.mts +0 -3
- package/dist/components/breadcrumb/breadcrumb.d.ts +0 -3
- package/dist/components/breadcrumb/breadcrumb.js +257 -66
- package/dist/components/breadcrumb/breadcrumb.mjs +13 -3
- package/dist/components/breadcrumb/index.js +257 -66
- package/dist/components/breadcrumb/index.mjs +13 -3
- package/dist/components/button/button-group.js +1 -1
- package/dist/components/button/button-group.mjs +1 -1
- package/dist/components/button/button.js +29 -37
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.d.mts +157 -0
- package/dist/components/button/icon-button.d.ts +157 -0
- package/dist/components/button/icon-button.js +4674 -0
- package/dist/components/button/icon-button.mjs +16 -0
- package/dist/components/button/index.d.mts +5 -0
- package/dist/components/button/index.d.ts +5 -0
- package/dist/components/button/index.js +566 -45
- package/dist/components/button/index.mjs +16 -7
- package/dist/components/button/text-button.d.mts +146 -0
- package/dist/components/button/text-button.d.ts +146 -0
- package/dist/components/button/text-button.js +507 -0
- package/dist/components/button/text-button.mjs +11 -0
- package/dist/components/chip/chip.js +29 -37
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +29 -37
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/dateTimePicker/calendar.js +29 -37
- package/dist/components/dateTimePicker/calendar.mjs +3 -3
- package/dist/components/dateTimePicker/dateTimePicker.js +29 -37
- package/dist/components/dateTimePicker/dateTimePicker.mjs +7 -7
- package/dist/components/dateTimePicker/index.js +29 -37
- package/dist/components/dateTimePicker/index.mjs +7 -7
- package/dist/components/dateTimePicker/timePicker.js +29 -37
- package/dist/components/dateTimePicker/timePicker.mjs +5 -5
- package/dist/components/icon/Icon.d.mts +4 -4
- package/dist/components/icon/Icon.d.ts +4 -4
- package/dist/components/icon/Icon.js +29 -37
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +29 -37
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +1 -1
- package/dist/components/icon/template.d.ts +1 -1
- package/dist/components/icon/template.js +29 -37
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +29 -37
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +29 -37
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +29 -37
- package/dist/components/list/index.mjs +4 -4
- package/dist/components/list/listItem.js +29 -37
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +29 -37
- package/dist/components/modal/index.mjs +10 -7
- package/dist/components/modal/modal.js +29 -37
- package/dist/components/modal/modal.mjs +10 -7
- package/dist/components/pagination/index.js +36 -44
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.js +36 -44
- package/dist/components/pagination/pagination.mjs +5 -5
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +29 -37
- package/dist/components/select/index.mjs +4 -4
- package/dist/components/select/option.js +29 -37
- package/dist/components/select/option.mjs +3 -3
- package/dist/components/select/select.js +29 -37
- package/dist/components/select/select.mjs +4 -4
- package/dist/components/table/index.js +55 -60
- package/dist/components/table/index.mjs +7 -7
- package/dist/components/table/table-body.js +17 -14
- package/dist/components/table/table-body.mjs +1 -1
- package/dist/components/table/table.js +55 -60
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/toast/index.js +29 -37
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +29 -37
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +29 -37
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/index.d.mts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +1115 -619
- package/dist/index.mjs +48 -40
- package/package.json +1 -1
- /package/dist/{chunk-VUYUQGLF.mjs → chunk-MY5U63QO.mjs} +0 -0
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.js';
|
|
6
|
+
import { IconName } from '../icon/Icon.js';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import '../icon/template.js';
|
|
9
|
+
|
|
10
|
+
interface Props extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
11
|
+
name: IconName;
|
|
12
|
+
disableRipple?: boolean;
|
|
13
|
+
classNames?: SlotsToClasses<IconButtonSlots>;
|
|
14
|
+
}
|
|
15
|
+
type IconButtonProps = Props & IconButtonVariantProps;
|
|
16
|
+
declare const IconButton: react.ForwardRefExoticComponent<Props & IconButtonVariantProps & react.RefAttributes<HTMLButtonElement>>;
|
|
17
|
+
|
|
18
|
+
declare const iconButtonStyle: tailwind_variants.TVReturnType<{
|
|
19
|
+
variant: {
|
|
20
|
+
solid: never[];
|
|
21
|
+
soft: never[];
|
|
22
|
+
outline: never[];
|
|
23
|
+
ghost: never[];
|
|
24
|
+
};
|
|
25
|
+
color: {
|
|
26
|
+
primary: never[];
|
|
27
|
+
secondary: never[];
|
|
28
|
+
neutral: never[];
|
|
29
|
+
info: never[];
|
|
30
|
+
success: never[];
|
|
31
|
+
warning: never[];
|
|
32
|
+
danger: never[];
|
|
33
|
+
};
|
|
34
|
+
size: {
|
|
35
|
+
sm: {
|
|
36
|
+
base: string[];
|
|
37
|
+
};
|
|
38
|
+
md: {
|
|
39
|
+
base: string[];
|
|
40
|
+
};
|
|
41
|
+
lg: {
|
|
42
|
+
base: string[];
|
|
43
|
+
};
|
|
44
|
+
xl: {
|
|
45
|
+
base: string[];
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
isLoading: {
|
|
49
|
+
true: {};
|
|
50
|
+
};
|
|
51
|
+
isDisabled: {
|
|
52
|
+
true: {
|
|
53
|
+
base: string[];
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
isInGroup: {
|
|
57
|
+
true: {
|
|
58
|
+
base: string[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
}, {
|
|
62
|
+
base: string[];
|
|
63
|
+
}, undefined, {
|
|
64
|
+
variant: {
|
|
65
|
+
solid: never[];
|
|
66
|
+
soft: never[];
|
|
67
|
+
outline: never[];
|
|
68
|
+
ghost: never[];
|
|
69
|
+
};
|
|
70
|
+
color: {
|
|
71
|
+
primary: never[];
|
|
72
|
+
secondary: never[];
|
|
73
|
+
neutral: never[];
|
|
74
|
+
info: never[];
|
|
75
|
+
success: never[];
|
|
76
|
+
warning: never[];
|
|
77
|
+
danger: never[];
|
|
78
|
+
};
|
|
79
|
+
size: {
|
|
80
|
+
sm: {
|
|
81
|
+
base: string[];
|
|
82
|
+
};
|
|
83
|
+
md: {
|
|
84
|
+
base: string[];
|
|
85
|
+
};
|
|
86
|
+
lg: {
|
|
87
|
+
base: string[];
|
|
88
|
+
};
|
|
89
|
+
xl: {
|
|
90
|
+
base: string[];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
isLoading: {
|
|
94
|
+
true: {};
|
|
95
|
+
};
|
|
96
|
+
isDisabled: {
|
|
97
|
+
true: {
|
|
98
|
+
base: string[];
|
|
99
|
+
};
|
|
100
|
+
};
|
|
101
|
+
isInGroup: {
|
|
102
|
+
true: {
|
|
103
|
+
base: string[];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
}, {
|
|
107
|
+
base: string[];
|
|
108
|
+
}, tailwind_variants.TVReturnType<{
|
|
109
|
+
variant: {
|
|
110
|
+
solid: never[];
|
|
111
|
+
soft: never[];
|
|
112
|
+
outline: never[];
|
|
113
|
+
ghost: never[];
|
|
114
|
+
};
|
|
115
|
+
color: {
|
|
116
|
+
primary: never[];
|
|
117
|
+
secondary: never[];
|
|
118
|
+
neutral: never[];
|
|
119
|
+
info: never[];
|
|
120
|
+
success: never[];
|
|
121
|
+
warning: never[];
|
|
122
|
+
danger: never[];
|
|
123
|
+
};
|
|
124
|
+
size: {
|
|
125
|
+
sm: {
|
|
126
|
+
base: string[];
|
|
127
|
+
};
|
|
128
|
+
md: {
|
|
129
|
+
base: string[];
|
|
130
|
+
};
|
|
131
|
+
lg: {
|
|
132
|
+
base: string[];
|
|
133
|
+
};
|
|
134
|
+
xl: {
|
|
135
|
+
base: string[];
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
isLoading: {
|
|
139
|
+
true: {};
|
|
140
|
+
};
|
|
141
|
+
isDisabled: {
|
|
142
|
+
true: {
|
|
143
|
+
base: string[];
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
isInGroup: {
|
|
147
|
+
true: {
|
|
148
|
+
base: string[];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
}, {
|
|
152
|
+
base: string[];
|
|
153
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
154
|
+
type IconButtonVariantProps = VariantProps<typeof iconButtonStyle>;
|
|
155
|
+
type IconButtonSlots = keyof ReturnType<typeof iconButtonStyle>;
|
|
156
|
+
|
|
157
|
+
export { type IconButtonProps, type Props, IconButton as default };
|