@haiilo/catalyst 0.0.11 → 0.2.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.
Files changed (78) hide show
  1. package/LICENSE +1 -1
  2. package/dist/catalyst/catalyst.css +1 -1403
  3. package/dist/catalyst/catalyst.esm.js +1 -126
  4. package/dist/catalyst/index.esm.js +0 -1
  5. package/dist/catalyst/p-4c438c2d.entry.js +11 -0
  6. package/dist/catalyst/p-73ee291d.js +1 -0
  7. package/dist/catalyst/p-94273abf.js +1 -0
  8. package/dist/cjs/app-globals-a3b3cf88.js +135 -0
  9. package/dist/cjs/cat-alert_7.cjs.entry.js +3115 -0
  10. package/dist/cjs/cat-icon-registry-eeff9b7d.js +1359 -0
  11. package/dist/cjs/catalyst.cjs.js +21 -0
  12. package/dist/cjs/index.cjs.js +2 -0
  13. package/dist/cjs/loader.cjs.js +23 -0
  14. package/dist/collection/collection-manifest.json +19 -0
  15. package/dist/collection/components/cat-alert/cat-alert.css +57 -0
  16. package/dist/collection/components/cat-alert/cat-alert.js +49 -0
  17. package/dist/collection/components/cat-badge/cat-badge.css +154 -0
  18. package/dist/collection/components/cat-badge/cat-badge.js +141 -0
  19. package/dist/collection/components/cat-button/cat-button.css +319 -0
  20. package/dist/collection/components/cat-button/cat-button.js +590 -0
  21. package/dist/collection/components/cat-icon/cat-icon-registry.js +41 -0
  22. package/dist/collection/components/cat-icon/cat-icon.css +50 -0
  23. package/dist/collection/components/cat-icon/cat-icon.js +89 -0
  24. package/dist/collection/components/cat-menu/cat-menu.css +33 -0
  25. package/dist/collection/components/cat-menu/cat-menu.js +185 -0
  26. package/dist/collection/components/cat-skeleton/cat-skeleton.css +177 -0
  27. package/dist/collection/components/cat-skeleton/cat-skeleton.js +130 -0
  28. package/dist/collection/components/cat-spinner/cat-spinner.css +63 -0
  29. package/dist/collection/components/cat-spinner/cat-spinner.js +64 -0
  30. package/dist/collection/index.cdn.js +21 -0
  31. package/dist/collection/index.js +1 -0
  32. package/dist/collection/init.js +8 -0
  33. package/dist/collection/utils/breakpoints.js +11 -0
  34. package/dist/collection/utils/media-matcher.js +54 -0
  35. package/dist/collection/utils/platform.js +49 -0
  36. package/dist/collection/utils/utils.js +3 -0
  37. package/dist/components/cat-alert.d.ts +11 -0
  38. package/dist/components/cat-alert.js +43 -0
  39. package/dist/components/cat-badge.d.ts +11 -0
  40. package/dist/components/cat-badge.js +67 -0
  41. package/dist/{catalyst/cat-button.entry.js → components/cat-button.js} +76 -44
  42. package/dist/{catalyst/cat-icon-registry-59da2e37.js → components/cat-icon-registry.js} +0 -0
  43. package/dist/components/cat-icon.js +6 -0
  44. package/dist/components/cat-icon2.js +47 -0
  45. package/dist/components/cat-menu.d.ts +11 -0
  46. package/dist/components/cat-menu.js +2378 -0
  47. package/dist/components/cat-skeleton.d.ts +11 -0
  48. package/dist/components/cat-skeleton.js +77 -0
  49. package/dist/components/cat-spinner.js +6 -0
  50. package/dist/{catalyst/cat-spinner.entry.js → components/cat-spinner2.js} +25 -6
  51. package/dist/components/index.js +134 -0
  52. package/dist/esm/app-globals-fc0806a7.js +133 -0
  53. package/dist/esm/cat-alert_7.entry.js +3105 -0
  54. package/dist/esm/cat-icon-registry-d877de13.js +1331 -0
  55. package/dist/esm/catalyst.js +19 -0
  56. package/dist/esm/index.js +1 -0
  57. package/dist/esm/loader.js +19 -0
  58. package/dist/esm/polyfills/core-js.js +11 -0
  59. package/dist/esm/polyfills/css-shim.js +1 -0
  60. package/dist/esm/polyfills/dom.js +79 -0
  61. package/dist/esm/polyfills/es5-html-element.js +1 -0
  62. package/dist/esm/polyfills/index.js +34 -0
  63. package/dist/esm/polyfills/system.js +6 -0
  64. package/dist/index.cjs.js +1 -0
  65. package/dist/index.js +1 -0
  66. package/dist/types/components/cat-alert/cat-alert.d.ts +12 -0
  67. package/dist/types/components/cat-badge/cat-badge.d.ts +28 -0
  68. package/dist/types/components/cat-button/cat-button.d.ts +6 -0
  69. package/dist/types/components/cat-menu/cat-menu.d.ts +32 -0
  70. package/dist/types/components/cat-skeleton/cat-skeleton.d.ts +28 -0
  71. package/dist/types/components.d.ts +153 -0
  72. package/package.json +9 -6
  73. package/dist/catalyst/app-globals-54573336.js +0 -716
  74. package/dist/catalyst/cat-icon.entry.js +0 -27
  75. package/dist/catalyst/css-shim-20dbffa5.js +0 -4
  76. package/dist/catalyst/dom-c5ed0ba5.js +0 -73
  77. package/dist/catalyst/index-6672be93.js +0 -3031
  78. package/dist/catalyst/shadow-css-8c625855.js +0 -388
@@ -0,0 +1,319 @@
1
+ /**
2
+ * Auto-generated file. Do not edit directly.
3
+ */
4
+ /* stylelint-disable value-keyword-case */
5
+ /* stylelint-enable value-keyword-case */
6
+ :host {
7
+ display: inline-block;
8
+ max-width: 100%;
9
+ vertical-align: middle;
10
+ /* stylelint-disable property-no-vendor-prefix */
11
+ -webkit-user-select: none;
12
+ -ms-user-select: none;
13
+ user-select: none;
14
+ /* stylelint-enable property-no-vendor-prefix */
15
+ }
16
+
17
+ :host([hidden]) {
18
+ display: none;
19
+ }
20
+
21
+ .cat-button {
22
+ font: inherit;
23
+ display: flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ border: none;
27
+ border-radius: 0.25rem;
28
+ text-decoration: none;
29
+ width: 100%;
30
+ box-sizing: border-box;
31
+ cursor: pointer;
32
+ transition: color 0.13s linear, border-color 0.13s linear, background-color 0.13s linear, box-shadow 0.13s linear;
33
+ }
34
+ .cat-button:focus-visible {
35
+ outline: 2px solid #0071ff;
36
+ outline-offset: 1px;
37
+ }
38
+
39
+ .cat-button-content {
40
+ flex: 1 1 auto;
41
+ text-align: center;
42
+ }
43
+ .cat-button-ellipsed .cat-button-content {
44
+ /* stylelint-disable value-no-vendor-prefix, property-no-vendor-prefix */
45
+ overflow: hidden;
46
+ text-overflow: ellipsis;
47
+ white-space: nowrap;
48
+ /* stylelint-enable value-no-vendor-prefix, property-no-vendor-prefix */
49
+ }
50
+
51
+ .cat-button-disabled {
52
+ cursor: not-allowed;
53
+ opacity: 0.65;
54
+ filter: grayscale(100%);
55
+ }
56
+
57
+ .cat-button-round {
58
+ border-radius: 10rem;
59
+ }
60
+
61
+ .cat-button-loading {
62
+ cursor: default;
63
+ }
64
+ .cat-button-loading cat-spinner {
65
+ position: absolute;
66
+ }
67
+ .cat-button-loading > *:not(cat-spinner) {
68
+ visibility: hidden;
69
+ }
70
+
71
+ .cat-button-filled {
72
+ background-color: rgb(var(--bg));
73
+ color: rgb(var(--fill));
74
+ font-weight: 600;
75
+ -webkit-font-smoothing: antialiased;
76
+ -moz-osx-font-smoothing: greyscale;
77
+ }
78
+
79
+ .cat-button-outlined {
80
+ background-color: white;
81
+ box-shadow: inset 0 0 0 1px rgba(var(--base), 0.2);
82
+ color: rgb(var(--text));
83
+ }
84
+ .cat-button-outlined:hover:not(.cat-button-disabled):not(.cat-button-loading) {
85
+ background-color: rgba(var(--base), 0.05);
86
+ }
87
+ .cat-button-outlined:active:not(.cat-button-disabled):not(.cat-button-loading) {
88
+ background-color: rgba(var(--base), 0.1);
89
+ }
90
+
91
+ .cat-button-text {
92
+ background-color: transparent;
93
+ color: rgb(var(--text));
94
+ text-decoration: none;
95
+ }
96
+ .cat-button-text:hover:not(.cat-button-disabled):not(.cat-button-loading) {
97
+ text-decoration: underline;
98
+ }
99
+
100
+ .cat-button-primary {
101
+ --bg: var(--cat-primary-bg, 32, 127, 138);
102
+ --fill: var(--cat-primary-fill, 255, 255, 255);
103
+ --text: var(--cat-primary-text, 32, 127, 138);
104
+ --base: var(--cat-primary-text, 32, 127, 138);
105
+ }
106
+ .cat-button-primary:hover:not(.cat-button-disabled):not(.cat-button-loading) {
107
+ --bg: var(--cat-primary-bg-hover, 28, 112, 122);
108
+ --fill: var(--cat-primary-fill-hover, 255, 255, 255);
109
+ --text: var(--cat-primary-text-hover, 28, 112, 122);
110
+ }
111
+ .cat-button-primary:active:not(.cat-button-disabled):not(.cat-button-loading) {
112
+ --bg: var(--cat-primary-bg-active, 25, 101, 110);
113
+ --fill: var(--cat-primary-fill-active, 255, 255, 255);
114
+ --text: var(--cat-primary-text-active, 25, 101, 110);
115
+ }
116
+
117
+ .cat-button-secondary {
118
+ --bg: 105, 118, 135;
119
+ --fill: 255, 255, 255;
120
+ --text: 0, 0, 0;
121
+ --base: 105, 118, 135;
122
+ }
123
+ .cat-button-secondary:hover:not(.cat-button-disabled):not(.cat-button-loading) {
124
+ --bg: 105, 118, 135;
125
+ --fill: 255, 255, 255;
126
+ --text: 0, 0, 0;
127
+ }
128
+ .cat-button-secondary:active:not(.cat-button-disabled):not(.cat-button-loading) {
129
+ --bg: 105, 118, 135;
130
+ --fill: 255, 255, 255;
131
+ --text: 0, 0, 0;
132
+ }
133
+
134
+ .cat-button-success {
135
+ --bg: 0, 132, 88;
136
+ --fill: 255, 255, 255;
137
+ --text: 0, 132, 88;
138
+ --base: 0, 132, 88;
139
+ }
140
+ .cat-button-success:hover:not(.cat-button-disabled):not(.cat-button-loading) {
141
+ --bg: 0, 117, 78;
142
+ --fill: 255, 255, 255;
143
+ --text: 0, 117, 78;
144
+ }
145
+ .cat-button-success:active:not(.cat-button-disabled):not(.cat-button-loading) {
146
+ --bg: 0, 105, 70;
147
+ --fill: 255, 255, 255;
148
+ --text: 0, 105, 70;
149
+ }
150
+
151
+ .cat-button-warning {
152
+ --bg: 255, 206, 128;
153
+ --fill: 0, 0, 0;
154
+ --text: 159, 97, 0;
155
+ --base: 159, 97, 0;
156
+ }
157
+ .cat-button-warning:hover:not(.cat-button-disabled):not(.cat-button-loading) {
158
+ --bg: 255, 214, 148;
159
+ --fill: 0, 0, 0;
160
+ --text: 159, 97, 0;
161
+ }
162
+ .cat-button-warning:active:not(.cat-button-disabled):not(.cat-button-loading) {
163
+ --bg: 255, 222, 168;
164
+ --fill: 0, 0, 0;
165
+ --text: 159, 97, 0;
166
+ }
167
+
168
+ .cat-button-danger {
169
+ --bg: 217, 52, 13;
170
+ --fill: 255, 255, 255;
171
+ --text: 217, 52, 13;
172
+ --base: 217, 52, 13;
173
+ }
174
+ .cat-button-danger:hover:not(.cat-button-disabled):not(.cat-button-loading) {
175
+ --bg: 194, 46, 11;
176
+ --fill: 255, 255, 255;
177
+ --text: 194, 46, 11;
178
+ }
179
+ .cat-button-danger:active:not(.cat-button-disabled):not(.cat-button-loading) {
180
+ --bg: 174, 42, 10;
181
+ --fill: 255, 255, 255;
182
+ --text: 174, 42, 10;
183
+ }
184
+
185
+ .cat-button-xs {
186
+ min-width: 1.5rem;
187
+ padding: 0.25rem 0.25rem;
188
+ font-size: 0.875rem;
189
+ line-height: 1rem;
190
+ }
191
+ .cat-button-xs .cat-button-prefix {
192
+ margin-right: 0.25rem;
193
+ }
194
+ .cat-button-xs .cat-button-suffix {
195
+ margin-left: 0.25rem;
196
+ }
197
+ .cat-button-xs.cat-button-icon {
198
+ width: 1.5rem;
199
+ padding-left: 0;
200
+ padding-right: 0;
201
+ }
202
+ :host-context(nav) .cat-button-xs {
203
+ padding-left: 1rem;
204
+ padding-right: 1rem;
205
+ }
206
+
207
+ .cat-button-s {
208
+ min-width: 2rem;
209
+ padding: 0.375rem 0.5rem;
210
+ font-size: 0.9375rem;
211
+ line-height: 1.25rem;
212
+ }
213
+ .cat-button-s .cat-button-prefix {
214
+ margin-right: 0.25rem;
215
+ }
216
+ .cat-button-s .cat-button-suffix {
217
+ margin-left: 0.25rem;
218
+ }
219
+ .cat-button-s cat-icon {
220
+ margin-top: -0.125rem;
221
+ margin-bottom: -0.125rem;
222
+ }
223
+ .cat-button-s.cat-button-icon {
224
+ width: 2rem;
225
+ padding-left: 0;
226
+ padding-right: 0;
227
+ }
228
+ :host-context(nav) .cat-button-s {
229
+ padding-left: 1rem;
230
+ padding-right: 1rem;
231
+ }
232
+
233
+ .cat-button-m {
234
+ min-width: 2.5rem;
235
+ padding: 0.625rem 0.75rem;
236
+ font-size: 0.9375rem;
237
+ line-height: 1.25rem;
238
+ }
239
+ .cat-button-m .cat-button-prefix {
240
+ margin-right: 0.25rem;
241
+ }
242
+ .cat-button-m .cat-button-suffix {
243
+ margin-left: 0.25rem;
244
+ }
245
+ .cat-button-m cat-icon {
246
+ margin-top: -0.125rem;
247
+ margin-bottom: -0.125rem;
248
+ }
249
+ .cat-button-m.cat-button-icon {
250
+ width: 2.5rem;
251
+ padding-left: 0;
252
+ padding-right: 0;
253
+ }
254
+ :host-context(nav) .cat-button-m {
255
+ padding-left: 1rem;
256
+ padding-right: 1rem;
257
+ }
258
+
259
+ .cat-button-l {
260
+ min-width: 3rem;
261
+ padding: 0.875rem 1rem;
262
+ font-size: 0.9375rem;
263
+ line-height: 1.25rem;
264
+ }
265
+ .cat-button-l .cat-button-prefix {
266
+ margin-right: 0.25rem;
267
+ }
268
+ .cat-button-l .cat-button-suffix {
269
+ margin-left: 0.25rem;
270
+ }
271
+ .cat-button-l cat-icon {
272
+ margin-top: -0.125rem;
273
+ margin-bottom: -0.125rem;
274
+ }
275
+ .cat-button-l.cat-button-icon {
276
+ width: 3rem;
277
+ padding-left: 0;
278
+ padding-right: 0;
279
+ }
280
+ :host-context(nav) .cat-button-l {
281
+ padding-left: 1rem;
282
+ padding-right: 1rem;
283
+ }
284
+
285
+ .cat-button-xl {
286
+ min-width: 3.5rem;
287
+ padding: 1rem 1.25rem;
288
+ font-size: 1.125rem;
289
+ line-height: 1.5rem;
290
+ }
291
+ .cat-button-xl .cat-button-prefix {
292
+ margin-right: 0.25rem;
293
+ }
294
+ .cat-button-xl .cat-button-suffix {
295
+ margin-left: 0.25rem;
296
+ }
297
+ .cat-button-xl.cat-button-icon {
298
+ width: 3.5rem;
299
+ padding-left: 0;
300
+ padding-right: 0;
301
+ }
302
+ :host-context(nav) .cat-button-xl {
303
+ padding-left: 1rem;
304
+ padding-right: 1rem;
305
+ }
306
+
307
+ :host-context(nav) {
308
+ width: 100%;
309
+ }
310
+ :host-context(nav) .cat-button {
311
+ box-shadow: none;
312
+ border-radius: 0;
313
+ }
314
+ :host-context(nav) .cat-button:focus-visible {
315
+ outline-offset: -2px;
316
+ }
317
+ :host-context(nav) .cat-button-content {
318
+ text-align: left;
319
+ }