@rolemodel/optics 2.0.1 → 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 (47) 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/addons/fonts/feather_icons.css +939 -0
  5. package/dist/css/addons/fonts/lucide_icons.css +4672 -0
  6. package/dist/css/addons/fonts/material_symbols_outlined_variable.css +10 -0
  7. package/dist/css/addons/fonts/phosphor_icons.css +44 -0
  8. package/dist/css/addons/fonts/tabler_icons.css +11 -0
  9. package/dist/css/optics.css +4964 -7
  10. package/dist/css/optics.min.css +1 -4934
  11. package/dist/package.json +87 -0
  12. package/package.json +6 -4
  13. package/postcss.config.js +6 -3
  14. package/dist/css/components/accordion.css +0 -66
  15. package/dist/css/components/alert.css +0 -171
  16. package/dist/css/components/avatar.css +0 -95
  17. package/dist/css/components/badge.css +0 -73
  18. package/dist/css/components/breadcrumbs.css +0 -37
  19. package/dist/css/components/button.css +0 -273
  20. package/dist/css/components/button_group.css +0 -47
  21. package/dist/css/components/card.css +0 -62
  22. package/dist/css/components/confirm-dialog.css +0 -80
  23. package/dist/css/components/divider.css +0 -55
  24. package/dist/css/components/form.css +0 -360
  25. package/dist/css/components/icon.css +0 -114
  26. package/dist/css/components/index.css +0 -24
  27. package/dist/css/components/modal.css +0 -149
  28. package/dist/css/components/navbar.css +0 -60
  29. package/dist/css/components/pagination.css +0 -24
  30. package/dist/css/components/side_panel.css +0 -90
  31. package/dist/css/components/sidebar.css +0 -139
  32. package/dist/css/components/spinner.css +0 -52
  33. package/dist/css/components/switch.css +0 -107
  34. package/dist/css/components/tab.css +0 -76
  35. package/dist/css/components/table.css +0 -133
  36. package/dist/css/components/tag.css +0 -168
  37. package/dist/css/components/text_pair.css +0 -55
  38. package/dist/css/components/tooltip.css +0 -134
  39. package/dist/css/core/base.css +0 -95
  40. package/dist/css/core/layout.css +0 -43
  41. package/dist/css/core/tokens/base_tokens.css +0 -354
  42. package/dist/css/core/tokens/index.css +0 -2
  43. package/dist/css/core/tokens/scale_color_tokens.css +0 -1498
  44. package/dist/css/core/utilities.css +0 -429
  45. package/dist/css/recipes/16six-sidebar.css +0 -63
  46. package/dist/css/recipes/aligned-header.css +0 -16
  47. package/dist/css/recipes/domains-sidebar.css +0 -40
@@ -1,354 +0,0 @@
1
- @import 'https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&family=Noto+Serif:ital,wdth,wght@0,62.5..100,100..900;1,62.5..100,100..900&display=swap';
2
-
3
- /*
4
- Noto Sans supports:
5
- font-weight: {anything between 100 and 900}
6
- font-stretch: {anything between 62.5% and 100%}
7
- font-style: {normal or italic}
8
- */
9
-
10
- /*
11
- Noto Serif supports:
12
- font-weight: {anything between 100 and 900}
13
- font-stretch: {anything between 62.5% and 100%}
14
- font-style: {normal or italic}
15
- */
16
-
17
- :root {
18
- /* Color HSLs
19
- A theme comprised of a primary, neutral, warning, danger, info, and notice colors.
20
- */
21
-
22
- /* Basic Colors */
23
-
24
- /**
25
- * @tokens Basic Colors
26
- * @presenter Color
27
- */
28
- --op-color-white: hsl(0deg 100% 100%);
29
- --op-color-black: hsl(0deg 0% 0%);
30
-
31
- /**
32
- * @tokens Primary Colors
33
- * @presenter Color
34
- */
35
- --op-color-primary-h: 216;
36
- --op-color-primary-s: 58%;
37
- --op-color-primary-l: 48%;
38
-
39
- /**
40
- * @tokens Neutral Colors
41
- * @presenter Color
42
- */
43
- --op-color-neutral-h: var(--op-color-primary-h);
44
- --op-color-neutral-s: 4%;
45
- --op-color-neutral-l: var(--op-color-primary-l);
46
-
47
- /**
48
- * @tokens Alerts Warning Colors
49
- * @presenter Color
50
- */
51
- --op-color-alerts-warning-h: 47;
52
- --op-color-alerts-warning-s: 100%;
53
- --op-color-alerts-warning-l: 61%;
54
-
55
- /**
56
- * @tokens Alerts Danger Colors
57
- * @presenter Color
58
- */
59
- --op-color-alerts-danger-h: 0;
60
- --op-color-alerts-danger-s: 99%;
61
- --op-color-alerts-danger-l: 76%;
62
-
63
- /**
64
- * @tokens Alerts Info Colors
65
- * @presenter Color
66
- */
67
- --op-color-alerts-info-h: 216;
68
- --op-color-alerts-info-s: 58%;
69
- --op-color-alerts-info-l: 48%;
70
-
71
- /**
72
- * @tokens Alerts Notice Colors
73
- * @presenter Color
74
- */
75
- --op-color-alerts-notice-h: 130;
76
- --op-color-alerts-notice-s: 61%;
77
- --op-color-alerts-notice-l: 64%;
78
-
79
- /**
80
- * @tokens Opacities
81
- * @presenter Opacity
82
- */
83
- --op-opacity-none: 0;
84
- --op-opacity-overlay: 0.2;
85
- --op-opacity-disabled: 0.4;
86
- --op-opacity-half: 0.5;
87
- --op-opacity-full: 1;
88
-
89
- /*
90
- Breakpoints
91
- CSS does not support using variables within @media or @container queries. Environment variables are drafted but likely to not be implemented soon.
92
- https://drafts.csswg.org/css-env-1/
93
- https://bholmes.dev/blog/alternative-to-css-variable-media-queries/
94
-
95
- Here is a list of breakpoints used throughout Optics:
96
- */
97
-
98
- /**
99
- * @tokens Breakpoints
100
- * @presenter Spacing
101
- */
102
- --op-breakpoint-x-small: 512px; /* vertical phone */
103
- --op-breakpoint-small: 768px; /* vertical ipad */
104
- --op-breakpoint-medium: 1024px; /* landscape ipad */
105
- --op-breakpoint-large: 1280px; /* small laptop */
106
- --op-breakpoint-x-large: 1440px; /* medium laptop */
107
-
108
- /* Border */
109
-
110
- /**
111
- * @tokens Border Radius
112
- * @presenter BorderRadius
113
- */
114
- --op-radius-small: 2px;
115
- --op-radius-medium: 4px;
116
- --op-radius-large: 8px;
117
- --op-radius-x-large: 12px;
118
- --op-radius-2x-large: 16px;
119
- --op-radius-circle: 50%;
120
- --op-radius-pill: 9999px;
121
-
122
- /**
123
- * @tokens Border Width
124
- * @presenter Spacing
125
- */
126
- --op-border-width: 1px;
127
- --op-border-width-large: 2px;
128
- --op-border-width-x-large: 4px;
129
-
130
- /**
131
- * @tokens Border Color
132
- * @presenter Color
133
- */
134
- --op-color-border: var(--op-color-neutral-plus-five);
135
-
136
- /* E.G. box-shadow: var(--op-border-top) var(--op-color-border); */
137
-
138
- /**
139
- * @tokens Border Shadow
140
- * @presenter Shadow
141
- */
142
- --op-border-none: 0 0 0 0;
143
- --op-border-all: 0 0 0 var(--op-border-width);
144
- --op-border-top: 0 calc(-1 * var(--op-border-width)) 0 0;
145
- --op-border-right: var(--op-border-width) 0 0 0;
146
- --op-border-bottom: 0 var(--op-border-width) 0 0;
147
- --op-border-left: calc(-1 * var(--op-border-width)) 0 0 0;
148
- --op-border-y: var(--op-border-top) var(--op-color-border), var(--op-border-bottom) var(--op-color-border);
149
- --op-border-x: var(--op-border-left) var(--op-color-border), var(--op-border-right) var(--op-color-border);
150
-
151
- /* Font */
152
-
153
- /**
154
- * @tokens Font Scale
155
- * @presenter FontSize
156
- */
157
- --op-font-scale-unit: 1rem; /* 10px; */
158
- --op-font-2x-small: calc(var(--op-font-scale-unit) * 1); /* 10px */
159
- --op-font-x-small: calc(var(--op-font-scale-unit) * 1.2); /* 12px */
160
- --op-font-small: calc(var(--op-font-scale-unit) * 1.4); /* 14px */
161
- --op-font-medium: calc(var(--op-font-scale-unit) * 1.6); /* 16px */
162
- --op-font-large: calc(var(--op-font-scale-unit) * 1.8); /* 18px */
163
- --op-font-x-large: calc(var(--op-font-scale-unit) * 2); /* 20px */
164
- --op-font-2x-large: calc(var(--op-font-scale-unit) * 2.4); /* 24px */
165
- --op-font-3x-large: calc(var(--op-font-scale-unit) * 2.8); /* 28px */
166
- --op-font-4x-large: calc(var(--op-font-scale-unit) * 3.2); /* 32px */
167
- --op-font-5x-large: calc(var(--op-font-scale-unit) * 3.6); /* 36px */
168
- --op-font-6x-large: calc(var(--op-font-scale-unit) * 4.8); /* 48px */
169
-
170
- /**
171
- * @tokens Font Weight
172
- * @presenter FontWeight
173
- */
174
- --op-font-weight-thin: 100;
175
- --op-font-weight-extra-light: 200;
176
- --op-font-weight-light: 300;
177
- --op-font-weight-normal: 400;
178
- --op-font-weight-medium: 500;
179
- --op-font-weight-semi-bold: 600;
180
- --op-font-weight-bold: 700;
181
- --op-font-weight-extra-bold: 800;
182
- --op-font-weight-black: 900;
183
-
184
- /**
185
- * @tokens Font Family
186
- * @presenter FontFamily
187
- */
188
- --op-font-family: 'Noto Sans', sans-serif;
189
- --op-font-family-alt: 'Noto Serif', serif;
190
-
191
- /* Text */
192
-
193
- /**
194
- * @tokens Line Height
195
- * @presenter LineHeight
196
- */
197
- --op-line-height-none: 0;
198
- --op-line-height-densest: 1;
199
- --op-line-height-denser: 1.15;
200
- --op-line-height-dense: 1.3;
201
- --op-line-height-base: 1.5;
202
- --op-line-height-loose: 1.6;
203
- --op-line-height-looser: 1.7;
204
- --op-line-height-loosest: 1.8;
205
-
206
- /**
207
- * @tokens Letter Spacing
208
- * @presenter LetterSpacing
209
- */
210
- --op-letter-spacing-navigation: 0.01rem;
211
- --op-letter-spacing-label: 0.04rem;
212
-
213
- /* Transitions and Animations */
214
-
215
- /**
216
- * @tokens Transition
217
- */
218
- --op-transition-accordion: rotate 120ms ease-in;
219
- --op-transition-accordion-content: height 300ms ease, content-visibility 300ms ease allow-discrete;
220
- --op-transition-input: all 120ms ease-in;
221
- --op-transition-sidebar: all 200ms ease-in-out;
222
- --op-transition-modal: all 300ms ease-in;
223
- --op-transition-panel: right 400ms ease-in;
224
- --op-transition-tooltip: all 300ms ease-in 300ms;
225
-
226
- /**
227
- * @tokens Animation
228
- * @presenter Animation
229
- */
230
- --op-animation-flash: rm-slide-in-out-flash 5s normal forwards;
231
-
232
- /* Encoded Images */
233
-
234
- /**
235
- * @tokens Encoded Images
236
- */
237
- --op-encoded-images-dropdown-arrow-width: calc(
238
- 1.2 * var(--op-space-scale-unit)
239
- ); /* 12px No way to string interpolate */
240
-
241
- --op-encoded-images-dropdown-arrow: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iOSIgdmlld0JveD0iMCAwIDEyIDkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik02IDguMzc1MDFMMCAyLjM3NTAxTDEuNCAwLjk3NTAwNkw2IDUuNTc1MDFMMTAuNiAwLjk3NTAwNkwxMiAyLjM3NTAxTDYgOC4zNzUwMVoiIGZpbGw9IiMwQTBBMEIiLz4KPC9zdmc+Cg==');
242
-
243
- /* Spacing */
244
-
245
- /**
246
- * @tokens Size Scale
247
- * @presenter Spacing
248
- */
249
- --op-size-unit: 0.4rem; /* 4px */
250
-
251
- /**
252
- * @tokens Space Scale
253
- * @presenter Spacing
254
- */
255
- --op-space-scale-unit: 1rem; /* 10px; */
256
- --op-space-3x-small: calc(var(--op-space-scale-unit) * 0.2); /* 2px */
257
- --op-space-2x-small: calc(var(--op-space-scale-unit) * 0.4); /* 4px */
258
- --op-space-x-small: calc(var(--op-space-scale-unit) * 0.8); /* 8px */
259
- --op-space-small: calc(var(--op-space-scale-unit) * 1.2); /* 12px */
260
- --op-space-medium: calc(var(--op-space-scale-unit) * 1.6); /* 16px */
261
- --op-space-large: calc(var(--op-space-scale-unit) * 2); /* 20px */
262
- --op-space-x-large: calc(var(--op-space-scale-unit) * 2.4); /* 24px */
263
- --op-space-2x-large: calc(var(--op-space-scale-unit) * 2.8); /* 28px */
264
- --op-space-3x-large: calc(var(--op-space-scale-unit) * 4); /* 40px */
265
- --op-space-4x-large: calc(var(--op-space-scale-unit) * 8); /* 80px */
266
-
267
- /* Shadows */
268
-
269
- /**
270
- * @tokens Shadows
271
- * @presenter Shadow
272
- */
273
- --op-shadow-x-small: 0 1px 2px hsl(0deg 0% 0% / 3%), 0 1px 3px hsl(0deg 0% 0% / 15%);
274
- --op-shadow-small: 0 1px 2px hsl(0deg 0% 0% / 3%), 0 2px 6px hsl(0deg 0% 0% / 15%);
275
- --op-shadow-medium: 0 4px 8px hsl(0deg 0% 0% / 15%), 0 1px 3px hsl(0deg 0% 0% / 3%);
276
- --op-shadow-large: 0 6px 10px hsl(0deg 0% 0% / 15%), 0 2px 3px hsl(0deg 0% 0% / 3%);
277
- --op-shadow-x-large: 0 8px 12px hsl(0deg 0% 0% / 15%), 0 4px 4px hsl(0deg 0% 0% / 3%);
278
-
279
- /* Z Index */
280
-
281
- /**
282
- * @tokens Z-Index
283
- */
284
- --op-z-index-header: 500;
285
- --op-z-index-footer: 500;
286
- --op-z-index-sidebar: 700;
287
- --op-z-index-dialog: 800;
288
- --op-z-index-dialog-backdrop: 801;
289
- --op-z-index-dialog-content: 802;
290
- --op-z-index-dropdown: 900;
291
- --op-z-index-alert-group: 950;
292
- --op-z-index-tooltip: 1000;
293
-
294
- /* Inputs */
295
-
296
- /*
297
- This should follow multiples of 4
298
- https: //uxdesign.cc/baseline-grids-design-systems-ae23b5af8cec See example 8
299
- */
300
-
301
- /**
302
- * @tokens Input Heights
303
- * @presenter Spacing
304
- */
305
- --op-input-height-small: 2.8rem; /* 28px */
306
- --op-input-height-medium: 3.6rem; /* 36px */
307
- --op-input-height-large: 4rem; /* 40px */
308
- --op-input-height-x-large: 8.4rem; /* 84px */
309
-
310
- /**
311
- * @tokens Input Focus
312
- * @presenter Shadow
313
- */
314
- --op-input-inner-focus: inset 0 0 0 var(--op-border-width-large);
315
- --op-input-outer-focus: 0 0 0 var(--op-border-width-x-large);
316
- --op-input-focus-primary: var(--op-input-inner-focus) var(--op-color-primary-plus-two),
317
- var(--op-input-outer-focus) var(--op-color-primary-plus-five);
318
- --op-input-focus-neutral: var(--op-input-inner-focus) var(--op-color-neutral-plus-two),
319
- var(--op-input-outer-focus) var(--op-color-neutral-plus-five);
320
- --op-input-focus-danger: var(--op-input-inner-focus) var(--op-color-alerts-danger-plus-two),
321
- var(--op-input-outer-focus) var(--op-color-alerts-danger-plus-five);
322
- --op-input-focus-warning: var(--op-input-inner-focus) var(--op-color-alerts-warning-plus-two),
323
- var(--op-input-outer-focus) var(--op-color-alerts-warning-plus-five);
324
- --op-input-focus-info: var(--op-input-inner-focus) var(--op-color-alerts-info-plus-two),
325
- var(--op-input-outer-focus) var(--op-color-alerts-info-plus-five);
326
- --op-input-focus-notice: var(--op-input-inner-focus) var(--op-color-alerts-notice-plus-two),
327
- var(--op-input-outer-focus) var(--op-color-alerts-notice-plus-five);
328
- }
329
-
330
- /* Animations */
331
- @keyframes rm-slide-in-out-flash {
332
- /*
333
- If an duration of 5s is set:
334
- Start off the Screen
335
- */
336
- 0% {
337
- right: -100%;
338
- }
339
-
340
- /* Animate onto the screen for 0.5s */
341
- 10% {
342
- right: var(--op-space-large);
343
- }
344
-
345
- /* Stay on the screen for 3s */
346
- 70% {
347
- right: var(--op-space-large);
348
- }
349
-
350
- /* Animate off the screen for 1.5s */
351
- 100% {
352
- right: -100%;
353
- }
354
- }
@@ -1,2 +0,0 @@
1
- @import 'base_tokens';
2
- @import 'scale_color_tokens';