@4sh/ui-kit 0.6.1 → 0.7.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.fr.md +46 -22
- package/README.md +45 -23
- package/fesm2022/4sh-ui-kit-actions-ui-button-split.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs +2 -2
- package/fesm2022/4sh-ui-kit-actions-ui-button.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-link.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs +439 -0
- package/fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-base-ui-icon.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs +111 -10
- package/fesm2022/4sh-ui-kit-base-ui-image.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs +10 -4
- package/fesm2022/4sh-ui-kit-forms-ui-autocomplete.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-checkbox.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs +457 -75
- package/fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs +1107 -0
- package/fesm2022/4sh-ui-kit-forms-ui-editor.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs +30 -3
- package/fesm2022/4sh-ui-kit-forms-ui-field.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-file-upload.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-mask.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs +15 -2
- package/fesm2022/4sh-ui-kit-forms-ui-input-number.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-otp.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs +8 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input-tags.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs +40 -4
- package/fesm2022/4sh-ui-kit-forms-ui-input.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs +2 -2
- package/fesm2022/4sh-ui-kit-forms-ui-label.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-nudger.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-radio.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-rating.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-segment-control.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs +5 -2
- package/fesm2022/4sh-ui-kit-forms-ui-select.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-slider.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs +317 -0
- package/fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs +8 -2
- package/fesm2022/4sh-ui-kit-forms-ui-textarea.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs +372 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs.map +1 -0
- package/fesm2022/4sh-ui-kit-forms-ui-toggle.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-forms.mjs +44 -14
- package/fesm2022/4sh-ui-kit-forms.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-accordion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-alert.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar-group.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-avatar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-badge.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-chip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-empty-state.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-helper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-progress-bar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-read-only.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-separator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-skeleton.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-spinner.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tag.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-toast.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs +2 -2
- package/fesm2022/4sh-ui-kit-informative-ui-tooltip.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-card.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-drawer.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs +45 -4
- package/fesm2022/4sh-ui-kit-layout-ui-modal.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-layout-ui-popover.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-motion.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs +2 -2
- package/fesm2022/4sh-ui-kit-navigation-ui-breadcrumb.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-context-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-menu.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-sidebar.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs +22 -10
- package/fesm2022/4sh-ui-kit-navigation-ui-stepper.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs +15 -4
- package/fesm2022/4sh-ui-kit-navigation-ui-tabs.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-overlay.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-paginator.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs +2 -2
- package/fesm2022/4sh-ui-kit-table-ui-table.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit-theming.mjs.map +1 -1
- package/fesm2022/4sh-ui-kit.mjs.map +1 -1
- package/mcp/data/text-search-docs.json +654 -74
- package/mcp/data/ui-config.json +5908 -3732
- package/mcp/index.js +682 -410
- package/mcp/package.json +1 -1
- package/package.json +17 -1
- package/schematics/index.cjs +1 -1
- package/styles/component-vars.scss +119 -2
- package/styles/generated/_tokens-breakpoint.scss +1 -1
- package/styles/generated/_tokens-metrics.scss +1 -1
- package/styles/generated/_tokens-primitives.scss +1 -1
- package/styles/generated/_tokens-responsive.scss +17 -17
- package/styles/generated/_tokens-semantics.scss +15 -15
- package/styles/generated/_tokens-styles.scss +1 -1
- package/styles/generated/_tokens-transitions.scss +1 -1
- package/styles/generated/_tokens-typography.scss +1 -1
- package/styles/generated/_tokens.scss +1 -1
- package/styles/utils/_helpers.scss +15 -0
- package/styles/utils/_mixins.scss +17 -1
- package/styles.css +1 -1
- package/types/4sh-ui-kit-actions-ui-speed-dial.d.ts +234 -0
- package/types/4sh-ui-kit-base-ui-image.d.ts +16 -3
- package/types/4sh-ui-kit-forms-ui-autocomplete.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-datepicker.d.ts +186 -36
- package/types/4sh-ui-kit-forms-ui-editor.d.ts +481 -0
- package/types/4sh-ui-kit-forms-ui-field.d.ts +20 -2
- package/types/4sh-ui-kit-forms-ui-input-mask.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-input-number.d.ts +9 -0
- package/types/4sh-ui-kit-forms-ui-input-tags.d.ts +4 -1
- package/types/4sh-ui-kit-forms-ui-input.d.ts +28 -2
- package/types/4sh-ui-kit-forms-ui-select.d.ts +2 -0
- package/types/4sh-ui-kit-forms-ui-swatch-picker.d.ts +126 -0
- package/types/4sh-ui-kit-forms-ui-textarea.d.ts +4 -0
- package/types/4sh-ui-kit-forms-ui-toggle-button.d.ts +220 -0
- package/types/4sh-ui-kit-forms.d.ts +34 -7
- package/types/4sh-ui-kit-layout-ui-modal.d.ts +7 -0
- package/types/4sh-ui-kit-navigation-ui-stepper.d.ts +8 -3
- package/types/4sh-ui-kit-navigation-ui-tabs.d.ts +14 -3
package/mcp/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4sh/ui-kit-mcp",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "MCP server exposing the @4sh/ui-kit design system (components, props, tokens, doc) to AI coding agents. Not published on its own: bundled at build time into @4sh/ui-kit (library mode) and @4sh/ui-kit-schematics (starter mode) — see scripts/mcp-bundle.build.mjs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4sh/ui-kit",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Headless Angular components from the 4SH Design System: signals + Angular CDK, styled exclusively through design tokens. Ships a companion MCP server exposing the kit catalog and doc to AI coding agents.",
|
|
5
5
|
"homepage": "https://4sh.github.io/starter-angular/?path=/docs/introduction--docs",
|
|
6
6
|
"repository": {
|
|
@@ -69,6 +69,10 @@
|
|
|
69
69
|
"types": "./types/4sh-ui-kit-actions-ui-link.d.ts",
|
|
70
70
|
"default": "./fesm2022/4sh-ui-kit-actions-ui-link.mjs"
|
|
71
71
|
},
|
|
72
|
+
"./actions/ui-speed-dial": {
|
|
73
|
+
"types": "./types/4sh-ui-kit-actions-ui-speed-dial.d.ts",
|
|
74
|
+
"default": "./fesm2022/4sh-ui-kit-actions-ui-speed-dial.mjs"
|
|
75
|
+
},
|
|
72
76
|
"./base/ui-icon": {
|
|
73
77
|
"types": "./types/4sh-ui-kit-base-ui-icon.d.ts",
|
|
74
78
|
"default": "./fesm2022/4sh-ui-kit-base-ui-icon.mjs"
|
|
@@ -93,6 +97,10 @@
|
|
|
93
97
|
"types": "./types/4sh-ui-kit-forms-ui-datepicker.d.ts",
|
|
94
98
|
"default": "./fesm2022/4sh-ui-kit-forms-ui-datepicker.mjs"
|
|
95
99
|
},
|
|
100
|
+
"./forms/ui-editor": {
|
|
101
|
+
"types": "./types/4sh-ui-kit-forms-ui-editor.d.ts",
|
|
102
|
+
"default": "./fesm2022/4sh-ui-kit-forms-ui-editor.mjs"
|
|
103
|
+
},
|
|
96
104
|
"./forms/ui-field": {
|
|
97
105
|
"types": "./types/4sh-ui-kit-forms-ui-field.d.ts",
|
|
98
106
|
"default": "./fesm2022/4sh-ui-kit-forms-ui-field.mjs"
|
|
@@ -153,6 +161,10 @@
|
|
|
153
161
|
"types": "./types/4sh-ui-kit-forms-ui-slider.d.ts",
|
|
154
162
|
"default": "./fesm2022/4sh-ui-kit-forms-ui-slider.mjs"
|
|
155
163
|
},
|
|
164
|
+
"./forms/ui-swatch-picker": {
|
|
165
|
+
"types": "./types/4sh-ui-kit-forms-ui-swatch-picker.d.ts",
|
|
166
|
+
"default": "./fesm2022/4sh-ui-kit-forms-ui-swatch-picker.mjs"
|
|
167
|
+
},
|
|
156
168
|
"./forms/ui-textarea": {
|
|
157
169
|
"types": "./types/4sh-ui-kit-forms-ui-textarea.d.ts",
|
|
158
170
|
"default": "./fesm2022/4sh-ui-kit-forms-ui-textarea.mjs"
|
|
@@ -161,6 +173,10 @@
|
|
|
161
173
|
"types": "./types/4sh-ui-kit-forms-ui-toggle.d.ts",
|
|
162
174
|
"default": "./fesm2022/4sh-ui-kit-forms-ui-toggle.mjs"
|
|
163
175
|
},
|
|
176
|
+
"./forms/ui-toggle-button": {
|
|
177
|
+
"types": "./types/4sh-ui-kit-forms-ui-toggle-button.d.ts",
|
|
178
|
+
"default": "./fesm2022/4sh-ui-kit-forms-ui-toggle-button.mjs"
|
|
179
|
+
},
|
|
164
180
|
"./informative/ui-accordion": {
|
|
165
181
|
"types": "./types/4sh-ui-kit-informative-ui-accordion.d.ts",
|
|
166
182
|
"default": "./fesm2022/4sh-ui-kit-informative-ui-accordion.mjs"
|
package/schematics/index.cjs
CHANGED
|
@@ -51,7 +51,7 @@ function ngAdd() {
|
|
|
51
51
|
"@4sh/ui-kit vient d'être ajouté à votre package.json par la CLI avant ce",
|
|
52
52
|
'contrôle — retirez-le si vous vouliez le starter. Si vous vouliez vraiment',
|
|
53
53
|
'le mode librairie, gardez-le et suivez les étapes manuelles du README',
|
|
54
|
-
"(
|
|
54
|
+
"(installer la dépendance suffit, `ng add` n'était pas nécessaire).",
|
|
55
55
|
'',
|
|
56
56
|
].join('\n'),
|
|
57
57
|
);
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
// For a value shared by the whole kit (spacing, radius, control size), retune the
|
|
11
11
|
// design token instead — it follows brand, light/dark and viewport.
|
|
12
12
|
//
|
|
13
|
-
// Generated by `
|
|
14
|
-
// edit here.
|
|
13
|
+
// Generated by `pnpm docs:config`, values read from the compiled CSS — do not
|
|
14
|
+
// edit here. 686 variables; 22 more exist whose value depends on the
|
|
15
15
|
// rendered variant, listed in each component’s “Theming” section in Storybook.
|
|
16
16
|
// =====================================================================
|
|
17
17
|
|
|
@@ -57,6 +57,18 @@
|
|
|
57
57
|
--ui-link-font-size: var(--size-typography-text-default);
|
|
58
58
|
--ui-link-font-size-small: var(--size-typography-text-md);
|
|
59
59
|
|
|
60
|
+
// ── ui-speed-dial ──
|
|
61
|
+
// Espacements
|
|
62
|
+
--ui-speed-dial-item-gap: var(--units-sm);
|
|
63
|
+
// Bordures & rayons
|
|
64
|
+
--ui-speed-dial-radius: calc(2 * var(--size-components-default));
|
|
65
|
+
// Couleurs
|
|
66
|
+
--ui-speed-dial-mask-background: var(--primitives-black-50);
|
|
67
|
+
// Motion
|
|
68
|
+
--ui-speed-dial-item-delay: var(--transition-fast);
|
|
69
|
+
// Divers
|
|
70
|
+
--ui-speed-dial-z-index: 10;
|
|
71
|
+
|
|
60
72
|
// ══════════════════════════════════════════════════════════════════
|
|
61
73
|
// Base
|
|
62
74
|
// ══════════════════════════════════════════════════════════════════
|
|
@@ -134,6 +146,7 @@
|
|
|
134
146
|
--ui-datepicker-cell-min-height: var(--size-components-sm);
|
|
135
147
|
--ui-datepicker-day-size: var(--size-components-default);
|
|
136
148
|
--ui-datepicker-nav-size: var(--size-components-default);
|
|
149
|
+
--ui-datepicker-panel-max-height: calc(100dvh - var(--units-3xl));
|
|
137
150
|
--ui-datepicker-panel-max-width: calc(100vw - var(--units-lg));
|
|
138
151
|
--ui-datepicker-panel-width: 22.5rem;
|
|
139
152
|
--ui-datepicker-time-btn-height: var(--size-components-2xs);
|
|
@@ -176,11 +189,67 @@
|
|
|
176
189
|
--ui-datepicker-time-font-size: var(--size-typography-title-md);
|
|
177
190
|
--ui-datepicker-title-font-size: var(--size-typography-title-md);
|
|
178
191
|
--ui-datepicker-weekday-font-size: var(--size-typography-text-md);
|
|
192
|
+
// Couleurs
|
|
193
|
+
--ui-datepicker-day-color-outside: var(--global-text-default);
|
|
194
|
+
--ui-datepicker-range-background: var(--informative-highlightlow-surface-hover);
|
|
195
|
+
--ui-datepicker-range-color: var(--informative-highlightlow-content-default);
|
|
179
196
|
// Divers
|
|
180
197
|
--ui-datepicker-day-opacity-disabled: 0.45;
|
|
181
198
|
--ui-datepicker-day-opacity-outside: 0.6;
|
|
182
199
|
--ui-datepicker-panel-shadow: var(--ui-overlay-panel-shadow, var(--shadow-default-md));
|
|
183
200
|
|
|
201
|
+
// ── ui-editor ──
|
|
202
|
+
// Dimensions
|
|
203
|
+
--ui-editor-max-height: none;
|
|
204
|
+
--ui-editor-select-width: 13ch;
|
|
205
|
+
--ui-editor-separator-height: var(--size-typography-text-default);
|
|
206
|
+
--ui-editor-separator-width: var(--stroke-sm);
|
|
207
|
+
--ui-editor-swatch-indicator-height: var(--stroke-lg);
|
|
208
|
+
// Espacements
|
|
209
|
+
--ui-editor-block-gap: var(--units-sm);
|
|
210
|
+
--ui-editor-code-padding-x: var(--units-md);
|
|
211
|
+
--ui-editor-code-padding-y: var(--units-sm);
|
|
212
|
+
--ui-editor-list-item-gap: var(--units-2xs);
|
|
213
|
+
--ui-editor-list-padding-inline-start: var(--units-xl);
|
|
214
|
+
--ui-editor-padding-x: var(--ui-form-field-padding-x, var(--units-md));
|
|
215
|
+
--ui-editor-padding-y: var(--ui-form-textarea-padding-y, var(--units-default));
|
|
216
|
+
--ui-editor-padding-y-small: var(--ui-form-textarea-padding-y-small, var(--units-md));
|
|
217
|
+
--ui-editor-swatch-indicator-offset-x: var(--units-2xs);
|
|
218
|
+
--ui-editor-toolbar-gap: var(--units-2xs);
|
|
219
|
+
--ui-editor-toolbar-padding-x: var(--units-xs);
|
|
220
|
+
--ui-editor-toolbar-padding-y: var(--units-2xs);
|
|
221
|
+
// Bordures & rayons
|
|
222
|
+
--ui-editor-code-radius: var(--radius-xs);
|
|
223
|
+
--ui-editor-radius: inherit;
|
|
224
|
+
--ui-editor-toolbar-stroke-width: var(--ui-control-stroke-width, var(--stroke-default));
|
|
225
|
+
// Typographie
|
|
226
|
+
--ui-editor-bold-weight: var(--weight-bold);
|
|
227
|
+
--ui-editor-code-font-size: var(--size-typography-text-md);
|
|
228
|
+
--ui-editor-count-font-size: var(--size-typography-text-md);
|
|
229
|
+
--ui-editor-count-font-size-small: var(--size-typography-text-sm);
|
|
230
|
+
--ui-editor-font-size: var(--size-typography-text-default);
|
|
231
|
+
--ui-editor-font-size-small: var(--size-typography-text-md);
|
|
232
|
+
--ui-editor-heading-1-font-size: var(--size-typography-title-lg);
|
|
233
|
+
--ui-editor-heading-2-font-size: var(--size-typography-title-md);
|
|
234
|
+
--ui-editor-heading-3-font-size: var(--size-typography-title-sm);
|
|
235
|
+
--ui-editor-heading-line-height: 1.25;
|
|
236
|
+
--ui-editor-heading-weight: var(--weight-bold);
|
|
237
|
+
--ui-editor-line-height: 1.5;
|
|
238
|
+
--ui-editor-size-default-font-size: var(--size-typography-text-default);
|
|
239
|
+
--ui-editor-size-lg-font-size: var(--size-typography-text-lg);
|
|
240
|
+
--ui-editor-size-sm-font-size: var(--size-typography-text-sm);
|
|
241
|
+
--ui-editor-size-xl-font-size: var(--size-typography-text-xl);
|
|
242
|
+
// Couleurs
|
|
243
|
+
--ui-editor-code-color: var(--global-text-default);
|
|
244
|
+
--ui-editor-code-surface: var(--global-background-muted);
|
|
245
|
+
--ui-editor-link-color: var(--global-text-brand);
|
|
246
|
+
--ui-editor-placeholder-color: var(--form-low-content-default);
|
|
247
|
+
--ui-editor-separator-color: var(--form-low-stroke-default);
|
|
248
|
+
--ui-editor-toolbar-stroke: var(--form-low-stroke-default);
|
|
249
|
+
--ui-editor-toolbar-surface: var(--global-background-muted);
|
|
250
|
+
// Divers
|
|
251
|
+
--ui-editor-link-text-decoration: underline;
|
|
252
|
+
|
|
184
253
|
// ── ui-field ──
|
|
185
254
|
// Dimensions
|
|
186
255
|
--ui-field-height: var(--ui-form-field-height, var(--size-components-default));
|
|
@@ -190,6 +259,11 @@
|
|
|
190
259
|
--ui-field-padding-y-auto-height: var(--units-xs);
|
|
191
260
|
// Espacements
|
|
192
261
|
--ui-field-box-gap: var(--ui-form-field-gap, var(--units-sm));
|
|
262
|
+
--ui-field-float-label-indent: calc(var(--ui-icon-size-md, var(--size-typography-icon-md)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))));
|
|
263
|
+
--ui-field-float-label-indent-small: calc(var(--ui-icon-size-sm, var(--size-typography-icon-sm)) + var(--ui-field-box-gap, var(--ui-form-field-gap, var(--units-sm))));
|
|
264
|
+
--ui-field-float-label-offset-x: var(--ui-form-field-padding-x, var(--units-md));
|
|
265
|
+
--ui-field-float-label-offset-y: var(--units-2xs);
|
|
266
|
+
--ui-field-float-label-padding-x: var(--units-2xs);
|
|
193
267
|
--ui-field-footer-gap: var(--units-sm);
|
|
194
268
|
--ui-field-gap: var(--units-xs);
|
|
195
269
|
--ui-field-gap-small: var(--units-xs);
|
|
@@ -197,6 +271,12 @@
|
|
|
197
271
|
--ui-field-focus-ring-width: var(--ui-focus-ring-width, var(--units-2xs));
|
|
198
272
|
--ui-field-radius: var(--ui-form-field-radius, var(--radius-sm));
|
|
199
273
|
--ui-field-stroke-width: var(--ui-control-stroke-width, var(--stroke-default));
|
|
274
|
+
// Typographie
|
|
275
|
+
--ui-field-float-label-font-size: var(--size-typography-text-sm);
|
|
276
|
+
--ui-field-float-label-line-height: 1.25;
|
|
277
|
+
// Motion
|
|
278
|
+
--ui-field-float-label-scale: 1.3333;
|
|
279
|
+
--ui-field-float-label-scale-small: 1.1667;
|
|
200
280
|
// Divers
|
|
201
281
|
--ui-field-box-cursor: text;
|
|
202
282
|
--ui-field-focus-ring-opacity: 50%;
|
|
@@ -468,6 +548,20 @@
|
|
|
468
548
|
--ui-slider-mark-radius: var(--radius-full);
|
|
469
549
|
--ui-slider-track-radius: var(--radius-full);
|
|
470
550
|
|
|
551
|
+
// ── ui-swatch-picker ──
|
|
552
|
+
// Dimensions
|
|
553
|
+
--ui-swatch-picker-cell-size: 2rem;
|
|
554
|
+
--ui-swatch-picker-cell-size-small: 1.5rem;
|
|
555
|
+
--ui-swatch-picker-selected-ring-width: var(--stroke-lg);
|
|
556
|
+
// Espacements
|
|
557
|
+
--ui-swatch-picker-gap: var(--units-xs);
|
|
558
|
+
--ui-swatch-picker-gap-small: var(--units-2xs);
|
|
559
|
+
--ui-swatch-picker-panel-padding: var(--ui-overlay-panel-padding, var(--units-sm));
|
|
560
|
+
// Bordures & rayons
|
|
561
|
+
--ui-swatch-picker-focus-ring-width: var(--ui-focus-ring-width, var(--units-2xs));
|
|
562
|
+
--ui-swatch-picker-stroke-width: var(--ui-control-stroke-width, var(--stroke-default));
|
|
563
|
+
--ui-swatch-picker-swatch-radius: var(--radius-xs);
|
|
564
|
+
|
|
471
565
|
// ── ui-textarea ──
|
|
472
566
|
// Dimensions
|
|
473
567
|
--ui-textarea-min-height: var(--ui-form-textarea-min-height, var(--size-components-sm));
|
|
@@ -506,6 +600,27 @@
|
|
|
506
600
|
--ui-toggle-font-size: var(--size-typography-text-default);
|
|
507
601
|
--ui-toggle-font-size-small: var(--size-typography-text-md);
|
|
508
602
|
|
|
603
|
+
// ── ui-toggle-button ──
|
|
604
|
+
// Dimensions
|
|
605
|
+
--ui-toggle-button-height: var(--size-components-default);
|
|
606
|
+
--ui-toggle-button-height-large: var(--size-components-lg);
|
|
607
|
+
--ui-toggle-button-height-small: var(--size-components-sm);
|
|
608
|
+
// Espacements
|
|
609
|
+
--ui-toggle-button-gap: var(--units-sm);
|
|
610
|
+
--ui-toggle-button-group-gap: var(--units-sm);
|
|
611
|
+
--ui-toggle-button-padding-x: var(--units-default);
|
|
612
|
+
--ui-toggle-button-padding-x-large: var(--units-lg);
|
|
613
|
+
--ui-toggle-button-padding-x-small: var(--units-md);
|
|
614
|
+
// Bordures & rayons
|
|
615
|
+
--ui-toggle-button-focus-ring-width: var(--ui-focus-ring-width, var(--units-2xs));
|
|
616
|
+
--ui-toggle-button-radius: var(--radius-sm);
|
|
617
|
+
--ui-toggle-button-radius-rounded: var(--radius-full);
|
|
618
|
+
--ui-toggle-button-stroke-width: var(--ui-control-stroke-width, var(--stroke-default));
|
|
619
|
+
// Typographie
|
|
620
|
+
--ui-toggle-button-font-size: var(--size-typography-text-default);
|
|
621
|
+
--ui-toggle-button-font-size-large: var(--size-typography-text-lg);
|
|
622
|
+
--ui-toggle-button-font-size-small: var(--size-typography-text-md);
|
|
623
|
+
|
|
509
624
|
// ══════════════════════════════════════════════════════════════════
|
|
510
625
|
// Informatif
|
|
511
626
|
// ══════════════════════════════════════════════════════════════════
|
|
@@ -907,6 +1022,8 @@
|
|
|
907
1022
|
--ui-form-control-gap: var(--units-sm);
|
|
908
1023
|
--ui-form-field-gap: var(--units-sm);
|
|
909
1024
|
--ui-form-field-padding-x: var(--units-md);
|
|
1025
|
+
--ui-form-textarea-padding-y: var(--units-default);
|
|
1026
|
+
--ui-form-textarea-padding-y-small: var(--units-md);
|
|
910
1027
|
--ui-overlay-panel-padding: var(--units-sm);
|
|
911
1028
|
// Bordures & rayons
|
|
912
1029
|
--ui-avatar-square-radius: var(--radius-md);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
$breakpoint-phone: 0;
|
|
4
4
|
$breakpoint-tabletPortrait: 600px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--primitives-switchbrand-name: Brand 1;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--screen-width: 402px;
|
|
@@ -31,16 +31,16 @@
|
|
|
31
31
|
--size-typography-icon-lg: 24px;
|
|
32
32
|
--size-typography-icon-xl: 32px;
|
|
33
33
|
}
|
|
34
|
-
@media (min-width:
|
|
34
|
+
@media (min-width: 1024px) {
|
|
35
35
|
:root {
|
|
36
|
-
--screen-width:
|
|
37
|
-
--screen-height:
|
|
38
|
-
--spacing-default: var(--units-
|
|
39
|
-
--grid-columns:
|
|
36
|
+
--screen-width: 1024px;
|
|
37
|
+
--screen-height: 1366px;
|
|
38
|
+
--spacing-default: var(--units-md);
|
|
39
|
+
--grid-columns: 8;
|
|
40
40
|
--size-components-2xs: 24px;
|
|
41
|
-
--size-components-xs:
|
|
42
|
-
--size-components-sm:
|
|
43
|
-
--size-components-default:
|
|
41
|
+
--size-components-xs: 30px;
|
|
42
|
+
--size-components-sm: 36px;
|
|
43
|
+
--size-components-default: 40px;
|
|
44
44
|
--size-components-lg: 44px;
|
|
45
45
|
--size-components-xl: 48px;
|
|
46
46
|
--size-typography-title-sm: 16px;
|
|
@@ -64,16 +64,16 @@
|
|
|
64
64
|
--size-typography-icon-xl: 32px;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
@media (min-width:
|
|
67
|
+
@media (min-width: 1440px) {
|
|
68
68
|
:root {
|
|
69
|
-
--screen-width:
|
|
70
|
-
--screen-height:
|
|
71
|
-
--spacing-default: var(--units-
|
|
72
|
-
--grid-columns:
|
|
69
|
+
--screen-width: 1440px;
|
|
70
|
+
--screen-height: 1024px;
|
|
71
|
+
--spacing-default: var(--units-default);
|
|
72
|
+
--grid-columns: 12;
|
|
73
73
|
--size-components-2xs: 24px;
|
|
74
|
-
--size-components-xs:
|
|
75
|
-
--size-components-sm:
|
|
76
|
-
--size-components-default:
|
|
74
|
+
--size-components-xs: 28px;
|
|
75
|
+
--size-components-sm: 32px;
|
|
76
|
+
--size-components-default: 36px;
|
|
77
77
|
--size-components-lg: 44px;
|
|
78
78
|
--size-components-xl: 48px;
|
|
79
79
|
--size-typography-title-sm: 16px;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
:root, [data-theme='light'], .light {
|
|
4
4
|
--global-background-default: var(--primitives-grey-50);
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
--actions-highghost-stroke-focused: var(--primitives-primary-700);
|
|
61
61
|
--actions-highghost-stroke-pressed: var(--primitives-transparent-base);
|
|
62
62
|
--actions-highghost-stroke-disabled: var(--primitives-transparent-base);
|
|
63
|
-
--actions-low-content-default: var(--primitives-slate-
|
|
64
|
-
--actions-low-content-hover: var(--primitives-slate-
|
|
63
|
+
--actions-low-content-default: var(--primitives-slate-600);
|
|
64
|
+
--actions-low-content-hover: var(--primitives-slate-700);
|
|
65
65
|
--actions-low-content-focused: var(--primitives-slate-800);
|
|
66
66
|
--actions-low-content-pressed: var(--primitives-slate-800);
|
|
67
67
|
--actions-low-content-disabled: var(--primitives-slate-300);
|
|
@@ -110,8 +110,8 @@
|
|
|
110
110
|
--actions-success-content-focused: var(--primitives-white-base);
|
|
111
111
|
--actions-success-content-pressed: var(--primitives-white-base);
|
|
112
112
|
--actions-success-content-disabled: var(--primitives-white-base);
|
|
113
|
-
--actions-success-surface-default: var(--primitives-green-
|
|
114
|
-
--actions-success-surface-hover: var(--primitives-green-
|
|
113
|
+
--actions-success-surface-default: var(--primitives-green-700);
|
|
114
|
+
--actions-success-surface-hover: var(--primitives-green-800);
|
|
115
115
|
--actions-success-surface-focused: var(--primitives-green-800);
|
|
116
116
|
--actions-success-surface-pressed: var(--primitives-green-900);
|
|
117
117
|
--actions-success-surface-disabled: var(--primitives-green-200);
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
--actions-warning-content-focused: var(--primitives-white-base);
|
|
156
156
|
--actions-warning-content-pressed: var(--primitives-white-base);
|
|
157
157
|
--actions-warning-content-disabled: var(--primitives-white-base);
|
|
158
|
-
--actions-warning-surface-default: var(--primitives-orange-
|
|
159
|
-
--actions-warning-surface-hover: var(--primitives-orange-
|
|
158
|
+
--actions-warning-surface-default: var(--primitives-orange-700);
|
|
159
|
+
--actions-warning-surface-hover: var(--primitives-orange-800);
|
|
160
160
|
--actions-warning-surface-focused: var(--primitives-orange-800);
|
|
161
161
|
--actions-warning-surface-pressed: var(--primitives-orange-900);
|
|
162
162
|
--actions-warning-surface-disabled: var(--primitives-orange-200);
|
|
@@ -200,7 +200,7 @@
|
|
|
200
200
|
--actions-error-content-focused: var(--primitives-white-base);
|
|
201
201
|
--actions-error-content-pressed: var(--primitives-white-base);
|
|
202
202
|
--actions-error-content-disabled: var(--primitives-white-base);
|
|
203
|
-
--actions-error-surface-default: var(--primitives-red-
|
|
203
|
+
--actions-error-surface-default: var(--primitives-red-600);
|
|
204
204
|
--actions-error-surface-hover: var(--primitives-red-700);
|
|
205
205
|
--actions-error-surface-focused: var(--primitives-red-800);
|
|
206
206
|
--actions-error-surface-pressed: var(--primitives-red-900);
|
|
@@ -536,8 +536,8 @@
|
|
|
536
536
|
--informative-highlightlow-stroke-hover: var(--primitives-primary-700);
|
|
537
537
|
--informative-successhigh-content-default: var(--primitives-white-base);
|
|
538
538
|
--informative-successhigh-content-hover: var(--primitives-white-base);
|
|
539
|
-
--informative-successhigh-surface-default: var(--primitives-green-
|
|
540
|
-
--informative-successhigh-surface-hover: var(--primitives-green-
|
|
539
|
+
--informative-successhigh-surface-default: var(--primitives-green-700);
|
|
540
|
+
--informative-successhigh-surface-hover: var(--primitives-green-800);
|
|
541
541
|
--informative-successhigh-stroke-default: var(--primitives-green-500);
|
|
542
542
|
--informative-successhigh-stroke-hover: var(--primitives-green-700);
|
|
543
543
|
--informative-successlow-content-default: var(--primitives-green-700);
|
|
@@ -548,8 +548,8 @@
|
|
|
548
548
|
--informative-successlow-stroke-hover: var(--primitives-green-700);
|
|
549
549
|
--informative-warninghigh-content-default: var(--primitives-white-base);
|
|
550
550
|
--informative-warninghigh-content-hover: var(--primitives-white-base);
|
|
551
|
-
--informative-warninghigh-surface-default: var(--primitives-orange-
|
|
552
|
-
--informative-warninghigh-surface-hover: var(--primitives-orange-
|
|
551
|
+
--informative-warninghigh-surface-default: var(--primitives-orange-700);
|
|
552
|
+
--informative-warninghigh-surface-hover: var(--primitives-orange-800);
|
|
553
553
|
--informative-warninghigh-stroke-default: var(--primitives-orange-500);
|
|
554
554
|
--informative-warninghigh-stroke-hover: var(--primitives-orange-700);
|
|
555
555
|
--informative-warninglow-content-default: var(--primitives-orange-700);
|
|
@@ -560,7 +560,7 @@
|
|
|
560
560
|
--informative-warninglow-stroke-hover: var(--primitives-orange-700);
|
|
561
561
|
--informative-errorhigh-content-default: var(--primitives-white-base);
|
|
562
562
|
--informative-errorhigh-content-hover: var(--primitives-white-base);
|
|
563
|
-
--informative-errorhigh-surface-default: var(--primitives-red-
|
|
563
|
+
--informative-errorhigh-surface-default: var(--primitives-red-600);
|
|
564
564
|
--informative-errorhigh-surface-hover: var(--primitives-red-700);
|
|
565
565
|
--informative-errorhigh-stroke-default: var(--primitives-red-500);
|
|
566
566
|
--informative-errorhigh-stroke-hover: var(--primitives-red-600);
|
|
@@ -589,10 +589,10 @@
|
|
|
589
589
|
--navigation-high-stroke-active: var(--primitives-primary-500);
|
|
590
590
|
--navigation-high-stroke-disabled: var(--primitives-grey-500);
|
|
591
591
|
--navigation-highoutlined-content-default: var(--primitives-grey-900);
|
|
592
|
-
--navigation-highoutlined-content-hover: var(--primitives-primary-
|
|
592
|
+
--navigation-highoutlined-content-hover: var(--primitives-primary-600);
|
|
593
593
|
--navigation-highoutlined-content-focused: var(--primitives-primary-700);
|
|
594
594
|
--navigation-highoutlined-content-pressed: var(--primitives-primary-700);
|
|
595
|
-
--navigation-highoutlined-content-active: var(--primitives-primary-
|
|
595
|
+
--navigation-highoutlined-content-active: var(--primitives-primary-600);
|
|
596
596
|
--navigation-highoutlined-content-disabled: var(--primitives-grey-500);
|
|
597
597
|
--navigation-highoutlined-surface-default: var(--primitives-transparent-base);
|
|
598
598
|
--navigation-highoutlined-surface-hover: var(--primitives-primary-100);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--shadow-default-sm: 0px 0px 2px 1px var(--effects-default);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
:root {
|
|
4
4
|
--fontfamily-title: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* Generated by Style Dictionary
|
|
1
|
+
/* Generated by Style Dictionary : do not edit (run the `tokens:build` script, config in tokens.config.json). */
|
|
2
2
|
|
|
3
3
|
@use './tokens-metrics';
|
|
4
4
|
@use './tokens-primitives';
|
|
@@ -105,6 +105,21 @@
|
|
|
105
105
|
overflow-x: auto;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
+
/* Visible to assistive tech only: keeps a name on a control whose column/button shows
|
|
109
|
+
nothing (an empty `<th>`, an icon-only affordance). `display: none` would hide it from
|
|
110
|
+
screen readers too, which is the opposite of the intent. */
|
|
111
|
+
.sr-only {
|
|
112
|
+
position: absolute;
|
|
113
|
+
width: 1px;
|
|
114
|
+
height: 1px;
|
|
115
|
+
padding: 0;
|
|
116
|
+
margin: -1px;
|
|
117
|
+
overflow: hidden;
|
|
118
|
+
clip-path: inset(50%);
|
|
119
|
+
white-space: nowrap;
|
|
120
|
+
border: 0;
|
|
121
|
+
}
|
|
122
|
+
|
|
108
123
|
.visibility-hidden {
|
|
109
124
|
visibility: hidden;
|
|
110
125
|
}
|
|
@@ -76,6 +76,18 @@
|
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
|
|
79
|
+
/// Vertical room a floating `in` label reserves at the top of the field box.
|
|
80
|
+
/// Carried by the CONTROL, never by the box: affixes, actions and spinners then
|
|
81
|
+
/// keep centring on the box, and the control still spans it edge to edge (hit
|
|
82
|
+
/// area, caret zone, autofill background). Only for a DIRECT child of the box,
|
|
83
|
+
/// stretched to its height. `$extra` adds the control's own vertical inset.
|
|
84
|
+
/// e.g. @include utils.field-float-inset($padding-block);
|
|
85
|
+
@mixin field-float-inset($extra: 0px) {
|
|
86
|
+
// `--_field-inset-block-start` is set by `ui-field` on `.ui-field-box` in
|
|
87
|
+
// `_float-in` mode, and inherits down to the projected control.
|
|
88
|
+
padding-block-start: calc(#{$extra} + var(--_field-inset-block-start, 0px));
|
|
89
|
+
}
|
|
90
|
+
|
|
79
91
|
/// Bare native <input>/<textarea> filling the field box (no border/bg).
|
|
80
92
|
/// `$inset` = horizontal field inset owned by the control (see
|
|
81
93
|
/// `field-inset-edges`); pass `false` when the control is nested in a wrapper
|
|
@@ -94,7 +106,11 @@
|
|
|
94
106
|
font-size: var(--size-typography-text-default);
|
|
95
107
|
color: var(--form-high-content-default);
|
|
96
108
|
|
|
97
|
-
|
|
109
|
+
// `$inset: false` = nested in a wrapper that already carries both insets.
|
|
110
|
+
@if $inset {
|
|
111
|
+
@include field-inset-edges('padding', $inset);
|
|
112
|
+
@include field-float-inset;
|
|
113
|
+
}
|
|
98
114
|
|
|
99
115
|
&::placeholder {
|
|
100
116
|
color: var(--form-low-content-default);
|