@docsplain-kit/core 0.0.46 → 0.0.48
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/accordion/accordion-content/accordion-content.js +17 -1
- package/accordion/accordion-content/accordion-content.js.map +1 -1
- package/accordion/accordion-header/accordion-header.js +16 -1
- package/accordion/accordion-header/accordion-header.js.map +1 -1
- package/accordion/accordion-item/accordion-item.js +20 -3
- package/accordion/accordion-item/accordion-item.js.map +1 -1
- package/accordion/accordion-item/accordion-item.style.d.ts +0 -33
- package/accordion/accordion-item/accordion-item.style.js +1 -34
- package/accordion/accordion-item/accordion-item.style.js.map +1 -1
- package/accordion/accordion-item/accordion-item.theme.d.ts +158 -0
- package/accordion/accordion-item/accordion-item.theme.js +171 -0
- package/accordion/accordion-item/accordion-item.theme.js.map +1 -0
- package/alert/alert-theme.d.ts +22 -0
- package/alert/alert-theme.js +60 -0
- package/alert/alert-theme.js.map +1 -0
- package/alert/alert.js +11 -2
- package/alert/alert.js.map +1 -1
- package/avatar/avatar-theme.d.ts +14 -0
- package/avatar/avatar-theme.js +81 -0
- package/avatar/avatar-theme.js.map +1 -0
- package/avatar/avatar.js +11 -1
- package/avatar/avatar.js.map +1 -1
- package/avatar/avatar.props.d.ts +1 -1
- package/avatar/index.d.ts +1 -1
- package/badge/badge-theme.d.ts +16 -0
- package/badge/badge-theme.js +82 -0
- package/badge/badge-theme.js.map +1 -0
- package/badge/badge.js +11 -1
- package/badge/badge.js.map +1 -1
- package/button/button.js +34 -1
- package/button/button.js.map +1 -1
- package/button/button.style.d.ts +1 -146
- package/button/button.style.js +1 -156
- package/button/button.style.js.map +1 -1
- package/button/button.theme.d.ts +314 -0
- package/button/button.theme.js +344 -0
- package/button/button.theme.js.map +1 -0
- package/checkbox/checkbox-theme.d.ts +16 -0
- package/checkbox/checkbox-theme.js +82 -0
- package/checkbox/checkbox-theme.js.map +1 -0
- package/checkbox/checkbox.js +13 -3
- package/checkbox/checkbox.js.map +1 -1
- package/chip/chip-theme.d.ts +370 -0
- package/chip/chip-theme.js +391 -0
- package/chip/chip-theme.js.map +1 -0
- package/chip/chip.js +19 -1
- package/chip/chip.js.map +1 -1
- package/index.d.ts +10 -8
- package/index.js +24 -15
- package/index.js.map +1 -1
- package/package.json +28 -28
- package/provider/docsplain-provider.d.ts +24 -0
- package/provider/docsplain-provider.js +47 -0
- package/provider/docsplain-provider.js.map +1 -0
- package/provider/docsplain-provider.types.d.ts +16 -0
- package/provider/docsplain-provider.types.js +3 -0
- package/provider/docsplain-provider.types.js.map +1 -0
- package/provider/hooks/index.d.ts +6 -0
- package/provider/hooks/index.js +25 -0
- package/provider/hooks/index.js.map +1 -0
- package/provider/hooks/use-font-size.d.ts +19 -0
- package/provider/hooks/use-font-size.js +102 -0
- package/provider/hooks/use-font-size.js.map +1 -0
- package/provider/hooks/use-responsive-font-size.d.ts +10 -0
- package/provider/hooks/use-responsive-font-size.js +24 -0
- package/provider/hooks/use-responsive-font-size.js.map +1 -0
- package/provider/hooks/use-text-direction.d.ts +12 -0
- package/provider/hooks/use-text-direction.js +20 -0
- package/provider/hooks/use-text-direction.js.map +1 -0
- package/provider/hooks/use-text-scale.d.ts +12 -0
- package/provider/hooks/use-text-scale.js +20 -0
- package/provider/hooks/use-text-scale.js.map +1 -0
- package/provider/hooks/use-theme.d.ts +12 -0
- package/provider/hooks/use-theme.js +20 -0
- package/provider/hooks/use-theme.js.map +1 -0
- package/provider/index.d.ts +3 -0
- package/provider/index.js +24 -0
- package/provider/index.js.map +1 -0
- package/radio-button/radio-button-theme.d.ts +25 -0
- package/radio-button/radio-button-theme.js +48 -0
- package/radio-button/radio-button-theme.js.map +1 -0
- package/radio-button/radio-button.js +12 -2
- package/radio-button/radio-button.js.map +1 -1
- package/spinner/spinner-theme.d.ts +14 -0
- package/spinner/spinner-theme.js +80 -0
- package/spinner/spinner-theme.js.map +1 -0
- package/spinner/spinner.js +11 -1
- package/spinner/spinner.js.map +1 -1
- package/switch-box/switch-box-theme.d.ts +14 -0
- package/switch-box/switch-box-theme.js +80 -0
- package/switch-box/switch-box-theme.js.map +1 -0
- package/switch-box/switch-box.js +32 -2
- package/switch-box/switch-box.js.map +1 -1
- package/text/text.js +39 -1
- package/text/text.js.map +1 -1
- package/text/text.theme.d.ts +23 -0
- package/text/text.theme.js +114 -0
- package/text/text.theme.js.map +1 -0
- package/theme/index.d.ts +6 -0
- package/theme/index.js +33 -0
- package/theme/index.js.map +1 -0
- package/theme/theme-utils.d.ts +87 -0
- package/theme/theme-utils.js +147 -0
- package/theme/theme-utils.js.map +1 -0
package/button/button.style.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
exports.__esModule = true;
|
|
3
|
-
exports.SHAPES = exports.
|
|
3
|
+
exports.SHAPES = exports.ICON_SIZES = exports.ROUNDED = exports.SQUARE_SHAPE_SIZES = exports.SIZES = void 0;
|
|
4
4
|
exports.SIZES = {
|
|
5
5
|
huge: 'h-14 min-h-14 md:!h-16 md:!min-h-16 text-m-lg sm:!text-t-lg md:!text-d-lg px-6 gap-x-3',
|
|
6
6
|
large: 'h-12 min-h-12 md:!h-14 md:!min-h-14 text-m-base sm:!text-d-base md:!text-t-lg px-6 gap-x-3',
|
|
@@ -24,141 +24,6 @@ exports.ROUNDED = {
|
|
|
24
24
|
tiny: 'rounded-xs',
|
|
25
25
|
none: 'rounded-none'
|
|
26
26
|
};
|
|
27
|
-
exports.DISABLED_VARIANTS = {
|
|
28
|
-
text: 'bg-transparent hover:bg-transparent text-control-light',
|
|
29
|
-
outlined: 'border-control-300 border text-control',
|
|
30
|
-
filled: 'bg-control-100 border-none text-control-dark',
|
|
31
|
-
tint: 'bg-control-100 border-none text-control-dark'
|
|
32
|
-
};
|
|
33
|
-
exports.COLORS = {
|
|
34
|
-
primary: 'bg-primary border-primary !text-white hover:bg-primary-dark active:bg-primary-light',
|
|
35
|
-
danger: 'bg-danger border-danger !text-white hover:bg-danger-dark active:bg-danger-light',
|
|
36
|
-
warning: 'bg-warning border-warning !text-white hover:bg-warning-dark active:bg-warning-light',
|
|
37
|
-
secondary: 'bg-secondary border-secondary !text-white hover:bg-secondary-dark active:bg-secondary-light',
|
|
38
|
-
success: 'bg-success border-success !text-white hover:bg-success-dark active:bg-success-light',
|
|
39
|
-
info: 'bg-info border-info !text-white hover:bg-info-dark active:bg-info-light',
|
|
40
|
-
control: 'bg-control border-control !text-white hover:bg-control-dark active:bg-control-light',
|
|
41
|
-
inherit: 'bg-transparent hover:bg-transparent',
|
|
42
|
-
slate: 'bg-slate-500 border-slate-500 !text-white hover:bg-slate-700 active:bg-slate-300',
|
|
43
|
-
zinc: 'bg-zinc-500 border-zinc-500 !text-white hover:bg-zinc-700 active:bg-zinc-300',
|
|
44
|
-
neutral: 'bg-neutral-500 border-neutral-500 !text-white hover:bg-neutral-700 active:bg-neutral-300',
|
|
45
|
-
stone: 'bg-stone-500 border-stone-500 !text-white hover:bg-stone-700 active:bg-stone-300',
|
|
46
|
-
red: 'bg-red-500 border-red-500 !text-white hover:bg-red-700 active:bg-red-300',
|
|
47
|
-
orange: 'bg-orange-500 border-orange-500 !text-white hover:bg-orange-700 active:bg-orange-300',
|
|
48
|
-
amber: 'bg-amber-500 border-amber-500 !text-white hover:bg-amber-700 active:bg-amber-300',
|
|
49
|
-
yellow: 'bg-yellow-500 border-yellow-500 !text-white hover:bg-yellow-700 active:bg-yellow-300',
|
|
50
|
-
lime: 'bg-lime-500 border-lime-500 !text-white hover:bg-lime-700 active:bg-lime-300',
|
|
51
|
-
green: 'bg-green-500 border-green-500 !text-white hover:bg-green-700 active:bg-green-300',
|
|
52
|
-
emerald: 'bg-emerald-500 border-emerald-500 !text-white hover:bg-emerald-700 active:bg-emerald-300',
|
|
53
|
-
teal: 'bg-teal-500 border-teal-500 !text-white hover:bg-teal-700 active:bg-teal-300',
|
|
54
|
-
cyan: 'bg-cyan-500 border-cyan-500 !text-white hover:bg-cyan-700 active:bg-cyan-300',
|
|
55
|
-
sky: 'bg-sky-500 border-sky-500 !text-white hover:bg-sky-700 active:bg-sky-300',
|
|
56
|
-
blue: 'bg-blue-500 border-blue-500 !text-white hover:bg-blue-700 active:bg-blue-300',
|
|
57
|
-
indigo: 'bg-indigo-500 border-indigo-500 !text-white hover:bg-indigo-700 active:bg-indigo-300',
|
|
58
|
-
violet: 'bg-violet-500 border-violet-500 !text-white hover:bg-violet-700 active:bg-violet-300',
|
|
59
|
-
purple: 'bg-purple-500 border-purple-500 !text-white hover:bg-purple-700 active:bg-purple-300',
|
|
60
|
-
fuchsia: 'bg-fuchsia-500 border-fuchsia-500 !text-white hover:bg-fuchsia-700 active:bg-fuchsia-300',
|
|
61
|
-
pink: 'bg-pink-500 border-pink-500 !text-white hover:bg-pink-700 active:bg-pink-300',
|
|
62
|
-
rose: 'bg-rose-500 border-rose-500 !text-white hover:bg-rose-700 active:bg-rose-300',
|
|
63
|
-
black: 'bg-black border-black text-white hover:bg-control-700'
|
|
64
|
-
};
|
|
65
|
-
exports.OUTLINED_COLORS = {
|
|
66
|
-
primary: 'border border-primary text-primary hover:bg-primary-100 hover:border-primary-dark hover:text-primary-dark active:border-primary-light active:text-primary-light',
|
|
67
|
-
danger: 'border border-danger text-danger hover:bg-danger-100 hover:border-danger-dark hover:text-danger-dark active:border-danger-light active:text-danger-light',
|
|
68
|
-
warning: 'border border-warning text-warning hover:bg-warning-100 hover:border-warning-dark hover:text-warning-dark active:border-warning-light active:text-warning-light',
|
|
69
|
-
secondary: 'border border-secondary text-secondary hover:bg-secondary-100 hover:border-secondary-dark hover:text-secondary-dark active:border-secondary-light active:text-secondary-light',
|
|
70
|
-
success: 'border border-success text-success hover:bg-success-100 hover:border-success-dark hover:text-success-dark active:border-success-light active:text-success-light',
|
|
71
|
-
info: 'border border-info text-info hover:bg-info-100 hover:border-info-dark hover:text-info-dark active:border-info-light active:text-info-light',
|
|
72
|
-
control: 'border border-control text-control hover:bg-control-100 hover:border-control-dark hover:text-control-dark active:border-control-light active:text-control-light',
|
|
73
|
-
inherit: 'bg-transparent hover:bg-transparent',
|
|
74
|
-
slate: 'border border-slate-500 text-slate-500 hover:bg-slate-100 hover:border-slate-700 hover:text-slate-700 active:border-slate-300 active:text-slate-300',
|
|
75
|
-
zinc: 'border border-zinc-500 text-zinc-500 hover:bg-zinc-100 hover:border-zinc-700 hover:text-zinc-700 active:border-zinc-300 active:text-zinc-300',
|
|
76
|
-
neutral: 'border border-neutral-500 text-neutral-500 hover:bg-neutral-100 hover:border-neutral-700 hover:text-neutral-700 active:border-neutral-300 active:text-neutral-300',
|
|
77
|
-
stone: 'border border-stone-500 text-stone-500 hover:bg-stone-100 hover:border-stone-700 hover:text-stone-700 active:border-stone-300 active:text-stone-300',
|
|
78
|
-
red: 'border border-red-500 text-red-500 hover:bg-red-100 hover:border-red-700 hover:text-red-700 active:border-red-300 active:text-red-300',
|
|
79
|
-
orange: 'border border-orange-500 text-orange-500 hover:bg-orange-100 hover:border-orange-700 hover:text-orange-700 active:border-orange-300 active:text-orange-300',
|
|
80
|
-
amber: 'border border-amber-500 text-amber-500 hover:bg-amber-100 hover:border-amber-700 hover:text-amber-700 active:border-amber-300 active:text-amber-300',
|
|
81
|
-
yellow: 'border border-yellow-500 text-yellow-500 hover:bg-yellow-100 hover:border-yellow-700 hover:text-yellow-700 active:border-yellow-300 active:text-yellow-300',
|
|
82
|
-
lime: 'border border-lime-500 text-lime-500 hover:bg-lime-100 hover:border-lime-700 hover:text-lime-700 active:border-lime-300 active:text-lime-300',
|
|
83
|
-
green: 'border border-green-500 text-green-500 hover:bg-green-100 hover:border-green-700 hover:text-green-700 active:border-green-300 active:text-green-300',
|
|
84
|
-
emerald: 'border border-emerald-500 text-emerald-500 hover:bg-emerald-100 hover:border-emerald-700 hover:text-emerald-700 active:border-emerald-300 active:text-emerald-300',
|
|
85
|
-
teal: 'border border-teal-500 text-teal-500 hover:bg-teal-100 hover:border-teal-700 hover:text-teal-700 active:border-teal-300 active:text-teal-300',
|
|
86
|
-
cyan: 'border border-cyan-500 text-cyan-500 hover:bg-cyan-100 hover:border-cyan-700 hover:text-cyan-700 active:border-cyan-300 active:text-cyan-300',
|
|
87
|
-
sky: 'border border-sky-500 text-sky-500 hover:bg-sky-100 hover:border-sky-700 hover:text-sky-700 active:border-sky-300 active:text-sky-300',
|
|
88
|
-
blue: 'border border-blue-500 text-blue-500 hover:bg-blue-100 hover:border-blue-700 hover:text-blue-700 active:border-blue-300 active:text-blue-300',
|
|
89
|
-
indigo: 'border border-indigo-500 text-indigo-500 hover:bg-indigo-100 hover:border-indigo-700 hover:text-indigo-700 active:border-indigo-300 active:text-indigo-300',
|
|
90
|
-
violet: 'border border-violet-500 text-violet-500 hover:bg-violet-100 hover:border-violet-700 hover:text-violet-700 active:border-violet-300 active:text-violet-300',
|
|
91
|
-
purple: 'border border-purple-500 text-purple-500 hover:bg-purple-100 hover:border-purple-700 hover:text-purple-700 active:border-purple-300 active:text-purple-300',
|
|
92
|
-
fuchsia: 'border border-fuchsia-500 text-fuchsia-500 hover:bg-fuchsia-100 hover:border-fuchsia-700 hover:text-fuchsia-700 active:border-fuchsia-300 active:text-fuchsia-300',
|
|
93
|
-
pink: 'border border-pink-500 text-pink-500 hover:bg-pink-100 hover:border-pink-700 hover:text-pink-700 active:border-pink-300 active:text-pink-300',
|
|
94
|
-
rose: 'border border-rose-500 text-rose-500 hover:bg-rose-100 hover:border-rose-700 hover:text-rose-700 active:border-rose-300 active:text-rose-300',
|
|
95
|
-
black: 'border border-black text-black hover:bg-control-50 hover:border-control-700'
|
|
96
|
-
};
|
|
97
|
-
exports.TEXT_COLORS = {
|
|
98
|
-
primary: 'text-primary hover:text-primary-dark active:text-primary-light',
|
|
99
|
-
danger: 'text-danger hover:text-danger-dark active:text-danger-light',
|
|
100
|
-
warning: 'text-warning hover:text-warning-dark active:text-warning-light',
|
|
101
|
-
secondary: 'text-secondary hover:text-secondary-dark active:text-secondary-light',
|
|
102
|
-
success: 'text-success hover:text-success-dark active:text-success-light',
|
|
103
|
-
info: 'text-info hover:text-info-dark active:text-info-light',
|
|
104
|
-
control: 'text-control hover:text-control-dark active:text-control-light',
|
|
105
|
-
inherit: 'text-inherit',
|
|
106
|
-
slate: 'text-slate-500 hover:text-slate-700 active:text-slate-300',
|
|
107
|
-
zinc: 'text-zinc-500 hover:text-zinc-700 active:text-zinc-300',
|
|
108
|
-
neutral: 'text-neutral-500 hover:text-neutral-700 active:text-neutral-300',
|
|
109
|
-
stone: 'text-stone-500 hover:text-stone-700 active:text-stone-300',
|
|
110
|
-
red: 'text-red-500 hover:text-red-700 active:text-red-300',
|
|
111
|
-
orange: 'text-orange-500 hover:text-orange-700 active:text-orange-300',
|
|
112
|
-
amber: 'text-amber-500 hover:text-amber-700 active:text-amber-300',
|
|
113
|
-
yellow: 'text-yellow-500 hover:text-yellow-700 active:text-yellow-300',
|
|
114
|
-
lime: 'text-lime-500 hover:text-lime-700 active:text-lime-300',
|
|
115
|
-
green: 'text-green-500 hover:text-green-700 active:text-green-300',
|
|
116
|
-
emerald: 'text-emerald-500 hover:text-emerald-700 active:text-emerald-300',
|
|
117
|
-
teal: 'text-teal-500 hover:text-teal-700 active:text-teal-300',
|
|
118
|
-
cyan: 'text-cyan-500 hover:text-cyan-700 active:text-cyan-300',
|
|
119
|
-
sky: 'text-sky-500 hover:text-sky-700 active:text-sky-300',
|
|
120
|
-
blue: 'text-blue-500 hover:text-blue-700 active:text-blue-300',
|
|
121
|
-
indigo: 'text-indigo-500 hover:text-indigo-700 active:text-indigo-300',
|
|
122
|
-
violet: 'text-violet-500 hover:text-violet-700 active:text-violet-300',
|
|
123
|
-
purple: 'text-purple-500 hover:text-purple-700 active:text-purple-300',
|
|
124
|
-
fuchsia: 'text-fuchsia-500 hover:text-fuchsia-700 active:text-fuchsia-300',
|
|
125
|
-
pink: 'text-pink-500 hover:text-pink-700 active:text-pink-300',
|
|
126
|
-
rose: 'text-rose-500 hover:text-rose-700 active:text-rose-300',
|
|
127
|
-
black: 'text-black hover:bg-control-50'
|
|
128
|
-
};
|
|
129
|
-
exports.TINT_COLORS = {
|
|
130
|
-
primary: 'bg-primary-50 hover:bg-primary-500 text-primary-500 hover:text-primary-50',
|
|
131
|
-
secondary: 'bg-secondary-50 hover:bg-secondary-500 text-secondary-500 hover:text-secondary-50',
|
|
132
|
-
tertiary: 'bg-tertiary-50 hover:bg-tertiary-500 text-tertiary-500 hover:text-tertiary-50',
|
|
133
|
-
info: 'bg-info-50 hover:bg-info-500 text-info-500 hover:text-info-50',
|
|
134
|
-
danger: 'bg-danger-50 hover:bg-danger-500 text-danger-500 hover:text-danger-50',
|
|
135
|
-
warning: 'bg-warning-50 hover:bg-warning-500 text-warning-500 hover:text-warning-50',
|
|
136
|
-
success: 'bg-success-50 hover:bg-success-500 text-success-500 hover:text-success-50',
|
|
137
|
-
control: 'bg-control-50 hover:bg-control-500 text-control-500 hover:text-control-50',
|
|
138
|
-
inherit: 'bg-transparent hover:bg-transparent',
|
|
139
|
-
slate: 'bg-slate-50 hover:bg-slate-500 text-slate-500 hover:text-slate-50',
|
|
140
|
-
zinc: 'bg-zinc-50 hover:bg-zinc-500 text-zinc-500 hover:text-zinc-50',
|
|
141
|
-
neutral: 'bg-neutral-50 hover:bg-neutral-500 text-neutral-500 hover:text-neutral-50',
|
|
142
|
-
stone: 'bg-stone-50 hover:bg-stone-500 text-stone-500 hover:text-stone-50',
|
|
143
|
-
red: 'bg-red-50 hover:bg-red-500 text-red-500 hover:text-red-50',
|
|
144
|
-
orange: 'bg-orange-50 hover:bg-orange-500 text-orange-500 hover:text-orange-50',
|
|
145
|
-
amber: 'bg-amber-50 hover:bg-amber-500 text-amber-500 hover:text-amber-50',
|
|
146
|
-
yellow: 'bg-yellow-50 hover:bg-yellow-500 text-yellow-500 hover:text-yellow-50',
|
|
147
|
-
lime: 'bg-lime-50 hover:bg-lime-500 text-lime-500 hover:text-lime-50',
|
|
148
|
-
green: 'bg-green-50 hover:bg-green-500 text-green-500 hover:text-green-50',
|
|
149
|
-
emerald: 'bg-emerald-50 hover:bg-emerald-500 text-emerald-500 hover:text-emerald-50',
|
|
150
|
-
teal: 'bg-teal-50 hover:bg-teal-500 text-teal-500 hover:text-teal-50',
|
|
151
|
-
cyan: 'bg-cyan-50 hover:bg-cyan-500 text-cyan-500 hover:text-cyan-50',
|
|
152
|
-
sky: 'bg-sky-50 hover:bg-sky-500 text-sky-500 hover:text-sky-50',
|
|
153
|
-
blue: 'bg-blue-50 hover:bg-blue-500 text-blue-500 hover:text-blue-50',
|
|
154
|
-
indigo: 'bg-indigo-50 hover:bg-indigo-500 text-indigo-500 hover:text-indigo-50',
|
|
155
|
-
violet: 'bg-violet-50 hover:bg-violet-500 text-violet-500 hover:text-violet-50',
|
|
156
|
-
purple: 'bg-purple-50 hover:bg-purple-500 text-purple-500 hover:text-purple-50',
|
|
157
|
-
fuchsia: 'bg-fuchsia-50 hover:bg-fuchsia-500 text-fuchsia-500 hover:text-fuchsia-50',
|
|
158
|
-
pink: 'bg-pink-50 hover:bg-pink-500 text-pink-500 hover:text-pink-50',
|
|
159
|
-
rose: 'bg-rose-50 hover:bg-rose-500 text-rose-500 hover:text-rose-50',
|
|
160
|
-
black: 'bg-control-50 hover:bg-black text-black hover:text-white'
|
|
161
|
-
};
|
|
162
27
|
exports.ICON_SIZES = {
|
|
163
28
|
huge: 'h-6 min-h-6 max-h-6 w-6 min-w-6 max-w-6',
|
|
164
29
|
large: 'h-6 min-h-6 max-h-6 w-6 min-w-6 max-w-6',
|
|
@@ -166,26 +31,6 @@ exports.ICON_SIZES = {
|
|
|
166
31
|
small: 'h-4 min-h-4 max-h-4 w-4 min-w-4 max-w-4',
|
|
167
32
|
tiny: 'h-3.5 min-h-3.5 max-h-3.5 w-3.5 min-w-3.5 max-w-3.5'
|
|
168
33
|
};
|
|
169
|
-
/**
|
|
170
|
-
*
|
|
171
|
-
* @param size
|
|
172
|
-
* @param variant
|
|
173
|
-
* @constructor
|
|
174
|
-
*/
|
|
175
|
-
var COLOR_VARIANTS = function (_a) {
|
|
176
|
-
var color = _a.color, variant = _a.variant;
|
|
177
|
-
if (variant === 'filled') {
|
|
178
|
-
return exports.COLORS[color];
|
|
179
|
-
}
|
|
180
|
-
else if (variant === 'outlined') {
|
|
181
|
-
return exports.OUTLINED_COLORS[color];
|
|
182
|
-
}
|
|
183
|
-
else if (variant === 'tint') {
|
|
184
|
-
return exports.TINT_COLORS[color];
|
|
185
|
-
}
|
|
186
|
-
return exports.TEXT_COLORS[color];
|
|
187
|
-
};
|
|
188
|
-
exports.COLOR_VARIANTS = COLOR_VARIANTS;
|
|
189
34
|
/**
|
|
190
35
|
*
|
|
191
36
|
* @param size
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.style.js","sourceRoot":"","sources":["../../button/button.style.ts"],"names":[],"mappings":";;;AAGa,QAAA,KAAK,GAAG;IACnB,IAAI,EAAE,wFAAwF;IAC9F,KAAK,EAAE,4FAA4F;IACnG,MAAM,EAAE,0FAA0F;IAClG,KAAK,EAAE,sFAAsF;IAC7F,IAAI,EAAE,sFAAsF;CAC7F,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,gEAAgE;IACtE,KAAK,EAAE,gEAAgE;IACvE,MAAM,EAAE,kEAAkE;IAC1E,KAAK,EAAE,6DAA6D;IACpE,IAAI,EAAE,4DAA4D;CACnE,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,
|
|
1
|
+
{"version":3,"file":"button.style.js","sourceRoot":"","sources":["../../button/button.style.ts"],"names":[],"mappings":";;;AAGa,QAAA,KAAK,GAAG;IACnB,IAAI,EAAE,wFAAwF;IAC9F,KAAK,EAAE,4FAA4F;IACnG,MAAM,EAAE,0FAA0F;IAClG,KAAK,EAAE,sFAAsF;IAC7F,IAAI,EAAE,sFAAsF;CAC7F,CAAC;AAEW,QAAA,kBAAkB,GAAG;IAChC,IAAI,EAAE,gEAAgE;IACtE,KAAK,EAAE,gEAAgE;IACvE,MAAM,EAAE,kEAAkE;IAC1E,KAAK,EAAE,6DAA6D;IACpE,IAAI,EAAE,4DAA4D;CACnE,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,UAAU,GAAG;IACxB,IAAI,EAAE,yCAAyC;IAC/C,KAAK,EAAE,yCAAyC;IAChD,MAAM,EAAE,yCAAyC;IACjD,KAAK,EAAE,yCAAyC;IAChD,IAAI,EAAE,qDAAqD;CAC5D,CAAC;AAEF;;;;;GAKG;AACI,IAAM,MAAM,GAAG,UAAC,EAA8C;QAA5C,IAAI,UAAA,EAAE,KAAK,WAAA;IAClC,IAAI,SAAS,GAAG,EAAE,CAAC;IAEnB,IAAI,KAAK,KAAK,QAAQ,EAAE;QACtB,SAAS,GAAG,UAAG,0BAAkB,CAAC,IAAI,CAAC,cAAI,SAAS,qDAAkD,CAAC;KACxG;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CAAC;AAPW,QAAA,MAAM,UAOjB"}
|
|
@@ -0,0 +1,314 @@
|
|
|
1
|
+
import { TextScale, Theme } from '../provider';
|
|
2
|
+
import { ButtonColors, Variant } from './button.props';
|
|
3
|
+
import { Sizes } from '../types';
|
|
4
|
+
/**
|
|
5
|
+
* Light Theme Button Colors (Original)
|
|
6
|
+
* These are the existing color objects kept for light theme
|
|
7
|
+
*/
|
|
8
|
+
export declare const COLORS_LIGHT: {
|
|
9
|
+
primary: string;
|
|
10
|
+
danger: string;
|
|
11
|
+
warning: string;
|
|
12
|
+
secondary: string;
|
|
13
|
+
success: string;
|
|
14
|
+
info: string;
|
|
15
|
+
control: string;
|
|
16
|
+
inherit: string;
|
|
17
|
+
slate: string;
|
|
18
|
+
zinc: string;
|
|
19
|
+
neutral: string;
|
|
20
|
+
stone: string;
|
|
21
|
+
red: string;
|
|
22
|
+
orange: string;
|
|
23
|
+
amber: string;
|
|
24
|
+
yellow: string;
|
|
25
|
+
lime: string;
|
|
26
|
+
green: string;
|
|
27
|
+
emerald: string;
|
|
28
|
+
teal: string;
|
|
29
|
+
cyan: string;
|
|
30
|
+
sky: string;
|
|
31
|
+
blue: string;
|
|
32
|
+
indigo: string;
|
|
33
|
+
violet: string;
|
|
34
|
+
purple: string;
|
|
35
|
+
fuchsia: string;
|
|
36
|
+
pink: string;
|
|
37
|
+
rose: string;
|
|
38
|
+
black: string;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* Dark Theme Button Colors
|
|
42
|
+
* Adjusted colors for better visibility and contrast in dark mode
|
|
43
|
+
*/
|
|
44
|
+
export declare const COLORS_DARK: {
|
|
45
|
+
primary: string;
|
|
46
|
+
danger: string;
|
|
47
|
+
warning: string;
|
|
48
|
+
secondary: string;
|
|
49
|
+
success: string;
|
|
50
|
+
info: string;
|
|
51
|
+
control: string;
|
|
52
|
+
inherit: string;
|
|
53
|
+
slate: string;
|
|
54
|
+
zinc: string;
|
|
55
|
+
neutral: string;
|
|
56
|
+
stone: string;
|
|
57
|
+
red: string;
|
|
58
|
+
orange: string;
|
|
59
|
+
amber: string;
|
|
60
|
+
yellow: string;
|
|
61
|
+
lime: string;
|
|
62
|
+
green: string;
|
|
63
|
+
emerald: string;
|
|
64
|
+
teal: string;
|
|
65
|
+
cyan: string;
|
|
66
|
+
sky: string;
|
|
67
|
+
blue: string;
|
|
68
|
+
indigo: string;
|
|
69
|
+
violet: string;
|
|
70
|
+
purple: string;
|
|
71
|
+
fuchsia: string;
|
|
72
|
+
pink: string;
|
|
73
|
+
rose: string;
|
|
74
|
+
black: string;
|
|
75
|
+
};
|
|
76
|
+
export declare const OUTLINED_COLORS_LIGHT: {
|
|
77
|
+
primary: string;
|
|
78
|
+
danger: string;
|
|
79
|
+
warning: string;
|
|
80
|
+
secondary: string;
|
|
81
|
+
success: string;
|
|
82
|
+
info: string;
|
|
83
|
+
control: string;
|
|
84
|
+
inherit: string;
|
|
85
|
+
slate: string;
|
|
86
|
+
zinc: string;
|
|
87
|
+
neutral: string;
|
|
88
|
+
stone: string;
|
|
89
|
+
red: string;
|
|
90
|
+
orange: string;
|
|
91
|
+
amber: string;
|
|
92
|
+
yellow: string;
|
|
93
|
+
lime: string;
|
|
94
|
+
green: string;
|
|
95
|
+
emerald: string;
|
|
96
|
+
teal: string;
|
|
97
|
+
cyan: string;
|
|
98
|
+
sky: string;
|
|
99
|
+
blue: string;
|
|
100
|
+
indigo: string;
|
|
101
|
+
violet: string;
|
|
102
|
+
purple: string;
|
|
103
|
+
fuchsia: string;
|
|
104
|
+
pink: string;
|
|
105
|
+
rose: string;
|
|
106
|
+
black: string;
|
|
107
|
+
};
|
|
108
|
+
export declare const OUTLINED_COLORS_DARK: {
|
|
109
|
+
primary: string;
|
|
110
|
+
danger: string;
|
|
111
|
+
warning: string;
|
|
112
|
+
secondary: string;
|
|
113
|
+
success: string;
|
|
114
|
+
info: string;
|
|
115
|
+
control: string;
|
|
116
|
+
inherit: string;
|
|
117
|
+
slate: string;
|
|
118
|
+
zinc: string;
|
|
119
|
+
neutral: string;
|
|
120
|
+
stone: string;
|
|
121
|
+
red: string;
|
|
122
|
+
orange: string;
|
|
123
|
+
amber: string;
|
|
124
|
+
yellow: string;
|
|
125
|
+
lime: string;
|
|
126
|
+
green: string;
|
|
127
|
+
emerald: string;
|
|
128
|
+
teal: string;
|
|
129
|
+
cyan: string;
|
|
130
|
+
sky: string;
|
|
131
|
+
blue: string;
|
|
132
|
+
indigo: string;
|
|
133
|
+
violet: string;
|
|
134
|
+
purple: string;
|
|
135
|
+
fuchsia: string;
|
|
136
|
+
pink: string;
|
|
137
|
+
rose: string;
|
|
138
|
+
black: string;
|
|
139
|
+
};
|
|
140
|
+
export declare const TEXT_COLORS_LIGHT: {
|
|
141
|
+
primary: string;
|
|
142
|
+
danger: string;
|
|
143
|
+
warning: string;
|
|
144
|
+
secondary: string;
|
|
145
|
+
success: string;
|
|
146
|
+
info: string;
|
|
147
|
+
control: string;
|
|
148
|
+
inherit: string;
|
|
149
|
+
slate: string;
|
|
150
|
+
zinc: string;
|
|
151
|
+
neutral: string;
|
|
152
|
+
stone: string;
|
|
153
|
+
red: string;
|
|
154
|
+
orange: string;
|
|
155
|
+
amber: string;
|
|
156
|
+
yellow: string;
|
|
157
|
+
lime: string;
|
|
158
|
+
green: string;
|
|
159
|
+
emerald: string;
|
|
160
|
+
teal: string;
|
|
161
|
+
cyan: string;
|
|
162
|
+
sky: string;
|
|
163
|
+
blue: string;
|
|
164
|
+
indigo: string;
|
|
165
|
+
violet: string;
|
|
166
|
+
purple: string;
|
|
167
|
+
fuchsia: string;
|
|
168
|
+
pink: string;
|
|
169
|
+
rose: string;
|
|
170
|
+
black: string;
|
|
171
|
+
};
|
|
172
|
+
export declare const TEXT_COLORS_DARK: {
|
|
173
|
+
primary: string;
|
|
174
|
+
danger: string;
|
|
175
|
+
warning: string;
|
|
176
|
+
secondary: string;
|
|
177
|
+
success: string;
|
|
178
|
+
info: string;
|
|
179
|
+
control: string;
|
|
180
|
+
inherit: string;
|
|
181
|
+
slate: string;
|
|
182
|
+
zinc: string;
|
|
183
|
+
neutral: string;
|
|
184
|
+
stone: string;
|
|
185
|
+
red: string;
|
|
186
|
+
orange: string;
|
|
187
|
+
amber: string;
|
|
188
|
+
yellow: string;
|
|
189
|
+
lime: string;
|
|
190
|
+
green: string;
|
|
191
|
+
emerald: string;
|
|
192
|
+
teal: string;
|
|
193
|
+
cyan: string;
|
|
194
|
+
sky: string;
|
|
195
|
+
blue: string;
|
|
196
|
+
indigo: string;
|
|
197
|
+
violet: string;
|
|
198
|
+
purple: string;
|
|
199
|
+
fuchsia: string;
|
|
200
|
+
pink: string;
|
|
201
|
+
rose: string;
|
|
202
|
+
black: string;
|
|
203
|
+
};
|
|
204
|
+
export declare const TINT_COLORS_LIGHT: {
|
|
205
|
+
primary: string;
|
|
206
|
+
secondary: string;
|
|
207
|
+
tertiary: string;
|
|
208
|
+
info: string;
|
|
209
|
+
danger: string;
|
|
210
|
+
warning: string;
|
|
211
|
+
success: string;
|
|
212
|
+
control: string;
|
|
213
|
+
inherit: string;
|
|
214
|
+
slate: string;
|
|
215
|
+
zinc: string;
|
|
216
|
+
neutral: string;
|
|
217
|
+
stone: string;
|
|
218
|
+
red: string;
|
|
219
|
+
orange: string;
|
|
220
|
+
amber: string;
|
|
221
|
+
yellow: string;
|
|
222
|
+
lime: string;
|
|
223
|
+
green: string;
|
|
224
|
+
emerald: string;
|
|
225
|
+
teal: string;
|
|
226
|
+
cyan: string;
|
|
227
|
+
sky: string;
|
|
228
|
+
blue: string;
|
|
229
|
+
indigo: string;
|
|
230
|
+
violet: string;
|
|
231
|
+
purple: string;
|
|
232
|
+
fuchsia: string;
|
|
233
|
+
pink: string;
|
|
234
|
+
rose: string;
|
|
235
|
+
black: string;
|
|
236
|
+
};
|
|
237
|
+
export declare const TINT_COLORS_DARK: {
|
|
238
|
+
primary: string;
|
|
239
|
+
secondary: string;
|
|
240
|
+
tertiary: string;
|
|
241
|
+
info: string;
|
|
242
|
+
danger: string;
|
|
243
|
+
warning: string;
|
|
244
|
+
success: string;
|
|
245
|
+
control: string;
|
|
246
|
+
inherit: string;
|
|
247
|
+
slate: string;
|
|
248
|
+
zinc: string;
|
|
249
|
+
neutral: string;
|
|
250
|
+
stone: string;
|
|
251
|
+
red: string;
|
|
252
|
+
orange: string;
|
|
253
|
+
amber: string;
|
|
254
|
+
yellow: string;
|
|
255
|
+
lime: string;
|
|
256
|
+
green: string;
|
|
257
|
+
emerald: string;
|
|
258
|
+
teal: string;
|
|
259
|
+
cyan: string;
|
|
260
|
+
sky: string;
|
|
261
|
+
blue: string;
|
|
262
|
+
indigo: string;
|
|
263
|
+
violet: string;
|
|
264
|
+
purple: string;
|
|
265
|
+
fuchsia: string;
|
|
266
|
+
pink: string;
|
|
267
|
+
rose: string;
|
|
268
|
+
black: string;
|
|
269
|
+
};
|
|
270
|
+
export declare const DISABLED_VARIANTS_LIGHT: {
|
|
271
|
+
text: string;
|
|
272
|
+
outlined: string;
|
|
273
|
+
filled: string;
|
|
274
|
+
tint: string;
|
|
275
|
+
};
|
|
276
|
+
export declare const DISABLED_VARIANTS_DARK: {
|
|
277
|
+
text: string;
|
|
278
|
+
outlined: string;
|
|
279
|
+
filled: string;
|
|
280
|
+
tint: string;
|
|
281
|
+
};
|
|
282
|
+
export declare const SMALL_TYPOGRAPHY: {
|
|
283
|
+
huge: string;
|
|
284
|
+
large: string;
|
|
285
|
+
medium: string;
|
|
286
|
+
small: string;
|
|
287
|
+
tiny: string;
|
|
288
|
+
};
|
|
289
|
+
export declare const MEDIUM_TYPOGRAPHY: {
|
|
290
|
+
huge: string;
|
|
291
|
+
large: string;
|
|
292
|
+
medium: string;
|
|
293
|
+
small: string;
|
|
294
|
+
tiny: string;
|
|
295
|
+
};
|
|
296
|
+
export declare const LARGE_TYPOGRAPHY: {
|
|
297
|
+
huge: string;
|
|
298
|
+
large: string;
|
|
299
|
+
medium: string;
|
|
300
|
+
small: string;
|
|
301
|
+
tiny: string;
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Helper function to get the correct color styles based on theme
|
|
305
|
+
*/
|
|
306
|
+
export declare const getButtonColors: (theme: Theme, color: ButtonColors, variant: Variant) => string;
|
|
307
|
+
/**
|
|
308
|
+
* Helper function to get disabled variant styles based on theme
|
|
309
|
+
*/
|
|
310
|
+
export declare const getDisabledVariant: (theme: Theme, variant: Variant) => string;
|
|
311
|
+
/**
|
|
312
|
+
* Helper function to get disabled variant styles based on theme
|
|
313
|
+
*/
|
|
314
|
+
export declare const getTypographyVariant: (size: Sizes, textScale: TextScale) => string;
|