@openlearning/widget-framework 1.0.2 → 1.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.
- package/README.md +230 -0
- package/dist/components/Button.d.ts +41 -0
- package/dist/components/Button.d.ts.map +1 -0
- package/dist/components/Button.js +47 -0
- package/dist/components/Button.js.map +1 -0
- package/dist/components/Checkbox.d.ts +19 -0
- package/dist/components/Checkbox.d.ts.map +1 -0
- package/dist/components/Checkbox.js +16 -0
- package/dist/components/Checkbox.js.map +1 -0
- package/dist/components/CheckboxGroup.d.ts +34 -0
- package/dist/components/CheckboxGroup.d.ts.map +1 -0
- package/dist/components/CheckboxGroup.js +18 -0
- package/dist/components/CheckboxGroup.js.map +1 -0
- package/dist/components/Menu.d.ts +45 -0
- package/dist/components/Menu.d.ts.map +1 -0
- package/dist/components/Menu.js +56 -0
- package/dist/components/Menu.js.map +1 -0
- package/dist/components/RadioGroup.d.ts +36 -0
- package/dist/components/RadioGroup.d.ts.map +1 -0
- package/dist/components/RadioGroup.js +18 -0
- package/dist/components/RadioGroup.js.map +1 -0
- package/dist/components/Spinner.d.ts +15 -0
- package/dist/components/Spinner.d.ts.map +1 -0
- package/dist/components/Spinner.js +10 -0
- package/dist/components/Spinner.js.map +1 -0
- package/dist/components/StatusTag.d.ts +16 -0
- package/dist/components/StatusTag.d.ts.map +1 -0
- package/dist/components/StatusTag.js +9 -0
- package/dist/components/StatusTag.js.map +1 -0
- package/dist/components/Switch.d.ts +22 -0
- package/dist/components/Switch.d.ts.map +1 -0
- package/dist/components/Switch.js +14 -0
- package/dist/components/Switch.js.map +1 -0
- package/dist/components/Tabs.d.ts +23 -0
- package/dist/components/Tabs.d.ts.map +1 -0
- package/dist/components/Tabs.js +27 -0
- package/dist/components/Tabs.js.map +1 -0
- package/dist/components/TextField.d.ts +19 -0
- package/dist/components/TextField.d.ts.map +1 -0
- package/dist/components/TextField.js +17 -0
- package/dist/components/TextField.js.map +1 -0
- package/dist/components/Textarea.d.ts +19 -0
- package/dist/components/Textarea.d.ts.map +1 -0
- package/dist/components/Textarea.js +17 -0
- package/dist/components/Textarea.js.map +1 -0
- package/dist/components/icons/IconCaretDown.d.ts +7 -0
- package/dist/components/icons/IconCaretDown.d.ts.map +1 -0
- package/dist/components/icons/IconCaretDown.js +4 -0
- package/dist/components/icons/IconCaretDown.js.map +1 -0
- package/dist/components/icons/IconCaretLeft.d.ts +7 -0
- package/dist/components/icons/IconCaretLeft.d.ts.map +1 -0
- package/dist/components/icons/IconCaretLeft.js +4 -0
- package/dist/components/icons/IconCaretLeft.js.map +1 -0
- package/dist/components/icons/IconCaretRight.d.ts +7 -0
- package/dist/components/icons/IconCaretRight.d.ts.map +1 -0
- package/dist/components/icons/IconCaretRight.js +4 -0
- package/dist/components/icons/IconCaretRight.js.map +1 -0
- package/dist/components/icons/IconCaretUp.d.ts +7 -0
- package/dist/components/icons/IconCaretUp.d.ts.map +1 -0
- package/dist/components/icons/IconCaretUp.js +4 -0
- package/dist/components/icons/IconCaretUp.js.map +1 -0
- package/dist/components/icons/IconChevronLeft.d.ts +7 -0
- package/dist/components/icons/IconChevronLeft.d.ts.map +1 -0
- package/dist/components/icons/IconChevronLeft.js +4 -0
- package/dist/components/icons/IconChevronLeft.js.map +1 -0
- package/dist/components/icons/IconChevronRight.d.ts +7 -0
- package/dist/components/icons/IconChevronRight.d.ts.map +1 -0
- package/dist/components/icons/IconChevronRight.js +4 -0
- package/dist/components/icons/IconChevronRight.js.map +1 -0
- package/dist/components/icons/IconFastForward.d.ts +7 -0
- package/dist/components/icons/IconFastForward.d.ts.map +1 -0
- package/dist/components/icons/IconFastForward.js +4 -0
- package/dist/components/icons/IconFastForward.js.map +1 -0
- package/dist/components/icons/IconNext.d.ts +7 -0
- package/dist/components/icons/IconNext.d.ts.map +1 -0
- package/dist/components/icons/IconNext.js +4 -0
- package/dist/components/icons/IconNext.js.map +1 -0
- package/dist/components/icons/IconPause.d.ts +7 -0
- package/dist/components/icons/IconPause.d.ts.map +1 -0
- package/dist/components/icons/IconPause.js +4 -0
- package/dist/components/icons/IconPause.js.map +1 -0
- package/dist/components/icons/IconPlay.d.ts +7 -0
- package/dist/components/icons/IconPlay.d.ts.map +1 -0
- package/dist/components/icons/IconPlay.js +4 -0
- package/dist/components/icons/IconPlay.js.map +1 -0
- package/dist/components/icons/IconPlus.d.ts +7 -0
- package/dist/components/icons/IconPlus.d.ts.map +1 -0
- package/dist/components/icons/IconPlus.js +4 -0
- package/dist/components/icons/IconPlus.js.map +1 -0
- package/dist/components/icons/IconPrevious.d.ts +7 -0
- package/dist/components/icons/IconPrevious.d.ts.map +1 -0
- package/dist/components/icons/IconPrevious.js +4 -0
- package/dist/components/icons/IconPrevious.js.map +1 -0
- package/dist/components/icons/IconRedo.d.ts +7 -0
- package/dist/components/icons/IconRedo.d.ts.map +1 -0
- package/dist/components/icons/IconRedo.js +4 -0
- package/dist/components/icons/IconRedo.js.map +1 -0
- package/dist/components/icons/IconReload.d.ts +7 -0
- package/dist/components/icons/IconReload.d.ts.map +1 -0
- package/dist/components/icons/IconReload.js +4 -0
- package/dist/components/icons/IconReload.js.map +1 -0
- package/dist/components/icons/IconReplay.d.ts +3 -0
- package/dist/components/icons/IconReplay.d.ts.map +1 -0
- package/dist/components/icons/IconReplay.js +4 -0
- package/dist/components/icons/IconReplay.js.map +1 -0
- package/dist/components/icons/IconRewind.d.ts +7 -0
- package/dist/components/icons/IconRewind.d.ts.map +1 -0
- package/dist/components/icons/IconRewind.js +4 -0
- package/dist/components/icons/IconRewind.js.map +1 -0
- package/dist/components/icons/IconSkipBackward.d.ts +7 -0
- package/dist/components/icons/IconSkipBackward.d.ts.map +1 -0
- package/dist/components/icons/IconSkipBackward.js +4 -0
- package/dist/components/icons/IconSkipBackward.js.map +1 -0
- package/dist/components/icons/IconSkipForward.d.ts +7 -0
- package/dist/components/icons/IconSkipForward.d.ts.map +1 -0
- package/dist/components/icons/IconSkipForward.js +4 -0
- package/dist/components/icons/IconSkipForward.js.map +1 -0
- package/dist/components/icons/IconStop.d.ts +7 -0
- package/dist/components/icons/IconStop.d.ts.map +1 -0
- package/dist/components/icons/IconStop.js +4 -0
- package/dist/components/icons/IconStop.js.map +1 -0
- package/dist/components/icons/IconUndo.d.ts +7 -0
- package/dist/components/icons/IconUndo.d.ts.map +1 -0
- package/dist/components/icons/IconUndo.js +4 -0
- package/dist/components/icons/IconUndo.js.map +1 -0
- package/dist/components/icons/IconX.d.ts +7 -0
- package/dist/components/icons/IconX.d.ts.map +1 -0
- package/dist/components/icons/IconX.js +4 -0
- package/dist/components/icons/IconX.js.map +1 -0
- package/dist/components/icons/index.d.ts +21 -0
- package/dist/components/icons/index.d.ts.map +1 -0
- package/dist/components/icons/index.js +21 -0
- package/dist/components/icons/index.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -1
- package/dist/styles/button.css +381 -0
- package/dist/styles/checkbox.css +105 -0
- package/dist/styles/checkboxgroup.css +42 -0
- package/dist/styles/radiogroup.css +135 -0
- package/dist/styles/spinner.css +22 -0
- package/dist/styles/statustag.css +35 -0
- package/dist/styles/switch.css +74 -0
- package/dist/styles/tabs.css +49 -0
- package/dist/styles/textfield.css +72 -0
- package/package.json +12 -7
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
/* Button & Menu Styles - OpenLearning Design System */
|
|
2
|
+
|
|
3
|
+
/* CSS Variables for theming */
|
|
4
|
+
:root {
|
|
5
|
+
/* base color: NOT_BLACK */
|
|
6
|
+
--btn-primary: rgba(0, 43, 62, 1);
|
|
7
|
+
|
|
8
|
+
/* Text colors */
|
|
9
|
+
--btn-text-primary: rgba(0, 0, 0, 0.9);
|
|
10
|
+
--btn-text-secondary: rgba(0, 0, 0, 0.55);
|
|
11
|
+
--btn-text-disabled: rgba(0, 0, 0, 0.55);
|
|
12
|
+
--btn-text-inverse: #ffffff;
|
|
13
|
+
|
|
14
|
+
/* Tonal backgrounds */
|
|
15
|
+
--btn-bg-tonal: rgba(0, 43, 62, 0.1);
|
|
16
|
+
--btn-bg-tonal-hover: rgba(0, 43, 62, 0.18);
|
|
17
|
+
|
|
18
|
+
/* Light gray backgrounds */
|
|
19
|
+
--btn-bg-light: #f5f7f7;
|
|
20
|
+
|
|
21
|
+
/* Sizing - default height is 44px */
|
|
22
|
+
--btn-height: 44px;
|
|
23
|
+
--btn-padding: 0 16px;
|
|
24
|
+
--btn-small-height: 32px;
|
|
25
|
+
--btn-small-padding: 0 16px;
|
|
26
|
+
--btn-large-height: 48px;
|
|
27
|
+
--btn-large-padding: 0 16px;
|
|
28
|
+
|
|
29
|
+
/* Typography */
|
|
30
|
+
--btn-font-family: "Open Sans", "Helvetica", sans-serif;
|
|
31
|
+
--btn-font-size: 14px;
|
|
32
|
+
--btn-font-weight: 600;
|
|
33
|
+
--btn-line-height: 20px;
|
|
34
|
+
|
|
35
|
+
/* Border radius - pill-shaped per OpenLearning design */
|
|
36
|
+
--btn-border-radius: 100px;
|
|
37
|
+
|
|
38
|
+
/* Transitions */
|
|
39
|
+
--btn-transition: all 0.2s ease-in-out;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Base Button Styles */
|
|
43
|
+
.btn {
|
|
44
|
+
display: inline-flex;
|
|
45
|
+
align-items: center;
|
|
46
|
+
justify-content: center;
|
|
47
|
+
height: var(--btn-height);
|
|
48
|
+
padding: var(--btn-padding);
|
|
49
|
+
gap: 8px;
|
|
50
|
+
font-family: var(--btn-font-family);
|
|
51
|
+
font-size: var(--btn-font-size);
|
|
52
|
+
font-weight: var(--btn-font-weight);
|
|
53
|
+
line-height: var(--btn-line-height);
|
|
54
|
+
border: 1px solid transparent;
|
|
55
|
+
border-radius: var(--btn-border-radius);
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
transition: var(--btn-transition);
|
|
58
|
+
text-decoration: none;
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
user-select: none;
|
|
61
|
+
-webkit-user-select: none;
|
|
62
|
+
-moz-user-select: none;
|
|
63
|
+
-ms-user-select: none;
|
|
64
|
+
min-width: var(--btn-height);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/* Size variants */
|
|
68
|
+
.btn--small {
|
|
69
|
+
height: var(--btn-small-height);
|
|
70
|
+
padding: var(--btn-small-padding);
|
|
71
|
+
font-size: 13px;
|
|
72
|
+
min-width: var(--btn-small-height);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.btn--large {
|
|
76
|
+
height: var(--btn-large-height);
|
|
77
|
+
padding: var(--btn-large-padding);
|
|
78
|
+
font-size: 15px;
|
|
79
|
+
min-width: var(--btn-large-height);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/* OpenLearning Variant: Round Filled (default) */
|
|
83
|
+
.btn--round-filled {
|
|
84
|
+
border-color: transparent;
|
|
85
|
+
background-color: var(--btn-primary);
|
|
86
|
+
color: var(--btn-text-inverse);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.btn--round-filled:hover:not(:disabled) {
|
|
90
|
+
box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.25);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.btn--round-filled:active:not(:disabled) {
|
|
94
|
+
box-shadow: inset 0px 1px 2px rgba(0, 0, 0, 0.1);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* OpenLearning Variant: Round Tonal */
|
|
98
|
+
.btn--round-tonal {
|
|
99
|
+
border-color: transparent;
|
|
100
|
+
background-color: var(--btn-bg-tonal);
|
|
101
|
+
color: var(--btn-text-primary);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.btn--round-tonal:hover:not(:disabled) {
|
|
105
|
+
background-color: var(--btn-bg-tonal-hover);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.btn--round-tonal:active:not(:disabled) {
|
|
109
|
+
background-color: var(--btn-bg-tonal-hover);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/* OpenLearning Variant: Round Quiet */
|
|
113
|
+
.btn--round-quiet {
|
|
114
|
+
border: 1px solid var(--btn-primary);
|
|
115
|
+
background-color: transparent;
|
|
116
|
+
color: var(--btn-text-primary);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.btn--round-quiet:hover:not(:disabled) {
|
|
120
|
+
background-color: #f5f7f7;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.btn--round-quiet:active:not(:disabled) {
|
|
124
|
+
background-color: #f5f7f7;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
/* OpenLearning Variant: Round Inline */
|
|
128
|
+
.btn--round-inline {
|
|
129
|
+
border-color: transparent;
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
color: var(--btn-text-primary);
|
|
132
|
+
padding: 0 4px;
|
|
133
|
+
height: auto;
|
|
134
|
+
min-width: auto;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.btn--round-inline:hover:not(:disabled) {
|
|
138
|
+
background-color: var(--btn-bg-light);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.btn--round-inline:active:not(:disabled) {
|
|
142
|
+
background-color: var(--btn-bg-light);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Platform Variant: Primary (Kelp color #0B7A7C) */
|
|
146
|
+
.btn--primary {
|
|
147
|
+
border: 1px solid #0B7A7C;
|
|
148
|
+
background-color: #0B7A7C;
|
|
149
|
+
color: var(--btn-text-inverse);
|
|
150
|
+
border-radius: 4px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.btn--primary:hover:not(:disabled) {
|
|
154
|
+
border-color: #07565F;
|
|
155
|
+
background-color: #07565F;
|
|
156
|
+
color: var(--btn-text-inverse);
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.btn--primary:active:not(:disabled) {
|
|
160
|
+
border-color: #07565F;
|
|
161
|
+
background-color: #07565F;
|
|
162
|
+
color: var(--btn-text-inverse);
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/* Platform Variant: Secondary */
|
|
166
|
+
.btn--secondary {
|
|
167
|
+
border: 1px solid rgba(0, 0, 0, 0.55);
|
|
168
|
+
background-color: rgba(0, 0, 0, 0.04);
|
|
169
|
+
color: var(--btn-text-primary);
|
|
170
|
+
border-radius: 4px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.btn--secondary:hover:not(:disabled) {
|
|
174
|
+
background-color: #ffffff;
|
|
175
|
+
color: var(--btn-text-primary);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.btn--secondary:active:not(:disabled) {
|
|
179
|
+
background-color: #ffffff;
|
|
180
|
+
color: var(--btn-text-primary);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/* Disabled state */
|
|
184
|
+
.btn:disabled {
|
|
185
|
+
border-color: rgba(0, 43, 62, 0.1);
|
|
186
|
+
background-color: transparent;
|
|
187
|
+
color: var(--btn-text-disabled);
|
|
188
|
+
cursor: not-allowed;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.btn--round-filled:disabled {
|
|
192
|
+
background-color: transparent;
|
|
193
|
+
border-color: rgba(0, 43, 62, 0.1);
|
|
194
|
+
color: var(--btn-text-disabled);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.btn--round-tonal:disabled {
|
|
198
|
+
background-color: transparent;
|
|
199
|
+
border-color: rgba(0, 43, 62, 0.1);
|
|
200
|
+
color: var(--btn-text-disabled);
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.btn--round-quiet:disabled {
|
|
204
|
+
border-color: rgba(0, 43, 62, 0.1);
|
|
205
|
+
background-color: transparent;
|
|
206
|
+
color: var(--btn-text-disabled);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
.btn--round-inline:disabled {
|
|
210
|
+
border-color: transparent;
|
|
211
|
+
background-color: transparent;
|
|
212
|
+
color: var(--btn-text-disabled);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
/* Platform variants - both use the same disabled style */
|
|
216
|
+
.btn--primary:disabled,
|
|
217
|
+
.btn--secondary:disabled {
|
|
218
|
+
border-color: rgba(0, 43, 62, 0.1);
|
|
219
|
+
background-color: #ffffff;
|
|
220
|
+
color: var(--btn-text-disabled);
|
|
221
|
+
cursor: not-allowed;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
/* Icon support */
|
|
225
|
+
.btn__icon {
|
|
226
|
+
width: 1em;
|
|
227
|
+
height: 1em;
|
|
228
|
+
display: inline-flex;
|
|
229
|
+
align-items: center;
|
|
230
|
+
justify-content: center;
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
.btn--icon-only {
|
|
234
|
+
width: var(--btn-height);
|
|
235
|
+
padding: 0;
|
|
236
|
+
border-radius: 50%;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.btn--icon-only.btn--small {
|
|
240
|
+
width: var(--btn-small-height);
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
.btn--icon-only.btn--large {
|
|
244
|
+
width: var(--btn-large-height);
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
/* Loading state */
|
|
248
|
+
.btn--loading {
|
|
249
|
+
pointer-events: none;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
/* Focus state for accessibility */
|
|
253
|
+
.btn:focus-visible {
|
|
254
|
+
outline: 2px solid rgba(0, 43, 62, 0.4);
|
|
255
|
+
outline-offset: 2px;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/* Full width variant */
|
|
259
|
+
.btn--full-width {
|
|
260
|
+
width: 100%;
|
|
261
|
+
display: flex;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/* Menu Styles */
|
|
265
|
+
.menu {
|
|
266
|
+
position: relative;
|
|
267
|
+
display: inline-block;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
.menu__trigger {
|
|
271
|
+
background-color: transparent;
|
|
272
|
+
color: var(--btn-text-primary);
|
|
273
|
+
padding: 0 16px;
|
|
274
|
+
height: var(--btn-height);
|
|
275
|
+
border: 1px solid transparent;
|
|
276
|
+
border-radius: var(--btn-border-radius);
|
|
277
|
+
cursor: pointer;
|
|
278
|
+
font-family: var(--btn-font-family);
|
|
279
|
+
font-size: var(--btn-font-size);
|
|
280
|
+
font-weight: var(--btn-font-weight);
|
|
281
|
+
transition: var(--btn-transition);
|
|
282
|
+
display: inline-flex;
|
|
283
|
+
align-items: center;
|
|
284
|
+
justify-content: center;
|
|
285
|
+
gap: 4px;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.menu__trigger:hover:not(:disabled) {
|
|
289
|
+
background-color: var(--btn-bg-light);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
.menu__trigger:active:not(:disabled) {
|
|
293
|
+
background-color: rgba(0, 43, 62, 0.1);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
.menu__trigger:focus-visible {
|
|
297
|
+
outline: 2px solid rgba(0, 43, 62, 0.4);
|
|
298
|
+
outline-offset: 2px;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
.menu__trigger:disabled {
|
|
302
|
+
cursor: not-allowed;
|
|
303
|
+
color: var(--btn-text-disabled);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
.menu__trigger--checked {
|
|
307
|
+
background-color: var(--btn-bg-tonal);
|
|
308
|
+
font-weight: var(--btn-font-weight);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.menu__content {
|
|
312
|
+
position: absolute;
|
|
313
|
+
top: 100%;
|
|
314
|
+
left: 0;
|
|
315
|
+
margin-top: 8px;
|
|
316
|
+
background-color: #ffffff;
|
|
317
|
+
border: 1px solid rgba(0, 0, 0, 0.1);
|
|
318
|
+
border-radius: 8px;
|
|
319
|
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
|
320
|
+
min-width: 200px;
|
|
321
|
+
z-index: 1000;
|
|
322
|
+
display: none;
|
|
323
|
+
flex-direction: column;
|
|
324
|
+
padding: 8px 0;
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
.menu__content--open {
|
|
328
|
+
display: flex;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
.menu__item {
|
|
332
|
+
padding: 8px 16px;
|
|
333
|
+
color: var(--btn-text-primary);
|
|
334
|
+
background-color: transparent;
|
|
335
|
+
border: none;
|
|
336
|
+
text-align: left;
|
|
337
|
+
cursor: pointer;
|
|
338
|
+
font-family: var(--btn-font-family);
|
|
339
|
+
font-size: var(--btn-font-size);
|
|
340
|
+
font-weight: 500;
|
|
341
|
+
transition: var(--btn-transition);
|
|
342
|
+
width: 100%;
|
|
343
|
+
white-space: nowrap;
|
|
344
|
+
display: flex;
|
|
345
|
+
align-items: center;
|
|
346
|
+
gap: 8px;
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
.menu__item:hover:not(:disabled) {
|
|
350
|
+
background-color: var(--btn-bg-light);
|
|
351
|
+
}
|
|
352
|
+
|
|
353
|
+
.menu__item:active:not(:disabled) {
|
|
354
|
+
background-color: var(--btn-bg-tonal);
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
.menu__item:disabled {
|
|
358
|
+
color: var(--btn-text-disabled);
|
|
359
|
+
cursor: not-allowed;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
.menu__item--checked {
|
|
363
|
+
background-color: var(--btn-bg-tonal);
|
|
364
|
+
color: var(--btn-primary);
|
|
365
|
+
font-weight: var(--btn-font-weight);
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
.menu__item-icon {
|
|
369
|
+
width: 1em;
|
|
370
|
+
height: 1em;
|
|
371
|
+
display: inline-flex;
|
|
372
|
+
align-items: center;
|
|
373
|
+
justify-content: center;
|
|
374
|
+
flex-shrink: 0;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
.menu__divider {
|
|
378
|
+
height: 1px;
|
|
379
|
+
background-color: rgba(0, 0, 0, 0.1);
|
|
380
|
+
margin: 4px 0;
|
|
381
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
.checkbox-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.checkboxgroup-options--vertical .checkbox-container.checkbox--spaced {
|
|
7
|
+
margin-top: 4px;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.checkboxgroup-options--horizontal .checkbox-container.checkbox--spaced {
|
|
11
|
+
margin-left: 16px;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.checkbox-label {
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
position: relative;
|
|
19
|
+
user-select: none;
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.checkbox-label--disabled {
|
|
24
|
+
cursor: not-allowed;
|
|
25
|
+
color: rgba(0, 0, 0, 0.55);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.checkbox-input {
|
|
29
|
+
border: 0;
|
|
30
|
+
clip: rect(0 0 0 0);
|
|
31
|
+
height: 1px;
|
|
32
|
+
margin: -1px;
|
|
33
|
+
overflow: hidden;
|
|
34
|
+
padding: 0;
|
|
35
|
+
position: absolute;
|
|
36
|
+
white-space: nowrap;
|
|
37
|
+
width: 1px;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.checkbox-box {
|
|
41
|
+
display: inline-flex;
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: center;
|
|
44
|
+
box-sizing: border-box;
|
|
45
|
+
width: 20px;
|
|
46
|
+
height: 20px;
|
|
47
|
+
min-width: 20px;
|
|
48
|
+
min-height: 20px;
|
|
49
|
+
background: #FFFFFF;
|
|
50
|
+
border: 1px solid rgba(0, 0, 0, 0.55);
|
|
51
|
+
transition: all 150ms;
|
|
52
|
+
margin-right: 8px;
|
|
53
|
+
flex-shrink: 0;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
.checkbox-input:disabled ~ .checkbox-box {
|
|
57
|
+
background: rgba(0, 0, 0, 0.1);
|
|
58
|
+
border-color: rgba(0, 0, 0, 0.1);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.checkbox-box svg {
|
|
62
|
+
visibility: hidden;
|
|
63
|
+
width: 20px;
|
|
64
|
+
height: 20px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.checkbox-input:checked ~ .checkbox-box svg {
|
|
68
|
+
visibility: visible;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.checkbox-input:focus ~ .checkbox-box {
|
|
72
|
+
outline: 1px auto -webkit-focus-ring-color;
|
|
73
|
+
outline-offset: 3px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.checkbox-text {
|
|
77
|
+
display: block;
|
|
78
|
+
font-size: 14px;
|
|
79
|
+
line-height: 20px;
|
|
80
|
+
color: rgba(0, 0, 0, 0.9);
|
|
81
|
+
flex-shrink: 1;
|
|
82
|
+
flex-grow: 1;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.checkbox-label--disabled .checkbox-text {
|
|
86
|
+
color: rgba(0, 0, 0, 0.55);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.checkbox-required {
|
|
90
|
+
color: #d32f2f;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.checkbox-description {
|
|
94
|
+
font-size: 12px;
|
|
95
|
+
line-height: 1.5;
|
|
96
|
+
color: rgba(0, 0, 0, 0.55);
|
|
97
|
+
margin-left: 28px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.checkbox-error {
|
|
101
|
+
font-size: 12px;
|
|
102
|
+
line-height: 1.5;
|
|
103
|
+
color: #d32f2f;
|
|
104
|
+
margin-left: 28px;
|
|
105
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
.checkboxgroup-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.checkboxgroup-label {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
line-height: 20px;
|
|
11
|
+
color: rgba(0, 0, 0, 0.9);
|
|
12
|
+
font-family: 'Open Sans', sans-serif;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.checkboxgroup-required {
|
|
17
|
+
color: #d32f2f;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.checkboxgroup-options {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.checkboxgroup-options--horizontal {
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.checkboxgroup-options--vertical {
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.checkboxgroup-description {
|
|
33
|
+
font-size: 12px;
|
|
34
|
+
line-height: 1.5;
|
|
35
|
+
color: rgba(0, 0, 0, 0.55);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.checkboxgroup-error {
|
|
39
|
+
font-size: 12px;
|
|
40
|
+
line-height: 1.5;
|
|
41
|
+
color: #d32f2f;
|
|
42
|
+
}
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
.radiogroup-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
flex-direction: column;
|
|
4
|
+
gap: 4px;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.radiogroup-label {
|
|
8
|
+
font-size: 14px;
|
|
9
|
+
font-weight: 600;
|
|
10
|
+
line-height: 20px;
|
|
11
|
+
color: rgba(0, 0, 0, 0.9);
|
|
12
|
+
font-family: 'Open Sans', sans-serif;
|
|
13
|
+
margin-bottom: 4px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.radiogroup-required {
|
|
17
|
+
color: #d32f2f;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.radiogroup-options {
|
|
21
|
+
display: flex;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.radiogroup-options--horizontal {
|
|
25
|
+
flex-direction: row;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.radiogroup-options--vertical {
|
|
29
|
+
flex-direction: column;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.radiogroup-option {
|
|
33
|
+
display: flex;
|
|
34
|
+
align-items: flex-start;
|
|
35
|
+
cursor: pointer;
|
|
36
|
+
position: relative;
|
|
37
|
+
user-select: none;
|
|
38
|
+
margin: 0;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.radiogroup-options--vertical .radiogroup-option--spaced {
|
|
42
|
+
margin-top: 4px;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.radiogroup-options--horizontal .radiogroup-option--spaced {
|
|
46
|
+
margin-left: 16px;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
.radiogroup-option--disabled {
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
color: rgba(0, 0, 0, 0.55);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.radiogroup-input {
|
|
55
|
+
border: 0;
|
|
56
|
+
clip: rect(0 0 0 0);
|
|
57
|
+
height: 1px;
|
|
58
|
+
margin: -1px;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
padding: 0;
|
|
61
|
+
position: absolute;
|
|
62
|
+
white-space: nowrap;
|
|
63
|
+
width: 1px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.radiogroup-radio-container {
|
|
67
|
+
display: flex;
|
|
68
|
+
align-items: center;
|
|
69
|
+
height: 20px;
|
|
70
|
+
margin-right: 8px;
|
|
71
|
+
flex-shrink: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.radiogroup-radio {
|
|
75
|
+
display: inline-block;
|
|
76
|
+
box-sizing: border-box;
|
|
77
|
+
width: 20px;
|
|
78
|
+
height: 20px;
|
|
79
|
+
background: #FFFFFF;
|
|
80
|
+
border-radius: 50%;
|
|
81
|
+
transition: all 150ms;
|
|
82
|
+
border: 1px solid rgba(0, 0, 0, 0.55);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.radiogroup-input:disabled ~ .radiogroup-radio-container .radiogroup-radio {
|
|
86
|
+
background: rgba(0, 0, 0, 0.1);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.radiogroup-radio::after {
|
|
90
|
+
content: "";
|
|
91
|
+
display: none;
|
|
92
|
+
width: 10px;
|
|
93
|
+
height: 10px;
|
|
94
|
+
border-radius: 50%;
|
|
95
|
+
background: rgba(0, 0, 0, 0.9);
|
|
96
|
+
margin: 4px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.radiogroup-input:checked ~ .radiogroup-radio-container .radiogroup-radio::after {
|
|
100
|
+
display: block;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.radiogroup-input:disabled:checked ~ .radiogroup-radio-container .radiogroup-radio::after {
|
|
104
|
+
background: rgba(0, 0, 0, 0.1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.radiogroup-input:focus ~ .radiogroup-radio-container .radiogroup-radio {
|
|
108
|
+
outline: 1px auto -webkit-focus-ring-color;
|
|
109
|
+
outline-offset: 3px;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.radiogroup-option-label {
|
|
113
|
+
display: block;
|
|
114
|
+
font-size: 14px;
|
|
115
|
+
line-height: 20px;
|
|
116
|
+
color: rgba(0, 0, 0, 0.9);
|
|
117
|
+
flex-shrink: 1;
|
|
118
|
+
flex-grow: 2;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.radiogroup-option--disabled .radiogroup-option-label {
|
|
122
|
+
color: rgba(0, 0, 0, 0.55);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
.radiogroup-description {
|
|
126
|
+
font-size: 12px;
|
|
127
|
+
line-height: 1.5;
|
|
128
|
+
color: rgba(0, 0, 0, 0.55);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.radiogroup-error {
|
|
132
|
+
font-size: 12px;
|
|
133
|
+
line-height: 1.5;
|
|
134
|
+
color: #d32f2f;
|
|
135
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.spinner-container {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: flex-start;
|
|
4
|
+
align-items: center;
|
|
5
|
+
column-gap: 4px;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
.spinner-icon {
|
|
9
|
+
width: 1em;
|
|
10
|
+
height: 1em;
|
|
11
|
+
animation: spin 2s linear infinite;
|
|
12
|
+
opacity: 1;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
@keyframes spin {
|
|
16
|
+
from {
|
|
17
|
+
transform: rotate(0deg);
|
|
18
|
+
}
|
|
19
|
+
to {
|
|
20
|
+
transform: rotate(360deg);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.statustag {
|
|
2
|
+
display: inline-flex;
|
|
3
|
+
align-items: center;
|
|
4
|
+
padding: 4px 12px;
|
|
5
|
+
font-size: 12px;
|
|
6
|
+
font-weight: 600;
|
|
7
|
+
line-height: 1.5;
|
|
8
|
+
border-radius: 12px;
|
|
9
|
+
font-family: 'Open Sans', sans-serif;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.statustag--success {
|
|
13
|
+
background-color: #e8f5e9;
|
|
14
|
+
color: #2e7d32;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.statustag--warning {
|
|
18
|
+
background-color: #fff3e0;
|
|
19
|
+
color: #e65100;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.statustag--error {
|
|
23
|
+
background-color: #ffebee;
|
|
24
|
+
color: #c62828;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.statustag--info {
|
|
28
|
+
background-color: #e3f2fd;
|
|
29
|
+
color: #1565c0;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.statustag--neutral {
|
|
33
|
+
background-color: rgba(0, 43, 62, 0.1);
|
|
34
|
+
color: rgba(0, 43, 62, 1);
|
|
35
|
+
}
|