@deepnoid/ui 0.1.223 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +266 -251
- package/dist/{chunk-NTNF5T5I.mjs → chunk-23KGTXH2.mjs} +1 -1
- package/dist/{chunk-SX3JDFTH.mjs → chunk-2K3HZMC6.mjs} +9 -9
- package/dist/{chunk-ZFC5O2V3.mjs → chunk-3JKORA4G.mjs} +1 -1
- package/dist/{chunk-HFOHFBZH.mjs → chunk-3N442F6I.mjs} +2 -2
- package/dist/{chunk-WA7CSZQ3.mjs → chunk-3QZPVRM5.mjs} +1 -1
- package/dist/{chunk-BH3I4LIZ.mjs → chunk-4V5D237Z.mjs} +1 -1
- package/dist/chunk-63JRWMWN.mjs +215 -0
- package/dist/{chunk-GDHLN463.mjs → chunk-6CNPC722.mjs} +2 -2
- package/dist/{chunk-4IEHQI5B.mjs → chunk-7JCCPTBU.mjs} +3 -3
- package/dist/chunk-A6UUVHC6.mjs +38 -0
- package/dist/{chunk-P5L4YI54.mjs → chunk-AOU4QX7H.mjs} +106 -40
- package/dist/{chunk-U7SYKG2C.mjs → chunk-BBCJTXGU.mjs} +1 -1
- package/dist/{chunk-4S4AAZFC.mjs → chunk-CBFUVFGI.mjs} +4 -4
- package/dist/{chunk-AGE57VDD.mjs → chunk-CBIV6KFQ.mjs} +22 -25
- package/dist/{chunk-KWHCUAFU.mjs → chunk-CGJBY53Q.mjs} +3 -3
- package/dist/{chunk-XZYQFBCT.mjs → chunk-DI7QXTYZ.mjs} +1 -1
- package/dist/{chunk-U4DJHAM5.mjs → chunk-DPWUIAVC.mjs} +413 -149
- package/dist/chunk-E4VJDQD5.mjs +142 -0
- package/dist/{chunk-TE5JU3WA.mjs → chunk-EAWNUQDB.mjs} +90 -133
- package/dist/{chunk-OXJX5G3O.mjs → chunk-EIVSXVP5.mjs} +2 -2
- package/dist/{chunk-JGG3ZUNG.mjs → chunk-GSOTTSR4.mjs} +1 -1
- package/dist/{chunk-NGRGAY42.mjs → chunk-HKF5BNPX.mjs} +1 -1
- package/dist/{chunk-2URJGQFC.mjs → chunk-JUKILR6X.mjs} +2 -2
- package/dist/{chunk-DW3BX4M2.mjs → chunk-KPOXK7NN.mjs} +1 -1
- package/dist/{chunk-5KC3IFNR.mjs → chunk-LJSGQO4B.mjs} +1 -1
- package/dist/{chunk-LH6Z7SDZ.mjs → chunk-M7V5YMM2.mjs} +1 -1
- package/dist/{chunk-44FMPRHV.mjs → chunk-MAGZDGUW.mjs} +67 -38
- package/dist/chunk-MV2WCFK7.mjs +1 -0
- package/dist/{chunk-U52FBRJ3.mjs → chunk-NJWXYTBQ.mjs} +1 -1
- package/dist/{chunk-3DCUMRYP.mjs → chunk-NPQBJO6G.mjs} +11 -39
- package/dist/chunk-OK34FKBQ.mjs +224 -0
- package/dist/{chunk-OC5C42CB.mjs → chunk-OPGGL4CG.mjs} +3 -3
- package/dist/{chunk-R2XKPG4K.mjs → chunk-OPSMMRA2.mjs} +1 -1
- package/dist/{chunk-4X35QQTI.mjs → chunk-P4GNXDMO.mjs} +1 -1
- package/dist/{chunk-MTT24BLX.mjs → chunk-PCWANNZ4.mjs} +3 -3
- package/dist/{chunk-V2YH54JQ.mjs → chunk-PXUYPS6M.mjs} +12 -2
- package/dist/chunk-RFHWRBAB.mjs +105 -0
- package/dist/{chunk-EJ4GDC6K.mjs → chunk-S2T4GHJA.mjs} +27 -27
- package/dist/{chunk-5VTYO3RF.mjs → chunk-TBI5O3OL.mjs} +1 -1
- package/dist/{chunk-FZYZSMSS.mjs → chunk-TBRF36RK.mjs} +1 -1
- package/dist/{chunk-Q3KBMVJS.mjs → chunk-TEERNFIT.mjs} +77 -46
- package/dist/{chunk-RH3AHG52.mjs → chunk-V5XX3CGL.mjs} +1 -1
- package/dist/{chunk-6WD32ERF.mjs → chunk-VO2ZIGIK.mjs} +1 -1
- package/dist/{chunk-H6ZQDMYU.mjs → chunk-VOOEH6OJ.mjs} +24 -38
- package/dist/{chunk-ACZ3DQVT.mjs → chunk-VUO5J2OK.mjs} +16 -15
- package/dist/{chunk-RY5VVXQ4.mjs → chunk-WYTAGN2P.mjs} +1 -1
- package/dist/{chunk-NDNIAALB.mjs → chunk-YBDQSEPV.mjs} +17 -18
- package/dist/chunk-Z4NO7SMY.mjs +460 -0
- package/dist/components/accordion/accordion.js +366 -4
- package/dist/components/accordion/accordion.mjs +2 -2
- package/dist/components/accordion/accordionItem.js +366 -4
- package/dist/components/accordion/accordionItem.mjs +2 -2
- package/dist/components/accordion/index.js +366 -4
- package/dist/components/accordion/index.mjs +3 -3
- package/dist/components/avatar/avatar.js +472 -44
- package/dist/components/avatar/avatar.mjs +3 -3
- package/dist/components/avatar/index.js +472 -44
- package/dist/components/avatar/index.mjs +3 -3
- package/dist/components/backdrop/backdrop.js +366 -4
- package/dist/components/backdrop/backdrop.mjs +2 -2
- package/dist/components/backdrop/index.js +366 -4
- package/dist/components/backdrop/index.mjs +2 -2
- package/dist/components/breadcrumb/breadcrumb.js +951 -74
- package/dist/components/breadcrumb/breadcrumb.mjs +10 -9
- package/dist/components/breadcrumb/index.js +951 -74
- package/dist/components/breadcrumb/index.mjs +10 -9
- package/dist/components/button/button-group.js +366 -4
- package/dist/components/button/button-group.mjs +2 -2
- package/dist/components/button/button.d.mts +82 -119
- package/dist/components/button/button.d.ts +82 -119
- package/dist/components/button/button.js +966 -355
- package/dist/components/button/button.mjs +6 -5
- package/dist/components/button/button.style.d.mts +89 -0
- package/dist/components/button/button.style.d.ts +89 -0
- package/dist/components/button/button.style.js +1172 -0
- package/dist/components/button/button.style.mjs +9 -0
- package/dist/components/button/icon-button.d.mts +45 -46
- package/dist/components/button/icon-button.d.ts +45 -46
- package/dist/components/button/icon-button.js +1125 -527
- package/dist/components/button/icon-button.mjs +6 -5
- package/dist/components/button/index.js +1154 -830
- package/dist/components/button/index.mjs +9 -8
- package/dist/components/button/text-button.d.mts +59 -39
- package/dist/components/button/text-button.d.ts +59 -39
- package/dist/components/button/text-button.js +831 -21
- package/dist/components/button/text-button.mjs +3 -2
- package/dist/components/charts/areaChart.js +366 -4
- package/dist/components/charts/areaChart.mjs +2 -2
- package/dist/components/charts/barChart.js +366 -4
- package/dist/components/charts/barChart.mjs +2 -2
- package/dist/components/charts/circularProgress.js +366 -4
- package/dist/components/charts/circularProgress.mjs +2 -2
- package/dist/components/charts/index.js +366 -4
- package/dist/components/charts/index.mjs +6 -6
- package/dist/components/charts/radarChart.js +366 -4
- package/dist/components/charts/radarChart.mjs +2 -2
- package/dist/components/charts/simpleBarChart.js +366 -4
- package/dist/components/charts/simpleBarChart.mjs +2 -2
- package/dist/components/checkbox/checkbox.js +376 -42
- package/dist/components/checkbox/checkbox.mjs +2 -2
- package/dist/components/checkbox/index.js +376 -42
- package/dist/components/checkbox/index.mjs +2 -2
- package/dist/components/chip/chip.d.mts +32 -0
- package/dist/components/chip/chip.d.ts +32 -0
- package/dist/components/chip/chip.js +496 -57
- package/dist/components/chip/chip.mjs +4 -4
- package/dist/components/chip/index.js +496 -57
- package/dist/components/chip/index.mjs +4 -4
- package/dist/components/drawer/drawer.js +366 -4
- package/dist/components/drawer/drawer.mjs +2 -2
- package/dist/components/drawer/index.js +366 -4
- package/dist/components/drawer/index.mjs +2 -2
- package/dist/components/fileUpload/fileUpload.js +1014 -402
- package/dist/components/fileUpload/fileUpload.mjs +12 -11
- package/dist/components/fileUpload/index.js +1014 -402
- package/dist/components/fileUpload/index.mjs +12 -11
- package/dist/components/icon/Icon.d.mts +23 -10
- package/dist/components/icon/Icon.d.ts +23 -10
- package/dist/components/icon/Icon.js +120 -53
- package/dist/components/icon/Icon.mjs +2 -2
- package/dist/components/icon/index.js +120 -53
- package/dist/components/icon/index.mjs +2 -2
- package/dist/components/icon/template.d.mts +5 -2
- package/dist/components/icon/template.d.ts +5 -2
- package/dist/components/icon/template.js +106 -40
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +511 -82
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +511 -82
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/list/index.js +486 -57
- package/dist/components/list/index.mjs +6 -6
- package/dist/components/list/list.js +366 -4
- package/dist/components/list/list.mjs +2 -2
- package/dist/components/list/listItem.js +486 -57
- package/dist/components/list/listItem.mjs +5 -5
- package/dist/components/modal/GlobalModalProvider.d.mts +2 -0
- package/dist/components/modal/GlobalModalProvider.d.ts +2 -0
- package/dist/components/modal/GlobalModalProvider.js +1028 -416
- package/dist/components/modal/GlobalModalProvider.mjs +12 -11
- package/dist/components/modal/index.d.mts +2 -0
- package/dist/components/modal/index.d.ts +2 -0
- package/dist/components/modal/index.js +1028 -416
- package/dist/components/modal/index.mjs +13 -12
- package/dist/components/modal/modal.d.mts +101 -29
- package/dist/components/modal/modal.d.ts +101 -29
- package/dist/components/modal/modal.js +1028 -416
- package/dist/components/modal/modal.mjs +11 -10
- package/dist/components/modal/useGlobalModal.d.mts +2 -0
- package/dist/components/modal/useGlobalModal.d.ts +2 -0
- package/dist/components/modal/useGlobalModal.mjs +13 -12
- package/dist/components/pagination/index.js +598 -212
- package/dist/components/pagination/index.mjs +5 -5
- package/dist/components/pagination/pagination.js +598 -212
- package/dist/components/pagination/pagination.mjs +5 -5
- package/dist/components/picker/datePicker.js +1029 -705
- package/dist/components/picker/datePicker.mjs +12 -11
- package/dist/components/picker/day.js +366 -4
- package/dist/components/picker/day.mjs +2 -2
- package/dist/components/picker/index.js +1027 -703
- package/dist/components/picker/index.mjs +15 -14
- package/dist/components/picker/timePicker/Panel.js +831 -21
- package/dist/components/picker/timePicker/Panel.mjs +10 -9
- package/dist/components/picker/timePicker/index.js +976 -99
- package/dist/components/picker/timePicker/index.mjs +12 -11
- package/dist/components/progress/index.js +381 -18
- package/dist/components/progress/index.mjs +2 -2
- package/dist/components/progress/progress.d.mts +21 -18
- package/dist/components/progress/progress.d.ts +21 -18
- package/dist/components/progress/progress.js +381 -18
- package/dist/components/progress/progress.mjs +2 -2
- package/dist/components/radio/index.js +389 -41
- package/dist/components/radio/index.mjs +2 -2
- package/dist/components/radio/radio.d.mts +33 -48
- package/dist/components/radio/radio.d.ts +33 -48
- package/dist/components/radio/radio.js +389 -41
- package/dist/components/radio/radio.mjs +2 -2
- package/dist/components/ripple/index.mjs +3 -3
- package/dist/components/select/index.js +819 -221
- package/dist/components/select/index.mjs +10 -9
- package/dist/components/select/select.js +819 -221
- package/dist/components/select/select.mjs +10 -9
- package/dist/components/slider/index.d.mts +4 -0
- package/dist/components/slider/index.d.ts +4 -0
- package/dist/components/slider/index.js +955 -0
- package/dist/components/slider/index.mjs +11 -0
- package/dist/components/slider/slider.d.mts +158 -0
- package/dist/components/slider/slider.d.ts +158 -0
- package/dist/components/slider/slider.js +949 -0
- package/dist/components/slider/slider.mjs +10 -0
- package/dist/components/starRating/index.js +486 -57
- package/dist/components/starRating/index.mjs +4 -4
- package/dist/components/starRating/starRating.js +486 -57
- package/dist/components/starRating/starRating.mjs +4 -4
- package/dist/components/switch/index.js +22 -25
- package/dist/components/switch/index.mjs +1 -1
- package/dist/components/switch/switch.d.mts +0 -18
- package/dist/components/switch/switch.d.ts +0 -18
- package/dist/components/switch/switch.js +22 -25
- package/dist/components/switch/switch.mjs +1 -1
- package/dist/components/table/definition-table.js +366 -4
- package/dist/components/table/definition-table.mjs +2 -2
- package/dist/components/table/form-table.js +366 -4
- package/dist/components/table/form-table.mjs +1 -1
- package/dist/components/table/index.js +679 -291
- package/dist/components/table/index.mjs +10 -10
- package/dist/components/table/table-body.js +679 -291
- package/dist/components/table/table-body.mjs +7 -7
- package/dist/components/table/table-head.js +679 -291
- package/dist/components/table/table-head.mjs +7 -7
- package/dist/components/table/table.d.mts +8 -29
- package/dist/components/table/table.d.ts +8 -29
- package/dist/components/table/table.js +679 -291
- package/dist/components/table/table.mjs +7 -7
- package/dist/components/tabs/index.js +366 -4
- package/dist/components/tabs/index.mjs +2 -2
- package/dist/components/tabs/tabs.js +366 -4
- package/dist/components/tabs/tabs.mjs +2 -2
- package/dist/components/textarea/index.js +67 -38
- package/dist/components/textarea/index.mjs +1 -1
- package/dist/components/textarea/textarea.d.mts +21 -0
- package/dist/components/textarea/textarea.d.ts +21 -0
- package/dist/components/textarea/textarea.js +67 -38
- package/dist/components/textarea/textarea.mjs +1 -1
- package/dist/components/timePicker/calendar.js +486 -57
- package/dist/components/timePicker/calendar.mjs +3 -3
- package/dist/components/toast/index.js +486 -57
- package/dist/components/toast/index.mjs +5 -5
- package/dist/components/toast/toast.js +486 -57
- package/dist/components/toast/toast.mjs +4 -4
- package/dist/components/toast/use-toast.js +486 -57
- package/dist/components/toast/use-toast.mjs +5 -5
- package/dist/components/tooltip/index.js +366 -4
- package/dist/components/tooltip/index.mjs +2 -2
- package/dist/components/tooltip/tooltip.js +366 -4
- package/dist/components/tooltip/tooltip.mjs +2 -2
- package/dist/components/tree/index.js +486 -57
- package/dist/components/tree/index.mjs +4 -4
- package/dist/components/tree/tree.js +486 -57
- package/dist/components/tree/tree.mjs +4 -4
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1705 -1281
- package/dist/index.mjs +76 -70
- package/dist/utils/tailwind-variants.js +366 -4
- package/dist/utils/tailwind-variants.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-6AID2NLT.mjs +0 -37
- package/dist/chunk-BBRO35V3.mjs +0 -385
- package/dist/chunk-EVJ46M3U.mjs +0 -141
- package/dist/chunk-SKX5QPUD.mjs +0 -482
|
@@ -0,0 +1,949 @@
|
|
|
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/slider/slider.tsx
|
|
103
|
+
var slider_exports = {};
|
|
104
|
+
__export(slider_exports, {
|
|
105
|
+
default: () => slider_default
|
|
106
|
+
});
|
|
107
|
+
module.exports = __toCommonJS(slider_exports);
|
|
108
|
+
var import_react = 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/colors/primitive-palette.ts
|
|
117
|
+
var primitivePalette = {
|
|
118
|
+
bg: {
|
|
119
|
+
"01": "#040811",
|
|
120
|
+
"02": "#040811",
|
|
121
|
+
"03": "#14161E",
|
|
122
|
+
"04": "#070414",
|
|
123
|
+
"05": "#070C12",
|
|
124
|
+
"06": "#202123"
|
|
125
|
+
},
|
|
126
|
+
gray: {
|
|
127
|
+
cool: {
|
|
128
|
+
50: "#F7F7F8",
|
|
129
|
+
100: "#EEEEF0",
|
|
130
|
+
200: "#D8D9DF",
|
|
131
|
+
300: "#B6B8C3",
|
|
132
|
+
400: "#999CA9",
|
|
133
|
+
500: "#717486",
|
|
134
|
+
600: "#5B5E6E",
|
|
135
|
+
700: "#4A4C5A",
|
|
136
|
+
800: "#40424C",
|
|
137
|
+
900: "#36373F",
|
|
138
|
+
950: "#25252C"
|
|
139
|
+
},
|
|
140
|
+
warm: {
|
|
141
|
+
50: "#F6F6F6",
|
|
142
|
+
100: "#E7E7E7",
|
|
143
|
+
200: "#D1D1D1",
|
|
144
|
+
300: "#B0B0B0",
|
|
145
|
+
400: "#888888",
|
|
146
|
+
500: "#6D6D6D",
|
|
147
|
+
600: "#5D5D5D",
|
|
148
|
+
700: "#525252",
|
|
149
|
+
800: "#454545",
|
|
150
|
+
900: "#3D3D3D",
|
|
151
|
+
950: "#25252C"
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
opacity: {
|
|
155
|
+
white: {
|
|
156
|
+
"0": "#FFFFFF, 0",
|
|
157
|
+
5: "#FFFFFF, 5",
|
|
158
|
+
10: "#FFFFFF, 10",
|
|
159
|
+
20: "#FFFFFF, 20",
|
|
160
|
+
30: "#FFFFFF, 30",
|
|
161
|
+
40: "#FFFFFF, 40",
|
|
162
|
+
50: "#FFFFFF, 50",
|
|
163
|
+
60: "#FFFFFF, 60",
|
|
164
|
+
70: "#FFFFFF, 70",
|
|
165
|
+
80: "#FFFFFF, 80",
|
|
166
|
+
90: "#FFFFFF, 90"
|
|
167
|
+
},
|
|
168
|
+
black: {
|
|
169
|
+
"0": "#000000, 0",
|
|
170
|
+
5: "#000000, 5",
|
|
171
|
+
10: "#000000, 10",
|
|
172
|
+
20: "#000000, 20",
|
|
173
|
+
30: "#000000, 30",
|
|
174
|
+
40: "#000000, 40",
|
|
175
|
+
50: "#000000, 50",
|
|
176
|
+
60: "#000000, 60",
|
|
177
|
+
70: "#000000, 70",
|
|
178
|
+
80: "#000000, 80",
|
|
179
|
+
90: "#000000, 90"
|
|
180
|
+
}
|
|
181
|
+
},
|
|
182
|
+
red: {
|
|
183
|
+
50: "#FEF2F2",
|
|
184
|
+
100: "#FEE9E9",
|
|
185
|
+
200: "#FCCFD2",
|
|
186
|
+
300: "#F9A8AC",
|
|
187
|
+
400: "#F57780",
|
|
188
|
+
500: "#EC4757",
|
|
189
|
+
600: "#D82640",
|
|
190
|
+
700: "#B71934",
|
|
191
|
+
800: "#991832",
|
|
192
|
+
900: "#831831",
|
|
193
|
+
950: "#831831"
|
|
194
|
+
},
|
|
195
|
+
rose: {
|
|
196
|
+
50: "#FDF4F6",
|
|
197
|
+
100: "#F9E9EC",
|
|
198
|
+
200: "#F4D8DD",
|
|
199
|
+
300: "#E9B8C2",
|
|
200
|
+
400: "#DF96A6",
|
|
201
|
+
500: "#CB6881",
|
|
202
|
+
600: "#B54969",
|
|
203
|
+
700: "#973957",
|
|
204
|
+
800: "#7F324D",
|
|
205
|
+
900: "#6A2740",
|
|
206
|
+
950: "#3C1523"
|
|
207
|
+
},
|
|
208
|
+
hotPink: {
|
|
209
|
+
50: "#FDF2F7",
|
|
210
|
+
100: "#FDE6F0",
|
|
211
|
+
200: "#FCCEE3",
|
|
212
|
+
300: "#FBA6CA",
|
|
213
|
+
400: "#F76FA6",
|
|
214
|
+
500: "#F04485",
|
|
215
|
+
600: "#E2326C",
|
|
216
|
+
700: "#C21448",
|
|
217
|
+
800: "#A1133C",
|
|
218
|
+
900: "#861535",
|
|
219
|
+
950: "#52051B"
|
|
220
|
+
},
|
|
221
|
+
sepia: {
|
|
222
|
+
50: "#FCF5F4",
|
|
223
|
+
100: "#FAE9E9",
|
|
224
|
+
200: "#F5D6D7",
|
|
225
|
+
300: "#EDB4B6",
|
|
226
|
+
400: "#E28A8F",
|
|
227
|
+
500: "#D45F69",
|
|
228
|
+
600: "#BE4051",
|
|
229
|
+
700: "#9F3142",
|
|
230
|
+
800: "#862B3C",
|
|
231
|
+
900: "#6B2433",
|
|
232
|
+
950: "#320E15"
|
|
233
|
+
},
|
|
234
|
+
orange: {
|
|
235
|
+
50: "#FEF7EE",
|
|
236
|
+
100: "#FDEDD7",
|
|
237
|
+
200: "#F9D8AF",
|
|
238
|
+
300: "#F5BB7C",
|
|
239
|
+
400: "#F09447",
|
|
240
|
+
500: "#EC7723",
|
|
241
|
+
600: "#E15F19",
|
|
242
|
+
700: "#E15F19",
|
|
243
|
+
800: "#92391A",
|
|
244
|
+
900: "#763118",
|
|
245
|
+
950: "#40160A"
|
|
246
|
+
},
|
|
247
|
+
yellow: {
|
|
248
|
+
50: "#F9F2E5",
|
|
249
|
+
100: "#F5E6BC",
|
|
250
|
+
200: "#FFE9BC",
|
|
251
|
+
300: "#FFD174",
|
|
252
|
+
400: "#F8BE4A",
|
|
253
|
+
500: "#EAAD30",
|
|
254
|
+
600: "#D77908",
|
|
255
|
+
700: "#B2550B",
|
|
256
|
+
800: "#91420F",
|
|
257
|
+
900: "#773610",
|
|
258
|
+
950: "#441B04"
|
|
259
|
+
},
|
|
260
|
+
tree: {
|
|
261
|
+
50: "#F5F3F1",
|
|
262
|
+
100: "#E5E1DC",
|
|
263
|
+
200: "#CCC5BC",
|
|
264
|
+
300: "#AFA395",
|
|
265
|
+
400: "#978878",
|
|
266
|
+
500: "#907E6F",
|
|
267
|
+
600: "#756459",
|
|
268
|
+
700: "#5F4F49",
|
|
269
|
+
800: "#524541",
|
|
270
|
+
900: "#483D3B",
|
|
271
|
+
950: "#282120"
|
|
272
|
+
},
|
|
273
|
+
brown: {
|
|
274
|
+
50: "#F6F3F0",
|
|
275
|
+
100: "#F4EDEC",
|
|
276
|
+
200: "#EBDFDD",
|
|
277
|
+
300: "#DCC9C5",
|
|
278
|
+
400: "#C6A9A3",
|
|
279
|
+
500: "#B08983",
|
|
280
|
+
600: "#A27E77",
|
|
281
|
+
700: "#7F5D56",
|
|
282
|
+
800: "#6A4F4A",
|
|
283
|
+
900: "#5B4541",
|
|
284
|
+
950: "#2C1E1C"
|
|
285
|
+
},
|
|
286
|
+
lime: {
|
|
287
|
+
50: "#F7FFE5",
|
|
288
|
+
100: "#ECFFC7",
|
|
289
|
+
200: "#D9FF95",
|
|
290
|
+
300: "#BDFE58",
|
|
291
|
+
400: "#A1F524",
|
|
292
|
+
500: "#82DC06",
|
|
293
|
+
600: "#63B000",
|
|
294
|
+
700: "#4B8506",
|
|
295
|
+
800: "#3E690B",
|
|
296
|
+
900: "#34580F",
|
|
297
|
+
950: "#193102"
|
|
298
|
+
},
|
|
299
|
+
green: {
|
|
300
|
+
50: "#E7F3EB",
|
|
301
|
+
100: "#DFF9EA",
|
|
302
|
+
200: "#CEECDA",
|
|
303
|
+
300: "#9CD4B3",
|
|
304
|
+
400: "#6EC092",
|
|
305
|
+
500: "#3FA46B",
|
|
306
|
+
600: "#209754",
|
|
307
|
+
700: "#1E7745",
|
|
308
|
+
800: "#1D5E3A",
|
|
309
|
+
900: "#194E32",
|
|
310
|
+
950: "#082B19"
|
|
311
|
+
},
|
|
312
|
+
timberGreen: {
|
|
313
|
+
50: "#F1FCF5",
|
|
314
|
+
100: "#DFF9EA",
|
|
315
|
+
200: "#B5DACD",
|
|
316
|
+
300: "#8ABFAF",
|
|
317
|
+
400: "#60A18F",
|
|
318
|
+
500: "#468675",
|
|
319
|
+
600: "#366B5F",
|
|
320
|
+
700: "#2E574D",
|
|
321
|
+
800: "#2A4641",
|
|
322
|
+
900: "#1D2F2B",
|
|
323
|
+
950: "#11221E"
|
|
324
|
+
},
|
|
325
|
+
teal: {
|
|
326
|
+
50: "#E2F1F0",
|
|
327
|
+
100: "#C9EBE8",
|
|
328
|
+
200: "#C7E8E5",
|
|
329
|
+
300: "#8AD0D0",
|
|
330
|
+
400: "#67C4C4",
|
|
331
|
+
500: "#39A6A7",
|
|
332
|
+
600: "#258386",
|
|
333
|
+
700: "#1B666A",
|
|
334
|
+
800: "#1A5255",
|
|
335
|
+
900: "#1A4447",
|
|
336
|
+
950: "#09272A"
|
|
337
|
+
},
|
|
338
|
+
lightBlue: {
|
|
339
|
+
50: "#F2F8FD",
|
|
340
|
+
100: "#E3EFFB",
|
|
341
|
+
200: "#C1E0F6",
|
|
342
|
+
300: "#8BC6EE",
|
|
343
|
+
400: "#3DA2E1",
|
|
344
|
+
500: "#258FD2",
|
|
345
|
+
600: "#1771B2",
|
|
346
|
+
700: "#145A90",
|
|
347
|
+
800: "#154D77",
|
|
348
|
+
900: "#174163",
|
|
349
|
+
950: "#062C2D"
|
|
350
|
+
},
|
|
351
|
+
sea: {
|
|
352
|
+
50: "#F4F6FC",
|
|
353
|
+
100: "#E8EDF6",
|
|
354
|
+
200: "#CBD9EB",
|
|
355
|
+
300: "#9FB9DA",
|
|
356
|
+
400: "#6A93C5",
|
|
357
|
+
500: "#446FA4",
|
|
358
|
+
600: "#375D92",
|
|
359
|
+
700: "#2D4B77",
|
|
360
|
+
800: "#294163",
|
|
361
|
+
900: "#263954",
|
|
362
|
+
950: "#1A2537"
|
|
363
|
+
},
|
|
364
|
+
blue: {
|
|
365
|
+
50: "#F0F6FE",
|
|
366
|
+
100: "#DDEAFC",
|
|
367
|
+
200: "#C2DBFB",
|
|
368
|
+
300: "#98C5F8",
|
|
369
|
+
400: "#68A7F2",
|
|
370
|
+
500: "#377CEB",
|
|
371
|
+
600: "#2F68E1",
|
|
372
|
+
700: "#2754CE",
|
|
373
|
+
800: "#20429E",
|
|
374
|
+
900: "#1C2A52",
|
|
375
|
+
950: "#061132"
|
|
376
|
+
},
|
|
377
|
+
lightPurple: {
|
|
378
|
+
50: "#F6F5FD",
|
|
379
|
+
100: "#EEEDFA",
|
|
380
|
+
200: "#DDDCFD",
|
|
381
|
+
300: "#BDB9EC",
|
|
382
|
+
400: "#AAA1E4",
|
|
383
|
+
500: "#826CE3",
|
|
384
|
+
600: "#7250D7",
|
|
385
|
+
700: "#623DC4",
|
|
386
|
+
800: "#5133A4",
|
|
387
|
+
900: "#442B87",
|
|
388
|
+
950: "#291A5B"
|
|
389
|
+
}
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
// ../tailwind-config/src/colors/semantic-palette.ts
|
|
393
|
+
var semanticPalette = {
|
|
394
|
+
primary: {
|
|
395
|
+
soft: { light: primitivePalette.blue[100], dark: primitivePalette.blue[950] },
|
|
396
|
+
light: { light: primitivePalette.blue[200], dark: primitivePalette.blue[900] },
|
|
397
|
+
main: { light: primitivePalette.blue[600], dark: primitivePalette.blue[600] },
|
|
398
|
+
dark: { light: primitivePalette.blue[800], dark: primitivePalette.blue[500] },
|
|
399
|
+
strong: { light: primitivePalette.blue[900], dark: primitivePalette.blue[200] }
|
|
400
|
+
},
|
|
401
|
+
secondary: {
|
|
402
|
+
soft: { light: primitivePalette.lightPurple[100], dark: primitivePalette.lightPurple[950] },
|
|
403
|
+
light: { light: primitivePalette.lightPurple[200], dark: primitivePalette.lightPurple[900] },
|
|
404
|
+
main: { light: primitivePalette.lightPurple[600], dark: primitivePalette.lightPurple[500] },
|
|
405
|
+
dark: { light: primitivePalette.lightPurple[800], dark: primitivePalette.lightPurple[700] },
|
|
406
|
+
strong: { light: primitivePalette.lightPurple[950], dark: primitivePalette.lightPurple[950] }
|
|
407
|
+
},
|
|
408
|
+
body: {
|
|
409
|
+
foreground: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[50] },
|
|
410
|
+
background: { light: primitivePalette.gray.cool[50], dark: primitivePalette.bg["06"] }
|
|
411
|
+
},
|
|
412
|
+
neutral: {
|
|
413
|
+
soft: { light: primitivePalette.gray.cool[100], dark: primitivePalette.gray.cool[900] },
|
|
414
|
+
light: { light: primitivePalette.gray.cool[200], dark: primitivePalette.gray.cool[700] },
|
|
415
|
+
main: { light: primitivePalette.gray.cool[400], dark: primitivePalette.gray.cool[400] },
|
|
416
|
+
dark: { light: primitivePalette.gray.cool[500], dark: primitivePalette.gray.cool[300] },
|
|
417
|
+
strong: { light: primitivePalette.gray.cool[700], dark: primitivePalette.gray.cool[200] }
|
|
418
|
+
},
|
|
419
|
+
trans: {
|
|
420
|
+
soft: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] },
|
|
421
|
+
light: { light: primitivePalette.opacity.black[10], dark: primitivePalette.opacity.white[10] },
|
|
422
|
+
main: { light: primitivePalette.opacity.black[20], dark: primitivePalette.opacity.white[20] },
|
|
423
|
+
dark: { light: primitivePalette.opacity.black[30], dark: primitivePalette.opacity.white[30] },
|
|
424
|
+
strong: { light: primitivePalette.opacity.black[60], dark: primitivePalette.opacity.black[60] }
|
|
425
|
+
},
|
|
426
|
+
common: {
|
|
427
|
+
black: { light: primitivePalette.gray.cool[950], dark: primitivePalette.gray.cool[950] },
|
|
428
|
+
white: { light: primitivePalette.gray.cool[50], dark: primitivePalette.gray.cool[50] },
|
|
429
|
+
transparent: { light: primitivePalette.opacity.white["0"], dark: primitivePalette.opacity.black["0"] },
|
|
430
|
+
hover: { light: primitivePalette.opacity.black[5], dark: primitivePalette.opacity.white[5] }
|
|
431
|
+
},
|
|
432
|
+
info: {
|
|
433
|
+
soft: { light: primitivePalette.teal[50], dark: primitivePalette.teal[950] },
|
|
434
|
+
light: { light: primitivePalette.teal[100], dark: primitivePalette.teal[900] },
|
|
435
|
+
main: { light: primitivePalette.teal[500], dark: primitivePalette.teal[500] },
|
|
436
|
+
dark: { light: primitivePalette.teal[600], dark: primitivePalette.teal[700] },
|
|
437
|
+
strong: { light: "", dark: "" }
|
|
438
|
+
},
|
|
439
|
+
success: {
|
|
440
|
+
soft: { light: primitivePalette.green[50], dark: primitivePalette.green[950] },
|
|
441
|
+
light: { light: primitivePalette.green[200], dark: primitivePalette.green[900] },
|
|
442
|
+
main: { light: primitivePalette.green[500], dark: primitivePalette.green[600] },
|
|
443
|
+
dark: { light: primitivePalette.green[600], dark: primitivePalette.green[700] },
|
|
444
|
+
strong: { light: "", dark: "" }
|
|
445
|
+
},
|
|
446
|
+
warning: {
|
|
447
|
+
soft: { light: primitivePalette.yellow[50], dark: primitivePalette.yellow[950] },
|
|
448
|
+
light: { light: primitivePalette.yellow[100], dark: primitivePalette.yellow[900] },
|
|
449
|
+
main: { light: primitivePalette.yellow[500], dark: primitivePalette.yellow[600] },
|
|
450
|
+
dark: { light: primitivePalette.yellow[600], dark: primitivePalette.yellow[700] },
|
|
451
|
+
strong: { light: "", dark: "" }
|
|
452
|
+
},
|
|
453
|
+
danger: {
|
|
454
|
+
soft: { light: primitivePalette.hotPink[50], dark: primitivePalette.hotPink[950] },
|
|
455
|
+
light: { light: primitivePalette.hotPink[200], dark: primitivePalette.hotPink[900] },
|
|
456
|
+
main: { light: primitivePalette.hotPink[500], dark: primitivePalette.hotPink[500] },
|
|
457
|
+
dark: { light: primitivePalette.hotPink[600], dark: primitivePalette.hotPink[700] },
|
|
458
|
+
strong: { light: "", dark: "" }
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
// ../tailwind-config/src/typography/font.ts
|
|
463
|
+
var fontSize = {
|
|
464
|
+
h1: [
|
|
465
|
+
"40px",
|
|
466
|
+
{
|
|
467
|
+
fontWeight: "700"
|
|
468
|
+
}
|
|
469
|
+
],
|
|
470
|
+
h2: [
|
|
471
|
+
"34px",
|
|
472
|
+
{
|
|
473
|
+
fontWeight: "700"
|
|
474
|
+
}
|
|
475
|
+
],
|
|
476
|
+
h3: [
|
|
477
|
+
"28px",
|
|
478
|
+
{
|
|
479
|
+
fontWeight: "700"
|
|
480
|
+
}
|
|
481
|
+
],
|
|
482
|
+
h4: [
|
|
483
|
+
"24px",
|
|
484
|
+
{
|
|
485
|
+
fontWeight: "700"
|
|
486
|
+
}
|
|
487
|
+
],
|
|
488
|
+
h5: [
|
|
489
|
+
"20px",
|
|
490
|
+
{
|
|
491
|
+
fontWeight: "600"
|
|
492
|
+
}
|
|
493
|
+
],
|
|
494
|
+
sm: [
|
|
495
|
+
"12px",
|
|
496
|
+
{
|
|
497
|
+
lineHeight: "18px",
|
|
498
|
+
fontWeight: "400"
|
|
499
|
+
}
|
|
500
|
+
],
|
|
501
|
+
md: [
|
|
502
|
+
"14px",
|
|
503
|
+
{
|
|
504
|
+
lineHeight: "21px",
|
|
505
|
+
fontWeight: "400"
|
|
506
|
+
}
|
|
507
|
+
],
|
|
508
|
+
lg: [
|
|
509
|
+
"16px",
|
|
510
|
+
{
|
|
511
|
+
lineHeight: "24px",
|
|
512
|
+
fontWeight: "400"
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
xl: [
|
|
516
|
+
"18px",
|
|
517
|
+
{
|
|
518
|
+
lineHeight: "27px",
|
|
519
|
+
fontWeight: "400"
|
|
520
|
+
}
|
|
521
|
+
],
|
|
522
|
+
"2xl": [
|
|
523
|
+
"24px",
|
|
524
|
+
{
|
|
525
|
+
lineHeight: "36px",
|
|
526
|
+
fontWeight: "400"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
// ../tailwind-config/src/animation/bar.ts
|
|
532
|
+
var barAnimation = {
|
|
533
|
+
"indeterminate-bar": "indeterminate-bar 1.5s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite normal none running"
|
|
534
|
+
};
|
|
535
|
+
var barKeyframe = {
|
|
536
|
+
"indeterminate-bar": {
|
|
537
|
+
"0%": {
|
|
538
|
+
transform: "translateX(-50%) scaleX(0.2)"
|
|
539
|
+
},
|
|
540
|
+
"100%": {
|
|
541
|
+
transform: "translateX(100%) scaleX(1)"
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
// ../tailwind-config/src/animation/slide.ts
|
|
547
|
+
var sliceAnimation = {
|
|
548
|
+
slideInFromTop: "slideInFromTop 0.5s ease-out",
|
|
549
|
+
slideInFromBottom: "slideInFromBottom 0.5s ease-out",
|
|
550
|
+
slideInFromLeft: "slideInFromLeft 0.5s ease-out",
|
|
551
|
+
slideInFromRight: "slideInFromRight 0.5s ease-out",
|
|
552
|
+
slideOutToTop: "slideOutToTop 0.5s ease-in",
|
|
553
|
+
slideOutToBottom: "slideOutToBottom 0.5s ease-in",
|
|
554
|
+
slideOutToLeft: "slideOutToLeft 0.5s ease-in",
|
|
555
|
+
slideOutToRight: "slideOutToRight 0.5s ease-in"
|
|
556
|
+
};
|
|
557
|
+
var sliceKeyframe = {
|
|
558
|
+
slideInFromTop: {
|
|
559
|
+
"0%": {
|
|
560
|
+
transform: "translateY(-10px)",
|
|
561
|
+
opacity: "0"
|
|
562
|
+
},
|
|
563
|
+
"100%": {
|
|
564
|
+
transform: "translateY(0)",
|
|
565
|
+
opacity: "1"
|
|
566
|
+
}
|
|
567
|
+
},
|
|
568
|
+
slideInFromBottom: {
|
|
569
|
+
"0%": {
|
|
570
|
+
transform: "translateY(10px)",
|
|
571
|
+
opacity: "0"
|
|
572
|
+
},
|
|
573
|
+
"100%": {
|
|
574
|
+
transform: "translateY(0)",
|
|
575
|
+
opacity: "1"
|
|
576
|
+
}
|
|
577
|
+
},
|
|
578
|
+
slideInFromLeft: {
|
|
579
|
+
"0%": {
|
|
580
|
+
transform: "translateX(-10px)",
|
|
581
|
+
opacity: "0"
|
|
582
|
+
},
|
|
583
|
+
"100%": {
|
|
584
|
+
transform: "translateX(0)",
|
|
585
|
+
opacity: "1"
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
slideInFromRight: {
|
|
589
|
+
"0%": {
|
|
590
|
+
transform: "translateX(10px)",
|
|
591
|
+
opacity: "0"
|
|
592
|
+
},
|
|
593
|
+
"100%": {
|
|
594
|
+
transform: "translateX(0)",
|
|
595
|
+
opacity: "1"
|
|
596
|
+
}
|
|
597
|
+
},
|
|
598
|
+
slideOutToTop: {
|
|
599
|
+
"0%": {
|
|
600
|
+
transform: "translateY(0)",
|
|
601
|
+
opacity: "1"
|
|
602
|
+
},
|
|
603
|
+
"100%": {
|
|
604
|
+
transform: "translateY(-10px)",
|
|
605
|
+
opacity: "0"
|
|
606
|
+
}
|
|
607
|
+
},
|
|
608
|
+
slideOutToBottom: {
|
|
609
|
+
"0%": {
|
|
610
|
+
transform: "translateY(0)",
|
|
611
|
+
opacity: "1"
|
|
612
|
+
},
|
|
613
|
+
"100%": {
|
|
614
|
+
transform: "translateY(10px)",
|
|
615
|
+
opacity: "0"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
slideOutToLeft: {
|
|
619
|
+
"0%": {
|
|
620
|
+
transform: "translateX(0)",
|
|
621
|
+
opacity: "1"
|
|
622
|
+
},
|
|
623
|
+
"100%": {
|
|
624
|
+
transform: "translateX(-10px)",
|
|
625
|
+
opacity: "0"
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
slideOutToRight: {
|
|
629
|
+
"0%": {
|
|
630
|
+
transform: "translateX(0)",
|
|
631
|
+
opacity: "1"
|
|
632
|
+
},
|
|
633
|
+
"100%": {
|
|
634
|
+
transform: "translateX(10px)",
|
|
635
|
+
opacity: "0"
|
|
636
|
+
}
|
|
637
|
+
}
|
|
638
|
+
};
|
|
639
|
+
|
|
640
|
+
// ../tailwind-config/src/animation/index.ts
|
|
641
|
+
var animation = { ...sliceAnimation, ...barAnimation };
|
|
642
|
+
var keyframes = { ...sliceKeyframe, ...barKeyframe };
|
|
643
|
+
|
|
644
|
+
// ../tailwind-config/src/shadow/index.ts
|
|
645
|
+
var boxShadow = {
|
|
646
|
+
"border-1": "inner 0 0 0 1px inset",
|
|
647
|
+
"border-2": "inner 0 0 0 2px inset",
|
|
648
|
+
"border-3": "inner 0 0 0 3px inset",
|
|
649
|
+
"border-4": "inner 0 0 0 4px inset",
|
|
650
|
+
"border-5": "inner 0 0 0 5px inset",
|
|
651
|
+
"border-6": "inner 0 0 0 6px inset",
|
|
652
|
+
"border-7": "inner 0 0 0 7px inset",
|
|
653
|
+
"border-8": "inner 0 0 0 8px inset",
|
|
654
|
+
"border-9": "inner 0 0 0 9px inset",
|
|
655
|
+
"border-10": "inner 0 0 0 10px inset",
|
|
656
|
+
inner: "inset 0 4px 8px 0 rgba(36, 39, 44, 0.2)",
|
|
657
|
+
"inner-sm": "inset 0 4px 8px 0 rgba(0, 0, 0, 0.2)",
|
|
658
|
+
"inner-md": "inset 0 6px 12px 0 rgba(0, 0, 0, 0.2)",
|
|
659
|
+
"inner-lg": "inset 0 8px 16px 0 rgba(0, 0, 0, 0.2)",
|
|
660
|
+
"inner-xl": "inset 0 10px 20px 0 rgba(0, 0, 0, 0.2)",
|
|
661
|
+
drop: "0 20px 40px 0 rgba(36, 39, 44, 0.2)",
|
|
662
|
+
"drop-sm": "0 4px 12px 0 rgba(0, 0, 0, 0.1)",
|
|
663
|
+
"drop-md": "0 6px 18px 0 rgba(0, 0, 0, 0.1)",
|
|
664
|
+
"drop-lg": "0 8px 24px 0 rgba(0, 0, 0, 0.1)",
|
|
665
|
+
"drop-xl": "0 0px 60px 0 rgba(0, 0, 0, 0.2)"
|
|
666
|
+
};
|
|
667
|
+
|
|
668
|
+
// ../tailwind-config/src/border/radius.ts
|
|
669
|
+
var borderRadius = {
|
|
670
|
+
sm: "4px",
|
|
671
|
+
md: "6px",
|
|
672
|
+
lg: "8px",
|
|
673
|
+
xl: "10px",
|
|
674
|
+
"2xl": "20px",
|
|
675
|
+
none: "0",
|
|
676
|
+
full: "9999px",
|
|
677
|
+
2: "2px",
|
|
678
|
+
5: "5px"
|
|
679
|
+
};
|
|
680
|
+
|
|
681
|
+
// ../tailwind-config/src/border/width.ts
|
|
682
|
+
var borderWidth = {
|
|
683
|
+
sm: "1px",
|
|
684
|
+
md: "1.25px",
|
|
685
|
+
lg: "1.5px",
|
|
686
|
+
xl: "1.75px"
|
|
687
|
+
};
|
|
688
|
+
|
|
689
|
+
// ../tailwind-config/src/space/gap.ts
|
|
690
|
+
var gap = {
|
|
691
|
+
sm: "4px",
|
|
692
|
+
md: "6px",
|
|
693
|
+
lg: "8px",
|
|
694
|
+
xl: "10px",
|
|
695
|
+
5: "5px",
|
|
696
|
+
10: "10px",
|
|
697
|
+
20: "20px",
|
|
698
|
+
30: "30px"
|
|
699
|
+
};
|
|
700
|
+
|
|
701
|
+
// src/utils/tailwind-variants.ts
|
|
702
|
+
function typedKeys(obj) {
|
|
703
|
+
return Object.keys(obj);
|
|
704
|
+
}
|
|
705
|
+
var COMMON_SIZE = ["sm", "md", "lg", "xl"];
|
|
706
|
+
var tv = (0, import_tailwind_variants.createTV)({
|
|
707
|
+
twMergeConfig: {
|
|
708
|
+
classGroups: {
|
|
709
|
+
fontSize: [{ text: [...typedKeys(fontSize)] }],
|
|
710
|
+
borderRadius: [{ rounded: [...typedKeys(borderRadius)] }],
|
|
711
|
+
boxShadow: [{ shadow: [...typedKeys(boxShadow)] }],
|
|
712
|
+
padding: [{ p: [...COMMON_SIZE] }],
|
|
713
|
+
gap: [{ gap: [...typedKeys(gap)] }],
|
|
714
|
+
borderWidth: [{ border: [...typedKeys(borderWidth)] }]
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
});
|
|
718
|
+
|
|
719
|
+
// src/utils/props.ts
|
|
720
|
+
var mapPropsVariants = (props, variantKeys, removeVariantProps = true) => {
|
|
721
|
+
if (!variantKeys) {
|
|
722
|
+
return [props, {}];
|
|
723
|
+
}
|
|
724
|
+
const picked = variantKeys.reduce((acc, key) => {
|
|
725
|
+
if (key in props) {
|
|
726
|
+
return { ...acc, [key]: props[key] };
|
|
727
|
+
} else {
|
|
728
|
+
return acc;
|
|
729
|
+
}
|
|
730
|
+
}, {});
|
|
731
|
+
if (removeVariantProps) {
|
|
732
|
+
const omitted = Object.keys(props).filter((key) => !variantKeys.includes(key)).reduce((acc, key) => ({ ...acc, [key]: props[key] }), {});
|
|
733
|
+
return [omitted, picked];
|
|
734
|
+
} else {
|
|
735
|
+
return [props, picked];
|
|
736
|
+
}
|
|
737
|
+
};
|
|
738
|
+
|
|
739
|
+
// src/components/slider/slider.tsx
|
|
740
|
+
var import_jsx_runtime = require("react/jsx-runtime");
|
|
741
|
+
var clampPercentage = (value) => {
|
|
742
|
+
return Math.min(100, Math.max(0, value));
|
|
743
|
+
};
|
|
744
|
+
var Slider = (0, import_react.forwardRef)((originalProps, ref) => {
|
|
745
|
+
const [props, variantProps] = mapPropsVariants(originalProps, sliderStyle.variantKeys);
|
|
746
|
+
const {
|
|
747
|
+
children,
|
|
748
|
+
classNames,
|
|
749
|
+
value: controlledValue,
|
|
750
|
+
defaultValue = 0,
|
|
751
|
+
minValue = 0,
|
|
752
|
+
maxValue = 100,
|
|
753
|
+
step = 1,
|
|
754
|
+
onChange,
|
|
755
|
+
disabled = false,
|
|
756
|
+
...restProps
|
|
757
|
+
} = props;
|
|
758
|
+
const [uncontrolledValue, setUncontrolledValue] = (0, import_react.useState)(defaultValue);
|
|
759
|
+
const [isDragging, setIsDragging] = (0, import_react.useState)(false);
|
|
760
|
+
const isControlled = controlledValue !== void 0;
|
|
761
|
+
const value = isControlled ? controlledValue : uncontrolledValue;
|
|
762
|
+
const innerRef = (0, import_react.useRef)(null);
|
|
763
|
+
const calculateValue = (0, import_react.useCallback)(
|
|
764
|
+
(clientX) => {
|
|
765
|
+
if (!innerRef.current) return value;
|
|
766
|
+
const { left, width } = innerRef.current.getBoundingClientRect();
|
|
767
|
+
const percent = Math.min(Math.max((clientX - left) / width, 0), 1);
|
|
768
|
+
const exactValue = percent * (maxValue - minValue) + minValue;
|
|
769
|
+
const stepRoundedValue = Math.round(exactValue / step) * step;
|
|
770
|
+
return Math.min(Math.max(stepRoundedValue, minValue), maxValue);
|
|
771
|
+
},
|
|
772
|
+
[minValue, maxValue, step, value]
|
|
773
|
+
);
|
|
774
|
+
const updateValue = (0, import_react.useCallback)(
|
|
775
|
+
(newValue) => {
|
|
776
|
+
if (!isControlled) {
|
|
777
|
+
setUncontrolledValue(newValue);
|
|
778
|
+
}
|
|
779
|
+
if (onChange && value !== newValue) {
|
|
780
|
+
onChange(newValue);
|
|
781
|
+
}
|
|
782
|
+
},
|
|
783
|
+
[isControlled, onChange, value]
|
|
784
|
+
);
|
|
785
|
+
const handlePointerDown = (e) => {
|
|
786
|
+
var _a;
|
|
787
|
+
if (disabled) return;
|
|
788
|
+
(_a = innerRef.current) == null ? void 0 : _a.focus();
|
|
789
|
+
e.currentTarget.setPointerCapture(e.pointerId);
|
|
790
|
+
setIsDragging(true);
|
|
791
|
+
const newValue = calculateValue(e.clientX);
|
|
792
|
+
updateValue(newValue);
|
|
793
|
+
};
|
|
794
|
+
const handlePointerMove = (e) => {
|
|
795
|
+
if (disabled || e.buttons === 0) return;
|
|
796
|
+
const newValue = calculateValue(e.clientX);
|
|
797
|
+
updateValue(newValue);
|
|
798
|
+
};
|
|
799
|
+
const handlePointerUp = (e) => {
|
|
800
|
+
if (disabled) return;
|
|
801
|
+
e.currentTarget.releasePointerCapture(e.pointerId);
|
|
802
|
+
setIsDragging(false);
|
|
803
|
+
};
|
|
804
|
+
const handleKeyDown = (e) => {
|
|
805
|
+
if (disabled) return;
|
|
806
|
+
let newValue = value;
|
|
807
|
+
if (e.key === "ArrowRight" || e.key === "ArrowUp") {
|
|
808
|
+
newValue = Math.min(value + step, maxValue);
|
|
809
|
+
} else if (e.key === "ArrowLeft" || e.key === "ArrowDown") {
|
|
810
|
+
newValue = Math.max(value - step, minValue);
|
|
811
|
+
} else if (e.key === "Home") {
|
|
812
|
+
newValue = minValue;
|
|
813
|
+
} else if (e.key === "End") {
|
|
814
|
+
newValue = maxValue;
|
|
815
|
+
}
|
|
816
|
+
if (newValue !== value) {
|
|
817
|
+
e.preventDefault();
|
|
818
|
+
updateValue(newValue);
|
|
819
|
+
}
|
|
820
|
+
};
|
|
821
|
+
const setRefs = (0, import_react.useCallback)(
|
|
822
|
+
(node) => {
|
|
823
|
+
innerRef.current = node;
|
|
824
|
+
if (typeof ref === "function") {
|
|
825
|
+
ref(node);
|
|
826
|
+
} else if (ref) {
|
|
827
|
+
ref.current = node;
|
|
828
|
+
}
|
|
829
|
+
},
|
|
830
|
+
[ref]
|
|
831
|
+
);
|
|
832
|
+
const percentage = clampPercentage((value - minValue) / (maxValue - minValue) * 100);
|
|
833
|
+
const slots = (0, import_react.useMemo)(() => sliderStyle({ ...variantProps }), [variantProps]);
|
|
834
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
835
|
+
"div",
|
|
836
|
+
{
|
|
837
|
+
ref: setRefs,
|
|
838
|
+
className: slots.base({ class: classNames == null ? void 0 : classNames.base }),
|
|
839
|
+
onPointerDown: handlePointerDown,
|
|
840
|
+
onPointerMove: handlePointerMove,
|
|
841
|
+
onPointerUp: handlePointerUp,
|
|
842
|
+
onKeyDown: handleKeyDown,
|
|
843
|
+
tabIndex: disabled ? void 0 : 0,
|
|
844
|
+
role: "slider",
|
|
845
|
+
"aria-valuemin": minValue,
|
|
846
|
+
"aria-valuemax": maxValue,
|
|
847
|
+
"aria-valuenow": value,
|
|
848
|
+
...restProps,
|
|
849
|
+
children: [
|
|
850
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: slots.track({ class: classNames == null ? void 0 : classNames.track }), children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
851
|
+
"div",
|
|
852
|
+
{
|
|
853
|
+
className: slots.indicator({ class: classNames == null ? void 0 : classNames.indicator }),
|
|
854
|
+
style: { width: `${percentage}%`, transitionDuration: isDragging ? "0ms" : void 0 }
|
|
855
|
+
}
|
|
856
|
+
) }),
|
|
857
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
858
|
+
"div",
|
|
859
|
+
{
|
|
860
|
+
className: slots.thumb({ class: classNames == null ? void 0 : classNames.thumb }),
|
|
861
|
+
style: { left: `${percentage}%`, transitionDuration: isDragging ? "0ms" : void 0 }
|
|
862
|
+
}
|
|
863
|
+
)
|
|
864
|
+
]
|
|
865
|
+
}
|
|
866
|
+
);
|
|
867
|
+
});
|
|
868
|
+
Slider.displayName = "Slider";
|
|
869
|
+
var slider_default = Slider;
|
|
870
|
+
var sliderStyle = tv({
|
|
871
|
+
slots: {
|
|
872
|
+
base: [
|
|
873
|
+
"relative",
|
|
874
|
+
"flex",
|
|
875
|
+
"flex-col",
|
|
876
|
+
"justify-center",
|
|
877
|
+
"w-full",
|
|
878
|
+
"touch-none",
|
|
879
|
+
"select-none",
|
|
880
|
+
"outline-none",
|
|
881
|
+
"cursor-pointer"
|
|
882
|
+
],
|
|
883
|
+
track: ["z-0", "relative", "w-full", "bg-neutral-soft"],
|
|
884
|
+
indicator: ["absolute", "h-full", "top-0", "left-0", "border-none", "transition-all"],
|
|
885
|
+
thumb: [
|
|
886
|
+
"z-10",
|
|
887
|
+
"absolute",
|
|
888
|
+
"flex",
|
|
889
|
+
"items-center",
|
|
890
|
+
"justify-center",
|
|
891
|
+
"top-1/2",
|
|
892
|
+
"-translate-y-1/2",
|
|
893
|
+
"-translate-x-1/2",
|
|
894
|
+
"bg-white",
|
|
895
|
+
"shadow-small",
|
|
896
|
+
"rounded-full",
|
|
897
|
+
"transition-all",
|
|
898
|
+
"outline-none",
|
|
899
|
+
"cursor-grab",
|
|
900
|
+
"active:cursor-grabbing"
|
|
901
|
+
]
|
|
902
|
+
},
|
|
903
|
+
variants: {
|
|
904
|
+
color: {
|
|
905
|
+
primary: {
|
|
906
|
+
indicator: ["bg-primary-light"],
|
|
907
|
+
thumb: ["bg-primary-main", "ring-[color-mix(in_srgb,var(--dn-primary-main)_20%,transparent)]"]
|
|
908
|
+
},
|
|
909
|
+
secondary: {
|
|
910
|
+
indicator: ["bg-secondary-light"],
|
|
911
|
+
thumb: ["bg-secondary-main", "ring-[color-mix(in_srgb,var(--dn-secondary-main)_20%,transparent)]"]
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
size: {
|
|
915
|
+
sm: {
|
|
916
|
+
track: ["h-[4px]", "rounded-sm"],
|
|
917
|
+
indicator: ["rounded-sm"],
|
|
918
|
+
thumb: ["w-[8px]", "h-[8px]", "hover:ring-2"]
|
|
919
|
+
},
|
|
920
|
+
md: {
|
|
921
|
+
track: ["h-[6px]", "rounded-md"],
|
|
922
|
+
indicator: ["rounded-md"],
|
|
923
|
+
thumb: ["w-[10px]", "h-[10px]", "hover:ring-3"]
|
|
924
|
+
},
|
|
925
|
+
lg: {
|
|
926
|
+
track: ["h-[8px]", "rounded-lg"],
|
|
927
|
+
indicator: ["rounded-lg"],
|
|
928
|
+
thumb: ["w-[12px]", "h-[12px]", "hover:ring-4"]
|
|
929
|
+
},
|
|
930
|
+
xl: {
|
|
931
|
+
track: ["h-[10px]", "rounded-xl"],
|
|
932
|
+
indicator: ["rounded-xl"],
|
|
933
|
+
thumb: ["w-[14px]", "h-[14px]", "hover:ring-5"]
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
disabled: {
|
|
937
|
+
true: {
|
|
938
|
+
base: ["opacity-disabled", "cursor-not-allowed", "!pointer-events-none"],
|
|
939
|
+
indicator: ["bg-neutral-light"],
|
|
940
|
+
thumb: ["bg-neutral-main", "cursor-not-allowed"]
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
defaultVariants: {
|
|
945
|
+
color: "primary",
|
|
946
|
+
size: "md",
|
|
947
|
+
disabled: false
|
|
948
|
+
}
|
|
949
|
+
});
|