@nextui-org/theme 0.0.0-canary-20240429052129
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/LICENSE +21 -0
- package/README.md +24 -0
- package/colors.d.ts +1 -0
- package/colors.js +1 -0
- package/dist/animations/index.d.ts +71 -0
- package/dist/animations/index.js +98 -0
- package/dist/animations/index.mjs +6 -0
- package/dist/chunk-2PIR7DFM.mjs +77 -0
- package/dist/chunk-3FZU25GR.mjs +33 -0
- package/dist/chunk-3LKKH4AR.mjs +17 -0
- package/dist/chunk-4Z22WXZX.mjs +21 -0
- package/dist/chunk-4ZM6AI3H.mjs +366 -0
- package/dist/chunk-6XJJCV76.mjs +243 -0
- package/dist/chunk-726LN7M3.mjs +20 -0
- package/dist/chunk-7ODIBITJ.mjs +172 -0
- package/dist/chunk-7TJINK3S.mjs +390 -0
- package/dist/chunk-AC6F4DT6.mjs +485 -0
- package/dist/chunk-AGUZRGXC.mjs +12 -0
- package/dist/chunk-AO2AAOEJ.mjs +56 -0
- package/dist/chunk-AT4OXKKK.mjs +58 -0
- package/dist/chunk-CMYR6AOY.mjs +0 -0
- package/dist/chunk-CQY2A2EX.mjs +401 -0
- package/dist/chunk-CTY7IP65.mjs +723 -0
- package/dist/chunk-CUUGEIPA.mjs +474 -0
- package/dist/chunk-D2XMP2NC.mjs +6 -0
- package/dist/chunk-DCEG5LGX.mjs +17 -0
- package/dist/chunk-DI2L75XK.mjs +22 -0
- package/dist/chunk-DMASP6FA.mjs +74 -0
- package/dist/chunk-ECP4S2VZ.mjs +36 -0
- package/dist/chunk-FRI2VDCA.mjs +306 -0
- package/dist/chunk-G4RCK475.mjs +155 -0
- package/dist/chunk-GHZ36ATJ.mjs +17 -0
- package/dist/chunk-GMMETTYU.mjs +30 -0
- package/dist/chunk-HPFX3B3F.mjs +59 -0
- package/dist/chunk-HUBDRSA4.mjs +49 -0
- package/dist/chunk-I6ESTKKY.mjs +422 -0
- package/dist/chunk-IAS3SFA4.mjs +42 -0
- package/dist/chunk-IP3D7KVB.mjs +181 -0
- package/dist/chunk-JQTFOIV7.mjs +108 -0
- package/dist/chunk-JUEOCLA3.mjs +17 -0
- package/dist/chunk-K7LK7NCE.mjs +0 -0
- package/dist/chunk-KA5SSSWD.mjs +177 -0
- package/dist/chunk-KCOC3H6R.mjs +98 -0
- package/dist/chunk-KUNVFLXJ.mjs +41 -0
- package/dist/chunk-KVPPQD2E.mjs +231 -0
- package/dist/chunk-L2OL7R23.mjs +17 -0
- package/dist/chunk-LDBYFTHC.mjs +134 -0
- package/dist/chunk-LKKSQVZ6.mjs +163 -0
- package/dist/chunk-M3MKSQ42.mjs +124 -0
- package/dist/chunk-M63AFAHO.mjs +0 -0
- package/dist/chunk-MUWHEIW6.mjs +831 -0
- package/dist/chunk-NAUU2OUH.mjs +23 -0
- package/dist/chunk-NYSEAAK5.mjs +214 -0
- package/dist/chunk-OQIS4MXV.mjs +205 -0
- package/dist/chunk-OR5PUD24.mjs +17 -0
- package/dist/chunk-PSEUPXFL.mjs +122 -0
- package/dist/chunk-QZTWGJ72.mjs +16 -0
- package/dist/chunk-RNAP5C4C.mjs +406 -0
- package/dist/chunk-S573WUYY.mjs +381 -0
- package/dist/chunk-SEKJ6A6T.mjs +396 -0
- package/dist/chunk-T3GWIVAM.mjs +17 -0
- package/dist/chunk-UODOTC2G.mjs +21 -0
- package/dist/chunk-UVXYPGDZ.mjs +0 -0
- package/dist/chunk-V5ZTBGGO.mjs +42 -0
- package/dist/chunk-VDRJHB4F.mjs +187 -0
- package/dist/chunk-VFJ7C5ZV.mjs +391 -0
- package/dist/chunk-VJTX4YUQ.mjs +31 -0
- package/dist/chunk-W6DVXJB3.mjs +21 -0
- package/dist/chunk-WAAJG22Y.mjs +90 -0
- package/dist/chunk-WBQAMGXK.mjs +0 -0
- package/dist/chunk-WQEDQHKX.mjs +0 -0
- package/dist/chunk-X7N3NQ6S.mjs +158 -0
- package/dist/chunk-XHQUSKIE.mjs +60 -0
- package/dist/chunk-YJLQTC7L.mjs +0 -0
- package/dist/chunk-YSA7EQBH.mjs +237 -0
- package/dist/chunk-YZYGFPNK.mjs +17 -0
- package/dist/colors/blue.d.ts +14 -0
- package/dist/colors/blue.js +41 -0
- package/dist/colors/blue.mjs +6 -0
- package/dist/colors/common.d.ts +103 -0
- package/dist/colors/common.js +155 -0
- package/dist/colors/common.mjs +14 -0
- package/dist/colors/cyan.d.ts +14 -0
- package/dist/colors/cyan.js +41 -0
- package/dist/colors/cyan.mjs +6 -0
- package/dist/colors/green.d.ts +14 -0
- package/dist/colors/green.js +41 -0
- package/dist/colors/green.mjs +6 -0
- package/dist/colors/index.d.ts +109 -0
- package/dist/colors/index.js +335 -0
- package/dist/colors/index.mjs +24 -0
- package/dist/colors/pink.d.ts +14 -0
- package/dist/colors/pink.js +41 -0
- package/dist/colors/pink.mjs +6 -0
- package/dist/colors/purple.d.ts +14 -0
- package/dist/colors/purple.js +41 -0
- package/dist/colors/purple.mjs +6 -0
- package/dist/colors/red.d.ts +14 -0
- package/dist/colors/red.js +41 -0
- package/dist/colors/red.mjs +6 -0
- package/dist/colors/semantic.d.ts +10 -0
- package/dist/colors/semantic.js +327 -0
- package/dist/colors/semantic.mjs +20 -0
- package/dist/colors/types.d.ts +39 -0
- package/dist/colors/types.js +18 -0
- package/dist/colors/types.mjs +1 -0
- package/dist/colors/yellow.d.ts +14 -0
- package/dist/colors/yellow.js +41 -0
- package/dist/colors/yellow.mjs +6 -0
- package/dist/colors/zinc.d.ts +14 -0
- package/dist/colors/zinc.js +41 -0
- package/dist/colors/zinc.mjs +6 -0
- package/dist/colors.d.ts +4 -0
- package/dist/colors.js +335 -0
- package/dist/colors.mjs +25 -0
- package/dist/components/accordion.d.ts +402 -0
- package/dist/components/accordion.js +154 -0
- package/dist/components/accordion.mjs +13 -0
- package/dist/components/autocomplete.d.ts +180 -0
- package/dist/components/autocomplete.js +107 -0
- package/dist/components/autocomplete.mjs +7 -0
- package/dist/components/avatar.d.ts +572 -0
- package/dist/components/avatar.js +320 -0
- package/dist/components/avatar.mjs +13 -0
- package/dist/components/badge.d.ts +484 -0
- package/dist/components/badge.js +501 -0
- package/dist/components/badge.mjs +11 -0
- package/dist/components/breadcrumbs.d.ts +816 -0
- package/dist/components/breadcrumbs.js +299 -0
- package/dist/components/breadcrumbs.mjs +13 -0
- package/dist/components/button.d.ts +393 -0
- package/dist/components/button.js +556 -0
- package/dist/components/button.mjs +13 -0
- package/dist/components/calendar.d.ts +495 -0
- package/dist/components/calendar.js +456 -0
- package/dist/components/calendar.mjs +11 -0
- package/dist/components/card.d.ts +550 -0
- package/dist/components/card.js +213 -0
- package/dist/components/card.mjs +11 -0
- package/dist/components/checkbox.d.ts +773 -0
- package/dist/components/checkbox.js +271 -0
- package/dist/components/checkbox.mjs +13 -0
- package/dist/components/chip.d.ts +737 -0
- package/dist/components/chip.js +611 -0
- package/dist/components/chip.mjs +11 -0
- package/dist/components/circular-progress.d.ts +430 -0
- package/dist/components/circular-progress.js +139 -0
- package/dist/components/circular-progress.mjs +7 -0
- package/dist/components/code.d.ts +165 -0
- package/dist/components/code.js +162 -0
- package/dist/components/code.mjs +11 -0
- package/dist/components/date-input.d.ts +815 -0
- package/dist/components/date-input.js +439 -0
- package/dist/components/date-input.mjs +7 -0
- package/dist/components/date-picker.d.ts +325 -0
- package/dist/components/date-picker.js +81 -0
- package/dist/components/date-picker.mjs +9 -0
- package/dist/components/divider.d.ts +52 -0
- package/dist/components/divider.js +70 -0
- package/dist/components/divider.mjs +7 -0
- package/dist/components/drip.d.ts +14 -0
- package/dist/components/drip.js +61 -0
- package/dist/components/drip.mjs +7 -0
- package/dist/components/dropdown.d.ts +417 -0
- package/dist/components/dropdown.js +424 -0
- package/dist/components/dropdown.mjs +17 -0
- package/dist/components/image.d.ts +355 -0
- package/dist/components/image.js +183 -0
- package/dist/components/image.mjs +7 -0
- package/dist/components/index.d.ts +41 -0
- package/dist/components/index.js +8804 -0
- package/dist/components/index.mjs +194 -0
- package/dist/components/input.d.ts +942 -0
- package/dist/components/input.js +893 -0
- package/dist/components/input.mjs +11 -0
- package/dist/components/kbd.d.ts +51 -0
- package/dist/components/kbd.js +82 -0
- package/dist/components/kbd.mjs +7 -0
- package/dist/components/link.d.ts +232 -0
- package/dist/components/link.js +164 -0
- package/dist/components/link.mjs +13 -0
- package/dist/components/listbox.d.ts +3 -0
- package/dist/components/listbox.js +531 -0
- package/dist/components/listbox.mjs +16 -0
- package/dist/components/menu.d.ts +512 -0
- package/dist/components/menu.js +531 -0
- package/dist/components/menu.mjs +15 -0
- package/dist/components/modal.d.ts +765 -0
- package/dist/components/modal.js +236 -0
- package/dist/components/modal.mjs +11 -0
- package/dist/components/navbar.d.ts +463 -0
- package/dist/components/navbar.js +260 -0
- package/dist/components/navbar.mjs +11 -0
- package/dist/components/pagination.d.ts +587 -0
- package/dist/components/pagination.js +532 -0
- package/dist/components/pagination.mjs +11 -0
- package/dist/components/popover.d.ts +715 -0
- package/dist/components/popover.js +303 -0
- package/dist/components/popover.mjs +11 -0
- package/dist/components/progress.d.ts +294 -0
- package/dist/components/progress.js +173 -0
- package/dist/components/progress.mjs +7 -0
- package/dist/components/radio.d.ts +708 -0
- package/dist/components/radio.js +220 -0
- package/dist/components/radio.mjs +13 -0
- package/dist/components/scroll-shadow.d.ts +82 -0
- package/dist/components/scroll-shadow.js +85 -0
- package/dist/components/scroll-shadow.mjs +7 -0
- package/dist/components/select.d.ts +901 -0
- package/dist/components/select.js +778 -0
- package/dist/components/select.mjs +11 -0
- package/dist/components/skeleton.d.ts +105 -0
- package/dist/components/skeleton.js +105 -0
- package/dist/components/skeleton.mjs +7 -0
- package/dist/components/slider.d.ts +1024 -0
- package/dist/components/slider.js +446 -0
- package/dist/components/slider.mjs +11 -0
- package/dist/components/snippet.d.ts +415 -0
- package/dist/components/snippet.js +426 -0
- package/dist/components/snippet.mjs +11 -0
- package/dist/components/spacer.d.ts +52 -0
- package/dist/components/spacer.js +70 -0
- package/dist/components/spacer.mjs +7 -0
- package/dist/components/spinner.d.ts +564 -0
- package/dist/components/spinner.js +171 -0
- package/dist/components/spinner.mjs +7 -0
- package/dist/components/table.d.ts +777 -0
- package/dist/components/table.js +286 -0
- package/dist/components/table.mjs +11 -0
- package/dist/components/tabs.d.ts +772 -0
- package/dist/components/tabs.js +522 -0
- package/dist/components/tabs.mjs +11 -0
- package/dist/components/toggle.d.ts +485 -0
- package/dist/components/toggle.js +228 -0
- package/dist/components/toggle.mjs +11 -0
- package/dist/components/user.d.ts +81 -0
- package/dist/components/user.js +78 -0
- package/dist/components/user.mjs +11 -0
- package/dist/default-layout.d.ts +8 -0
- package/dist/default-layout.js +75 -0
- package/dist/default-layout.mjs +10 -0
- package/dist/index.d.ts +52 -0
- package/dist/index.js +9585 -0
- package/dist/index.mjs +252 -0
- package/dist/plugin.d.ts +12 -0
- package/dist/plugin.js +775 -0
- package/dist/plugin.mjs +28 -0
- package/dist/types.d.ts +138 -0
- package/dist/types.js +18 -0
- package/dist/types.mjs +1 -0
- package/dist/utilities/custom.d.ts +22 -0
- package/dist/utilities/custom.js +44 -0
- package/dist/utilities/custom.mjs +6 -0
- package/dist/utilities/index.d.ts +83 -0
- package/dist/utilities/index.js +128 -0
- package/dist/utilities/index.mjs +9 -0
- package/dist/utilities/scrollbar-hide.d.ts +24 -0
- package/dist/utilities/scrollbar-hide.js +43 -0
- package/dist/utilities/scrollbar-hide.mjs +6 -0
- package/dist/utilities/transition.d.ts +58 -0
- package/dist/utilities/transition.js +83 -0
- package/dist/utilities/transition.mjs +8 -0
- package/dist/utils/classes.d.ts +34 -0
- package/dist/utils/classes.js +91 -0
- package/dist/utils/classes.mjs +20 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.js +169 -0
- package/dist/utils/index.mjs +26 -0
- package/dist/utils/object.d.ts +12 -0
- package/dist/utils/object.js +73 -0
- package/dist/utils/object.mjs +10 -0
- package/dist/utils/theme.d.ts +9 -0
- package/dist/utils/theme.js +30 -0
- package/dist/utils/theme.mjs +6 -0
- package/dist/utils/tv.d.ts +5 -0
- package/dist/utils/tv.js +54 -0
- package/dist/utils/tv.mjs +6 -0
- package/dist/utils/types.d.ts +10 -0
- package/dist/utils/types.js +18 -0
- package/dist/utils/types.mjs +1 -0
- package/dist/utils/variants.d.ts +67 -0
- package/dist/utils/variants.js +101 -0
- package/dist/utils/variants.mjs +6 -0
- package/package.json +100 -0
- package/plugin.d.ts +1 -0
- package/plugin.js +1 -0
|
@@ -0,0 +1,417 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Dropdown wrapper **Tailwind Variants** component
|
|
7
|
+
*
|
|
8
|
+
* const { base, menu } = dropdown({...})
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <div>
|
|
12
|
+
* <button className={trigger()} aria-expanded="true/false">your trigger</button>
|
|
13
|
+
* <div className={base()}>
|
|
14
|
+
* // dropdown content
|
|
15
|
+
* <span className={arrow()} data-placement="top/bottom/left/right..." /> // arrow
|
|
16
|
+
* </div>
|
|
17
|
+
* </div>
|
|
18
|
+
*/
|
|
19
|
+
declare const dropdown: tailwind_variants.TVReturnType<{} | {} | {}, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, string[], tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
20
|
+
/**
|
|
21
|
+
* DropdownItem wrapper **Tailwind Variants** component
|
|
22
|
+
*
|
|
23
|
+
* const {base, heading, indicator, trigger, leftIndicator, title, subtitle, content } = dropdownItem({...})
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* <div className={base())} data-focus-visible={boolean} data-hover={boolean}>
|
|
27
|
+
* <div className={heading())}>
|
|
28
|
+
* <button className={trigger())}>
|
|
29
|
+
* <div className={leftIndicator()}>
|
|
30
|
+
* // content
|
|
31
|
+
* </div>
|
|
32
|
+
* <div className={titleWrapper()}>
|
|
33
|
+
* <h3 className={title())}>Title</h3>
|
|
34
|
+
* <span className={subtitle())}>Subtitle</span>
|
|
35
|
+
* </div>
|
|
36
|
+
* <span className={indicator())}>Indicator</span>
|
|
37
|
+
* </button>
|
|
38
|
+
* </div>
|
|
39
|
+
* <div className={content())}>Content</div>
|
|
40
|
+
* </div>
|
|
41
|
+
*/
|
|
42
|
+
declare const dropdownItem: tailwind_variants.TVReturnType<{
|
|
43
|
+
variant: {
|
|
44
|
+
solid: {
|
|
45
|
+
base: string;
|
|
46
|
+
};
|
|
47
|
+
bordered: {
|
|
48
|
+
base: string;
|
|
49
|
+
};
|
|
50
|
+
light: {
|
|
51
|
+
base: string;
|
|
52
|
+
};
|
|
53
|
+
faded: {
|
|
54
|
+
base: string;
|
|
55
|
+
};
|
|
56
|
+
flat: {
|
|
57
|
+
base: string;
|
|
58
|
+
};
|
|
59
|
+
shadow: {
|
|
60
|
+
base: string;
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
color: {
|
|
64
|
+
default: {};
|
|
65
|
+
primary: {};
|
|
66
|
+
secondary: {};
|
|
67
|
+
success: {};
|
|
68
|
+
warning: {};
|
|
69
|
+
danger: {};
|
|
70
|
+
};
|
|
71
|
+
isDisabled: {
|
|
72
|
+
true: {
|
|
73
|
+
base: string;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
disableAnimation: {
|
|
77
|
+
true: {};
|
|
78
|
+
false: {};
|
|
79
|
+
};
|
|
80
|
+
}, {
|
|
81
|
+
base: string[];
|
|
82
|
+
wrapper: string;
|
|
83
|
+
title: string;
|
|
84
|
+
description: string[];
|
|
85
|
+
selectedIcon: string[];
|
|
86
|
+
shortcut: string[];
|
|
87
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
88
|
+
variant: {
|
|
89
|
+
solid: {
|
|
90
|
+
base: string;
|
|
91
|
+
};
|
|
92
|
+
bordered: {
|
|
93
|
+
base: string;
|
|
94
|
+
};
|
|
95
|
+
light: {
|
|
96
|
+
base: string;
|
|
97
|
+
};
|
|
98
|
+
faded: {
|
|
99
|
+
base: string;
|
|
100
|
+
};
|
|
101
|
+
flat: {
|
|
102
|
+
base: string;
|
|
103
|
+
};
|
|
104
|
+
shadow: {
|
|
105
|
+
base: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
color: {
|
|
109
|
+
default: {};
|
|
110
|
+
primary: {};
|
|
111
|
+
secondary: {};
|
|
112
|
+
success: {};
|
|
113
|
+
warning: {};
|
|
114
|
+
danger: {};
|
|
115
|
+
};
|
|
116
|
+
isDisabled: {
|
|
117
|
+
true: {
|
|
118
|
+
base: string;
|
|
119
|
+
};
|
|
120
|
+
};
|
|
121
|
+
disableAnimation: {
|
|
122
|
+
true: {};
|
|
123
|
+
false: {};
|
|
124
|
+
};
|
|
125
|
+
}, {
|
|
126
|
+
variant: {
|
|
127
|
+
solid: {
|
|
128
|
+
base: string;
|
|
129
|
+
};
|
|
130
|
+
bordered: {
|
|
131
|
+
base: string;
|
|
132
|
+
};
|
|
133
|
+
light: {
|
|
134
|
+
base: string;
|
|
135
|
+
};
|
|
136
|
+
faded: {
|
|
137
|
+
base: string;
|
|
138
|
+
};
|
|
139
|
+
flat: {
|
|
140
|
+
base: string;
|
|
141
|
+
};
|
|
142
|
+
shadow: {
|
|
143
|
+
base: string;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
color: {
|
|
147
|
+
default: {};
|
|
148
|
+
primary: {};
|
|
149
|
+
secondary: {};
|
|
150
|
+
success: {};
|
|
151
|
+
warning: {};
|
|
152
|
+
danger: {};
|
|
153
|
+
};
|
|
154
|
+
isDisabled: {
|
|
155
|
+
true: {
|
|
156
|
+
base: string;
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
disableAnimation: {
|
|
160
|
+
true: {};
|
|
161
|
+
false: {};
|
|
162
|
+
};
|
|
163
|
+
}>, {
|
|
164
|
+
variant: {
|
|
165
|
+
solid: {
|
|
166
|
+
base: string;
|
|
167
|
+
};
|
|
168
|
+
bordered: {
|
|
169
|
+
base: string;
|
|
170
|
+
};
|
|
171
|
+
light: {
|
|
172
|
+
base: string;
|
|
173
|
+
};
|
|
174
|
+
faded: {
|
|
175
|
+
base: string;
|
|
176
|
+
};
|
|
177
|
+
flat: {
|
|
178
|
+
base: string;
|
|
179
|
+
};
|
|
180
|
+
shadow: {
|
|
181
|
+
base: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
color: {
|
|
185
|
+
default: {};
|
|
186
|
+
primary: {};
|
|
187
|
+
secondary: {};
|
|
188
|
+
success: {};
|
|
189
|
+
warning: {};
|
|
190
|
+
danger: {};
|
|
191
|
+
};
|
|
192
|
+
isDisabled: {
|
|
193
|
+
true: {
|
|
194
|
+
base: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
disableAnimation: {
|
|
198
|
+
true: {};
|
|
199
|
+
false: {};
|
|
200
|
+
};
|
|
201
|
+
}, {
|
|
202
|
+
base: string[];
|
|
203
|
+
wrapper: string;
|
|
204
|
+
title: string;
|
|
205
|
+
description: string[];
|
|
206
|
+
selectedIcon: string[];
|
|
207
|
+
shortcut: string[];
|
|
208
|
+
}, tailwind_variants.TVReturnType<{
|
|
209
|
+
variant: {
|
|
210
|
+
solid: {
|
|
211
|
+
base: string;
|
|
212
|
+
};
|
|
213
|
+
bordered: {
|
|
214
|
+
base: string;
|
|
215
|
+
};
|
|
216
|
+
light: {
|
|
217
|
+
base: string;
|
|
218
|
+
};
|
|
219
|
+
faded: {
|
|
220
|
+
base: string;
|
|
221
|
+
};
|
|
222
|
+
flat: {
|
|
223
|
+
base: string;
|
|
224
|
+
};
|
|
225
|
+
shadow: {
|
|
226
|
+
base: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
color: {
|
|
230
|
+
default: {};
|
|
231
|
+
primary: {};
|
|
232
|
+
secondary: {};
|
|
233
|
+
success: {};
|
|
234
|
+
warning: {};
|
|
235
|
+
danger: {};
|
|
236
|
+
};
|
|
237
|
+
isDisabled: {
|
|
238
|
+
true: {
|
|
239
|
+
base: string;
|
|
240
|
+
};
|
|
241
|
+
};
|
|
242
|
+
disableAnimation: {
|
|
243
|
+
true: {};
|
|
244
|
+
false: {};
|
|
245
|
+
};
|
|
246
|
+
}, {
|
|
247
|
+
base: string[];
|
|
248
|
+
wrapper: string;
|
|
249
|
+
title: string;
|
|
250
|
+
description: string[];
|
|
251
|
+
selectedIcon: string[];
|
|
252
|
+
shortcut: string[];
|
|
253
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<{
|
|
254
|
+
variant: {
|
|
255
|
+
solid: {
|
|
256
|
+
base: string;
|
|
257
|
+
};
|
|
258
|
+
bordered: {
|
|
259
|
+
base: string;
|
|
260
|
+
};
|
|
261
|
+
light: {
|
|
262
|
+
base: string;
|
|
263
|
+
};
|
|
264
|
+
faded: {
|
|
265
|
+
base: string;
|
|
266
|
+
};
|
|
267
|
+
flat: {
|
|
268
|
+
base: string;
|
|
269
|
+
};
|
|
270
|
+
shadow: {
|
|
271
|
+
base: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
color: {
|
|
275
|
+
default: {};
|
|
276
|
+
primary: {};
|
|
277
|
+
secondary: {};
|
|
278
|
+
success: {};
|
|
279
|
+
warning: {};
|
|
280
|
+
danger: {};
|
|
281
|
+
};
|
|
282
|
+
isDisabled: {
|
|
283
|
+
true: {
|
|
284
|
+
base: string;
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
disableAnimation: {
|
|
288
|
+
true: {};
|
|
289
|
+
false: {};
|
|
290
|
+
};
|
|
291
|
+
}, {
|
|
292
|
+
variant: {
|
|
293
|
+
solid: {
|
|
294
|
+
base: string;
|
|
295
|
+
};
|
|
296
|
+
bordered: {
|
|
297
|
+
base: string;
|
|
298
|
+
};
|
|
299
|
+
light: {
|
|
300
|
+
base: string;
|
|
301
|
+
};
|
|
302
|
+
faded: {
|
|
303
|
+
base: string;
|
|
304
|
+
};
|
|
305
|
+
flat: {
|
|
306
|
+
base: string;
|
|
307
|
+
};
|
|
308
|
+
shadow: {
|
|
309
|
+
base: string;
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
color: {
|
|
313
|
+
default: {};
|
|
314
|
+
primary: {};
|
|
315
|
+
secondary: {};
|
|
316
|
+
success: {};
|
|
317
|
+
warning: {};
|
|
318
|
+
danger: {};
|
|
319
|
+
};
|
|
320
|
+
isDisabled: {
|
|
321
|
+
true: {
|
|
322
|
+
base: string;
|
|
323
|
+
};
|
|
324
|
+
};
|
|
325
|
+
disableAnimation: {
|
|
326
|
+
true: {};
|
|
327
|
+
false: {};
|
|
328
|
+
};
|
|
329
|
+
}>, unknown, unknown, undefined>>;
|
|
330
|
+
/**
|
|
331
|
+
* Dropdown wrapper **Tailwind Variants** component
|
|
332
|
+
*
|
|
333
|
+
* const { base, section, heading } = dropdownSection({...})
|
|
334
|
+
*
|
|
335
|
+
* @example
|
|
336
|
+
* <div className={base()}>
|
|
337
|
+
* <button className={trigger()} aria-expanded="true/false">your trigger</button>
|
|
338
|
+
* <div className={section()}>
|
|
339
|
+
* // dropdown content
|
|
340
|
+
* <span className={arrow()} data-placement="top/bottom/left/right..." /> // arrow
|
|
341
|
+
* </div>
|
|
342
|
+
* </div>
|
|
343
|
+
*/
|
|
344
|
+
declare const dropdownSection: tailwind_variants.TVReturnType<{
|
|
345
|
+
[key: string]: {
|
|
346
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
347
|
+
base?: tailwind_variants.ClassValue;
|
|
348
|
+
divider?: tailwind_variants.ClassValue;
|
|
349
|
+
group?: tailwind_variants.ClassValue;
|
|
350
|
+
heading?: tailwind_variants.ClassValue;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
} | {
|
|
354
|
+
[x: string]: {
|
|
355
|
+
[x: string]: tailwind_variants.ClassValue | {
|
|
356
|
+
base?: tailwind_variants.ClassValue;
|
|
357
|
+
divider?: tailwind_variants.ClassValue;
|
|
358
|
+
group?: tailwind_variants.ClassValue;
|
|
359
|
+
heading?: tailwind_variants.ClassValue;
|
|
360
|
+
};
|
|
361
|
+
};
|
|
362
|
+
} | {}, {
|
|
363
|
+
base: string;
|
|
364
|
+
heading: string;
|
|
365
|
+
group: string;
|
|
366
|
+
divider: string;
|
|
367
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
368
|
+
[key: string]: {
|
|
369
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
370
|
+
base?: tailwind_variants.ClassValue;
|
|
371
|
+
divider?: tailwind_variants.ClassValue;
|
|
372
|
+
group?: tailwind_variants.ClassValue;
|
|
373
|
+
heading?: tailwind_variants.ClassValue;
|
|
374
|
+
};
|
|
375
|
+
};
|
|
376
|
+
} | {}>, {
|
|
377
|
+
[key: string]: {
|
|
378
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
379
|
+
base?: tailwind_variants.ClassValue;
|
|
380
|
+
divider?: tailwind_variants.ClassValue;
|
|
381
|
+
group?: tailwind_variants.ClassValue;
|
|
382
|
+
heading?: tailwind_variants.ClassValue;
|
|
383
|
+
};
|
|
384
|
+
};
|
|
385
|
+
} | {}, {
|
|
386
|
+
base: string;
|
|
387
|
+
heading: string;
|
|
388
|
+
group: string;
|
|
389
|
+
divider: string;
|
|
390
|
+
}, tailwind_variants.TVReturnType<unknown, {
|
|
391
|
+
base: string;
|
|
392
|
+
heading: string;
|
|
393
|
+
group: string;
|
|
394
|
+
divider: string;
|
|
395
|
+
}, undefined, tailwind_variants_dist_config.TVConfig<unknown, {
|
|
396
|
+
[key: string]: {
|
|
397
|
+
[key: string]: tailwind_variants.ClassValue | {
|
|
398
|
+
base?: tailwind_variants.ClassValue;
|
|
399
|
+
divider?: tailwind_variants.ClassValue;
|
|
400
|
+
group?: tailwind_variants.ClassValue;
|
|
401
|
+
heading?: tailwind_variants.ClassValue;
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
} | {}>, unknown, unknown, undefined>>;
|
|
405
|
+
/**
|
|
406
|
+
* Dropdown Menu wrapper **Tailwind Variants** component
|
|
407
|
+
*
|
|
408
|
+
* const classNames = dropdownMenu({...})
|
|
409
|
+
|
|
410
|
+
*/
|
|
411
|
+
declare const dropdownMenu: tailwind_variants.TVReturnType<{} | {} | {}, undefined, "w-full flex flex-col gap-0.5 p-1", tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, {} | {}, undefined, tailwind_variants.TVReturnType<unknown, undefined, "w-full flex flex-col gap-0.5 p-1", tailwind_variants_dist_config.TVConfig<unknown, {} | {}>, unknown, unknown, undefined>>;
|
|
412
|
+
type DropdownSectionVariantProps = VariantProps<typeof dropdownSection>;
|
|
413
|
+
type DropdownSectionSlots = keyof ReturnType<typeof dropdownSection>;
|
|
414
|
+
type DropdownItemVariantProps = VariantProps<typeof dropdownItem>;
|
|
415
|
+
type DropdownItemSlots = keyof ReturnType<typeof dropdownItem>;
|
|
416
|
+
|
|
417
|
+
export { DropdownItemSlots, DropdownItemVariantProps, DropdownSectionSlots, DropdownSectionVariantProps, dropdown, dropdownItem, dropdownMenu, dropdownSection };
|