@docsplain-kit/core 0.0.48 → 0.0.50
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/auto-complete/auto-complete-theme.d.ts +29 -0
- package/auto-complete/auto-complete-theme.js +53 -0
- package/auto-complete/auto-complete-theme.js.map +1 -0
- package/auto-complete/auto-complete.js +23 -3
- package/auto-complete/auto-complete.js.map +1 -1
- package/card/card-body/card-body.js +10 -1
- package/card/card-body/card-body.js.map +1 -1
- package/card/card-theme.d.ts +26 -0
- package/card/card-theme.js +170 -0
- package/card/card-theme.js.map +1 -0
- package/card/card.js +11 -1
- package/card/card.js.map +1 -1
- package/card/card.style.d.ts +3 -79
- package/card/card.style.js +34 -50
- package/card/card.style.js.map +1 -1
- package/divider/divider-theme.d.ts +16 -0
- package/divider/divider-theme.js +82 -0
- package/divider/divider-theme.js.map +1 -0
- package/divider/divider.js +13 -3
- package/divider/divider.js.map +1 -1
- package/label/label-theme.d.ts +17 -0
- package/label/label-theme.js +35 -0
- package/label/label-theme.js.map +1 -0
- package/label/label.js +21 -3
- package/label/label.js.map +1 -1
- package/media/media.js +1 -1
- package/media/media.js.map +1 -1
- package/modal/modal-theme.d.ts +17 -0
- package/modal/modal-theme.js +32 -0
- package/modal/modal-theme.js.map +1 -0
- package/modal/modal.d.ts +1 -1
- package/modal/modal.js +22 -5
- package/modal/modal.js.map +1 -1
- package/mouse-popup/mouse-popup-theme.d.ts +17 -0
- package/mouse-popup/mouse-popup-theme.js +32 -0
- package/mouse-popup/mouse-popup-theme.js.map +1 -0
- package/mouse-popup/mouse-popup.js +19 -1
- package/mouse-popup/mouse-popup.js.map +1 -1
- package/multi-select/index.js.map +1 -1
- package/multi-select/multi-select-theme.d.ts +54 -0
- package/multi-select/multi-select-theme.js +127 -0
- package/multi-select/multi-select-theme.js.map +1 -0
- package/multi-select/multi-select.js +44 -10
- package/multi-select/multi-select.js.map +1 -1
- package/multi-select/multi-select.style.d.ts +97 -1
- package/multi-select/multi-select.style.js +99 -3
- package/multi-select/multi-select.style.js.map +1 -1
- package/package.json +1 -1
- package/popper/popper-content/popper-content.js +19 -1
- package/popper/popper-content/popper-content.js.map +1 -1
- package/popper/popper-theme.d.ts +21 -0
- package/popper/popper-theme.js +39 -0
- package/popper/popper-theme.js.map +1 -0
- package/select/select-theme.d.ts +50 -0
- package/select/select-theme.js +120 -0
- package/select/select-theme.js.map +1 -0
- package/select/select.js +44 -10
- package/select/select.js.map +1 -1
- package/select/select.style.d.ts +48 -16
- package/select/select.style.js +97 -65
- package/select/select.style.js.map +1 -1
- package/skeleton/skeleton-theme.d.ts +16 -0
- package/skeleton/skeleton-theme.js +82 -0
- package/skeleton/skeleton-theme.js.map +1 -0
- package/skeleton/skeleton.js +19 -1
- package/skeleton/skeleton.js.map +1 -1
- package/slider/slider-theme.d.ts +63 -0
- package/slider/slider-theme.js +219 -0
- package/slider/slider-theme.js.map +1 -0
- package/slider/slider.js +26 -8
- package/slider/slider.js.map +1 -1
- package/tab/tab-item/tab-item.style.js +21 -6
- package/tab/tab-item/tab-item.style.js.map +1 -1
- package/tab/tab-theme.d.ts +42 -0
- package/tab/tab-theme.js +242 -0
- package/tab/tab-theme.js.map +1 -0
- package/tab/tab.js +21 -3
- package/tab/tab.js.map +1 -1
- package/text-input/text-input-theme.d.ts +30 -0
- package/text-input/text-input-theme.js +73 -0
- package/text-input/text-input-theme.js.map +1 -0
- package/text-input/text-input.js +26 -4
- package/text-input/text-input.js.map +1 -1
- package/text-input/text-input.style.d.ts +33 -1
- package/text-input/text-input.style.js +34 -2
- package/text-input/text-input.style.js.map +1 -1
- package/textarea/textarea-theme.d.ts +30 -0
- package/textarea/textarea-theme.js +73 -0
- package/textarea/textarea-theme.js.map +1 -0
- package/textarea/textarea.js +26 -4
- package/textarea/textarea.js.map +1 -1
- package/textarea/textarea.style.d.ts +33 -1
- package/textarea/textarea.style.js +34 -2
- package/textarea/textarea.style.js.map +1 -1
package/select/select.style.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.VARIANTS = exports.ROUNDED = exports.DARK_HOVER_COLORS = exports.LIGHT_HOVER_COLORS = exports.SIZES = exports.DARK_SELECT_COLORS = exports.LIGHT_SELECT_COLORS = void 0;
|
|
4
|
+
exports.LIGHT_SELECT_COLORS = {
|
|
5
5
|
primary: 'bg-primary-50 border-control-light hover:border-control-dark focus:border-primary-dark',
|
|
6
6
|
danger: 'bg-danger-100 border-control-light hover:border-control-dark focus:border-danger-dark',
|
|
7
7
|
warning: 'bg-warning-100 border-control-light hover:border-control-dark focus:border-warning-dark',
|
|
@@ -33,6 +33,38 @@ exports.COLORS = {
|
|
|
33
33
|
pink: 'bg-pink-100 border-control-light hover:border-control-dark focus:border-pink-700',
|
|
34
34
|
rose: 'bg-rose-100 border-control-light hover:border-control-dark focus:border-rose-700'
|
|
35
35
|
};
|
|
36
|
+
exports.DARK_SELECT_COLORS = {
|
|
37
|
+
primary: 'bg-primary-950/40 border-control-light hover:border-control-300 focus:border-primary-300',
|
|
38
|
+
danger: 'bg-danger-950/40 border-control-light hover:border-control-300 focus:border-danger-300',
|
|
39
|
+
warning: 'bg-warning-950/40 border-control-light hover:border-control-300 focus:border-warning-300',
|
|
40
|
+
secondary: 'bg-secondary-950/40 border-control-light hover:border-control-300 focus:border-secondary-300',
|
|
41
|
+
tertiary: 'bg-tertiary-950/40 border-control-light hover:border-control-300 focus:border-tertiary-300',
|
|
42
|
+
success: 'bg-success-950/40 border-control-light hover:border-control-300 focus:border-success-300',
|
|
43
|
+
info: 'bg-info-950/40 border-control-light hover:border-control-300 focus:border-info-300',
|
|
44
|
+
control: 'bg-control-950/40 border-control-light hover:border-control-300 focus:border-control-300',
|
|
45
|
+
inherit: 'bg-transparent border-transparent focus:border hover:border-transparent',
|
|
46
|
+
slate: 'bg-slate-900 border-control-light hover:border-control-300 focus:border-slate-300',
|
|
47
|
+
zinc: 'bg-zinc-900 border-control-light hover:border-control-300 focus:border-zinc-300',
|
|
48
|
+
neutral: 'bg-neutral-900 border-control-light hover:border-control-300 focus:border-neutral-300',
|
|
49
|
+
stone: 'bg-stone-900 border-control-light hover:border-control-300 focus:border-stone-300',
|
|
50
|
+
red: 'bg-red-900 border-control-light hover:border-control-300 focus:border-red-300',
|
|
51
|
+
orange: 'bg-orange-900 border-control-light hover:border-control-300 focus:border-orange-300',
|
|
52
|
+
amber: 'bg-amber-900 border-control-light hover:border-control-300 focus:border-amber-300',
|
|
53
|
+
yellow: 'bg-yellow-900 border-control-light hover:border-control-300 focus:border-yellow-300',
|
|
54
|
+
lime: 'bg-lime-900 border-control-light hover:border-control-300 focus:border-lime-300',
|
|
55
|
+
green: 'bg-green-900 border-control-light hover:border-control-300 focus:border-green-300',
|
|
56
|
+
emerald: 'bg-emerald-900 border-control-light hover:border-control-300 focus:border-emerald-300',
|
|
57
|
+
teal: 'bg-teal-900 border-control-light hover:border-control-300 focus:border-teal-300',
|
|
58
|
+
cyan: 'bg-cyan-900 border-control-light hover:border-control-300 focus:border-cyan-300',
|
|
59
|
+
sky: 'bg-sky-900 border-control-light hover:border-control-300 focus:border-sky-300',
|
|
60
|
+
blue: 'bg-blue-900 border-control-light hover:border-control-300 focus:border-blue-300',
|
|
61
|
+
indigo: 'bg-indigo-900 border-control-light hover:border-control-300 focus:border-indigo-300',
|
|
62
|
+
violet: 'bg-violet-900 border-control-light hover:border-control-300 focus:border-violet-300',
|
|
63
|
+
purple: 'bg-purple-900 border-control-light hover:border-control-300 focus:border-purple-300',
|
|
64
|
+
fuchsia: 'bg-fuchsia-900 border-control-light hover:border-control-300 focus:border-fuchsia-300',
|
|
65
|
+
pink: 'bg-pink-900 border-control-light hover:border-control-300 focus:border-pink-300',
|
|
66
|
+
rose: 'bg-rose-900 border-control-light hover:border-control-300 focus:border-rose-300'
|
|
67
|
+
};
|
|
36
68
|
exports.SIZES = {
|
|
37
69
|
huge: 'h-14 md:h-16',
|
|
38
70
|
large: 'h-12 md:h-14',
|
|
@@ -40,37 +72,69 @@ exports.SIZES = {
|
|
|
40
72
|
small: 'h-8 md:h-10',
|
|
41
73
|
tiny: 'h-6 md:h-8'
|
|
42
74
|
};
|
|
43
|
-
exports.
|
|
44
|
-
primary: 'hover:bg-primary hover:text-white',
|
|
45
|
-
danger: 'hover:bg-danger hover:text-white',
|
|
46
|
-
warning: 'hover:bg-warning hover:text-white',
|
|
47
|
-
secondary: 'hover:bg-secondary hover:text-white',
|
|
48
|
-
control: 'hover:bg-control hover:text-white',
|
|
49
|
-
tertiary: 'hover:bg-tertiary hover:text-white',
|
|
50
|
-
success: 'hover:bg-success hover:text-white',
|
|
51
|
-
info: 'hover:bg-info hover:text-white',
|
|
75
|
+
exports.LIGHT_HOVER_COLORS = {
|
|
76
|
+
primary: 'hover:bg-primary-100 hover:text-white',
|
|
77
|
+
danger: 'hover:bg-danger-100 hover:text-white',
|
|
78
|
+
warning: 'hover:bg-warning-100 hover:text-white',
|
|
79
|
+
secondary: 'hover:bg-secondary-100 hover:text-white',
|
|
80
|
+
control: 'hover:bg-control-100 hover:text-white',
|
|
81
|
+
tertiary: 'hover:bg-tertiary-100 hover:text-white',
|
|
82
|
+
success: 'hover:bg-success-100 hover:text-white',
|
|
83
|
+
info: 'hover:bg-info-100 hover:text-white',
|
|
52
84
|
inherit: 'bg-transparent hover:bg-transparent',
|
|
53
|
-
slate: 'hover:bg-slate-
|
|
54
|
-
zinc: 'hover:bg-zinc-
|
|
55
|
-
neutral: 'hover:bg-neutral-
|
|
56
|
-
stone: 'hover:bg-stone-
|
|
57
|
-
red: 'hover:bg-red-
|
|
58
|
-
orange: 'hover:bg-orange-
|
|
59
|
-
amber: 'hover:bg-amber-
|
|
60
|
-
yellow: 'hover:bg-yellow-
|
|
61
|
-
lime: 'hover:bg-lime-
|
|
62
|
-
green: 'hover:bg-green-
|
|
63
|
-
emerald: 'hover:bg-emerald-
|
|
64
|
-
teal: 'hover:bg-teal-
|
|
65
|
-
cyan: 'hover:bg-cyan-
|
|
66
|
-
sky: 'hover:bg-sky-
|
|
67
|
-
blue: 'hover:bg-blue-
|
|
68
|
-
indigo: 'hover:bg-indigo-
|
|
69
|
-
violet: 'hover:bg-violet-
|
|
70
|
-
purple: 'hover:bg-purple-
|
|
71
|
-
fuchsia: 'hover:bg-fuchsia-
|
|
72
|
-
pink: 'hover:bg-pink-
|
|
73
|
-
rose: 'hover:bg-rose-
|
|
85
|
+
slate: 'hover:bg-slate-100 hover:text-white',
|
|
86
|
+
zinc: 'hover:bg-zinc-100 hover:text-white',
|
|
87
|
+
neutral: 'hover:bg-neutral-100 hover:text-white',
|
|
88
|
+
stone: 'hover:bg-stone-100 hover:text-white',
|
|
89
|
+
red: 'hover:bg-red-100 hover:text-white',
|
|
90
|
+
orange: 'hover:bg-orange-100 hover:text-white',
|
|
91
|
+
amber: 'hover:bg-amber-100 hover:text-white',
|
|
92
|
+
yellow: 'hover:bg-yellow-100 hover:text-white',
|
|
93
|
+
lime: 'hover:bg-lime-100 hover:text-white',
|
|
94
|
+
green: 'hover:bg-green-100 hover:text-white',
|
|
95
|
+
emerald: 'hover:bg-emerald-100 hover:text-white',
|
|
96
|
+
teal: 'hover:bg-teal-100 hover:text-white',
|
|
97
|
+
cyan: 'hover:bg-cyan-100 hover:text-white',
|
|
98
|
+
sky: 'hover:bg-sky-100 hover:text-white',
|
|
99
|
+
blue: 'hover:bg-blue-100 hover:text-white',
|
|
100
|
+
indigo: 'hover:bg-indigo-100 hover:text-white',
|
|
101
|
+
violet: 'hover:bg-violet-100 hover:text-white',
|
|
102
|
+
purple: 'hover:bg-purple-100 hover:text-white',
|
|
103
|
+
fuchsia: 'hover:bg-fuchsia-100 hover:text-white',
|
|
104
|
+
pink: 'hover:bg-pink-100 hover:text-white',
|
|
105
|
+
rose: 'hover:bg-rose-100 hover:text-white'
|
|
106
|
+
};
|
|
107
|
+
exports.DARK_HOVER_COLORS = {
|
|
108
|
+
primary: 'hover:bg-primary-950/40 hover:text-white',
|
|
109
|
+
danger: 'hover:bg-danger-950/40 hover:text-white',
|
|
110
|
+
warning: 'hover:bg-warning-950/40 hover:text-white',
|
|
111
|
+
secondary: 'hover:bg-secondary-950/40 hover:text-white',
|
|
112
|
+
control: 'hover:bg-control-950/40 hover:text-white',
|
|
113
|
+
tertiary: 'hover:bg-tertiary-950/40 hover:text-white',
|
|
114
|
+
success: 'hover:bg-success-950/40 hover:text-white',
|
|
115
|
+
info: 'hover:bg-info-950/40 hover:text-white',
|
|
116
|
+
inherit: 'bg-transparent hover:bg-transparent',
|
|
117
|
+
slate: 'hover:bg-slate-950/40 hover:text-white',
|
|
118
|
+
zinc: 'hover:bg-zinc-950/40 hover:text-white',
|
|
119
|
+
neutral: 'hover:bg-neutral-950/40 hover:text-white',
|
|
120
|
+
stone: 'hover:bg-stone-950/40 hover:text-white',
|
|
121
|
+
red: 'hover:bg-red-950/40 hover:text-white',
|
|
122
|
+
orange: 'hover:bg-orange-950/40 hover:text-white',
|
|
123
|
+
amber: 'hover:bg-amber-950/40 hover:text-white',
|
|
124
|
+
yellow: 'hover:bg-yellow-950/40 hover:text-white',
|
|
125
|
+
lime: 'hover:bg-lime-950/40 hover:text-white',
|
|
126
|
+
green: 'hover:bg-green-950/40 hover:text-white',
|
|
127
|
+
emerald: 'hover:bg-emerald-950/40 hover:text-white',
|
|
128
|
+
teal: 'hover:bg-teal-950/40 hover:text-white',
|
|
129
|
+
cyan: 'hover:bg-cyan-950/40 hover:text-white',
|
|
130
|
+
sky: 'hover:bg-sky-950/40 hover:text-white',
|
|
131
|
+
blue: 'hover:bg-blue-950/40 hover:text-white',
|
|
132
|
+
indigo: 'hover:bg-indigo-950/40 hover:text-white',
|
|
133
|
+
violet: 'hover:bg-violet-950/40 hover:text-white',
|
|
134
|
+
purple: 'hover:bg-purple-950/40 hover:text-white',
|
|
135
|
+
fuchsia: 'hover:bg-fuchsia-950/40 hover:text-white',
|
|
136
|
+
pink: 'hover:bg-pink-950/40 hover:text-white',
|
|
137
|
+
rose: 'hover:bg-rose-950/40 hover:text-white'
|
|
74
138
|
};
|
|
75
139
|
exports.ROUNDED = {
|
|
76
140
|
full: 'rounded-full',
|
|
@@ -83,38 +147,6 @@ exports.ROUNDED = {
|
|
|
83
147
|
};
|
|
84
148
|
exports.VARIANTS = {
|
|
85
149
|
filled: 'text-m-sm md:text-d-sm flex',
|
|
86
|
-
outlined: 'text-control
|
|
87
|
-
};
|
|
88
|
-
exports.DROPDOWN_COLORS = {
|
|
89
|
-
primary: 'border-primary-dark',
|
|
90
|
-
danger: 'border-danger-dark',
|
|
91
|
-
warning: 'border-warning-dark',
|
|
92
|
-
secondary: 'border-secondary-dark',
|
|
93
|
-
control: 'border-control-dark',
|
|
94
|
-
tertiary: 'border-tertiary-dark',
|
|
95
|
-
success: 'border-success-dark',
|
|
96
|
-
info: 'border-info-dark',
|
|
97
|
-
inherit: 'border-inherit',
|
|
98
|
-
slate: 'border-slate-700',
|
|
99
|
-
zinc: 'border-zinc-700',
|
|
100
|
-
neutral: 'border-neutral-700',
|
|
101
|
-
stone: 'border-stone-700',
|
|
102
|
-
red: 'border-red-700',
|
|
103
|
-
orange: 'border-orange-700',
|
|
104
|
-
amber: 'border-amber-700',
|
|
105
|
-
yellow: 'border-yellow-700',
|
|
106
|
-
lime: 'border-lime-700',
|
|
107
|
-
green: 'border-green-700',
|
|
108
|
-
emerald: 'border-emerald-700',
|
|
109
|
-
teal: 'border-teal-700',
|
|
110
|
-
cyan: 'border-cyan-700',
|
|
111
|
-
sky: 'border-sky-700',
|
|
112
|
-
blue: 'border-blue-700',
|
|
113
|
-
indigo: 'border-indigo-700',
|
|
114
|
-
violet: 'border-violet-700',
|
|
115
|
-
purple: 'border-purple-700',
|
|
116
|
-
fuchsia: 'border-fuchsia-700',
|
|
117
|
-
pink: 'border-pink-700',
|
|
118
|
-
rose: 'border-rose-700'
|
|
150
|
+
outlined: 'text-control border border-control-light hover:border-control-dark flex'
|
|
119
151
|
};
|
|
120
152
|
//# sourceMappingURL=select.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.style.js","sourceRoot":"","sources":["../../select/select.style.ts"],"names":[],"mappings":";;;AAAa,QAAA,
|
|
1
|
+
{"version":3,"file":"select.style.js","sourceRoot":"","sources":["../../select/select.style.ts"],"names":[],"mappings":";;;AAAa,QAAA,mBAAmB,GAAG;IACjC,OAAO,EAAE,wFAAwF;IACjG,MAAM,EAAE,uFAAuF;IAC/F,OAAO,EAAE,yFAAyF;IAClG,SAAS,EAAE,6FAA6F;IACxG,QAAQ,EAAE,2FAA2F;IACrG,OAAO,EAAE,yFAAyF;IAClG,IAAI,EAAE,mFAAmF;IACzF,OAAO,EAAE,yFAAyF;IAClG,OAAO,EAAE,yEAAyE;IAClF,KAAK,EAAE,oFAAoF;IAC3F,IAAI,EAAE,kFAAkF;IACxF,OAAO,EAAE,wFAAwF;IACjG,KAAK,EAAE,oFAAoF;IAC3F,GAAG,EAAE,gFAAgF;IACrF,MAAM,EAAE,sFAAsF;IAC9F,KAAK,EAAE,oFAAoF;IAC3F,MAAM,EAAE,sFAAsF;IAC9F,IAAI,EAAE,kFAAkF;IACxF,KAAK,EAAE,oFAAoF;IAC3F,OAAO,EAAE,wFAAwF;IACjG,IAAI,EAAE,kFAAkF;IACxF,IAAI,EAAE,kFAAkF;IACxF,GAAG,EAAE,gFAAgF;IACrF,IAAI,EAAE,kFAAkF;IACxF,MAAM,EAAE,sFAAsF;IAC9F,MAAM,EAAE,sFAAsF;IAC9F,MAAM,EAAE,sFAAsF;IAC9F,OAAO,EAAE,wFAAwF;IACjG,IAAI,EAAE,kFAAkF;IACxF,IAAI,EAAE,kFAAkF;CACzF,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,OAAO,EAAE,0FAA0F;IACnG,MAAM,EAAE,wFAAwF;IAChG,OAAO,EAAE,0FAA0F;IACnG,SAAS,EAAE,8FAA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ACjD,MAAM,EAAE,yCAAyC;IACjD,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,uCAAuC;IAC7C,IAAI,EAAE,uCAAuC;CAC9C,CAAC;AAEW,QAAA,OAAO,GAAG;IACrB,IAAI,EAAE,cAAc;IACpB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,aAAa;IACpB,MAAM,EAAE,YAAY;IACpB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,cAAc;CACrB,CAAC;AAEW,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,6BAA6B;IACrC,QAAQ,EAAE,yEAAyE;CACpF,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Theme } from '../provider';
|
|
2
|
+
import { Colors } from '../types';
|
|
3
|
+
type ExtendedColors = Colors | 'tertiary';
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Skeleton Colors
|
|
6
|
+
*/
|
|
7
|
+
export declare const SKELETON_COLORS_LIGHT: Record<ExtendedColors, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Dark Theme Skeleton Colors
|
|
10
|
+
*/
|
|
11
|
+
export declare const SKELETON_COLORS_DARK: Record<ExtendedColors, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Helper function to get skeleton colors based on theme
|
|
14
|
+
*/
|
|
15
|
+
export declare const getSkeletonColors: (theme: Theme, color: Colors) => string;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getSkeletonColors = exports.SKELETON_COLORS_DARK = exports.SKELETON_COLORS_LIGHT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Skeleton Colors
|
|
6
|
+
*/
|
|
7
|
+
exports.SKELETON_COLORS_LIGHT = {
|
|
8
|
+
primary: 'bg-primary-200 border-primary-200 text-primary-light',
|
|
9
|
+
secondary: 'bg-secondary-200 border-secondary-200 text-secondary-light',
|
|
10
|
+
tertiary: 'bg-tertiary-200 border-tertiary-200 text-tertiary-light',
|
|
11
|
+
info: 'bg-info-200 border-info-200 text-info-light',
|
|
12
|
+
danger: 'bg-danger-200 border-danger-200 text-danger-light',
|
|
13
|
+
warning: 'bg-warning-200 border-warning-200 text-warning-light',
|
|
14
|
+
success: 'bg-success-200 border-success-200 text-success-light',
|
|
15
|
+
control: 'bg-control-200 border-control-200 text-control-light',
|
|
16
|
+
inherit: 'bg-transparent border-transparent text-inherit',
|
|
17
|
+
slate: 'bg-slate-200 border-slate-200 text-slate-300',
|
|
18
|
+
zinc: 'bg-zinc-200 border-zinc-200 text-zinc-300',
|
|
19
|
+
neutral: 'bg-neutral-200 border-neutral-200 text-neutral-300',
|
|
20
|
+
stone: 'bg-stone-200 border-stone-200 text-stone-300',
|
|
21
|
+
red: 'bg-red-200 border-red-200 text-red-300',
|
|
22
|
+
orange: 'bg-orange-200 border-orange-200 text-orange-300',
|
|
23
|
+
amber: 'bg-amber-200 border-amber-200 text-amber-300',
|
|
24
|
+
yellow: 'bg-yellow-200 border-yellow-200 text-yellow-300',
|
|
25
|
+
lime: 'bg-lime-200 border-lime-200 text-lime-300',
|
|
26
|
+
green: 'bg-green-200 border-green-200 text-green-300',
|
|
27
|
+
emerald: 'bg-emerald-200 border-emerald-200 text-emerald-300',
|
|
28
|
+
teal: 'bg-teal-200 border-teal-200 text-teal-300',
|
|
29
|
+
cyan: 'bg-cyan-200 border-cyan-200 text-cyan-300',
|
|
30
|
+
sky: 'bg-sky-200 border-sky-200 text-sky-300',
|
|
31
|
+
blue: 'bg-blue-200 border-blue-200 text-blue-300',
|
|
32
|
+
indigo: 'bg-indigo-200 border-indigo-200 text-indigo-300',
|
|
33
|
+
violet: 'bg-violet-200 border-violet-200 text-violet-300',
|
|
34
|
+
purple: 'bg-purple-200 border-purple-200 text-purple-300',
|
|
35
|
+
fuchsia: 'bg-fuchsia-200 border-fuchsia-200 text-fuchsia-300',
|
|
36
|
+
pink: 'bg-pink-200 border-pink-200 text-pink-300',
|
|
37
|
+
rose: 'bg-rose-200 border-rose-200 text-rose-300'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Dark Theme Skeleton Colors
|
|
41
|
+
*/
|
|
42
|
+
exports.SKELETON_COLORS_DARK = {
|
|
43
|
+
primary: 'bg-primary-700 border-primary-700 text-primary-300',
|
|
44
|
+
secondary: 'bg-secondary-700 border-secondary-700 text-secondary-300',
|
|
45
|
+
tertiary: 'bg-tertiary-700 border-tertiary-700 text-tertiary-300',
|
|
46
|
+
info: 'bg-info-700 border-info-700 text-info-300',
|
|
47
|
+
danger: 'bg-danger-700 border-danger-700 text-danger-300',
|
|
48
|
+
warning: 'bg-warning-700 border-warning-700 text-warning-300',
|
|
49
|
+
success: 'bg-success-700 border-success-700 text-success-300',
|
|
50
|
+
control: 'bg-gray-600 border-gray-600 text-gray-300',
|
|
51
|
+
inherit: 'bg-transparent border-transparent text-inherit',
|
|
52
|
+
slate: 'bg-slate-700 border-slate-700 text-slate-300',
|
|
53
|
+
zinc: 'bg-zinc-700 border-zinc-700 text-zinc-300',
|
|
54
|
+
neutral: 'bg-neutral-700 border-neutral-700 text-neutral-300',
|
|
55
|
+
stone: 'bg-stone-700 border-stone-700 text-stone-300',
|
|
56
|
+
red: 'bg-red-700 border-red-700 text-red-300',
|
|
57
|
+
orange: 'bg-orange-700 border-orange-700 text-orange-300',
|
|
58
|
+
amber: 'bg-amber-700 border-amber-700 text-amber-300',
|
|
59
|
+
yellow: 'bg-yellow-700 border-yellow-700 text-yellow-300',
|
|
60
|
+
lime: 'bg-lime-700 border-lime-700 text-lime-300',
|
|
61
|
+
green: 'bg-green-700 border-green-700 text-green-300',
|
|
62
|
+
emerald: 'bg-emerald-700 border-emerald-700 text-emerald-300',
|
|
63
|
+
teal: 'bg-teal-700 border-teal-700 text-teal-300',
|
|
64
|
+
cyan: 'bg-cyan-700 border-cyan-700 text-cyan-300',
|
|
65
|
+
sky: 'bg-sky-700 border-sky-700 text-sky-300',
|
|
66
|
+
blue: 'bg-blue-700 border-blue-700 text-blue-300',
|
|
67
|
+
indigo: 'bg-indigo-700 border-indigo-700 text-indigo-300',
|
|
68
|
+
violet: 'bg-violet-700 border-violet-700 text-violet-300',
|
|
69
|
+
purple: 'bg-purple-700 border-purple-700 text-purple-300',
|
|
70
|
+
fuchsia: 'bg-fuchsia-700 border-fuchsia-700 text-fuchsia-300',
|
|
71
|
+
pink: 'bg-pink-700 border-pink-700 text-pink-300',
|
|
72
|
+
rose: 'bg-rose-700 border-rose-700 text-rose-300'
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Helper function to get skeleton colors based on theme
|
|
76
|
+
*/
|
|
77
|
+
var getSkeletonColors = function (theme, color) {
|
|
78
|
+
var colorMap = theme === 'dark' ? exports.SKELETON_COLORS_DARK : exports.SKELETON_COLORS_LIGHT;
|
|
79
|
+
return colorMap[color] || colorMap['control'];
|
|
80
|
+
};
|
|
81
|
+
exports.getSkeletonColors = getSkeletonColors;
|
|
82
|
+
//# sourceMappingURL=skeleton-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skeleton-theme.js","sourceRoot":"","sources":["../../skeleton/skeleton-theme.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACU,QAAA,qBAAqB,GAAmC;IACnE,OAAO,EAAE,sDAAsD;IAC/D,SAAS,EAAE,4DAA4D;IACvE,QAAQ,EAAE,yDAAyD;IACnE,IAAI,EAAE,6CAA6C;IACnD,MAAM,EAAE,mDAAmD;IAC3D,OAAO,EAAE,sDAAsD;IAC/D,OAAO,EAAE,sDAAsD;IAC/D,OAAO,EAAE,sDAAsD;IAC/D,OAAO,EAAE,gDAAgD;IACzD,KAAK,EAAE,8CAA8C;IACrD,IAAI,EAAE,2CAA2C;IACjD,OAAO,EAAE,oDAAoD;IAC7D,KAAK,EAAE,8CAA8C;IACrD,GAAG,EAAE,wCAAwC;IAC7C,MAA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,EAAE,2CAA2C;IACjD,IAAI,EAAE,2CAA2C;CAClD,CAAC;AAEF;;GAEG;AACI,IAAM,iBAAiB,GAAG,UAAC,KAAY,EAAE,KAAa;IAC3D,IAAM,QAAQ,GAAG,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,4BAAoB,CAAC,CAAC,CAAC,6BAAqB,CAAC;IACjF,OAAO,QAAQ,CAAC,KAAuB,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;AAClE,CAAC,CAAC;AAHW,QAAA,iBAAiB,qBAG5B"}
|
package/skeleton/skeleton.js
CHANGED
|
@@ -5,11 +5,29 @@ var tslib_1 = require("tslib");
|
|
|
5
5
|
var react_1 = tslib_1.__importDefault(require("react"));
|
|
6
6
|
var tailwind_merge_config_1 = require("../tailwind-merge-config");
|
|
7
7
|
var skeleton_style_1 = require("./skeleton.style");
|
|
8
|
+
var skeleton_theme_1 = require("./skeleton-theme");
|
|
8
9
|
var react_2 = require("motion/react");
|
|
10
|
+
// Try to import the theme provider, but make it optional
|
|
11
|
+
var useThemeSafe = function () { return 'light'; };
|
|
12
|
+
try {
|
|
13
|
+
var useTheme = require('../provider').useTheme;
|
|
14
|
+
useThemeSafe = useTheme;
|
|
15
|
+
}
|
|
16
|
+
catch (_a) {
|
|
17
|
+
// Provider not available, use default
|
|
18
|
+
}
|
|
9
19
|
var Skeleton = function (_a) {
|
|
10
20
|
var className = _a.className, _b = _a.shape, shape = _b === void 0 ? 'rectangular' : _b, _c = _a.size, size = _c === void 0 ? 'medium' : _c, _d = _a.color, color = _d === void 0 ? 'primary' : _d, _e = _a.delay, delay = _e === void 0 ? 0 : _e, _f = _a.animation, animation = _f === void 0 ? 'pulse' : _f, rest = tslib_1.__rest(_a, ["className", "shape", "size", "color", "delay", "animation"]);
|
|
11
21
|
var selectedAnimation = skeleton_style_1.ANIMATIONS[animation];
|
|
12
|
-
|
|
22
|
+
// Try to get theme from provider, fallback to 'light'
|
|
23
|
+
var theme = 'light';
|
|
24
|
+
try {
|
|
25
|
+
theme = useThemeSafe();
|
|
26
|
+
}
|
|
27
|
+
catch (_g) {
|
|
28
|
+
// Not in provider, use default
|
|
29
|
+
}
|
|
30
|
+
return (react_1["default"].createElement(react_2.motion.div, tslib_1.__assign({ role: 'status', className: (0, tailwind_merge_config_1.twMerge)(className, (0, skeleton_theme_1.getSkeletonColors)(theme, color), size ? skeleton_style_1.SIZES[size] : 'h-fit', (0, skeleton_style_1.SHAPES)({ shape: shape, size: size })), initial: selectedAnimation.initial, animate: selectedAnimation.animate, transition: tslib_1.__assign(tslib_1.__assign({}, selectedAnimation.transition), { delay: delay }) }, rest)));
|
|
13
31
|
};
|
|
14
32
|
exports.Skeleton = Skeleton;
|
|
15
33
|
exports["default"] = exports.Skeleton;
|
package/skeleton/skeleton.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../skeleton/skeleton.tsx"],"names":[],"mappings":";;;;AAAA,wDAA0B;AAE1B,kEAAmD;AACnD,
|
|
1
|
+
{"version":3,"file":"skeleton.js","sourceRoot":"","sources":["../../skeleton/skeleton.tsx"],"names":[],"mappings":";;;;AAAA,wDAA0B;AAE1B,kEAAmD;AACnD,mDAA6D;AAC7D,mDAAqD;AACrD,sCAAsC;AAEtC,yDAAyD;AACzD,IAAI,YAAY,GAA2B,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC;AACzD,IAAI;IACM,IAAA,QAAQ,GAAK,OAAO,CAAC,aAAa,CAAC,SAA3B,CAA4B;IAC5C,YAAY,GAAG,QAAQ,CAAC;CACzB;AAAC,WAAM;IACN,sCAAsC;CACvC;AAEM,IAAM,QAAQ,GAAG,UAAC,EAQT;IAPd,IAAA,SAAS,eAAA,EACT,aAAqB,EAArB,KAAK,mBAAG,aAAa,KAAA,EACrB,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EACf,aAAiB,EAAjB,KAAK,mBAAG,SAAS,KAAA,EACjB,aAAS,EAAT,KAAK,mBAAG,CAAC,KAAA,EACT,iBAAmB,EAAnB,SAAS,mBAAG,OAAO,KAAA,EAChB,IAAI,sBAPgB,6DAQxB,CADQ;IAEP,IAAM,iBAAiB,GAAG,2BAAU,CAAC,SAAS,CAAC,CAAC;IAEhD,sDAAsD;IACtD,IAAI,KAAK,GAAqB,OAAO,CAAC;IACtC,IAAI;QACF,KAAK,GAAG,YAAY,EAAE,CAAC;KACxB;IAAC,WAAM;QACN,+BAA+B;KAChC;IAED,OAAO,CACL,iCAAC,cAAM,CAAC,GAAG,qBACT,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,IAAA,+BAAO,EAChB,SAAS,EACT,IAAA,kCAAiB,EAAC,KAAK,EAAE,KAAK,CAAC,EAC/B,IAAI,CAAC,CAAC,CAAC,sBAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,EAC5B,IAAA,uBAAM,EAAC,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CACrC,EACD,OAAO,EAAE,iBAAiB,CAAC,OAAO,EAClC,OAAO,EAAE,iBAAiB,CAAC,OAAO,EAClC,UAAU,wCACL,iBAAiB,CAAC,UAAU,KAC/B,KAAK,EAAE,KAAK,OAEV,IAAI,EACR,CACH,CAAC;AACJ,CAAC,CAAC;AArCW,QAAA,QAAQ,YAqCnB;AAEF,qBAAe,gBAAQ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Theme } from '../provider';
|
|
2
|
+
import { Colors } from '../types';
|
|
3
|
+
type ExtendedColors = Colors | 'tertiary';
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Slider Track Colors (Filled portion)
|
|
6
|
+
*/
|
|
7
|
+
export declare const TRACK_COLORS_LIGHT: Record<ExtendedColors, string>;
|
|
8
|
+
/**
|
|
9
|
+
* Dark Theme Slider Track Colors (Filled portion)
|
|
10
|
+
*/
|
|
11
|
+
export declare const TRACK_COLORS_DARK: Record<ExtendedColors, string>;
|
|
12
|
+
/**
|
|
13
|
+
* Light Theme Slider Thumb Border Colors
|
|
14
|
+
*/
|
|
15
|
+
export declare const BORDER_COLORS_LIGHT: Record<ExtendedColors, string>;
|
|
16
|
+
/**
|
|
17
|
+
* Dark Theme Slider Thumb Border Colors
|
|
18
|
+
*/
|
|
19
|
+
export declare const BORDER_COLORS_DARK: Record<ExtendedColors, string>;
|
|
20
|
+
/**
|
|
21
|
+
* Get track background color (unfilled portion)
|
|
22
|
+
*/
|
|
23
|
+
export declare const getTrackBackground: (theme: Theme) => string;
|
|
24
|
+
/**
|
|
25
|
+
* Get tooltip background color
|
|
26
|
+
*/
|
|
27
|
+
export declare const getTooltipBackground: (theme: Theme) => string;
|
|
28
|
+
/**
|
|
29
|
+
* Get tooltip text color
|
|
30
|
+
*/
|
|
31
|
+
export declare const getTooltipTextColor: (theme: Theme) => string;
|
|
32
|
+
/**
|
|
33
|
+
* Get value label text color
|
|
34
|
+
*/
|
|
35
|
+
export declare const getValueLabelColor: (theme: Theme) => string;
|
|
36
|
+
/**
|
|
37
|
+
* Get step mark color
|
|
38
|
+
*/
|
|
39
|
+
export declare const getStepMarkColor: (theme: Theme) => string;
|
|
40
|
+
/**
|
|
41
|
+
* Get bullet color
|
|
42
|
+
*/
|
|
43
|
+
export declare const getBulletColor: (theme: Theme) => string;
|
|
44
|
+
/**
|
|
45
|
+
* Get disabled border color
|
|
46
|
+
*/
|
|
47
|
+
export declare const getDisabledBorderColor: (theme: Theme) => string;
|
|
48
|
+
/**
|
|
49
|
+
* Helper function to get slider track color based on theme
|
|
50
|
+
*/
|
|
51
|
+
export declare const getSliderTrackColor: (theme: Theme, color: Colors) => string;
|
|
52
|
+
/**
|
|
53
|
+
* Helper function to get slider border color based on theme
|
|
54
|
+
*/
|
|
55
|
+
export declare const getSliderBorderColor: (theme: Theme, color: Colors) => string;
|
|
56
|
+
/**
|
|
57
|
+
* Helper function to get all slider color classes based on theme
|
|
58
|
+
*/
|
|
59
|
+
export declare const getSliderColorClasses: (theme: Theme, color: Colors) => {
|
|
60
|
+
track: string;
|
|
61
|
+
border: string;
|
|
62
|
+
};
|
|
63
|
+
export {};
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getSliderColorClasses = exports.getSliderBorderColor = exports.getSliderTrackColor = exports.getDisabledBorderColor = exports.getBulletColor = exports.getStepMarkColor = exports.getValueLabelColor = exports.getTooltipTextColor = exports.getTooltipBackground = exports.getTrackBackground = exports.BORDER_COLORS_DARK = exports.BORDER_COLORS_LIGHT = exports.TRACK_COLORS_DARK = exports.TRACK_COLORS_LIGHT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Slider Track Colors (Filled portion)
|
|
6
|
+
*/
|
|
7
|
+
exports.TRACK_COLORS_LIGHT = {
|
|
8
|
+
primary: 'bg-primary-500',
|
|
9
|
+
secondary: 'bg-secondary-500',
|
|
10
|
+
tertiary: 'bg-tertiary-500',
|
|
11
|
+
info: 'bg-info-500',
|
|
12
|
+
danger: 'bg-danger-500',
|
|
13
|
+
warning: 'bg-warning-500',
|
|
14
|
+
success: 'bg-success-500',
|
|
15
|
+
control: 'bg-control-500',
|
|
16
|
+
inherit: 'bg-transparent',
|
|
17
|
+
slate: 'bg-slate-500',
|
|
18
|
+
zinc: 'bg-zinc-500',
|
|
19
|
+
neutral: 'bg-neutral-500',
|
|
20
|
+
stone: 'bg-stone-500',
|
|
21
|
+
red: 'bg-red-500',
|
|
22
|
+
orange: 'bg-orange-500',
|
|
23
|
+
amber: 'bg-amber-500',
|
|
24
|
+
yellow: 'bg-yellow-500',
|
|
25
|
+
lime: 'bg-lime-500',
|
|
26
|
+
green: 'bg-green-500',
|
|
27
|
+
emerald: 'bg-emerald-500',
|
|
28
|
+
teal: 'bg-teal-500',
|
|
29
|
+
cyan: 'bg-cyan-500',
|
|
30
|
+
sky: 'bg-sky-500',
|
|
31
|
+
blue: 'bg-blue-500',
|
|
32
|
+
indigo: 'bg-indigo-500',
|
|
33
|
+
violet: 'bg-violet-500',
|
|
34
|
+
purple: 'bg-purple-500',
|
|
35
|
+
fuchsia: 'bg-fuchsia-500',
|
|
36
|
+
pink: 'bg-pink-500',
|
|
37
|
+
rose: 'bg-rose-500'
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Dark Theme Slider Track Colors (Filled portion)
|
|
41
|
+
*/
|
|
42
|
+
exports.TRACK_COLORS_DARK = {
|
|
43
|
+
primary: 'bg-primary-400',
|
|
44
|
+
secondary: 'bg-secondary-400',
|
|
45
|
+
tertiary: 'bg-tertiary-400',
|
|
46
|
+
info: 'bg-info-400',
|
|
47
|
+
danger: 'bg-danger-400',
|
|
48
|
+
warning: 'bg-warning-400',
|
|
49
|
+
success: 'bg-success-400',
|
|
50
|
+
control: 'bg-control-400',
|
|
51
|
+
inherit: 'bg-transparent',
|
|
52
|
+
slate: 'bg-slate-400',
|
|
53
|
+
zinc: 'bg-zinc-400',
|
|
54
|
+
neutral: 'bg-neutral-400',
|
|
55
|
+
stone: 'bg-stone-400',
|
|
56
|
+
red: 'bg-red-400',
|
|
57
|
+
orange: 'bg-orange-400',
|
|
58
|
+
amber: 'bg-amber-400',
|
|
59
|
+
yellow: 'bg-yellow-400',
|
|
60
|
+
lime: 'bg-lime-400',
|
|
61
|
+
green: 'bg-green-400',
|
|
62
|
+
emerald: 'bg-emerald-400',
|
|
63
|
+
teal: 'bg-teal-400',
|
|
64
|
+
cyan: 'bg-cyan-400',
|
|
65
|
+
sky: 'bg-sky-400',
|
|
66
|
+
blue: 'bg-blue-400',
|
|
67
|
+
indigo: 'bg-indigo-400',
|
|
68
|
+
violet: 'bg-violet-400',
|
|
69
|
+
purple: 'bg-purple-400',
|
|
70
|
+
fuchsia: 'bg-fuchsia-400',
|
|
71
|
+
pink: 'bg-pink-400',
|
|
72
|
+
rose: 'bg-rose-400'
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Light Theme Slider Thumb Border Colors
|
|
76
|
+
*/
|
|
77
|
+
exports.BORDER_COLORS_LIGHT = {
|
|
78
|
+
primary: 'border-primary-500',
|
|
79
|
+
secondary: 'border-secondary-500',
|
|
80
|
+
tertiary: 'border-tertiary-500',
|
|
81
|
+
info: 'border-info-500',
|
|
82
|
+
danger: 'border-danger-500',
|
|
83
|
+
warning: 'border-warning-500',
|
|
84
|
+
success: 'border-success-500',
|
|
85
|
+
control: 'border-control-500',
|
|
86
|
+
inherit: 'border-transparent',
|
|
87
|
+
slate: 'border-slate-500',
|
|
88
|
+
zinc: 'border-zinc-500',
|
|
89
|
+
neutral: 'border-neutral-500',
|
|
90
|
+
stone: 'border-stone-500',
|
|
91
|
+
red: 'border-red-500',
|
|
92
|
+
orange: 'border-orange-500',
|
|
93
|
+
amber: 'border-amber-500',
|
|
94
|
+
yellow: 'border-yellow-500',
|
|
95
|
+
lime: 'border-lime-500',
|
|
96
|
+
green: 'border-green-500',
|
|
97
|
+
emerald: 'border-emerald-500',
|
|
98
|
+
teal: 'border-teal-500',
|
|
99
|
+
cyan: 'border-cyan-500',
|
|
100
|
+
sky: 'border-sky-500',
|
|
101
|
+
blue: 'border-blue-500',
|
|
102
|
+
indigo: 'border-indigo-500',
|
|
103
|
+
violet: 'border-violet-500',
|
|
104
|
+
purple: 'border-purple-500',
|
|
105
|
+
fuchsia: 'border-fuchsia-500',
|
|
106
|
+
pink: 'border-pink-500',
|
|
107
|
+
rose: 'border-rose-500'
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Dark Theme Slider Thumb Border Colors
|
|
111
|
+
*/
|
|
112
|
+
exports.BORDER_COLORS_DARK = {
|
|
113
|
+
primary: 'border-primary-400',
|
|
114
|
+
secondary: 'border-secondary-400',
|
|
115
|
+
tertiary: 'border-tertiary-400',
|
|
116
|
+
info: 'border-info-400',
|
|
117
|
+
danger: 'border-danger-400',
|
|
118
|
+
warning: 'border-warning-400',
|
|
119
|
+
success: 'border-success-400',
|
|
120
|
+
control: 'border-control-400',
|
|
121
|
+
inherit: 'border-transparent',
|
|
122
|
+
slate: 'border-slate-400',
|
|
123
|
+
zinc: 'border-zinc-400',
|
|
124
|
+
neutral: 'border-neutral-400',
|
|
125
|
+
stone: 'border-stone-400',
|
|
126
|
+
red: 'border-red-400',
|
|
127
|
+
orange: 'border-orange-400',
|
|
128
|
+
amber: 'border-amber-400',
|
|
129
|
+
yellow: 'border-yellow-400',
|
|
130
|
+
lime: 'border-lime-400',
|
|
131
|
+
green: 'border-green-400',
|
|
132
|
+
emerald: 'border-emerald-400',
|
|
133
|
+
teal: 'border-teal-400',
|
|
134
|
+
cyan: 'border-cyan-400',
|
|
135
|
+
sky: 'border-sky-400',
|
|
136
|
+
blue: 'border-blue-400',
|
|
137
|
+
indigo: 'border-indigo-400',
|
|
138
|
+
violet: 'border-violet-400',
|
|
139
|
+
purple: 'border-purple-400',
|
|
140
|
+
fuchsia: 'border-fuchsia-400',
|
|
141
|
+
pink: 'border-pink-400',
|
|
142
|
+
rose: 'border-rose-400'
|
|
143
|
+
};
|
|
144
|
+
/**
|
|
145
|
+
* Get track background color (unfilled portion)
|
|
146
|
+
*/
|
|
147
|
+
var getTrackBackground = function (theme) {
|
|
148
|
+
return theme === 'dark' ? 'bg-gray-600' : 'bg-control-400';
|
|
149
|
+
};
|
|
150
|
+
exports.getTrackBackground = getTrackBackground;
|
|
151
|
+
/**
|
|
152
|
+
* Get tooltip background color
|
|
153
|
+
*/
|
|
154
|
+
var getTooltipBackground = function (theme) {
|
|
155
|
+
return theme === 'dark' ? 'bg-gray-700' : 'bg-control-800';
|
|
156
|
+
};
|
|
157
|
+
exports.getTooltipBackground = getTooltipBackground;
|
|
158
|
+
/**
|
|
159
|
+
* Get tooltip text color
|
|
160
|
+
*/
|
|
161
|
+
var getTooltipTextColor = function (theme) {
|
|
162
|
+
return theme === 'dark' ? 'text-gray-100' : 'text-white';
|
|
163
|
+
};
|
|
164
|
+
exports.getTooltipTextColor = getTooltipTextColor;
|
|
165
|
+
/**
|
|
166
|
+
* Get value label text color
|
|
167
|
+
*/
|
|
168
|
+
var getValueLabelColor = function (theme) {
|
|
169
|
+
return theme === 'dark' ? 'text-gray-300' : 'text-control-700';
|
|
170
|
+
};
|
|
171
|
+
exports.getValueLabelColor = getValueLabelColor;
|
|
172
|
+
/**
|
|
173
|
+
* Get step mark color
|
|
174
|
+
*/
|
|
175
|
+
var getStepMarkColor = function (theme) {
|
|
176
|
+
return theme === 'dark' ? 'bg-gray-500' : 'bg-white';
|
|
177
|
+
};
|
|
178
|
+
exports.getStepMarkColor = getStepMarkColor;
|
|
179
|
+
/**
|
|
180
|
+
* Get bullet color
|
|
181
|
+
*/
|
|
182
|
+
var getBulletColor = function (theme) {
|
|
183
|
+
return theme === 'dark' ? 'bg-control-900' : 'bg-white';
|
|
184
|
+
};
|
|
185
|
+
exports.getBulletColor = getBulletColor;
|
|
186
|
+
/**
|
|
187
|
+
* Get disabled border color
|
|
188
|
+
*/
|
|
189
|
+
var getDisabledBorderColor = function (theme) {
|
|
190
|
+
return theme === 'dark' ? 'border-gray-500' : 'border-control-300';
|
|
191
|
+
};
|
|
192
|
+
exports.getDisabledBorderColor = getDisabledBorderColor;
|
|
193
|
+
/**
|
|
194
|
+
* Helper function to get slider track color based on theme
|
|
195
|
+
*/
|
|
196
|
+
var getSliderTrackColor = function (theme, color) {
|
|
197
|
+
var colorMap = theme === 'dark' ? exports.TRACK_COLORS_DARK : exports.TRACK_COLORS_LIGHT;
|
|
198
|
+
return colorMap[color] || colorMap['control'];
|
|
199
|
+
};
|
|
200
|
+
exports.getSliderTrackColor = getSliderTrackColor;
|
|
201
|
+
/**
|
|
202
|
+
* Helper function to get slider border color based on theme
|
|
203
|
+
*/
|
|
204
|
+
var getSliderBorderColor = function (theme, color) {
|
|
205
|
+
var colorMap = theme === 'dark' ? exports.BORDER_COLORS_DARK : exports.BORDER_COLORS_LIGHT;
|
|
206
|
+
return colorMap[color] || colorMap['control'];
|
|
207
|
+
};
|
|
208
|
+
exports.getSliderBorderColor = getSliderBorderColor;
|
|
209
|
+
/**
|
|
210
|
+
* Helper function to get all slider color classes based on theme
|
|
211
|
+
*/
|
|
212
|
+
var getSliderColorClasses = function (theme, color) {
|
|
213
|
+
return {
|
|
214
|
+
track: (0, exports.getSliderTrackColor)(theme, color),
|
|
215
|
+
border: (0, exports.getSliderBorderColor)(theme, color)
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
exports.getSliderColorClasses = getSliderColorClasses;
|
|
219
|
+
//# sourceMappingURL=slider-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider-theme.js","sourceRoot":"","sources":["../../slider/slider-theme.ts"],"names":[],"mappings":";;;AAMA;;GAEG;AACU,QAAA,kBAAkB,GAAmC;IAChE,OAAO,EAAE,gBAAgB;IACzB,SAAS,EAAE,kBAAkB;IAC7B,QAAQ,EAAE,iBAAiB;IAC3B,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IACzB,OAAO,EAAE,gBAAgB;IACzB,KAAK,EAAE,cAAc;IACrB,IAAI,EAAE,aAAa;IACnB,OAAO,EAAE,gBAAgB;IACzB,KAAK,EAAE,cAAc;IACrB,GAAG,EAAE,YAAY;IACjB,MAAM,EAAE,eAAe;IACvB,KAAK,EAAE,cAAc;IACrB,MAAM,EAAE,eAAe;IACvB,IAAI,EAAE,aAAa;IACnB,KAAK,EAAE,cAAc;IACrB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAAE,aAAa;IACnB,IAAI,EAAE,aAAa;IACnB,GAAG,EAAE,YAAY;IACjB,IAAI,EAAE,aAAa;IACnB,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;IACvB,MAAM,EAAE,eAAe;IACvB,OAAO,EAAE,gBAAgB;IACzB,IAAI,EAA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