@functionalcms/svelte-components 2.33.2 → 2.34.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.
Files changed (103) hide show
  1. package/dist/components/Link.svelte +290 -290
  2. package/dist/components/agnostic/Alert/Alert.svelte +310 -0
  3. package/dist/components/agnostic/Alert/Alert.svelte.d.ts +31 -0
  4. package/dist/components/agnostic/Avatar/Avatar.svelte +123 -0
  5. package/dist/components/agnostic/Avatar/Avatar.svelte.d.ts +26 -0
  6. package/dist/components/agnostic/Avatar/AvatarGroup.svelte +106 -0
  7. package/dist/components/agnostic/Avatar/AvatarGroup.svelte.d.ts +29 -0
  8. package/dist/components/agnostic/Breadcrumb/Breadcrumb.svelte +56 -0
  9. package/dist/components/agnostic/Breadcrumb/Breadcrumb.svelte.d.ts +20 -0
  10. package/dist/components/agnostic/Breadcrumb/api.d.ts +4 -0
  11. package/dist/components/agnostic/Breadcrumb/api.js +1 -0
  12. package/dist/components/agnostic/Button/Button.svelte +345 -0
  13. package/dist/components/agnostic/Button/Button.svelte.d.ts +43 -0
  14. package/dist/components/agnostic/Button/ButtonGroup.svelte +20 -0
  15. package/dist/components/agnostic/Button/ButtonGroup.svelte.d.ts +23 -0
  16. package/dist/components/agnostic/Button/button-base.css +12 -0
  17. package/dist/components/agnostic/Button/button-core.css +237 -0
  18. package/dist/components/agnostic/Button/button-empty.css +31 -0
  19. package/dist/components/agnostic/Button/button-group.css +8 -0
  20. package/dist/components/agnostic/Card/Card.svelte +133 -0
  21. package/dist/components/agnostic/Card/Card.svelte.d.ts +31 -0
  22. package/dist/components/agnostic/ChoiceInput/ChoiceInput.svelte +337 -0
  23. package/dist/components/agnostic/ChoiceInput/ChoiceInput.svelte.d.ts +37 -0
  24. package/dist/components/agnostic/ChoiceInput/api.d.ts +7 -0
  25. package/dist/components/agnostic/ChoiceInput/api.js +1 -0
  26. package/dist/components/agnostic/Close/Close.svelte +120 -0
  27. package/dist/components/agnostic/Close/Close.svelte.d.ts +23 -0
  28. package/dist/components/agnostic/Close/api.d.ts +1 -0
  29. package/dist/components/agnostic/Close/api.js +1 -0
  30. package/dist/components/agnostic/Dialog/Dialog.svelte +265 -0
  31. package/dist/components/agnostic/Dialog/Dialog.svelte.d.ts +39 -0
  32. package/dist/components/agnostic/Dialog/SvelteA11yDialog.svelte +103 -0
  33. package/dist/components/agnostic/Dialog/SvelteA11yDialog.svelte.d.ts +30 -0
  34. package/dist/components/agnostic/Dialog/a11y-dialog.d.ts +56 -0
  35. package/dist/components/agnostic/Dialog/a11y-dialog.js +216 -0
  36. package/dist/components/agnostic/Dialog/dom-utils.d.ts +26 -0
  37. package/dist/components/agnostic/Dialog/dom-utils.js +206 -0
  38. package/dist/components/agnostic/Disclose/Disclose.svelte +102 -0
  39. package/dist/components/agnostic/Disclose/Disclose.svelte.d.ts +23 -0
  40. package/dist/components/agnostic/Divider/Divider.svelte +139 -0
  41. package/dist/components/agnostic/Divider/Divider.svelte.d.ts +25 -0
  42. package/dist/components/agnostic/Divider/api.d.ts +3 -0
  43. package/dist/components/agnostic/Divider/api.js +1 -0
  44. package/dist/components/agnostic/Drawer/Drawer.svelte +30 -0
  45. package/dist/components/agnostic/Drawer/Drawer.svelte.d.ts +28 -0
  46. package/dist/components/agnostic/Drawer/api.d.ts +1 -0
  47. package/dist/components/agnostic/Drawer/api.js +1 -0
  48. package/dist/components/agnostic/EmptyState/EmptyState.svelte +46 -0
  49. package/dist/components/agnostic/EmptyState/EmptyState.svelte.d.ts +23 -0
  50. package/dist/components/agnostic/Header/Header.svelte +104 -0
  51. package/dist/components/agnostic/Header/Header.svelte.d.ts +26 -0
  52. package/dist/components/agnostic/Header/HeaderNav.svelte +28 -0
  53. package/dist/components/agnostic/Header/HeaderNav.svelte.d.ts +20 -0
  54. package/dist/components/agnostic/Header/HeaderNavItem.svelte +30 -0
  55. package/dist/components/agnostic/Header/HeaderNavItem.svelte.d.ts +20 -0
  56. package/dist/components/agnostic/Icon/Icon.svelte +180 -0
  57. package/dist/components/agnostic/Icon/Icon.svelte.d.ts +23 -0
  58. package/dist/components/agnostic/Icon/api.d.ts +2 -0
  59. package/dist/components/agnostic/Icon/api.js +1 -0
  60. package/dist/components/agnostic/Input/Input.svelte +415 -0
  61. package/dist/components/agnostic/Input/Input.svelte.d.ts +45 -0
  62. package/dist/components/agnostic/Input/InputAddonItem.svelte +42 -0
  63. package/dist/components/agnostic/Input/InputAddonItem.svelte.d.ts +33 -0
  64. package/dist/components/agnostic/Loader/Loader.svelte +113 -0
  65. package/dist/components/agnostic/Loader/Loader.svelte.d.ts +20 -0
  66. package/dist/components/agnostic/Menu/Menu.svelte +466 -0
  67. package/dist/components/agnostic/Menu/Menu.svelte.d.ts +31 -0
  68. package/dist/components/agnostic/Menu/MenuItem.svelte +117 -0
  69. package/dist/components/agnostic/Menu/MenuItem.svelte.d.ts +29 -0
  70. package/dist/components/agnostic/Progress/Progress.svelte +50 -0
  71. package/dist/components/agnostic/Progress/Progress.svelte.d.ts +20 -0
  72. package/dist/components/agnostic/Select/Select.svelte +141 -0
  73. package/dist/components/agnostic/Select/Select.svelte.d.ts +32 -0
  74. package/dist/components/agnostic/Spinner/Spinner.svelte +105 -0
  75. package/dist/components/agnostic/Spinner/Spinner.svelte.d.ts +19 -0
  76. package/dist/components/agnostic/Switch/Switch.svelte +275 -0
  77. package/dist/components/agnostic/Switch/Switch.svelte.d.ts +45 -0
  78. package/dist/components/agnostic/Table/Table.svelte +508 -0
  79. package/dist/components/agnostic/Table/Table.svelte.d.ts +36 -0
  80. package/dist/components/agnostic/Table/TableCustomRenderComponent.svelte +13 -0
  81. package/dist/components/agnostic/Table/TableCustomRenderComponent.svelte.d.ts +25 -0
  82. package/dist/components/agnostic/Tabs/TabButtonCustom.svelte +65 -0
  83. package/dist/components/agnostic/Tabs/TabButtonCustom.svelte.d.ts +35 -0
  84. package/dist/components/agnostic/Tabs/Tabs.svelte +330 -0
  85. package/dist/components/agnostic/Tabs/Tabs.svelte.d.ts +34 -0
  86. package/dist/components/agnostic/Tabs/api.d.ts +10 -0
  87. package/dist/components/agnostic/Tabs/api.js +1 -0
  88. package/dist/components/agnostic/Tag/Tag.svelte +74 -0
  89. package/dist/components/agnostic/Tag/Tag.svelte.d.ts +23 -0
  90. package/dist/components/agnostic/Tag/TagSlots.svelte +51 -0
  91. package/dist/components/agnostic/Tag/TagSlots.svelte.d.ts +16 -0
  92. package/dist/components/agnostic/Toasts/Toasts.svelte +46 -0
  93. package/dist/components/agnostic/Toasts/Toasts.svelte.d.ts +22 -0
  94. package/dist/components/agnostic/Tooltip/Tooltip.svelte +103 -0
  95. package/dist/components/agnostic/Tooltip/Tooltip.svelte.d.ts +23 -0
  96. package/dist/components/agnostic/Tooltip/TooltipSlots.svelte +81 -0
  97. package/dist/components/agnostic/Tooltip/TooltipSlots.svelte.d.ts +16 -0
  98. package/dist/components/agnostic/Tooltip/api.d.ts +1 -0
  99. package/dist/components/agnostic/Tooltip/api.js +1 -0
  100. package/dist/components/agnostic/animation.css +37 -0
  101. package/dist/index.d.ts +30 -1
  102. package/dist/index.js +30 -1
  103. package/package.json +1 -4
@@ -1,293 +1,293 @@
1
- <style>.btn {
2
- /* TODO test this fallback override syntax is correct */
3
- display: inline-flex;
4
- align-items: center;
5
- justify-content: center;
6
- white-space: nowrap;
7
- user-select: none;
8
- appearance: none;
9
- cursor: pointer;
10
- box-sizing: border-box;
11
- transition-property: all;
12
- transition-duration: var(--agnostic-timing-medium);
13
- }
14
-
15
- .btn-skin,
16
- .btn {
17
- color: var(--agnostic-btn-font-color, var(--agnostic-dark));
18
- background-color: var(--agnostic-btn-bgcolor, var(--agnostic-gray-light));
19
- border-color: var(--agnostic-btn-bgcolor, var(--agnostic-gray-light));
20
-
21
- /* seems like a reasonable default as chrome picks `outset` which results in a weird 3d effect */
22
- border-style: solid;
23
- border-width: var(--agnostic-btn-border-size, 1px);
24
- font-family: var(--agnostic-btn-font-family, var(--agnostic-font-family-body));
25
- font-weight: var(--agnostic-btn-font-weight, 400);
26
- font-size: var(--agnostic-btn-font-size, 1rem);
27
-
28
- /* this can be overriden, but it might mess with the balance of the button heights across variants */
29
- line-height: var(--agnostic-line-height, var(--fluid-20, 1.25rem));
30
- padding-block-start: var(--agnostic-vertical-pad, 0.5rem);
31
- padding-block-end: var(--agnostic-vertical-pad, 0.5rem);
32
- padding-inline-start: var(--agnostic-side-padding, 0.75rem);
33
- padding-inline-end: var(--agnostic-side-padding, 0.75rem);
34
- text-decoration: none;
35
- text-align: center;
36
- outline: none;
37
- }
38
-
39
- .btn:visited {
40
- color: var(--agnostic-btn-font-color, var(--agnostic-dark));
41
- }
42
-
43
- .btn:hover {
44
- opacity: 85%;
45
- text-decoration: none;
46
- }
47
-
48
- .btn:active {
49
- text-shadow: 0 1px 0 rgb(255 255 255 / 30%);
50
- text-decoration: none;
51
- transition-duration: 0s;
52
- box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
53
- }
54
-
55
- .btn:focus {
56
- box-shadow: 0 0 0 var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-color);
57
-
58
- /* Needed for High Contrast mode */
59
- outline:
60
- var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-outline-style)
61
- var(--agnostic-focus-ring-outline-color);
62
- transition: box-shadow var(--agnostic-timing-fast) ease-out;
63
-
64
- /* In order for the focused element's box-shadow to appear above its siblings we need to
65
- establish a new stacking context: https://stackoverflow.com/a/28042700 */
66
- isolation: isolate;
67
- }
68
-
69
- /*
70
- * Disabled State
71
- *
72
- * The disabled state uses the class .disabled, is-disabled,
73
- * and the form attribute disabled="disabled".
74
- * The use of !important is only added because this is a state
75
- * that must be applied to all buttons when in a disabled state.
76
- */
77
-
78
- .btn.disabled,
79
- .btn:disabled {
80
- top: 0 !important;
81
- background: var(--agnostic-btn-disabled-bg, var(--agnostic-gray-mid-dark)) !important;
82
- text-shadow: 0 1px 1px rgb(255 255 255 / 100%) !important;
83
-
84
- /* primary, secondary, natural, all look same when disabled; and we don't want to
85
- have an inadvertant looking blue primary border when disabled so it's transparent */
86
- border-color: transparent;
87
- color: var(--agnostic-btn-disabled-color, var(--agnostic-gray-dark)) !important;
88
- cursor: default !important;
89
- appearance: none !important;
90
- box-shadow: none !important;
91
- opacity: 80% !important;
92
- }
93
-
94
- .btn-primary {
95
- background-color: var(--agnostic-btn-primary, var(--agnostic-primary));
96
- border-color: var(--agnostic-btn-primary, var(--agnostic-primary));
97
- color: var(--agnostic-btn-primary-color, var(--agnostic-light));
98
- }
99
-
100
- /* Border and font is primary. When hovered, we invert with primary background and white font */
101
-
102
- .btn-primary.btn-bordered {
103
- color: var(--agnostic-btn-primary, var(--agnostic-primary));
104
- }
105
-
106
- .btn-primary.btn-bordered:hover,
107
- .btn-primary.btn-bordered:focus {
108
- background-color: var(--agnostic-btn-primary, var(--agnostic-primary));
109
- color: var(--agnostic-btn-primary-color, var(--agnostic-light));
110
- }
111
-
112
- .btn-primary:visited {
113
- color: var(--agnostic-btn-primary-color, var(--agnostic-light));
114
- }
115
-
116
- .btn-secondary {
117
- background-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
118
- border-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
119
- color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
120
- }
121
-
122
- /* Border and font is secondary. When hovered, we invert with secondary background and white font */
123
-
124
- .btn-secondary.btn-bordered {
125
- color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
126
- }
127
-
128
- .btn-secondary.btn-bordered:hover,
129
- .btn-secondary.btn-bordered:focus {
130
- background-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
131
- color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
132
- }
133
-
134
- .btn-secondary:visited {
135
- color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
136
- }
137
-
138
- /*
139
- /**
140
- * Border Buttons
141
- */
142
-
143
- .btn-bordered {
144
- border-width: 1px;
145
- background: transparent;
146
- }
147
-
148
- /**
149
- * Sizes
150
- */
151
-
152
- .btn-large {
153
- font-size: calc(var(--agnostic-btn-font-size, 1rem) + 0.25rem);
154
- height: 3rem;
155
- line-height: 3rem;
156
- padding: 0 3rem;
157
- }
158
-
159
- .btn-small {
160
- font-size: calc(var(--agnostic-btn-font-size, 1rem) - 0.25rem);
161
- height: 2rem;
162
- line-height: 2rem;
163
- padding: 0 2rem;
164
- }
165
-
166
- /**
167
- * Rounded
168
- */
169
-
170
- .btn-rounded {
171
- border-radius: var(--agnostic-btn-radius, var(--agnostic-radius, 0.25rem));
172
- }
173
-
174
- .btn-pill {
175
- border-radius: 200px;
176
- }
177
-
178
- /*
179
- * Size Adjustment for equal height & width buttons
180
- *
181
- * Remove padding
182
- */
183
-
184
- .btn-circle {
185
- border-radius: 100%;
186
- width: 2.5rem;
187
- height: 2.5rem;
188
- padding: 0 !important;
189
- }
190
-
191
- .btn-circle-large {
192
- font-size: calc(var(--agnostic-btn-font-size, 1rem) + 0.25rem);
193
- width: 3rem;
194
- height: 3rem;
195
- }
196
-
197
- .btn-circle-small {
198
- font-size: calc(var(--agnostic-btn-font-size, 1rem) - 0.25rem);
199
- width: 2rem;
200
- height: 2rem;
201
- }
202
-
203
- /**
204
- * Button Block (stacked)
205
- */
206
-
207
- .btn-block {
208
- width: 100%;
209
- }
210
-
211
- /* This is a utility class used if you literally want to stack block buttons one after another.
212
- Apply this class to the nth-of-type(2) onwards to ensure the borders line up properly. */
213
-
214
- .btn-block-following {
215
- margin-block-start: -1px;
216
- }
217
-
218
- .btn-grouped {
219
- border-radius: var(--agnostic-btn-radius, var(--agnostic-radius, 0.25rem));
220
- }
221
-
222
- .btn-grouped:not(:last-child) {
223
- border-top-right-radius: 0;
224
- border-bottom-right-radius: 0;
225
- margin-inline-end: -1px;
226
- }
227
-
228
- .btn-grouped:not(:first-child) {
229
- border-top-left-radius: 0;
230
- border-bottom-left-radius: 0;
231
- }
232
-
233
- .btn-capsule {
234
- --padding-side: calc(var(--agnostic-side-padding, 0.75rem) * 1.5);
235
-
236
- border-radius: var(--agnostic-radius-capsule);
237
- padding-inline-start: var(--padding-side);
238
- padding-inline-end: var(--padding-side);
239
- }
240
-
241
- @media (prefers-reduced-motion), (update: slow) {
242
- .btn,
243
- .btn:focus {
244
- transition-duration: 0.001ms !important;
245
- }
246
- }
247
-
248
- /**
249
- * Invisible buttons. Generally used for a Cancel or icon button that behaves like a button,
250
- * semantically and for a11y, but, does so without all the typical "button chrome" behind it.
251
- */
252
-
253
- :is(.btn-link, .btn-blank) {
254
- font-family: var(--agnostic-btn-font-family, var(--agnostic-font-family-body));
255
- font-size: var(--agnostic-btn-font-size, 1rem);
256
- background-color: transparent;
257
- border: 0;
258
- border-radius: 0;
259
- box-shadow: none;
260
- transition: none;
261
- }
262
-
263
- /* Since blank buttons can be used for things like input addons we don't want to go crazy
264
- on the side padding. As such, these have a good bit less then regular buttons. */
265
-
266
- .btn-blank {
267
- --agnostic-btn-blank-side-padding: var(--btn-blank-side-padding, 0.25rem);
268
-
269
- padding-inline-start: var(--agnostic-btn-blank-side-padding);
270
- padding-inline-end: var(--agnostic-btn-blank-side-padding);
271
- }
272
-
273
- /* A button blank with link color text */
274
-
275
- .btn-link {
276
- color: var(--agnostic-btn-primary, var(--agnostic-primary));
277
- }
278
-
279
- .btn-link:hover {
280
- cursor: pointer;
281
- }
282
-
283
- /**
284
- * Button Groups. See also button-core.css which has btn-grouped which needs to be
285
- * applied to the buttons that are projected within a button group.
286
- */
287
-
288
- .btn-group {
289
- display: inline-flex;
290
- flex-direction: row;
1
+ <style>.btn {
2
+ /* TODO test this fallback override syntax is correct */
3
+ display: inline-flex;
4
+ align-items: center;
5
+ justify-content: center;
6
+ white-space: nowrap;
7
+ user-select: none;
8
+ appearance: none;
9
+ cursor: pointer;
10
+ box-sizing: border-box;
11
+ transition-property: all;
12
+ transition-duration: var(--agnostic-timing-medium);
13
+ }
14
+
15
+ .btn-skin,
16
+ .btn {
17
+ color: var(--agnostic-btn-font-color, var(--agnostic-dark));
18
+ background-color: var(--agnostic-btn-bgcolor, var(--agnostic-gray-light));
19
+ border-color: var(--agnostic-btn-bgcolor, var(--agnostic-gray-light));
20
+
21
+ /* seems like a reasonable default as chrome picks `outset` which results in a weird 3d effect */
22
+ border-style: solid;
23
+ border-width: var(--agnostic-btn-border-size, 1px);
24
+ font-family: var(--agnostic-btn-font-family, var(--agnostic-font-family-body));
25
+ font-weight: var(--agnostic-btn-font-weight, 400);
26
+ font-size: var(--agnostic-btn-font-size, 1rem);
27
+
28
+ /* this can be overriden, but it might mess with the balance of the button heights across variants */
29
+ line-height: var(--agnostic-line-height, var(--fluid-20, 1.25rem));
30
+ padding-block-start: var(--agnostic-vertical-pad, 0.5rem);
31
+ padding-block-end: var(--agnostic-vertical-pad, 0.5rem);
32
+ padding-inline-start: var(--agnostic-side-padding, 0.75rem);
33
+ padding-inline-end: var(--agnostic-side-padding, 0.75rem);
34
+ text-decoration: none;
35
+ text-align: center;
36
+ outline: none;
37
+ }
38
+
39
+ .btn:visited {
40
+ color: var(--agnostic-btn-font-color, var(--agnostic-dark));
41
+ }
42
+
43
+ .btn:hover {
44
+ opacity: 85%;
45
+ text-decoration: none;
46
+ }
47
+
48
+ .btn:active {
49
+ text-shadow: 0 1px 0 rgb(255 255 255 / 30%);
50
+ text-decoration: none;
51
+ transition-duration: 0s;
52
+ box-shadow: inset 0 1px 3px rgb(0 0 0 / 20%);
53
+ }
54
+
55
+ .btn:focus {
56
+ box-shadow: 0 0 0 var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-color);
57
+
58
+ /* Needed for High Contrast mode */
59
+ outline:
60
+ var(--agnostic-focus-ring-outline-width) var(--agnostic-focus-ring-outline-style)
61
+ var(--agnostic-focus-ring-outline-color);
62
+ transition: box-shadow var(--agnostic-timing-fast) ease-out;
63
+
64
+ /* In order for the focused element's box-shadow to appear above its siblings we need to
65
+ establish a new stacking context: https://stackoverflow.com/a/28042700 */
66
+ isolation: isolate;
67
+ }
68
+
69
+ /*
70
+ * Disabled State
71
+ *
72
+ * The disabled state uses the class .disabled, is-disabled,
73
+ * and the form attribute disabled="disabled".
74
+ * The use of !important is only added because this is a state
75
+ * that must be applied to all buttons when in a disabled state.
76
+ */
77
+
78
+ .btn.disabled,
79
+ .btn:disabled {
80
+ top: 0 !important;
81
+ background: var(--agnostic-btn-disabled-bg, var(--agnostic-gray-mid-dark)) !important;
82
+ text-shadow: 0 1px 1px rgb(255 255 255 / 100%) !important;
83
+
84
+ /* primary, secondary, natural, all look same when disabled; and we don't want to
85
+ have an inadvertant looking blue primary border when disabled so it's transparent */
86
+ border-color: transparent;
87
+ color: var(--agnostic-btn-disabled-color, var(--agnostic-gray-dark)) !important;
88
+ cursor: default !important;
89
+ appearance: none !important;
90
+ box-shadow: none !important;
91
+ opacity: 80% !important;
92
+ }
93
+
94
+ .btn-primary {
95
+ background-color: var(--agnostic-btn-primary, var(--agnostic-primary));
96
+ border-color: var(--agnostic-btn-primary, var(--agnostic-primary));
97
+ color: var(--agnostic-btn-primary-color, var(--agnostic-light));
98
+ }
99
+
100
+ /* Border and font is primary. When hovered, we invert with primary background and white font */
101
+
102
+ .btn-primary.btn-bordered {
103
+ color: var(--agnostic-btn-primary, var(--agnostic-primary));
104
+ }
105
+
106
+ .btn-primary.btn-bordered:hover,
107
+ .btn-primary.btn-bordered:focus {
108
+ background-color: var(--agnostic-btn-primary, var(--agnostic-primary));
109
+ color: var(--agnostic-btn-primary-color, var(--agnostic-light));
110
+ }
111
+
112
+ .btn-primary:visited {
113
+ color: var(--agnostic-btn-primary-color, var(--agnostic-light));
114
+ }
115
+
116
+ .btn-secondary {
117
+ background-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
118
+ border-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
119
+ color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
120
+ }
121
+
122
+ /* Border and font is secondary. When hovered, we invert with secondary background and white font */
123
+
124
+ .btn-secondary.btn-bordered {
125
+ color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
126
+ }
127
+
128
+ .btn-secondary.btn-bordered:hover,
129
+ .btn-secondary.btn-bordered:focus {
130
+ background-color: var(--agnostic-btn-secondary, var(--agnostic-secondary));
131
+ color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
132
+ }
133
+
134
+ .btn-secondary:visited {
135
+ color: var(--agnostic-btn-secondary-color, var(--agnostic-light));
136
+ }
137
+
138
+ /*
139
+ /**
140
+ * Border Buttons
141
+ */
142
+
143
+ .btn-bordered {
144
+ border-width: 1px;
145
+ background: transparent;
146
+ }
147
+
148
+ /**
149
+ * Sizes
150
+ */
151
+
152
+ .btn-large {
153
+ font-size: calc(var(--agnostic-btn-font-size, 1rem) + 0.25rem);
154
+ height: 3rem;
155
+ line-height: 3rem;
156
+ padding: 0 3rem;
157
+ }
158
+
159
+ .btn-small {
160
+ font-size: calc(var(--agnostic-btn-font-size, 1rem) - 0.25rem);
161
+ height: 2rem;
162
+ line-height: 2rem;
163
+ padding: 0 2rem;
164
+ }
165
+
166
+ /**
167
+ * Rounded
168
+ */
169
+
170
+ .btn-rounded {
171
+ border-radius: var(--agnostic-btn-radius, var(--agnostic-radius, 0.25rem));
172
+ }
173
+
174
+ .btn-pill {
175
+ border-radius: 200px;
176
+ }
177
+
178
+ /*
179
+ * Size Adjustment for equal height & width buttons
180
+ *
181
+ * Remove padding
182
+ */
183
+
184
+ .btn-circle {
185
+ border-radius: 100%;
186
+ width: 2.5rem;
187
+ height: 2.5rem;
188
+ padding: 0 !important;
189
+ }
190
+
191
+ .btn-circle-large {
192
+ font-size: calc(var(--agnostic-btn-font-size, 1rem) + 0.25rem);
193
+ width: 3rem;
194
+ height: 3rem;
195
+ }
196
+
197
+ .btn-circle-small {
198
+ font-size: calc(var(--agnostic-btn-font-size, 1rem) - 0.25rem);
199
+ width: 2rem;
200
+ height: 2rem;
201
+ }
202
+
203
+ /**
204
+ * Button Block (stacked)
205
+ */
206
+
207
+ .btn-block {
208
+ width: 100%;
209
+ }
210
+
211
+ /* This is a utility class used if you literally want to stack block buttons one after another.
212
+ Apply this class to the nth-of-type(2) onwards to ensure the borders line up properly. */
213
+
214
+ .btn-block-following {
215
+ margin-block-start: -1px;
216
+ }
217
+
218
+ .btn-grouped {
219
+ border-radius: var(--agnostic-btn-radius, var(--agnostic-radius, 0.25rem));
220
+ }
221
+
222
+ .btn-grouped:not(:last-child) {
223
+ border-top-right-radius: 0;
224
+ border-bottom-right-radius: 0;
225
+ margin-inline-end: -1px;
226
+ }
227
+
228
+ .btn-grouped:not(:first-child) {
229
+ border-top-left-radius: 0;
230
+ border-bottom-left-radius: 0;
231
+ }
232
+
233
+ .btn-capsule {
234
+ --padding-side: calc(var(--agnostic-side-padding, 0.75rem) * 1.5);
235
+
236
+ border-radius: var(--agnostic-radius-capsule);
237
+ padding-inline-start: var(--padding-side);
238
+ padding-inline-end: var(--padding-side);
239
+ }
240
+
241
+ @media (prefers-reduced-motion), (update: slow) {
242
+ .btn,
243
+ .btn:focus {
244
+ transition-duration: 0.001ms !important;
245
+ }
246
+ }
247
+
248
+ /**
249
+ * Invisible buttons. Generally used for a Cancel or icon button that behaves like a button,
250
+ * semantically and for a11y, but, does so without all the typical "button chrome" behind it.
251
+ */
252
+
253
+ :is(.btn-link, .btn-blank) {
254
+ font-family: var(--agnostic-btn-font-family, var(--agnostic-font-family-body));
255
+ font-size: var(--agnostic-btn-font-size, 1rem);
256
+ background-color: transparent;
257
+ border: 0;
258
+ border-radius: 0;
259
+ box-shadow: none;
260
+ transition: none;
261
+ }
262
+
263
+ /* Since blank buttons can be used for things like input addons we don't want to go crazy
264
+ on the side padding. As such, these have a good bit less then regular buttons. */
265
+
266
+ .btn-blank {
267
+ --agnostic-btn-blank-side-padding: var(--btn-blank-side-padding, 0.25rem);
268
+
269
+ padding-inline-start: var(--agnostic-btn-blank-side-padding);
270
+ padding-inline-end: var(--agnostic-btn-blank-side-padding);
271
+ }
272
+
273
+ /* A button blank with link color text */
274
+
275
+ .btn-link {
276
+ color: var(--agnostic-btn-primary, var(--agnostic-primary));
277
+ }
278
+
279
+ .btn-link:hover {
280
+ cursor: pointer;
281
+ }
282
+
283
+ /**
284
+ * Button Groups. See also button-core.css which has btn-grouped which needs to be
285
+ * applied to the buttons that are projected within a button group.
286
+ */
287
+
288
+ .btn-group {
289
+ display: inline-flex;
290
+ flex-direction: row;
291
291
  }</style>
292
292
  <script>import { AlignItmes, ComponentSize, Justify, Orientation } from "./Styling.js";
293
293
  export let css = "";