@grafctory/clay-widgets 0.0.0-stage → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +46 -2
  3. package/dist/content/empty.css +107 -0
  4. package/dist/content/empty.d.ts +40 -0
  5. package/dist/content/empty.d.ts.map +1 -0
  6. package/dist/content/empty.js +42 -0
  7. package/dist/content/empty.js.map +1 -0
  8. package/dist/content/heading.css +34 -0
  9. package/dist/content/heading.d.ts +45 -0
  10. package/dist/content/heading.d.ts.map +1 -0
  11. package/dist/content/heading.js +49 -0
  12. package/dist/content/heading.js.map +1 -0
  13. package/dist/content/image.css +176 -0
  14. package/dist/content/image.d.ts +71 -0
  15. package/dist/content/image.d.ts.map +1 -0
  16. package/dist/content/image.js +63 -0
  17. package/dist/content/image.js.map +1 -0
  18. package/dist/content/infobox.css +186 -0
  19. package/dist/content/infobox.d.ts +72 -0
  20. package/dist/content/infobox.d.ts.map +1 -0
  21. package/dist/content/infobox.js +63 -0
  22. package/dist/content/infobox.js.map +1 -0
  23. package/dist/content/pill.css +76 -0
  24. package/dist/content/pill.d.ts +57 -0
  25. package/dist/content/pill.d.ts.map +1 -0
  26. package/dist/content/pill.js +48 -0
  27. package/dist/content/pill.js.map +1 -0
  28. package/dist/content/text.css +44 -0
  29. package/dist/content/text.d.ts +30 -0
  30. package/dist/content/text.d.ts.map +1 -0
  31. package/dist/content/text.js +42 -0
  32. package/dist/content/text.js.map +1 -0
  33. package/dist/controls/button.css +469 -0
  34. package/dist/controls/button.d.ts +116 -0
  35. package/dist/controls/button.d.ts.map +1 -0
  36. package/dist/controls/button.js +61 -0
  37. package/dist/controls/button.js.map +1 -0
  38. package/dist/controls/checkbox.css +23 -0
  39. package/dist/controls/checkbox.d.ts +54 -0
  40. package/dist/controls/checkbox.d.ts.map +1 -0
  41. package/dist/controls/checkbox.js +49 -0
  42. package/dist/controls/checkbox.js.map +1 -0
  43. package/dist/controls/choice.css +288 -0
  44. package/dist/controls/choice.d.ts +63 -0
  45. package/dist/controls/choice.d.ts.map +1 -0
  46. package/dist/controls/choice.js +52 -0
  47. package/dist/controls/choice.js.map +1 -0
  48. package/dist/controls/fieldset.css +37 -0
  49. package/dist/controls/fieldset.d.ts +49 -0
  50. package/dist/controls/fieldset.d.ts.map +1 -0
  51. package/dist/controls/fieldset.js +51 -0
  52. package/dist/controls/fieldset.js.map +1 -0
  53. package/dist/controls/form.css +50 -0
  54. package/dist/controls/form.d.ts +64 -0
  55. package/dist/controls/form.d.ts.map +1 -0
  56. package/dist/controls/form.js +62 -0
  57. package/dist/controls/form.js.map +1 -0
  58. package/dist/controls/input.css +57 -0
  59. package/dist/controls/input.d.ts +120 -0
  60. package/dist/controls/input.d.ts.map +1 -0
  61. package/dist/controls/input.js +78 -0
  62. package/dist/controls/input.js.map +1 -0
  63. package/dist/controls/label.css +73 -0
  64. package/dist/controls/label.d.ts +76 -0
  65. package/dist/controls/label.d.ts.map +1 -0
  66. package/dist/controls/label.js +73 -0
  67. package/dist/controls/label.js.map +1 -0
  68. package/dist/controls/radio.css +23 -0
  69. package/dist/controls/radio.d.ts +60 -0
  70. package/dist/controls/radio.d.ts.map +1 -0
  71. package/dist/controls/radio.js +50 -0
  72. package/dist/controls/radio.js.map +1 -0
  73. package/dist/controls/select.css +37 -0
  74. package/dist/controls/select.d.ts +62 -0
  75. package/dist/controls/select.d.ts.map +1 -0
  76. package/dist/controls/select.js +59 -0
  77. package/dist/controls/select.js.map +1 -0
  78. package/dist/controls/switch.css +154 -0
  79. package/dist/controls/switch.d.ts +44 -0
  80. package/dist/controls/switch.d.ts.map +1 -0
  81. package/dist/controls/switch.js +48 -0
  82. package/dist/controls/switch.js.map +1 -0
  83. package/dist/controls/textarea.css +50 -0
  84. package/dist/controls/textarea.d.ts +97 -0
  85. package/dist/controls/textarea.d.ts.map +1 -0
  86. package/dist/controls/textarea.js +75 -0
  87. package/dist/controls/textarea.js.map +1 -0
  88. package/dist/glyphs/icon.core.d.ts +52 -0
  89. package/dist/glyphs/icon.core.d.ts.map +1 -0
  90. package/dist/glyphs/icon.core.js +67 -0
  91. package/dist/glyphs/icon.core.js.map +1 -0
  92. package/dist/glyphs/icon.css +32 -0
  93. package/dist/glyphs/icon.d.ts +152 -0
  94. package/dist/glyphs/icon.d.ts.map +1 -0
  95. package/dist/glyphs/icon.js +167 -0
  96. package/dist/glyphs/icon.js.map +1 -0
  97. package/dist/glyphs/icon.md +76 -0
  98. package/dist/glyphs/logo.css +73 -0
  99. package/dist/glyphs/logo.d.ts +27 -0
  100. package/dist/glyphs/logo.d.ts.map +1 -0
  101. package/dist/glyphs/logo.js +49 -0
  102. package/dist/glyphs/logo.js.map +1 -0
  103. package/dist/index.d.ts +65 -0
  104. package/dist/index.d.ts.map +1 -0
  105. package/dist/index.js +95 -0
  106. package/dist/index.js.map +1 -0
  107. package/dist/layouts/card.css +166 -0
  108. package/dist/layouts/card.d.ts +69 -0
  109. package/dist/layouts/card.d.ts.map +1 -0
  110. package/dist/layouts/card.js +57 -0
  111. package/dist/layouts/card.js.map +1 -0
  112. package/dist/layouts/stack.css +58 -0
  113. package/dist/layouts/stack.d.ts +64 -0
  114. package/dist/layouts/stack.d.ts.map +1 -0
  115. package/dist/layouts/stack.js +69 -0
  116. package/dist/layouts/stack.js.map +1 -0
  117. package/dist/layouts/strip.css +58 -0
  118. package/dist/layouts/strip.d.ts +72 -0
  119. package/dist/layouts/strip.d.ts.map +1 -0
  120. package/dist/layouts/strip.js +73 -0
  121. package/dist/layouts/strip.js.map +1 -0
  122. package/dist/layouts/tabs.core.d.ts +73 -0
  123. package/dist/layouts/tabs.core.d.ts.map +1 -0
  124. package/dist/layouts/tabs.core.js +65 -0
  125. package/dist/layouts/tabs.core.js.map +1 -0
  126. package/dist/layouts/tabs.css +260 -0
  127. package/dist/layouts/tabs.d.ts +57 -0
  128. package/dist/layouts/tabs.d.ts.map +1 -0
  129. package/dist/layouts/tabs.js +128 -0
  130. package/dist/layouts/tabs.js.map +1 -0
  131. package/dist/layouts/tree.css +138 -0
  132. package/dist/layouts/tree.d.ts +46 -0
  133. package/dist/layouts/tree.d.ts.map +1 -0
  134. package/dist/layouts/tree.js +69 -0
  135. package/dist/layouts/tree.js.map +1 -0
  136. package/dist/navigation/link.css +229 -0
  137. package/dist/navigation/link.d.ts +89 -0
  138. package/dist/navigation/link.d.ts.map +1 -0
  139. package/dist/navigation/link.js +91 -0
  140. package/dist/navigation/link.js.map +1 -0
  141. package/dist/navigation/path.css +122 -0
  142. package/dist/navigation/path.d.ts +42 -0
  143. package/dist/navigation/path.d.ts.map +1 -0
  144. package/dist/navigation/path.js +49 -0
  145. package/dist/navigation/path.js.map +1 -0
  146. package/dist/navigation/toc.core.d.ts +111 -0
  147. package/dist/navigation/toc.core.d.ts.map +1 -0
  148. package/dist/navigation/toc.core.js +60 -0
  149. package/dist/navigation/toc.core.js.map +1 -0
  150. package/dist/navigation/toc.css +53 -0
  151. package/dist/navigation/toc.d.ts +112 -0
  152. package/dist/navigation/toc.d.ts.map +1 -0
  153. package/dist/navigation/toc.js +321 -0
  154. package/dist/navigation/toc.js.map +1 -0
  155. package/dist/scopes/guard.css +26 -0
  156. package/dist/scopes/guard.d.ts +37 -0
  157. package/dist/scopes/guard.d.ts.map +1 -0
  158. package/dist/scopes/guard.js +60 -0
  159. package/dist/scopes/guard.js.map +1 -0
  160. package/dist/scopes/style.css +26 -0
  161. package/dist/scopes/style.d.ts +68 -0
  162. package/dist/scopes/style.d.ts.map +1 -0
  163. package/dist/scopes/style.js +108 -0
  164. package/dist/scopes/style.js.map +1 -0
  165. package/dist/shells/tool.css +778 -0
  166. package/dist/shells/tool.d.ts +164 -0
  167. package/dist/shells/tool.d.ts.map +1 -0
  168. package/dist/shells/tool.js +251 -0
  169. package/dist/shells/tool.js.map +1 -0
  170. package/dist/signals/more.css +42 -0
  171. package/dist/signals/more.d.ts +28 -0
  172. package/dist/signals/more.d.ts.map +1 -0
  173. package/dist/signals/more.js +61 -0
  174. package/dist/signals/more.js.map +1 -0
  175. package/dist/signals/note.css +221 -0
  176. package/dist/signals/note.d.ts +83 -0
  177. package/dist/signals/note.d.ts.map +1 -0
  178. package/dist/signals/note.js +72 -0
  179. package/dist/signals/note.js.map +1 -0
  180. package/dist/signals/toasts.css +463 -0
  181. package/dist/signals/toasts.d.ts +68 -0
  182. package/dist/signals/toasts.d.ts.map +1 -0
  183. package/dist/signals/toasts.js +160 -0
  184. package/dist/signals/toasts.js.map +1 -0
  185. package/package.json +331 -4
@@ -0,0 +1,68 @@
1
+ import { type Tokens } from "@grafctory/skin";
2
+ import { type ComponentChildren } from "preact";
3
+ import "./style.css";
4
+ /**
5
+ * The default look of each kind of widget inside an area.
6
+ *
7
+ * Keyed by the camel-cased name of a widget followed by `Look`, as in `buttonLook` or `menuItemLook`, so any widget
8
+ * taking a look is reached without the area knowing it in advance. Every widget of that kind in the area takes the
9
+ * look given here unless it states one of its own, and an area nested inside another settles what the wider one left.
10
+ *
11
+ * Each look is carried by the `--clay-{name}-look` custom property, the name hyphenated as the widget element is, so
12
+ * `menuItemLook` sets `--clay-menu-item-look`. A key the design system already uses for a token stays that token.
13
+ */
14
+ export type Looks = {
15
+ readonly [K in `${string}Look`]?: "subtle" | "normal" | "strong";
16
+ };
17
+ /**
18
+ * Creates a styled area.
19
+ *
20
+ * Assigns the tokens given to an area of the interface, so everything inside it that reads one is restyled and
21
+ * everything that doesn't is left alone: a token inherits, which makes an enclosing element the scope the design
22
+ * system is retuned over. A token assigned nearer the thing it paints wins, so an area nests inside another and
23
+ * settles what the wider one left.
24
+ *
25
+ * The text tokens `fontSize`, `fontFamily`, `fontWeight`, `lineHeight` and `color` also restyle the text of the area,
26
+ * as they restyle the text of the page. Everything inside the area inherits the new text unless it states its own, so
27
+ * a button resizes along with the label beside it. A relative value such as `fontSizeSmall` resolves against the text
28
+ * around the area, so an area nested inside another scales again, relative to the text of the area enclosing it.
29
+ *
30
+ * The same area sets the default {@link Looks look} of each kind of widget it holds, so a whole toolbar is quietened
31
+ * at once, while a control stating a look of its own keeps that look whatever the area assigns.
32
+ *
33
+ * Tokens are named through the {@link @grafctory/skin!index.skin published contract} rather than as literal
34
+ * strings, so a renamed token breaks the build instead of silently losing its styling; a token mapped to `undefined`
35
+ * is left out, so a conditional override is expressed inline. A screen that already renders an element of its own
36
+ * assigns the same tokens to it with {@link @grafctory/skin!index.css css}, sparing the extra wrapper; that helper
37
+ * knows no looks and sets no text, so such an element sets looks through the custom properties {@link Looks} names
38
+ * and states `font-size` and the other text properties itself, reading the tokens it was given.
39
+ *
40
+ * The area takes no box of its own, so what it holds sits in the row, the grid or the flow around it exactly as it
41
+ * would without the wrapper. Having no box, it takes nothing from the box tokens, `padding`, `borderRadius` and
42
+ * `boxShadow`: an area set apart on a surface of its own is a {@link stack!Stack stack}, a {@link strip!Strip strip}
43
+ * or a {@link card!Card card} given a look instead, retuned by a styled area around it. Being an element all the
44
+ * same, it stands between what it holds and whatever encloses that: a rule reaching its children by `> *`,
45
+ * `:first-child` or `:nth-child()` stops at the area, so a screen styling them that way puts a class on them instead.
46
+ *
47
+ * @param options The widget configuration
48
+ *
49
+ * @returns The styled area
50
+ */
51
+ export declare function Style({ css, children }: {
52
+ /**
53
+ * The value each token takes inside the area, keyed by {@link @grafctory/skin!index.Token token name}, along with
54
+ * the default {@link Looks look} of each kind of widget it holds; a token or a look left out or given `undefined`
55
+ * keeps whatever the cascade already gives it. A value naming a token of the same kind stands for whatever that one
56
+ * carries, so an area is set from the design system rather than from a literal.
57
+ *
58
+ * @throws TypeError If a key names neither a token nor a look, or a look is given a step it does not have
59
+ */
60
+ css: Tokens & Looks;
61
+ /**
62
+ * What the area holds, restyled by the tokens and looks assigned to it, and laid out as it would be outside it.
63
+ */
64
+ children: ComponentChildren;
65
+ }): import("preact").VNode<{
66
+ style: Readonly<Record<string, string>>;
67
+ }>;
68
+ //# sourceMappingURL=style.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.d.ts","sourceRoot":"","sources":["../../src/scopes/style.tsx"],"names":[],"mappings":"AAyBA,OAAO,EAAoC,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAAE,KAAK,iBAAiB,EAAiB,MAAM,QAAQ,CAAC;AAC/D,OAAO,aAAa,CAAC;AAGrB;;;;;;;;;GASG;AACH,MAAM,MAAM,KAAK,GAAG;IAEnB,QAAQ,EAAE,CAAC,IAAI,GAAG,MAAM,MAAM,CAAC,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,QAAQ;CAEhE,CAAA;AAGD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,KAAK,CAAC,EAErB,GAAG,EAEH,QAAQ,EAER,EAAE;IAEF;;;;;;;OAOG;IACH,GAAG,EAAE,MAAM,GAAG,KAAK,CAAA;IAEnB;;OAEG;IACH,QAAQ,EAAE,iBAAiB,CAAA;CAE3B;;GAIA"}
@@ -0,0 +1,108 @@
1
+ /*
2
+ * Copyright © 2026 Metreeca srl
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ /**
17
+ * Token override scope.
18
+ *
19
+ * Restyles everything an area holds, assigning it design system tokens and widget looks while taking no room.
20
+ *
21
+ * @module style
22
+ */
23
+ import { assert } from "@grafctory/core";
24
+ import { css as compile, skin } from "@grafctory/skin";
25
+ import { createElement } from "preact";
26
+ import "./style.css";
27
+ /**
28
+ * Creates a styled area.
29
+ *
30
+ * Assigns the tokens given to an area of the interface, so everything inside it that reads one is restyled and
31
+ * everything that doesn't is left alone: a token inherits, which makes an enclosing element the scope the design
32
+ * system is retuned over. A token assigned nearer the thing it paints wins, so an area nests inside another and
33
+ * settles what the wider one left.
34
+ *
35
+ * The text tokens `fontSize`, `fontFamily`, `fontWeight`, `lineHeight` and `color` also restyle the text of the area,
36
+ * as they restyle the text of the page. Everything inside the area inherits the new text unless it states its own, so
37
+ * a button resizes along with the label beside it. A relative value such as `fontSizeSmall` resolves against the text
38
+ * around the area, so an area nested inside another scales again, relative to the text of the area enclosing it.
39
+ *
40
+ * The same area sets the default {@link Looks look} of each kind of widget it holds, so a whole toolbar is quietened
41
+ * at once, while a control stating a look of its own keeps that look whatever the area assigns.
42
+ *
43
+ * Tokens are named through the {@link @grafctory/skin!index.skin published contract} rather than as literal
44
+ * strings, so a renamed token breaks the build instead of silently losing its styling; a token mapped to `undefined`
45
+ * is left out, so a conditional override is expressed inline. A screen that already renders an element of its own
46
+ * assigns the same tokens to it with {@link @grafctory/skin!index.css css}, sparing the extra wrapper; that helper
47
+ * knows no looks and sets no text, so such an element sets looks through the custom properties {@link Looks} names
48
+ * and states `font-size` and the other text properties itself, reading the tokens it was given.
49
+ *
50
+ * The area takes no box of its own, so what it holds sits in the row, the grid or the flow around it exactly as it
51
+ * would without the wrapper. Having no box, it takes nothing from the box tokens, `padding`, `borderRadius` and
52
+ * `boxShadow`: an area set apart on a surface of its own is a {@link stack!Stack stack}, a {@link strip!Strip strip}
53
+ * or a {@link card!Card card} given a look instead, retuned by a styled area around it. Being an element all the
54
+ * same, it stands between what it holds and whatever encloses that: a rule reaching its children by `> *`,
55
+ * `:first-child` or `:nth-child()` stops at the area, so a screen styling them that way puts a class on them instead.
56
+ *
57
+ * @param options The widget configuration
58
+ *
59
+ * @returns The styled area
60
+ */
61
+ export function Style({ css, children }) {
62
+ return createElement("clay-style", { style: style(css) }, children);
63
+ }
64
+ const steps = ["subtle", "normal", "strong"];
65
+ /**
66
+ * The tokens the page sets its text in, each named as the text property it sets.
67
+ */
68
+ const texts = [
69
+ "fontSize",
70
+ "fontFamily",
71
+ "fontWeight",
72
+ "lineHeight",
73
+ "color"
74
+ ];
75
+ function isStep(value) {
76
+ return steps.includes(value);
77
+ }
78
+ function isLook(key) {
79
+ return /^[a-z][a-zA-Z0-9]*Look$/.test(key);
80
+ }
81
+ /**
82
+ * Compiles tokens through the design system and looks to the knobs widgets read them from.
83
+ */
84
+ function style(css) {
85
+ const [tokens, looks] = Object.entries(css).reduce(([tokens, looks], [key, value]) => key in skin ? [{ ...tokens, [key]: value }, looks]
86
+ : value === undefined ? [tokens, looks]
87
+ : [tokens, { ...looks, [knob(key)]: step(key, value) }], [{}, {}]);
88
+ return { ...compile(tokens), ...text(tokens), ...looks };
89
+ }
90
+ /**
91
+ * Sets the text of the area in the text tokens it is given, which the page alone reads otherwise.
92
+ */
93
+ function text(tokens) {
94
+ return Object.fromEntries(texts
95
+ .filter(key => tokens[key] !== undefined)
96
+ .map(key => [key, `var(${skin[key]})`]));
97
+ }
98
+ /**
99
+ * Names the knob a look is read from, hyphenating the widget name as its element is.
100
+ */
101
+ function knob(key) {
102
+ const $key = assert(key, isLook, `unknown token or look <${key}>`);
103
+ return `--clay-${$key.slice(0, -"Look".length).replace(/[A-Z]/g, upper => `-${upper.toLowerCase()}`)}-look`;
104
+ }
105
+ function step(key, value) {
106
+ return assert(value, isStep, `illegal <${key}> step <${value}>`);
107
+ }
108
+ //# sourceMappingURL=style.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style.js","sourceRoot":"","sources":["../../src/scopes/style.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;GAMG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,OAAO,EAAE,IAAI,EAA2B,MAAM,iBAAiB,CAAC;AAChF,OAAO,EAA0B,aAAa,EAAE,MAAM,QAAQ,CAAC;AAC/D,OAAO,aAAa,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