@masmarino/gabarit 3.1.1 → 4.0.1
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 +31 -25
- package/alert/README.md +1 -1
- package/app-shell/README.md +11 -4
- package/auth-activate/README.md +1 -1
- package/auth-login/README.md +1 -1
- package/auth-register/README.md +1 -1
- package/auth-reset-password/README.md +1 -1
- package/card/README.md +11 -12
- package/disclosure/README.md +1 -1
- package/empty-state/README.md +1 -1
- package/fesm2022/masmarino-gabarit-accordion.mjs +10 -10
- package/fesm2022/masmarino-gabarit-accordion.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-alert.mjs +5 -5
- package/fesm2022/masmarino-gabarit-alert.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-app-shell.mjs +10 -10
- package/fesm2022/masmarino-gabarit-app-shell.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-auth-activate.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-login.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth-register.mjs +5 -5
- package/fesm2022/masmarino-gabarit-auth-register.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-auth-reset-password.mjs +3 -3
- package/fesm2022/masmarino-gabarit-auth.mjs +16 -16
- package/fesm2022/masmarino-gabarit-auth.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-autocomplete.mjs +5 -5
- package/fesm2022/masmarino-gabarit-autocomplete.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar-group.mjs +5 -5
- package/fesm2022/masmarino-gabarit-avatar-group.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-avatar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-badge.mjs +3 -3
- package/fesm2022/masmarino-gabarit-bar-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-breadcrumb.mjs +3 -3
- package/fesm2022/masmarino-gabarit-button.mjs +3 -3
- package/fesm2022/masmarino-gabarit-card.mjs +13 -29
- package/fesm2022/masmarino-gabarit-card.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-chart.mjs +23 -23
- package/fesm2022/masmarino-gabarit-chart.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-checkbox-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-checkbox.mjs +3 -3
- package/fesm2022/masmarino-gabarit-command-palette.mjs +10 -10
- package/fesm2022/masmarino-gabarit-command-palette.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-confirm-danger-modal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-copy-button.mjs +5 -5
- package/fesm2022/masmarino-gabarit-copy-button.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-copy-field.mjs +3 -3
- package/fesm2022/masmarino-gabarit-date-picker.mjs +10 -10
- package/fesm2022/masmarino-gabarit-date-picker.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-description-list.mjs +3 -3
- package/fesm2022/masmarino-gabarit-dimension-card.mjs +3 -3
- package/fesm2022/masmarino-gabarit-disclosure.mjs +6 -6
- package/fesm2022/masmarino-gabarit-disclosure.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-divider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-docs.mjs +27 -28
- package/fesm2022/masmarino-gabarit-docs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-drawer.mjs +5 -5
- package/fesm2022/masmarino-gabarit-drawer.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-empty-state.mjs +5 -5
- package/fesm2022/masmarino-gabarit-empty-state.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-file-upload.mjs +3 -3
- package/fesm2022/masmarino-gabarit-format.mjs +9 -9
- package/fesm2022/masmarino-gabarit-funnel-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-gauge-bar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-git-field.mjs +5 -5
- package/fesm2022/masmarino-gabarit-git-field.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-icon-marker.mjs +3 -3
- package/fesm2022/masmarino-gabarit-icon.mjs +6 -6
- package/fesm2022/masmarino-gabarit-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-job-graph.mjs +5 -5
- package/fesm2022/masmarino-gabarit-job-graph.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-job-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-line-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-list-card.mjs +5 -5
- package/fesm2022/masmarino-gabarit-list-card.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-list-row.mjs +5 -5
- package/fesm2022/masmarino-gabarit-list-row.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-list-toolbar.mjs +3 -3
- package/fesm2022/masmarino-gabarit-menu.mjs +11 -11
- package/fesm2022/masmarino-gabarit-menu.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs +13 -14
- package/fesm2022/masmarino-gabarit-mfa-enrollment.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs +7 -8
- package/fesm2022/masmarino-gabarit-mfa-settings.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-modal.mjs +5 -5
- package/fesm2022/masmarino-gabarit-modal.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs +10 -10
- package/fesm2022/masmarino-gabarit-nav-tabs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-notification-dot.mjs +3 -3
- package/fesm2022/masmarino-gabarit-page-header.mjs +5 -5
- package/fesm2022/masmarino-gabarit-page-header.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-page-layout.mjs +5 -5
- package/fesm2022/masmarino-gabarit-page-layout.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-pagination.mjs +3 -3
- package/fesm2022/masmarino-gabarit-panel.mjs +5 -5
- package/fesm2022/masmarino-gabarit-panel.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs +7 -9
- package/fesm2022/masmarino-gabarit-passkey-settings.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-pie-chart.mjs +3 -3
- package/fesm2022/masmarino-gabarit-popover.mjs +5 -5
- package/fesm2022/masmarino-gabarit-popover.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-radio-group.mjs +3 -3
- package/fesm2022/masmarino-gabarit-save-status.mjs +3 -3
- package/fesm2022/masmarino-gabarit-search-bar.mjs +5 -5
- package/fesm2022/masmarino-gabarit-search-bar.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-secret-reveal.mjs +3 -3
- package/fesm2022/masmarino-gabarit-segmented-control.mjs +3 -3
- package/fesm2022/masmarino-gabarit-select.mjs +5 -5
- package/fesm2022/masmarino-gabarit-select.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs +7 -26
- package/fesm2022/masmarino-gabarit-skeleton-list.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-skeleton.mjs +3 -3
- package/fesm2022/masmarino-gabarit-slider.mjs +3 -3
- package/fesm2022/masmarino-gabarit-sparkline.mjs +5 -5
- package/fesm2022/masmarino-gabarit-sparkline.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-spinner.mjs +3 -3
- package/fesm2022/masmarino-gabarit-stat-grid.mjs +5 -5
- package/fesm2022/masmarino-gabarit-stat-grid.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-stat-tile.mjs +8 -8
- package/fesm2022/masmarino-gabarit-stat-tile.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-stepper.mjs +3 -3
- package/fesm2022/masmarino-gabarit-switch.mjs +3 -3
- package/fesm2022/masmarino-gabarit-table.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tabs.mjs +8 -8
- package/fesm2022/masmarino-gabarit-tabs.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tag-input.mjs +3 -3
- package/fesm2022/masmarino-gabarit-tag.mjs +3 -3
- package/fesm2022/masmarino-gabarit-textarea.mjs +3 -3
- package/fesm2022/masmarino-gabarit-timeline-chart.mjs +6 -6
- package/fesm2022/masmarino-gabarit-toaster.mjs +8 -8
- package/fesm2022/masmarino-gabarit-toaster.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tooltip.mjs +5 -5
- package/fesm2022/masmarino-gabarit-tooltip.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-tree.mjs +5 -5
- package/fesm2022/masmarino-gabarit-tree.mjs.map +1 -1
- package/fesm2022/masmarino-gabarit-user-chip.mjs +3 -3
- package/fesm2022/masmarino-gabarit.mjs +1 -1
- package/fesm2022/masmarino-gabarit.mjs.map +1 -1
- package/git-field/README.md +2 -2
- package/list-row/README.md +3 -5
- package/modal/README.md +1 -1
- package/nav-tabs/README.md +3 -2
- package/package.json +1 -1
- package/page-header/README.md +2 -2
- package/page-layout/README.md +1 -1
- package/panel/README.md +2 -3
- package/skeleton-list/README.md +1 -2
- package/src/lib/tokens/_base.scss +5 -6
- package/src/lib/tokens/_depth.scss +1 -1
- package/src/lib/tokens/_glass.scss +87 -0
- package/src/lib/tokens/_grounds.scss +283 -0
- package/src/lib/tokens/_semantic.scss +0 -2
- package/src/lib/tokens/_themes.scss +93 -23
- package/src/lib/tokens/_utilities.scss +53 -13
- package/src/lib/tokens/index.scss +2 -0
- package/types/masmarino-gabarit-card.d.ts +1 -8
- package/types/masmarino-gabarit-disclosure.d.ts +1 -1
- package/types/masmarino-gabarit-git-field.d.ts +1 -1
- package/types/masmarino-gabarit-skeleton-list.d.ts +0 -6
- package/types/masmarino-gabarit.d.ts +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
// The themes as mixins, with no output of their own: _semantic puts them on :root
|
|
2
|
-
// on the graphite frame (the shell's rail and bar, the sign-in page) take the frame's.
|
|
1
|
+
// The themes as mixins, with no output of their own: _semantic puts them on :root.
|
|
3
2
|
//
|
|
4
3
|
// Every text token reaches 7:1 on the page and on a panel (contrast.spec.ts), which is why a few of
|
|
5
4
|
// them sit a shade darker (or lighter, in the dark) than the marks of the same colour. The status
|
|
@@ -69,12 +68,16 @@
|
|
|
69
68
|
--site-shadow-md: 0 0 0 1px var(--slate-400), 0px 2px 12px var(--gbt-card-shadow);
|
|
70
69
|
--site-shadow-lg: 0 0 0 1px var(--slate-400), 0 12px 32px rgba(16, 21, 28, 0.16);
|
|
71
70
|
|
|
71
|
+
// On the ground and its glasses (4.0): the shades that keep 7:1 for text and 3:1 for an edge at the ground's worst point.
|
|
72
|
+
--gbt-ground-text-discret: var(--slate-700);
|
|
73
|
+
--gbt-ground-border: #78828f;
|
|
74
|
+
--gbt-liquid-text: var(--slate-700);
|
|
75
|
+
|
|
72
76
|
// Volume and light: the apps' roles and the common shadows, composed for CSS.
|
|
73
77
|
--bg-press: rgba(16, 21, 28, 0.14);
|
|
74
78
|
--gbt-relief-highlight: rgba(255, 255, 255, 0.6);
|
|
75
79
|
--gbt-relief-shadow: rgba(0, 0, 0, 0.14);
|
|
76
80
|
--gbt-relief-shade: rgba(0, 0, 0, 0.08);
|
|
77
|
-
--gbt-page-light: rgba(255, 255, 255, 0.55);
|
|
78
81
|
--gbt-card-shadow: rgba(0, 0, 0, 0.09);
|
|
79
82
|
--gbt-edge-shade: inset 0 -1px 0 var(--gbt-relief-shade);
|
|
80
83
|
--gbt-edge: inset 0 1px 0 var(--gbt-relief-highlight), var(--gbt-edge-shade);
|
|
@@ -88,19 +91,56 @@
|
|
|
88
91
|
--gbt-depth-hollow: inset 0 1px 3px rgb(0 0 0 / 0.12);
|
|
89
92
|
--gbt-depth-knob: 0 1px 3px rgb(0 0 0 / 0.18);
|
|
90
93
|
--gbt-depth-knob-hover: 0 1px 4px rgb(0 0 0 / 0.26);
|
|
91
|
-
--gbt-depth-bar: 0px 2px 10px rgba(0, 0, 0, 0.22);
|
|
92
94
|
--gbt-sheen: linear-gradient(rgb(255 255 255 / 0.07), transparent 50%, rgb(0 0 0 / 0.04));
|
|
93
95
|
--gbt-sheen-hover: linear-gradient(rgb(255 255 255 / 0.12), transparent 50%, rgb(0 0 0 / 0.04));
|
|
94
96
|
--gbt-sunk: linear-gradient(rgb(0 0 0 / 0.13), transparent 45%);
|
|
95
97
|
--gbt-sunk-ink: linear-gradient(rgb(0 0 0 / 0.28), transparent 45%);
|
|
96
|
-
--gbt-frame-sheen: linear-gradient(rgb(255 255 255 / 0.07), transparent 70%);
|
|
97
|
-
--gbt-page-ground: linear-gradient(var(--gbt-page-light), transparent);
|
|
98
98
|
--gbt-knob: linear-gradient(#ffffff, #ededed);
|
|
99
99
|
--gbt-glow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
100
100
|
--gbt-glow-hover: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
101
101
|
--gbt-glow-soft: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent);
|
|
102
102
|
--gbt-glow-line: 0 6px 6px -6px color-mix(in srgb, var(--accent) 60%, transparent);
|
|
103
|
-
|
|
103
|
+
|
|
104
|
+
// The ground and the two glasses (4.0): the light and dark grounds, their glass and their ink.
|
|
105
|
+
--gbt-ground:
|
|
106
|
+
radial-gradient(circle 90vmax at 12% -8%, #ffe6d4 0%, transparent 100%),
|
|
107
|
+
linear-gradient(160deg, #f2f4f7, #efe6fa, #dce7f7);
|
|
108
|
+
--gbt-ink: #10151c;
|
|
109
|
+
--gbt-ink-2: rgba(16, 21, 28, 0.62);
|
|
110
|
+
--gbt-ink-3: rgba(16, 21, 28, 0.47);
|
|
111
|
+
--gbt-ground-veil: rgba(255, 255, 255, 0);
|
|
112
|
+
--gbt-glass-thin: rgba(255, 255, 255, 0.46);
|
|
113
|
+
--gbt-glass-regular: rgba(255, 255, 255, 0.68);
|
|
114
|
+
--gbt-glass-thick: rgba(255, 255, 255, 0.88);
|
|
115
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.26);
|
|
116
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.85);
|
|
117
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.5);
|
|
118
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.95);
|
|
119
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.35);
|
|
120
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.55);
|
|
121
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.32);
|
|
122
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.18);
|
|
123
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.7);
|
|
124
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.45);
|
|
125
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.35);
|
|
126
|
+
--gbt-glass-shadow: rgba(24, 32, 48, 0.22);
|
|
127
|
+
--gbt-glass-shadow-near: rgba(24, 32, 48, 0.06);
|
|
128
|
+
--gbt-liquid-shadow: rgba(24, 32, 48, 0.2);
|
|
129
|
+
--gbt-glass-blur: blur(28px) saturate(1.5);
|
|
130
|
+
--gbt-liquid-blur: blur(9px) saturate(1.9) brightness(1.06);
|
|
131
|
+
--gbt-radius-glass: 22px;
|
|
132
|
+
--gbt-radius-row: 14px;
|
|
133
|
+
--gbt-space-page: 20px;
|
|
134
|
+
--gbt-space-gap: 16px;
|
|
135
|
+
--gbt-glass-rim-light:
|
|
136
|
+
inset 0 1px 0 var(--gbt-glass-rim-top), inset 0 -1px 0 var(--gbt-glass-rim-bottom),
|
|
137
|
+
inset 0 9px 9px -8px var(--gbt-glass-sheen), inset 0 -7px 7px -6px var(--gbt-glass-sheen);
|
|
138
|
+
--gbt-depth-glass:
|
|
139
|
+
0 18px 40px -18px var(--gbt-glass-shadow), 0 2px 6px -2px var(--gbt-glass-shadow-near);
|
|
140
|
+
--gbt-depth-liquid:
|
|
141
|
+
inset 0 1px 0 var(--gbt-liquid-rim-top), inset 0 -1px 0 var(--gbt-liquid-rim-bottom),
|
|
142
|
+
inset 0 9px 9px -8px var(--gbt-liquid-sheen), inset 0 -7px 7px -6px var(--gbt-liquid-sheen),
|
|
143
|
+
0 10px 26px -12px var(--gbt-liquid-shadow);
|
|
104
144
|
}
|
|
105
145
|
|
|
106
146
|
@mixin dark-tokens {
|
|
@@ -165,12 +205,16 @@
|
|
|
165
205
|
--site-shadow-md: 0 0 0 1px rgba(205, 215, 230, 0.26), 0px 2px 12px var(--gbt-card-shadow);
|
|
166
206
|
--site-shadow-lg: 0 0 0 1px rgba(205, 215, 230, 0.26), 0 12px 32px rgba(0, 0, 0, 0.4);
|
|
167
207
|
|
|
208
|
+
// On the ground and its glasses (4.0): the shades that keep 7:1 for text and 3:1 for an edge at the ground's worst point.
|
|
209
|
+
--gbt-ground-text-discret: var(--graphite-300);
|
|
210
|
+
--gbt-ground-border: #7a828e;
|
|
211
|
+
--gbt-liquid-text: var(--graphite-200);
|
|
212
|
+
|
|
168
213
|
// Volume and light: the apps' roles and the common shadows, composed for CSS.
|
|
169
214
|
--bg-press: rgba(231, 235, 241, 0.14);
|
|
170
215
|
--gbt-relief-highlight: rgba(255, 255, 255, 0.08);
|
|
171
216
|
--gbt-relief-shadow: rgba(0, 0, 0, 0.5);
|
|
172
217
|
--gbt-relief-shade: rgba(0, 0, 0, 0.32);
|
|
173
|
-
--gbt-page-light: rgba(255, 255, 255, 0.04);
|
|
174
218
|
--gbt-card-shadow: rgba(0, 0, 0, 0.35);
|
|
175
219
|
--gbt-edge-shade: inset 0 -1px 0 var(--gbt-relief-shade);
|
|
176
220
|
--gbt-edge: inset 0 1px 0 var(--gbt-relief-highlight), var(--gbt-edge-shade);
|
|
@@ -184,19 +228,56 @@
|
|
|
184
228
|
--gbt-depth-hollow: inset 0 1px 3px rgb(0 0 0 / 0.12);
|
|
185
229
|
--gbt-depth-knob: 0 1px 3px rgb(0 0 0 / 0.18);
|
|
186
230
|
--gbt-depth-knob-hover: 0 1px 4px rgb(0 0 0 / 0.26);
|
|
187
|
-
--gbt-depth-bar: 0px 2px 10px rgba(0, 0, 0, 0.22);
|
|
188
231
|
--gbt-sheen: linear-gradient(rgb(255 255 255 / 0.07), transparent 50%, rgb(0 0 0 / 0.04));
|
|
189
232
|
--gbt-sheen-hover: linear-gradient(rgb(255 255 255 / 0.12), transparent 50%, rgb(0 0 0 / 0.04));
|
|
190
233
|
--gbt-sunk: linear-gradient(rgb(0 0 0 / 0.13), transparent 45%);
|
|
191
234
|
--gbt-sunk-ink: linear-gradient(rgb(0 0 0 / 0.28), transparent 45%);
|
|
192
|
-
--gbt-frame-sheen: linear-gradient(rgb(255 255 255 / 0.07), transparent 70%);
|
|
193
|
-
--gbt-page-ground: linear-gradient(var(--gbt-page-light), transparent);
|
|
194
235
|
--gbt-knob: linear-gradient(#ffffff, #ededed);
|
|
195
236
|
--gbt-glow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
196
237
|
--gbt-glow-hover: 0 0 14px color-mix(in srgb, var(--accent) 45%, transparent);
|
|
197
238
|
--gbt-glow-soft: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent);
|
|
198
239
|
--gbt-glow-line: 0 6px 6px -6px color-mix(in srgb, var(--accent) 60%, transparent);
|
|
199
|
-
|
|
240
|
+
|
|
241
|
+
// The ground and the two glasses (4.0): the light and dark grounds, their glass and their ink.
|
|
242
|
+
--gbt-ground:
|
|
243
|
+
radial-gradient(circle 85vmax at 8% -10%, #2a2236 0%, transparent 100%),
|
|
244
|
+
linear-gradient(160deg, #0d1116, #0f1820, #13283a);
|
|
245
|
+
--gbt-ink: #e7ebf1;
|
|
246
|
+
--gbt-ink-2: rgba(231, 235, 241, 0.62);
|
|
247
|
+
--gbt-ink-3: rgba(231, 235, 241, 0.42);
|
|
248
|
+
--gbt-ground-veil: rgba(22, 28, 36, 0);
|
|
249
|
+
--gbt-glass-thin: rgba(22, 28, 36, 0.42);
|
|
250
|
+
--gbt-glass-regular: rgba(22, 28, 36, 0.62);
|
|
251
|
+
--gbt-glass-thick: rgba(22, 28, 36, 0.86);
|
|
252
|
+
--gbt-glass-liquid: rgba(255, 255, 255, 0.07);
|
|
253
|
+
--gbt-glass-rim: rgba(255, 255, 255, 0.09);
|
|
254
|
+
--gbt-glass-rim-edge: rgba(255, 255, 255, 0.06);
|
|
255
|
+
--gbt-liquid-rim: rgba(255, 255, 255, 0.42);
|
|
256
|
+
--gbt-liquid-rim-soft: rgba(255, 255, 255, 0.08);
|
|
257
|
+
--gbt-glass-rim-top: rgba(255, 255, 255, 0.16);
|
|
258
|
+
--gbt-glass-rim-bottom: rgba(255, 255, 255, 0.09);
|
|
259
|
+
--gbt-glass-sheen: rgba(255, 255, 255, 0.05);
|
|
260
|
+
--gbt-liquid-rim-top: rgba(255, 255, 255, 0.35);
|
|
261
|
+
--gbt-liquid-rim-bottom: rgba(255, 255, 255, 0.22);
|
|
262
|
+
--gbt-liquid-sheen: rgba(255, 255, 255, 0.1);
|
|
263
|
+
--gbt-glass-shadow: rgba(0, 0, 0, 0.6);
|
|
264
|
+
--gbt-glass-shadow-near: rgba(0, 0, 0, 0.3);
|
|
265
|
+
--gbt-liquid-shadow: rgba(0, 0, 0, 0.45);
|
|
266
|
+
--gbt-glass-blur: blur(28px) saturate(1.5);
|
|
267
|
+
--gbt-liquid-blur: blur(9px) saturate(1.9) brightness(1.06);
|
|
268
|
+
--gbt-radius-glass: 22px;
|
|
269
|
+
--gbt-radius-row: 14px;
|
|
270
|
+
--gbt-space-page: 20px;
|
|
271
|
+
--gbt-space-gap: 16px;
|
|
272
|
+
--gbt-glass-rim-light:
|
|
273
|
+
inset 0 1px 0 var(--gbt-glass-rim-top), inset 0 -1px 0 var(--gbt-glass-rim-bottom),
|
|
274
|
+
inset 0 9px 9px -8px var(--gbt-glass-sheen), inset 0 -7px 7px -6px var(--gbt-glass-sheen);
|
|
275
|
+
--gbt-depth-glass:
|
|
276
|
+
0 18px 40px -18px var(--gbt-glass-shadow), 0 2px 6px -2px var(--gbt-glass-shadow-near);
|
|
277
|
+
--gbt-depth-liquid:
|
|
278
|
+
inset 0 1px 0 var(--gbt-liquid-rim-top), inset 0 -1px 0 var(--gbt-liquid-rim-bottom),
|
|
279
|
+
inset 0 9px 9px -8px var(--gbt-liquid-sheen), inset 0 -7px 7px -6px var(--gbt-liquid-sheen),
|
|
280
|
+
0 10px 26px -12px var(--gbt-liquid-shadow);
|
|
200
281
|
}
|
|
201
282
|
|
|
202
283
|
// The corners, the same in both themes: the common scale, as on the apps.
|
|
@@ -206,14 +287,3 @@
|
|
|
206
287
|
--site-border-radius: 8px;
|
|
207
288
|
--site-border-radius-lg: 12px;
|
|
208
289
|
}
|
|
209
|
-
|
|
210
|
-
// The graphite frame, the same in both themes: the dark tokens on a ground a little deeper than the
|
|
211
|
-
// dark theme's own. The rail's links are a step brighter, since light thin text on graphite reads
|
|
212
|
-
// paler than its ratio says.
|
|
213
|
-
@mixin frame-tokens {
|
|
214
|
-
@include dark-tokens;
|
|
215
|
-
--bg-panel: var(--graphite-950);
|
|
216
|
-
--text-secondary: var(--graphite-200);
|
|
217
|
-
color-scheme: dark;
|
|
218
|
-
color: var(--text-primary);
|
|
219
|
-
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@use 'a11y';
|
|
2
|
+
@use 'glass';
|
|
2
3
|
|
|
3
4
|
.gbt-form-error {
|
|
4
5
|
margin: 0 0 0.75rem;
|
|
@@ -48,11 +49,11 @@
|
|
|
48
49
|
left: 0;
|
|
49
50
|
margin-bottom: 0.25rem;
|
|
50
51
|
padding: 0.25rem 0.5rem;
|
|
51
|
-
|
|
52
|
-
color: var(--
|
|
52
|
+
@include glass.floating-glass;
|
|
53
|
+
color: var(--text-primary);
|
|
53
54
|
font-size: 0.75rem;
|
|
54
55
|
line-height: 1.4;
|
|
55
|
-
border-radius: var(--site-border-radius
|
|
56
|
+
border-radius: var(--site-border-radius);
|
|
56
57
|
white-space: normal;
|
|
57
58
|
width: max-content;
|
|
58
59
|
max-width: 320px;
|
|
@@ -99,7 +100,7 @@
|
|
|
99
100
|
gap: 0.625rem;
|
|
100
101
|
min-width: 0;
|
|
101
102
|
padding: 0.5rem 0.75rem;
|
|
102
|
-
border-radius: var(--
|
|
103
|
+
border-radius: var(--gbt-radius-row);
|
|
103
104
|
color: var(--text-secondary);
|
|
104
105
|
font-size: 0.875rem;
|
|
105
106
|
font-weight: 500;
|
|
@@ -128,14 +129,26 @@
|
|
|
128
129
|
@include a11y.focus-ring(-2px);
|
|
129
130
|
}
|
|
130
131
|
|
|
131
|
-
//
|
|
132
|
+
// The current page is liquid glass on the ground, its icon in the accent. An app can tone it otherwise
|
|
133
|
+
// (--gbt-nav-active-bg, --gbt-nav-active-text, --gbt-nav-active-mark: a mark on its edge).
|
|
132
134
|
&[aria-current] {
|
|
133
|
-
|
|
135
|
+
@include glass.liquid-glass;
|
|
136
|
+
background: var(--gbt-nav-active-bg, var(--gbt-glass-liquid));
|
|
134
137
|
color: var(--gbt-nav-active-text, var(--text-primary));
|
|
135
138
|
font-weight: 600;
|
|
136
139
|
box-shadow:
|
|
137
|
-
inset 2px 0 0 var(--gbt-nav-active-mark,
|
|
138
|
-
var(--gbt-
|
|
140
|
+
inset 2px 0 0 var(--gbt-nav-active-mark, transparent),
|
|
141
|
+
var(--gbt-depth-liquid);
|
|
142
|
+
|
|
143
|
+
> gbt-icon {
|
|
144
|
+
color: var(--accent);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
&:hover {
|
|
148
|
+
background:
|
|
149
|
+
linear-gradient(var(--bg-hover), var(--bg-hover)),
|
|
150
|
+
var(--gbt-nav-active-bg, var(--gbt-glass-liquid));
|
|
151
|
+
}
|
|
139
152
|
}
|
|
140
153
|
}
|
|
141
154
|
|
|
@@ -149,11 +162,9 @@
|
|
|
149
162
|
opacity: 1;
|
|
150
163
|
z-index: 1015;
|
|
151
164
|
padding: 0.375rem 0.625rem;
|
|
152
|
-
|
|
165
|
+
@include glass.floating-glass;
|
|
153
166
|
color: var(--text-primary);
|
|
154
|
-
border:
|
|
155
|
-
border-radius: var(--site-border-radius-sm);
|
|
156
|
-
box-shadow: var(--site-shadow-md);
|
|
167
|
+
border-radius: var(--site-border-radius);
|
|
157
168
|
|
|
158
169
|
&::before {
|
|
159
170
|
content: '';
|
|
@@ -231,7 +242,7 @@
|
|
|
231
242
|
gap: 0.5rem;
|
|
232
243
|
width: 100%;
|
|
233
244
|
padding: 8px 10px;
|
|
234
|
-
border-radius: var(--gbt-radius-menu, var(--site-border-radius
|
|
245
|
+
border-radius: var(--gbt-radius-menu, var(--site-border-radius));
|
|
235
246
|
color: var(--text-primary);
|
|
236
247
|
font-size: 14px;
|
|
237
248
|
text-align: left;
|
|
@@ -301,3 +312,32 @@
|
|
|
301
312
|
transition: none;
|
|
302
313
|
}
|
|
303
314
|
}
|
|
315
|
+
|
|
316
|
+
// The ground and the glasses (4.0), the components' recipes (`_glass.scss`) as classes, for an application's own
|
|
317
|
+
// markup: `.gbt-ground` under a window, its panels in `.gbt-glass`, what commands and floats in `.gbt-liquid-glass`
|
|
318
|
+
// (never the content). The light and dark grounds are in the theme mixins; the other ambiances are mixins of
|
|
319
|
+
// `_grounds.scss` (`@include grounds.ambiance-aurore`).
|
|
320
|
+
// The web keeps its own text tokens on the ground and the glass (7:1, contrast.spec.ts); --gbt-ink, -2, -3 are the
|
|
321
|
+
// apps' ink (4.5:1 at the worst point of each ambiance, tools/tokens.py --check), for what mirrors an app.
|
|
322
|
+
.gbt-ground {
|
|
323
|
+
@include glass.ground;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
.gbt-glass {
|
|
327
|
+
border-radius: var(--gbt-radius-glass);
|
|
328
|
+
@include glass.glass;
|
|
329
|
+
|
|
330
|
+
&--thin {
|
|
331
|
+
background: var(--gbt-glass-thin);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
&--thick {
|
|
335
|
+
background: var(--gbt-glass-thick);
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
@include glass.dense-when-asked;
|
|
339
|
+
}
|
|
340
|
+
|
|
341
|
+
.gbt-liquid-glass {
|
|
342
|
+
@include glass.liquid-glass;
|
|
343
|
+
}
|
|
@@ -3,7 +3,6 @@ export declare class CardLink {
|
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardLink, never>;
|
|
4
4
|
static ɵcmp: i0.ɵɵComponentDeclaration<CardLink, "a[gbtCardLink]", never, {}, {}, never, ["*"], true, never>;
|
|
5
5
|
}
|
|
6
|
-
type CardVariant = 'elevated' | 'outlined';
|
|
7
6
|
type CardTone = 'default' | 'success' | 'warning' | 'error';
|
|
8
7
|
export declare class CardHeader {
|
|
9
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CardHeader, never>;
|
|
@@ -14,7 +13,6 @@ export declare class Card {
|
|
|
14
13
|
heading: import("@angular/core").InputSignal<string>;
|
|
15
14
|
icon: import("@angular/core").InputSignal<string>;
|
|
16
15
|
headingLevel: import("@angular/core").InputSignal<1 | 2 | 3 | 4 | 5 | 6>;
|
|
17
|
-
variant: import("@angular/core").InputSignal<CardVariant>;
|
|
18
16
|
description: import("@angular/core").InputSignal<string>;
|
|
19
17
|
count: import("@angular/core").InputSignal<number | null>;
|
|
20
18
|
flush: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -54,11 +52,6 @@ export declare class Card {
|
|
|
54
52
|
"required": false;
|
|
55
53
|
"isSignal": true;
|
|
56
54
|
};
|
|
57
|
-
"variant": {
|
|
58
|
-
"alias": "variant";
|
|
59
|
-
"required": false;
|
|
60
|
-
"isSignal": true;
|
|
61
|
-
};
|
|
62
55
|
"description": {
|
|
63
56
|
"alias": "description";
|
|
64
57
|
"required": false;
|
|
@@ -106,4 +99,4 @@ export declare class Card {
|
|
|
106
99
|
};
|
|
107
100
|
}, {}, ["customHeader", "projectedLink"], ["[card-header-actions]", "*", "[card-header]"], true, never>;
|
|
108
101
|
}
|
|
109
|
-
export type { CardTone
|
|
102
|
+
export type { CardTone };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
type DisclosureAppearance = '
|
|
2
|
+
type DisclosureAppearance = 'glass' | 'plain';
|
|
3
3
|
type DisclosureHeadingLevel = 2 | 3 | 4 | 5 | 6;
|
|
4
4
|
export declare class Disclosure {
|
|
5
5
|
label: import("@angular/core").InputSignal<string>;
|
|
@@ -20,7 +20,7 @@ interface Pulse {
|
|
|
20
20
|
delay: number;
|
|
21
21
|
}
|
|
22
22
|
/**
|
|
23
|
-
* An animated commit graph on the
|
|
23
|
+
* An animated commit graph on the page's ground, behind a centred panel (the `[auth-backdrop]` slot of the sign-in
|
|
24
24
|
* pages) or a dark band: lanes that drift slowly sideways, their commits blinking in turn and pushes running along
|
|
25
25
|
* some of them, over two soft fields of colour. Decoration only: hidden from assistive technology, under the content,
|
|
26
26
|
* and still when reduced motion is asked for. It fills its nearest positioned ancestor.
|
|
@@ -6,7 +6,6 @@ export declare class SkeletonList {
|
|
|
6
6
|
leadingSize: import("@angular/core").InputSignal<string>;
|
|
7
7
|
lines: import("@angular/core").InputSignal<1 | 2 | 3>;
|
|
8
8
|
loadingLabel: import("@angular/core").InputSignal<string>;
|
|
9
|
-
divided: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
10
9
|
padded: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
11
10
|
protected readonly items: import("@angular/core").Signal<{
|
|
12
11
|
row: number;
|
|
@@ -39,11 +38,6 @@ export declare class SkeletonList {
|
|
|
39
38
|
"required": false;
|
|
40
39
|
"isSignal": true;
|
|
41
40
|
};
|
|
42
|
-
"divided": {
|
|
43
|
-
"alias": "divided";
|
|
44
|
-
"required": false;
|
|
45
|
-
"isSignal": true;
|
|
46
|
-
};
|
|
47
41
|
"padded": {
|
|
48
42
|
"alias": "padded";
|
|
49
43
|
"required": false;
|
|
@@ -9,7 +9,7 @@ import { Alert, AlertAppearance, AlertIconAlign, AlertLive, AlertSize, AlertVari
|
|
|
9
9
|
import { Tag } from "@masmarino/gabarit/tag";
|
|
10
10
|
import { EmptyState, EmptyStateHeadingLevel, EmptyStateIllustration, EmptyStateSize, EmptyStateTone } from "@masmarino/gabarit/empty-state";
|
|
11
11
|
import { ListToolbar, ListToolbarAccessors, ListToolbarDirection, ListToolbarSortOption, ListToolbarSortValue, ListToolbarState, ListToolbarStateConfig, createListToolbarState } from "@masmarino/gabarit/list-toolbar";
|
|
12
|
-
import { Card, CardHeader, CardLink, CardTone
|
|
12
|
+
import { Card, CardHeader, CardLink, CardTone } from "@masmarino/gabarit/card";
|
|
13
13
|
import { GbtInput, InputCombobox } from "@masmarino/gabarit/input";
|
|
14
14
|
import { Checkbox } from "@masmarino/gabarit/checkbox";
|
|
15
15
|
import { Select, SelectOption } from "@masmarino/gabarit/select";
|
|
@@ -80,5 +80,5 @@ import { AuthResetPassword } from "@masmarino/gabarit/auth-reset-password";
|
|
|
80
80
|
import { MfaSettings } from "@masmarino/gabarit/mfa-settings";
|
|
81
81
|
import { PasskeySettings } from "@masmarino/gabarit/passkey-settings";
|
|
82
82
|
import { GitField } from "@masmarino/gabarit/git-field";
|
|
83
|
-
export declare const GABARIT_VERSION = "
|
|
84
|
-
export { ACTIVATION_TOKEN_SHAPE, AUTH_LABELS, AUTH_PORT, AUTH_PORT_ERROR_BODIES, Accordion, AccordionItem, type AccordionMode, type ActivateFailure, type ActivateLabels, Alert, type AlertAppearance, type AlertIconAlign, type AlertLive, type AlertSize, type AlertVariant, AppShell, AppShellNavGroup, type Arc, AuthActivate, type AuthConfig, AuthFooter, AuthFooterLink, type AuthLabels, AuthLogin, AuthPanel, type AuthPort, type AuthPortError, AuthRegister, AuthResetPassword, Autocomplete, type AutocompleteSearchFn, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarSize, type AxisSpec, BackupCodes, type BackupCodesLabels, type BackupCodesResult, Badge, type BadgeAppearance, type BadgeSize, type BadgeVariant, type BandScale, BarChart, BarSeries, Breadcrumb, Button, type ButtonHaspopup, type ButtonSize, type ButtonVariant, CHART_CONTEXT, COPY_FIELD_WRAP_AT, type CalendarDay, Card, CardHeader, CardLink, type CardTone,
|
|
83
|
+
export declare const GABARIT_VERSION = "4.0.1";
|
|
84
|
+
export { ACTIVATION_TOKEN_SHAPE, AUTH_LABELS, AUTH_PORT, AUTH_PORT_ERROR_BODIES, Accordion, AccordionItem, type AccordionMode, type ActivateFailure, type ActivateLabels, Alert, type AlertAppearance, type AlertIconAlign, type AlertLive, type AlertSize, type AlertVariant, AppShell, AppShellNavGroup, type Arc, AuthActivate, type AuthConfig, AuthFooter, AuthFooterLink, type AuthLabels, AuthLogin, AuthPanel, type AuthPort, type AuthPortError, AuthRegister, AuthResetPassword, Autocomplete, type AutocompleteSearchFn, Avatar, AvatarGroup, type AvatarGroupItem, type AvatarSize, type AxisSpec, BackupCodes, type BackupCodesLabels, type BackupCodesResult, Badge, type BadgeAppearance, type BadgeSize, type BadgeVariant, type BandScale, BarChart, BarSeries, Breadcrumb, Button, type ButtonHaspopup, type ButtonSize, type ButtonVariant, CHART_CONTEXT, COPY_FIELD_WRAP_AT, type CalendarDay, Card, CardHeader, CardLink, type CardTone, ChartAxis, type ChartBox, ChartEmpty, ChartFrame, type ChartInterval, ChartLegend, type ChartMargin, type ChartPoint, type ChartReader, type ChartSeries, ChartTable, ChartTooltip, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupSection, ClipboardFeedback, type CommandGroup, type CommandItem, CommandPalette, CommandPaletteTrigger, ConfirmDangerModal, type ConfirmDangerModalTone, CopyButton, type CopyButtonFeedback, CopyField, type CopyOutcome, type CopyStatus, type CopyValue, DEFAULT_ACTIVATE_LABELS, DEFAULT_BACKUP_CODES_LABELS, DEFAULT_LOGIN_LABELS, DEFAULT_MFA_ENROLLMENT_LABELS, DEFAULT_MFA_SETTINGS_LABELS, DEFAULT_PASSKEY_SETTINGS_LABELS, DEFAULT_REGISTER_LABELS, DEFAULT_RESET_PASSWORD_LABELS, DEFAULT_TOTP_QR_LABELS, type DateInput, DatePicker, DateRangePicker, type DateRangeValue, DescriptionList, type DescriptionListEntry, type DescriptionListLayout, type DescriptionListResponsive, type DescriptionListValueAlign, DimensionCard, type DimensionRow, Disclosure, type DisclosureAppearance, type DisclosureHeadingLevel, Divider, type DividerOrientation, Drawer, type DrawerEdge, type EmailProblem, EmptyState, type EmptyStateHeadingLevel, type EmptyStateIllustration, type EmptyStateSize, type EmptyStateTone, type EnrolledFactor, FileUpload, type FlatTreeNode, type FormatBytesOptions, type FormatDurationOptions, type FormatRelativeTimeOptions, FunnelChart, type FunnelStep, GaugeBar, GbtBytesPipe, type GbtBytesPipeOptions, GbtDateTimePipe, type GbtDateTimePipeOptions, GbtInput, type GbtPipeLocale, GbtRelativeTimePipe, type GbtRelativeTimePipeOptions, type GbtToastKind, type GbtToastOptions, GbtToastService, GitField, Icon, IconMarker, type IconMarkerAppearance, type IconMarkerShape, type IconMarkerSize, type IconMarkerTone, IconRegistry, type InputCombobox, JobGraph, type JobGraphJob, type JobGraphStage, type JobGraphStatus, JobStatus, type JobStatusValue, type LegendEntry, LineChart, LineSeries, type LinearAxisSpec, ListCard, type ListCardState, ListRow, type ListRowTone, ListToolbar, type ListToolbarAccessors, type ListToolbarDirection, type ListToolbarSortOption, type ListToolbarSortValue, type ListToolbarState, type ListToolbarStateConfig, type LoginLabels, type LoginResponse, MFA_PORT, MIN_PASSWORD_LENGTH, Menu, MenuItem, type MenuItemVariant, MenuTrigger, MfaEnrollment, type MfaEnrollmentLabels, type MfaFailure, type MfaFormOwner, type MfaPort, type MfaProof, MfaSettings, type MfaSettingsLabels, MfaSettingsState, type MfaSetupResult, type MfaStatus, Modal, NavTab, NavTabs, type NavTabsOrientation, NotificationDot, type NotificationDotVariant, PASSKEY_NAME_MAX, PageHeader, type PageHeaderLevel, PageLayout, type PageLayoutAsidePosition, type PageLayoutAsideWidth, type PageLayoutWidth, Pagination, Panel, type PanelHeadingLevel, type Passkey, type PasskeyChallenge, type PasskeyFailure, type PasskeyNameProblem, PasskeySettings, type PasskeySettingsLabels, type PasswordGatedFailure, type PasswordProblem, PieChart, type PieSlice, type Point, type PointValue, Popover, type PopoverAlign, RadioGroup, type RadioOption, type RegisterFailure, type RegisterLabels, type ResetPasswordLabels, SaveStatus, type SaveStatusState, type Scale, SearchBar, type SearchBarCollapsible, type SearchResultCategory, SecretReveal, SegmentedControl, type SegmentedControlOption, type SegmentedControlSize, Select, type SelectOption, Skeleton, SkeletonList, type SkeletonListLeading, type SkeletonVariant, Slider, Sparkline, Spinner, type SpinnerSize, StatGrid, type StatGridColumns, StatTile, StatTileLink, type StatTileTrend, type StatTileTrendTone, Stepper, type StepperOrientation, type StepperStatus, type StepperStep, Switch, TOTP_QR_RENDERER, Tab, Table, type TableColumn, Tabs, Tag, TagInput, Textarea, type TimeTicks, type TimeUnit, TimelineChart, TimelineSeries, type ToastItem, type ToastVariant, Toaster, type ToasterPosition, Tooltip, type TooltipPoint, type TooltipPosition, type TooltipRow, type TotpEnrollment, TotpQr, type TotpQrLabels, type TotpQrRenderOptions, type TotpQrRenderer, Tree, type TreeNode, USERNAME_PATTERN, UserChip, type UserChipSize, type UsernameProblem, type WeekStartsOn, accountName, activationToken, arcPath, areaPath, bandScale, base64UrlToBuffer, bufferToBase64Url, classifyActivateFailure, classifyMfaFailure, classifyPasskeyError, classifyPasswordFailure, classifyRegisterFailure, computeInitials, copyToClipboard, createListToolbarState, createPasskeyCredential, emailProblem, formatBytes, formatCompact, formatDateTime, formatDuration, formatNumber, formatPercent, formatRelativeTime, getPasskeyAssertion, isAuthPortError, isTooManyPasskeys, linePath, linearScale, matchCommand, nearestIndex, niceTicks, niceXDomain, niceYDomain, passkeyNameProblem, passkeysSupported, passwordProblem, portErrorMessage, provideAuthLabels, selectContents, shortcutLabel, timeScale, timeTicks, usernameProblem };
|