@haiilo/catalyst 2.5.0 → 3.0.1
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 +2411 -2
- package/dist/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/index.cdn.js +1 -0
- package/dist/catalyst/p-1c6eace6.js +3 -0
- package/dist/catalyst/p-1c6eace6.js.map +1 -0
- package/dist/catalyst/p-d5ac868d.entry.js +10 -0
- package/dist/catalyst/p-d5ac868d.entry.js.map +1 -0
- package/dist/catalyst/scss/_variables.tokens.scss +2 -2
- package/dist/catalyst/scss/core/_dialog.scss +66 -0
- package/dist/catalyst/scss/core/_notification.scss +10 -10
- package/dist/catalyst/scss/core/_typography.scss +1 -1
- package/dist/catalyst/scss/index.scss +1 -0
- package/dist/catalyst/scss/utils/_media.mixins.scss +1 -0
- package/dist/cjs/cat-alert_24.cjs.entry.js +1361 -43
- package/dist/cjs/cat-alert_24.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +2 -2
- package/dist/cjs/{index-e540e911.js → index-22e41d18.js} +1 -4
- package/dist/cjs/index-22e41d18.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +0 -1
- package/dist/collection/components/cat-button/cat-button.js +23 -6
- package/dist/collection/components/cat-button/cat-button.js.map +1 -1
- package/dist/collection/components/cat-icon/cat-icon.js +21 -9
- package/dist/collection/components/cat-icon/cat-icon.js.map +1 -1
- package/dist/collection/components/cat-input/cat-input.css +10 -0
- package/dist/collection/components/cat-scrollable/cat-scrollable.js +18 -14
- package/dist/collection/components/cat-scrollable/cat-scrollable.js.map +1 -1
- package/dist/collection/components/cat-textarea/cat-textarea.css +5 -0
- package/dist/collection/index.cdn.js +1 -0
- package/dist/collection/scss/_variables.tokens.scss +2 -2
- package/dist/collection/scss/core/_dialog.scss +66 -0
- package/dist/collection/scss/core/_notification.scss +10 -10
- package/dist/collection/scss/core/_typography.scss +1 -1
- package/dist/collection/scss/index.scss +1 -0
- package/dist/collection/scss/utils/_media.mixins.scss +1 -0
- package/dist/components/cat-badge.js.map +1 -1
- package/dist/components/cat-button2.js +7 -6
- package/dist/components/cat-button2.js.map +1 -1
- package/dist/components/cat-card.js.map +1 -1
- package/dist/components/cat-dropdown2.js +759 -2
- package/dist/components/cat-dropdown2.js.map +1 -1
- package/dist/components/cat-icon2.js +2 -5
- package/dist/components/cat-icon2.js.map +1 -1
- package/dist/components/cat-input.js +1 -1
- package/dist/components/cat-input.js.map +1 -1
- package/dist/components/cat-scrollable2.js +241 -14
- package/dist/components/cat-scrollable2.js.map +1 -1
- package/dist/components/cat-select-demo.js +2 -2
- package/dist/components/cat-select2.js +2 -187
- package/dist/components/cat-select2.js.map +1 -1
- package/dist/components/cat-textarea.js +1 -1
- package/dist/components/cat-textarea.js.map +1 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/index.js +0 -1
- package/dist/components/index.js.map +1 -1
- package/dist/esm/cat-alert_24.entry.js +1355 -37
- package/dist/esm/cat-alert_24.entry.js.map +1 -1
- package/dist/esm/catalyst.js +2 -2
- package/dist/esm/{index-c2a28ebb.js → index-7b85fb91.js} +1 -4
- package/dist/esm/index-7b85fb91.js.map +1 -0
- package/dist/esm/loader.js +2 -2
- package/dist/types/components/cat-button/cat-button.d.ts +5 -0
- package/dist/types/components/cat-icon/cat-icon.d.ts +5 -1
- package/dist/types/components/cat-scrollable/cat-scrollable.d.ts +3 -0
- package/dist/types/components.d.ts +17 -26
- package/package.json +2 -2
- package/dist/catalyst/p-2fdb52c9.entry.js +0 -2
- package/dist/catalyst/p-2fdb52c9.entry.js.map +0 -1
- package/dist/catalyst/p-53a1db22.js +0 -3
- package/dist/catalyst/p-53a1db22.js.map +0 -1
- package/dist/catalyst/p-5bfc70e3.entry.js +0 -2
- package/dist/catalyst/p-5bfc70e3.entry.js.map +0 -1
- package/dist/catalyst/p-60a20ebe.js +0 -10
- package/dist/catalyst/p-60a20ebe.js.map +0 -1
- package/dist/cjs/cat-modal.cjs.entry.js +0 -74
- package/dist/cjs/cat-modal.cjs.entry.js.map +0 -1
- package/dist/cjs/first-tabbable-7966cf1c.js +0 -1288
- package/dist/cjs/first-tabbable-7966cf1c.js.map +0 -1
- package/dist/cjs/index-e540e911.js.map +0 -1
- package/dist/collection/components/cat-modal/cat-modal.css +0 -65
- package/dist/collection/components/cat-modal/cat-modal.js +0 -117
- package/dist/collection/components/cat-modal/cat-modal.js.map +0 -1
- package/dist/components/cat-modal.d.ts +0 -11
- package/dist/components/cat-modal.js +0 -111
- package/dist/components/cat-modal.js.map +0 -1
- package/dist/components/focus-trap.esm.js +0 -763
- package/dist/components/focus-trap.esm.js.map +0 -1
- package/dist/esm/cat-modal.entry.js +0 -70
- package/dist/esm/cat-modal.entry.js.map +0 -1
- package/dist/esm/first-tabbable-4a00de61.js +0 -1284
- package/dist/esm/first-tabbable-4a00de61.js.map +0 -1
- package/dist/esm/index-c2a28ebb.js.map +0 -1
- package/dist/types/components/cat-modal/cat-modal.d.ts +0 -20
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
|
|
50
50
|
@function cat-token-wrap($value, $alpha: 1) {
|
|
51
51
|
@if meta.type-of($value) == 'string' {
|
|
52
|
-
@if $alpha < 1 {
|
|
52
|
+
@if meta.type-of($alpha) != 'number' or $alpha < 1 {
|
|
53
53
|
@return rgba($value, $alpha);
|
|
54
54
|
} @else {
|
|
55
55
|
@return rgb($value);
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
@if string.index($key, 'color.') == 1 {
|
|
81
81
|
@if $wrap {
|
|
82
82
|
@return cat-token-wrap($value, $alpha);
|
|
83
|
-
} @else if $alpha < 1 {
|
|
83
|
+
} @else if meta.type-of($alpha) != 'number' or $alpha < 1 {
|
|
84
84
|
@return $value, $alpha;
|
|
85
85
|
}
|
|
86
86
|
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
@use '../variables' as *;
|
|
2
|
+
@use '../mixins' as *;
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Dialog makes assumptions about the DOM structure of the dialog content.
|
|
6
|
+
* The following selectors are used to style the dialog content based on its
|
|
7
|
+
* position in the DOM hierarchy.
|
|
8
|
+
*
|
|
9
|
+
* .cat-backdrop
|
|
10
|
+
* |- .cat-dialog
|
|
11
|
+
* |- .cat-dialog-header
|
|
12
|
+
* |- .cat-dialog-header-content
|
|
13
|
+
* |- .cat-dialog-content
|
|
14
|
+
* |- .cat-dialog-actions
|
|
15
|
+
**/
|
|
16
|
+
|
|
17
|
+
$-dialog-padding: 1.5rem;
|
|
18
|
+
|
|
19
|
+
.cat-backdrop {
|
|
20
|
+
background-color: cat-token('color.ui.background.backdrop', cat-token('opacity.backdrop'));
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cat-dialog {
|
|
24
|
+
background-color: cat-token('color.ui.background.surface');
|
|
25
|
+
border-radius: cat-border-radius('l');
|
|
26
|
+
@include cat-elevation(7);
|
|
27
|
+
container: dialog / inline-size;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.cat-dialog-header {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
gap: 1rem;
|
|
34
|
+
padding: $-dialog-padding;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.cat-dialog-header-content {
|
|
38
|
+
flex: 1 1 auto;
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: 0.5rem;
|
|
42
|
+
word-wrap: break-word;
|
|
43
|
+
word-break: break-word;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.cat-dialog-content {
|
|
47
|
+
overflow: auto;
|
|
48
|
+
padding: 0 $-dialog-padding;
|
|
49
|
+
|
|
50
|
+
> *:last-child {
|
|
51
|
+
margin-bottom: 0;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.cat-dialog-actions {
|
|
56
|
+
display: flex;
|
|
57
|
+
padding: $-dialog-padding;
|
|
58
|
+
gap: 0.5rem;
|
|
59
|
+
flex-wrap: wrap;
|
|
60
|
+
|
|
61
|
+
@container dialog (max-width: 360px) {
|
|
62
|
+
cat-button {
|
|
63
|
+
width: 100%;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
.cat-toastify {
|
|
5
5
|
display: flex;
|
|
6
6
|
border-radius: cat-border-radius('l');
|
|
7
|
-
background: cat-token('color.ui.background.
|
|
7
|
+
background: cat-token('color.ui.background.surface');
|
|
8
8
|
padding: 1.25rem;
|
|
9
9
|
box-shadow: none;
|
|
10
10
|
color: cat-token('color.ui.font.body');
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
cursor: unset;
|
|
14
14
|
|
|
15
15
|
&.cat-toastify-dark {
|
|
16
|
-
--cat-font-color-head: #{cat-token('color.ui.font.
|
|
17
|
-
--cat-font-color-body: #{cat-token('color.ui.font.
|
|
18
|
-
--cat-primary-text: #{cat-token('color.theme.
|
|
19
|
-
--cat-primary-text-hover: #{cat-token('color.theme.
|
|
20
|
-
--cat-primary-text-active: #{cat-token('color.theme.
|
|
21
|
-
--cat-secondary-text: #{cat-token('color.theme.
|
|
22
|
-
--cat-secondary-text-hover: #{cat-token('color.theme.
|
|
23
|
-
--cat-secondary-text-active: #{cat-token('color.theme.
|
|
24
|
-
background: cat-token('color.ui.background.
|
|
16
|
+
--cat-font-color-head: #{cat-token('color.ui.font.headInverted', $wrap: false)};
|
|
17
|
+
--cat-font-color-body: #{cat-token('color.ui.font.bodyInverted', $wrap: false)};
|
|
18
|
+
--cat-primary-text: #{cat-token('color.theme.primaryInverted.text', $wrap: false)};
|
|
19
|
+
--cat-primary-text-hover: #{cat-token('color.theme.primaryInverted.textHover', $wrap: false)};
|
|
20
|
+
--cat-primary-text-active: #{cat-token('color.theme.primaryInverted.textActive', $wrap: false)};
|
|
21
|
+
--cat-secondary-text: #{cat-token('color.theme.secondaryInverted.text', $wrap: false)};
|
|
22
|
+
--cat-secondary-text-hover: #{cat-token('color.theme.secondaryInverted.textHover', $wrap: false)};
|
|
23
|
+
--cat-secondary-text-active: #{cat-token('color.theme.secondaryInverted.textActive', $wrap: false)};
|
|
24
|
+
background: cat-token('color.ui.background.surfaceInverted');
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
@@ -221,7 +221,7 @@ kbd,
|
|
|
221
221
|
code {
|
|
222
222
|
margin: 0 0.125rem;
|
|
223
223
|
color: cat-token('color.ui.font.muted');
|
|
224
|
-
background: cat-token('color.ui.background.
|
|
224
|
+
background: cat-token('color.ui.background.surface');
|
|
225
225
|
box-shadow: 0 0 0 2px cat-token('color.ui.border.default');
|
|
226
226
|
border-radius: cat-border-radius('s');
|
|
227
227
|
}
|