@deepnoid/ui 0.1.81 → 0.1.83
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 +237 -207
- package/dist/{chunk-B6XJNGQL.mjs → chunk-3IILPVRA.mjs} +3 -3
- package/dist/{chunk-KCAGZUYM.mjs → chunk-3M6VYLOU.mjs} +1 -1
- package/dist/chunk-3V4HT2K5.mjs +36 -0
- package/dist/{chunk-TKGIYUSB.mjs → chunk-4BJPJ54Q.mjs} +4 -4
- package/dist/{chunk-FRKIXGG5.mjs → chunk-4LP3QDAE.mjs} +3 -3
- package/dist/{chunk-OKO3XRJS.mjs → chunk-4ORPRDPL.mjs} +5 -5
- package/dist/{chunk-FZNRCPWF.mjs → chunk-54342D4Z.mjs} +4 -4
- package/dist/chunk-5FFTHFBX.mjs +129 -0
- package/dist/{chunk-L65ETSUY.mjs → chunk-5IKVOP4M.mjs} +7 -7
- package/dist/{chunk-JPFA7PPB.mjs → chunk-6KH2UQRM.mjs} +3 -3
- package/dist/{chunk-TUXYVNTY.mjs → chunk-6SWMJLOD.mjs} +3 -3
- package/dist/{chunk-7Q2WQJ6U.mjs → chunk-7GFYCPP3.mjs} +3 -3
- package/dist/chunk-7VOQKIIK.mjs +1 -0
- package/dist/{chunk-ORXMPU2C.mjs → chunk-7VS6YXNB.mjs} +3 -3
- package/dist/{chunk-FZJ5PLRU.mjs → chunk-AF4I7ZQS.mjs} +1 -1
- package/dist/{chunk-LNVDBHVI.mjs → chunk-AI4YKKH4.mjs} +7 -7
- package/dist/{chunk-RN76ARTS.mjs → chunk-B6YYZVT6.mjs} +6 -6
- package/dist/{chunk-XOPCRI7Z.mjs → chunk-CDXBML6O.mjs} +17 -2
- package/dist/{chunk-B7THOWOI.mjs → chunk-D3HZG3CH.mjs} +1 -1
- package/dist/chunk-EKLA6ZR4.mjs +77 -0
- package/dist/{chunk-ZYS4NSXT.mjs → chunk-FB6LBMGN.mjs} +4 -4
- package/dist/chunk-FKHKYVZH.mjs +212 -0
- package/dist/{chunk-I6MFQAQE.mjs → chunk-GAZ472ZU.mjs} +3 -3
- package/dist/{chunk-5IESFXPF.mjs → chunk-GH4EPD35.mjs} +4 -4
- package/dist/{chunk-QFIS6N5R.mjs → chunk-I3ORSDFO.mjs} +6 -6
- package/dist/{chunk-EKWUOA5B.mjs → chunk-ITWKPTSD.mjs} +1 -1
- package/dist/{chunk-TVTIX7MO.mjs → chunk-JBSV7GCL.mjs} +4 -4
- package/dist/{chunk-CC2F5HQX.mjs → chunk-LMHSWLH2.mjs} +5 -5
- package/dist/{chunk-5M7UDEMG.mjs → chunk-MVL7HJSH.mjs} +4 -4
- package/dist/chunk-NMSDSEBD.mjs +1 -0
- package/dist/{chunk-FUPY7MXT.mjs → chunk-NTNIGQGI.mjs} +1 -1
- package/dist/{chunk-7JVTWM4U.mjs → chunk-RE2WH26E.mjs} +4 -4
- package/dist/{chunk-3WBUF37A.mjs → chunk-S7Y7XUBL.mjs} +4 -4
- package/dist/{chunk-PWWPGVPS.mjs → chunk-TZHEZEJ5.mjs} +3 -3
- package/dist/{chunk-STAE4IPE.mjs → chunk-WIZDHK4O.mjs} +3 -3
- package/dist/{chunk-SKOCUCE5.mjs → chunk-XZ5DXOJQ.mjs} +4 -4
- package/dist/{chunk-R7VCFJGU.mjs → chunk-Y5QV7T6D.mjs} +1 -1
- package/dist/{chunk-PDY7UYKZ.mjs → chunk-Z6IOS3S6.mjs} +6 -6
- package/dist/components/accordion/accordion.d.mts +98 -0
- package/dist/components/accordion/accordion.d.ts +98 -0
- package/dist/components/accordion/accordion.js +433 -0
- package/dist/components/accordion/accordion.mjs +10 -0
- package/dist/components/accordion/accordionItem.d.mts +207 -0
- package/dist/components/accordion/accordionItem.d.ts +207 -0
- package/dist/components/accordion/accordionItem.js +5201 -0
- package/dist/components/accordion/accordionItem.mjs +13 -0
- package/dist/components/accordion/index.d.mts +8 -0
- package/dist/components/accordion/index.d.ts +8 -0
- package/dist/components/accordion/index.js +5277 -0
- package/dist/components/accordion/index.mjs +18 -0
- package/dist/components/avatar/avatar.js +17 -2
- package/dist/components/avatar/avatar.mjs +2 -2
- package/dist/components/avatar/index.js +17 -2
- package/dist/components/avatar/index.mjs +2 -2
- package/dist/components/backdrop/backdrop.js +17 -2
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +17 -2
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +17 -2
- package/dist/components/breadcrumb/breadcrumb.mjs +8 -8
- package/dist/components/breadcrumb/index.js +17 -2
- package/dist/components/breadcrumb/index.mjs +8 -8
- package/dist/components/button/button-group.js +17 -2
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.js +17 -2
- package/dist/components/button/button.mjs +4 -4
- package/dist/components/button/icon-button.js +17 -2
- package/dist/components/button/icon-button.mjs +4 -4
- package/dist/components/button/index.js +17 -2
- package/dist/components/button/index.mjs +9 -9
- package/dist/components/button/text-button.js +17 -2
- package/dist/components/button/text-button.mjs +3 -3
- package/dist/components/charts/areaChart.js +17 -2
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.js +17 -2
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.js +17 -2
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +17 -2
- package/dist/components/charts/index.mjs +4 -4
- package/dist/components/checkbox/checkbox.js +17 -2
- package/dist/components/checkbox/checkbox.mjs +3 -3
- package/dist/components/checkbox/index.js +17 -2
- package/dist/components/checkbox/index.mjs +3 -3
- package/dist/components/chip/chip.js +17 -2
- package/dist/components/chip/chip.mjs +3 -3
- package/dist/components/chip/index.js +17 -2
- package/dist/components/chip/index.mjs +3 -3
- package/dist/components/dateTimePicker/calendar.js +17 -2
- package/dist/components/dateTimePicker/calendar.mjs +3 -3
- package/dist/components/dateTimePicker/dateTimePicker.js +17 -2
- package/dist/components/dateTimePicker/dateTimePicker.mjs +8 -8
- package/dist/components/dateTimePicker/index.js +17 -2
- package/dist/components/dateTimePicker/index.mjs +8 -8
- package/dist/components/dateTimePicker/timePicker.js +17 -2
- package/dist/components/dateTimePicker/timePicker.mjs +6 -6
- package/dist/components/drawer/drawer.js +17 -2
- package/dist/components/drawer/drawer.mjs +3 -3
- package/dist/components/drawer/index.js +17 -2
- package/dist/components/drawer/index.mjs +3 -3
- package/dist/components/fileUpload/fileUpload.js +17 -2
- package/dist/components/fileUpload/fileUpload.mjs +9 -9
- package/dist/components/fileUpload/index.js +17 -2
- package/dist/components/fileUpload/index.mjs +9 -9
- package/dist/components/input/index.js +17 -2
- package/dist/components/input/index.mjs +3 -3
- package/dist/components/input/input.js +17 -2
- package/dist/components/input/input.mjs +3 -3
- package/dist/components/list/index.js +17 -2
- package/dist/components/list/index.mjs +7 -7
- package/dist/components/list/list.js +17 -2
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +17 -2
- package/dist/components/list/listItem.mjs +4 -4
- package/dist/components/modal/index.js +17 -2
- package/dist/components/modal/index.mjs +9 -9
- package/dist/components/modal/modal.js +17 -2
- package/dist/components/modal/modal.mjs +9 -9
- package/dist/components/pagination/index.js +17 -2
- package/dist/components/pagination/index.mjs +4 -4
- package/dist/components/pagination/pagination.js +17 -2
- package/dist/components/pagination/pagination.mjs +4 -4
- package/dist/components/progress/index.d.mts +4 -0
- package/dist/components/progress/index.d.ts +4 -0
- package/dist/components/progress/index.js +519 -0
- package/dist/components/progress/index.mjs +12 -0
- package/dist/components/progress/progress.d.mts +208 -0
- package/dist/components/progress/progress.d.ts +208 -0
- package/dist/components/progress/progress.js +513 -0
- package/dist/components/progress/progress.mjs +11 -0
- package/dist/components/radio/index.js +17 -2
- package/dist/components/radio/index.mjs +3 -3
- package/dist/components/radio/radio.js +17 -2
- package/dist/components/radio/radio.mjs +3 -3
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +17 -2
- package/dist/components/select/index.mjs +3 -3
- package/dist/components/select/select.js +17 -2
- package/dist/components/select/select.mjs +3 -3
- package/dist/components/table/definition-table.js +17 -2
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.js +17 -2
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +17 -2
- package/dist/components/table/index.mjs +9 -9
- package/dist/components/table/table-body.js +17 -2
- package/dist/components/table/table-body.mjs +8 -8
- package/dist/components/table/table-head.js +17 -2
- package/dist/components/table/table-head.mjs +8 -8
- package/dist/components/table/table.js +17 -2
- package/dist/components/table/table.mjs +8 -8
- package/dist/components/tabs/index.js +17 -2
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +17 -2
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.mjs +2 -2
- package/dist/components/textarea/textarea.mjs +2 -2
- package/dist/components/toast/index.js +17 -2
- package/dist/components/toast/index.mjs +4 -4
- package/dist/components/toast/toast.js +17 -2
- package/dist/components/toast/toast.mjs +3 -3
- package/dist/components/toast/use-toast.js +17 -2
- package/dist/components/toast/use-toast.mjs +4 -4
- package/dist/components/tooltip/index.js +17 -2
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +17 -2
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +17 -2
- package/dist/components/tree/index.mjs +2 -2
- package/dist/components/tree/tree.js +17 -2
- package/dist/components/tree/tree.mjs +2 -2
- package/dist/hooks/useIsMounted.d.mts +8 -0
- package/dist/hooks/useIsMounted.d.ts +8 -0
- package/dist/hooks/useIsMounted.js +59 -0
- package/dist/hooks/useIsMounted.mjs +8 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2459 -2024
- package/dist/index.mjs +79 -64
- package/dist/utils/tailwind-variants.js +17 -2
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/{chunk-4EIGHKUO.mjs → chunk-6Q2BXHJL.mjs} +3 -3
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
"use strict";
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
+
};
|
|
12
|
+
var __export = (target, all) => {
|
|
13
|
+
for (var name in all)
|
|
14
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
15
|
+
};
|
|
16
|
+
var __copyProps = (to, from, except, desc) => {
|
|
17
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
18
|
+
for (let key of __getOwnPropNames(from))
|
|
19
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
20
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
21
|
+
}
|
|
22
|
+
return to;
|
|
23
|
+
};
|
|
24
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
25
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
26
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
27
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
28
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
29
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
30
|
+
mod
|
|
31
|
+
));
|
|
32
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
33
|
+
|
|
34
|
+
// ../../node_modules/tailwindcss/lib/util/createPlugin.js
|
|
35
|
+
var require_createPlugin = __commonJS({
|
|
36
|
+
"../../node_modules/tailwindcss/lib/util/createPlugin.js"(exports2) {
|
|
37
|
+
"use strict";
|
|
38
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
39
|
+
value: true
|
|
40
|
+
});
|
|
41
|
+
Object.defineProperty(exports2, "default", {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function() {
|
|
44
|
+
return _default;
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
function createPlugin(plugin2, config) {
|
|
48
|
+
return {
|
|
49
|
+
handler: plugin2,
|
|
50
|
+
config
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
createPlugin.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
54
|
+
const optionsFunction = function(options) {
|
|
55
|
+
return {
|
|
56
|
+
__options: options,
|
|
57
|
+
handler: pluginFunction(options),
|
|
58
|
+
config: configFunction(options)
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
optionsFunction.__isOptionsFunction = true;
|
|
62
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
63
|
+
optionsFunction.__configFunction = configFunction;
|
|
64
|
+
return optionsFunction;
|
|
65
|
+
};
|
|
66
|
+
var _default = createPlugin;
|
|
67
|
+
}
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
// ../../node_modules/tailwindcss/lib/public/create-plugin.js
|
|
71
|
+
var require_create_plugin = __commonJS({
|
|
72
|
+
"../../node_modules/tailwindcss/lib/public/create-plugin.js"(exports2) {
|
|
73
|
+
"use strict";
|
|
74
|
+
Object.defineProperty(exports2, "__esModule", {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
77
|
+
Object.defineProperty(exports2, "default", {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function() {
|
|
80
|
+
return _default;
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
var _createPlugin = /* @__PURE__ */ _interop_require_default(require_createPlugin());
|
|
84
|
+
function _interop_require_default(obj) {
|
|
85
|
+
return obj && obj.__esModule ? obj : {
|
|
86
|
+
default: obj
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
var _default = _createPlugin.default;
|
|
90
|
+
}
|
|
91
|
+
});
|
|
92
|
+
|
|
93
|
+
// ../../node_modules/tailwindcss/plugin.js
|
|
94
|
+
var require_plugin = __commonJS({
|
|
95
|
+
"../../node_modules/tailwindcss/plugin.js"(exports2, module2) {
|
|
96
|
+
"use strict";
|
|
97
|
+
var createPlugin = require_create_plugin();
|
|
98
|
+
module2.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
// src/components/accordion/accordion.tsx
|
|
103
|
+
var accordion_exports = {};
|
|
104
|
+
__export(accordion_exports, {
|
|
105
|
+
default: () => accordion_default
|
|
106
|
+
});
|
|
107
|
+
module.exports = __toCommonJS(accordion_exports);
|
|
108
|
+
var import_react = __toESM(require("react"));
|
|
109
|
+
|
|
110
|
+
// src/utils/tailwind-variants.ts
|
|
111
|
+
var import_tailwind_variants = require("tailwind-variants");
|
|
112
|
+
|
|
113
|
+
// ../tailwind-config/src/plugin.ts
|
|
114
|
+
var import_plugin = __toESM(require_plugin());
|
|
115
|
+
|
|
116
|
+
// ../tailwind-config/src/typography/font.ts
|
|
117
|
+
var fontSize = {
|
|
118
|
+
h1: [
|
|
119
|
+
"40px",
|
|
120
|
+
{
|
|
121
|
+
fontWeight: "700"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
h2: [
|
|
125
|
+
"34px",
|
|
126
|
+
{
|
|
127
|
+
fontWeight: "700"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
130
|
+
h3: [
|
|
131
|
+
"28px",
|
|
132
|
+
{
|
|
133
|
+
fontWeight: "700"
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
h4: [
|
|
137
|
+
"24px",
|
|
138
|
+
{
|
|
139
|
+
fontWeight: "700"
|
|
140
|
+
}
|
|
141
|
+
],
|
|
142
|
+
h5: [
|
|
143
|
+
"20px",
|
|
144
|
+
{
|
|
145
|
+
fontWeight: "600"
|
|
146
|
+
}
|
|
147
|
+
],
|
|
148
|
+
sm: [
|
|
149
|
+
"12px",
|
|
150
|
+
{
|
|
151
|
+
lineHeight: "18px",
|
|
152
|
+
fontWeight: "400"
|
|
153
|
+
}
|
|
154
|
+
],
|
|
155
|
+
md: [
|
|
156
|
+
"14px",
|
|
157
|
+
{
|
|
158
|
+
lineHeight: "21px",
|
|
159
|
+
fontWeight: "400"
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
lg: [
|
|
163
|
+
"16px",
|
|
164
|
+
{
|
|
165
|
+
lineHeight: "24px",
|
|
166
|
+
fontWeight: "400"
|
|
167
|
+
}
|
|
168
|
+
],
|
|
169
|
+
xl: [
|
|
170
|
+
"18px",
|
|
171
|
+
{
|
|
172
|
+
lineHeight: "27px",
|
|
173
|
+
fontWeight: "400"
|
|
174
|
+
}
|
|
175
|
+
]
|
|
176
|
+
};
|
|
177
|
+
|
|
178
|
+
// ../tailwind-config/src/animation/bar.ts
|
|
179
|
+
var barAnimation = {
|
|
180
|
+
"indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
|
|
181
|
+
};
|
|
182
|
+
var barKeyframe = {
|
|
183
|
+
"indeterminate-bar": {
|
|
184
|
+
"0%": {
|
|
185
|
+
transform: "translateX(-50%) scaleX(0.2)"
|
|
186
|
+
},
|
|
187
|
+
"100%": {
|
|
188
|
+
transform: "translateX(100%) scaleX(1)"
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
};
|
|
192
|
+
|
|
193
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
194
|
+
var sliceAnimation = {
|
|
195
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
196
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
197
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
198
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
199
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
200
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
201
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
202
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
203
|
+
};
|
|
204
|
+
var sliceKeyframe = {
|
|
205
|
+
slideInFromTop: {
|
|
206
|
+
"0%": {
|
|
207
|
+
transform: "translateY(-10px)",
|
|
208
|
+
opacity: "0"
|
|
209
|
+
},
|
|
210
|
+
"100%": {
|
|
211
|
+
transform: "translateY(0)",
|
|
212
|
+
opacity: "1"
|
|
213
|
+
}
|
|
214
|
+
},
|
|
215
|
+
slideInFromBottom: {
|
|
216
|
+
"0%": {
|
|
217
|
+
transform: "translateY(10px)",
|
|
218
|
+
opacity: "0"
|
|
219
|
+
},
|
|
220
|
+
"100%": {
|
|
221
|
+
transform: "translateY(0)",
|
|
222
|
+
opacity: "1"
|
|
223
|
+
}
|
|
224
|
+
},
|
|
225
|
+
slideInFromLeft: {
|
|
226
|
+
"0%": {
|
|
227
|
+
transform: "translateX(-10px)",
|
|
228
|
+
opacity: "0"
|
|
229
|
+
},
|
|
230
|
+
"100%": {
|
|
231
|
+
transform: "translateX(0)",
|
|
232
|
+
opacity: "1"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
slideInFromRight: {
|
|
236
|
+
"0%": {
|
|
237
|
+
transform: "translateX(10px)",
|
|
238
|
+
opacity: "0"
|
|
239
|
+
},
|
|
240
|
+
"100%": {
|
|
241
|
+
transform: "translateX(0)",
|
|
242
|
+
opacity: "1"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
slideOutToTop: {
|
|
246
|
+
"0%": {
|
|
247
|
+
transform: "translateY(0)",
|
|
248
|
+
opacity: "1"
|
|
249
|
+
},
|
|
250
|
+
"100%": {
|
|
251
|
+
transform: "translateY(-10px)",
|
|
252
|
+
opacity: "0"
|
|
253
|
+
}
|
|
254
|
+
},
|
|
255
|
+
slideOutToBottom: {
|
|
256
|
+
"0%": {
|
|
257
|
+
transform: "translateY(0)",
|
|
258
|
+
opacity: "1"
|
|
259
|
+
},
|
|
260
|
+
"100%": {
|
|
261
|
+
transform: "translateY(10px)",
|
|
262
|
+
opacity: "0"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
slideOutToLeft: {
|
|
266
|
+
"0%": {
|
|
267
|
+
transform: "translateX(0)",
|
|
268
|
+
opacity: "1"
|
|
269
|
+
},
|
|
270
|
+
"100%": {
|
|
271
|
+
transform: "translateX(-10px)",
|
|
272
|
+
opacity: "0"
|
|
273
|
+
}
|
|
274
|
+
},
|
|
275
|
+
slideOutToRight: {
|
|
276
|
+
"0%": {
|
|
277
|
+
transform: "translateX(0)",
|
|
278
|
+
opacity: "1"
|
|
279
|
+
},
|
|
280
|
+
"100%": {
|
|
281
|
+
transform: "translateX(10px)",
|
|
282
|
+
opacity: "0"
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
};
|
|
286
|
+
|
|
287
|
+
// ../tailwind-config/src/animation/index.ts
|
|
288
|
+
var animation = { ...sliceAnimation, ...barAnimation };
|
|
289
|
+
var keyframes = { ...sliceKeyframe, ...barKeyframe };
|
|
290
|
+
|
|
291
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
292
|
+
var boxShadow = {
|
|
293
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
294
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
295
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
296
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
297
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
298
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
299
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
300
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
301
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
302
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
303
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
304
|
+
"inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
|
|
305
|
+
"inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
|
|
306
|
+
"inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
|
|
307
|
+
"inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
|
|
308
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
|
|
309
|
+
"drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
|
|
310
|
+
"drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
|
|
311
|
+
"drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
|
|
312
|
+
"drop-xl": "0 10px 30px 0 rgba(0, 0, 0, 0.1)"
|
|
313
|
+
};
|
|
314
|
+
|
|
315
|
+
// ../tailwind-config/src/border/radius.ts
|
|
316
|
+
var borderRadius = {
|
|
317
|
+
sm: "4px",
|
|
318
|
+
md: "6px",
|
|
319
|
+
lg: "8px",
|
|
320
|
+
xl: "10px",
|
|
321
|
+
none: "0",
|
|
322
|
+
full: "9999px"
|
|
323
|
+
};
|
|
324
|
+
|
|
325
|
+
// ../tailwind-config/src/space/gap.ts
|
|
326
|
+
var gap = {
|
|
327
|
+
sm: "4px",
|
|
328
|
+
md: "6px",
|
|
329
|
+
lg: "8px",
|
|
330
|
+
xl: "10px"
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
// src/utils/tailwind-variants.ts
|
|
334
|
+
function typedKeys(obj) {
|
|
335
|
+
return Object.keys(obj);
|
|
336
|
+
}
|
|
337
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
338
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
339
|
+
twMergeConfig: {
|
|
340
|
+
classGroups: {
|
|
341
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
342
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
343
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
344
|
+
padding: [{ p: [...COMMON_SIZE] }],
|
|
345
|
+
gap: [{ gap: [...typedKeys(gap)] }]
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
|
|
350
|
+
// src/utils/props.ts
|
|
351
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
352
|
+
if (!variantKeys) {
|
|
353
|
+
return [props, {}];
|
|
354
|
+
}
|
|
355
|
+
const picked = variantKeys.reduce((acc, key) => {
|
|
356
|
+
if (key in props) {
|
|
357
|
+
return { ...acc, [key]: props[key] };
|
|
358
|
+
} else {
|
|
359
|
+
return acc;
|
|
360
|
+
}
|
|
361
|
+
}, {});
|
|
362
|
+
if (removeVariantProps) {
|
|
363
|
+
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
364
|
+
return [omitted, picked];
|
|
365
|
+
} else {
|
|
366
|
+
return [props, picked];
|
|
367
|
+
}
|
|
368
|
+
};
|
|
369
|
+
|
|
370
|
+
// src/components/accordion/accordion.tsx
|
|
371
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
372
|
+
var Accordion = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
373
|
+
const [props, variantProps] = mapPropsVariants(originalProps, accordion.variantKeys);
|
|
374
|
+
const { children, classNames, selectionMode = "single", selectionIndex } = props;
|
|
375
|
+
const slots = (0, import_react.useMemo)(() => accordion({ ...variantProps }), [...Object.values(variantProps)]);
|
|
376
|
+
const [selections, setSelections] = (0, import_react.useState)(typeof selectionIndex === "number" ? [selectionIndex] : []);
|
|
377
|
+
const toggleItem = (index) => {
|
|
378
|
+
setSelections((prevIndices) => {
|
|
379
|
+
if (selectionMode === "single") {
|
|
380
|
+
return prevIndices.includes(index) ? [] : [index];
|
|
381
|
+
} else {
|
|
382
|
+
return prevIndices.includes(index) ? prevIndices.filter((i) => i !== index) : [...prevIndices, index];
|
|
383
|
+
}
|
|
384
|
+
});
|
|
385
|
+
};
|
|
386
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, className: slots.base({ class: classNames == null ? void 0 : classNames.base }), children: import_react.default.Children.map(children, (child, index) => {
|
|
387
|
+
return import_react.default.cloneElement(child, {
|
|
388
|
+
...variantProps,
|
|
389
|
+
...child.props,
|
|
390
|
+
isInGroup: true,
|
|
391
|
+
isOpen: selections.includes(index),
|
|
392
|
+
onToggle: () => toggleItem(index)
|
|
393
|
+
});
|
|
394
|
+
}) });
|
|
395
|
+
});
|
|
396
|
+
Accordion.displayName = "Accordion";
|
|
397
|
+
var accordion_default = Accordion;
|
|
398
|
+
var accordion = tv({
|
|
399
|
+
slots: {
|
|
400
|
+
base: ["flex", "flex-col"]
|
|
401
|
+
},
|
|
402
|
+
variants: {
|
|
403
|
+
variant: {
|
|
404
|
+
outline: {
|
|
405
|
+
base: "gap-[20px]"
|
|
406
|
+
},
|
|
407
|
+
underline: {
|
|
408
|
+
base: "gap-[20px]"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
size: {
|
|
412
|
+
sm: {},
|
|
413
|
+
md: {},
|
|
414
|
+
lg: {},
|
|
415
|
+
xl: {}
|
|
416
|
+
},
|
|
417
|
+
color: {
|
|
418
|
+
primary: {},
|
|
419
|
+
secondary: {},
|
|
420
|
+
neutral: {}
|
|
421
|
+
},
|
|
422
|
+
disableAnimation: {
|
|
423
|
+
true: {},
|
|
424
|
+
false: {}
|
|
425
|
+
}
|
|
426
|
+
},
|
|
427
|
+
defaultVariants: {
|
|
428
|
+
variant: "outline",
|
|
429
|
+
color: "primary",
|
|
430
|
+
size: "md",
|
|
431
|
+
disableAnimation: false
|
|
432
|
+
}
|
|
433
|
+
});
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import * as tailwind_variants from 'tailwind-variants';
|
|
2
|
+
import { VariantProps } from 'tailwind-variants';
|
|
3
|
+
import * as react from 'react';
|
|
4
|
+
import { ReactNode } from 'react';
|
|
5
|
+
import { SlotsToClasses } from '../../utils/types.mjs';
|
|
6
|
+
import { IconName } from '../icon/Icon.mjs';
|
|
7
|
+
import 'react/jsx-runtime';
|
|
8
|
+
import '../icon/template.mjs';
|
|
9
|
+
|
|
10
|
+
interface Props {
|
|
11
|
+
title?: string;
|
|
12
|
+
children?: ReactNode;
|
|
13
|
+
startIconName?: IconName | null;
|
|
14
|
+
endIconName?: IconName | null;
|
|
15
|
+
classNames?: SlotsToClasses<AccordionItemSlots>;
|
|
16
|
+
isOpen?: boolean;
|
|
17
|
+
onToggle?: () => void;
|
|
18
|
+
}
|
|
19
|
+
type AccordionItemProps = Props & AccordionItemVariantProps;
|
|
20
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props & AccordionItemVariantProps & react.RefAttributes<HTMLDivElement>>;
|
|
21
|
+
|
|
22
|
+
declare const accordionItem: tailwind_variants.TVReturnType<{
|
|
23
|
+
variant: {
|
|
24
|
+
outline: {
|
|
25
|
+
header: never[];
|
|
26
|
+
};
|
|
27
|
+
underline: {
|
|
28
|
+
base: string[];
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
size: {
|
|
32
|
+
sm: {
|
|
33
|
+
base: string[];
|
|
34
|
+
header: string;
|
|
35
|
+
content: string;
|
|
36
|
+
};
|
|
37
|
+
md: {
|
|
38
|
+
base: string[];
|
|
39
|
+
header: string;
|
|
40
|
+
content: string;
|
|
41
|
+
};
|
|
42
|
+
lg: {
|
|
43
|
+
base: string[];
|
|
44
|
+
header: string;
|
|
45
|
+
content: string;
|
|
46
|
+
};
|
|
47
|
+
xl: {
|
|
48
|
+
base: string[];
|
|
49
|
+
header: string;
|
|
50
|
+
content: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
color: {
|
|
54
|
+
primary: {
|
|
55
|
+
content: string[];
|
|
56
|
+
icon: string[];
|
|
57
|
+
};
|
|
58
|
+
secondary: {
|
|
59
|
+
content: string[];
|
|
60
|
+
icon: string[];
|
|
61
|
+
};
|
|
62
|
+
neutral: {
|
|
63
|
+
content: string[];
|
|
64
|
+
icon: string[];
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
isInGroup: {
|
|
68
|
+
true: string;
|
|
69
|
+
};
|
|
70
|
+
disableAnimation: {
|
|
71
|
+
true: {
|
|
72
|
+
content: string[];
|
|
73
|
+
};
|
|
74
|
+
false: {};
|
|
75
|
+
};
|
|
76
|
+
}, {
|
|
77
|
+
base: string[];
|
|
78
|
+
header: string[];
|
|
79
|
+
headerTitle: string[];
|
|
80
|
+
content: string[];
|
|
81
|
+
icon: never[];
|
|
82
|
+
}, undefined, {
|
|
83
|
+
variant: {
|
|
84
|
+
outline: {
|
|
85
|
+
header: never[];
|
|
86
|
+
};
|
|
87
|
+
underline: {
|
|
88
|
+
base: string[];
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
size: {
|
|
92
|
+
sm: {
|
|
93
|
+
base: string[];
|
|
94
|
+
header: string;
|
|
95
|
+
content: string;
|
|
96
|
+
};
|
|
97
|
+
md: {
|
|
98
|
+
base: string[];
|
|
99
|
+
header: string;
|
|
100
|
+
content: string;
|
|
101
|
+
};
|
|
102
|
+
lg: {
|
|
103
|
+
base: string[];
|
|
104
|
+
header: string;
|
|
105
|
+
content: string;
|
|
106
|
+
};
|
|
107
|
+
xl: {
|
|
108
|
+
base: string[];
|
|
109
|
+
header: string;
|
|
110
|
+
content: string;
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
color: {
|
|
114
|
+
primary: {
|
|
115
|
+
content: string[];
|
|
116
|
+
icon: string[];
|
|
117
|
+
};
|
|
118
|
+
secondary: {
|
|
119
|
+
content: string[];
|
|
120
|
+
icon: string[];
|
|
121
|
+
};
|
|
122
|
+
neutral: {
|
|
123
|
+
content: string[];
|
|
124
|
+
icon: string[];
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
isInGroup: {
|
|
128
|
+
true: string;
|
|
129
|
+
};
|
|
130
|
+
disableAnimation: {
|
|
131
|
+
true: {
|
|
132
|
+
content: string[];
|
|
133
|
+
};
|
|
134
|
+
false: {};
|
|
135
|
+
};
|
|
136
|
+
}, {
|
|
137
|
+
base: string[];
|
|
138
|
+
header: string[];
|
|
139
|
+
headerTitle: string[];
|
|
140
|
+
content: string[];
|
|
141
|
+
icon: never[];
|
|
142
|
+
}, tailwind_variants.TVReturnType<{
|
|
143
|
+
variant: {
|
|
144
|
+
outline: {
|
|
145
|
+
header: never[];
|
|
146
|
+
};
|
|
147
|
+
underline: {
|
|
148
|
+
base: string[];
|
|
149
|
+
};
|
|
150
|
+
};
|
|
151
|
+
size: {
|
|
152
|
+
sm: {
|
|
153
|
+
base: string[];
|
|
154
|
+
header: string;
|
|
155
|
+
content: string;
|
|
156
|
+
};
|
|
157
|
+
md: {
|
|
158
|
+
base: string[];
|
|
159
|
+
header: string;
|
|
160
|
+
content: string;
|
|
161
|
+
};
|
|
162
|
+
lg: {
|
|
163
|
+
base: string[];
|
|
164
|
+
header: string;
|
|
165
|
+
content: string;
|
|
166
|
+
};
|
|
167
|
+
xl: {
|
|
168
|
+
base: string[];
|
|
169
|
+
header: string;
|
|
170
|
+
content: string;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
color: {
|
|
174
|
+
primary: {
|
|
175
|
+
content: string[];
|
|
176
|
+
icon: string[];
|
|
177
|
+
};
|
|
178
|
+
secondary: {
|
|
179
|
+
content: string[];
|
|
180
|
+
icon: string[];
|
|
181
|
+
};
|
|
182
|
+
neutral: {
|
|
183
|
+
content: string[];
|
|
184
|
+
icon: string[];
|
|
185
|
+
};
|
|
186
|
+
};
|
|
187
|
+
isInGroup: {
|
|
188
|
+
true: string;
|
|
189
|
+
};
|
|
190
|
+
disableAnimation: {
|
|
191
|
+
true: {
|
|
192
|
+
content: string[];
|
|
193
|
+
};
|
|
194
|
+
false: {};
|
|
195
|
+
};
|
|
196
|
+
}, {
|
|
197
|
+
base: string[];
|
|
198
|
+
header: string[];
|
|
199
|
+
headerTitle: string[];
|
|
200
|
+
content: string[];
|
|
201
|
+
icon: never[];
|
|
202
|
+
}, undefined, unknown, unknown, undefined>>;
|
|
203
|
+
type AccordionItemVariantProps = VariantProps<typeof accordionItem>;
|
|
204
|
+
type AccordionItemSlots = keyof ReturnType<typeof accordionItem>;
|
|
205
|
+
type AccordionItemReturnType = ReturnType<typeof accordionItem>;
|
|
206
|
+
|
|
207
|
+
export { type AccordionItemProps, type AccordionItemReturnType, type AccordionItemSlots, type AccordionItemVariantProps, type Props, AccordionItem as default };
|