@haiilo/catalyst 6.3.1 → 6.3.3

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.
Files changed (83) hide show
  1. package/dist/catalyst/catalyst.esm.js +1 -1
  2. package/dist/catalyst/catalyst.esm.js.map +1 -1
  3. package/dist/catalyst/p-2ecedf97.entry.js +10 -0
  4. package/dist/catalyst/p-2ecedf97.entry.js.map +1 -0
  5. package/dist/catalyst/scss/_snippets/_form-label.scss +12 -4
  6. package/dist/catalyst/scss/fonts/_fonts.mixins.lato.scss +36 -18
  7. package/dist/catalyst/scss/utils/_color.scss +3 -1
  8. package/dist/catalyst/scss/utils/_typography.mixins.scss +10 -2
  9. package/dist/catalyst/scss/vendor/_flatpickr.scss +5 -2
  10. package/dist/cjs/cat-alert_26.cjs.entry.js +540 -267
  11. package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
  12. package/dist/cjs/catalyst.cjs.js +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/components/cat-button/cat-button.css +0 -1
  15. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js +6 -0
  16. package/dist/collection/components/cat-datepicker/cat-datepicker.config.js.map +1 -1
  17. package/dist/collection/components/cat-datepicker/cat-datepicker.js +21 -0
  18. package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
  19. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js +17 -0
  20. package/dist/collection/components/cat-datepicker-inline/cat-datepicker-inline.js.map +1 -1
  21. package/dist/collection/components/cat-dropdown/cat-dropdown.js +23 -18
  22. package/dist/collection/components/cat-dropdown/cat-dropdown.js.map +1 -1
  23. package/dist/collection/components/cat-input/cat-input.css +24 -8
  24. package/dist/collection/components/cat-input/cat-input.js +2 -2
  25. package/dist/collection/components/cat-input/cat-input.js.map +1 -1
  26. package/dist/collection/components/cat-select/cat-select.css +24 -8
  27. package/dist/collection/components/cat-select/cat-select.js +25 -17
  28. package/dist/collection/components/cat-select/cat-select.js.map +1 -1
  29. package/dist/collection/components/cat-select/cat-select.spec.js +1 -1
  30. package/dist/collection/components/cat-select/cat-select.spec.js.map +1 -1
  31. package/dist/collection/components/cat-select-demo/cat-select-demo.js +1 -1
  32. package/dist/collection/components/cat-select-demo/cat-select-demo.js.map +1 -1
  33. package/dist/collection/components/cat-tabs/cat-tabs.css +7 -1
  34. package/dist/collection/components/cat-tabs/cat-tabs.js +1 -1
  35. package/dist/collection/components/cat-tabs/cat-tabs.js.map +1 -1
  36. package/dist/collection/components/cat-textarea/cat-textarea.css +24 -8
  37. package/dist/collection/components/cat-textarea/cat-textarea.js +1 -1
  38. package/dist/collection/components/cat-textarea/cat-textarea.js.map +1 -1
  39. package/dist/collection/components/cat-tooltip/cat-tooltip.js +1 -1
  40. package/dist/collection/scss/_snippets/_form-label.scss +12 -4
  41. package/dist/collection/scss/fonts/_fonts.mixins.lato.scss +36 -18
  42. package/dist/collection/scss/utils/_color.scss +3 -1
  43. package/dist/collection/scss/utils/_typography.mixins.scss +10 -2
  44. package/dist/collection/scss/vendor/_flatpickr.scss +5 -2
  45. package/dist/collection/utils/find-closest.js +13 -0
  46. package/dist/collection/utils/find-closest.js.map +1 -0
  47. package/dist/components/cat-button2.js +1 -1
  48. package/dist/components/cat-button2.js.map +1 -1
  49. package/dist/components/cat-checkbox2.js.map +1 -1
  50. package/dist/components/cat-datepicker-inline.js +4 -1
  51. package/dist/components/cat-datepicker-inline.js.map +1 -1
  52. package/dist/components/cat-datepicker.js +19 -0
  53. package/dist/components/cat-datepicker.js.map +1 -1
  54. package/dist/components/cat-datepicker.locale.js +6 -0
  55. package/dist/components/cat-datepicker.locale.js.map +1 -1
  56. package/dist/components/cat-dropdown2.js +265 -112
  57. package/dist/components/cat-dropdown2.js.map +1 -1
  58. package/dist/components/cat-input2.js +3 -3
  59. package/dist/components/cat-input2.js.map +1 -1
  60. package/dist/components/cat-select-demo.js +1 -1
  61. package/dist/components/cat-select-demo.js.map +1 -1
  62. package/dist/components/cat-select2.js +25 -17
  63. package/dist/components/cat-select2.js.map +1 -1
  64. package/dist/components/cat-tabs.js +2 -2
  65. package/dist/components/cat-tabs.js.map +1 -1
  66. package/dist/components/cat-textarea.js +2 -2
  67. package/dist/components/cat-textarea.js.map +1 -1
  68. package/dist/components/cat-tooltip.js.map +1 -1
  69. package/dist/components/floating-ui.dom.esm.js +215 -129
  70. package/dist/components/floating-ui.dom.esm.js.map +1 -1
  71. package/dist/esm/cat-alert_26.entry.js +540 -267
  72. package/dist/esm/cat-alert_26.entry.js.map +1 -1
  73. package/dist/esm/catalyst.js +1 -1
  74. package/dist/esm/loader.js +1 -1
  75. package/dist/types/components/cat-datepicker/cat-datepicker.config.d.ts +3 -0
  76. package/dist/types/components/cat-datepicker/cat-datepicker.d.ts +6 -0
  77. package/dist/types/components/cat-datepicker-inline/cat-datepicker-inline.d.ts +6 -0
  78. package/dist/types/components/cat-dropdown/cat-dropdown.d.ts +1 -0
  79. package/dist/types/components.d.ts +16 -0
  80. package/dist/types/utils/find-closest.d.ts +5 -0
  81. package/package.json +11 -11
  82. package/dist/catalyst/p-dfc7c716.entry.js +0 -10
  83. package/dist/catalyst/p-dfc7c716.entry.js.map +0 -1
@@ -8,6 +8,14 @@ $cat-input-height: 2.5rem;
8
8
  @include cat-break-word;
9
9
  }
10
10
 
11
+ .input-field:not(.input-horizontal),
12
+ .textarea-field:not(.textarea-horizontal),
13
+ .select-field:not(.select-horizontal) {
14
+ .label-container.hidden {
15
+ @include cat-visually-hidden;
16
+ }
17
+ }
18
+
11
19
  .label-container {
12
20
  flex-basis: var(--label-size, 33.33%);
13
21
 
@@ -15,10 +23,6 @@ $cat-input-height: 2.5rem;
15
23
  display: flex;
16
24
  gap: 0.25rem;
17
25
  }
18
-
19
- .hidden {
20
- @include cat-visually-hidden;
21
- }
22
26
  }
23
27
 
24
28
  .label-metadata {
@@ -49,6 +53,10 @@ $cat-input-height: 2.5rem;
49
53
  .input-horizontal,
50
54
  .textarea-horizontal,
51
55
  .select-horizontal {
56
+ .label-container.hidden label {
57
+ @include cat-visually-hidden;
58
+ }
59
+
52
60
  .label-wrapper {
53
61
  flex-direction: column;
54
62
  }
@@ -5,7 +5,8 @@
5
5
  @if list.index($weights, 100) {
6
6
  @font-face {
7
7
  font-family: Lato;
8
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Hairline")}') format('woff2'),
8
+ src:
9
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Hairline")}') format('woff2'),
9
10
  url('#{$path}/#{cat-token("asset.font.lato.woffHairline")}') format('woff');
10
11
  font-style: normal;
11
12
  font-weight: 100;
@@ -14,7 +15,8 @@
14
15
  }
15
16
  @font-face {
16
17
  font-family: Lato;
17
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2HairlineItalic")}') format('woff2'),
18
+ src:
19
+ url('#{$path}/#{cat-token("asset.font.lato.woff2HairlineItalic")}') format('woff2'),
18
20
  url('#{$path}/#{cat-token("asset.font.lato.woffHairlineItalic")}') format('woff');
19
21
  font-style: italic;
20
22
  font-weight: 100;
@@ -25,7 +27,8 @@
25
27
  @if list.index($weights, 200) {
26
28
  @font-face {
27
29
  font-family: Lato;
28
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Thin")}') format('woff2'),
30
+ src:
31
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Thin")}') format('woff2'),
29
32
  url('#{$path}/#{cat-token("asset.font.lato.woffThin")}') format('woff');
30
33
  font-style: normal;
31
34
  font-weight: 200;
@@ -34,7 +37,8 @@
34
37
  }
35
38
  @font-face {
36
39
  font-family: Lato;
37
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2ThinItalic")}') format('woff2'),
40
+ src:
41
+ url('#{$path}/#{cat-token("asset.font.lato.woff2ThinItalic")}') format('woff2'),
38
42
  url('#{$path}/#{cat-token("asset.font.lato.woffThinItalic")}') format('woff');
39
43
  font-style: italic;
40
44
  font-weight: 200;
@@ -45,7 +49,8 @@
45
49
  @if list.index($weights, 300) {
46
50
  @font-face {
47
51
  font-family: Lato;
48
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Light")}') format('woff2'),
52
+ src:
53
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Light")}') format('woff2'),
49
54
  url('#{$path}/#{cat-token("asset.font.lato.woffLight")}') format('woff');
50
55
  font-style: normal;
51
56
  font-weight: 300;
@@ -54,7 +59,8 @@
54
59
  }
55
60
  @font-face {
56
61
  font-family: Lato;
57
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2LightItalic")}') format('woff2'),
62
+ src:
63
+ url('#{$path}/#{cat-token("asset.font.lato.woff2LightItalic")}') format('woff2'),
58
64
  url('#{$path}/#{cat-token("asset.font.lato.woffLightItalic")}') format('woff');
59
65
  font-style: italic;
60
66
  font-weight: 300;
@@ -65,7 +71,8 @@
65
71
  @if list.index($weights, 400) {
66
72
  @font-face {
67
73
  font-family: Lato;
68
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Regular")}') format('woff2'),
74
+ src:
75
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Regular")}') format('woff2'),
69
76
  url('#{$path}/#{cat-token("asset.font.lato.woffRegular")}') format('woff');
70
77
  font-style: normal;
71
78
  font-weight: 400;
@@ -74,7 +81,8 @@
74
81
  }
75
82
  @font-face {
76
83
  font-family: Lato;
77
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Italic")}') format('woff2'),
84
+ src:
85
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Italic")}') format('woff2'),
78
86
  url('#{$path}/#{cat-token("asset.font.lato.woffItalic")}') format('woff');
79
87
  font-style: italic;
80
88
  font-weight: 400;
@@ -85,7 +93,8 @@
85
93
  @if list.index($weights, 500) {
86
94
  @font-face {
87
95
  font-family: Lato;
88
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Medium")}') format('woff2'),
96
+ src:
97
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Medium")}') format('woff2'),
89
98
  url('#{$path}/#{cat-token("asset.font.lato.woffMedium")}') format('woff');
90
99
  font-style: normal;
91
100
  font-weight: 500;
@@ -94,7 +103,8 @@
94
103
  }
95
104
  @font-face {
96
105
  font-family: Lato;
97
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2MediumItalic")}') format('woff2'),
106
+ src:
107
+ url('#{$path}/#{cat-token("asset.font.lato.woff2MediumItalic")}') format('woff2'),
98
108
  url('#{$path}/#{cat-token("asset.font.lato.woffMediumItalic")}') format('woff');
99
109
  font-style: italic;
100
110
  font-weight: 500;
@@ -105,7 +115,8 @@
105
115
  @if list.index($weights, 600) {
106
116
  @font-face {
107
117
  font-family: Lato;
108
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Semibold")}') format('woff2'),
118
+ src:
119
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Semibold")}') format('woff2'),
109
120
  url('#{$path}/#{cat-token("asset.font.lato.woffSemibold")}') format('woff');
110
121
  font-style: normal;
111
122
  font-weight: 600;
@@ -114,7 +125,8 @@
114
125
  }
115
126
  @font-face {
116
127
  font-family: Lato;
117
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2SemiboldItalic")}') format('woff2'),
128
+ src:
129
+ url('#{$path}/#{cat-token("asset.font.lato.woff2SemiboldItalic")}') format('woff2'),
118
130
  url('#{$path}/#{cat-token("asset.font.lato.woffSemiboldItalic")}') format('woff');
119
131
  font-style: italic;
120
132
  font-weight: 600;
@@ -125,7 +137,8 @@
125
137
  @if list.index($weights, 700) {
126
138
  @font-face {
127
139
  font-family: Lato;
128
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Bold")}') format('woff2'),
140
+ src:
141
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Bold")}') format('woff2'),
129
142
  url('#{$path}/#{cat-token("asset.font.lato.woffBold")}') format('woff');
130
143
  font-style: normal;
131
144
  font-weight: 700;
@@ -134,7 +147,8 @@
134
147
  }
135
148
  @font-face {
136
149
  font-family: Lato;
137
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2BoldItalic")}') format('woff2'),
150
+ src:
151
+ url('#{$path}/#{cat-token("asset.font.lato.woff2BoldItalic")}') format('woff2'),
138
152
  url('#{$path}/#{cat-token("asset.font.lato.woffBoldItalic")}') format('woff');
139
153
  font-style: italic;
140
154
  font-weight: 700;
@@ -145,7 +159,8 @@
145
159
  @if list.index($weights, 800) {
146
160
  @font-face {
147
161
  font-family: Lato;
148
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Heavy")}') format('woff2'),
162
+ src:
163
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Heavy")}') format('woff2'),
149
164
  url('#{$path}/#{cat-token("asset.font.lato.woffHeavy")}') format('woff');
150
165
  font-style: normal;
151
166
  font-weight: 800;
@@ -154,7 +169,8 @@
154
169
  }
155
170
  @font-face {
156
171
  font-family: Lato;
157
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2HeavyItalic")}') format('woff2'),
172
+ src:
173
+ url('#{$path}/#{cat-token("asset.font.lato.woff2HeavyItalic")}') format('woff2'),
158
174
  url('#{$path}/#{cat-token("asset.font.lato.woffHeavyItalic")}') format('woff');
159
175
  font-style: italic;
160
176
  font-weight: 800;
@@ -165,7 +181,8 @@
165
181
  @if list.index($weights, 900) {
166
182
  @font-face {
167
183
  font-family: Lato;
168
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2Black")}') format('woff2'),
184
+ src:
185
+ url('#{$path}/#{cat-token("asset.font.lato.woff2Black")}') format('woff2'),
169
186
  url('#{$path}/#{cat-token("asset.font.lato.woffBlack")}') format('woff');
170
187
  font-style: normal;
171
188
  font-weight: 900;
@@ -174,7 +191,8 @@
174
191
  }
175
192
  @font-face {
176
193
  font-family: Lato;
177
- src: url('#{$path}/#{cat-token("asset.font.lato.woff2BlackItalic")}') format('woff2'),
194
+ src:
195
+ url('#{$path}/#{cat-token("asset.font.lato.woff2BlackItalic")}') format('woff2'),
178
196
  url('#{$path}/#{cat-token("asset.font.lato.woffBlackItalic")}') format('woff');
179
197
  font-style: italic;
180
198
  font-weight: 900;
@@ -7,7 +7,9 @@
7
7
  }
8
8
 
9
9
  .cat-bg-#{$name}-hover {
10
- transition: background-color cat-token('time.transition.s'), color cat-token('time.transition.s');
10
+ transition:
11
+ background-color cat-token('time.transition.s'),
12
+ color cat-token('time.transition.s');
11
13
 
12
14
  &:hover {
13
15
  background-color: cat-token('color.theme.#{$name}.bgHover') !important;
@@ -1,8 +1,16 @@
1
1
  @use '../variables' as *;
2
2
 
3
3
  /* stylelint-disable value-keyword-case */
4
- $font-fallback-sans-serif: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', 'Noto Sans',
5
- 'Liberation Sans', Arial, sans-serif !default;
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;
6
14
  $font-fallback-emoji: 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji' !default;
7
15
  $font-fallback-monospace: SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace !default;
8
16
  /* stylelint-enable value-keyword-case */
@@ -14,7 +14,8 @@
14
14
  &:not(.inline).animate {
15
15
  transform: translateY(-1rem);
16
16
  opacity: 0;
17
- transition: transform cat-token('time.transition.s') cubic-bezier(0.3, 0, 0.8, 0.15),
17
+ transition:
18
+ transform cat-token('time.transition.s') cubic-bezier(0.3, 0, 0.8, 0.15),
18
19
  opacity cat-token('time.transition.s') cubic-bezier(0.3, 0, 0.8, 0.15);
19
20
  }
20
21
 
@@ -44,7 +45,8 @@
44
45
  &.animate {
45
46
  opacity: 1;
46
47
  transform: translateY(0);
47
- transition: transform cat-token('time.transition.l') cubic-bezier(0.05, 0.7, 0.1, 1),
48
+ transition:
49
+ transform cat-token('time.transition.l') cubic-bezier(0.05, 0.7, 0.1, 1),
48
50
  opacity cat-token('time.transition.l') cubic-bezier(0.05, 0.7, 0.1, 1);
49
51
  }
50
52
  }
@@ -109,6 +111,7 @@
109
111
 
110
112
  .flatpickr-weekdays {
111
113
  height: 2rem;
114
+
112
115
  .flatpickr-weekday {
113
116
  color: cat-token('color.ui.font.muted');
114
117
  @include cat-body(xs, $weight: 700);