@sk-web-gui/core 4.1.0 → 4.1.2
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/dist/cjs/components/accordion.js +113 -111
- package/dist/cjs/components/accordion.js.map +1 -1
- package/dist/cjs/components/forms.js +9 -0
- package/dist/cjs/components/forms.js.map +1 -1
- package/dist/cjs/components/input.js +50 -46
- package/dist/cjs/components/input.js.map +1 -1
- package/dist/cjs/components/progress-bar.js +6 -0
- package/dist/cjs/components/progress-bar.js.map +1 -1
- package/dist/esm/components/accordion.js +113 -111
- package/dist/esm/components/accordion.js.map +1 -1
- package/dist/esm/components/forms.js +9 -0
- package/dist/esm/components/forms.js.map +1 -1
- package/dist/esm/components/input.js +50 -46
- package/dist/esm/components/input.js.map +1 -1
- package/dist/esm/components/progress-bar.js +6 -0
- package/dist/esm/components/progress-bar.js.map +1 -1
- package/dist/types/components/accordion.d.ts +108 -106
- package/dist/types/components/countrycode-select.d.ts +5 -0
- package/dist/types/components/forms.d.ts +9 -0
- package/dist/types/components/input.d.ts +65 -61
- package/dist/types/components/progress-bar.d.ts +6 -0
- package/package.json +2 -2
|
@@ -1,120 +1,140 @@
|
|
|
1
1
|
export const Accordion = ()=>({
|
|
2
2
|
'.sk-disclosure': {
|
|
3
|
+
'@apply mt-6 mb-8': {},
|
|
4
|
+
'@apply text-dark-secondary': {},
|
|
5
|
+
'&[data-inverted="true"]': {
|
|
6
|
+
'@apply text-inverted-dark-secondary': {}
|
|
7
|
+
},
|
|
3
8
|
'&-icon': {
|
|
4
9
|
'@apply flex self-center': {}
|
|
5
10
|
},
|
|
6
11
|
'&-header': {
|
|
7
|
-
'@apply
|
|
8
|
-
'@apply flex flex-
|
|
12
|
+
'@apply py-8': {},
|
|
13
|
+
'@apply flex flex-row text-left': {},
|
|
9
14
|
'@apply cursor-pointer': {},
|
|
10
|
-
'
|
|
11
|
-
|
|
15
|
+
'@apply items-center justify-between': {},
|
|
16
|
+
'@apply gap-16': {},
|
|
17
|
+
'&-icon': {
|
|
18
|
+
'@apply w-32 h-32': {},
|
|
19
|
+
'&-sm': {
|
|
20
|
+
'@apply w-20 min-h-20': {}
|
|
21
|
+
},
|
|
22
|
+
'&-md': {
|
|
23
|
+
'@apply w-24 min-h-24': {}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
'&-title': {
|
|
27
|
+
'@apply text-dark-primary': {},
|
|
28
|
+
'@apply w-full': {},
|
|
29
|
+
'@apply flex flex-row': {},
|
|
30
|
+
'@apply items-center': {},
|
|
31
|
+
'@apply grow shrink': {},
|
|
32
|
+
'&[data-inverted="true"]': {
|
|
33
|
+
'@apply text-inverted-dark-primary': {}
|
|
34
|
+
},
|
|
35
|
+
'*': {
|
|
36
|
+
'@apply m-0': {},
|
|
37
|
+
'@apply text-inherit': {},
|
|
38
|
+
fontSize: 'inherit',
|
|
39
|
+
FontFamily: 'inherit',
|
|
40
|
+
lineHeight: 'inherit'
|
|
41
|
+
},
|
|
42
|
+
'&-disabled': {
|
|
43
|
+
'@apply text-dark-disabled': {},
|
|
44
|
+
'&[data-inverted="true"]': {
|
|
45
|
+
'@apply text-inverted-dark-disabled': {}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
'&-sm': {
|
|
49
|
+
'@apply gap-16': {},
|
|
50
|
+
'@apply text-h4-sm': {},
|
|
51
|
+
'&[data-variant="alt"]': {
|
|
52
|
+
'@apply gap-12': {}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
'&-md': {
|
|
56
|
+
'@apply gap-16': {},
|
|
57
|
+
'@apply text-h4-md': {},
|
|
58
|
+
'&[data-variant="alt"]': {
|
|
59
|
+
'@apply gap-12': {}
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
'&-lg': {
|
|
63
|
+
'@apply gap-16': {},
|
|
64
|
+
'&[data-variant="alt"]': {
|
|
65
|
+
'@apply gap-16': {},
|
|
66
|
+
'@apply text-h3-md': {}
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
'&-divider': {
|
|
70
|
+
'@apply border-divider': {},
|
|
71
|
+
'&[data-inverted="true"]': {
|
|
72
|
+
'@apply border-inverted-divider': {}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
12
75
|
},
|
|
13
76
|
'&:focus-visible': {
|
|
14
77
|
'@apply outline-0': {}
|
|
15
78
|
},
|
|
16
|
-
'
|
|
17
|
-
'@apply ml-auto': {},
|
|
18
|
-
'@apply text-dark-secondary': {},
|
|
19
|
-
svg: {
|
|
20
|
-
'@apply w-20 h-20': {}
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
'&[data-disabled="true"]': {
|
|
79
|
+
'&[aria-disabled="true"]': {
|
|
24
80
|
'@apply text-dark-disabled': {},
|
|
25
|
-
'.sk-disclosure-title': {
|
|
26
|
-
'@apply text-dark-disabled': {}
|
|
27
|
-
},
|
|
28
81
|
'@apply cursor-default': {},
|
|
29
82
|
'*': {
|
|
30
83
|
'@apply cursor-default': {}
|
|
84
|
+
},
|
|
85
|
+
'&[data-inverted="true"]': {
|
|
86
|
+
'@apply text-inverted-dark-disabled': {}
|
|
31
87
|
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
'&-toggle': {
|
|
38
|
-
'@apply flex items-center justify-between': {},
|
|
39
|
-
'@apply gap-16': {},
|
|
40
|
-
'.sk-icon': {
|
|
41
|
-
'@apply w-32 h-32': {}
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
'&-title': {
|
|
45
|
-
'@apply text-dark-primary': {},
|
|
46
|
-
'&-wrapper': {
|
|
47
|
-
'@apply w-full': {},
|
|
48
|
-
'@apply flex flex-row': {},
|
|
49
|
-
'@apply items-center': {}
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
'&-sm': {
|
|
53
|
-
'.sk-disclosure-title': {
|
|
54
|
-
'@apply text-h4-sm font-bold': {},
|
|
55
|
-
'&-wrapper': {
|
|
88
|
+
},
|
|
89
|
+
'&-sm': {
|
|
90
|
+
'@apply gap-16': {},
|
|
91
|
+
'@apply h-32': {},
|
|
92
|
+
'&[data-variant="alt"]': {
|
|
56
93
|
'@apply gap-12': {}
|
|
94
|
+
},
|
|
95
|
+
'&[data-variant="default"]': {
|
|
96
|
+
'@apply min-h-40': {}
|
|
57
97
|
}
|
|
58
98
|
},
|
|
59
|
-
'
|
|
60
|
-
'@apply gap-
|
|
61
|
-
'
|
|
62
|
-
'@apply
|
|
99
|
+
'&-md': {
|
|
100
|
+
'@apply gap-16': {},
|
|
101
|
+
'&[data-variant="alt"]': {
|
|
102
|
+
'@apply gap-12': {}
|
|
103
|
+
},
|
|
104
|
+
'&[data-variant="default"]': {
|
|
105
|
+
'@apply min-h-56': {}
|
|
63
106
|
}
|
|
64
107
|
},
|
|
65
|
-
'
|
|
66
|
-
'@apply
|
|
67
|
-
},
|
|
68
|
-
'&[data-variant="default"]': {
|
|
69
|
-
'.sk-disclosure-toggle': {
|
|
70
|
-
'@apply py-4': {},
|
|
71
|
-
'@apply min-h-40': {}
|
|
72
|
-
},
|
|
108
|
+
'&-lg': {
|
|
109
|
+
'@apply gap-16': {},
|
|
73
110
|
'.sk-disclosure-header-icon': {
|
|
74
|
-
'@apply w-32 h-32': {}
|
|
111
|
+
'@apply w-32 min-h-32': {}
|
|
112
|
+
},
|
|
113
|
+
'&[data-variant="alt"]': {
|
|
114
|
+
'@apply gap-16': {}
|
|
75
115
|
}
|
|
76
|
-
}
|
|
77
|
-
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
'&[data-variant="alt"]': {
|
|
119
|
+
'.sk-disclosure-header': {
|
|
120
|
+
'@apply py-0': {},
|
|
121
|
+
'@apply h-32': {}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
'&-label': {
|
|
125
|
+
'@apply shrink-0': {}
|
|
78
126
|
},
|
|
79
127
|
'&-md': {
|
|
80
|
-
'.sk-disclosure-title': {
|
|
81
|
-
'@apply text-h4-md font-bold': {},
|
|
82
|
-
'&-wrapper': {
|
|
83
|
-
'@apply gap-12': {}
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
'.sk-disclosure-toggle': {
|
|
87
|
-
'@apply gap-12': {},
|
|
88
|
-
'.sk-icon': {
|
|
89
|
-
'@apply w-24 min-h-24': {}
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
'.sk-disclosure-support': {
|
|
93
|
-
'@apply text-body': {}
|
|
94
|
-
},
|
|
95
128
|
'&[data-variant="default"]': {
|
|
96
|
-
'.sk-disclosure-
|
|
129
|
+
'.sk-disclosure-header': {
|
|
97
130
|
'@apply py-8': {},
|
|
98
131
|
'@apply min-h-56': {}
|
|
99
132
|
},
|
|
100
|
-
'.sk-disclosure-header-
|
|
133
|
+
'.sk-disclosure-header-button': {
|
|
101
134
|
'@apply w-40 h-40': {}
|
|
102
135
|
}
|
|
103
136
|
}
|
|
104
137
|
},
|
|
105
|
-
'&-lg': {
|
|
106
|
-
'&[data-variant="alt"]': {
|
|
107
|
-
'.sk-disclosure-support': {
|
|
108
|
-
'@apply text-large': {}
|
|
109
|
-
},
|
|
110
|
-
'.sk-disclosure-title': {
|
|
111
|
-
'@apply text-h3-md font-bold': {},
|
|
112
|
-
'&-wrapper': {
|
|
113
|
-
'@apply gap-16': {}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
},
|
|
118
138
|
'&-body': {
|
|
119
139
|
'&[data-size="sm"]': {
|
|
120
140
|
'@apply pr-12': {}
|
|
@@ -131,13 +151,13 @@ export const Accordion = ()=>({
|
|
|
131
151
|
'@apply mr-32': {},
|
|
132
152
|
'@apply gap-8': {},
|
|
133
153
|
'@apply py-0': {},
|
|
134
|
-
transitionProperty: '
|
|
154
|
+
transitionProperty: 'height, opacity, padding, margin',
|
|
135
155
|
transitionDuration: '180ms',
|
|
136
|
-
'&[aria-hidden="true"]
|
|
137
|
-
'@apply my-0
|
|
156
|
+
'&[aria-hidden="true"]': {
|
|
157
|
+
'@apply my-0 overflow-hidden max-h-0 opacity-0': {}
|
|
138
158
|
},
|
|
139
|
-
'&[aria-hidden="false"]
|
|
140
|
-
'@apply block opacity-100
|
|
159
|
+
'&[aria-hidden="false"]': {
|
|
160
|
+
'@apply block opacity-100': {}
|
|
141
161
|
},
|
|
142
162
|
'&[data-variant="alt"]': {
|
|
143
163
|
'@apply mt-24': {},
|
|
@@ -169,33 +189,15 @@ export const Accordion = ()=>({
|
|
|
169
189
|
'.sk-disclosure': {
|
|
170
190
|
transitionProperty: 'margin',
|
|
171
191
|
transitionDuration: '180ms',
|
|
172
|
-
'@apply border-b-1 border-divider': {}
|
|
192
|
+
'@apply border-b-1 border-divider': {},
|
|
193
|
+
'&[data-inverted="true"]': {
|
|
194
|
+
'@apply border-inverted-divider': {}
|
|
195
|
+
}
|
|
173
196
|
},
|
|
174
197
|
'&:last-child .sk-disclosure': {
|
|
175
198
|
'@apply border-b-transparent': {}
|
|
176
199
|
}
|
|
177
200
|
}
|
|
178
|
-
},
|
|
179
|
-
'&[data-inverted="true"]': {
|
|
180
|
-
'&.sk-disclosure': {
|
|
181
|
-
'&-icon': {
|
|
182
|
-
'@apply text-inverted-dark-secondary': {}
|
|
183
|
-
},
|
|
184
|
-
'&[data-disabled="true"]': {
|
|
185
|
-
'@apply text-inverted-dark-disabled': {},
|
|
186
|
-
'.sk-disclosure-title': {
|
|
187
|
-
'@apply text-inverted-dark-disabled': {}
|
|
188
|
-
}
|
|
189
|
-
},
|
|
190
|
-
'&-title': {
|
|
191
|
-
'@apply text-inverted-dark-primary': {}
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
'&.sk-accordion': {
|
|
195
|
-
'&-item': {
|
|
196
|
-
'@apply border-inverted-divider': {}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
201
|
}
|
|
200
202
|
});
|
|
201
203
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply
|
|
1
|
+
{"version":3,"sources":["../../../src/components/accordion.ts"],"sourcesContent":["export const Accordion = () => ({\r\n '.sk-disclosure': {\r\n '@apply mt-6 mb-8': {},\r\n '@apply text-dark-secondary': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-secondary': {},\r\n },\r\n '&-icon': {\r\n '@apply flex self-center': {},\r\n },\r\n '&-header': {\r\n '@apply py-8': {},\r\n '@apply flex flex-row text-left': {},\r\n '@apply cursor-pointer': {},\r\n '@apply items-center justify-between': {},\r\n '@apply gap-16': {},\r\n '&-icon': {\r\n '@apply w-32 h-32': {},\r\n '&-sm': {\r\n '@apply w-20 min-h-20': {},\r\n },\r\n '&-md': {\r\n '@apply w-24 min-h-24': {},\r\n },\r\n },\r\n\r\n '&-title': {\r\n '@apply text-dark-primary': {},\r\n '@apply w-full': {},\r\n '@apply flex flex-row': {},\r\n '@apply items-center': {},\r\n '@apply grow shrink': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-primary': {},\r\n },\r\n '*': {\r\n '@apply m-0': {},\r\n '@apply text-inherit': {},\r\n fontSize: 'inherit',\r\n FontFamily: 'inherit',\r\n lineHeight: 'inherit',\r\n },\r\n '&-disabled': {\r\n '@apply text-dark-disabled': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-disabled': {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply gap-16': {},\r\n '@apply text-h4-sm': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n '@apply text-h4-md': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-16': {},\r\n '@apply text-h3-md': {},\r\n },\r\n },\r\n '&-divider': {\r\n '@apply border-divider': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n },\r\n\r\n '&:focus-visible': {\r\n '@apply outline-0': {},\r\n },\r\n '&[aria-disabled=\"true\"]': {\r\n '@apply text-dark-disabled': {},\r\n '@apply cursor-default': {},\r\n '*': {\r\n '@apply cursor-default': {},\r\n },\r\n '&[data-inverted=\"true\"]': {\r\n '@apply text-inverted-dark-disabled': {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply gap-16': {},\r\n '@apply h-32': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '@apply min-h-40': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply gap-16': {},\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-12': {},\r\n },\r\n '&[data-variant=\"default\"]': {\r\n '@apply min-h-56': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply gap-16': {},\r\n '.sk-disclosure-header-icon': {\r\n '@apply w-32 min-h-32': {},\r\n },\r\n '&[data-variant=\"alt\"]': {\r\n '@apply gap-16': {},\r\n },\r\n },\r\n },\r\n '&[data-variant=\"alt\"]': {\r\n '.sk-disclosure-header': {\r\n '@apply py-0': {},\r\n '@apply h-32': {},\r\n },\r\n },\r\n '&-label': {\r\n '@apply shrink-0': {},\r\n },\r\n\r\n '&-md': {\r\n '&[data-variant=\"default\"]': {\r\n '.sk-disclosure-header': {\r\n '@apply py-8': {},\r\n '@apply min-h-56': {},\r\n },\r\n '.sk-disclosure-header-button': {\r\n '@apply w-40 h-40': {},\r\n },\r\n },\r\n },\r\n\r\n '&-body': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '@apply text-base': {},\r\n '@apply flex flex-col': {},\r\n '@apply mb-32': {},\r\n '@apply mr-32': {},\r\n '@apply gap-8': {},\r\n '@apply py-0': {},\r\n transitionProperty: 'height, opacity, padding, margin',\r\n\r\n transitionDuration: '180ms',\r\n\r\n '&[aria-hidden=\"true\"]': {\r\n '@apply my-0 overflow-hidden max-h-0 opacity-0': {},\r\n },\r\n\r\n '&[aria-hidden=\"false\"]': {\r\n '@apply block opacity-100': {},\r\n },\r\n\r\n '&[data-variant=\"alt\"]': {\r\n '@apply mt-24': {},\r\n '&[data-size=\"sm\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply pr-12': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply pr-16': {},\r\n },\r\n '&[data-has-icon=\"true\"]': {\r\n '&[data-size=\"sm\"]': {\r\n '@apply ml-32': {},\r\n },\r\n '&[data-size=\"md\"]': {\r\n '@apply ml-36': {},\r\n },\r\n '&[data-size=\"lg\"]': {\r\n '@apply ml-48': {},\r\n },\r\n },\r\n },\r\n },\r\n },\r\n '.sk-accordion': {\r\n '&-item': {\r\n '.sk-disclosure': {\r\n transitionProperty: 'margin',\r\n transitionDuration: '180ms',\r\n '@apply border-b-1 border-divider': {},\r\n '&[data-inverted=\"true\"]': {\r\n '@apply border-inverted-divider': {},\r\n },\r\n },\r\n\r\n '&:last-child .sk-disclosure': {\r\n '@apply border-b-transparent': {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["Accordion","fontSize","FontFamily","lineHeight","transitionProperty","transitionDuration"],"mappings":"AAAA,OAAO,MAAMA,YAAY,IAAO,CAAA;QAC9B,kBAAkB;YAChB,oBAAoB,CAAC;YACrB,8BAA8B,CAAC;YAC/B,2BAA2B;gBACzB,uCAAuC,CAAC;YAC1C;YACA,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YACA,YAAY;gBACV,eAAe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wBACnB;wBACA,qBAAqB;4BACnB,gBAAgB,CAAC;wBACnB;wBACA,qBAAqB;4BACnB,gBAAgB,CAAC;wBACnB;oBACF;gBACF;YACF;QACF;QACA,iBAAiB;YACf,UAAU;gBACR,kBAAkB;oBAChBD,oBAAoB;oBACpBC,oBAAoB;oBACpB,oCAAoC,CAAC;oBACrC,2BAA2B;wBACzB,kCAAkC,CAAC;oBACrC;gBACF;gBAEA,+BAA+B;oBAC7B,+BAA+B,CAAC;gBAClC;YACF;QACF;IACF,CAAA,EAAG"}
|
|
@@ -20,6 +20,15 @@ export const Forms = ()=>({
|
|
|
20
20
|
'.sk-form-helper-text, .sk-form-error-message': {
|
|
21
21
|
'@apply font-normal': {},
|
|
22
22
|
'@apply text-small': {}
|
|
23
|
+
},
|
|
24
|
+
'.sk-form-error-message': {
|
|
25
|
+
'@apply text-error': {},
|
|
26
|
+
'@apply flex items-start gap-8': {},
|
|
27
|
+
'@apply self-stretch': {}
|
|
28
|
+
},
|
|
29
|
+
'.sk-form-error-message-icon': {
|
|
30
|
+
'@apply shrink-0': {},
|
|
31
|
+
'@apply pt-1': {}
|
|
23
32
|
}
|
|
24
33
|
});
|
|
25
34
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/forms.ts"],"sourcesContent":["export const Forms = () => ({\r\n '.sk-form-control': {\r\n '@apply flex flex-col gap-8 w-fit': {},\r\n },\r\n\r\n '.sk-form-label': {\r\n '@apply font-bold': {},\r\n '&-sm': {\r\n '@apply text-label-small': {},\r\n },\r\n '&-md': {\r\n '@apply text-label-medium': {},\r\n },\r\n '&-lg': {\r\n '@apply text-label-large': {},\r\n },\r\n },\r\n\r\n 'legend.sk-form-label': {\r\n display: 'contents',\r\n },\r\n\r\n '.sk-form-helper-text, .sk-form-error-message': {\r\n '@apply font-normal': {},\r\n '@apply text-small': {},\r\n },\r\n});\r\n"],"names":["Forms","display"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,IAAO,CAAA;QAC1B,oBAAoB;YAClB,oCAAoC,CAAC;QACvC;QAEA,kBAAkB;YAChB,oBAAoB,CAAC;YACrB,QAAQ;gBACN,2BAA2B,CAAC;YAC9B;YACA,QAAQ;gBACN,4BAA4B,CAAC;YAC/B;YACA,QAAQ;gBACN,2BAA2B,CAAC;YAC9B;QACF;QAEA,wBAAwB;YACtBC,SAAS;QACX;QAEA,gDAAgD;YAC9C,sBAAsB,CAAC;YACvB,qBAAqB,CAAC;QACxB;IACF,CAAA,EAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/forms.ts"],"sourcesContent":["export const Forms = () => ({\r\n '.sk-form-control': {\r\n '@apply flex flex-col gap-8 w-fit': {},\r\n },\r\n\r\n '.sk-form-label': {\r\n '@apply font-bold': {},\r\n '&-sm': {\r\n '@apply text-label-small': {},\r\n },\r\n '&-md': {\r\n '@apply text-label-medium': {},\r\n },\r\n '&-lg': {\r\n '@apply text-label-large': {},\r\n },\r\n },\r\n\r\n 'legend.sk-form-label': {\r\n display: 'contents',\r\n },\r\n\r\n '.sk-form-helper-text, .sk-form-error-message': {\r\n '@apply font-normal': {},\r\n '@apply text-small': {},\r\n },\r\n '.sk-form-error-message': {\r\n '@apply text-error': {},\r\n '@apply flex items-start gap-8': {},\r\n '@apply self-stretch': {},\r\n },\r\n '.sk-form-error-message-icon': {\r\n '@apply shrink-0': {},\r\n '@apply pt-1': {},\r\n },\r\n});\r\n"],"names":["Forms","display"],"mappings":"AAAA,OAAO,MAAMA,QAAQ,IAAO,CAAA;QAC1B,oBAAoB;YAClB,oCAAoC,CAAC;QACvC;QAEA,kBAAkB;YAChB,oBAAoB,CAAC;YACrB,QAAQ;gBACN,2BAA2B,CAAC;YAC9B;YACA,QAAQ;gBACN,4BAA4B,CAAC;YAC/B;YACA,QAAQ;gBACN,2BAA2B,CAAC;YAC9B;QACF;QAEA,wBAAwB;YACtBC,SAAS;QACX;QAEA,gDAAgD;YAC9C,sBAAsB,CAAC;YACvB,qBAAqB,CAAC;QACxB;QACA,0BAA0B;YACxB,qBAAqB,CAAC;YACtB,iCAAiC,CAAC;YAClC,uBAAuB,CAAC;QAC1B;QACA,+BAA+B;YAC7B,mBAAmB,CAAC;YACpB,eAAe,CAAC;QAClB;IACF,CAAA,EAAG"}
|
|
@@ -167,53 +167,57 @@ function addon() {
|
|
|
167
167
|
function inputGroup() {
|
|
168
168
|
return {
|
|
169
169
|
'&-group': {
|
|
170
|
-
'&-
|
|
171
|
-
'@apply flex gap-0 max-w-full': {}
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
'@apply text-input-large': {},
|
|
185
|
-
'@apply rounded-button-lg': {},
|
|
186
|
-
'@apply h-48': {}
|
|
187
|
-
},
|
|
188
|
-
'&&-md': {
|
|
189
|
-
'@apply text-input-medium': {},
|
|
190
|
-
'@apply rounded-button-md': {},
|
|
191
|
-
'@apply h-40': {}
|
|
192
|
-
},
|
|
193
|
-
'&&-sm': {
|
|
194
|
-
'@apply text-input-small': {},
|
|
195
|
-
'@apply rounded-button-sm': {},
|
|
196
|
-
'@apply h-32': {}
|
|
197
|
-
},
|
|
198
|
-
'&[data-hasleftaddon="true"]': {
|
|
199
|
-
'@apply pl-0': {},
|
|
200
|
-
'@apply rounded-l-0': {},
|
|
201
|
-
'@apply border-l-0': {}
|
|
202
|
-
},
|
|
203
|
-
'&[data-hasrightaddon="true"]': {
|
|
204
|
-
'@apply pr-0': {},
|
|
205
|
-
'@apply rounded-r-0': {},
|
|
206
|
-
'@apply border-r-0': {}
|
|
170
|
+
'&-outer': {
|
|
171
|
+
'@apply flex gap-0 max-w-full': {},
|
|
172
|
+
'&[data-hasleftaddon="true"]': {
|
|
173
|
+
'.sk-form-input, .sk-form-input-group-inner': {
|
|
174
|
+
'@apply rounded-l-0': {},
|
|
175
|
+
'@apply border-l-0': {}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
'&[data-hasrightaddon="true"]': {
|
|
179
|
+
'.sk-form-input, .sk-form-input-group-inner': {
|
|
180
|
+
'@apply rounded-r-0': {},
|
|
181
|
+
'@apply border-r-0': {}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
207
184
|
},
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
'@apply
|
|
211
|
-
'@apply
|
|
212
|
-
'@apply focus:ring-
|
|
213
|
-
'@apply
|
|
214
|
-
|
|
215
|
-
'@apply
|
|
216
|
-
'
|
|
185
|
+
'&-inner': {
|
|
186
|
+
'@apply flex relative grow': {},
|
|
187
|
+
'@apply items-center': {},
|
|
188
|
+
'@apply focus-within:ring': {},
|
|
189
|
+
'@apply focus-within:ring-ring': {},
|
|
190
|
+
'@apply text-dark-secondary': {},
|
|
191
|
+
//Focus
|
|
192
|
+
'@apply focus-within:border-input-field-surface': {},
|
|
193
|
+
'&:not(:invalid):not([aria-invalid="true"])': {
|
|
194
|
+
'@apply focus-within:border-input-field-surface': {}
|
|
195
|
+
},
|
|
196
|
+
'&&-lg': {
|
|
197
|
+
'@apply text-input-large': {},
|
|
198
|
+
'@apply rounded-button-lg': {},
|
|
199
|
+
'@apply h-48': {}
|
|
200
|
+
},
|
|
201
|
+
'&&-md': {
|
|
202
|
+
'@apply text-input-medium': {},
|
|
203
|
+
'@apply rounded-button-md': {},
|
|
204
|
+
'@apply h-40': {}
|
|
205
|
+
},
|
|
206
|
+
'&&-sm': {
|
|
207
|
+
'@apply text-input-small': {},
|
|
208
|
+
'@apply rounded-button-sm': {},
|
|
209
|
+
'@apply h-32': {}
|
|
210
|
+
},
|
|
211
|
+
...inputStandards(),
|
|
212
|
+
'.sk-form-input': {
|
|
213
|
+
'@apply rounded-0': {},
|
|
214
|
+
'@apply border-0': {},
|
|
215
|
+
'@apply focus:ring-0': {},
|
|
216
|
+
'@apply focus:ring-offset-0': {},
|
|
217
|
+
'@apply bg-transparent': {},
|
|
218
|
+
'@apply dark:bg-transparent': {},
|
|
219
|
+
'@apply grow': {}
|
|
220
|
+
}
|
|
217
221
|
}
|
|
218
222
|
}
|
|
219
223
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/input.ts"],"sourcesContent":["function calendar() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;\r\n}\r\nfunction clock() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;\r\n}\r\n\r\nfunction inputStandards() {\r\n return {\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n\r\n '@apply placeholder:text-dark-placeholder': {},\r\n\r\n '@apply bg-input-field-surface': {},\r\n\r\n //Invalid\r\n '&:invalid, &[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply text-dark-disabled': {},\r\n },\r\n\r\n //readOnly\r\n '&:read-only': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n },\r\n };\r\n}\r\n\r\nfunction addin() {\r\n return {\r\n '&-addin': {\r\n '@apply bg-transparent': {},\r\n '@apply flex': {},\r\n '@apply justify-start items-center': {},\r\n '&-sm': {\r\n '@apply px-6 gap-6': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-12': {},\r\n '@apply pl-10': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-12': {},\r\n '@apply pr-10': {},\r\n },\r\n svg: {\r\n '@apply w-16 h-16': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-16': {},\r\n '@apply pl-12': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-16': {},\r\n '@apply pr-12': {},\r\n },\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-20': {},\r\n '@apply pl-16': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-20': {},\r\n '@apply pr-16': {},\r\n },\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex flex-none relative': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-left': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n '&&-right': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '.sk-form-select': {\r\n '@apply rounded-0': {},\r\n '@apply border-0 hover:border-0': {},\r\n '@apply focus:ring-0 focus:z-10': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent hover:bg-transparent': {},\r\n '@apply dark:bg-transparent hover:dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '&&-left .sk-form-select': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-select': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n '.sk-form-combobox': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus-within:ring-0': {},\r\n '@apply focus-within:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n },\r\n '&&-left .sk-form-combobox': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-combobox': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n },\r\n };\r\n}\r\nfunction inputGroup() {\r\n return {\r\n '&-group': {\r\n '&-wrapper': {\r\n '@apply flex gap-0 max-w-full': {},\r\n },\r\n '@apply flex relative grow': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '@apply pl-0': {},\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '@apply pr-0': {},\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction timeAndDatePicker() {\r\n return {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply block': {},\r\n '@apply p-0': {},\r\n '@apply pl-6 md:pl-8': {},\r\n '@apply m-0': {},\r\n '@apply bg-none': {},\r\n '@apply bg-dark-secondary': {},\r\n '&.sk-form-input-sm': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n\r\n '&[type=\"date\"]::-webkit-inner-spin-button, &[type=\"date\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"datetime-local\"]::-webkit-inner-spin-button, &[type=\"datetime-local\"]::-webkit-calendar-picker-indicator':\r\n {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"time\"]::-webkit-inner-spin-button, &[type=\"time\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply color-black-disabled': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nexport const Input = () => ({\r\n '.sk-form-input': {\r\n '@apply grow-0': {},\r\n '@apply text-dark-primary': {},\r\n\r\n '&[data-hideextra=\"true\"]': {\r\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\r\n '-webkit-appearance': 'none',\r\n display: 'none',\r\n margin: '0px',\r\n },\r\n '-moz-appearance': 'textfield',\r\n },\r\n\r\n '&&-lg': {\r\n '@apply rounded-button-lg': {},\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-large': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply rounded-button-md': {},\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-medium': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply rounded-button-sm': {},\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n '@apply gap-6': {},\r\n '@apply text-input-small': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-textarea': {\r\n '@apply h-auto': {},\r\n '&-warning': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n\r\n //Focus\r\n '@apply focus:ring': {},\r\n '@apply focus:ring-ring': {},\r\n '@apply focus:ring-offset': {},\r\n '@apply focus:border-input-field-surface': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply focus-within:ring-offset': {},\r\n '@apply focus-within:border-input-field-surface': {},\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus:hover:border-input-field-surface': {},\r\n },\r\n ...timeAndDatePicker(),\r\n ...inputStandards(),\r\n ...inputGroup(),\r\n ...addin(),\r\n ...addon(),\r\n },\r\n});\r\n"],"names":["calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","Input","display","margin"],"mappings":"AAAA,SAASA;IACP,OAAO,CAAC,qWAAqW,CAAC;AAChX;AACA,SAASC;IACP,OAAO,CAAC,kQAAkQ,CAAC;AAC7Q;AAEA,SAASC;IACP,OAAO;QACL,mBAAmB,CAAC;QACpB,qCAAqC,CAAC;QACtC,iDAAiD,CAAC;QAElD,4CAA4C,CAAC;QAE7C,iCAAiC,CAAC;QAElC,SAAS;QACT,qCAAqC;YACnC,gDAAgD,CAAC;QACnD;QAEA,UAAU;QACV,uCAAuC;YACrC,0CAA0C,CAAC;YAC3C,8CAA8C,CAAC;YAC/C,oDAAoD,CAAC;YACrD,6BAA6B,CAAC;QAChC;QAEA,UAAU;QACV,eAAe;YACb,iCAAiC,CAAC;YAClC,8CAA8C,CAAC;YAC/C,8BAA8B,CAAC;YAC/B,0CAA0C,CAAC;QAC7C;IACF;AACF;AAEA,SAASC;IACP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GAAGH,OAAO;YACV,GAAGE,OAAO;QACZ;IACF,CAAA,EAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/input.ts"],"sourcesContent":["function calendar() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect width='18' height='18' x='3' y='4' rx='2' ry='2' /><line x1='16' x2='16' y1='2' y2='6' /><line x1='8' x2='8' y1='2' y2='6' /><line x1='3' x2='21' y1='10' y2='10' /></svg>`;\r\n}\r\nfunction clock() {\r\n return `<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='12' r='10' /><polyline points='12 6 12 12 16 14' /></svg>`;\r\n}\r\n\r\nfunction inputStandards() {\r\n return {\r\n '@apply border-1': {},\r\n '@apply border-input-field-outline': {},\r\n '@apply hover:border-input-field-outline-hover': {},\r\n\r\n '@apply placeholder:text-dark-placeholder': {},\r\n\r\n '@apply bg-input-field-surface': {},\r\n\r\n //Invalid\r\n '&:invalid, &[aria-invalid=\"true\"]': {\r\n '@apply border-2 border-error-surface-primary': {},\r\n },\r\n\r\n //Disabled\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '@apply bg-input-field-surface-disabled': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply hover:border-input-field-outline-disabled': {},\r\n '@apply text-dark-disabled': {},\r\n },\r\n\r\n //readOnly\r\n '&:read-only': {\r\n '@apply bg-input-field-surface': {},\r\n '@apply border-input-field-outline-disabled': {},\r\n '@apply text-dark-secondary': {},\r\n '@apply placeholder:text-dark-secondary': {},\r\n },\r\n };\r\n}\r\n\r\nfunction addin() {\r\n return {\r\n '&-addin': {\r\n '@apply bg-transparent': {},\r\n '@apply flex': {},\r\n '@apply justify-start items-center': {},\r\n '&-sm': {\r\n '@apply px-6 gap-6': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-12': {},\r\n '@apply pl-10': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-12': {},\r\n '@apply pr-10': {},\r\n },\r\n svg: {\r\n '@apply w-16 h-16': {},\r\n },\r\n },\r\n '&-md': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-16': {},\r\n '@apply pl-12': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-16': {},\r\n '@apply pr-12': {},\r\n },\r\n svg: {\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n '&-lg': {\r\n '@apply md:px-8 md:gap-8': {},\r\n '&.sk-form-input-addin-left': {\r\n '@apply -mr-20': {},\r\n '@apply pl-16': {},\r\n },\r\n '&.sk-form-input-addin-right': {\r\n '@apply -ml-20': {},\r\n '@apply pr-16': {},\r\n },\r\n svg: {\r\n '@apply w-22 h-22': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction addon() {\r\n return {\r\n '&-addon': {\r\n '@apply flex flex-none relative': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-left': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n '&&-right': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '.sk-form-select': {\r\n '@apply rounded-0': {},\r\n '@apply border-0 hover:border-0': {},\r\n '@apply focus:ring-0 focus:z-10': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent hover:bg-transparent': {},\r\n '@apply dark:bg-transparent hover:dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n '&&-left .sk-form-select': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-select': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n '.sk-form-combobox': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus-within:ring-0': {},\r\n '@apply focus-within:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n },\r\n '&&-left .sk-form-combobox': {\r\n '@apply border-r-1 border-r-divider': {},\r\n '@apply focus:border-r-transparent': {},\r\n },\r\n '&&-right .sk-form-combobox': {\r\n '@apply border-l-1 border-l-divider': {},\r\n '@apply focus:border-l-transparent': {},\r\n },\r\n },\r\n };\r\n}\r\nfunction inputGroup() {\r\n return {\r\n '&-group': {\r\n '&-outer': {\r\n '@apply flex gap-0 max-w-full': {},\r\n '&[data-hasleftaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-l-0': {},\r\n '@apply border-l-0': {},\r\n },\r\n },\r\n '&[data-hasrightaddon=\"true\"]': {\r\n '.sk-form-input, .sk-form-input-group-inner': {\r\n '@apply rounded-r-0': {},\r\n '@apply border-r-0': {},\r\n },\r\n },\r\n },\r\n '&-inner': {\r\n '@apply flex relative grow': {},\r\n '@apply items-center': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply text-dark-secondary': {},\r\n //Focus\r\n '@apply focus-within:border-input-field-surface': {},\r\n\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus-within:border-input-field-surface': {},\r\n },\r\n\r\n '&&-lg': {\r\n '@apply text-input-large': {},\r\n '@apply rounded-button-lg': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply text-input-medium': {},\r\n '@apply rounded-button-md': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply text-input-small': {},\r\n '@apply rounded-button-sm': {},\r\n '@apply h-32': {},\r\n },\r\n\r\n ...inputStandards(),\r\n '.sk-form-input': {\r\n '@apply rounded-0': {},\r\n '@apply border-0': {},\r\n '@apply focus:ring-0': {},\r\n '@apply focus:ring-offset-0': {},\r\n '@apply bg-transparent': {},\r\n '@apply dark:bg-transparent': {},\r\n '@apply grow': {},\r\n },\r\n },\r\n },\r\n };\r\n}\r\n\r\nfunction timeAndDatePicker() {\r\n return {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply block': {},\r\n '@apply p-0': {},\r\n '@apply pl-6 md:pl-8': {},\r\n '@apply m-0': {},\r\n '@apply bg-none': {},\r\n '@apply bg-dark-secondary': {},\r\n '&.sk-form-input-sm': {\r\n '@apply w-16 h-16': {},\r\n '@apply -mr-2': {},\r\n },\r\n '&.sk-form-input-md': {\r\n '@apply -mr-4': {},\r\n '@apply w-18 h-18': {},\r\n },\r\n '&.sk-form-input-lg': {\r\n '@apply -mr-6': {},\r\n '@apply w-20 h-20': {},\r\n },\r\n },\r\n\r\n '&[type=\"date\"]::-webkit-inner-spin-button, &[type=\"date\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"datetime-local\"]::-webkit-inner-spin-button, &[type=\"datetime-local\"]::-webkit-calendar-picker-indicator':\r\n {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${calendar()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n '&[type=\"time\"]::-webkit-inner-spin-button, &[type=\"time\"]::-webkit-calendar-picker-indicator': {\r\n mask: [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n '-webkit-mask': [`url(\"data:image/svg+xml;utf-8,${clock()}\") no-repeat 100% 100%`],\r\n maskSize: 'contain',\r\n '-webkit-mask-size': 'contain',\r\n },\r\n\r\n '&:disabled, &[aria-disabled=\"true\"]': {\r\n '&::-webkit-inner-spin-button, &::-webkit-calendar-picker-indicator': {\r\n '@apply color-black-disabled': {},\r\n },\r\n },\r\n };\r\n}\r\n\r\nexport const Input = () => ({\r\n '.sk-form-input': {\r\n '@apply grow-0': {},\r\n '@apply text-dark-primary': {},\r\n\r\n '&[data-hideextra=\"true\"]': {\r\n '&::-webkit-outer-spin-button, &::-webkit-inner-spin-button': {\r\n '-webkit-appearance': 'none',\r\n display: 'none',\r\n margin: '0px',\r\n },\r\n '-moz-appearance': 'textfield',\r\n },\r\n\r\n '&&-lg': {\r\n '@apply rounded-button-lg': {},\r\n '@apply px-20': {},\r\n '@apply py-11': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-large': {},\r\n '@apply h-48': {},\r\n },\r\n '&&-md': {\r\n '@apply rounded-button-md': {},\r\n '@apply px-16': {},\r\n '@apply py-7': {},\r\n '@apply gap-8': {},\r\n '@apply text-input-medium': {},\r\n '@apply h-40': {},\r\n },\r\n '&&-sm': {\r\n '@apply rounded-button-sm': {},\r\n '@apply px-12': {},\r\n '@apply py-5': {},\r\n '@apply gap-6': {},\r\n '@apply text-input-small': {},\r\n '@apply h-32': {},\r\n },\r\n '&&-textarea': {\r\n '@apply h-auto': {},\r\n '&-warning': {\r\n '@apply sr-only': {},\r\n },\r\n },\r\n\r\n //Focus\r\n '@apply focus:ring': {},\r\n '@apply focus:ring-ring': {},\r\n '@apply focus:ring-offset': {},\r\n '@apply focus:border-input-field-surface': {},\r\n '@apply focus-within:ring': {},\r\n '@apply focus-within:ring-ring': {},\r\n '@apply focus-within:ring-offset': {},\r\n '@apply focus-within:border-input-field-surface': {},\r\n '&:not(:invalid):not([aria-invalid=\"true\"])': {\r\n '@apply focus:hover:border-input-field-surface': {},\r\n },\r\n ...timeAndDatePicker(),\r\n ...inputStandards(),\r\n ...inputGroup(),\r\n ...addin(),\r\n ...addon(),\r\n },\r\n});\r\n"],"names":["calendar","clock","inputStandards","addin","svg","addon","inputGroup","timeAndDatePicker","mask","maskSize","Input","display","margin"],"mappings":"AAAA,SAASA;IACP,OAAO,CAAC,qWAAqW,CAAC;AAChX;AACA,SAASC;IACP,OAAO,CAAC,kQAAkQ,CAAC;AAC7Q;AAEA,SAASC;IACP,OAAO;QACL,mBAAmB,CAAC;QACpB,qCAAqC,CAAC;QACtC,iDAAiD,CAAC;QAElD,4CAA4C,CAAC;QAE7C,iCAAiC,CAAC;QAElC,SAAS;QACT,qCAAqC;YACnC,gDAAgD,CAAC;QACnD;QAEA,UAAU;QACV,uCAAuC;YACrC,0CAA0C,CAAC;YAC3C,8CAA8C,CAAC;YAC/C,oDAAoD,CAAC;YACrD,6BAA6B,CAAC;QAChC;QAEA,UAAU;QACV,eAAe;YACb,iCAAiC,CAAC;YAClC,8CAA8C,CAAC;YAC/C,8BAA8B,CAAC;YAC/B,0CAA0C,CAAC;QAC7C;IACF;AACF;AAEA,SAASC;IACP,OAAO;QACL,WAAW;YACT,yBAA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ACnB,GAAGI,YAAY;YACf,GAAGH,OAAO;YACV,GAAGE,OAAO;QACZ;IACF,CAAA,EAAG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/components/progress-bar.ts"],"sourcesContent":["export const ProgressBar = (colors: string[]) => ({\r\n '.sk-progress-bar': {\r\n '@apply flex h-4 rounded-circular bg-background-color-mixin-2': {},\r\n\r\n '&-fill': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-inverted-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-primary-surface`]: {},\r\n },\r\n },\r\n },\r\n});\r\n"],"names":["ProgressBar","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,cAAc,CAACC,SAAsB,CAAA;QAChD,oBAAoB;YAClB,gEAAgE,CAAC;YAEjE,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,yBAAyB;4BACvB,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBAC3C;wBAEA,yBAAyB;4BACvB,CAAC,CAAC,mBAAmB,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBACpD;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,yBAAyB;oBACvB,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC;gBAClC;YACF;QACF;IACF,CAAA,EAAG"}
|
|
1
|
+
{"version":3,"sources":["../../../src/components/progress-bar.ts"],"sourcesContent":["export const ProgressBar = (colors: string[]) => ({\r\n '.sk-progress-bar': {\r\n '@apply flex h-4 rounded-circular bg-background-color-mixin-2': {},\r\n\r\n '&-fill': {\r\n '@apply rounded-circular': {},\r\n },\r\n\r\n ...colors.reduce(\r\n (styles, color) => ({\r\n ...styles,\r\n [`&[data-color=\"${color}\"]`]: {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-${color}-surface-primary`]: {},\r\n },\r\n\r\n '&[data-accent=\"true\"]': {\r\n [`@apply bg-inverted-${color}-surface-primary`]: {},\r\n },\r\n },\r\n }),\r\n {}\r\n ),\r\n\r\n \"&[data-color='tertiary']\": {\r\n '.sk-progress-bar-fill': {\r\n [`@apply bg-primary-surface`]: {},\r\n },\r\n },\r\n '&-sm': {\r\n '@apply h-[4px]': {},\r\n },\r\n '&-md': {\r\n '@apply h-[8px]': {},\r\n },\r\n },\r\n});\r\n"],"names":["ProgressBar","colors","reduce","styles","color"],"mappings":"AAAA,OAAO,MAAMA,cAAc,CAACC,SAAsB,CAAA;QAChD,oBAAoB;YAClB,gEAAgE,CAAC;YAEjE,UAAU;gBACR,2BAA2B,CAAC;YAC9B;YAEA,GAAGA,OAAOC,MAAM,CACd,CAACC,QAAQC,QAAW,CAAA;oBAClB,GAAGD,MAAM;oBACT,CAAC,CAAC,cAAc,EAAEC,MAAM,EAAE,CAAC,CAAC,EAAE;wBAC5B,yBAAyB;4BACvB,CAAC,CAAC,UAAU,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBAC3C;wBAEA,yBAAyB;4BACvB,CAAC,CAAC,mBAAmB,EAAEA,MAAM,gBAAgB,CAAC,CAAC,EAAE,CAAC;wBACpD;oBACF;gBACF,CAAA,GACA,CAAC,EACF;YAED,4BAA4B;gBAC1B,yBAAyB;oBACvB,CAAC,CAAC,yBAAyB,CAAC,CAAC,EAAE,CAAC;gBAClC;YACF;YACA,QAAQ;gBACN,kBAAkB,CAAC;YACrB;YACA,QAAQ;gBACN,kBAAkB,CAAC;YACrB;QACF;IACF,CAAA,EAAG"}
|