@docsplain-kit/core 0.0.49 → 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/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/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,OAA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O,EAAE,0CAA0C;IACnD,SAAS,EAAE,4CAA4C;IACvD,OAAO,EAAE,0CAA0C;IACnD,QAAQ,EAAE,2CAA2C;IACrD,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,uCAAuC;IAC7C,OAAO,EAAE,qCAAqC;IAC9C,KAAK,EAAE,wCAAwC;IAC/C,IAAI,EAAE,uCAAuC;IAC7C,OAAO,EAAE,0CAA0C;IACnD,KAAK,EAAE,wCAAwC;IAC/C,GAAG,EAAE,sCAAsC;IAC3C,MAAM,EAAE,yCAAyC;IACjD,KAAK,EAAE,wCAAwC;IAC/C,MAAM,EAAE,yCAAyC;IACjD,IAAI,EAAE,uCAAuC;IAC7C,KAAK,EAAE,wCAAwC;IAC/C,OAAO,EAAE,0CAA0C;IACnD,IAAI,EAAE,uCAAuC;IAC7C,IAAI,EAAE,uCAAuC;IAC7C,GAAG,EAAE,sCAAsC;IAC3C,IAAI,EAAE,uCAAuC;IAC7C,MAAM,EAAE,yCAAyC;IACjD,MAAM,EAAE,yCAAyC;IACjD,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"}
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
3
|
exports.getTabStyles = exports.ICON_SIZES = exports.TAB_COLORS = exports.TAB_SIZES = void 0;
|
|
4
|
+
var tab_theme_1 = require("../tab-theme");
|
|
5
|
+
// Try to import the theme provider, but make it optional
|
|
6
|
+
var useThemeSafe = function () { return 'light'; };
|
|
7
|
+
try {
|
|
8
|
+
var useTheme = require('../../provider').useTheme;
|
|
9
|
+
useThemeSafe = useTheme;
|
|
10
|
+
}
|
|
11
|
+
catch (_a) {
|
|
12
|
+
// Provider not available, use default
|
|
13
|
+
}
|
|
4
14
|
exports.TAB_SIZES = {
|
|
5
15
|
tiny: 'px-2 py-1 text-xs min-h-6',
|
|
6
16
|
small: 'px-3 py-1.5 text-sm min-h-8',
|
|
@@ -8,6 +18,8 @@ exports.TAB_SIZES = {
|
|
|
8
18
|
large: 'px-5 py-2.5 text-lg min-h-12',
|
|
9
19
|
huge: 'px-6 py-3 text-xl min-h-14'
|
|
10
20
|
};
|
|
21
|
+
// Legacy TAB_COLORS kept for backwards compatibility
|
|
22
|
+
// New code should use getTabColors from tab-theme.ts
|
|
11
23
|
exports.TAB_COLORS = {
|
|
12
24
|
primary: {
|
|
13
25
|
selected: 'text-primary',
|
|
@@ -165,14 +177,17 @@ exports.ICON_SIZES = {
|
|
|
165
177
|
var getTabStyles = function (color, size, selected, disabled, vertical) {
|
|
166
178
|
var baseStyles = "flex items-center justify-start gap-2 transition-all duration-200 ease-in-out cursor-pointer whitespace-nowrap ".concat(vertical ? 'w-full' : '');
|
|
167
179
|
var sizeStyles = exports.TAB_SIZES[size];
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
180
|
+
// Try to get theme from provider, fallback to 'light'
|
|
181
|
+
var theme = 'light';
|
|
182
|
+
try {
|
|
183
|
+
theme = useThemeSafe();
|
|
171
184
|
}
|
|
172
|
-
|
|
173
|
-
|
|
185
|
+
catch (_a) {
|
|
186
|
+
// Not in provider, use default
|
|
174
187
|
}
|
|
175
|
-
|
|
188
|
+
// Use theme-aware colors
|
|
189
|
+
var colorStyles = (0, tab_theme_1.getTabColors)(theme, color, selected, disabled);
|
|
190
|
+
return "".concat(baseStyles, " ").concat(sizeStyles, " ").concat(colorStyles);
|
|
176
191
|
};
|
|
177
192
|
exports.getTabStyles = getTabStyles;
|
|
178
193
|
//# sourceMappingURL=tab-item.style.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab-item.style.js","sourceRoot":"","sources":["../../../tab/tab-item/tab-item.style.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"tab-item.style.js","sourceRoot":"","sources":["../../../tab/tab-item/tab-item.style.ts"],"names":[],"mappings":";;;AACA,0CAA4C;AAE5C,yDAAyD;AACzD,IAAI,YAAY,GAA2B,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC;AACzD,IAAI;IACM,IAAA,QAAQ,GAAK,OAAO,CAAC,gBAAgB,CAAC,SAA9B,CAA+B;IAC/C,YAAY,GAAG,QAAQ,CAAC;CACzB;AAAC,WAAM;IACN,sCAAsC;CACvC;AAEY,QAAA,SAAS,GAAG;IACvB,IAAI,EAAE,2BAA2B;IACjC,KAAK,EAAE,6BAA6B;IACpC,MAAM,EAAE,8BAA8B;IACtC,KAAK,EAAE,8BAA8B;IACrC,IAAI,EAAE,4BAA4B;CACnC,CAAC;AAEF,qDAAqD;AACrD,qDAAqD;AACxC,QAAA,UAAU,GAAG;IACxB,OAAO,EAAE;QACP,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,qDAAqD;QACjE,QAAQ,EAAE,uCAAuC;KAClD;IACD,SAAS,EAAE;QACT,QAAQ,EAAE,gBAAgB;QAC1B,UAAU,EAAE,yDAAyD;QACrE,QAAQ,EAAE,uCAAuC;KAClD;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,WAAW;QACrB,UAAU,EAAE,+CAA+C;QAC3D,QAAQ,EAAE,uCAAuC;KAClD;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,cAAc;QACxB,UAAU,EAAE,qDAAqD;QACjE,QAAQ,EAAE,uCAAuC;KAClD;IACD,OAAO,EAAE;QACP,QAAQ,EAAE,cAAc;QACxB,U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,QAAQ,EAAE,eAAe;QACzB,UAAU,EAAE,mDAAmD;QAC/D,QAAQ,EAAE,uCAAuC;KAClD;CACF,CAAC;AAEW,QAAA,UAAU,GAAG;IACxB,IAAI,EAAE,SAAS;IACf,KAAK,EAAE,SAAS;IAChB,MAAM,EAAE,SAAS;IACjB,KAAK,EAAE,SAAS;IAChB,IAAI,EAAE,SAAS;CAChB,CAAC;AAEK,IAAM,YAAY,GAAG,UAAC,KAAa,EAAE,IAAW,EAAE,QAAiB,EAAE,QAAiB,EAAE,QAAiB;IAC9G,IAAM,UAAU,GAAG,yHAAkH,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAE,CAAC;IAChK,IAAM,UAAU,GAAG,iBAAS,CAAC,IAAI,CAAC,CAAC;IAEnC,sDAAsD;IACtD,IAAI,KAAK,GAAqB,OAAO,CAAC;IACtC,IAAI;QACF,KAAK,GAAG,YAAY,EAAE,CAAC;KACxB;IAAC,WAAM;QACN,+BAA+B;KAChC;IAED,yBAAyB;IACzB,IAAM,WAAW,GAAG,IAAA,wBAAY,EAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,CAAC,CAAC;IAEnE,OAAO,UAAG,UAAU,cAAI,UAAU,cAAI,WAAW,CAAE,CAAC;AACtD,CAAC,CAAC;AAhBW,QAAA,YAAY,gBAgBvB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Theme } from '../provider';
|
|
2
|
+
import { Colors } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Light Theme Tab Colors - Selected
|
|
5
|
+
*/
|
|
6
|
+
export declare const TAB_SELECTED_LIGHT: Record<Colors, string>;
|
|
7
|
+
/**
|
|
8
|
+
* Dark Theme Tab Colors - Selected
|
|
9
|
+
*/
|
|
10
|
+
export declare const TAB_SELECTED_DARK: Record<Colors, string>;
|
|
11
|
+
/**
|
|
12
|
+
* Light Theme Tab Colors - Unselected
|
|
13
|
+
*/
|
|
14
|
+
export declare const TAB_UNSELECTED_LIGHT: Record<Colors, string>;
|
|
15
|
+
/**
|
|
16
|
+
* Dark Theme Tab Colors - Unselected
|
|
17
|
+
*/
|
|
18
|
+
export declare const TAB_UNSELECTED_DARK: Record<Colors, string>;
|
|
19
|
+
/**
|
|
20
|
+
* Light Theme Tab Colors - Disabled
|
|
21
|
+
*/
|
|
22
|
+
export declare const TAB_DISABLED_LIGHT: Record<Colors, string>;
|
|
23
|
+
/**
|
|
24
|
+
* Dark Theme Tab Colors - Disabled
|
|
25
|
+
*/
|
|
26
|
+
export declare const TAB_DISABLED_DARK: Record<Colors, string>;
|
|
27
|
+
/**
|
|
28
|
+
* Get scroll button background based on theme
|
|
29
|
+
*/
|
|
30
|
+
export declare const getScrollButtonBackground: (theme: Theme) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Get overflow menu background based on theme
|
|
33
|
+
*/
|
|
34
|
+
export declare const getOverflowMenuBackground: (theme: Theme) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Get overflow menu border based on theme
|
|
37
|
+
*/
|
|
38
|
+
export declare const getOverflowMenuBorder: (theme: Theme) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Helper function to get tab colors based on theme
|
|
41
|
+
*/
|
|
42
|
+
export declare const getTabColors: (theme: Theme, color: Colors, selected: boolean, disabled: boolean) => string;
|
package/tab/tab-theme.js
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getTabColors = exports.getOverflowMenuBorder = exports.getOverflowMenuBackground = exports.getScrollButtonBackground = exports.TAB_DISABLED_DARK = exports.TAB_DISABLED_LIGHT = exports.TAB_UNSELECTED_DARK = exports.TAB_UNSELECTED_LIGHT = exports.TAB_SELECTED_DARK = exports.TAB_SELECTED_LIGHT = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Tab Colors - Selected
|
|
6
|
+
*/
|
|
7
|
+
exports.TAB_SELECTED_LIGHT = {
|
|
8
|
+
primary: 'text-primary',
|
|
9
|
+
secondary: 'text-secondary',
|
|
10
|
+
info: 'text-info',
|
|
11
|
+
success: 'text-success',
|
|
12
|
+
warning: 'text-warning',
|
|
13
|
+
danger: 'text-danger',
|
|
14
|
+
control: 'text-control-dark',
|
|
15
|
+
inherit: 'text-inherit',
|
|
16
|
+
slate: 'text-slate-600',
|
|
17
|
+
zinc: 'text-zinc-600',
|
|
18
|
+
neutral: 'text-neutral-600',
|
|
19
|
+
stone: 'text-stone-600',
|
|
20
|
+
red: 'text-red-600',
|
|
21
|
+
orange: 'text-orange-600',
|
|
22
|
+
amber: 'text-amber-600',
|
|
23
|
+
yellow: 'text-yellow-600',
|
|
24
|
+
lime: 'text-lime-600',
|
|
25
|
+
green: 'text-green-600',
|
|
26
|
+
emerald: 'text-emerald-600',
|
|
27
|
+
teal: 'text-teal-600',
|
|
28
|
+
cyan: 'text-cyan-600',
|
|
29
|
+
sky: 'text-sky-600',
|
|
30
|
+
blue: 'text-blue-600',
|
|
31
|
+
indigo: 'text-indigo-600',
|
|
32
|
+
violet: 'text-violet-600',
|
|
33
|
+
purple: 'text-purple-600',
|
|
34
|
+
fuchsia: 'text-fuchsia-600',
|
|
35
|
+
pink: 'text-pink-600',
|
|
36
|
+
rose: 'text-rose-600'
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* Dark Theme Tab Colors - Selected
|
|
40
|
+
*/
|
|
41
|
+
exports.TAB_SELECTED_DARK = {
|
|
42
|
+
primary: 'text-primary-400',
|
|
43
|
+
secondary: 'text-secondary-400',
|
|
44
|
+
info: 'text-info-400',
|
|
45
|
+
success: 'text-success-400',
|
|
46
|
+
warning: 'text-warning-400',
|
|
47
|
+
danger: 'text-danger-400',
|
|
48
|
+
control: 'text-gray-300',
|
|
49
|
+
inherit: 'text-inherit',
|
|
50
|
+
slate: 'text-slate-400',
|
|
51
|
+
zinc: 'text-zinc-400',
|
|
52
|
+
neutral: 'text-neutral-400',
|
|
53
|
+
stone: 'text-stone-400',
|
|
54
|
+
red: 'text-red-400',
|
|
55
|
+
orange: 'text-orange-400',
|
|
56
|
+
amber: 'text-amber-400',
|
|
57
|
+
yellow: 'text-yellow-400',
|
|
58
|
+
lime: 'text-lime-400',
|
|
59
|
+
green: 'text-green-400',
|
|
60
|
+
emerald: 'text-emerald-400',
|
|
61
|
+
teal: 'text-teal-400',
|
|
62
|
+
cyan: 'text-cyan-400',
|
|
63
|
+
sky: 'text-sky-400',
|
|
64
|
+
blue: 'text-blue-400',
|
|
65
|
+
indigo: 'text-indigo-400',
|
|
66
|
+
violet: 'text-violet-400',
|
|
67
|
+
purple: 'text-purple-400',
|
|
68
|
+
fuchsia: 'text-fuchsia-400',
|
|
69
|
+
pink: 'text-pink-400',
|
|
70
|
+
rose: 'text-rose-400'
|
|
71
|
+
};
|
|
72
|
+
/**
|
|
73
|
+
* Light Theme Tab Colors - Unselected
|
|
74
|
+
*/
|
|
75
|
+
exports.TAB_UNSELECTED_LIGHT = {
|
|
76
|
+
primary: 'text-control hover:text-primary hover:bg-primary-50',
|
|
77
|
+
secondary: 'text-control hover:text-secondary hover:bg-secondary-50',
|
|
78
|
+
info: 'text-control hover:text-info hover:bg-info-50',
|
|
79
|
+
success: 'text-control hover:text-success hover:bg-success-50',
|
|
80
|
+
warning: 'text-control hover:text-warning hover:bg-warning-50',
|
|
81
|
+
danger: 'text-control hover:text-danger hover:bg-danger-50',
|
|
82
|
+
control: 'text-control hover:text-control-dark hover:bg-control-50',
|
|
83
|
+
inherit: 'text-inherit hover:opacity-80',
|
|
84
|
+
slate: 'text-control hover:text-slate-600 hover:bg-slate-50',
|
|
85
|
+
zinc: 'text-control hover:text-zinc-600 hover:bg-zinc-50',
|
|
86
|
+
neutral: 'text-control hover:text-neutral-600 hover:bg-neutral-50',
|
|
87
|
+
stone: 'text-control hover:text-stone-600 hover:bg-stone-50',
|
|
88
|
+
red: 'text-control hover:text-red-600 hover:bg-red-50',
|
|
89
|
+
orange: 'text-control hover:text-orange-600 hover:bg-orange-50',
|
|
90
|
+
amber: 'text-control hover:text-amber-600 hover:bg-amber-50',
|
|
91
|
+
yellow: 'text-control hover:text-yellow-600 hover:bg-yellow-50',
|
|
92
|
+
lime: 'text-control hover:text-lime-600 hover:bg-lime-50',
|
|
93
|
+
green: 'text-control hover:text-green-600 hover:bg-green-50',
|
|
94
|
+
emerald: 'text-control hover:text-emerald-600 hover:bg-emerald-50',
|
|
95
|
+
teal: 'text-control hover:text-teal-600 hover:bg-teal-50',
|
|
96
|
+
cyan: 'text-control hover:text-cyan-600 hover:bg-cyan-50',
|
|
97
|
+
sky: 'text-control hover:text-sky-600 hover:bg-sky-50',
|
|
98
|
+
blue: 'text-control hover:text-blue-600 hover:bg-blue-50',
|
|
99
|
+
indigo: 'text-control hover:text-indigo-600 hover:bg-indigo-50',
|
|
100
|
+
violet: 'text-control hover:text-violet-600 hover:bg-violet-50',
|
|
101
|
+
purple: 'text-control hover:text-purple-600 hover:bg-purple-50',
|
|
102
|
+
fuchsia: 'text-control hover:text-fuchsia-600 hover:bg-fuchsia-50',
|
|
103
|
+
pink: 'text-control hover:text-pink-600 hover:bg-pink-50',
|
|
104
|
+
rose: 'text-control hover:text-rose-600 hover:bg-rose-50'
|
|
105
|
+
};
|
|
106
|
+
/**
|
|
107
|
+
* Dark Theme Tab Colors - Unselected
|
|
108
|
+
*/
|
|
109
|
+
exports.TAB_UNSELECTED_DARK = {
|
|
110
|
+
primary: 'text-gray-400 hover:text-primary-300 hover:bg-primary-950',
|
|
111
|
+
secondary: 'text-gray-400 hover:text-secondary-300 hover:bg-secondary-950',
|
|
112
|
+
info: 'text-gray-400 hover:text-info-300 hover:bg-info-950',
|
|
113
|
+
success: 'text-gray-400 hover:text-success-300 hover:bg-success-950',
|
|
114
|
+
warning: 'text-gray-400 hover:text-warning-300 hover:bg-warning-950',
|
|
115
|
+
danger: 'text-gray-400 hover:text-danger-300 hover:bg-danger-950',
|
|
116
|
+
control: 'text-gray-500 hover:text-gray-300 hover:bg-gray-800',
|
|
117
|
+
inherit: 'text-inherit hover:opacity-80',
|
|
118
|
+
slate: 'text-gray-400 hover:text-slate-300 hover:bg-slate-950',
|
|
119
|
+
zinc: 'text-gray-400 hover:text-zinc-300 hover:bg-zinc-950',
|
|
120
|
+
neutral: 'text-gray-400 hover:text-neutral-300 hover:bg-neutral-950',
|
|
121
|
+
stone: 'text-gray-400 hover:text-stone-300 hover:bg-stone-950',
|
|
122
|
+
red: 'text-gray-400 hover:text-red-300 hover:bg-red-950',
|
|
123
|
+
orange: 'text-gray-400 hover:text-orange-300 hover:bg-orange-950',
|
|
124
|
+
amber: 'text-gray-400 hover:text-amber-300 hover:bg-amber-950',
|
|
125
|
+
yellow: 'text-gray-400 hover:text-yellow-300 hover:bg-yellow-950',
|
|
126
|
+
lime: 'text-gray-400 hover:text-lime-300 hover:bg-lime-950',
|
|
127
|
+
green: 'text-gray-400 hover:text-green-300 hover:bg-green-950',
|
|
128
|
+
emerald: 'text-gray-400 hover:text-emerald-300 hover:bg-emerald-950',
|
|
129
|
+
teal: 'text-gray-400 hover:text-teal-300 hover:bg-teal-950',
|
|
130
|
+
cyan: 'text-gray-400 hover:text-cyan-300 hover:bg-cyan-950',
|
|
131
|
+
sky: 'text-gray-400 hover:text-sky-300 hover:bg-sky-950',
|
|
132
|
+
blue: 'text-gray-400 hover:text-blue-300 hover:bg-blue-950',
|
|
133
|
+
indigo: 'text-gray-400 hover:text-indigo-300 hover:bg-indigo-950',
|
|
134
|
+
violet: 'text-gray-400 hover:text-violet-300 hover:bg-violet-950',
|
|
135
|
+
purple: 'text-gray-400 hover:text-purple-300 hover:bg-purple-950',
|
|
136
|
+
fuchsia: 'text-gray-400 hover:text-fuchsia-300 hover:bg-fuchsia-950',
|
|
137
|
+
pink: 'text-gray-400 hover:text-pink-300 hover:bg-pink-950',
|
|
138
|
+
rose: 'text-gray-400 hover:text-rose-300 hover:bg-rose-950'
|
|
139
|
+
};
|
|
140
|
+
/**
|
|
141
|
+
* Light Theme Tab Colors - Disabled
|
|
142
|
+
*/
|
|
143
|
+
exports.TAB_DISABLED_LIGHT = {
|
|
144
|
+
primary: 'text-control-light cursor-not-allowed',
|
|
145
|
+
secondary: 'text-control-light cursor-not-allowed',
|
|
146
|
+
info: 'text-control-light cursor-not-allowed',
|
|
147
|
+
success: 'text-control-light cursor-not-allowed',
|
|
148
|
+
warning: 'text-control-light cursor-not-allowed',
|
|
149
|
+
danger: 'text-control-light cursor-not-allowed',
|
|
150
|
+
control: 'text-control-light cursor-not-allowed',
|
|
151
|
+
inherit: 'text-inherit opacity-50 cursor-not-allowed',
|
|
152
|
+
slate: 'text-control-light cursor-not-allowed',
|
|
153
|
+
zinc: 'text-control-light cursor-not-allowed',
|
|
154
|
+
neutral: 'text-control-light cursor-not-allowed',
|
|
155
|
+
stone: 'text-control-light cursor-not-allowed',
|
|
156
|
+
red: 'text-control-light cursor-not-allowed',
|
|
157
|
+
orange: 'text-control-light cursor-not-allowed',
|
|
158
|
+
amber: 'text-control-light cursor-not-allowed',
|
|
159
|
+
yellow: 'text-control-light cursor-not-allowed',
|
|
160
|
+
lime: 'text-control-light cursor-not-allowed',
|
|
161
|
+
green: 'text-control-light cursor-not-allowed',
|
|
162
|
+
emerald: 'text-control-light cursor-not-allowed',
|
|
163
|
+
teal: 'text-control-light cursor-not-allowed',
|
|
164
|
+
cyan: 'text-control-light cursor-not-allowed',
|
|
165
|
+
sky: 'text-control-light cursor-not-allowed',
|
|
166
|
+
blue: 'text-control-light cursor-not-allowed',
|
|
167
|
+
indigo: 'text-control-light cursor-not-allowed',
|
|
168
|
+
violet: 'text-control-light cursor-not-allowed',
|
|
169
|
+
purple: 'text-control-light cursor-not-allowed',
|
|
170
|
+
fuchsia: 'text-control-light cursor-not-allowed',
|
|
171
|
+
pink: 'text-control-light cursor-not-allowed',
|
|
172
|
+
rose: 'text-control-light cursor-not-allowed'
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Dark Theme Tab Colors - Disabled
|
|
176
|
+
*/
|
|
177
|
+
exports.TAB_DISABLED_DARK = {
|
|
178
|
+
primary: 'text-gray-600 cursor-not-allowed',
|
|
179
|
+
secondary: 'text-gray-600 cursor-not-allowed',
|
|
180
|
+
info: 'text-gray-600 cursor-not-allowed',
|
|
181
|
+
success: 'text-gray-600 cursor-not-allowed',
|
|
182
|
+
warning: 'text-gray-600 cursor-not-allowed',
|
|
183
|
+
danger: 'text-gray-600 cursor-not-allowed',
|
|
184
|
+
control: 'text-gray-600 cursor-not-allowed',
|
|
185
|
+
inherit: 'text-inherit opacity-50 cursor-not-allowed',
|
|
186
|
+
slate: 'text-gray-600 cursor-not-allowed',
|
|
187
|
+
zinc: 'text-gray-600 cursor-not-allowed',
|
|
188
|
+
neutral: 'text-gray-600 cursor-not-allowed',
|
|
189
|
+
stone: 'text-gray-600 cursor-not-allowed',
|
|
190
|
+
red: 'text-gray-600 cursor-not-allowed',
|
|
191
|
+
orange: 'text-gray-600 cursor-not-allowed',
|
|
192
|
+
amber: 'text-gray-600 cursor-not-allowed',
|
|
193
|
+
yellow: 'text-gray-600 cursor-not-allowed',
|
|
194
|
+
lime: 'text-gray-600 cursor-not-allowed',
|
|
195
|
+
green: 'text-gray-600 cursor-not-allowed',
|
|
196
|
+
emerald: 'text-gray-600 cursor-not-allowed',
|
|
197
|
+
teal: 'text-gray-600 cursor-not-allowed',
|
|
198
|
+
cyan: 'text-gray-600 cursor-not-allowed',
|
|
199
|
+
sky: 'text-gray-600 cursor-not-allowed',
|
|
200
|
+
blue: 'text-gray-600 cursor-not-allowed',
|
|
201
|
+
indigo: 'text-gray-600 cursor-not-allowed',
|
|
202
|
+
violet: 'text-gray-600 cursor-not-allowed',
|
|
203
|
+
purple: 'text-gray-600 cursor-not-allowed',
|
|
204
|
+
fuchsia: 'text-gray-600 cursor-not-allowed',
|
|
205
|
+
pink: 'text-gray-600 cursor-not-allowed',
|
|
206
|
+
rose: 'text-gray-600 cursor-not-allowed'
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* Get scroll button background based on theme
|
|
210
|
+
*/
|
|
211
|
+
var getScrollButtonBackground = function (theme) {
|
|
212
|
+
return theme === 'dark' ? 'bg-gray-800' : 'bg-white';
|
|
213
|
+
};
|
|
214
|
+
exports.getScrollButtonBackground = getScrollButtonBackground;
|
|
215
|
+
/**
|
|
216
|
+
* Get overflow menu background based on theme
|
|
217
|
+
*/
|
|
218
|
+
var getOverflowMenuBackground = function (theme) {
|
|
219
|
+
return theme === 'dark' ? 'bg-gray-800' : 'bg-white';
|
|
220
|
+
};
|
|
221
|
+
exports.getOverflowMenuBackground = getOverflowMenuBackground;
|
|
222
|
+
/**
|
|
223
|
+
* Get overflow menu border based on theme
|
|
224
|
+
*/
|
|
225
|
+
var getOverflowMenuBorder = function (theme) {
|
|
226
|
+
return theme === 'dark' ? 'border-gray-700' : 'border-control-300';
|
|
227
|
+
};
|
|
228
|
+
exports.getOverflowMenuBorder = getOverflowMenuBorder;
|
|
229
|
+
/**
|
|
230
|
+
* Helper function to get tab colors based on theme
|
|
231
|
+
*/
|
|
232
|
+
var getTabColors = function (theme, color, selected, disabled) {
|
|
233
|
+
if (disabled) {
|
|
234
|
+
return theme === 'dark' ? exports.TAB_DISABLED_DARK[color] : exports.TAB_DISABLED_LIGHT[color];
|
|
235
|
+
}
|
|
236
|
+
if (selected) {
|
|
237
|
+
return theme === 'dark' ? exports.TAB_SELECTED_DARK[color] : exports.TAB_SELECTED_LIGHT[color];
|
|
238
|
+
}
|
|
239
|
+
return theme === 'dark' ? exports.TAB_UNSELECTED_DARK[color] : exports.TAB_UNSELECTED_LIGHT[color];
|
|
240
|
+
};
|
|
241
|
+
exports.getTabColors = getTabColors;
|
|
242
|
+
//# sourceMappingURL=tab-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tab-theme.js","sourceRoot":"","sources":["../../tab/tab-theme.ts"],"names":[],"mappings":";;;AAGA;;GAEG;AAC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