@haiilo/catalyst 6.5.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/catalyst/catalyst.css +64 -115
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/p-5dab6694.entry.js +10 -0
- package/dist/catalyst/p-5dab6694.entry.js.map +1 -0
- package/dist/catalyst/scss/_snippets/_form-label.scss +5 -9
- package/dist/catalyst/scss/_variables.scss +29 -2
- package/dist/catalyst/scss/core/_base.scss +2 -4
- package/dist/catalyst/scss/core/_form.scss +14 -0
- package/dist/catalyst/scss/core/_notification.scss +2 -3
- package/dist/catalyst/scss/core/_typography.scss +17 -88
- package/dist/catalyst/scss/index.scss +1 -0
- package/dist/catalyst/scss/index.shadow.scss +1 -0
- package/dist/catalyst/scss/utils/_typography.mixins.scss +3 -26
- package/dist/catalyst/scss/vendor/_flatpickr.scss +8 -8
- package/dist/cjs/cat-alert_26.cjs.entry.js +66 -45
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-alert/cat-alert.css +0 -1
- package/dist/collection/components/cat-card/cat-card.css +0 -1
- package/dist/collection/components/cat-checkbox/cat-checkbox.css +9 -23
- package/dist/collection/components/cat-datepicker/cat-datepicker.css +0 -1
- package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.css +7 -10
- package/dist/collection/components/cat-dropdown/cat-dropdown.css +2 -0
- package/dist/collection/components/cat-input/cat-input.css +16 -20
- package/dist/collection/components/cat-radio/cat-radio.css +9 -23
- package/dist/collection/components/cat-radio-group/cat-radio-group.js +19 -11
- package/dist/collection/components/cat-radio-group/cat-radio-group.js.map +1 -1
- package/dist/collection/components/cat-scrollable/cat-scrollable.css +2 -0
- package/dist/collection/components/cat-select/cat-select.css +15 -25
- package/dist/collection/components/cat-select-demo/cat-select-demo.js +0 -1
- package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
- package/dist/collection/components/cat-skeleton/cat-skeleton.css +4 -4
- package/dist/collection/components/cat-tabs/cat-tabs.js +114 -29
- package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +15 -17
- package/dist/collection/components/cat-toggle/cat-toggle.css +9 -23
- package/dist/collection/scss/_snippets/_form-label.scss +5 -9
- package/dist/collection/scss/_variables.scss +29 -2
- package/dist/collection/scss/core/_base.scss +2 -4
- package/dist/collection/scss/core/_form.scss +14 -0
- package/dist/collection/scss/core/_notification.scss +2 -3
- package/dist/collection/scss/core/_typography.scss +17 -88
- package/dist/collection/scss/index.scss +1 -0
- package/dist/collection/scss/index.shadow.scss +1 -0
- package/dist/collection/scss/utils/_typography.mixins.scss +3 -26
- package/dist/collection/scss/vendor/_flatpickr.scss +8 -8
- package/dist/components/cat-alert.js +1 -1
- package/dist/components/cat-alert.js.map +1 -1
- package/dist/components/cat-card.js +1 -1
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-checkbox2.js +1 -1
- package/dist/components/cat-checkbox2.js.map +1 -1
- package/dist/components/cat-datepicker-inline.js +1 -1
- package/dist/components/cat-datepicker-inline.js.map +1 -1
- package/dist/components/cat-datepicker.js +1 -1
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-input2.js +1 -1
- package/dist/components/cat-input2.js.map +1 -1
- package/dist/components/cat-radio-group.js +19 -11
- package/dist/components/cat-radio-group.js.map +1 -1
- package/dist/components/cat-radio.js +1 -1
- package/dist/components/cat-radio.js.map +1 -1
- package/dist/components/cat-select-demo.js +1 -2
- package/dist/components/cat-select-demo.js.map +1 -1
- package/dist/components/cat-select2.js +1 -1
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-skeleton2.js +1 -1
- package/dist/components/cat-skeleton2.js.map +1 -1
- package/dist/components/cat-tabs.js +41 -27
- package/dist/components/cat-tabs.js.map +1 -1
- package/dist/components/cat-textarea.js +1 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/cat-toggle.js +1 -1
- package/dist/components/cat-toggle.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +66 -45
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/cat-radio-group/cat-radio-group.d.ts +3 -0
- package/dist/types/components/cat-tabs/cat-tabs.d.ts +23 -4
- package/dist/types/components.d.ts +18 -0
- package/package.json +2 -2
- package/dist/catalyst/p-d303131e.entry.js +0 -10
- package/dist/catalyst/p-d303131e.entry.js.map +0 -1
- package/dist/catalyst/scss/_snippets/_checkbox-hint.scss +0 -20
- package/dist/collection/scss/_snippets/_checkbox-hint.scss +0 -20
|
@@ -3,17 +3,23 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/* stylelint-disable value-keyword-case */
|
|
5
5
|
/* stylelint-enable value-keyword-case */
|
|
6
|
-
.hint-
|
|
6
|
+
.hint-wrapper {
|
|
7
|
+
flex: 0 1 auto;
|
|
7
8
|
display: flex;
|
|
8
9
|
gap: 0.5rem;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.hint-section {
|
|
13
|
+
flex: 1 1 auto;
|
|
14
|
+
display: flex;
|
|
9
15
|
flex-direction: column;
|
|
10
|
-
|
|
16
|
+
gap: 0.25rem;
|
|
17
|
+
color: rgb(var(--cat-font-color-muted, 81, 92, 108));
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
line-height: 1.125rem;
|
|
11
20
|
}
|
|
12
21
|
.hint-section .input-hint,
|
|
13
22
|
.hint-section ::slotted([slot=hint]) {
|
|
14
|
-
font-size: 0.875rem;
|
|
15
|
-
line-height: 1.125rem;
|
|
16
|
-
font-weight: var(--cat-font-weight-body, 400);
|
|
17
23
|
margin: 0 !important;
|
|
18
24
|
}
|
|
19
25
|
|
|
@@ -285,27 +291,20 @@
|
|
|
285
291
|
flex-grow: 1;
|
|
286
292
|
justify-content: space-between;
|
|
287
293
|
gap: 0.25rem;
|
|
294
|
+
color: rgb(var(--cat-font-color-muted, 81, 92, 108));
|
|
288
295
|
}
|
|
289
296
|
|
|
290
|
-
.label-optional
|
|
291
|
-
|
|
297
|
+
.label-optional,
|
|
298
|
+
.label-character-count {
|
|
299
|
+
display: inline-flex;
|
|
292
300
|
align-items: center;
|
|
293
301
|
max-height: 1.25rem;
|
|
294
302
|
font-size: 0.75rem;
|
|
295
303
|
line-height: 1rem;
|
|
296
|
-
font-weight: var(--cat-font-weight-body, 400);
|
|
297
|
-
color: rgb(var(--cat-font-color-muted, 81, 92, 108));
|
|
298
304
|
}
|
|
299
305
|
|
|
300
306
|
.label-character-count {
|
|
301
|
-
display: flex;
|
|
302
|
-
align-items: center;
|
|
303
307
|
margin-left: auto;
|
|
304
|
-
max-height: 1.25rem;
|
|
305
|
-
font-size: 0.75rem;
|
|
306
|
-
line-height: 1rem;
|
|
307
|
-
font-weight: var(--cat-font-weight-body, 400);
|
|
308
|
-
color: rgb(var(--cat-font-color-muted, 81, 92, 108));
|
|
309
308
|
}
|
|
310
309
|
|
|
311
310
|
.input-horizontal .label-container.hidden label,
|
|
@@ -351,7 +350,6 @@
|
|
|
351
350
|
font-size: 0.9375rem;
|
|
352
351
|
line-height: 1.25rem;
|
|
353
352
|
font-weight: var(--cat-font-weight-body, 400);
|
|
354
|
-
margin-bottom: 1rem;
|
|
355
353
|
}
|
|
356
354
|
|
|
357
355
|
:host([hidden]) {
|
|
@@ -3,20 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/* stylelint-disable value-keyword-case */
|
|
5
5
|
/* stylelint-enable value-keyword-case */
|
|
6
|
-
.hint-section {
|
|
7
|
-
display: flex;
|
|
8
|
-
gap: 0.5rem;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
color: rgb(var(--cat-hint-color, inherit));
|
|
11
|
-
}
|
|
12
|
-
.hint-section .input-hint,
|
|
13
|
-
.hint-section ::slotted([slot=hint]) {
|
|
14
|
-
font-size: 0.875rem;
|
|
15
|
-
line-height: 1.125rem;
|
|
16
|
-
font-weight: var(--cat-font-weight-body, 400);
|
|
17
|
-
margin: 0 !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
6
|
.hint-wrapper {
|
|
21
7
|
flex: 0 1 auto;
|
|
22
8
|
display: flex;
|
|
@@ -25,22 +11,22 @@
|
|
|
25
11
|
|
|
26
12
|
.hint-section {
|
|
27
13
|
flex: 1 1 auto;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
.input-hint,
|
|
32
|
-
::slotted([slot=hint]) {
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
gap: 0.25rem;
|
|
33
17
|
color: rgb(var(--cat-font-color-muted, 81, 92, 108));
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
18
|
+
font-size: 0.875rem;
|
|
19
|
+
line-height: 1.125rem;
|
|
20
|
+
}
|
|
21
|
+
.hint-section .input-hint,
|
|
22
|
+
.hint-section ::slotted([slot=hint]) {
|
|
23
|
+
margin: 0 !important;
|
|
37
24
|
}
|
|
38
25
|
|
|
39
26
|
:host {
|
|
40
27
|
display: flex;
|
|
41
28
|
flex-direction: column;
|
|
42
29
|
gap: 0.5rem;
|
|
43
|
-
margin-bottom: 1rem;
|
|
44
30
|
}
|
|
45
31
|
|
|
46
32
|
:host([hidden]) {
|
|
@@ -31,23 +31,19 @@ $cat-input-height: 2.5rem;
|
|
|
31
31
|
flex-grow: 1;
|
|
32
32
|
justify-content: space-between;
|
|
33
33
|
gap: 0.25rem;
|
|
34
|
+
color: cat-token('color.ui.font.muted');
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
.label-optional
|
|
37
|
-
|
|
37
|
+
.label-optional,
|
|
38
|
+
.label-character-count {
|
|
39
|
+
display: inline-flex;
|
|
38
40
|
align-items: center;
|
|
39
41
|
max-height: 1.25rem;
|
|
40
|
-
@include cat-body('xs');
|
|
41
|
-
color: cat-token('color.ui.font.muted');
|
|
42
|
+
@include cat-body('xs', null);
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.label-character-count {
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
46
|
margin-left: auto;
|
|
48
|
-
max-height: 1.25rem;
|
|
49
|
-
@include cat-body('xs');
|
|
50
|
-
color: cat-token('color.ui.font.muted');
|
|
51
47
|
}
|
|
52
48
|
|
|
53
49
|
.input-horizontal,
|
|
@@ -1,12 +1,25 @@
|
|
|
1
1
|
@use 'variables.tokens' as *;
|
|
2
2
|
@forward 'variables.tokens';
|
|
3
3
|
|
|
4
|
+
// --------
|
|
5
|
+
// -- Variables
|
|
6
|
+
// These variables are not part of the design tokens, as they do not have a
|
|
7
|
+
// corresponding value assigned to them. They are still used throughout the
|
|
8
|
+
// design system to allow for easy customization while maintaining correct
|
|
9
|
+
// style inheritance.
|
|
10
|
+
// --------
|
|
11
|
+
|
|
12
|
+
$cat-font-family-head: var(--cat-font-family-head);
|
|
13
|
+
$cat-font-color-head: rgb(var(--cat-font-color-head));
|
|
14
|
+
$cat-font-color-mono: rgb(var(--cat-font-color-mono));
|
|
15
|
+
|
|
4
16
|
// --------
|
|
5
17
|
// -- Spacings
|
|
6
18
|
// --------
|
|
7
19
|
|
|
8
|
-
$cat-head-margin-bottom:
|
|
9
|
-
$cat-body-margin-bottom:
|
|
20
|
+
$cat-head-margin-bottom: 1rem;
|
|
21
|
+
$cat-body-margin-bottom: 2rem;
|
|
22
|
+
$cat-form-margin-bottom: 1.5rem;
|
|
10
23
|
$cat-nav-padding-horizontal: 0.75rem;
|
|
11
24
|
|
|
12
25
|
// --------
|
|
@@ -14,6 +27,20 @@ $cat-nav-padding-horizontal: 0.75rem;
|
|
|
14
27
|
// --------
|
|
15
28
|
|
|
16
29
|
$cat-mark-color: cat-token('color.theme.primary.bg', 0.2);
|
|
30
|
+
/* stylelint-disable value-keyword-case */
|
|
31
|
+
$font-fallback-base:
|
|
32
|
+
system-ui,
|
|
33
|
+
-apple-system,
|
|
34
|
+
'Segoe UI',
|
|
35
|
+
Roboto,
|
|
36
|
+
'Helvetica Neue',
|
|
37
|
+
'Noto Sans',
|
|
38
|
+
'Liberation Sans',
|
|
39
|
+
Arial,
|
|
40
|
+
sans-serif !default;
|
|
41
|
+
$font-fallback-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
|
|
42
|
+
$font-fallback-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
|
|
43
|
+
/* stylelint-enable value-keyword-case */
|
|
17
44
|
|
|
18
45
|
// --------
|
|
19
46
|
// -- Elevations
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
@use '../mixins' as *;
|
|
3
3
|
|
|
4
|
-
// ---- Typography
|
|
5
|
-
|
|
6
4
|
html,
|
|
7
5
|
body {
|
|
8
6
|
background-color: cat-token('color.ui.background.canvas');
|
|
@@ -10,6 +8,6 @@ body {
|
|
|
10
8
|
|
|
11
9
|
body {
|
|
12
10
|
@include cat-body('m');
|
|
13
|
-
font-family: cat-body-font
|
|
14
|
-
color: cat-token('color.ui.font.
|
|
11
|
+
font-family: cat-token('font.family.body'), $font-fallback-base, cat-token('font.family.emoji'), $font-fallback-emoji;
|
|
12
|
+
color: cat-token('color.ui.font.base');
|
|
15
13
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
@use '../mixins' as *;
|
|
3
|
+
|
|
4
|
+
.cat-form {
|
|
5
|
+
:is(cat-checkbox, cat-datepicker, cat-inline, cat-input, cat-radio-group, cat-select, cat-textarea, cat-toggle):not(
|
|
6
|
+
:last-child
|
|
7
|
+
) {
|
|
8
|
+
margin-bottom: $cat-form-margin-bottom;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
cat-radio:not(:last-child) {
|
|
12
|
+
margin-bottom: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -7,14 +7,13 @@
|
|
|
7
7
|
background: cat-token('color.ui.background.surface');
|
|
8
8
|
padding: 1.25rem;
|
|
9
9
|
box-shadow: none;
|
|
10
|
-
color: cat-token('color.ui.font.
|
|
10
|
+
color: cat-token('color.ui.font.base');
|
|
11
11
|
width: 400px;
|
|
12
12
|
max-width: 400px;
|
|
13
13
|
cursor: unset;
|
|
14
14
|
|
|
15
15
|
&.cat-toastify-dark {
|
|
16
|
-
--cat-font-color-
|
|
17
|
-
--cat-font-color-body: #{cat-token('color.ui.font.bodyInverted', $wrap: false)};
|
|
16
|
+
--cat-font-color-base: #{cat-token('color.ui.font.baseInverted', $wrap: false)};
|
|
18
17
|
--cat-primary-text: #{cat-token('color.theme.primaryInverted.text', $wrap: false)};
|
|
19
18
|
--cat-primary-text-hover: #{cat-token('color.theme.primaryInverted.textHover', $wrap: false)};
|
|
20
19
|
--cat-primary-text-active: #{cat-token('color.theme.primaryInverted.textActive', $wrap: false)};
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
@use '../mixins' as *;
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
// -- reset margins
|
|
5
|
+
|
|
6
|
+
:where(h1, h2, h3, h4, h5, h6, p, ol, ul, dl, blockquote, figure, pre, hr),
|
|
5
7
|
.cat-h1,
|
|
6
8
|
.cat-h2,
|
|
7
9
|
.cat-h3,
|
|
8
10
|
.cat-h4,
|
|
9
11
|
.cat-h5,
|
|
10
12
|
.cat-h6 {
|
|
11
|
-
margin
|
|
12
|
-
margin-bottom: $cat-head-margin-bottom;
|
|
13
|
+
margin: 0;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
// -- head styles
|
|
@@ -34,15 +35,9 @@
|
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
|
|
37
|
-
:where(p) {
|
|
38
|
-
margin-top: 0;
|
|
39
|
-
margin-bottom: $cat-body-margin-bottom;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
38
|
hr,
|
|
43
39
|
.cat-hr {
|
|
44
40
|
display: block;
|
|
45
|
-
margin: $cat-body-margin-bottom 0;
|
|
46
41
|
border: 0;
|
|
47
42
|
height: 1px;
|
|
48
43
|
background-color: cat-token('color.ui.border.default');
|
|
@@ -120,11 +115,6 @@ dl {
|
|
|
120
115
|
}
|
|
121
116
|
}
|
|
122
117
|
|
|
123
|
-
:where(ol, ul, dl) {
|
|
124
|
-
margin-top: 0;
|
|
125
|
-
margin-bottom: $cat-body-margin-bottom;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
118
|
nav ol,
|
|
129
119
|
nav ul,
|
|
130
120
|
ol.cat-plain,
|
|
@@ -151,10 +141,6 @@ dd {
|
|
|
151
141
|
|
|
152
142
|
// ----- blockquotes & figures
|
|
153
143
|
|
|
154
|
-
:where(blockquote, figure) {
|
|
155
|
-
margin: 0 0 $cat-body-margin-bottom;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
144
|
blockquote {
|
|
159
145
|
padding: 0.75rem 0 0.75rem calc(1.5rem - 2px);
|
|
160
146
|
border-left: 2px solid cat-token('color.ui.border.quote');
|
|
@@ -181,7 +167,7 @@ blockquote {
|
|
|
181
167
|
}
|
|
182
168
|
|
|
183
169
|
figcaption {
|
|
184
|
-
@include cat-body('s');
|
|
170
|
+
@include cat-body('s', null);
|
|
185
171
|
}
|
|
186
172
|
|
|
187
173
|
// ----- code
|
|
@@ -209,11 +195,6 @@ pre {
|
|
|
209
195
|
}
|
|
210
196
|
}
|
|
211
197
|
|
|
212
|
-
:where(pre) {
|
|
213
|
-
margin-top: 0;
|
|
214
|
-
margin-bottom: $cat-body-margin-bottom;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
198
|
kbd,
|
|
218
199
|
code {
|
|
219
200
|
margin: 0 0.125rem;
|
|
@@ -241,81 +222,29 @@ code {
|
|
|
241
222
|
|
|
242
223
|
// ----- editorial typography
|
|
243
224
|
|
|
244
|
-
cat-article,
|
|
245
225
|
.cat-article {
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
$cat-body-margin-bottom: 2.5rem;
|
|
250
|
-
|
|
251
|
-
:where(h1, h2, h3, h4, h5, h6),
|
|
252
|
-
.cat-h1,
|
|
253
|
-
.cat-h2,
|
|
254
|
-
.cat-h3,
|
|
255
|
-
.cat-h4,
|
|
256
|
-
.cat-h5,
|
|
257
|
-
.cat-h6 {
|
|
258
|
-
margin-top: 0;
|
|
226
|
+
:where(h1, h2, h3),
|
|
227
|
+
:is(.cat-h1, .cat-h2, .cat-h3) {
|
|
228
|
+
color: $cat-font-color-head;
|
|
259
229
|
margin-bottom: $cat-head-margin-bottom;
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
.type-space-small {
|
|
263
|
-
margin-top: 0;
|
|
264
|
-
margin-bottom: calc($cat-body-margin-bottom * 0.2);
|
|
265
|
-
}
|
|
266
230
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
231
|
+
&:has(+ h1, + h2, + h3, + h4, + h5, + h6, + .cat-h1, + .cat-h2, + .cat-h3, + .cat-h4, + .cat-h5, + .cat-h6) {
|
|
232
|
+
margin-bottom: $cat-head-margin-bottom * 0.5;
|
|
233
|
+
}
|
|
270
234
|
}
|
|
271
235
|
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
// + h4,
|
|
277
|
-
// + h5,
|
|
278
|
-
// + h6,
|
|
279
|
-
// + .cat-h1,
|
|
280
|
-
// + .cat-h2,
|
|
281
|
-
// + .cat-h3,
|
|
282
|
-
// + .cat-h4,
|
|
283
|
-
// + .cat-h5,
|
|
284
|
-
// + .cat-h6
|
|
285
|
-
// ) {
|
|
286
|
-
// margin-top: 0;
|
|
287
|
-
// margin-bottom:calc($cat-body-margin-bottom * 0.2);
|
|
288
|
-
// }
|
|
289
|
-
|
|
290
|
-
// :where(h3, h4, h5, h6, .cat-h3, .cat-h4, .cat-h5, .cat-h6):has(+ ul, + ol, + p) {
|
|
291
|
-
// margin-bottom:calc($cat-body-margin-bottom * 0.4);
|
|
292
|
-
// }
|
|
293
|
-
|
|
294
|
-
h5,
|
|
295
|
-
.cat-h5 {
|
|
296
|
-
font-size: 1rem;
|
|
236
|
+
:where(h4, h5, h6),
|
|
237
|
+
:is(.cat-h4, .cat-h5, .cat-h6) {
|
|
238
|
+
color: $cat-font-color-head;
|
|
239
|
+
margin-bottom: $cat-head-margin-bottom * 0.5;
|
|
297
240
|
}
|
|
298
241
|
|
|
299
|
-
:where(p)
|
|
300
|
-
ol,
|
|
301
|
-
ul,
|
|
302
|
-
blockquote,
|
|
303
|
-
figure {
|
|
304
|
-
margin-top: 0;
|
|
242
|
+
:where(p, ol, ul, dl, blockquote, figure, pre, cat-alert, cat-card) {
|
|
305
243
|
margin-bottom: $cat-body-margin-bottom;
|
|
306
244
|
}
|
|
307
245
|
|
|
308
|
-
:where(p):has(+ p) {
|
|
309
|
-
margin-bottom: calc($cat-body-margin-bottom * 0.4);
|
|
310
|
-
}
|
|
311
|
-
|
|
312
246
|
hr,
|
|
313
247
|
.cat-hr {
|
|
314
|
-
margin: $cat-body-margin-bottom
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
ol li,
|
|
318
|
-
ul li {
|
|
319
|
-
margin-bottom: calc($cat-body-margin-bottom * 0.2);
|
|
248
|
+
margin: $cat-body-margin-bottom;
|
|
320
249
|
}
|
|
321
250
|
}
|
|
@@ -1,26 +1,7 @@
|
|
|
1
1
|
@use '../variables' as *;
|
|
2
2
|
|
|
3
|
-
/* stylelint-disable value-keyword-case */
|
|
4
|
-
$font-fallback-sans-serif:
|
|
5
|
-
system-ui,
|
|
6
|
-
-apple-system,
|
|
7
|
-
'Segoe UI',
|
|
8
|
-
Roboto,
|
|
9
|
-
'Helvetica Neue',
|
|
10
|
-
'Noto Sans',
|
|
11
|
-
'Liberation Sans',
|
|
12
|
-
Arial,
|
|
13
|
-
sans-serif !default;
|
|
14
|
-
$font-fallback-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
|
|
15
|
-
$font-fallback-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
|
|
16
|
-
/* stylelint-enable value-keyword-case */
|
|
17
|
-
|
|
18
3
|
// ---- Head
|
|
19
4
|
|
|
20
|
-
@function cat-head-font-family() {
|
|
21
|
-
@return cat-token('font.family.head'), $font-fallback-sans-serif, cat-token('font.family.emoji'), $font-fallback-emoji;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
5
|
@function cat-head-font-size($size) {
|
|
25
6
|
@return cat-token('size.font.head.#{$size}');
|
|
26
7
|
}
|
|
@@ -30,20 +11,16 @@ $font-fallback-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation M
|
|
|
30
11
|
}
|
|
31
12
|
|
|
32
13
|
@mixin cat-head($size, $weight: cat-token('font.weight.head')) {
|
|
33
|
-
|
|
14
|
+
// skip color, as it is only set for editorial styles
|
|
15
|
+
font-family: $cat-font-family-head, $font-fallback-base, cat-token('font.family.emoji'), $font-fallback-emoji;
|
|
34
16
|
font-size: cat-head-font-size($size);
|
|
35
17
|
line-height: cat-head-line-height($size);
|
|
36
|
-
color: cat-token('color.ui.font.head');
|
|
37
18
|
font-weight: $weight;
|
|
38
19
|
font-feature-settings: 'pnum';
|
|
39
20
|
}
|
|
40
21
|
|
|
41
22
|
// ---- Body
|
|
42
23
|
|
|
43
|
-
@function cat-body-font-family() {
|
|
44
|
-
@return cat-token('font.family.body'), $font-fallback-sans-serif, cat-token('font.family.emoji'), $font-fallback-emoji;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
24
|
@function cat-body-font-size($size) {
|
|
48
25
|
@return cat-token('size.font.body.#{$size}');
|
|
49
26
|
}
|
|
@@ -78,7 +55,7 @@ $font-fallback-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation M
|
|
|
78
55
|
font-family: cat-mono-font-family();
|
|
79
56
|
font-size: cat-mono-font-size($size);
|
|
80
57
|
line-height: cat-mono-line-height($size);
|
|
81
|
-
color: cat-
|
|
58
|
+
color: $cat-font-color-mono;
|
|
82
59
|
font-weight: $weight;
|
|
83
60
|
}
|
|
84
61
|
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
color: cat-token('color.ui.font.muted');
|
|
106
106
|
|
|
107
107
|
&:hover {
|
|
108
|
-
color: cat-token('color.ui.font.
|
|
108
|
+
color: cat-token('color.ui.font.base');
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
|
|
115
115
|
.flatpickr-weekday {
|
|
116
116
|
color: cat-token('color.ui.font.muted');
|
|
117
|
-
@include cat-body(xs,
|
|
117
|
+
@include cat-body(xs, 700);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
120
|
|
|
@@ -134,7 +134,7 @@
|
|
|
134
134
|
|
|
135
135
|
span.flatpickr-day,
|
|
136
136
|
span.flatpickr-day:hover {
|
|
137
|
-
@include cat-body(xs,
|
|
137
|
+
@include cat-body(xs, 700);
|
|
138
138
|
color: cat-token('color.ui.font.muted');
|
|
139
139
|
text-align: center;
|
|
140
140
|
line-height: 2.25rem;
|
|
@@ -152,7 +152,7 @@
|
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
.flatpickr-day {
|
|
155
|
-
color: cat-token('color.ui.font.
|
|
155
|
+
color: cat-token('color.ui.font.base');
|
|
156
156
|
height: 2.25rem;
|
|
157
157
|
line-height: 2.25rem;
|
|
158
158
|
border: 0;
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
}
|
|
264
264
|
|
|
265
265
|
&::after {
|
|
266
|
-
@include cat-body(xs,
|
|
266
|
+
@include cat-body(xs, 700);
|
|
267
267
|
position: static;
|
|
268
268
|
border: 0 !important;
|
|
269
269
|
font-size: 10px;
|
|
@@ -273,7 +273,7 @@
|
|
|
273
273
|
}
|
|
274
274
|
|
|
275
275
|
&:hover {
|
|
276
|
-
color: cat-token('color.ui.font.
|
|
276
|
+
color: cat-token('color.ui.font.base');
|
|
277
277
|
background: transparent;
|
|
278
278
|
}
|
|
279
279
|
}
|
|
@@ -305,7 +305,7 @@
|
|
|
305
305
|
.flatpickr-time .flatpickr-am-pm {
|
|
306
306
|
margin: 0 0.25rem;
|
|
307
307
|
@include cat-head(4, 400);
|
|
308
|
-
color: cat-token('color.ui.font.
|
|
308
|
+
color: cat-token('color.ui.font.base');
|
|
309
309
|
line-height: 2.25rem;
|
|
310
310
|
}
|
|
311
311
|
|
|
@@ -325,7 +325,7 @@
|
|
|
325
325
|
|
|
326
326
|
input {
|
|
327
327
|
background: transparent !important;
|
|
328
|
-
color: cat-token('color.ui.font.
|
|
328
|
+
color: cat-token('color.ui.font.base');
|
|
329
329
|
font-size: cat-token('size.font.body.m');
|
|
330
330
|
line-height: 2.25rem;
|
|
331
331
|
font-family: inherit;
|
|
@@ -7,7 +7,7 @@ function setAttributeDefault(host, attr, value) {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
const catAlertCss = ":host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem)
|
|
10
|
+
const catAlertCss = ":host{display:flex;gap:0.5rem;padding:1.25rem;border-radius:var(--cat-border-radius-l, 0.5rem)}:host([hidden]){display:none}:host(:focus-visible){outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.content{align-self:center}::slotted(:last-child){margin-bottom:0 !important}:host([color=primary]){background-color:rgb(var(--cat-primary-bg, 0, 129, 148));color:rgb(var(--cat-primary-fill, 255, 255, 255))}:host([color=secondary]){background-color:rgb(var(--cat-secondary-bg, 105, 118, 135));color:rgb(var(--cat-secondary-fill, 255, 255, 255))}:host([color=success]){background-color:rgb(var(--cat-success-bg, 0, 132, 88));color:rgb(var(--cat-success-fill, 255, 255, 255))}:host([color=warning]){background-color:rgb(var(--cat-warning-bg, 255, 206, 128));color:rgb(var(--cat-warning-fill, 0, 0, 0))}:host([color=danger]){background-color:rgb(var(--cat-danger-bg, 217, 52, 13));color:rgb(var(--cat-danger-fill, 255, 255, 255))}";
|
|
11
11
|
|
|
12
12
|
const CatAlert$1 = /*@__PURE__*/ proxyCustomElement(class CatAlert extends HTMLElement {
|
|
13
13
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"cat-alert.js","mappings":";;;SAAgB,mBAAmB,CACjC,IAAO,EACP,IAAY,EACZ,KAAc;EAEd,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE;IACzD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;GACpD;AACH;;ACRA,MAAM,WAAW,GAAG,
|
|
1
|
+
{"file":"cat-alert.js","mappings":";;;SAAgB,mBAAmB,CACjC,IAAO,EACP,IAAY,EACZ,KAAc;EAEd,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,EAAE;IACzD,IAAI,CAAC,WAAW,CAAC,YAAY,CAAC,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;GACpD;AACH;;ACRA,MAAM,WAAW,GAAG,g8BAAg8B;;MCYv8BA,UAAQ;;;;;IACF,YAAO,GAAwB,IAAI,GAAG,CAAC;MACtD,CAAC,SAAS,EAAE,oBAAoB,CAAC;MACjC,CAAC,WAAW,EAAE,sBAAsB,CAAC;MACrC,CAAC,SAAS,EAAE,oBAAoB,CAAC;MACjC,CAAC,SAAS,EAAE,oBAAoB,CAAC;MACjC,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KAChC,CAAC,CAAC;IACc,YAAO,GAAwB,IAAI,GAAG,CAAC;MACtD,CAAC,SAAS,EAAE,QAAQ,CAAC;MACrB,CAAC,WAAW,EAAE,QAAQ,CAAC;MACvB,CAAC,SAAS,EAAE,QAAQ,CAAC;MACrB,CAAC,SAAS,EAAE,OAAO,CAAC;MACpB,CAAC,QAAQ,EAAE,OAAO,CAAC;KACpB,CAAC,CAAC;iBAO0F,SAAS;;kBAUrF,KAAK;;EAEtB,iBAAiB;IACf,mBAAmB,CAAC,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,CAAC;IACzC,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;GACjE;EAED,MAAM;IACJ,QACE,EAAC,IAAI,QACF,CAAC,IAAI,CAAC,MAAM,IAAI,gBAAU,IAAI,EAAC,GAAG,EAAC,IAAI,EAAE,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,GAAa,EAC3G,WAAK,KAAK,EAAC,SAAS,IAClB,eAAa,CACT,CACD,EACP;GACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["CatAlert"],"sources":["src/utils/setDefault.ts","src/components/cat-alert/cat-alert.scss?tag=cat-alert&encapsulation=shadow","src/components/cat-alert/cat-alert.tsx"],"sourcesContent":["export function setAttributeDefault<T extends { hostElement: HTMLElement }>(\n host: T,\n attr: string,\n value: unknown\n): void {\n if (!host.hostElement.hasAttribute(attr) && value != null) {\n host.hostElement.setAttribute(attr, String(value));\n }\n}\n\nexport function setAttribute<T extends { hostElement: HTMLElement }>(host: T, attr: string, value: unknown): void {\n host.hostElement.setAttribute(attr, String(value));\n}\n","@use 'variables' as *;\n@use 'mixins' as *;\n@use 'sass:map';\n\n:host {\n display: flex;\n gap: 0.5rem;\n padding: 1.25rem;\n border-radius: cat-border-radius('l');\n}\n\n:host([hidden]) {\n display: none;\n}\n\n:host(:focus-visible) {\n outline: 2px solid cat-token('color.ui.border.focus');\n outline-offset: 1px;\n}\n\n.content {\n align-self: center;\n}\n\n::slotted(:last-child) {\n margin-bottom: 0 !important;\n}\n\n// ----- theme\n\n@mixin theme($theme) {\n :host([color='#{$theme}']) {\n background-color: cat-token('color.theme.#{$theme}.bg');\n color: cat-token('color.theme.#{$theme}.fill');\n }\n}\n\n@include theme('primary');\n@include theme('secondary');\n@include theme('success');\n@include theme('warning');\n@include theme('danger');\n","import { Component, Element, h, Host, Prop } from '@stencil/core';\nimport { setAttributeDefault } from '../../utils/setDefault';\n\n/**\n * Informs user about important changes or conditions in the interface. Use this\n * component if you need to capture user’s attention in a prominent way.\n */\n@Component({\n tag: 'cat-alert',\n styleUrl: 'cat-alert.scss',\n shadow: true\n})\nexport class CatAlert {\n private readonly mapIcon: Map<string, string> = new Map([\n ['primary', '$cat:alert-primary'],\n ['secondary', '$cat:alert-secondary'],\n ['success', '$cat:alert-success'],\n ['warning', '$cat:alert-warning'],\n ['danger', '$cat:alert-danger']\n ]);\n private readonly mapRole: Map<string, string> = new Map([\n ['primary', 'status'],\n ['secondary', 'status'],\n ['success', 'status'],\n ['warning', 'alert'],\n ['danger', 'alert']\n ]);\n\n @Element() hostElement!: HTMLElement;\n\n /**\n * The color palette of the alert.\n */\n @Prop({ reflect: true }) color: 'primary' | 'secondary' | 'danger' | 'success' | 'warning' = 'primary';\n\n /**\n * The name of an icon to be displayed in the alert.\n */\n @Prop() icon?: string;\n\n /**\n * Whether the icon of the alert is deactivated.\n */\n @Prop() noIcon = false;\n\n connectedCallback() {\n setAttributeDefault(this, 'tabindex', 0);\n setAttributeDefault(this, 'role', this.mapRole.get(this.color));\n }\n\n render() {\n return (\n <Host>\n {!this.noIcon && <cat-icon size=\"l\" icon={this.icon ? this.icon : this.mapIcon.get(this.color)}></cat-icon>}\n <div class=\"content\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
|
|
2
2
|
|
|
3
|
-
const catCardCss = ":host{display:block;
|
|
3
|
+
const catCardCss = ":host{display:block;border-radius:var(--cat-border-radius-l, 0.5rem);background-color:white;padding:1.25rem}:host([hidden]){display:none}::slotted(:last-child){margin-bottom:0 !important}::slotted(nav),::slotted(nav:last-child){margin:-1rem -1rem !important}::slotted(.cat-card-pull){margin:-1.25rem !important;width:calc(100% + 2.5rem) !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-h){margin-left:-1.25rem !important;margin-right:-1.25rem !important;width:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-v){margin-top:-1.25rem !important;margin-bottom:-1.25rem !important;height:calc(100% + 2.5rem) !important}::slotted(.cat-card-pull-t){margin-top:-1.25rem !important}::slotted(.cat-card-pull-l){margin-left:-1.25rem !important}::slotted(.cat-card-pull-r){margin-right:-1.25rem !important}::slotted(.cat-card-pull-b){margin-bottom:-1.25rem !important}";
|
|
4
4
|
|
|
5
5
|
const CatCard$1 = /*@__PURE__*/ proxyCustomElement(class CatCard extends HTMLElement {
|
|
6
6
|
constructor() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"file":"cat-card.js","mappings":";;AAAA,MAAM,UAAU,GAAG,
|
|
1
|
+
{"file":"cat-card.js","mappings":";;AAAA,MAAM,UAAU,GAAG,23BAA23B;;MCWj4BA,SAAO;;;;;;EAClB,MAAM;IACJ,OAAO,eAAa,CAAC;GACtB;;;;;;;;;;;;;;;;;;;;;;","names":["CatCard"],"sources":["src/components/cat-card/cat-card.scss?tag=cat-card&encapsulation=shadow","src/components/cat-card/cat-card.tsx"],"sourcesContent":["@use 'variables' as *;\n@use 'mixins' as *;\n\n$-padding: 1.25rem;\n\n:host {\n display: block;\n border-radius: cat-border-radius('l');\n background-color: cat-token('color.ui.background.surface');\n padding: $-padding;\n}\n\n:host([hidden]) {\n display: none;\n}\n\n::slotted(:last-child) {\n margin-bottom: 0 !important;\n}\n\n::slotted(nav),\n::slotted(nav:last-child) {\n margin: #{0.25rem - $-padding} #{0.25rem - $-padding} !important;\n}\n\n// --- pull out helper classes\n\n::slotted(.cat-card-pull) {\n margin: -$-padding !important;\n width: calc(100% + #{2 * $-padding}) !important;\n height: calc(100% + #{2 * $-padding}) !important;\n}\n\n::slotted(.cat-card-pull-h) {\n margin-left: -$-padding !important;\n margin-right: -$-padding !important;\n width: calc(100% + #{2 * $-padding}) !important;\n}\n\n::slotted(.cat-card-pull-v) {\n margin-top: -$-padding !important;\n margin-bottom: -$-padding !important;\n height: calc(100% + #{2 * $-padding}) !important;\n}\n\n::slotted(.cat-card-pull-t) {\n margin-top: -$-padding !important;\n}\n\n::slotted(.cat-card-pull-l) {\n margin-left: -$-padding !important;\n}\n\n::slotted(.cat-card-pull-r) {\n margin-right: -$-padding !important;\n}\n\n::slotted(.cat-card-pull-b) {\n margin-bottom: -$-padding !important;\n}\n","import { Component, h } from '@stencil/core';\n\n/**\n * Cards are surfaces that display content and actions on a single topic. They\n * should be easy to scan for relevant and actionable information.\n */\n@Component({\n tag: 'cat-card',\n styleUrl: 'cat-card.scss',\n shadow: true\n})\nexport class CatCard {\n render() {\n return <slot></slot>;\n }\n}\n"],"version":3}
|
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { l as loglevel } from './loglevel.js';
|
|
3
3
|
import { C as CatFormHint } from './cat-form-hint.js';
|
|
4
4
|
|
|
5
|
-
const catCheckboxCss = ".hint-
|
|
5
|
+
const catCheckboxCss = ".hint-wrapper{flex:0 1 auto;display:flex;gap:0.5rem}.hint-section{flex:1 1 auto;display:flex;flex-direction:column;gap:0.25rem;color:rgb(var(--cat-font-color-muted, 81, 92, 108));font-size:0.875rem;line-height:1.125rem}.hint-section .input-hint,.hint-section ::slotted([slot=hint]){margin:0 !important}:host{display:flex;flex-direction:column;gap:0.5rem}:host([hidden]){display:none}label{flex:0 1 auto;display:flex;gap:0.5rem;font-size:0.9375rem;line-height:1.25rem;font-weight:var(--cat-font-weight-body, 400);-webkit-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;position:relative}.label-left{flex-direction:row-reverse}.label-left input{right:1px;left:unset}input{position:absolute;width:1.25rem;height:1.25rem;margin:0;opacity:0;cursor:inherit;left:1px;top:0.5px}.box-placeholder{width:calc(1.25rem + 1px)}.box{flex:0 0 auto;display:flex;position:relative;height:1.25rem;width:1.25rem;background-color:white;border:1px solid rgb(var(--cat-border-color-dark, 215, 219, 224));border-radius:var(--cat-border-radius-s, 0.125rem);transition:background-color 125ms ease, border-color 125ms ease;pointer-events:none}.box svg{fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:16px;stroke-dashoffset:16px;transition:all 125ms ease;width:50%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%) scale(0.99)}:checked+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:checked+.box .check{stroke-dashoffset:0}:indeterminate+.box{background-color:rgb(var(--cat-primary-bg, 0, 129, 148));border-color:rgb(var(--cat-primary-bg, 0, 129, 148));stroke:rgb(var(--cat-primary-fill, 255, 255, 255))}:indeterminate+.box .check{stroke-dashoffset:16px}:indeterminate+.box .dash{stroke-dashoffset:0}:focus-visible+.box{outline:2px solid rgb(var(--cat-border-color-focus, 0, 113, 255));outline-offset:1px}.is-disabled .box{background-color:#f2f4f7;border-color:rgb(var(--cat-border-color-dark, 215, 219, 224));stroke:rgb(var(--cat-font-color-muted, 81, 92, 108))}:host(.cat-error) .box{border:1px solid rgb(var(--cat-danger-bg, 217, 52, 13))}:host(.cat-error) :checked+.box,:host(.cat-error) :indeterminate+.box{background-color:rgb(var(--cat-danger-bg, 217, 52, 13));border-color:rgb(var(--cat-danger-bg, 217, 52, 13));stroke:rgb(var(--cat-danger-fill, 255, 255, 255))}.label{flex:1 1 auto;min-width:0}.is-hidden .label{position:absolute !important;width:1px !important;height:1px !important;padding:0 !important;margin:-1px !important;overflow:hidden !important;clip:rect(0, 0, 0, 0) !important;white-space:nowrap !important;border:0 !important}.is-disabled{cursor:not-allowed;color:rgb(var(--cat-font-color-muted, 81, 92, 108))}";
|
|
6
6
|
|
|
7
7
|
let nextUniqueId = 0;
|
|
8
8
|
const CatCheckbox = /*@__PURE__*/ proxyCustomElement(class CatCheckbox extends HTMLElement {
|