@sharadox/graphical-user-interface-web-library 0.0.0-stage → 0.2.0-fields.6

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 (151) hide show
  1. package/LICENCA.md +76 -0
  2. package/LICENSE.md +76 -0
  3. package/NOTICE.md +3 -0
  4. package/README.md +174 -2
  5. package/distribution/box/index.d.ts +14 -0
  6. package/distribution/box/index.d.ts.map +1 -0
  7. package/distribution/box/index.js +52 -0
  8. package/distribution/box/index.js.map +1 -0
  9. package/distribution/box/index.module.css +1 -0
  10. package/distribution/box/index.module.scss +130 -0
  11. package/distribution/box/type.d.ts +56 -0
  12. package/distribution/box/type.d.ts.map +1 -0
  13. package/distribution/box/type.js +2 -0
  14. package/distribution/box/type.js.map +1 -0
  15. package/distribution/box-axis/index.d.ts +24 -0
  16. package/distribution/box-axis/index.d.ts.map +1 -0
  17. package/distribution/box-axis/index.js +114 -0
  18. package/distribution/box-axis/index.js.map +1 -0
  19. package/distribution/box-axis/type.d.ts +15 -0
  20. package/distribution/box-axis/type.d.ts.map +1 -0
  21. package/distribution/box-axis/type.js +2 -0
  22. package/distribution/box-axis/type.js.map +1 -0
  23. package/distribution/button/index.d.ts +15 -0
  24. package/distribution/button/index.d.ts.map +1 -0
  25. package/distribution/button/index.js +42 -0
  26. package/distribution/button/index.js.map +1 -0
  27. package/distribution/button/type.d.ts +37 -0
  28. package/distribution/button/type.d.ts.map +1 -0
  29. package/distribution/button/type.js +2 -0
  30. package/distribution/button/type.js.map +1 -0
  31. package/distribution/button-axis/index.d.ts +13 -0
  32. package/distribution/button-axis/index.d.ts.map +1 -0
  33. package/distribution/button-axis/index.js +13 -0
  34. package/distribution/button-axis/index.js.map +1 -0
  35. package/distribution/checkbox/index.d.ts +10 -0
  36. package/distribution/checkbox/index.d.ts.map +1 -0
  37. package/distribution/checkbox/index.js +21 -0
  38. package/distribution/checkbox/index.js.map +1 -0
  39. package/distribution/checkbox/type.d.ts +9 -0
  40. package/distribution/checkbox/type.d.ts.map +1 -0
  41. package/distribution/checkbox/type.js +2 -0
  42. package/distribution/checkbox/type.js.map +1 -0
  43. package/distribution/choice/index.d.ts +11 -0
  44. package/distribution/choice/index.d.ts.map +1 -0
  45. package/distribution/choice/index.js +35 -0
  46. package/distribution/choice/index.js.map +1 -0
  47. package/distribution/choice/type.d.ts +19 -0
  48. package/distribution/choice/type.d.ts.map +1 -0
  49. package/distribution/choice/type.js +2 -0
  50. package/distribution/choice/type.js.map +1 -0
  51. package/distribution/field/index.d.ts +11 -0
  52. package/distribution/field/index.d.ts.map +1 -0
  53. package/distribution/field/index.js +26 -0
  54. package/distribution/field/index.js.map +1 -0
  55. package/distribution/field/index.module.css +1 -0
  56. package/distribution/field/index.module.scss +21 -0
  57. package/distribution/field/type.d.ts +23 -0
  58. package/distribution/field/type.d.ts.map +1 -0
  59. package/distribution/field/type.js +2 -0
  60. package/distribution/field/type.js.map +1 -0
  61. package/distribution/interface-configuration/index.d.ts +23 -0
  62. package/distribution/interface-configuration/index.d.ts.map +1 -0
  63. package/distribution/interface-configuration/index.js +160 -0
  64. package/distribution/interface-configuration/index.js.map +1 -0
  65. package/distribution/interface-configuration/type.d.ts +83 -0
  66. package/distribution/interface-configuration/type.d.ts.map +1 -0
  67. package/distribution/interface-configuration/type.js +2 -0
  68. package/distribution/interface-configuration/type.js.map +1 -0
  69. package/distribution/interface-style/index.d.ts +11 -0
  70. package/distribution/interface-style/index.d.ts.map +1 -0
  71. package/distribution/interface-style/index.js +14 -0
  72. package/distribution/interface-style/index.js.map +1 -0
  73. package/distribution/interface-style/type.d.ts +6 -0
  74. package/distribution/interface-style/type.d.ts.map +1 -0
  75. package/distribution/interface-style/type.js +2 -0
  76. package/distribution/interface-style/type.js.map +1 -0
  77. package/distribution/interface-styles/index.d.ts +13 -0
  78. package/distribution/interface-styles/index.d.ts.map +1 -0
  79. package/distribution/interface-styles/index.js +37 -0
  80. package/distribution/interface-styles/index.js.map +1 -0
  81. package/distribution/radio-group/index.d.ts +11 -0
  82. package/distribution/radio-group/index.d.ts.map +1 -0
  83. package/distribution/radio-group/index.js +27 -0
  84. package/distribution/radio-group/index.js.map +1 -0
  85. package/distribution/radio-group/index.module.css +1 -0
  86. package/distribution/radio-group/index.module.scss +10 -0
  87. package/distribution/radio-group/type.d.ts +25 -0
  88. package/distribution/radio-group/type.d.ts.map +1 -0
  89. package/distribution/radio-group/type.js +2 -0
  90. package/distribution/radio-group/type.js.map +1 -0
  91. package/distribution/responsive/index.d.ts +10 -0
  92. package/distribution/responsive/index.d.ts.map +1 -0
  93. package/distribution/responsive/index.js +23 -0
  94. package/distribution/responsive/index.js.map +1 -0
  95. package/distribution/responsive/type.d.ts +12 -0
  96. package/distribution/responsive/type.d.ts.map +1 -0
  97. package/distribution/responsive/type.js +2 -0
  98. package/distribution/responsive/type.js.map +1 -0
  99. package/distribution/spinner/index.d.ts +11 -0
  100. package/distribution/spinner/index.d.ts.map +1 -0
  101. package/distribution/spinner/index.js +16 -0
  102. package/distribution/spinner/index.js.map +1 -0
  103. package/distribution/spinner/index.module.css +1 -0
  104. package/distribution/spinner/index.module.scss +41 -0
  105. package/distribution/spinner/type.d.ts +4 -0
  106. package/distribution/spinner/type.d.ts.map +1 -0
  107. package/distribution/spinner/type.js +2 -0
  108. package/distribution/spinner/type.js.map +1 -0
  109. package/distribution/style-sheet/index.d.ts +18 -0
  110. package/distribution/style-sheet/index.d.ts.map +1 -0
  111. package/distribution/style-sheet/index.js +166 -0
  112. package/distribution/style-sheet/index.js.map +1 -0
  113. package/distribution/style-switch/index.d.ts +10 -0
  114. package/distribution/style-switch/index.d.ts.map +1 -0
  115. package/distribution/style-switch/index.js +16 -0
  116. package/distribution/style-switch/index.js.map +1 -0
  117. package/distribution/style-switch/type.d.ts +15 -0
  118. package/distribution/style-switch/type.d.ts.map +1 -0
  119. package/distribution/style-switch/type.js +2 -0
  120. package/distribution/style-switch/type.js.map +1 -0
  121. package/distribution/switch/index.d.ts +11 -0
  122. package/distribution/switch/index.d.ts.map +1 -0
  123. package/distribution/switch/index.js +44 -0
  124. package/distribution/switch/index.js.map +1 -0
  125. package/distribution/switch/index.module.css +1 -0
  126. package/distribution/switch/index.module.scss +67 -0
  127. package/distribution/switch/type.d.ts +20 -0
  128. package/distribution/switch/type.d.ts.map +1 -0
  129. package/distribution/switch/type.js +2 -0
  130. package/distribution/switch/type.js.map +1 -0
  131. package/distribution/text-field/index.d.ts +13 -0
  132. package/distribution/text-field/index.d.ts.map +1 -0
  133. package/distribution/text-field/index.js +20 -0
  134. package/distribution/text-field/index.js.map +1 -0
  135. package/distribution/text-field/index.module.css +1 -0
  136. package/distribution/text-field/index.module.scss +37 -0
  137. package/distribution/text-field/type.d.ts +27 -0
  138. package/distribution/text-field/type.d.ts.map +1 -0
  139. package/distribution/text-field/type.js +2 -0
  140. package/distribution/text-field/type.js.map +1 -0
  141. package/distribution/toggle-mark/index.d.ts +11 -0
  142. package/distribution/toggle-mark/index.d.ts.map +1 -0
  143. package/distribution/toggle-mark/index.js +18 -0
  144. package/distribution/toggle-mark/index.js.map +1 -0
  145. package/distribution/toggle-mark/index.module.css +1 -0
  146. package/distribution/toggle-mark/index.module.scss +57 -0
  147. package/distribution/toggle-mark/type.d.ts +13 -0
  148. package/distribution/toggle-mark/type.d.ts.map +1 -0
  149. package/distribution/toggle-mark/type.js +2 -0
  150. package/distribution/toggle-mark/type.js.map +1 -0
  151. package/package.json +99 -3
@@ -0,0 +1,23 @@
1
+ import type { ColorDefinition, ColorReference, InterfaceConfiguration, InterfaceOverrides } from "@sharadox/graphical-user-interface-web-library/interface-configuration/type";
2
+ /** The color style that follows the device's light or dark preference. */
3
+ export declare const INHERIT_COLOR_STYLE = "inherit";
4
+ /**
5
+ * The generic interface: white and black color styles (and `inherit`), the constant colors with their RGB channels,
6
+ * the colors that refer to them, three corner styles, three line styles, the scale, the breakpoints, three
7
+ * interactive sizes and every shared value, each pointing to its source.
8
+ */
9
+ export declare const DEFAULT_INTERFACE: InterfaceConfiguration;
10
+ /** Whether a color is a reference to another color rather than constant RGB channels. */
11
+ export declare function isReference(color: ColorDefinition): color is ColorReference;
12
+ /**
13
+ * A brand's interface: the defaults with its changes (each color, style, size and value merged one level deep),
14
+ * checked so every name it uses exists. A new color needs only its RGB channels; every value of it is derived.
15
+ *
16
+ * @example
17
+ * export const INTERFACE = defineInterface({
18
+ * colors: { gold: { rgb: { white: "180 140 60", black: "212 175 90" } }, brand: { of: "gold" } },
19
+ * defaultCornerStyle: "circle",
20
+ * });
21
+ */
22
+ export declare function defineInterface(overrides?: InterfaceOverrides): InterfaceConfiguration;
23
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,eAAe,EACf,cAAc,EACd,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,6EAA6E,CAAC;AAErF,0EAA0E;AAC1E,eAAO,MAAM,mBAAmB,YAAY,CAAC;AAW7C;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,sBAuD/B,CAAC;AAEF,yFAAyF;AACzF,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,GAAG,KAAK,IAAI,cAAc,CAE3E;AAsDD;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,SAAS,GAAE,kBAAuB,GAAG,sBAAsB,CAe1F"}
@@ -0,0 +1,160 @@
1
+ /** The color style that follows the device's light or dark preference. */
2
+ export const INHERIT_COLOR_STYLE = "inherit";
3
+ const both = (rgb) => ({ white: rgb, black: rgb });
4
+ const interactiveSize = (minimum, font) => ({
5
+ "minimum-size": minimum,
6
+ "font-size": font,
7
+ "font-weight": "var(--interactive-font-weight)",
8
+ "field-font-weight": "var(--field-font-weight)",
9
+ "section-padding": "var(--scale-8)",
10
+ });
11
+ /**
12
+ * The generic interface: white and black color styles (and `inherit`), the constant colors with their RGB channels,
13
+ * the colors that refer to them, three corner styles, three line styles, the scale, the breakpoints, three
14
+ * interactive sizes and every shared value, each pointing to its source.
15
+ */
16
+ export const DEFAULT_INTERFACE = {
17
+ colorStyles: { white: { scheme: "light" }, black: { scheme: "dark" } },
18
+ inheritColorStyles: { light: "white", dark: "black" },
19
+ defaultColorStyle: INHERIT_COLOR_STYLE,
20
+ colors: {
21
+ black: { rgb: both("0 0 0"), on: "white" },
22
+ white: { rgb: both("255 255 255"), on: "black" },
23
+ red: { rgb: { white: "220 38 38", black: "255 69 58" } },
24
+ green: { rgb: { white: "22 163 74", black: "48 209 88" } },
25
+ blue: { rgb: { white: "37 99 235", black: "10 132 255" } },
26
+ cyan: { rgb: { white: "8 145 178", black: "0 255 255" } },
27
+ magenta: { rgb: { white: "192 38 211", black: "255 0 255" } },
28
+ yellow: { rgb: { white: "202 138 4", black: "255 214 10" } },
29
+ foreground: { of: { white: "black", black: "white" }, on: "background" },
30
+ middleground: { rgb: { white: "94 94 94", black: "161 161 161" }, transparent: "foreground", hover: "foreground" },
31
+ background: { of: { white: "white", black: "black" } },
32
+ brand: { of: "foreground", on: "background" },
33
+ information: { of: "blue" },
34
+ success: { of: "green" },
35
+ warn: { of: "yellow" },
36
+ error: { of: "red" },
37
+ },
38
+ cornerStyles: { square: "0px", "rounded-square": "4px", circle: "10000px" },
39
+ defaultCornerStyle: "rounded-square",
40
+ lineStyles: { line: "solid", dotted: "dotted", dashed: "dashed" },
41
+ defaultLineStyle: "line",
42
+ scale: [0, 4, 8, 12, 14, 16, 24, 32, 64, 128],
43
+ breakpoints: [640, 960, 1280],
44
+ sizes: {
45
+ small: interactiveSize("var(--scale-16)", "var(--scale-12)"),
46
+ medium: interactiveSize("var(--scale-32)", "var(--scale-14)"),
47
+ large: interactiveSize("48px", "var(--scale-16)"),
48
+ },
49
+ defaultSize: "medium",
50
+ values: {
51
+ "color-rgb-alpha": "100%",
52
+ "transparent-color-rgb-alpha": "10%",
53
+ "transparent-hover-color-rgb-alpha": "var(--transparent-color-rgb-alpha)",
54
+ "transparent-active-color-rgb-alpha": "var(--transparent-hover-color-rgb-alpha)",
55
+ "disabled-opacity": "50%",
56
+ "line-thickness": "1px",
57
+ "focus-thickness": "2px",
58
+ "focus-offset": "var(--scale-4)",
59
+ "quick-duration": "0.1s",
60
+ duration: "0.25s",
61
+ easing: "cubic-bezier(0.22, 1, 0.36, 1)",
62
+ "glass-blur": "var(--scale-16)",
63
+ "interactive-font-weight": "500",
64
+ "field-font-weight": "400",
65
+ "line-height": "1.25",
66
+ "font-family": "system-ui, sans-serif",
67
+ "wrapper-width": "1280px",
68
+ "wrapper-padding": "var(--scale-16)",
69
+ "spinner-duration": "0.8s",
70
+ },
71
+ };
72
+ /** Whether a color is a reference to another color rather than constant RGB channels. */
73
+ export function isReference(color) {
74
+ return "of" in color;
75
+ }
76
+ const KEBAB_CASE = /^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;
77
+ /** Every color a color refers to in each color style, for checks. */
78
+ function referencesOf(color, styles) {
79
+ const own = [color.on, color.transparent, color.hover].filter((name) => name !== undefined);
80
+ if (!isReference(color))
81
+ return own;
82
+ return [...own, ...(typeof color.of === "string" ? [color.of] : styles.map((style) => color.of[style]))];
83
+ }
84
+ /** Checks that every name a configuration uses exists, and that no color refers back to itself. */
85
+ function check(configuration) {
86
+ const styles = Object.keys(configuration.colorStyles);
87
+ if (styles.includes(INHERIT_COLOR_STYLE))
88
+ throw new Error(`"${INHERIT_COLOR_STYLE}" is not a color style`);
89
+ for (const style of [configuration.defaultColorStyle, ...Object.values(configuration.inheritColorStyles)]) {
90
+ if (style !== INHERIT_COLOR_STYLE && !styles.includes(style))
91
+ throw new Error(`no color style "${style}"`);
92
+ }
93
+ const { colors } = configuration;
94
+ for (const [name, color] of Object.entries(colors)) {
95
+ if (!KEBAB_CASE.test(name))
96
+ throw new Error(`"${name}" is not a kebab-case name`);
97
+ for (const style of styles) {
98
+ if (isReference(color) && typeof color.of !== "string" && !color.of[style])
99
+ throw new Error(`color "${name}" has no color for the "${style}" style`);
100
+ if (!isReference(color) && !color.rgb[style])
101
+ throw new Error(`color "${name}" has no rgb for the "${style}" style`);
102
+ }
103
+ for (const reference of referencesOf(color, styles)) {
104
+ if (!colors[reference])
105
+ throw new Error(`color "${name}" refers to "${reference}"`);
106
+ }
107
+ }
108
+ // A reference that, followed, comes back to where it started would never resolve in CSS.
109
+ for (const start of Object.keys(colors)) {
110
+ for (const style of styles) {
111
+ const seen = new Set();
112
+ let current = colors[start];
113
+ let name = start;
114
+ while (isReference(current)) {
115
+ if (seen.has(name))
116
+ throw new Error(`color "${start}" refers to itself`);
117
+ seen.add(name);
118
+ name = typeof current.of === "string" ? current.of : current.of[style];
119
+ current = colors[name];
120
+ }
121
+ }
122
+ }
123
+ const named = [
124
+ ["corner style", configuration.cornerStyles, configuration.defaultCornerStyle],
125
+ ["line style", configuration.lineStyles, configuration.defaultLineStyle],
126
+ ["size", configuration.sizes, configuration.defaultSize],
127
+ ];
128
+ for (const [kind, options, chosen] of named)
129
+ if (!(chosen in options))
130
+ throw new Error(`no ${kind} "${chosen}"`);
131
+ return configuration;
132
+ }
133
+ /**
134
+ * A brand's interface: the defaults with its changes (each color, style, size and value merged one level deep),
135
+ * checked so every name it uses exists. A new color needs only its RGB channels; every value of it is derived.
136
+ *
137
+ * @example
138
+ * export const INTERFACE = defineInterface({
139
+ * colors: { gold: { rgb: { white: "180 140 60", black: "212 175 90" } }, brand: { of: "gold" } },
140
+ * defaultCornerStyle: "circle",
141
+ * });
142
+ */
143
+ export function defineInterface(overrides = {}) {
144
+ const base = DEFAULT_INTERFACE;
145
+ const sizes = { ...base.sizes };
146
+ for (const [name, size] of Object.entries(overrides.sizes ?? {}))
147
+ sizes[name] = { ...sizes[name], ...size };
148
+ return check({
149
+ ...base,
150
+ ...overrides,
151
+ colorStyles: { ...base.colorStyles, ...overrides.colorStyles },
152
+ inheritColorStyles: { ...base.inheritColorStyles, ...overrides.inheritColorStyles },
153
+ colors: { ...base.colors, ...overrides.colors },
154
+ cornerStyles: { ...base.cornerStyles, ...overrides.cornerStyles },
155
+ lineStyles: { ...base.lineStyles, ...overrides.lineStyles },
156
+ sizes,
157
+ values: { ...base.values, ...overrides.values },
158
+ });
159
+ }
160
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/interface-configuration/index.ts"],"names":[],"mappings":"AAOA,0EAA0E;AAC1E,MAAM,CAAC,MAAM,mBAAmB,GAAG,SAAS,CAAC;AAE7C,MAAM,IAAI,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;AAC3D,MAAM,eAAe,GAAG,CAAC,OAAe,EAAE,IAAY,EAAE,EAAE,CAAC,CAAC;IAC1D,cAAc,EAAE,OAAO;IACvB,WAAW,EAAE,IAAI;IACjB,aAAa,EAAE,gCAAgC;IAC/C,mBAAmB,EAAE,0BAA0B;IAC/C,iBAAiB,EAAE,gBAAgB;CACpC,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAA2B;IACvD,WAAW,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE;IACtE,kBAAkB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE;IACrD,iBAAiB,EAAE,mBAAmB;IACtC,MAAM,EAAE;QACN,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE;QAC1C,KAAK,EAAE,EAAE,GAAG,EAAE,IAAI,CAAC,aAAa,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE;QAChD,GAAG,EAAE,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,WAAW,EAAE,KAA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OAAO,KAAK,CAAC;QACX,GAAG,IAAI;QACP,GAAG,SAAS;QACZ,WAAW,EAAE,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE,GAAG,SAAS,CAAC,WAAW,EAAE;QAC9D,kBAAkB,EAAE,EAAE,GAAG,IAAI,CAAC,kBAAkB,EAAE,GAAG,SAAS,CAAC,kBAAkB,EAAE;QACnF,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE;QAC/C,YAAY,EAAE,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE,GAAG,SAAS,CAAC,YAAY,EAAE;QACjE,UAAU,EAAE,EAAE,GAAG,IAAI,CAAC,UAAU,EAAE,GAAG,SAAS,CAAC,UAAU,EAAE;QAC3D,KAAK;QACL,MAAM,EAAE,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,MAAM,EAAE;KAChD,CAAC,CAAC;AACL,CAAC"}
@@ -0,0 +1,83 @@
1
+ /** Whether a color style is light or dark; `inherit` follows the device's preference between them. */
2
+ export type ColorScheme = "light" | "dark";
3
+ /** A value for each color style, by the style's name: `{ white: "220 38 38", black: "255 69 58" }`. */
4
+ export type PerColorStyle = Readonly<Record<string, string>>;
5
+ /**
6
+ * A constant color: its RGB channels (`"220 38 38"`) in each color style, the one source of truth every other value
7
+ * of the color is derived from.
8
+ */
9
+ export interface ConstantColor {
10
+ rgb: PerColorStyle;
11
+ /** A gradient that paints the color's fills in each color style (`linear-gradient(…)`); flat by default. */
12
+ gradient?: PerColorStyle;
13
+ /** The color of text placed on a fill of this color; `foreground` by default. */
14
+ on?: string;
15
+ /** The color whose channels its transparent color (hover backgrounds, borders) uses; itself by default. */
16
+ transparent?: string;
17
+ /** The color its text turns on hover (outlined, transparent, inline); itself by default. */
18
+ hover?: string;
19
+ }
20
+ /**
21
+ * A color that is another color: `brand` is `foreground` unless a brand says otherwise. It takes everything from that
22
+ * color (one name for every color style, or one per color style), and may set its own `on`, `transparent` and `hover`.
23
+ */
24
+ export interface ColorReference {
25
+ of: string | PerColorStyle;
26
+ on?: string;
27
+ transparent?: string;
28
+ hover?: string;
29
+ }
30
+ /** A color, constant or a reference to another. */
31
+ export type ColorDefinition = ConstantColor | ColorReference;
32
+ /** A color style (white, black…), light or dark. */
33
+ export interface ColorStyle {
34
+ scheme: ColorScheme;
35
+ }
36
+ /** One interactive size: every value of it, each pointing to a shared value or a length. */
37
+ export type SizeDefinition = Readonly<Record<string, string>>;
38
+ /**
39
+ * Everything the interface is drawn with. Every value has one source: shared values (`values`) point to the scale,
40
+ * colors to their RGB channels, sizes and styles to shared values; components read only these.
41
+ */
42
+ export interface InterfaceConfiguration {
43
+ /** The color styles, by name; `inherit` (the device's preference) is always there too. */
44
+ colorStyles: Readonly<Record<string, ColorStyle>>;
45
+ /** The color style used for each device preference while the choice is `inherit`. */
46
+ inheritColorStyles: Readonly<Record<ColorScheme, string>>;
47
+ /** The color style before the visitor chooses: `inherit` or a color style's name. */
48
+ defaultColorStyle: string;
49
+ /** Every color, by name (`red`, `foreground`, `brand`…). */
50
+ colors: Readonly<Record<string, ColorDefinition>>;
51
+ /** The corner styles: each one's radius (`square: "0px"`). */
52
+ cornerStyles: Readonly<Record<string, string>>;
53
+ defaultCornerStyle: string;
54
+ /** The line styles: each one's CSS border style (`dashed: "dashed"`). */
55
+ lineStyles: Readonly<Record<string, string>>;
56
+ defaultLineStyle: string;
57
+ /** The scale every space, gap, margin, padding and font size is taken from, in pixels. */
58
+ scale: readonly number[];
59
+ /** Widths where a per-breakpoint value starts to apply (mobile first), in pixels. */
60
+ breakpoints: readonly number[];
61
+ /** The interactive sizes (`small`, `medium`, `large`) and their values. */
62
+ sizes: Readonly<Record<string, SizeDefinition>>;
63
+ defaultSize: string;
64
+ /** Every other shared value, without its leading dashes: `"transparent-color-rgb-alpha": "10%"`. */
65
+ values: Readonly<Record<string, string>>;
66
+ }
67
+ /** What a brand changes: any part of the configuration, merged over the defaults one level deep per entry. */
68
+ export interface InterfaceOverrides {
69
+ colorStyles?: Readonly<Record<string, ColorStyle>>;
70
+ inheritColorStyles?: Partial<Record<ColorScheme, string>>;
71
+ defaultColorStyle?: string;
72
+ colors?: Readonly<Record<string, ColorDefinition>>;
73
+ cornerStyles?: Readonly<Record<string, string>>;
74
+ defaultCornerStyle?: string;
75
+ lineStyles?: Readonly<Record<string, string>>;
76
+ defaultLineStyle?: string;
77
+ scale?: readonly number[];
78
+ breakpoints?: readonly number[];
79
+ sizes?: Readonly<Record<string, SizeDefinition>>;
80
+ defaultSize?: string;
81
+ values?: Readonly<Record<string, string>>;
82
+ }
83
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/interface-configuration/type.ts"],"names":[],"mappings":"AAAA,sGAAsG;AACtG,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,MAAM,CAAC;AAE3C,uGAAuG;AACvG,MAAM,MAAM,aAAa,GAAG,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;AAE7D;;;GAGG;AACH,MAAM,WAAW,aAAa;IAC5B,GAAG,EAAE,aAAa,CAAC;IACnB,4GAA4G;IAC5G,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,iFAAiF;IACjF,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,2GAA2G;IAC3G,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,GAAG,aAAa,CAAC;IAC3B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,mDAAmD;AACnD,MAAM,MAAM,eAAe,GAAG,aAAa,GAAG,cAA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AAQ,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC;IACnD,kBAAkB,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC1D,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,eAAe,CAAC,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9C,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,KAAK,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAC1B,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAChC,KAAK,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC;CAC3C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/interface-configuration/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { InterfaceStyleProperties } from "@sharadox/graphical-user-interface-web-library/interface-style/type";
2
+ /**
3
+ * The interface's style sheet, written once into the page (in the root layout's `<head>`): every value, color style,
4
+ * corner, line, size and variant rule, from the brand's configuration. Libraries never import global CSS; this is
5
+ * the one place the interface's shared rules come from.
6
+ *
7
+ * @example
8
+ * <head><StyleScript configuration={STYLES} /><InterfaceStyle configuration={INTERFACE} /></head>
9
+ */
10
+ export declare function InterfaceStyle({ configuration }: InterfaceStyleProperties): import("react").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/interface-style/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,qEAAqE,CAAC;AAEpH;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,EAAE,aAAa,EAAE,EAAE,wBAAwB,+BAEzE"}
@@ -0,0 +1,14 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { interfaceStyleSheet } from "@sharadox/graphical-user-interface-web-library/style-sheet";
3
+ /**
4
+ * The interface's style sheet, written once into the page (in the root layout's `<head>`): every value, color style,
5
+ * corner, line, size and variant rule, from the brand's configuration. Libraries never import global CSS; this is
6
+ * the one place the interface's shared rules come from.
7
+ *
8
+ * @example
9
+ * <head><StyleScript configuration={STYLES} /><InterfaceStyle configuration={INTERFACE} /></head>
10
+ */
11
+ export function InterfaceStyle({ configuration }) {
12
+ return _jsx("style", { "data-interface-style": "", dangerouslySetInnerHTML: { __html: interfaceStyleSheet(configuration) } });
13
+ }
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/interface-style/index.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4DAA4D,CAAC;AAGjG;;;;;;;GAOG;AACH,MAAM,UAAU,cAAc,CAAC,EAAE,aAAa,EAA4B;IACxE,OAAO,wCAA4B,EAAE,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAAE,GAAI,CAAC;AACpH,CAAC"}
@@ -0,0 +1,6 @@
1
+ import type { InterfaceConfiguration } from "@sharadox/graphical-user-interface-web-library/interface-configuration/type";
2
+ export interface InterfaceStyleProperties {
3
+ /** The brand's interface (`defineInterface(…)`). */
4
+ configuration: InterfaceConfiguration;
5
+ }
6
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/interface-style/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6EAA6E,CAAC;AAE1H,MAAM,WAAW,wBAAwB;IACvC,oDAAoD;IACpD,aAAa,EAAE,sBAAsB,CAAC;CACvC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/interface-style/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import type { StyleConfiguration } from "@sharadox/style-web-library/definition/type";
2
+ import type { InterfaceConfiguration } from "@sharadox/graphical-user-interface-web-library/interface-configuration/type";
3
+ /**
4
+ * The interface's styles as `@sharadox/style-web-library` groups (`color`, `corner`, `line`), so the visitor's choice
5
+ * is remembered and applied before the first paint (`StyleScript`) and switched with `useStyle` or `StyleSwitch`.
6
+ * The values come from `InterfaceStyle`; the groups only carry the names. `inherit` is the library's `system`.
7
+ *
8
+ * @example
9
+ * export const STYLES = interfaceStyles(INTERFACE);
10
+ * <head><StyleScript configuration={STYLES} /><InterfaceStyle configuration={INTERFACE} /></head>
11
+ */
12
+ export declare function interfaceStyles(configuration: InterfaceConfiguration): StyleConfiguration;
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/interface-styles/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,kBAAkB,EAAc,MAAM,6CAA6C,CAAC;AAElG,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6EAA6E,CAAC;AAI1H;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,aAAa,EAAE,sBAAsB,GAAG,kBAAkB,CAuBzF"}
@@ -0,0 +1,37 @@
1
+ import { defineStyles } from "@sharadox/style-web-library/definition";
2
+ import { INHERIT_COLOR_STYLE } from "@sharadox/graphical-user-interface-web-library/interface-configuration";
3
+ const plain = (names) => names.map((name) => ({ name, palette: {} }));
4
+ /**
5
+ * The interface's styles as `@sharadox/style-web-library` groups (`color`, `corner`, `line`), so the visitor's choice
6
+ * is remembered and applied before the first paint (`StyleScript`) and switched with `useStyle` or `StyleSwitch`.
7
+ * The values come from `InterfaceStyle`; the groups only carry the names. `inherit` is the library's `system`.
8
+ *
9
+ * @example
10
+ * export const STYLES = interfaceStyles(INTERFACE);
11
+ * <head><StyleScript configuration={STYLES} /><InterfaceStyle configuration={INTERFACE} /></head>
12
+ */
13
+ export function interfaceStyles(configuration) {
14
+ const { colorStyles, defaultColorStyle, inheritColorStyles } = configuration;
15
+ const color = {
16
+ name: "color",
17
+ defaultChoice: defaultColorStyle === INHERIT_COLOR_STYLE ? "system" : defaultColorStyle,
18
+ systemDefaults: { light: inheritColorStyles.light, dark: inheritColorStyles.dark },
19
+ options: Object.entries(colorStyles).map(([name, style]) => ({ name, scheme: style.scheme, palette: {} })),
20
+ };
21
+ return defineStyles({
22
+ groups: [
23
+ color,
24
+ {
25
+ name: "corner",
26
+ defaultChoice: configuration.defaultCornerStyle,
27
+ options: plain(Object.keys(configuration.cornerStyles)),
28
+ },
29
+ {
30
+ name: "line",
31
+ defaultChoice: configuration.defaultLineStyle,
32
+ options: plain(Object.keys(configuration.lineStyles)),
33
+ },
34
+ ],
35
+ });
36
+ }
37
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/interface-styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,wCAAwC,CAAC;AAEtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,wEAAwE,CAAC;AAG7G,MAAM,KAAK,GAAG,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web-library/radio-group/type";
2
+ /**
3
+ * A group of radios under its label, one choice among them: native radios sharing a name (arrow keys move between
4
+ * them), each drawn like the buttons (outlined, filled once chosen), round by default. Controlled (`value`) or not
5
+ * (`defaultValue`).
6
+ *
7
+ * @example
8
+ * <RadioGroup label="Contact me by" name="contact" options={[{ value: "email", label: "Email" }, …]} defaultValue="email" />
9
+ */
10
+ export declare function RadioGroup(properties: RadioGroupProperties): import("react").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/radio-group/index.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,iEAAiE,CAAC;AAG5G;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,UAAU,EAAE,oBAAoB,+BA6C1D"}
@@ -0,0 +1,27 @@
1
+ "use client";
2
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
3
+ import { useId, useState } from "react";
4
+ import { Box } from "@sharadox/graphical-user-interface-web-library/box";
5
+ import { ToggleMark } from "@sharadox/graphical-user-interface-web-library/toggle-mark";
6
+ import styles from "./index.module.css";
7
+ /**
8
+ * A group of radios under its label, one choice among them: native radios sharing a name (arrow keys move between
9
+ * them), each drawn like the buttons (outlined, filled once chosen), round by default. Controlled (`value`) or not
10
+ * (`defaultValue`).
11
+ *
12
+ * @example
13
+ * <RadioGroup label="Contact me by" name="contact" options={[{ value: "email", label: "Email" }, …]} defaultValue="email" />
14
+ */
15
+ export function RadioGroup(properties) {
16
+ const { label, options, name, value, defaultValue, onChange, disabled, error, state, className, ...look } = properties;
17
+ const id = useId();
18
+ const [own, setOwn] = useState(defaultValue);
19
+ const current = value ?? own;
20
+ const errorId = `${id}-error`;
21
+ return (_jsxs(Box, { role: "radiogroup", "aria-labelledby": `${id}-label`, ...(error !== undefined && { "aria-invalid": true, "aria-describedby": errorId }), direction: "top-to-bottom", align: "start", textAlign: "start", gap: 8, className: className, children: [_jsx("span", { id: `${id}-label`, className: styles.label, children: label }), options.map((option) => (_jsx(ToggleMark, { ...look, type: "radio", name: name ?? id, value: option.value, label: option.label, checked: current === option.value, disabled: disabled, state: state, onChange: () => {
22
+ if (value === undefined)
23
+ setOwn(option.value);
24
+ onChange?.(option.value);
25
+ } }, option.value))), error !== undefined && (_jsx(Box, { as: "p", id: errorId, color: "error", textAlign: "start", className: styles.error, children: error }))] }));
26
+ }
27
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/radio-group/index.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,4DAA4D,CAAC;AAExF,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,UAAgC;IACzD,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GACvG,UAAU,CAAC;IACb,MAAM,EAAE,GAAG,KAAK,EAAE,CAAC;IACnB,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,OAAO,GAAG,KAAK,IAAI,GAAG,CAAC;IAC7B,MAAM,OAAO,GAAG,GAAG,EAAE,QAAQ,CAAC;IAC9B,OAAO,CACL,MAAC,GAAG,IACF,IAAI,EAAC,YAAY,qBACA,GAAG,EAAE,QAAQ,KAC1B,CAAC,KAAK,KAAK,SAAS,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAClF,SAAS,EAAC,eAAe,EACzB,KAAK,EAAC,OAAO,EACb,SAAS,EAAC,OAAO,EACjB,GAAG,EAAE,CAAC,EACN,SAAS,EAAE,SAAS,aAEpB,eAAM,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,CAAC,KAAK,YAC7C,KAAK,GACD,EACN,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CACvB,KAAC,UAAU,OAEL,IAAI,EACR,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,IAAI,IAAI,EAAE,EAChB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,KAAK,EAAE,MAAM,CAAC,KAAK,EACnB,OAAO,EAAE,OAAO,KAAK,MAAM,CAAC,KAAK,EACjC,QAAQ,EAAE,QAAQ,EAClB,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,GAAG,EAAE;oBACb,IAAI,KAAK,KAAK,SAAS;wBAAE,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;oBAC9C,QAAQ,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;gBAC3B,CAAC,IAZI,MAAM,CAAC,KAAK,CAajB,CACH,CAAC,EACD,KAAK,KAAK,SAAS,IAAI,CACtB,KAAC,GAAG,IAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAC,OAAO,EAAC,SAAS,EAAC,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,KAAK,YAC7E,KAAK,GACF,CACP,IACG,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1 @@
1
+ :where(.label){font-size:var(--current-font-size);font-weight:var(--current-font-weight)}:where(.error){margin:0;color:var(--current-color);font-size:var(--scale-12)}
@@ -0,0 +1,10 @@
1
+ :where(.label) {
2
+ font-size: var(--current-font-size);
3
+ font-weight: var(--current-font-weight);
4
+ }
5
+
6
+ :where(.error) {
7
+ margin: 0;
8
+ color: var(--current-color);
9
+ font-size: var(--scale-12);
10
+ }
@@ -0,0 +1,25 @@
1
+ import type { ReactNode } from "react";
2
+ import type { BoxLook, BoxState } from "@sharadox/graphical-user-interface-web-library/box/type";
3
+ export interface RadioOption {
4
+ value: string;
5
+ label: ReactNode;
6
+ }
7
+ export interface RadioGroupProperties extends Pick<BoxLook, "color" | "colorStyle" | "corner" | "line" | "size"> {
8
+ /** The group's name, shown above it. */
9
+ label: ReactNode;
10
+ options: readonly RadioOption[];
11
+ /** The form field's name; one is made otherwise. */
12
+ name?: string;
13
+ /** Controlled: the chosen value. */
14
+ value?: string;
15
+ /** Uncontrolled: the value chosen at first. */
16
+ defaultValue?: string;
17
+ onChange?: (value: string) => void;
18
+ disabled?: boolean;
19
+ /** What is wrong, under the options; marks the group invalid. */
20
+ error?: ReactNode;
21
+ /** Forces a state on every mark (for the design system). */
22
+ state?: BoxState;
23
+ className?: string;
24
+ }
25
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/radio-group/type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,yDAAyD,CAAC;AAEjG,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,SAAS,CAAC;CAClB;AAED,MAAM,WAAW,oBAAqB,SAAQ,IAAI,CAAC,OAAO,EAAE,OAAO,GAAG,YAAY,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;IAC9G,wCAAwC;IACxC,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,SAAS,WAAW,EAAE,CAAC;IAChC,oDAAoD;IACpD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,oCAAoC;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iEAAiE;IACjE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,4DAA4D;IAC5D,KAAK,CAAC,EAAE,QAAQ,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/radio-group/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,10 @@
1
+ import type { Responsive } from "@sharadox/graphical-user-interface-web-library/responsive/type";
2
+ /**
3
+ * The attributes that carry a value, or a value per breakpoint, to the interface's style sheet: `data-size` for every
4
+ * width, `data-size-960` from 960 pixels wide. `fallback` is the base when none is given.
5
+ *
6
+ * @example
7
+ * responsiveAttributes("data-size", { base: "small", 960: "large" }); // { "data-size": "small", "data-size-960": "large" }
8
+ */
9
+ export declare function responsiveAttributes<Value extends string | number>(name: string, value: Responsive<Value> | undefined, fallback?: Value): Record<string, string>;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/responsive/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gEAAgE,CAAC;AAEjG;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAChE,IAAI,EAAE,MAAM,EACZ,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC,GAAG,SAAS,EACpC,QAAQ,CAAC,EAAE,KAAK,GACf,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAYxB"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * The attributes that carry a value, or a value per breakpoint, to the interface's style sheet: `data-size` for every
3
+ * width, `data-size-960` from 960 pixels wide. `fallback` is the base when none is given.
4
+ *
5
+ * @example
6
+ * responsiveAttributes("data-size", { base: "small", 960: "large" }); // { "data-size": "small", "data-size-960": "large" }
7
+ */
8
+ export function responsiveAttributes(name, value, fallback) {
9
+ const attributes = {};
10
+ if (value === undefined || typeof value !== "object") {
11
+ const base = value ?? fallback;
12
+ if (base !== undefined)
13
+ attributes[name] = String(base);
14
+ return attributes;
15
+ }
16
+ const { base = fallback, ...breakpoints } = value;
17
+ if (base !== undefined)
18
+ attributes[name] = String(base);
19
+ for (const width of Object.keys(breakpoints).sort((first, second) => Number(first) - Number(second)))
20
+ attributes[`${name}-${width}`] = String(breakpoints[Number(width)]);
21
+ return attributes;
22
+ }
23
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../source/responsive/index.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAClC,IAAY,EACZ,KAAoC,EACpC,QAAgB;IAEhB,MAAM,UAAU,GAA2B,EAAE,CAAC;IAC9C,IAAI,KAAK,KAAK,SAAS,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACrD,MAAM,IAAI,GAAG,KAAK,IAAI,QAAQ,CAAC;QAC/B,IAAI,IAAI,KAAK,SAAS;YAAE,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;QACxD,OAAO,UAAU,CAAC;IACpB,CAAC;IACD,MAAM,EAAE,IAAI,GAAG,QAAQ,EAAE,GAAG,WAAW,EAAE,GAAG,KAAK,CAAC;IAClD,IAAI,IAAI,KAAK,SAAS;QAAE,UAAU,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC;IACxD,KAAK,MAAM,KAAK,IAAI,MAAM,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC;QAClG,UAAU,CAAC,GAAG,IAAI,IAAI,KAAK,EAAE,CAAC,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACtE,OAAO,UAAU,CAAC;AACpB,CAAC"}
@@ -0,0 +1,12 @@
1
+ /** A breakpoint a value can start at, in pixels (mobile first). */
2
+ export type Breakpoint = number;
3
+ /**
4
+ * One value for every width, or a value per breakpoint (mobile first): `"small"`, or
5
+ * `{ base: "small", 960: "large" }` (small, then large from 960 pixels wide).
6
+ */
7
+ export type Responsive<Value extends string | number> = Value | ({
8
+ base?: Value;
9
+ } & {
10
+ [width: Breakpoint]: Value;
11
+ });
12
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../source/responsive/type.ts"],"names":[],"mappings":"AAAA,mEAAmE;AACnE,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC;AAEhC;;;GAGG;AACH,MAAM,MAAM,UAAU,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,IAAI,KAAK,GAAG,CAAC;IAAE,IAAI,CAAC,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,CAAC,KAAK,EAAE,UAAU,GAAG,KAAK,CAAA;CAAE,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=type.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.js","sourceRoot":"","sources":["../../source/responsive/type.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { SpinnerProperties } from "@sharadox/graphical-user-interface-web-library/spinner/type";
2
+ /**
3
+ * The loading spinner: eight bars in a circle, each lighting up one after another clockwise and fading, so it leaves a
4
+ * trail. It is the size of the text around it (`1em`), in its color, and hidden from screen readers (the busy element
5
+ * says it is busy).
6
+ *
7
+ * @example
8
+ * <Spinner />
9
+ */
10
+ export declare function Spinner({ className }: SpinnerProperties): import("react").JSX.Element;
11
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../source/spinner/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6DAA6D,CAAC;AAKrG;;;;;;;GAOG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,EAAE,iBAAiB,+BAQvD"}