@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,460 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import {
|
|
3
|
+
tv
|
|
4
|
+
} from "./chunk-DPWUIAVC.mjs";
|
|
5
|
+
|
|
6
|
+
// src/components/button/button.style.ts
|
|
7
|
+
var buttonBaseStyle = tv({
|
|
8
|
+
slots: {
|
|
9
|
+
base: [
|
|
10
|
+
"relative",
|
|
11
|
+
"flex",
|
|
12
|
+
"items-center",
|
|
13
|
+
"justify-center",
|
|
14
|
+
"whitespace-nowrap",
|
|
15
|
+
"transition",
|
|
16
|
+
"duration-200",
|
|
17
|
+
"select-none",
|
|
18
|
+
"overflow-hidden",
|
|
19
|
+
"box-border",
|
|
20
|
+
"border",
|
|
21
|
+
"border-transparent"
|
|
22
|
+
]
|
|
23
|
+
},
|
|
24
|
+
variants: {
|
|
25
|
+
variant: {
|
|
26
|
+
solid: [],
|
|
27
|
+
soft: [],
|
|
28
|
+
outline: [],
|
|
29
|
+
ghost: []
|
|
30
|
+
},
|
|
31
|
+
color: {
|
|
32
|
+
primary: [],
|
|
33
|
+
secondary: [],
|
|
34
|
+
neutral: [],
|
|
35
|
+
info: [],
|
|
36
|
+
success: [],
|
|
37
|
+
warning: [],
|
|
38
|
+
danger: []
|
|
39
|
+
},
|
|
40
|
+
disabled: {
|
|
41
|
+
true: {
|
|
42
|
+
base: ["!bg-neutral-soft", "!border-neutral-soft", "!text-neutral-light", "pointer-events-none"]
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
isInGroup: {
|
|
46
|
+
true: {
|
|
47
|
+
base: [
|
|
48
|
+
"[&:not(:first-child):not(:last-child)]:rounded-none",
|
|
49
|
+
"first:rounded-r-none",
|
|
50
|
+
"last:rounded-l-none",
|
|
51
|
+
"[&:not(:first-child)]:border-l-0"
|
|
52
|
+
]
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
compoundVariants: [
|
|
57
|
+
{
|
|
58
|
+
variant: "solid",
|
|
59
|
+
color: "primary",
|
|
60
|
+
class: {
|
|
61
|
+
base: [
|
|
62
|
+
"text-white",
|
|
63
|
+
"bg-primary-main",
|
|
64
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-primary-main)]",
|
|
65
|
+
"active:bg-primary-dark"
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
variant: "solid",
|
|
71
|
+
color: "secondary",
|
|
72
|
+
class: {
|
|
73
|
+
base: [
|
|
74
|
+
"text-white",
|
|
75
|
+
"bg-secondary-main",
|
|
76
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-secondary-main)]",
|
|
77
|
+
"active:bg-secondary-dark"
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
variant: "solid",
|
|
83
|
+
color: "neutral",
|
|
84
|
+
class: {
|
|
85
|
+
base: [
|
|
86
|
+
"text-white",
|
|
87
|
+
"bg-neutral-main",
|
|
88
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-neutral-main)]",
|
|
89
|
+
"active:bg-neutral-dark"
|
|
90
|
+
]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
variant: "solid",
|
|
95
|
+
color: "info",
|
|
96
|
+
class: {
|
|
97
|
+
base: [
|
|
98
|
+
"text-white",
|
|
99
|
+
"bg-info-main",
|
|
100
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-info-main)]",
|
|
101
|
+
"active:bg-info-dark"
|
|
102
|
+
]
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
variant: "solid",
|
|
107
|
+
color: "success",
|
|
108
|
+
class: {
|
|
109
|
+
base: [
|
|
110
|
+
"text-white",
|
|
111
|
+
"bg-success-main",
|
|
112
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-success-main)]",
|
|
113
|
+
"active:bg-success-dark"
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
variant: "solid",
|
|
119
|
+
color: "warning",
|
|
120
|
+
class: {
|
|
121
|
+
base: [
|
|
122
|
+
"text-white",
|
|
123
|
+
"bg-warning-main",
|
|
124
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-warning-main)]",
|
|
125
|
+
"active:bg-warning-dark"
|
|
126
|
+
]
|
|
127
|
+
}
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
variant: "solid",
|
|
131
|
+
color: "danger",
|
|
132
|
+
class: {
|
|
133
|
+
base: [
|
|
134
|
+
"text-white",
|
|
135
|
+
"bg-danger-main",
|
|
136
|
+
"hover:[background:linear-gradient(0deg,var(--dn-trans-light)_0%,var(--dn-trans-light)_100%),var(--dn-danger-main)]",
|
|
137
|
+
"active:bg-danger-dark"
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
// soft & color
|
|
142
|
+
{
|
|
143
|
+
variant: "soft",
|
|
144
|
+
color: "primary",
|
|
145
|
+
class: {
|
|
146
|
+
base: [
|
|
147
|
+
"text-primary-main",
|
|
148
|
+
"bg-primary-soft",
|
|
149
|
+
"border-primary-soft",
|
|
150
|
+
"hover:border-primary-light",
|
|
151
|
+
"active:bg-primary-light"
|
|
152
|
+
]
|
|
153
|
+
}
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
variant: "soft",
|
|
157
|
+
color: "secondary",
|
|
158
|
+
class: {
|
|
159
|
+
base: [
|
|
160
|
+
"text-secondary-main",
|
|
161
|
+
"bg-secondary-soft",
|
|
162
|
+
"border-secondary-soft",
|
|
163
|
+
"hover:border-secondary-light",
|
|
164
|
+
"active:bg-secondary-light"
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
variant: "soft",
|
|
170
|
+
color: "neutral",
|
|
171
|
+
class: {
|
|
172
|
+
base: [
|
|
173
|
+
"text-neutral-main",
|
|
174
|
+
"bg-neutral-soft",
|
|
175
|
+
"border-neutral-soft",
|
|
176
|
+
"hover:border-neutral-light",
|
|
177
|
+
"active:bg-neutral-light"
|
|
178
|
+
]
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
variant: "soft",
|
|
183
|
+
color: "info",
|
|
184
|
+
class: {
|
|
185
|
+
base: ["text-info-main", "bg-info-soft", "border-info-soft", "hover:border-info-light", "active:bg-info-light"]
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
variant: "soft",
|
|
190
|
+
color: "success",
|
|
191
|
+
class: {
|
|
192
|
+
base: [
|
|
193
|
+
"text-success-main",
|
|
194
|
+
"bg-success-soft",
|
|
195
|
+
"border-success-soft",
|
|
196
|
+
"hover:border-success-light",
|
|
197
|
+
"active:bg-success-light"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
variant: "soft",
|
|
203
|
+
color: "warning",
|
|
204
|
+
class: {
|
|
205
|
+
base: [
|
|
206
|
+
"text-warning-main",
|
|
207
|
+
"bg-warning-soft",
|
|
208
|
+
"border-warning-soft",
|
|
209
|
+
"hover:border-warning-light",
|
|
210
|
+
"active:bg-warning-light"
|
|
211
|
+
]
|
|
212
|
+
}
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
variant: "soft",
|
|
216
|
+
color: "danger",
|
|
217
|
+
class: {
|
|
218
|
+
base: [
|
|
219
|
+
"text-danger-main",
|
|
220
|
+
"bg-danger-soft",
|
|
221
|
+
"border-danger-soft",
|
|
222
|
+
"hover:border-danger-light",
|
|
223
|
+
"active:bg-danger-light"
|
|
224
|
+
]
|
|
225
|
+
}
|
|
226
|
+
},
|
|
227
|
+
// outline & color
|
|
228
|
+
{
|
|
229
|
+
variant: "outline",
|
|
230
|
+
color: "primary",
|
|
231
|
+
class: {
|
|
232
|
+
base: [
|
|
233
|
+
"bg-body-background",
|
|
234
|
+
"border-primary-main",
|
|
235
|
+
"text-primary-main",
|
|
236
|
+
"hover:bg-primary-soft",
|
|
237
|
+
"active:bg-primary-light"
|
|
238
|
+
]
|
|
239
|
+
}
|
|
240
|
+
},
|
|
241
|
+
{
|
|
242
|
+
variant: "outline",
|
|
243
|
+
color: "secondary",
|
|
244
|
+
class: {
|
|
245
|
+
base: [
|
|
246
|
+
"bg-body-background",
|
|
247
|
+
"border-secondary-main",
|
|
248
|
+
"text-secondary-main",
|
|
249
|
+
"hover:bg-secondary-soft",
|
|
250
|
+
"active:bg-secondary-light"
|
|
251
|
+
]
|
|
252
|
+
}
|
|
253
|
+
},
|
|
254
|
+
{
|
|
255
|
+
variant: "outline",
|
|
256
|
+
color: "neutral",
|
|
257
|
+
class: {
|
|
258
|
+
base: [
|
|
259
|
+
"bg-body-background",
|
|
260
|
+
"border-neutral-main",
|
|
261
|
+
"text-neutral-main",
|
|
262
|
+
"hover:bg-neutral-soft",
|
|
263
|
+
"active:bg-neutral-light"
|
|
264
|
+
]
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
{
|
|
268
|
+
variant: "outline",
|
|
269
|
+
color: "info",
|
|
270
|
+
class: {
|
|
271
|
+
base: [
|
|
272
|
+
"bg-body-background",
|
|
273
|
+
"border-info-main",
|
|
274
|
+
"text-info-main",
|
|
275
|
+
"hover:bg-info-soft",
|
|
276
|
+
"active:bg-info-light"
|
|
277
|
+
]
|
|
278
|
+
}
|
|
279
|
+
},
|
|
280
|
+
{
|
|
281
|
+
variant: "outline",
|
|
282
|
+
color: "success",
|
|
283
|
+
class: {
|
|
284
|
+
base: [
|
|
285
|
+
"bg-body-background",
|
|
286
|
+
"border-success-main",
|
|
287
|
+
"text-success-main",
|
|
288
|
+
"hover:bg-success-soft",
|
|
289
|
+
"active:bg-success-light"
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
{
|
|
294
|
+
variant: "outline",
|
|
295
|
+
color: "warning",
|
|
296
|
+
class: {
|
|
297
|
+
base: [
|
|
298
|
+
"bg-body-background",
|
|
299
|
+
"border-warning-main",
|
|
300
|
+
"text-warning-main",
|
|
301
|
+
"hover:bg-warning-soft",
|
|
302
|
+
"active:bg-warning-light"
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
{
|
|
307
|
+
variant: "outline",
|
|
308
|
+
color: "danger",
|
|
309
|
+
class: {
|
|
310
|
+
base: [
|
|
311
|
+
"bg-body-background",
|
|
312
|
+
"border-danger-main",
|
|
313
|
+
"text-danger-main",
|
|
314
|
+
"hover:bg-danger-soft",
|
|
315
|
+
"active:bg-danger-light"
|
|
316
|
+
]
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
// ghost & color
|
|
320
|
+
{
|
|
321
|
+
variant: "ghost",
|
|
322
|
+
color: "primary",
|
|
323
|
+
class: {
|
|
324
|
+
base: [
|
|
325
|
+
"text-primary-main",
|
|
326
|
+
"border-transparent",
|
|
327
|
+
"hover:bg-primary-soft",
|
|
328
|
+
"active:bg-primary-main",
|
|
329
|
+
"active:text-common-white"
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
variant: "ghost",
|
|
335
|
+
color: "secondary",
|
|
336
|
+
class: {
|
|
337
|
+
base: [
|
|
338
|
+
"text-secondary-main",
|
|
339
|
+
"border-transparent",
|
|
340
|
+
"hover:bg-secondary-soft",
|
|
341
|
+
"active:bg-secondary-main",
|
|
342
|
+
"active:text-common-white"
|
|
343
|
+
]
|
|
344
|
+
}
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
variant: "ghost",
|
|
348
|
+
color: "neutral",
|
|
349
|
+
class: {
|
|
350
|
+
base: [
|
|
351
|
+
"text-neutral-main",
|
|
352
|
+
"border-transparent",
|
|
353
|
+
"hover:bg-neutral-soft",
|
|
354
|
+
"active:bg-neutral-main",
|
|
355
|
+
"active:text-common-white"
|
|
356
|
+
]
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
variant: "ghost",
|
|
361
|
+
color: "info",
|
|
362
|
+
class: {
|
|
363
|
+
base: [
|
|
364
|
+
"text-info-main",
|
|
365
|
+
"border-transparent",
|
|
366
|
+
"hover:bg-info-soft",
|
|
367
|
+
"active:bg-info-main",
|
|
368
|
+
"active:text-common-white"
|
|
369
|
+
]
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
variant: "ghost",
|
|
374
|
+
color: "success",
|
|
375
|
+
class: {
|
|
376
|
+
base: [
|
|
377
|
+
"text-success-main",
|
|
378
|
+
"border-transparent",
|
|
379
|
+
"hover:bg-success-soft",
|
|
380
|
+
"active:bg-success-main",
|
|
381
|
+
"active:text-common-white"
|
|
382
|
+
]
|
|
383
|
+
}
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
variant: "ghost",
|
|
387
|
+
color: "warning",
|
|
388
|
+
class: {
|
|
389
|
+
base: [
|
|
390
|
+
"text-warning-main",
|
|
391
|
+
"border-transparent",
|
|
392
|
+
"hover:bg-warning-soft",
|
|
393
|
+
"active:bg-warning-main",
|
|
394
|
+
"active:text-common-white"
|
|
395
|
+
]
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
{
|
|
399
|
+
variant: "ghost",
|
|
400
|
+
color: "danger",
|
|
401
|
+
class: {
|
|
402
|
+
base: [
|
|
403
|
+
"text-danger-main",
|
|
404
|
+
"border-transparent",
|
|
405
|
+
"hover:bg-danger-soft",
|
|
406
|
+
"active:bg-danger-main",
|
|
407
|
+
"active:text-common-white"
|
|
408
|
+
]
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
// variant && size
|
|
412
|
+
{
|
|
413
|
+
variant: ["soft", "outline"],
|
|
414
|
+
size: "sm",
|
|
415
|
+
class: {
|
|
416
|
+
base: ["border-sm"]
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
variant: ["soft", "outline"],
|
|
421
|
+
size: "md",
|
|
422
|
+
class: {
|
|
423
|
+
base: ["border-md"]
|
|
424
|
+
}
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
variant: ["soft", "outline"],
|
|
428
|
+
size: "lg",
|
|
429
|
+
class: {
|
|
430
|
+
base: ["border-lg"]
|
|
431
|
+
}
|
|
432
|
+
},
|
|
433
|
+
{
|
|
434
|
+
variant: ["soft", "outline"],
|
|
435
|
+
size: "xl",
|
|
436
|
+
class: {
|
|
437
|
+
base: ["border-xl"]
|
|
438
|
+
}
|
|
439
|
+
},
|
|
440
|
+
// variant && disabled
|
|
441
|
+
{
|
|
442
|
+
variant: ["soft", "ghost"],
|
|
443
|
+
disabled: true,
|
|
444
|
+
class: {
|
|
445
|
+
base: ["!border-neutral-soft"]
|
|
446
|
+
}
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
variant: ["outline"],
|
|
450
|
+
disabled: true,
|
|
451
|
+
class: {
|
|
452
|
+
base: ["!border-neutral-light"]
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
]
|
|
456
|
+
});
|
|
457
|
+
|
|
458
|
+
export {
|
|
459
|
+
buttonBaseStyle
|
|
460
|
+
};
|