@rolemodel/optics 2.1.0 → 2.1.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 (45) hide show
  1. package/.yarn/install-state.gz +0 -0
  2. package/dist/LICENSE +21 -0
  3. package/dist/README.md +78 -0
  4. package/dist/css/optics.css +4963 -9
  5. package/dist/css/optics.min.css +1 -4970
  6. package/dist/package.json +87 -0
  7. package/package.json +6 -4
  8. package/postcss.config.js +6 -3
  9. package/dist/css/components/accordion.css +0 -66
  10. package/dist/css/components/alert.css +0 -171
  11. package/dist/css/components/avatar.css +0 -95
  12. package/dist/css/components/badge.css +0 -73
  13. package/dist/css/components/breadcrumbs.css +0 -37
  14. package/dist/css/components/button.css +0 -273
  15. package/dist/css/components/button_group.css +0 -47
  16. package/dist/css/components/card.css +0 -62
  17. package/dist/css/components/confirm-dialog.css +0 -80
  18. package/dist/css/components/divider.css +0 -55
  19. package/dist/css/components/form.css +0 -360
  20. package/dist/css/components/icon.css +0 -121
  21. package/dist/css/components/index.css +0 -24
  22. package/dist/css/components/modal.css +0 -149
  23. package/dist/css/components/navbar.css +0 -60
  24. package/dist/css/components/pagination.css +0 -24
  25. package/dist/css/components/side_panel.css +0 -90
  26. package/dist/css/components/sidebar.css +0 -138
  27. package/dist/css/components/spinner.css +0 -52
  28. package/dist/css/components/switch.css +0 -107
  29. package/dist/css/components/tab.css +0 -76
  30. package/dist/css/components/table.css +0 -133
  31. package/dist/css/components/tag.css +0 -168
  32. package/dist/css/components/text_pair.css +0 -55
  33. package/dist/css/components/tooltip.css +0 -134
  34. package/dist/css/core/base.css +0 -95
  35. package/dist/css/core/fonts/icon_fonts.css +0 -8
  36. package/dist/css/core/fonts/index.css +0 -8
  37. package/dist/css/core/fonts/text_fonts.css +0 -16
  38. package/dist/css/core/layout.css +0 -43
  39. package/dist/css/core/tokens/base_tokens.css +0 -338
  40. package/dist/css/core/tokens/index.css +0 -2
  41. package/dist/css/core/tokens/scale_color_tokens.css +0 -1498
  42. package/dist/css/core/utilities.css +0 -429
  43. package/dist/css/recipes/16six-sidebar.css +0 -63
  44. package/dist/css/recipes/aligned-header.css +0 -16
  45. package/dist/css/recipes/domains-sidebar.css +0 -40
@@ -1,429 +0,0 @@
1
- /* Container Properties */
2
-
3
- .container {
4
- width: 100%;
5
- max-width: var(--op-breakpoint-medium);
6
- padding: 0 var(--op-space-large);
7
- margin: 0 auto;
8
- }
9
-
10
- .container--sm {
11
- max-width: var(--op-breakpoint-small);
12
- }
13
-
14
- .container--md-padding {
15
- padding: 0 var(--op-space-medium);
16
- }
17
-
18
- .container--sm-padding {
19
- padding: 0 var(--op-space-small);
20
- }
21
-
22
- .container--xs {
23
- max-width: var(--op-breakpoint-x-small);
24
- }
25
-
26
- /* Width Properties */
27
-
28
- .full-width {
29
- width: 100%;
30
- }
31
-
32
- .half-width {
33
- width: 50%;
34
- }
35
-
36
- .four-fifths-width {
37
- width: calc(100% * 4 / 5);
38
- }
39
-
40
- .three-fifths-width {
41
- width: calc(100% * 3 / 5);
42
- }
43
-
44
- .two-fifths-width {
45
- width: calc(100% * 2 / 5);
46
- }
47
-
48
- .one-fifth-width {
49
- width: calc(100% * 1 / 5);
50
- }
51
-
52
- .three-quarters-width {
53
- width: calc(100% * 3 / 4);
54
- }
55
-
56
- .one-quarter-width {
57
- width: calc(100% * 1 / 4);
58
- }
59
-
60
- .two-thirds-width {
61
- width: calc(100% * 2 / 3);
62
- }
63
-
64
- .one-third-width {
65
- width: calc(100% * 1 / 3);
66
- }
67
-
68
- /* Flex Properties */
69
-
70
- .flex {
71
- display: flex;
72
- }
73
-
74
- .flex-col {
75
- flex-direction: column;
76
- }
77
-
78
- .flex-row {
79
- flex-direction: row;
80
- }
81
-
82
- .flex-wrap {
83
- flex-wrap: wrap;
84
- }
85
-
86
- .flex-no-wrap {
87
- flex-wrap: nowrap;
88
- }
89
-
90
- .flex-grow-1 {
91
- flex-grow: 1;
92
- }
93
-
94
- /* Gap Properties */
95
- .gap-xxs {
96
- gap: var(--op-space-2x-small);
97
-
98
- --op-gap: var(--op-space-2x-small);
99
- }
100
-
101
- .gap-xs {
102
- gap: var(--op-space-x-small);
103
-
104
- --op-gap: var(--op-space-x-small);
105
- }
106
-
107
- .gap-sm {
108
- gap: var(--op-space-small);
109
-
110
- --op-gap: var(--op-space-small);
111
- }
112
-
113
- .gap-md {
114
- gap: var(--op-space-medium);
115
-
116
- --op-gap: var(--op-space-medium);
117
- }
118
-
119
- .gap-lg {
120
- gap: var(--op-space-large);
121
-
122
- --op-gap: var(--op-space-large);
123
- }
124
-
125
- .gap-xl {
126
- gap: var(--op-space-x-large);
127
-
128
- --op-gap: var(--op-space-x-large);
129
- }
130
-
131
- /* Justify Content */
132
-
133
- .justify-start {
134
- justify-content: flex-start;
135
- }
136
-
137
- .justify-center {
138
- justify-content: center;
139
- }
140
-
141
- .justify-end {
142
- justify-content: flex-end;
143
- }
144
-
145
- .justify-between {
146
- justify-content: space-between;
147
- }
148
-
149
- .justify-around {
150
- justify-content: space-around;
151
- }
152
-
153
- /* Align Items */
154
-
155
- .items-stretch {
156
- align-items: stretch;
157
- }
158
-
159
- .items-start {
160
- align-items: flex-start;
161
- }
162
-
163
- .items-center {
164
- align-items: center;
165
- }
166
-
167
- .items-end {
168
- align-items: flex-end;
169
- }
170
-
171
- .items-baseline {
172
- align-items: baseline;
173
- }
174
-
175
- /* Align Self */
176
-
177
- .self-auto {
178
- align-self: auto;
179
- }
180
-
181
- .self-start {
182
- align-self: flex-start;
183
- }
184
-
185
- .self-center {
186
- align-self: center;
187
- }
188
-
189
- .self-end {
190
- align-self: flex-end;
191
- }
192
-
193
- .self-stretch {
194
- align-self: stretch;
195
- }
196
-
197
- .self-baseline {
198
- align-self: baseline;
199
- }
200
-
201
- /* Text Alignment */
202
-
203
- .text-left {
204
- text-align: left;
205
- }
206
-
207
- .text-center {
208
- text-align: center;
209
- }
210
-
211
- .text-right {
212
- text-align: right;
213
- }
214
-
215
- .text-justify {
216
- text-align: justify;
217
- }
218
-
219
- /* Box Margin */
220
-
221
- .margin-xl {
222
- margin: var(--op-space-x-large);
223
- }
224
-
225
- .margin-lg {
226
- margin: var(--op-space-large);
227
- }
228
-
229
- .margin-md {
230
- margin: var(--op-space-medium);
231
- }
232
-
233
- .margin-sm {
234
- margin: var(--op-space-small);
235
- }
236
-
237
- .margin-xs {
238
- margin: var(--op-space-x-small);
239
- }
240
-
241
- .margin-none {
242
- margin: 0;
243
- }
244
-
245
- .margin-auto {
246
- margin: auto;
247
- }
248
-
249
- /* Vertical Margin */
250
-
251
- .margin-y-xl {
252
- margin-top: var(--op-space-x-large);
253
- margin-bottom: var(--op-space-x-large);
254
- }
255
-
256
- .margin-y-lg {
257
- margin-top: var(--op-space-large);
258
- margin-bottom: var(--op-space-large);
259
- }
260
-
261
- .margin-y-md {
262
- margin-top: var(--op-space-medium);
263
- margin-bottom: var(--op-space-medium);
264
- }
265
-
266
- .margin-y-sm {
267
- margin-top: var(--op-space-small);
268
- margin-bottom: var(--op-space-small);
269
- }
270
-
271
- .margin-y-xs {
272
- margin-top: var(--op-space-x-small);
273
- margin-bottom: var(--op-space-x-small);
274
- }
275
-
276
- .margin-y-none {
277
- margin-top: 0;
278
- margin-bottom: 0;
279
- }
280
-
281
- /* Horizontal Margin */
282
-
283
- .margin-x-xl {
284
- margin-right: var(--op-space-x-large);
285
- margin-left: var(--op-space-x-large);
286
- }
287
-
288
- .margin-x-lg {
289
- margin-right: var(--op-space-large);
290
- margin-left: var(--op-space-large);
291
- }
292
-
293
- .margin-x-md {
294
- margin-right: var(--op-space-medium);
295
- margin-left: var(--op-space-medium);
296
- }
297
-
298
- .margin-x-sm {
299
- margin-right: var(--op-space-small);
300
- margin-left: var(--op-space-small);
301
- }
302
-
303
- .margin-x-xs {
304
- margin-right: var(--op-space-x-small);
305
- margin-left: var(--op-space-x-small);
306
- }
307
-
308
- .margin-x-none {
309
- margin-right: 0;
310
- margin-left: 0;
311
- }
312
-
313
- /* Top Margin */
314
-
315
- .margin-top-xl {
316
- margin-top: var(--op-space-x-large);
317
- }
318
-
319
- .margin-top-lg {
320
- margin-top: var(--op-space-large);
321
- }
322
-
323
- .margin-top-md {
324
- margin-top: var(--op-space-medium);
325
- }
326
-
327
- .margin-top-sm {
328
- margin-top: var(--op-space-small);
329
- }
330
-
331
- .margin-top-xs {
332
- margin-top: var(--op-space-x-small);
333
- }
334
-
335
- .margin-top-none {
336
- margin-top: 0;
337
- }
338
-
339
- /* Bottom Margin */
340
-
341
- .margin-bottom-xl {
342
- margin-bottom: var(--op-space-x-large);
343
- }
344
-
345
- .margin-bottom-lg {
346
- margin-bottom: var(--op-space-large);
347
- }
348
-
349
- .margin-bottom-md {
350
- margin-bottom: var(--op-space-medium);
351
- }
352
-
353
- .margin-bottom-sm {
354
- margin-bottom: var(--op-space-small);
355
- }
356
-
357
- .margin-bottom-xs {
358
- margin-bottom: var(--op-space-x-small);
359
- }
360
-
361
- .margin-bottom-none {
362
- margin-bottom: 0;
363
- }
364
-
365
- /* Right Margin */
366
-
367
- .margin-right-xl {
368
- margin-right: var(--op-space-x-large);
369
- }
370
-
371
- .margin-right-lg {
372
- margin-right: var(--op-space-large);
373
- }
374
-
375
- .margin-right-md {
376
- margin-right: var(--op-space-medium);
377
- }
378
-
379
- .margin-right-sm {
380
- margin-right: var(--op-space-small);
381
- }
382
-
383
- .margin-right-xs {
384
- margin-right: var(--op-space-x-small);
385
- }
386
-
387
- .margin-right-none {
388
- margin-left: 0;
389
- }
390
-
391
- /* Left Margin */
392
-
393
- .margin-left-xl {
394
- margin-left: var(--op-space-x-large);
395
- }
396
-
397
- .margin-left-lg {
398
- margin-left: var(--op-space-large);
399
- }
400
-
401
- .margin-left-md {
402
- margin-left: var(--op-space-medium);
403
- }
404
-
405
- .margin-left-sm {
406
- margin-left: var(--op-space-small);
407
- }
408
-
409
- .margin-left-xs {
410
- margin-left: var(--op-space-x-small);
411
- }
412
-
413
- .margin-left-none {
414
- margin-left: 0;
415
- }
416
-
417
- /*
418
- Accessibility
419
- Use the following class to hide accessibility text that is needed for screen readers but needs to be hidden from regular users.
420
- https: //snook.ca/archives/html_and_css/hiding-content-for-accessibility
421
- */
422
- .sr-only {
423
- position: absolute !important;
424
- overflow: hidden;
425
- width: 1px;
426
- height: 1px;
427
- clip: rect(1px 1px 1px 1px);
428
- clip: rect(1px, 1px, 1px, 1px);
429
- }
@@ -1,63 +0,0 @@
1
- /* 16Six Sidebar Example */
2
-
3
- .icon--rotated-135 {
4
- rotate: 135deg;
5
- }
6
-
7
- .icon--rotated-90 {
8
- rotate: 90deg;
9
- }
10
-
11
- .sidebar {
12
- .sidebar__brand {
13
- justify-content: center;
14
-
15
- .sidebar__brand-label {
16
- display: none;
17
- }
18
- }
19
-
20
- &.sidebar--16six {
21
- --_op-sidebar-background-color: hsl(256deg 66% 15%);
22
- --_op-sidebar-text-color: hsl(26deg 100% 95%);
23
- --_op-sidebar-border-color: hsl(26deg 100% 95%);
24
- --_op-sidebar-rail-width: 6.4rem;
25
- --_op-sidebar-drawer-width: 22.4rem;
26
- --_op-sidebar-drawer-brand-width: calc(var(--op-space-3x-large) + (2 * var(--op-space-medium)));
27
- --_op-sidebar-brand-spacing: var(--op-space-medium) var(--op-space-x-small);
28
- --_op-sidebar-content-item-spacing: var(--op-space-x-small);
29
- --_op-sidebar-spacing: 0 0 var(--op-space-x-small);
30
-
31
- .sidebar__brand {
32
- display: flex;
33
- margin: 0;
34
- color: inherit;
35
- gap: var(--op-space-medium);
36
- text-decoration: none;
37
-
38
- svg {
39
- width: var(--op-space-3x-large);
40
- height: var(--op-space-3x-large);
41
- }
42
-
43
- .sidebar__brand-label {
44
- display: flex;
45
- flex-direction: column;
46
- font-size: var(--op-font-small);
47
- }
48
- }
49
-
50
- .btn {
51
- &.btn--no-border {
52
- background-color: transparent;
53
- box-shadow: none;
54
- color: var(--_op-sidebar-text-color);
55
-
56
- &.btn--active,
57
- &:hover {
58
- background-color: hsl(256deg 23% 32%);
59
- }
60
- }
61
- }
62
- }
63
- }
@@ -1,16 +0,0 @@
1
- .aligned-header {
2
- /* Public API (allowed to be overridden) */
3
- --_op-line-height: var(--op-line-height-base);
4
- --_op-font-size: var(--op-font-4x-large);
5
-
6
- font-size: var(--_op-font-size);
7
- font-weight: var(--op-font-weight-semi-bold);
8
- line-height: var(--_op-line-height);
9
-
10
- .aligned-header__centered-suffix {
11
- display: inline-flex;
12
- height: calc(var(--_op-line-height) * var(--_op-font-size));
13
- align-items: center;
14
- vertical-align: top;
15
- }
16
- }
@@ -1,40 +0,0 @@
1
- /* Domains Sidebar Example */
2
- .sidebar {
3
- &.sidebar--domains {
4
- --_op-sidebar-drawer-width: 28rem;
5
- --_op-sidebar-content-spacing: 0;
6
- --_op-sidebar-content-item-spacing: 0;
7
-
8
- box-shadow: none;
9
-
10
- .btn {
11
- border-radius: 0;
12
-
13
- &.btn--no-border {
14
- box-shadow: none;
15
-
16
- &.btn--active {
17
- background-color: var(--op-color-primary-plus-five);
18
- color: var(--op-color-primary-on-plus-five);
19
- }
20
-
21
- &:hover:not(.btn--active) {
22
- background-color: var(--op-color-neutral-plus-six);
23
- box-shadow: none;
24
- color: var(--op-color-neutral-on-plus-six);
25
- }
26
- }
27
-
28
- &.btn--pill-right {
29
- border-radius: 0 var(--op-radius-pill) var(--op-radius-pill) 0;
30
- }
31
- }
32
-
33
- .sidebar__footer {
34
- display: flex;
35
- align-items: center;
36
- gap: var(--op-space-small);
37
- padding-inline-start: var(--op-space-large);
38
- }
39
- }
40
- }