ds-one 0.3.0-alpha.1 → 0.3.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/DS1/0-face/device.ts +180 -34
  2. package/DS1/1-root/one.css +1 -1
  3. package/DS1/index.ts +0 -1
  4. package/README.md +2 -2
  5. package/dist/0-face/device.d.ts +47 -1
  6. package/dist/0-face/device.d.ts.map +1 -1
  7. package/dist/0-face/device.js +132 -25
  8. package/dist/ds-one.bundle.js +1421 -1436
  9. package/dist/ds-one.bundle.js.map +1 -1
  10. package/dist/ds-one.bundle.min.js +1206 -1217
  11. package/dist/ds-one.bundle.min.js.map +1 -1
  12. package/dist/index.d.ts +0 -1
  13. package/dist/index.d.ts.map +1 -1
  14. package/dist/index.js +0 -1
  15. package/package.json +1 -1
  16. package/DS1/0-face/scaling.ts +0 -152
  17. package/dist/0-face/scaling.d.ts +0 -48
  18. package/dist/0-face/scaling.d.ts.map +0 -1
  19. package/dist/0-face/scaling.js +0 -114
  20. package/dist/2-core/styles/ds-banner.css +0 -77
  21. package/dist/2-core/styles/ds-button.css +0 -67
  22. package/dist/2-core/styles/ds-cycle.css +0 -21
  23. package/dist/2-core/styles/ds-date.css +0 -9
  24. package/dist/2-core/styles/ds-gap.css +0 -93
  25. package/dist/2-core/styles/ds-icon.css +0 -30
  26. package/dist/2-core/styles/ds-input.css +0 -46
  27. package/dist/2-core/styles/ds-pagedots.css +0 -26
  28. package/dist/2-core/styles/ds-text.css +0 -29
  29. package/dist/2-core/styles/ds-tooltip.css +0 -49
  30. package/dist/3-unit/styles/ds-accordion.css +0 -46
  31. package/dist/3-unit/styles/ds-list.css +0 -9
  32. package/dist/3-unit/styles/ds-row.css +0 -19
  33. package/dist/3-unit/styles/ds-table.css +0 -80
  34. package/dist/4-page/styles/ds-container.css +0 -35
  35. package/dist/4-page/styles/ds-grid.css +0 -56
  36. package/dist/4-page/styles/ds-layout.css +0 -251
  37. package/dist/ds-one.bundle.css +0 -700
  38. package/dist/ds-one.bundle.css.map +0 -7
  39. package/dist/ds-one.bundle.min.css +0 -2
  40. package/dist/ds-one.bundle.min.css.map +0 -7
package/dist/index.d.ts CHANGED
@@ -10,7 +10,6 @@ export * from "./0-face/device";
10
10
  export * from "./0-face/i18n";
11
11
  export * from "./0-face/preferences";
12
12
  export * from "./0-face/pricing";
13
- export * from "./0-face/scaling";
14
13
  export * from "./0-face/theme";
15
14
  export * from "./2-core/ds-banner";
16
15
  export * from "./2-core/ds-button";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../DS1/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,iBAAiB,CAAC;AAGzB,OAAO,eAAe,CAAC;AAMvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAM/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAMpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAMlC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../DS1/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAOH,OAAO,iBAAiB,CAAC;AAGzB,OAAO,eAAe,CAAC;AAMvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAM/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAMpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAMlC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
package/dist/index.js CHANGED
@@ -18,7 +18,6 @@ export * from "./0-face/device";
18
18
  export * from "./0-face/i18n";
19
19
  export * from "./0-face/preferences";
20
20
  export * from "./0-face/pricing";
21
- export * from "./0-face/scaling";
22
21
  export * from "./0-face/theme";
23
22
  // ============================================================================
24
23
  // 2-core: Core Components
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ds-one",
3
- "version": "0.3.0-alpha.1",
3
+ "version": "0.3.0-alpha.2",
4
4
  "description": "A component-based design system built with TypeScript and LitElement that provides reusable UI components with built-in theming, internationalization, and accessibility features.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -1,152 +0,0 @@
1
- // scaling.ts
2
- // Responsive scaling utilities for the design system
3
-
4
- import { signal } from "@lit-labs/signals";
5
-
6
- export type ScalingMode = "auto" | "fixed" | "fluid";
7
-
8
- export interface ScalingConfig {
9
- mode: ScalingMode;
10
- baseWidth: number;
11
- minScale: number;
12
- maxScale: number;
13
- }
14
-
15
- const defaultConfig: ScalingConfig = {
16
- mode: "auto",
17
- baseWidth: 280,
18
- minScale: 0.75,
19
- maxScale: 2.0,
20
- };
21
-
22
- // Reactive scaling factor signal
23
- export const scalingFactor = signal<number>(1);
24
-
25
- // Current scaling configuration
26
- export const scalingConfig = signal<ScalingConfig>(defaultConfig);
27
-
28
- /**
29
- * Calculate the scaling factor based on viewport width
30
- * @param viewportWidth - Current viewport width in pixels
31
- * @param config - Scaling configuration
32
- * @returns The calculated scaling factor
33
- */
34
- export function calculateScalingFactor(
35
- viewportWidth: number,
36
- config: ScalingConfig = scalingConfig.get()
37
- ): number {
38
- if (config.mode === "fixed") {
39
- return 1;
40
- }
41
-
42
- const rawScale = viewportWidth / config.baseWidth;
43
- const clampedScale = Math.max(
44
- config.minScale,
45
- Math.min(config.maxScale, rawScale)
46
- );
47
-
48
- return Number(clampedScale.toFixed(3));
49
- }
50
-
51
- /**
52
- * Set the scaling configuration
53
- * @param config - Partial scaling configuration to apply
54
- */
55
- export function setScalingConfig(config: Partial<ScalingConfig>): void {
56
- const currentConfig = scalingConfig.get();
57
- const newConfig = { ...currentConfig, ...config };
58
- scalingConfig.set(newConfig);
59
-
60
- // Recalculate scaling factor if in browser
61
- if (typeof window !== "undefined") {
62
- updateScalingFactor();
63
- }
64
- }
65
-
66
- /**
67
- * Update the scaling factor based on current viewport
68
- */
69
- export function updateScalingFactor(): void {
70
- if (typeof window === "undefined" || typeof document === "undefined") {
71
- return;
72
- }
73
-
74
- const viewportWidth = document.documentElement.clientWidth;
75
- const config = scalingConfig.get();
76
- const newFactor = calculateScalingFactor(viewportWidth, config);
77
-
78
- scalingFactor.set(newFactor);
79
-
80
- // Update CSS custom property
81
- document.documentElement.style.setProperty("--sf", newFactor.toString());
82
-
83
- // Dispatch event for components that need to react
84
- window.dispatchEvent(
85
- new CustomEvent("scaling-changed", {
86
- detail: { scalingFactor: newFactor, config },
87
- })
88
- );
89
- }
90
-
91
- /**
92
- * Get the current scaling factor
93
- * @returns The current scaling factor
94
- */
95
- export function getScalingFactor(): number {
96
- return scalingFactor.get();
97
- }
98
-
99
- /**
100
- * Convert a design pixel value to scaled pixels
101
- * @param designPx - The design pixel value (based on 280px width)
102
- * @returns The scaled pixel value
103
- */
104
- export function scale(designPx: number): number {
105
- return designPx * scalingFactor.get();
106
- }
107
-
108
- /**
109
- * Convert a scaled pixel value back to design pixels
110
- * @param scaledPx - The scaled pixel value
111
- * @returns The design pixel value
112
- */
113
- export function unscale(scaledPx: number): number {
114
- const factor = scalingFactor.get();
115
- return factor === 0 ? scaledPx : scaledPx / factor;
116
- }
117
-
118
- /**
119
- * Initialize scaling system
120
- * This is typically called automatically when the module loads
121
- */
122
- export function initScaling(): void {
123
- if (typeof window === "undefined") {
124
- return;
125
- }
126
-
127
- // Initial calculation
128
- updateScalingFactor();
129
-
130
- // Update on resize (debounced)
131
- let resizeTimeout: ReturnType<typeof setTimeout>;
132
- window.addEventListener("resize", () => {
133
- clearTimeout(resizeTimeout);
134
- resizeTimeout = setTimeout(() => {
135
- updateScalingFactor();
136
- }, 100);
137
- });
138
-
139
- // Update on orientation change
140
- window.addEventListener("orientationchange", () => {
141
- setTimeout(updateScalingFactor, 100);
142
- });
143
- }
144
-
145
- // Auto-initialize when module loads in browser
146
- if (typeof window !== "undefined") {
147
- if (document.readyState === "loading") {
148
- document.addEventListener("DOMContentLoaded", initScaling);
149
- } else {
150
- initScaling();
151
- }
152
- }
@@ -1,48 +0,0 @@
1
- export type ScalingMode = "auto" | "fixed" | "fluid";
2
- export interface ScalingConfig {
3
- mode: ScalingMode;
4
- baseWidth: number;
5
- minScale: number;
6
- maxScale: number;
7
- }
8
- export declare const scalingFactor: import("@lit-labs/signals").Signal.State<number>;
9
- export declare const scalingConfig: import("@lit-labs/signals").Signal.State<ScalingConfig>;
10
- /**
11
- * Calculate the scaling factor based on viewport width
12
- * @param viewportWidth - Current viewport width in pixels
13
- * @param config - Scaling configuration
14
- * @returns The calculated scaling factor
15
- */
16
- export declare function calculateScalingFactor(viewportWidth: number, config?: ScalingConfig): number;
17
- /**
18
- * Set the scaling configuration
19
- * @param config - Partial scaling configuration to apply
20
- */
21
- export declare function setScalingConfig(config: Partial<ScalingConfig>): void;
22
- /**
23
- * Update the scaling factor based on current viewport
24
- */
25
- export declare function updateScalingFactor(): void;
26
- /**
27
- * Get the current scaling factor
28
- * @returns The current scaling factor
29
- */
30
- export declare function getScalingFactor(): number;
31
- /**
32
- * Convert a design pixel value to scaled pixels
33
- * @param designPx - The design pixel value (based on 280px width)
34
- * @returns The scaled pixel value
35
- */
36
- export declare function scale(designPx: number): number;
37
- /**
38
- * Convert a scaled pixel value back to design pixels
39
- * @param scaledPx - The scaled pixel value
40
- * @returns The design pixel value
41
- */
42
- export declare function unscale(scaledPx: number): number;
43
- /**
44
- * Initialize scaling system
45
- * This is typically called automatically when the module loads
46
- */
47
- export declare function initScaling(): void;
48
- //# sourceMappingURL=scaling.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"scaling.d.ts","sourceRoot":"","sources":["../../DS1/0-face/scaling.ts"],"names":[],"mappings":"AAKA,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,OAAO,GAAG,OAAO,CAAC;AAErD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAUD,eAAO,MAAM,aAAa,kDAAoB,CAAC;AAG/C,eAAO,MAAM,aAAa,yDAAuC,CAAC;AAElE;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,aAAa,EAAE,MAAM,EACrB,MAAM,GAAE,aAAmC,GAC1C,MAAM,CAYR;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,aAAa,CAAC,GAAG,IAAI,CASrE;AAED;;GAEG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAoB1C;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,KAAK,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAE9C;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAGhD;AAED;;;GAGG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAqBlC"}
@@ -1,114 +0,0 @@
1
- // scaling.ts
2
- // Responsive scaling utilities for the design system
3
- import { signal } from "@lit-labs/signals";
4
- const defaultConfig = {
5
- mode: "auto",
6
- baseWidth: 280,
7
- minScale: 0.75,
8
- maxScale: 2.0,
9
- };
10
- // Reactive scaling factor signal
11
- export const scalingFactor = signal(1);
12
- // Current scaling configuration
13
- export const scalingConfig = signal(defaultConfig);
14
- /**
15
- * Calculate the scaling factor based on viewport width
16
- * @param viewportWidth - Current viewport width in pixels
17
- * @param config - Scaling configuration
18
- * @returns The calculated scaling factor
19
- */
20
- export function calculateScalingFactor(viewportWidth, config = scalingConfig.get()) {
21
- if (config.mode === "fixed") {
22
- return 1;
23
- }
24
- const rawScale = viewportWidth / config.baseWidth;
25
- const clampedScale = Math.max(config.minScale, Math.min(config.maxScale, rawScale));
26
- return Number(clampedScale.toFixed(3));
27
- }
28
- /**
29
- * Set the scaling configuration
30
- * @param config - Partial scaling configuration to apply
31
- */
32
- export function setScalingConfig(config) {
33
- const currentConfig = scalingConfig.get();
34
- const newConfig = { ...currentConfig, ...config };
35
- scalingConfig.set(newConfig);
36
- // Recalculate scaling factor if in browser
37
- if (typeof window !== "undefined") {
38
- updateScalingFactor();
39
- }
40
- }
41
- /**
42
- * Update the scaling factor based on current viewport
43
- */
44
- export function updateScalingFactor() {
45
- if (typeof window === "undefined" || typeof document === "undefined") {
46
- return;
47
- }
48
- const viewportWidth = document.documentElement.clientWidth;
49
- const config = scalingConfig.get();
50
- const newFactor = calculateScalingFactor(viewportWidth, config);
51
- scalingFactor.set(newFactor);
52
- // Update CSS custom property
53
- document.documentElement.style.setProperty("--sf", newFactor.toString());
54
- // Dispatch event for components that need to react
55
- window.dispatchEvent(new CustomEvent("scaling-changed", {
56
- detail: { scalingFactor: newFactor, config },
57
- }));
58
- }
59
- /**
60
- * Get the current scaling factor
61
- * @returns The current scaling factor
62
- */
63
- export function getScalingFactor() {
64
- return scalingFactor.get();
65
- }
66
- /**
67
- * Convert a design pixel value to scaled pixels
68
- * @param designPx - The design pixel value (based on 280px width)
69
- * @returns The scaled pixel value
70
- */
71
- export function scale(designPx) {
72
- return designPx * scalingFactor.get();
73
- }
74
- /**
75
- * Convert a scaled pixel value back to design pixels
76
- * @param scaledPx - The scaled pixel value
77
- * @returns The design pixel value
78
- */
79
- export function unscale(scaledPx) {
80
- const factor = scalingFactor.get();
81
- return factor === 0 ? scaledPx : scaledPx / factor;
82
- }
83
- /**
84
- * Initialize scaling system
85
- * This is typically called automatically when the module loads
86
- */
87
- export function initScaling() {
88
- if (typeof window === "undefined") {
89
- return;
90
- }
91
- // Initial calculation
92
- updateScalingFactor();
93
- // Update on resize (debounced)
94
- let resizeTimeout;
95
- window.addEventListener("resize", () => {
96
- clearTimeout(resizeTimeout);
97
- resizeTimeout = setTimeout(() => {
98
- updateScalingFactor();
99
- }, 100);
100
- });
101
- // Update on orientation change
102
- window.addEventListener("orientationchange", () => {
103
- setTimeout(updateScalingFactor, 100);
104
- });
105
- }
106
- // Auto-initialize when module loads in browser
107
- if (typeof window !== "undefined") {
108
- if (document.readyState === "loading") {
109
- document.addEventListener("DOMContentLoaded", initScaling);
110
- }
111
- else {
112
- initScaling();
113
- }
114
- }
@@ -1,77 +0,0 @@
1
- /* ds-banner.css */
2
- /* Fixed banner component styles for notifications/alerts */
3
-
4
- :host {
5
- display: flex;
6
- position: absolute;
7
- top: 0;
8
- left: 0;
9
- right: 0;
10
- width: 100%;
11
- height: calc(var(--unit) * var(--sf, 1));
12
- align-items: center;
13
- justify-content: space-between;
14
- padding: 0 calc(var(--unit) * var(--sf, 1));
15
- box-sizing: border-box;
16
- z-index: 9999;
17
- }
18
-
19
- :host([variant="warning"]) {
20
- background-color: color-mix(in srgb, var(--yellow) 50%, transparent);
21
- --banner-text-color: color-mix(in srgb, var(--black) 50%, transparent);
22
- --banner-action-color: var(--slate);
23
- }
24
-
25
- :host([variant="info"]) {
26
- background-color: rgba(var(--sharp-blue-rgb, 0, 122, 255), 0.7);
27
- --banner-text-color: var(--white, #fff);
28
- --banner-action-color: var(--white, #fff);
29
- }
30
-
31
- :host([variant="success"]) {
32
- background-color: rgba(var(--apple-green-rgb, 52, 199, 89), 0.7);
33
- --banner-text-color: var(--white, #fff);
34
- --banner-action-color: var(--white, #fff);
35
- }
36
-
37
- :host([variant="error"]) {
38
- background-color: rgba(var(--tuned-red-rgb, 255, 59, 48), 0.7);
39
- --banner-text-color: var(--white, #fff);
40
- --banner-action-color: var(--slate, #1e1e1e);
41
- }
42
-
43
- .text-wrapper {
44
- flex: 1;
45
- cursor: pointer;
46
- user-select: none;
47
- }
48
-
49
- .text-wrapper ds-text,
50
- .text-wrapper .version {
51
- color: var(--banner-text-color);
52
- }
53
-
54
- .action-wrapper {
55
- font-size: calc(12px * var(--sf, 1));
56
- }
57
-
58
- .action-wrapper a {
59
- color: var(--banner-action-color);
60
- text-decoration: none;
61
- font-family: var(--typeface-regular);
62
- font-size: calc(12px * var(--sf, 1));
63
- cursor: pointer;
64
- pointer-events: auto;
65
- display: inline-block;
66
- }
67
-
68
- .action-wrapper a:hover {
69
- opacity: 0.8;
70
- }
71
-
72
- .action-wrapper ds-text {
73
- color: var(--banner-action-color);
74
- font-family: var(--typeface-regular);
75
- font-size: calc(12px * var(--sf, 1));
76
- pointer-events: none;
77
- }
@@ -1,67 +0,0 @@
1
- /* ds-button.css */
2
- /* Core button component styles */
3
-
4
- button {
5
- max-height: calc(var(--08) * var(--sf));
6
- display: inline-flex;
7
- align-items: center;
8
- justify-content: center;
9
- border: none;
10
- cursor: pointer;
11
- padding: 0 calc(0.5px * var(--sf));
12
- color: var(--button-text-color);
13
- font-family: var(--typeface-regular);
14
- }
15
-
16
- button.title {
17
- background-color: var(--button-background-color-secondary);
18
- color: var(--button-text-color);
19
- }
20
-
21
- button.primary {
22
- background-color: var(--accent-color);
23
- color: var(--button-text-color);
24
- text-decoration-line: none;
25
- font-family: var(--typeface-regular);
26
- }
27
-
28
- button.secondary {
29
- background-color: var(--button-background-color-secondary);
30
- color: var(--button-text-color);
31
- font-family: var(--typeface-regular);
32
- }
33
-
34
- button.text {
35
- background-color: transparent;
36
- color: var(--button-color, var(--button-text-color));
37
- font-family: var(--typeface-regular);
38
- padding: 0;
39
- text-decoration: none;
40
- }
41
-
42
- button.text:hover {
43
- opacity: 0.8;
44
- text-decoration: none;
45
- }
46
-
47
- button[bold] {
48
- font-weight: var(--type-weight-bold);
49
- font-family: var(--typeface-medium);
50
- }
51
-
52
- button[no-background] {
53
- background-color: transparent;
54
- max-height: var(--1);
55
- padding: 0;
56
- color: var(--button-color, var(--button-text-color-secondary));
57
- }
58
-
59
- button[no-background][bold] {
60
- font-weight: var(--type-weight-bold);
61
- font-family: var(--typeface-medium);
62
- color: var(--button-color, var(--button-text-color-secondary));
63
- }
64
-
65
- .loading {
66
- opacity: 0.7;
67
- }
@@ -1,21 +0,0 @@
1
- /* ds-cycle.css */
2
- /* Cycle component styles for cycling through options */
3
-
4
- :host {
5
- display: inline-flex;
6
- align-items: center;
7
- }
8
-
9
- .cycle {
10
- display: inline-flex;
11
- align-items: center;
12
- gap: var(--025);
13
- }
14
-
15
- .color-preview {
16
- width: var(--05);
17
- height: var(--05);
18
- border-radius: 999px;
19
- border: 1px solid color-mix(in srgb, var(--text-color-primary) 20%, transparent);
20
- flex: 0 0 auto;
21
- }
@@ -1,9 +0,0 @@
1
- /* ds-date.css */
2
- /* Date component styles for displaying the current year */
3
-
4
- :host {
5
- display: inline;
6
- font-family: var(--typeface-regular, var(--typeface-regular-regular));
7
- font-size: inherit;
8
- color: inherit;
9
- }
@@ -1,93 +0,0 @@
1
- /* ds-gap.css */
2
- /* Full-width vertical spacer styles */
3
-
4
- :host {
5
- display: block;
6
- width: 100%;
7
- /* Default if no attribute is provided */
8
- --gap-size: var(--unit);
9
- height: var(--gap-size);
10
- flex: 0 0 auto;
11
- }
12
-
13
- /* Semantic sizing tokens (from DS1/1-root/one.css) */
14
- :host([tenth]) {
15
- --gap-size: var(--tenth);
16
- }
17
-
18
- :host([quarter]) {
19
- --gap-size: var(--quarter);
20
- }
21
-
22
- :host([half]) {
23
- --gap-size: var(--half);
24
- }
25
-
26
- :host([eight-tenth]) {
27
- --gap-size: var(--eight-tenth);
28
- }
29
-
30
- :host([unit]) {
31
- --gap-size: var(--unit);
32
- }
33
-
34
- :host([double]) {
35
- --gap-size: var(--double);
36
- }
37
-
38
- :host([triple]) {
39
- --gap-size: var(--triple);
40
- }
41
-
42
- :host([quad]) {
43
- --gap-size: var(--quad);
44
- }
45
-
46
- :host([oct]) {
47
- --gap-size: var(--oct);
48
- }
49
-
50
- :host([dozen]) {
51
- --gap-size: var(--dozen);
52
- }
53
-
54
- /* Raw scale sizing (size="...") */
55
- :host([size="01"]) {
56
- --gap-size: var(--01);
57
- }
58
-
59
- :host([size="025"]) {
60
- --gap-size: var(--025);
61
- }
62
-
63
- :host([size="05"]) {
64
- --gap-size: var(--05);
65
- }
66
-
67
- :host([size="08"]) {
68
- --gap-size: var(--08);
69
- }
70
-
71
- :host([size="1"]) {
72
- --gap-size: var(--1);
73
- }
74
-
75
- :host([size="2"]) {
76
- --gap-size: var(--2);
77
- }
78
-
79
- :host([size="3"]) {
80
- --gap-size: var(--3);
81
- }
82
-
83
- :host([size="4"]) {
84
- --gap-size: var(--4);
85
- }
86
-
87
- :host([size="8"]) {
88
- --gap-size: var(--8);
89
- }
90
-
91
- :host([size="12"]) {
92
- --gap-size: var(--12);
93
- }
@@ -1,30 +0,0 @@
1
- /* ds-icon.css */
2
- /* Icon component styles */
3
-
4
- :host {
5
- display: inline-flex;
6
- justify-content: center;
7
- align-items: center;
8
- width: calc(16px * var(--sf));
9
- height: calc(16px * var(--sf));
10
- /* Notes style color variable for future implementation */
11
- --notes-style-color: #ffb6b9;
12
- }
13
-
14
- svg {
15
- width: 100%;
16
- height: 100%;
17
- fill: var(--icon-color, currentColor);
18
- }
19
-
20
- path {
21
- fill: var(--icon-color, currentColor);
22
- }
23
-
24
- .icon-container {
25
- display: flex;
26
- justify-content: center;
27
- align-items: center;
28
- width: calc(16px * var(--sf));
29
- height: calc(16px * var(--sf));
30
- }
@@ -1,46 +0,0 @@
1
- /* ds-input.css */
2
- /* Input component styles */
3
-
4
- :host {
5
- display: block;
6
- width: 100%;
7
- }
8
-
9
- input {
10
- background: var(--base-light-grey, #e8e8e8);
11
- border: none;
12
- padding: 0 calc(2px * var(--sf, 1));
13
- border-radius: 4px;
14
- font-size: var(--type-size-default);
15
- font-family: var(
16
- --typeface-regular,
17
- -apple-system,
18
- BlinkMacSystemFont,
19
- "Segoe UI",
20
- Roboto,
21
- sans-serif
22
- );
23
- color: var(--base-darker-grey, #797979);
24
- line-height: calc(20px * var(--sf, 1));
25
- letter-spacing: calc(-0.4px * var(--sf, 1));
26
- opacity: 0.5;
27
- height: calc(28px * var(--sf, 1));
28
- width: 100%;
29
- box-sizing: border-box;
30
- }
31
-
32
- input:focus {
33
- outline: none;
34
- opacity: 1;
35
- color: var(--base-slate, #1e1e1e);
36
- }
37
-
38
- input::placeholder {
39
- color: var(--base-darker-grey, #797979);
40
- opacity: 0.5;
41
- }
42
-
43
- input:disabled {
44
- cursor: not-allowed;
45
- opacity: 0.5;
46
- }