@0001-labs/design-system-1 0.3.0-alpha.27 → 0.3.0-alpha.28
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/DS1/1-root/cjk.css +1 -1
- package/DS1/1-root/fonts.css +1 -1
- package/DS1/1-root/library-tokens.ts +1 -2
- package/DS1/1-root/one.css +1 -1
- package/DS1/1-root/palette.ts +3 -3
- package/README.md +8 -4
- package/dist/1-root/library-tokens.d.ts.map +1 -1
- package/dist/1-root/library-tokens.js +1 -2
- package/dist/1-root/palette.d.ts +2 -2
- package/dist/1-root/palette.d.ts.map +1 -1
- package/dist/1-root/palette.js +3 -3
- package/dist/design-system-1.bundle.js +15 -15
- package/dist/design-system-1.bundle.js.map +1 -1
- package/dist/design-system-1.bundle.min.js.map +1 -1
- package/package.json +2 -2
- package/DS1/1-root/one.semantic.css +0 -735
package/DS1/1-root/cjk.css
CHANGED
package/DS1/1-root/fonts.css
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// How a published design library reaches Design system 1's components. A library is a stylesheet
|
|
2
|
-
// its owner edits in the libraries app,
|
|
3
|
-
// (one.semantic.css) and its native selectors. DS1's components draw from `--ds-*` tokens
|
|
2
|
+
// its owner edits in the libraries app, including older `--one-*` tokens and native selectors. DS1's components draw from `--ds-*` tokens
|
|
4
3
|
// (component-tokens.css, component-metrics.css) and, in some faces, one.css's own names
|
|
5
4
|
// (`--accent-color`). Publishing prepares the library
|
|
6
5
|
// (packages/css-validate/src/library.ts): after each `--one-*` token below that the library
|
package/DS1/1-root/one.css
CHANGED
package/DS1/1-root/palette.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Design system 1's palette: one list, named by colour. The Colours page (website/src/pages/colours.astro)
|
|
2
|
-
// draws it and the
|
|
2
|
+
// draws it and the shared stylesheet (palette.css) carries it as tokens, written by
|
|
3
3
|
// scripts/write-palette-css.ts. Change a colour here, then run that script.
|
|
4
4
|
//
|
|
5
5
|
// Every palette colour has a pastel (its hue and saturation at 90% lightness) and a dark-mode version
|
|
@@ -77,7 +77,7 @@ export function palette(): PaletteColour[] {
|
|
|
77
77
|
export const paletteStart = ' /* Palette: written by scripts/write-palette-css.ts from DS1/1-root/palette.ts. */';
|
|
78
78
|
export const paletteEnd = ' /* Palette: end */';
|
|
79
79
|
|
|
80
|
-
/** The
|
|
80
|
+
/** The shared tokens: each colour and its pastel, both following the reader's light or dark mode. */
|
|
81
81
|
export function paletteCss(): string {
|
|
82
82
|
const lines = [paletteStart];
|
|
83
83
|
for (const c of palette()) {
|
|
@@ -91,7 +91,7 @@ export function paletteCss(): string {
|
|
|
91
91
|
}
|
|
92
92
|
|
|
93
93
|
/**
|
|
94
|
-
* The palette on its own, for a page that does not take the
|
|
94
|
+
* The palette on its own, for a page that does not take the shared sheet: palette.css,
|
|
95
95
|
* imported by one.css and copied by Sync 1's `root` and `tokens` exports.
|
|
96
96
|
*/
|
|
97
97
|
export function paletteSheet(): string {
|
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
A design system for building interfaces on a 20px grid. Typography, colour, spacing and components share the same rules.
|
|
4
4
|
|
|
5
|
-
Use
|
|
5
|
+
Use Lit Web Components directly in HTML, or through the React adapters. Change the design through CSS custom properties.
|
|
6
6
|
|
|
7
7
|
[Explore the system](https://designsystem1.com/) · [Try the workbench](https://designsystem1.com/app/) · [npm](https://www.npmjs.com/package/@0001-labs/design-system-1)
|
|
8
8
|
|
|
@@ -25,12 +25,16 @@ Then use the components in your HTML:
|
|
|
25
25
|
<ds-button>Save</ds-button>
|
|
26
26
|
```
|
|
27
27
|
|
|
28
|
-
For
|
|
28
|
+
For a plain HTML page, load the stylesheet and component module:
|
|
29
29
|
|
|
30
|
-
```
|
|
31
|
-
|
|
30
|
+
```html
|
|
31
|
+
<link rel="stylesheet" href="https://designsystem1.com/resources/design-system-1.css">
|
|
32
|
+
<script type="module" src="https://designsystem1.com/resources/design-system-1.js"></script>
|
|
33
|
+
<ds-button>Save</ds-button>
|
|
32
34
|
```
|
|
33
35
|
|
|
36
|
+
The module includes Lit. No package install or build step is needed for this setup.
|
|
37
|
+
|
|
34
38
|
The package is in alpha. APIs can change between releases.
|
|
35
39
|
|
|
36
40
|
## Four layers
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library-tokens.d.ts","sourceRoot":"","sources":["../../DS1/1-root/library-tokens.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"library-tokens.d.ts","sourceRoot":"","sources":["../../DS1/1-root/library-tokens.ts"],"names":[],"mappings":"AAWA,gGAAgG;AAChG,eAAO,MAAM,cAAc,8lEAyCoD,CAAC;AAEhF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,wBAAwB,CAAC;AAEzD,wHAAwH;AACxH,eAAO,MAAM,iBAAiB;;;;CAIpB,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,wBAAwB,yGAA4G,CAAC;AAElJ;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,wBAAwB,CAAC;AAEtD,4CAA4C;AAC5C,eAAO,MAAM,YAAY,GAAI,WAA+B,MAAM,WAA0D,CAAC;AAE7H,8GAA8G;AAC9G,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAE/D"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// How a published design library reaches Design system 1's components. A library is a stylesheet
|
|
2
|
-
// its owner edits in the libraries app,
|
|
3
|
-
// (one.semantic.css) and its native selectors. DS1's components draw from `--ds-*` tokens
|
|
2
|
+
// its owner edits in the libraries app, including older `--one-*` tokens and native selectors. DS1's components draw from `--ds-*` tokens
|
|
4
3
|
// (component-tokens.css, component-metrics.css) and, in some faces, one.css's own names
|
|
5
4
|
// (`--accent-color`). Publishing prepares the library
|
|
6
5
|
// (packages/css-validate/src/library.ts): after each `--one-*` token below that the library
|
package/dist/1-root/palette.d.ts
CHANGED
|
@@ -25,10 +25,10 @@ export interface PaletteColour {
|
|
|
25
25
|
export declare function palette(): PaletteColour[];
|
|
26
26
|
export declare const paletteStart = " /* Palette: written by scripts/write-palette-css.ts from DS1/1-root/palette.ts. */";
|
|
27
27
|
export declare const paletteEnd = " /* Palette: end */";
|
|
28
|
-
/** The
|
|
28
|
+
/** The shared tokens: each colour and its pastel, both following the reader's light or dark mode. */
|
|
29
29
|
export declare function paletteCss(): string;
|
|
30
30
|
/**
|
|
31
|
-
* The palette on its own, for a page that does not take the
|
|
31
|
+
* The palette on its own, for a page that does not take the shared sheet: palette.css,
|
|
32
32
|
* imported by one.css and copied by Sync 1's `root` and `tokens` exports.
|
|
33
33
|
*/
|
|
34
34
|
export declare function paletteSheet(): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../DS1/1-root/palette.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAOnC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAGzD,CAAC;AAEF,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpC,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAOtC;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI7D;AAED,eAAO,MAAM,KAAK,GAAI,UAAU,GAAG,KAAG,OAA+B,CAAC;AAEtE,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIxC;AACD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAwD;AACnG,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAA+D;AAEvG,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAmE,CAAC;AAE7G,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;IACrE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAC3D;AAED;8EAC8E;AAC9E,wBAAgB,OAAO,IAAI,aAAa,EAAE,CAezC;AAED,eAAO,MAAM,YAAY,yFAAyF,CAAC;AACnH,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,
|
|
1
|
+
{"version":3,"file":"palette.d.ts","sourceRoot":"","sources":["../../DS1/1-root/palette.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,EAOnC,CAAC;AAEF,8DAA8D;AAC9D,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAGzD,CAAC;AAEF,KAAK,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;AAEpC,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAOtC;AAED,wBAAgB,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAI7D;AAED,eAAO,MAAM,KAAK,GAAI,UAAU,GAAG,KAAG,OAA+B,CAAC;AAEtE,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAIxC;AACD,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAwD;AACnG,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAA+D;AAEvG,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,MAAmE,CAAC;AAE7G,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,OAAO,CAAC;IACrE,UAAU,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,GAAG,CAAC;CAC3D;AAED;8EAC8E;AAC9E,wBAAgB,OAAO,IAAI,aAAa,EAAE,CAezC;AAED,eAAO,MAAM,YAAY,yFAAyF,CAAC;AACnH,eAAO,MAAM,UAAU,yBAAyB,CAAC;AAEjD,qGAAqG;AACrG,wBAAgB,UAAU,IAAI,MAAM,CAUnC;AAED;;;GAGG;AACH,wBAAgB,YAAY,IAAI,MAAM,CAarC"}
|
package/dist/1-root/palette.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Design system 1's palette: one list, named by colour. The Colours page (website/src/pages/colours.astro)
|
|
2
|
-
// draws it and the
|
|
2
|
+
// draws it and the shared stylesheet (palette.css) carries it as tokens, written by
|
|
3
3
|
// scripts/write-palette-css.ts. Change a colour here, then run that script.
|
|
4
4
|
//
|
|
5
5
|
// Every palette colour has a pastel (its hue and saturation at 90% lightness) and a dark-mode version
|
|
@@ -67,7 +67,7 @@ export function palette() {
|
|
|
67
67
|
}
|
|
68
68
|
export const paletteStart = ' /* Palette: written by scripts/write-palette-css.ts from DS1/1-root/palette.ts. */';
|
|
69
69
|
export const paletteEnd = ' /* Palette: end */';
|
|
70
|
-
/** The
|
|
70
|
+
/** The shared tokens: each colour and its pastel, both following the reader's light or dark mode. */
|
|
71
71
|
export function paletteCss() {
|
|
72
72
|
const lines = [paletteStart];
|
|
73
73
|
for (const c of palette()) {
|
|
@@ -82,7 +82,7 @@ export function paletteCss() {
|
|
|
82
82
|
return lines.join('\n');
|
|
83
83
|
}
|
|
84
84
|
/**
|
|
85
|
-
* The palette on its own, for a page that does not take the
|
|
85
|
+
* The palette on its own, for a page that does not take the shared sheet: palette.css,
|
|
86
86
|
* imported by one.css and copied by Sync 1's `root` and `tokens` exports.
|
|
87
87
|
*/
|
|
88
88
|
export function paletteSheet() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
//#region node_modules/.pnpm/signal-polyfill@0.2.2/node_modules/signal-polyfill/dist/index.js
|
|
1
|
+
//#region ../../../Design system 1/node_modules/.pnpm/signal-polyfill@0.2.2/node_modules/signal-polyfill/dist/index.js
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, {
|
|
4
4
|
enumerable: true,
|
|
@@ -494,7 +494,7 @@ new FinalizationRegistry((({ watcher: t, signal: i }) => {
|
|
|
494
494
|
t.unwatch(i);
|
|
495
495
|
}));
|
|
496
496
|
//#endregion
|
|
497
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directive.js
|
|
497
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directive.js
|
|
498
498
|
/**
|
|
499
499
|
* @license
|
|
500
500
|
* Copyright 2017 Google LLC
|
|
@@ -528,7 +528,7 @@ var i$7 = class {
|
|
|
528
528
|
}
|
|
529
529
|
};
|
|
530
530
|
//#endregion
|
|
531
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
|
|
531
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/lit-html.js
|
|
532
532
|
/**
|
|
533
533
|
* @license
|
|
534
534
|
* Copyright 2017 Google LLC
|
|
@@ -847,7 +847,7 @@ var D = (t, i, s) => {
|
|
|
847
847
|
o._$AR(), o._$AA.remove();
|
|
848
848
|
};
|
|
849
849
|
//#endregion
|
|
850
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/async-directive.js
|
|
850
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/async-directive.js
|
|
851
851
|
/**
|
|
852
852
|
* @license
|
|
853
853
|
* Copyright 2017 Google LLC
|
|
@@ -3841,7 +3841,7 @@ function connectSidebar(tree) {
|
|
|
3841
3841
|
};
|
|
3842
3842
|
}
|
|
3843
3843
|
//#endregion
|
|
3844
|
-
//#region node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
|
|
3844
|
+
//#region ../../../Design system 1/node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/css-tag.js
|
|
3845
3845
|
/**
|
|
3846
3846
|
* @license
|
|
3847
3847
|
* Copyright 2019 Google LLC
|
|
@@ -3890,7 +3890,7 @@ var c$2 = e$2 ? (t) => t : (t) => t instanceof CSSStyleSheet ? ((t) => {
|
|
|
3890
3890
|
return r$3(e);
|
|
3891
3891
|
})(t) : t;
|
|
3892
3892
|
//#endregion
|
|
3893
|
-
//#region node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js
|
|
3893
|
+
//#region ../../../Design system 1/node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/reactive-element.js
|
|
3894
3894
|
var _Symbol;
|
|
3895
3895
|
/**
|
|
3896
3896
|
* @license
|
|
@@ -4121,7 +4121,7 @@ var y = class extends HTMLElement {
|
|
|
4121
4121
|
};
|
|
4122
4122
|
y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, y[d("elementProperties")] = /* @__PURE__ */ new Map(), y[d("finalized")] = /* @__PURE__ */ new Map(), p?.({ ReactiveElement: y }), (a.reactiveElementVersions ?? (a.reactiveElementVersions = [])).push("2.1.2");
|
|
4123
4123
|
//#endregion
|
|
4124
|
-
//#region node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js
|
|
4124
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-element@4.2.2/node_modules/lit-element/lit-element.js
|
|
4125
4125
|
/**
|
|
4126
4126
|
* @license
|
|
4127
4127
|
* Copyright 2017 Google LLC
|
|
@@ -4162,7 +4162,7 @@ function define(name, element) {
|
|
|
4162
4162
|
if (!customElements.get(name)) customElements.define(name, element);
|
|
4163
4163
|
}
|
|
4164
4164
|
//#endregion
|
|
4165
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/unsafe-html.js
|
|
4165
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/unsafe-html.js
|
|
4166
4166
|
/**
|
|
4167
4167
|
* @license
|
|
4168
4168
|
* Copyright 2017 Google LLC
|
|
@@ -4760,7 +4760,7 @@ _Tag = Tag;
|
|
|
4760
4760
|
_Tag.styles = r$3(ds_tag_default);
|
|
4761
4761
|
define("ds-tag", Tag);
|
|
4762
4762
|
//#endregion
|
|
4763
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/if-defined.js
|
|
4763
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/if-defined.js
|
|
4764
4764
|
/**
|
|
4765
4765
|
* @license
|
|
4766
4766
|
* Copyright 2018 Google LLC
|
|
@@ -5454,7 +5454,7 @@ var ds_menu_default = "/* Shape is a surface preference. Keep these base lengths
|
|
|
5454
5454
|
//#region DS1/3-unit/styles/ds-select.css?inline
|
|
5455
5455
|
var ds_select_default = "/* Shape is a surface preference. Keep these base lengths unscaled: each\n * component resolves them with its own --ds-sf in component-metrics.css. */\n[data-ds-shape=\"square\"],\n:host([data-ds-shape=\"square\"]) {\n --ds-corner-size: 0px;\n --ds-corner-shape: round;\n --ds-button-inset: 0.5px;\n}\n\n[data-ds-shape=\"rounded\"],\n:host([data-ds-shape=\"rounded\"]) {\n --ds-corner-size: 4px;\n --ds-corner-shape: round;\n --ds-button-inset: 2.5px;\n}\n\n[data-ds-shape=\"circular\"],\n:host([data-ds-shape=\"circular\"]) {\n --ds-corner-size: 999px;\n --ds-corner-shape: round;\n --ds-button-inset: 5px;\n}\n\n/* A squircle needs twice an arc's radius for the same apparent corner.\n * Circular controls keep true semicircles even in a squircle browser. */\n@supports (corner-shape: squircle) {\n [data-ds-shape=\"rounded\"],\n :host([data-ds-shape=\"rounded\"]) {\n --ds-corner-size: 8px;\n --ds-corner-shape: squircle;\n }\n}\n\n/* Resolve dimensions where a component is drawn. Inherited calc() values have\n * already used their ancestor's scale. Base tokens stay unscaled and inherit;\n * resolved tokens can still be overridden directly on a component.\n * data-ds-surface gives ordinary layout elements the same scaled measures.\n */\n:root,\n:host,\n:where([data-ds-surface]) {\n --ds-unit: calc(var(--ds-1, 20px) * var(--ds-sf, 1));\n --ds-control-height: calc(var(--ds-control-size, var(--ds-08, 16px)) * var(--ds-sf, 1));\n --ds-row-height: calc(var(--ds-row-size, var(--ds-1, 20px)) * var(--ds-sf, 1));\n --ds-type-size-default: calc(var(--ds-text-size, 14px) * var(--ds-sf, 1));\n --ds-type-size-small: calc(var(--ds-small-text-size, 10px) * var(--ds-sf, 1));\n --ds-type-size-heading: calc(var(--ds-heading-text-size, 13px) * var(--ds-sf, 1));\n --ds-type-size-display: calc(var(--ds-display-text-size, 20px) * var(--ds-sf, 1));\n --ds-type-lineheight-default: calc(var(--ds-text-leading, 16px) * var(--ds-sf, 1));\n --ds-type-letterspacing-default: calc(var(--ds-text-tracking, -0.3px) * var(--ds-sf, 1));\n --ds-radius: calc(var(--ds-corner-size, 4px) * var(--ds-sf, 1));\n --ds-radius-card: calc(var(--ds-card-corner-size, 4px) * var(--ds-sf, 1));\n}\n\n/*\n * Select as a field, around a native <select> (`data-field`): the menu\n * engine's own rules (an action menu's) do not reach it. One square high and\n * eight wide by default; a list one square a visible row.\n */\n:host([data-field]) {\n --ds-select-unit: calc(var(--ds-1) * var(--ds-sf));\n display: inline-flex;\n position: relative;\n vertical-align: middle;\n width: calc(8 * var(--ds-select-unit));\n max-width: 100%;\n min-width: 0;\n max-height: none;\n height: calc(var(--ds-select-rows, 1) * var(--ds-select-unit));\n}\n:host([hidden]) { display: none !important; }\n::slotted(select) {\n appearance: none !important;\n box-sizing: border-box !important;\n display: block !important;\n width: 100% !important;\n min-width: 0 !important;\n max-width: none !important;\n height: 100% !important;\n min-height: 0 !important;\n margin: 0 !important;\n padding: 0 var(--ds-select-unit) 0 calc(4px * var(--ds-sf)) !important;\n border: 1px solid var(--ds-border-color) !important;\n border-radius: var(--ds-radius) !important;\n corner-shape: var(--ds-corner-shape, round) !important;\n background: var(--ds-input-background) !important;\n color: var(--ds-input-color) !important;\n font-family: var(--ds-typeface-regular) !important;\n font-size: var(--ds-type-size-default) !important;\n font-weight: var(--ds-type-weight-default) !important;\n letter-spacing: var(--ds-type-letterspacing-default) !important;\n line-height: calc(var(--ds-select-unit) - 2px) !important;\n box-shadow: none !important;\n cursor: pointer !important;\n}\n.arrow {\n position: absolute;\n pointer-events: none;\n inset-inline-end: calc(2px * var(--ds-sf));\n top: 50%;\n transform: translateY(-50%);\n width: calc(.8 * var(--ds-select-unit));\n height: calc(.8 * var(--ds-select-unit));\n background: var(--ds-input-color);\n mask: var(--ds-select-arrow) center / contain no-repeat;\n}\n::slotted(select:focus-visible) { outline: 2px solid var(--ds-focus-ring) !important; outline-offset: 1px !important; }\n::slotted(select:disabled) { cursor: default !important; opacity: .5 !important; }\n.arrow.disabled { opacity: .5; }\n.arrow[hidden] { display: none; }\n::slotted(select[multiple]),\n::slotted(select[size]:not([size=\"0\"]):not([size=\"1\"])) {\n padding: 0 calc(4px * var(--ds-sf)) !important;\n}\n\n/* Intrinsic width uses the native option sizing, including translated labels. */\n:host([fit]:not([data-listbox])) { width: max-content; }\n:host([fit]:not([data-listbox])) ::slotted(select) { width: auto !important; max-width: 100% !important; }\n\n/* A settings chip keeps the same native picker, on the shared control height. */\n:host([chip]:not([data-listbox])) { height: var(--ds-control-height); }\n:host([chip]:not([data-listbox])) ::slotted(select) {\n border: 0 !important;\n background: var(--ds-button-background-color-secondary) !important;\n color: var(--ds-button-text-color) !important;\n line-height: var(--ds-control-height) !important;\n}\n:host([chip][primary]:not([data-listbox])) ::slotted(select) {\n background: var(--ds-button-background-color-primary) !important;\n color: var(--ds-button-text-color-on-accent) !important;\n}\n:host([chip]) .arrow { background: var(--ds-button-text-color); }\n:host([chip][primary]) .arrow { background: var(--ds-button-text-color-on-accent); }\n\n/* A colour choice uses the shared swatch; the native select remains the hit target. */\n:host([swatch]:not([swatch=\"\"]):not([data-listbox])) {\n width: var(--ds-select-unit);\n height: var(--ds-select-unit);\n border-radius: var(--ds-radius);\n background: var(--ds-input-background);\n}\n:host([swatch]:not([swatch=\"\"]):not([data-listbox])) ::slotted(select) {\n width: 100% !important;\n opacity: 0 !important;\n position: relative !important;\n z-index: 1;\n}\n:host([swatch]:not([swatch=\"\"]):not([data-listbox]):focus-within) {\n outline: 2px solid var(--ds-focus-ring);\n outline-offset: 1px;\n}\nds-swatch { pointer-events: none; position: absolute; inset: 0; margin: auto; }\nds-swatch.disabled { opacity: .5; }\n\n/*\n * The field's list, in place of the platform's picker (`data-listed`). The\n * select takes no pointer, so a press on the field opens the list and no\n * platform picker; the keyboard still reaches the select, and its opening keys\n * open the list. The list is the menu engine's, as wide as its choices in whole\n * squares and at least the field (`--ds-select-list-width` sets one), each choice one\n * square on the sixteen: an icon on the first square, the name, muted details,\n * a shortcut at the end and the check on the last square for the chosen one.\n */\n:host([data-listed]) { cursor: pointer; }\n:host([data-listed]) ::slotted(select) { pointer-events: none !important; }\n/* The list fits its choices on whole squares, at least as wide as the field. */\n.list { --ds-menu-width: var(--ds-select-list-width); }\n.choice,\n.group-label {\n box-sizing: border-box;\n display: flex;\n align-items: flex-end;\n gap: calc(4px * var(--ds-sf));\n flex: 0 0 auto;\n width: 100%;\n height: var(--ds-row-height);\n min-width: 0;\n margin: 0;\n padding: 0 calc(4px * var(--ds-sf));\n border: 0;\n border-radius: 0;\n background: none;\n color: var(--ds-text-color);\n font: inherit;\n line-height: var(--ds-type-lineheight-default);\n text-align: start;\n white-space: nowrap;\n}\n.choice { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }\n.choice:hover:not(:disabled), .choice:focus-visible { background: var(--ds-row-fill-hover, var(--ds-fill)); }\n.choice:active:not(:disabled) { background: var(--ds-row-fill-press, var(--ds-fill-hover)); }\n.choice:focus-visible { box-shadow: inset 0 0 0 2px var(--ds-focus-ring); }\n.choice:disabled { cursor: default; opacity: .5; }\n.group { display: flex; flex-direction: column; }\n.group-label { color: var(--ds-text-color-muted); }\n/* A name is one line, fading over its last square where it is cut short. */\n.name { flex: 0 1 auto; min-width: 0; overflow: hidden; }\n.details { flex: 0 1 auto; min-width: 0; overflow: hidden; color: var(--ds-text-color-muted); }\n.shortcut { flex: none; margin-inline-start: auto; color: var(--ds-text-color-muted); }\n.mark { flex: none; width: calc(16px * var(--ds-sf)); height: calc(16px * var(--ds-sf)); }\n.check {\n flex: none;\n width: calc(16px * var(--ds-sf));\n height: calc(16px * var(--ds-sf));\n margin-inline-start: auto;\n background: currentColor;\n mask: var(--ds-select-check) center / contain no-repeat;\n visibility: hidden;\n}\n.shortcut + .check { margin-inline-start: 0; }\n.choice[aria-selected=\"true\"] .check { visibility: visible; }\n.choice[aria-selected=\"true\"] .name { font-weight: var(--ds-row-current-weight, var(--ds-type-weight-bold)); }\n";
|
|
5456
5456
|
//#endregion
|
|
5457
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/style-map.js
|
|
5457
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/style-map.js
|
|
5458
5458
|
/**
|
|
5459
5459
|
* @license
|
|
5460
5460
|
* Copyright 2018 Google LLC
|
|
@@ -7377,7 +7377,7 @@ _Gap.properties = { size: {
|
|
|
7377
7377
|
_Gap.styles = r$3(ds_gap_default);
|
|
7378
7378
|
define("ds-gap", Gap);
|
|
7379
7379
|
//#endregion
|
|
7380
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/live.js
|
|
7380
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/live.js
|
|
7381
7381
|
/**
|
|
7382
7382
|
* @license
|
|
7383
7383
|
* Copyright 2020 Google LLC
|
|
@@ -8203,7 +8203,7 @@ _Composer.properties = {
|
|
|
8203
8203
|
_Composer.styles = r$3(ds_composer_default);
|
|
8204
8204
|
define("ds-composer", Composer);
|
|
8205
8205
|
//#endregion
|
|
8206
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/repeat.js
|
|
8206
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/repeat.js
|
|
8207
8207
|
/**
|
|
8208
8208
|
* @license
|
|
8209
8209
|
* Copyright 2017 Google LLC
|
|
@@ -10169,7 +10169,7 @@ _Accordion.properties = {
|
|
|
10169
10169
|
_Accordion.styles = r$3(ds_accordion_default);
|
|
10170
10170
|
define("ds-accordion", Accordion);
|
|
10171
10171
|
//#endregion
|
|
10172
|
-
//#region node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/keyed.js
|
|
10172
|
+
//#region ../../../Design system 1/node_modules/.pnpm/lit-html@3.3.3/node_modules/lit-html/directives/keyed.js
|
|
10173
10173
|
/**
|
|
10174
10174
|
* @license
|
|
10175
10175
|
* Copyright 2021 Google LLC
|
|
@@ -16269,7 +16269,7 @@ _Sidebar.properties = {
|
|
|
16269
16269
|
_Sidebar.styles = r$3(ds_sidebar_default);
|
|
16270
16270
|
define("ds-sidebar", Sidebar);
|
|
16271
16271
|
//#endregion
|
|
16272
|
-
//#region node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js
|
|
16272
|
+
//#region ../../../Design system 1/node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/property.js
|
|
16273
16273
|
/**
|
|
16274
16274
|
* @license
|
|
16275
16275
|
* Copyright 2017 Google LLC
|
|
@@ -16312,7 +16312,7 @@ function n(t) {
|
|
|
16312
16312
|
})(t, e, o);
|
|
16313
16313
|
}
|
|
16314
16314
|
//#endregion
|
|
16315
|
-
//#region node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
|
|
16315
|
+
//#region ../../../Design system 1/node_modules/.pnpm/@lit+reactive-element@2.1.2/node_modules/@lit/reactive-element/decorators/state.js
|
|
16316
16316
|
/**
|
|
16317
16317
|
* @license
|
|
16318
16318
|
* Copyright 2017 Google LLC
|