@olenbetong/synergi-react 1.0.6 → 2.1.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/dist/esm/ob.react.css +221 -174
- package/dist/esm/ob.react.js +223 -104
- package/dist/esm/ob.react.min.css +1 -1
- package/dist/esm/ob.react.min.css.map +3 -3
- package/dist/esm/ob.react.min.js +1 -1
- package/dist/esm/ob.react.min.js.map +4 -4
- package/dist/iife/ob.react.css +221 -174
- package/dist/iife/ob.react.js +223 -104
- package/dist/iife/ob.react.min.css +1 -1
- package/dist/iife/ob.react.min.css.map +3 -3
- package/dist/iife/ob.react.min.js +1 -1
- package/dist/iife/ob.react.min.js.map +4 -4
- package/dist/styles/styles.css +1 -1
- package/dist/styles/styles.css.map +1 -1
- package/es/Checkbox/index.css +1 -1
- package/es/Checkbox/index.d.ts +11 -0
- package/es/Checkbox/index.js +7 -5
- package/es/ColorCard/index.d.ts +5 -2
- package/es/ColorCard/index.js +6 -0
- package/es/DateNavigator/index.d.ts +8 -3
- package/es/DateNavigator/index.js +99 -27
- package/es/LinkedCardList/index.css +1 -1
- package/es/LinkedCardList/index.d.ts +2 -2
- package/es/LinkedCardList/index.js +2 -2
- package/es/ProgressBar/index.css +1 -1
- package/es/SplitContainer/index.d.ts +3 -1
- package/es/SplitContainer/index.js +45 -14
- package/es/ValueToggleGroup/index.d.ts +18 -0
- package/es/ValueToggleGroup/index.js +12 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +8 -8
- package/es/index.js +3 -3
- package/package.json +88 -90
- package/src/Checkbox/index.scss +12 -5
- package/src/Checkbox/index.tsx +23 -6
- package/src/ColorCard/{index.scss → index.css} +50 -59
- package/src/ColorCard/index.tsx +21 -9
- package/src/DateNavigator/index.css +96 -0
- package/src/DateNavigator/index.tsx +128 -36
- package/src/LinkedCardList/index.scss +8 -1
- package/src/LinkedCardList/index.tsx +2 -2
- package/src/ProgressBar/index.scss +2 -2
- package/src/Spinner/{index.scss → index.css} +13 -10
- package/src/Spinner/index.tsx +1 -1
- package/src/SplitContainer/index.tsx +71 -15
- package/src/ValueToggleGroup/index.css +79 -0
- package/src/ValueToggleGroup/index.tsx +52 -0
- package/src/index.scss +4 -3
- package/src/index.ts +12 -12
- package/LICENSE +0 -21
- package/es/ColorCard/index.css +0 -1
- package/es/DateNavigator/index.css +0 -1
- package/es/Spinner/index.css +0 -1
- package/es/ValueToggle/index.css +0 -1
- package/es/ValueToggle/index.d.ts +0 -18
- package/es/ValueToggle/index.js +0 -38
- package/src/DateNavigator/index.scss +0 -60
- package/src/ValueToggle/index.scss +0 -50
- package/src/ValueToggle/index.tsx +0 -75
package/dist/esm/ob.react.css
CHANGED
|
@@ -62,12 +62,17 @@
|
|
|
62
62
|
.ObCheckbox-input:focus {
|
|
63
63
|
outline: none;
|
|
64
64
|
}
|
|
65
|
-
.
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
.ObCheckbox-label {
|
|
66
|
+
display: flex;
|
|
67
|
+
gap: 0.5rem;
|
|
68
|
+
align-items: center;
|
|
69
|
+
overflow: visible;
|
|
68
70
|
}
|
|
69
|
-
.ObCheckbox-
|
|
70
|
-
|
|
71
|
+
.ObCheckbox-root.Ob-reverse .ObCheckbox-label {
|
|
72
|
+
flex-direction: row-reverse;
|
|
73
|
+
}
|
|
74
|
+
.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label .ObCheckbox-box {
|
|
75
|
+
animation: animOn 600ms 1 forwards;
|
|
71
76
|
}
|
|
72
77
|
.ObCheckbox-input:checked:not(:disabled) + .ObCheckbox-label .ObCheckbox-box {
|
|
73
78
|
background: var(--bg-color-selected);
|
|
@@ -98,20 +103,19 @@
|
|
|
98
103
|
}
|
|
99
104
|
}
|
|
100
105
|
|
|
101
|
-
/* src/ColorCard/index.
|
|
106
|
+
/* src/ColorCard/index.css */
|
|
102
107
|
.ObColorCard-root {
|
|
103
108
|
--bg-color-border: black;
|
|
104
109
|
--bg-color-main: white;
|
|
105
110
|
--bg-size: 0.75rem;
|
|
106
111
|
--card-color: rgb(0, 0, 0);
|
|
112
|
+
display: flex;
|
|
107
113
|
align-items: stretch;
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
white 0.75rem,
|
|
114
|
-
white);
|
|
114
|
+
min-height: 10rem;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
border-radius: 0.25rem;
|
|
117
|
+
box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15), 0 1px 6px rgba(0, 0, 0, 0.25);
|
|
118
|
+
color: #666;
|
|
115
119
|
background-image:
|
|
116
120
|
linear-gradient(
|
|
117
121
|
to right,
|
|
@@ -119,11 +123,6 @@
|
|
|
119
123
|
var(--bg-color-border) var(--bg-size),
|
|
120
124
|
var(--bg-color-main) var(--bg-size),
|
|
121
125
|
var(--bg-color-main));
|
|
122
|
-
border-radius: 0.25rem;
|
|
123
|
-
box-shadow: 0 1px 12px rgba(0, 0, 0, 0.15), 0 1px 6px rgba(0, 0, 0, 0.25);
|
|
124
|
-
color: #666;
|
|
125
|
-
cursor: pointer;
|
|
126
|
-
display: flex;
|
|
127
126
|
font-family:
|
|
128
127
|
"Variable Bahnschrift",
|
|
129
128
|
"Bahnschrift",
|
|
@@ -139,34 +138,30 @@
|
|
|
139
138
|
"Segoe UI Emoji",
|
|
140
139
|
"Segoe UI Symbol";
|
|
141
140
|
font-size: 1rem;
|
|
142
|
-
min-height: 10rem;
|
|
143
|
-
overflow: hidden;
|
|
144
141
|
transition: all ease-in-out 300ms;
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
@media screen and (min-width: 48rem) {
|
|
169
|
-
.ObColorCard-root {
|
|
142
|
+
cursor: pointer;
|
|
143
|
+
&:nth-of-type(5n+1) {
|
|
144
|
+
--bg-color-border: rgb(178, 108, 190);
|
|
145
|
+
}
|
|
146
|
+
&:nth-of-type(5n+2) {
|
|
147
|
+
--bg-color-border: rgb(79, 164, 61);
|
|
148
|
+
}
|
|
149
|
+
&:nth-of-type(5n+3) {
|
|
150
|
+
--bg-color-border: rgb(246, 170, 23);
|
|
151
|
+
}
|
|
152
|
+
&:nth-of-type(5n+4) {
|
|
153
|
+
--bg-color-border: rgb(218, 93, 83);
|
|
154
|
+
}
|
|
155
|
+
&:nth-of-type(5n+5) {
|
|
156
|
+
--bg-color-border: rgb(23, 162, 184);
|
|
157
|
+
}
|
|
158
|
+
&:hover,
|
|
159
|
+
&:focus {
|
|
160
|
+
--bg-color-main: #f5f5f5;
|
|
161
|
+
box-shadow: 0 3px 18px rgba(0, 0, 0, 0.15), 0 3px 12px rgba(0, 0, 0, 0.25);
|
|
162
|
+
text-decoration: none;
|
|
163
|
+
}
|
|
164
|
+
@media screen and (min-width: 48rem) {
|
|
170
165
|
font-size: 1.2rem;
|
|
171
166
|
}
|
|
172
167
|
}
|
|
@@ -176,122 +171,119 @@
|
|
|
176
171
|
flex-direction: column;
|
|
177
172
|
justify-content: space-between;
|
|
178
173
|
margin: 1rem 0;
|
|
179
|
-
overflow: hidden;
|
|
180
174
|
padding: 0.5rem 1.5rem 0.5rem 1rem;
|
|
175
|
+
overflow: hidden;
|
|
181
176
|
text-overflow: ellipsis;
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
}
|
|
192
|
-
@media screen and (min-width: 48rem) {
|
|
193
|
-
.ObColorCard-column.ObColorCard-minor {
|
|
194
|
-
flex: 0 0 8rem;
|
|
177
|
+
&:first-child {
|
|
178
|
+
margin-left: var(--bg-size, 0.75rem);
|
|
179
|
+
}
|
|
180
|
+
&.ObColorCard-minor {
|
|
181
|
+
flex: 0 0 4rem;
|
|
182
|
+
border-right: 1px solid #e3e3e3;
|
|
183
|
+
transition: margin ease-in-out 300ms;
|
|
184
|
+
@media screen and (min-width: 48rem) {
|
|
185
|
+
flex: 0 0 8rem;
|
|
186
|
+
}
|
|
195
187
|
}
|
|
196
188
|
}
|
|
197
189
|
.ObColorCard-detailLabel {
|
|
198
|
-
color: #
|
|
190
|
+
color: #696969;
|
|
199
191
|
font-size: 0.8rem;
|
|
200
192
|
text-transform: uppercase;
|
|
201
193
|
}
|
|
202
|
-
.ObColorCard-detail
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
194
|
+
.ObColorCard-detail {
|
|
195
|
+
&:not(:last-child) {
|
|
196
|
+
margin-right: 1.5rem;
|
|
197
|
+
}
|
|
198
|
+
&.ObColorCard-primary,
|
|
199
|
+
&.ObColorCard-primary .ObColorCard-detailValue {
|
|
200
|
+
font-size: 1.25rem;
|
|
201
|
+
font-weight: 300;
|
|
202
|
+
}
|
|
203
|
+
&.ObColorCard-primary .ObColorCard-detailValue {
|
|
204
|
+
color: unset;
|
|
205
|
+
}
|
|
206
|
+
@media screen and (min-width: 48rem) {
|
|
215
207
|
font-size: 1rem;
|
|
216
208
|
}
|
|
217
209
|
}
|
|
218
210
|
.ObColorCard-detailValue {
|
|
219
|
-
color: #
|
|
211
|
+
color: #555555;
|
|
220
212
|
}
|
|
221
|
-
.ObColorCard-
|
|
222
|
-
|
|
223
|
-
|
|
213
|
+
.ObColorCard-stepList {
|
|
214
|
+
display: flex;
|
|
215
|
+
flex-direction: column;
|
|
216
|
+
gap: 1rem;
|
|
224
217
|
}
|
|
225
|
-
.ObColorCard-
|
|
226
|
-
|
|
218
|
+
.ObColorCard-step {
|
|
219
|
+
position: relative;
|
|
220
|
+
text-box-trim: trim-both;
|
|
221
|
+
display: flex;
|
|
222
|
+
align-items: flex-start;
|
|
223
|
+
gap: 0.5rem;
|
|
227
224
|
}
|
|
228
|
-
.ObColorCard-
|
|
225
|
+
.ObColorCard-step::before {
|
|
226
|
+
flex: 0.6em 0 0;
|
|
229
227
|
content: "";
|
|
230
|
-
position:
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
left: 0.25rem;
|
|
235
|
-
top: 0.5rem;
|
|
236
|
-
z-index: 0;
|
|
237
|
-
}
|
|
238
|
-
.ObColorCard-label::before {
|
|
228
|
+
position: relative;
|
|
229
|
+
top: 0.25em;
|
|
230
|
+
width: 0.6em;
|
|
231
|
+
height: 0.6em;
|
|
239
232
|
background: white;
|
|
240
|
-
border:
|
|
241
|
-
border: 0.2rem solid var(--bg-color-border);
|
|
233
|
+
border: 2px solid var(--bg-color-border, #999);
|
|
242
234
|
border-radius: 50%;
|
|
235
|
+
box-sizing: border-box;
|
|
236
|
+
z-index: 1;
|
|
237
|
+
}
|
|
238
|
+
.ObColorCard-step:not(:last-child)::after {
|
|
243
239
|
content: "";
|
|
244
|
-
display: block;
|
|
245
|
-
height: 0.75rem;
|
|
246
|
-
left: 0;
|
|
247
240
|
position: absolute;
|
|
248
|
-
top: 0.
|
|
249
|
-
|
|
250
|
-
|
|
241
|
+
top: calc(0.25em + 0.6em + 0.15em);
|
|
242
|
+
left: calc(0.3em - 1px);
|
|
243
|
+
height: calc(100% - 0.95em + 1rem + 0.0625em);
|
|
244
|
+
border-left: 2px dotted #999;
|
|
245
|
+
z-index: 0;
|
|
251
246
|
}
|
|
252
247
|
|
|
253
|
-
/* src/DateNavigator/index.
|
|
248
|
+
/* src/DateNavigator/index.css */
|
|
249
|
+
:root {
|
|
250
|
+
--ob-datenavigator-height: 3rem;
|
|
251
|
+
}
|
|
254
252
|
.ObDateNavigator-icon {
|
|
255
253
|
display: inline-block;
|
|
256
|
-
|
|
257
|
-
.
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
254
|
+
svg {
|
|
255
|
+
width: 0.625em;
|
|
256
|
+
position: relative;
|
|
257
|
+
top: -1px;
|
|
258
|
+
}
|
|
261
259
|
}
|
|
262
260
|
.ObDateNavigator-root {
|
|
263
261
|
background-color: hsl(220, 20%, 96%);
|
|
264
262
|
background-color: var(--block-header-color-bg);
|
|
265
263
|
display: flex;
|
|
266
264
|
font-size: 1rem;
|
|
265
|
+
outline: none;
|
|
266
|
+
&:focus-visible {
|
|
267
|
+
outline: 2px solid var(--brand-dark, #336699);
|
|
268
|
+
outline-offset: 2px;
|
|
269
|
+
}
|
|
267
270
|
}
|
|
268
271
|
.ObDateNavigator-arrow {
|
|
269
|
-
background: none;
|
|
270
|
-
border: 0;
|
|
271
|
-
color: inherit;
|
|
272
|
-
font: inherit;
|
|
273
|
-
line-height: normal;
|
|
274
|
-
overflow: visible;
|
|
275
|
-
padding: 0;
|
|
276
|
-
-webkit-appearance: button;
|
|
277
|
-
-webkit-user-select: none;
|
|
278
|
-
-moz-user-select: none;
|
|
279
|
-
-ms-user-select: none;
|
|
280
272
|
display: flex;
|
|
281
273
|
align-items: center;
|
|
282
|
-
flex: 0 0
|
|
274
|
+
flex: 0 0 var(--ob-datenavigator-height);
|
|
283
275
|
justify-content: center;
|
|
284
|
-
height:
|
|
276
|
+
height: var(--ob-datenavigator-height);
|
|
285
277
|
cursor: pointer;
|
|
286
278
|
text-align: center;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
279
|
+
&:hover:not(:disabled) {
|
|
280
|
+
background-color: #e3e3e3;
|
|
281
|
+
background-color: var(--block-header-button-hover);
|
|
282
|
+
}
|
|
283
|
+
&:disabled {
|
|
284
|
+
cursor: not-allowed;
|
|
285
|
+
color: rgba(0 0 0 / 0.2);
|
|
286
|
+
}
|
|
295
287
|
}
|
|
296
288
|
.ObDateNavigator-arrowLeft {
|
|
297
289
|
border-right: 1px solid #dddddd;
|
|
@@ -307,11 +299,36 @@
|
|
|
307
299
|
flex-direction: column;
|
|
308
300
|
justify-content: center;
|
|
309
301
|
order: 2;
|
|
310
|
-
height:
|
|
302
|
+
height: var(--ob-datenavigator-height);
|
|
311
303
|
text-align: center;
|
|
312
304
|
}
|
|
305
|
+
.ObDateNavigator-today {
|
|
306
|
+
order: 4;
|
|
307
|
+
padding: 0 1rem;
|
|
308
|
+
height: var(--ob-datenavigator-height);
|
|
309
|
+
display: flex;
|
|
310
|
+
align-items: center;
|
|
311
|
+
justify-content: center;
|
|
312
|
+
font-size: 0.875rem;
|
|
313
|
+
color: var(--brand-dark, #336699);
|
|
314
|
+
text-transform: uppercase;
|
|
315
|
+
cursor: pointer;
|
|
316
|
+
text-wrap: nowrap;
|
|
317
|
+
border-left: 1px solid #dddddd;
|
|
318
|
+
&:hover:not(:disabled) {
|
|
319
|
+
background-color: var(--block-header-button-hover);
|
|
320
|
+
}
|
|
321
|
+
&:focus-visible {
|
|
322
|
+
outline: 2px solid var(--brand-dark, #336699);
|
|
323
|
+
outline-offset: 2px;
|
|
324
|
+
}
|
|
325
|
+
}
|
|
313
326
|
|
|
314
327
|
/* src/LinkedCardList/index.scss */
|
|
328
|
+
:root {
|
|
329
|
+
--ob-linked-list-bullet-size: 0.7em;
|
|
330
|
+
--ob-linked-list-line-width: 0.2em;
|
|
331
|
+
}
|
|
315
332
|
.ObLinkedList-root {
|
|
316
333
|
list-style-type: none;
|
|
317
334
|
margin-left: 0;
|
|
@@ -348,9 +365,10 @@
|
|
|
348
365
|
position: absolute;
|
|
349
366
|
left: 0;
|
|
350
367
|
top: 50%;
|
|
351
|
-
transform: translate(-
|
|
368
|
+
transform: translate(calc(-1 * var(--ob-linked-list-bullet-size) / 2 + var(--ob-linked-list-line-width) / 2), -50%);
|
|
352
369
|
}
|
|
353
370
|
.ObLinkedList-card {
|
|
371
|
+
display: block;
|
|
354
372
|
background: white;
|
|
355
373
|
border: 1px solid;
|
|
356
374
|
border-color: #e5e6e9 #dfe0e4 #d0d1d5;
|
|
@@ -509,12 +527,12 @@
|
|
|
509
527
|
rgba(0, 0, 0, 0.2)),
|
|
510
528
|
linear-gradient(
|
|
511
529
|
left,
|
|
512
|
-
var(--brand-primary
|
|
513
|
-
var(--brand-light
|
|
530
|
+
var(--brand-primary),
|
|
531
|
+
var(--brand-light));
|
|
514
532
|
background-image:
|
|
515
533
|
-webkit-linear-gradient(135deg, transparent, transparent 33%, rgba(0, 0, 0, 0.1) 33%, rgba(0, 0, 0, 0.1) 66%, transparent 66%),
|
|
516
534
|
-webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
|
|
517
|
-
-webkit-linear-gradient(left, var(--brand-primary),
|
|
535
|
+
-webkit-linear-gradient(left, var(--brand-primary), var(--brand-light));
|
|
518
536
|
background-size:
|
|
519
537
|
35px 20px,
|
|
520
538
|
100% 100%,
|
|
@@ -606,7 +624,11 @@
|
|
|
606
624
|
visibility: visible;
|
|
607
625
|
}
|
|
608
626
|
|
|
609
|
-
/* src/Spinner/index.
|
|
627
|
+
/* src/Spinner/index.css */
|
|
628
|
+
.ObSpinner-wrapper,
|
|
629
|
+
.ObSpinner-fullPage {
|
|
630
|
+
--bullet-size: 0.5em;
|
|
631
|
+
}
|
|
610
632
|
.ObSpinner-root {
|
|
611
633
|
display: inline-block;
|
|
612
634
|
}
|
|
@@ -619,34 +641,34 @@
|
|
|
619
641
|
}
|
|
620
642
|
.ObSpinner-spinner {
|
|
621
643
|
display: inline-block;
|
|
622
|
-
height:
|
|
644
|
+
height: calc(var(--bullet-size) * 1.5);
|
|
623
645
|
position: relative;
|
|
624
|
-
width:
|
|
646
|
+
width: calc(var(--bullet-size) * 5);
|
|
625
647
|
}
|
|
626
648
|
.ObSpinner-bullet {
|
|
627
649
|
animation-timing-function: cubic-bezier(0, 1, 1, 0);
|
|
628
650
|
background: #666;
|
|
629
651
|
border-radius: 50%;
|
|
630
|
-
height:
|
|
652
|
+
height: var(--bullet-size);
|
|
631
653
|
position: absolute;
|
|
632
654
|
top: 0.2rem;
|
|
633
|
-
width:
|
|
634
|
-
|
|
635
|
-
.
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
.
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
.
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
.
|
|
648
|
-
|
|
649
|
-
|
|
655
|
+
width: var(--bullet-size);
|
|
656
|
+
&:nth-child(1) {
|
|
657
|
+
animation: scaleAnimation 0.6s infinite ease-in-out;
|
|
658
|
+
left: calc(var(--bullet-size) * 0.5);
|
|
659
|
+
}
|
|
660
|
+
&:nth-child(2) {
|
|
661
|
+
animation: translateAnimation 0.6s infinite ease-in-out;
|
|
662
|
+
left: calc(var(--bullet-size) * 0.5);
|
|
663
|
+
}
|
|
664
|
+
&:nth-child(3) {
|
|
665
|
+
animation: translateAnimation 0.6s infinite ease-in-out;
|
|
666
|
+
left: calc(var(--bullet-size) * 2.4);
|
|
667
|
+
}
|
|
668
|
+
&:nth-child(4) {
|
|
669
|
+
animation: scaleAnimation 0.6s infinite ease-in-out reverse;
|
|
670
|
+
left: calc(var(--bullet-size) * 4);
|
|
671
|
+
}
|
|
650
672
|
}
|
|
651
673
|
@keyframes scaleAnimation {
|
|
652
674
|
from {
|
|
@@ -661,7 +683,7 @@
|
|
|
661
683
|
transform: translate(0, 0);
|
|
662
684
|
}
|
|
663
685
|
to {
|
|
664
|
-
transform: translate(
|
|
686
|
+
transform: translate(calc(var(--bullet-size) * 1.65), 0);
|
|
665
687
|
}
|
|
666
688
|
}
|
|
667
689
|
|
|
@@ -701,45 +723,70 @@
|
|
|
701
723
|
pointer-events: none;
|
|
702
724
|
}
|
|
703
725
|
|
|
704
|
-
/* src/
|
|
705
|
-
.
|
|
726
|
+
/* src/ValueToggleGroup/index.css */
|
|
727
|
+
.ObValueToggleGroup {
|
|
728
|
+
padding: 0.25rem;
|
|
729
|
+
border: 2px solid rgb(0 0 0 / 0.2);
|
|
730
|
+
border-radius: 4px;
|
|
731
|
+
display: flex;
|
|
732
|
+
gap: 0.25rem;
|
|
733
|
+
flex-wrap: wrap;
|
|
734
|
+
&.vertical {
|
|
735
|
+
flex-direction: column;
|
|
736
|
+
align-items: center;
|
|
737
|
+
& .ObValueToggleOption {
|
|
738
|
+
width: 100%;
|
|
739
|
+
& .ObValueToggleLabel {
|
|
740
|
+
width: 100%;
|
|
741
|
+
text-align: center;
|
|
742
|
+
}
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
&:focus-within {
|
|
746
|
+
border-color: rgb(0 0 0 / 0.8);
|
|
747
|
+
}
|
|
748
|
+
}
|
|
749
|
+
.ObValueToggleOption {
|
|
706
750
|
display: flex;
|
|
707
751
|
align-items: center;
|
|
752
|
+
margin: 0;
|
|
753
|
+
position: relative;
|
|
708
754
|
}
|
|
709
|
-
.
|
|
710
|
-
|
|
755
|
+
.ObValueToggleOption input {
|
|
756
|
+
position: absolute;
|
|
757
|
+
width: 1px;
|
|
758
|
+
height: 1px;
|
|
759
|
+
padding: 0;
|
|
760
|
+
margin: -1px;
|
|
761
|
+
overflow: hidden;
|
|
762
|
+
clip: rect(0, 0, 0, 0);
|
|
763
|
+
border: 0;
|
|
711
764
|
}
|
|
712
|
-
.
|
|
713
|
-
cursor: pointer;
|
|
765
|
+
.ObValueToggleLabel {
|
|
714
766
|
font-size: 0.8em;
|
|
715
767
|
margin: 0 0.2em;
|
|
716
768
|
padding: 0.3em 0.5em;
|
|
717
769
|
text-transform: uppercase;
|
|
770
|
+
transition: background 0.2s ease, color 0.2s ease;
|
|
771
|
+
border-radius: 4px;
|
|
718
772
|
}
|
|
719
|
-
.
|
|
773
|
+
.ObValueToggleOption:hover input:not(:disabled) + .ObValueToggleLabel {
|
|
774
|
+
cursor: pointer;
|
|
720
775
|
background: #ccc;
|
|
721
776
|
}
|
|
722
|
-
.
|
|
777
|
+
.ObValueToggleOption input:checked + .ObValueToggleLabel {
|
|
723
778
|
--color-bg: var(--brand-dark);
|
|
724
|
-
background-color: #666;
|
|
725
779
|
background-color: var(--color-bg);
|
|
726
|
-
cursor: default;
|
|
727
780
|
color: white;
|
|
781
|
+
cursor: default;
|
|
728
782
|
}
|
|
729
|
-
.
|
|
783
|
+
.ObValueToggleOption input:disabled + .ObValueToggleLabel {
|
|
784
|
+
color: rgb(0 0 0 / 0.5);
|
|
785
|
+
}
|
|
786
|
+
.ObValueToggleOption input:checked:focus-visible + .ObValueToggleLabel {
|
|
730
787
|
--color-bg: var(--brand-light);
|
|
788
|
+
outline: 2px solid var(--brand-light);
|
|
731
789
|
}
|
|
732
|
-
.
|
|
733
|
-
background-color: #666;
|
|
790
|
+
.ObValueToggleOption input:checked:hover + .ObValueToggleLabel {
|
|
734
791
|
background-color: var(--color-bg);
|
|
735
792
|
}
|
|
736
|
-
.ObValueToggle-input {
|
|
737
|
-
position: absolute;
|
|
738
|
-
width: 1px;
|
|
739
|
-
height: 1px;
|
|
740
|
-
padding: 0;
|
|
741
|
-
margin: -1px;
|
|
742
|
-
overflow: hidden;
|
|
743
|
-
clip: rect(0, 0, 0, 0);
|
|
744
|
-
border: 0;
|
|
745
|
-
}
|