@a2ui/web_core 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/README.md +13 -0
  2. package/dist/.tsbuildinfo +1 -0
  3. package/dist/src/v0_8/data/guards.d.ts +24 -0
  4. package/dist/src/v0_8/data/guards.d.ts.map +1 -0
  5. package/dist/src/v0_8/data/guards.js +153 -0
  6. package/dist/src/v0_8/data/guards.js.map +1 -0
  7. package/dist/src/v0_8/data/model-processor.d.ts +79 -0
  8. package/dist/src/v0_8/data/model-processor.d.ts.map +1 -0
  9. package/dist/src/v0_8/data/model-processor.js +627 -0
  10. package/dist/src/v0_8/data/model-processor.js.map +1 -0
  11. package/dist/src/v0_8/events/base.d.ts +24 -0
  12. package/dist/src/v0_8/events/base.d.ts.map +1 -0
  13. package/dist/src/v0_8/events/base.js +17 -0
  14. package/dist/src/v0_8/events/base.js.map +1 -0
  15. package/dist/src/v0_8/events/index.d.ts +18 -0
  16. package/dist/src/v0_8/events/index.d.ts.map +1 -0
  17. package/dist/src/v0_8/events/index.js +18 -0
  18. package/dist/src/v0_8/events/index.js.map +1 -0
  19. package/dist/src/v0_8/events/validation-event.d.ts +46 -0
  20. package/dist/src/v0_8/events/validation-event.d.ts.map +1 -0
  21. package/dist/src/v0_8/events/validation-event.js +33 -0
  22. package/dist/src/v0_8/events/validation-event.js.map +1 -0
  23. package/dist/src/v0_8/index.d.ts +743 -0
  24. package/dist/src/v0_8/index.d.ts.map +1 -0
  25. package/dist/src/v0_8/index.js +12 -0
  26. package/dist/src/v0_8/index.js.map +1 -0
  27. package/dist/src/v0_8/schemas/a2ui_client_capabilities_schema.json +23 -0
  28. package/dist/src/v0_8/schemas/catalog_description_schema.json +34 -0
  29. package/dist/src/v0_8/schemas/client_to_server.json +53 -0
  30. package/dist/src/v0_8/schemas/server_to_client.json +148 -0
  31. package/dist/src/v0_8/schemas/server_to_client_with_standard_catalog.json +823 -0
  32. package/dist/src/v0_8/schemas/standard_catalog_definition.json +772 -0
  33. package/dist/src/v0_8/styles/behavior.d.ts +2 -0
  34. package/dist/src/v0_8/styles/behavior.d.ts.map +1 -0
  35. package/dist/src/v0_8/styles/behavior.js +54 -0
  36. package/dist/src/v0_8/styles/behavior.js.map +1 -0
  37. package/dist/src/v0_8/styles/border.d.ts +2 -0
  38. package/dist/src/v0_8/styles/border.d.ts.map +1 -0
  39. package/dist/src/v0_8/styles/border.js +41 -0
  40. package/dist/src/v0_8/styles/border.js.map +1 -0
  41. package/dist/src/v0_8/styles/colors.d.ts +2 -0
  42. package/dist/src/v0_8/styles/colors.d.ts.map +1 -0
  43. package/dist/src/v0_8/styles/colors.js +80 -0
  44. package/dist/src/v0_8/styles/colors.js.map +1 -0
  45. package/dist/src/v0_8/styles/icons.d.ts +11 -0
  46. package/dist/src/v0_8/styles/icons.d.ts.map +1 -0
  47. package/dist/src/v0_8/styles/icons.js +60 -0
  48. package/dist/src/v0_8/styles/icons.js.map +1 -0
  49. package/dist/src/v0_8/styles/index.d.ts +3 -0
  50. package/dist/src/v0_8/styles/index.d.ts.map +1 -0
  51. package/dist/src/v0_8/styles/index.js +35 -0
  52. package/dist/src/v0_8/styles/index.js.map +1 -0
  53. package/dist/src/v0_8/styles/layout.d.ts +2 -0
  54. package/dist/src/v0_8/styles/layout.d.ts.map +1 -0
  55. package/dist/src/v0_8/styles/layout.js +232 -0
  56. package/dist/src/v0_8/styles/layout.js.map +1 -0
  57. package/dist/src/v0_8/styles/opacity.d.ts +2 -0
  58. package/dist/src/v0_8/styles/opacity.d.ts.map +1 -0
  59. package/dist/src/v0_8/styles/opacity.js +24 -0
  60. package/dist/src/v0_8/styles/opacity.js.map +1 -0
  61. package/dist/src/v0_8/styles/shared.d.ts +2 -0
  62. package/dist/src/v0_8/styles/shared.d.ts.map +1 -0
  63. package/dist/src/v0_8/styles/shared.js +17 -0
  64. package/dist/src/v0_8/styles/shared.js.map +1 -0
  65. package/dist/src/v0_8/styles/type.d.ts +2 -0
  66. package/dist/src/v0_8/styles/type.d.ts.map +1 -0
  67. package/dist/src/v0_8/styles/type.js +156 -0
  68. package/dist/src/v0_8/styles/type.js.map +1 -0
  69. package/dist/src/v0_8/styles/utils.d.ts +6 -0
  70. package/dist/src/v0_8/styles/utils.d.ts.map +1 -0
  71. package/dist/src/v0_8/styles/utils.js +81 -0
  72. package/dist/src/v0_8/styles/utils.js.map +1 -0
  73. package/dist/src/v0_8/types/client-event.d.ts +66 -0
  74. package/dist/src/v0_8/types/client-event.d.ts.map +1 -0
  75. package/dist/src/v0_8/types/client-event.js +17 -0
  76. package/dist/src/v0_8/types/client-event.js.map +1 -0
  77. package/dist/src/v0_8/types/colors.d.ts +25 -0
  78. package/dist/src/v0_8/types/colors.d.ts.map +1 -0
  79. package/dist/src/v0_8/types/colors.js +19 -0
  80. package/dist/src/v0_8/types/colors.js.map +1 -0
  81. package/dist/src/v0_8/types/components.d.ts +176 -0
  82. package/dist/src/v0_8/types/components.d.ts.map +1 -0
  83. package/dist/src/v0_8/types/components.js +17 -0
  84. package/dist/src/v0_8/types/components.js.map +1 -0
  85. package/dist/src/v0_8/types/primitives.d.ts +43 -0
  86. package/dist/src/v0_8/types/primitives.d.ts.map +1 -0
  87. package/dist/src/v0_8/types/primitives.js +17 -0
  88. package/dist/src/v0_8/types/primitives.js.map +1 -0
  89. package/dist/src/v0_8/types/types.d.ts +411 -0
  90. package/dist/src/v0_8/types/types.d.ts.map +1 -0
  91. package/dist/src/v0_8/types/types.js +17 -0
  92. package/dist/src/v0_8/types/types.js.map +1 -0
  93. package/dist/src/v0_9/catalog/types.d.ts +27 -0
  94. package/dist/src/v0_9/catalog/types.d.ts.map +1 -0
  95. package/dist/src/v0_9/catalog/types.js +11 -0
  96. package/dist/src/v0_9/catalog/types.js.map +1 -0
  97. package/dist/src/v0_9/common/events.d.ts +24 -0
  98. package/dist/src/v0_9/common/events.d.ts.map +1 -0
  99. package/dist/src/v0_9/common/events.js +29 -0
  100. package/dist/src/v0_9/common/events.js.map +1 -0
  101. package/dist/src/v0_9/index.d.ts +11 -0
  102. package/dist/src/v0_9/index.d.ts.map +1 -0
  103. package/dist/src/v0_9/index.js +11 -0
  104. package/dist/src/v0_9/index.js.map +1 -0
  105. package/dist/src/v0_9/processing/message-processor.d.ts +34 -0
  106. package/dist/src/v0_9/processing/message-processor.d.ts.map +1 -0
  107. package/dist/src/v0_9/processing/message-processor.js +128 -0
  108. package/dist/src/v0_9/processing/message-processor.js.map +1 -0
  109. package/dist/src/v0_9/processing/message-processor.test.d.ts +2 -0
  110. package/dist/src/v0_9/processing/message-processor.test.d.ts.map +1 -0
  111. package/dist/src/v0_9/processing/message-processor.test.js +112 -0
  112. package/dist/src/v0_9/processing/message-processor.test.js.map +1 -0
  113. package/dist/src/v0_9/rendering/component-context.d.ts +17 -0
  114. package/dist/src/v0_9/rendering/component-context.d.ts.map +1 -0
  115. package/dist/src/v0_9/rendering/component-context.js +21 -0
  116. package/dist/src/v0_9/rendering/component-context.js.map +1 -0
  117. package/dist/src/v0_9/rendering/data-context.d.ts +37 -0
  118. package/dist/src/v0_9/rendering/data-context.d.ts.map +1 -0
  119. package/dist/src/v0_9/rendering/data-context.js +97 -0
  120. package/dist/src/v0_9/rendering/data-context.js.map +1 -0
  121. package/dist/src/v0_9/rendering/data-context.test.d.ts +2 -0
  122. package/dist/src/v0_9/rendering/data-context.test.d.ts.map +1 -0
  123. package/dist/src/v0_9/rendering/data-context.test.js +71 -0
  124. package/dist/src/v0_9/rendering/data-context.test.js.map +1 -0
  125. package/dist/src/v0_9/schema/common-types.d.ts +608 -0
  126. package/dist/src/v0_9/schema/common-types.d.ts.map +1 -0
  127. package/dist/src/v0_9/schema/common-types.js +92 -0
  128. package/dist/src/v0_9/schema/common-types.js.map +1 -0
  129. package/dist/src/v0_9/schema/index.d.ts +3 -0
  130. package/dist/src/v0_9/schema/index.d.ts.map +1 -0
  131. package/dist/src/v0_9/schema/index.js +3 -0
  132. package/dist/src/v0_9/schema/index.js.map +1 -0
  133. package/dist/src/v0_9/schema/server-to-client.d.ts +84 -0
  134. package/dist/src/v0_9/schema/server-to-client.d.ts.map +1 -0
  135. package/dist/src/v0_9/schema/server-to-client.js +21 -0
  136. package/dist/src/v0_9/schema/server-to-client.js.map +1 -0
  137. package/dist/src/v0_9/state/component-model.d.ts +16 -0
  138. package/dist/src/v0_9/state/component-model.d.ts.map +1 -0
  139. package/dist/src/v0_9/state/component-model.js +24 -0
  140. package/dist/src/v0_9/state/component-model.js.map +1 -0
  141. package/dist/src/v0_9/state/component-model.test.d.ts +2 -0
  142. package/dist/src/v0_9/state/component-model.test.d.ts.map +1 -0
  143. package/dist/src/v0_9/state/component-model.test.js +39 -0
  144. package/dist/src/v0_9/state/component-model.test.js.map +1 -0
  145. package/dist/src/v0_9/state/data-model.d.ts +47 -0
  146. package/dist/src/v0_9/state/data-model.d.ts.map +1 -0
  147. package/dist/src/v0_9/state/data-model.js +191 -0
  148. package/dist/src/v0_9/state/data-model.js.map +1 -0
  149. package/dist/src/v0_9/state/data-model.test.d.ts +2 -0
  150. package/dist/src/v0_9/state/data-model.test.d.ts.map +1 -0
  151. package/dist/src/v0_9/state/data-model.test.js +204 -0
  152. package/dist/src/v0_9/state/data-model.test.js.map +1 -0
  153. package/dist/src/v0_9/state/surface-components-model.d.ts +19 -0
  154. package/dist/src/v0_9/state/surface-components-model.d.ts.map +1 -0
  155. package/dist/src/v0_9/state/surface-components-model.js +42 -0
  156. package/dist/src/v0_9/state/surface-components-model.js.map +1 -0
  157. package/dist/src/v0_9/state/surface-components-model.test.d.ts +2 -0
  158. package/dist/src/v0_9/state/surface-components-model.test.d.ts.map +1 -0
  159. package/dist/src/v0_9/state/surface-components-model.test.js +49 -0
  160. package/dist/src/v0_9/state/surface-components-model.test.js.map +1 -0
  161. package/dist/src/v0_9/state/surface-group-model.d.ts +25 -0
  162. package/dist/src/v0_9/state/surface-group-model.d.ts.map +1 -0
  163. package/dist/src/v0_9/state/surface-group-model.js +56 -0
  164. package/dist/src/v0_9/state/surface-group-model.js.map +1 -0
  165. package/dist/src/v0_9/state/surface-group-model.test.d.ts +2 -0
  166. package/dist/src/v0_9/state/surface-group-model.test.d.ts.map +1 -0
  167. package/dist/src/v0_9/state/surface-group-model.test.js +67 -0
  168. package/dist/src/v0_9/state/surface-group-model.test.js.map +1 -0
  169. package/dist/src/v0_9/state/surface-model.d.ts +23 -0
  170. package/dist/src/v0_9/state/surface-model.d.ts.map +1 -0
  171. package/dist/src/v0_9/state/surface-model.js +28 -0
  172. package/dist/src/v0_9/state/surface-model.js.map +1 -0
  173. package/dist/src/v0_9/state/surface-model.test.d.ts +2 -0
  174. package/dist/src/v0_9/state/surface-model.test.d.ts.map +1 -0
  175. package/dist/src/v0_9/state/surface-model.test.js +39 -0
  176. package/dist/src/v0_9/state/surface-model.test.js.map +1 -0
  177. package/dist/src/v0_9/test/test-utils.d.ts +8 -0
  178. package/dist/src/v0_9/test/test-utils.d.ts.map +1 -0
  179. package/dist/src/v0_9/test/test-utils.js +18 -0
  180. package/dist/src/v0_9/test/test-utils.js.map +1 -0
  181. package/package.json +94 -0
  182. package/src/v0_8/data/guards.ts +236 -0
  183. package/src/v0_8/data/model-processor.ts +855 -0
  184. package/src/v0_8/events/base.ts +24 -0
  185. package/src/v0_8/events/index.ts +18 -0
  186. package/src/v0_8/events/validation-event.ts +66 -0
  187. package/src/v0_8/index.ts +12 -0
  188. package/src/v0_8/schemas/server_to_client_with_standard_catalog.json +823 -0
  189. package/src/v0_8/styles/behavior.ts +55 -0
  190. package/src/v0_8/styles/border.ts +42 -0
  191. package/src/v0_8/styles/colors.ts +100 -0
  192. package/src/v0_8/styles/icons.ts +60 -0
  193. package/src/v0_8/styles/index.ts +37 -0
  194. package/src/v0_8/styles/layout.ts +235 -0
  195. package/src/v0_8/styles/opacity.ts +24 -0
  196. package/src/v0_8/styles/shared.ts +17 -0
  197. package/src/v0_8/styles/type.ts +156 -0
  198. package/src/v0_8/styles/utils.ts +104 -0
  199. package/src/v0_8/types/client-event.ts +80 -0
  200. package/src/v0_8/types/colors.ts +66 -0
  201. package/src/v0_8/types/components.ts +213 -0
  202. package/src/v0_8/types/primitives.ts +60 -0
  203. package/src/v0_8/types/types.ts +557 -0
  204. package/src/v0_9/catalog/types.ts +38 -0
  205. package/src/v0_9/common/events.ts +44 -0
  206. package/src/v0_9/index.ts +12 -0
  207. package/src/v0_9/processing/message-processor.test.ts +133 -0
  208. package/src/v0_9/processing/message-processor.ts +150 -0
  209. package/src/v0_9/rendering/component-context.ts +36 -0
  210. package/src/v0_9/rendering/data-context.test.ts +85 -0
  211. package/src/v0_9/rendering/data-context.ts +110 -0
  212. package/src/v0_9/schema/common-types.ts +125 -0
  213. package/src/v0_9/schema/index.ts +2 -0
  214. package/src/v0_9/schema/server-to-client.ts +23 -0
  215. package/src/v0_9/state/component-model.test.ts +50 -0
  216. package/src/v0_9/state/component-model.ts +32 -0
  217. package/src/v0_9/state/data-model.test.ts +257 -0
  218. package/src/v0_9/state/data-model.ts +239 -0
  219. package/src/v0_9/state/surface-components-model.test.ts +59 -0
  220. package/src/v0_9/state/surface-components-model.ts +48 -0
  221. package/src/v0_9/state/surface-group-model.test.ts +82 -0
  222. package/src/v0_9/state/surface-group-model.ts +66 -0
  223. package/src/v0_9/state/surface-model.test.ts +44 -0
  224. package/src/v0_9/state/surface-model.ts +39 -0
  225. package/src/v0_9/test/test-utils.ts +22 -0
@@ -0,0 +1,2 @@
1
+ export declare const behavior: string;
2
+ //# sourceMappingURL=behavior.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behavior.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/behavior.ts"],"names":[],"mappings":"AA4BA,eAAO,MAAM,QAAQ,QA0BpB,CAAC"}
@@ -0,0 +1,54 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ const opacityBehavior = `
17
+ &:not([disabled]) {
18
+ cursor: pointer;
19
+ opacity: var(--opacity, 0);
20
+ transition: opacity var(--speed, 0.2s) cubic-bezier(0, 0, 0.3, 1);
21
+
22
+ &:hover,
23
+ &:focus {
24
+ opacity: 1;
25
+ }
26
+ }`;
27
+ export const behavior = `
28
+ ${new Array(21)
29
+ .fill(0)
30
+ .map((_, idx) => {
31
+ return `.behavior-ho-${idx * 5} {
32
+ --opacity: ${idx / 20};
33
+ ${opacityBehavior}
34
+ }`;
35
+ })
36
+ .join("\n")}
37
+
38
+ .behavior-o-s {
39
+ overflow: scroll;
40
+ }
41
+
42
+ .behavior-o-a {
43
+ overflow: auto;
44
+ }
45
+
46
+ .behavior-o-h {
47
+ overflow: hidden;
48
+ }
49
+
50
+ .behavior-sw-n {
51
+ scrollbar-width: none;
52
+ }
53
+ `;
54
+ //# sourceMappingURL=behavior.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"behavior.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/behavior.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,eAAe,GAAG;;;;;;;;;;IAUpB,CAAC;AAEL,MAAM,CAAC,MAAM,QAAQ,GAAG;IACpB,IAAI,KAAK,CAAC,EAAE,CAAC;KACZ,IAAI,CAAC,CAAC,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACd,OAAO,gBAAgB,GAAG,GAAG,CAAC;uBACb,GAAG,GAAG,EAAE;YACnB,eAAe;UACjB,CAAC;AACP,CAAC,CAAC;KACD,IAAI,CAAC,IAAI,CAAC;;;;;;;;;;;;;;;;;CAiBd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const border: string;
2
+ //# sourceMappingURL=border.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/border.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,MAAM,QAuBlB,CAAC"}
@@ -0,0 +1,41 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ import { grid } from "./shared.js";
17
+ export const border = `
18
+ ${new Array(25)
19
+ .fill(0)
20
+ .map((_, idx) => {
21
+ return `
22
+ .border-bw-${idx} { border-width: ${idx}px; }
23
+ .border-btw-${idx} { border-top-width: ${idx}px; }
24
+ .border-bbw-${idx} { border-bottom-width: ${idx}px; }
25
+ .border-blw-${idx} { border-left-width: ${idx}px; }
26
+ .border-brw-${idx} { border-right-width: ${idx}px; }
27
+
28
+ .border-ow-${idx} { outline-width: ${idx}px; }
29
+ .border-br-${idx} { border-radius: ${idx * grid}px; overflow: hidden;}`;
30
+ })
31
+ .join("\n")}
32
+
33
+ .border-br-50pc {
34
+ border-radius: 50%;
35
+ }
36
+
37
+ .border-bs-s {
38
+ border-style: solid;
39
+ }
40
+ `;
41
+ //# sourceMappingURL=border.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"border.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/border.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG;IAClB,IAAI,KAAK,CAAC,EAAE,CAAC;KACZ,IAAI,CAAC,CAAC,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACd,OAAO;qBACQ,GAAG,oBAAoB,GAAG;sBACzB,GAAG,wBAAwB,GAAG;sBAC9B,GAAG,2BAA2B,GAAG;sBACjC,GAAG,yBAAyB,GAAG;sBAC/B,GAAG,0BAA0B,GAAG;;qBAEjC,GAAG,qBAAqB,GAAG;qBAC3B,GAAG,qBAAqB,GAAG,GAAG,IAAI,wBAAwB,CAAC;AAC5E,CAAC,CAAC;KACD,IAAI,CAAC,IAAI,CAAC;;;;;;;;;CASd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const colors: string[];
2
+ //# sourceMappingURL=colors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/colors.ts"],"names":[],"mappings":"AAmFA,eAAO,MAAM,MAAM,UAgBlB,CAAC"}
@@ -0,0 +1,80 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ import { shades } from "../types/colors.js";
17
+ import { toProp } from "./utils.js";
18
+ const color = (src) => `
19
+ ${src
20
+ .map((key) => {
21
+ const inverseKey = getInverseKey(key);
22
+ return `.color-bc-${key} { border-color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`;
23
+ })
24
+ .join("\n")}
25
+
26
+ ${src
27
+ .map((key) => {
28
+ const inverseKey = getInverseKey(key);
29
+ const vals = [
30
+ `.color-bgc-${key} { background-color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`,
31
+ `.color-bbgc-${key}::backdrop { background-color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`,
32
+ ];
33
+ for (let o = 0.1; o < 1; o += 0.1) {
34
+ vals.push(`.color-bbgc-${key}_${(o * 100).toFixed(0)}::backdrop {
35
+ background-color: light-dark(oklch(from var(${toProp(key)}) l c h / calc(alpha * ${o.toFixed(1)})), oklch(from var(${toProp(inverseKey)}) l c h / calc(alpha * ${o.toFixed(1)})) );
36
+ }
37
+ `);
38
+ }
39
+ return vals.join("\n");
40
+ })
41
+ .join("\n")}
42
+
43
+ ${src
44
+ .map((key) => {
45
+ const inverseKey = getInverseKey(key);
46
+ return `.color-c-${key} { color: light-dark(var(${toProp(key)}), var(${toProp(inverseKey)})); }`;
47
+ })
48
+ .join("\n")}
49
+ `;
50
+ const getInverseKey = (key) => {
51
+ const match = key.match(/^([a-z]+)(\d+)$/);
52
+ if (!match)
53
+ return key;
54
+ const [, prefix, shadeStr] = match;
55
+ const shade = parseInt(shadeStr, 10);
56
+ const target = 100 - shade;
57
+ const inverseShade = shades.reduce((prev, curr) => Math.abs(curr - target) < Math.abs(prev - target) ? curr : prev);
58
+ return `${prefix}${inverseShade}`;
59
+ };
60
+ const keyFactory = (prefix) => {
61
+ return shades.map((v) => `${prefix}${v}`);
62
+ };
63
+ export const colors = [
64
+ color(keyFactory("p")),
65
+ color(keyFactory("s")),
66
+ color(keyFactory("t")),
67
+ color(keyFactory("n")),
68
+ color(keyFactory("nv")),
69
+ color(keyFactory("e")),
70
+ `
71
+ .color-bgc-transparent {
72
+ background-color: transparent;
73
+ }
74
+
75
+ :host {
76
+ color-scheme: var(--color-scheme);
77
+ }
78
+ `,
79
+ ];
80
+ //# sourceMappingURL=colors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"colors.js","sourceRoot":"","sources":["../../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G,CAAC,CAAC;IACtB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB,KAAK,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IACvB,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;IACtB;;;;;;;;GAQC;CACF,CAAC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * CSS classes for Google Symbols.
3
+ *
4
+ * Usage:
5
+ *
6
+ * ```html
7
+ * <span class="g-icon">pen_spark</span>
8
+ * ```
9
+ */
10
+ export declare const icons = "\n .g-icon {\n font-family: \"Material Symbols Outlined\", \"Google Symbols\";\n font-weight: normal;\n font-style: normal;\n font-display: optional;\n font-size: 20px;\n width: 1em;\n height: 1em;\n user-select: none;\n line-height: 1;\n letter-spacing: normal;\n text-transform: none;\n display: inline-block;\n white-space: nowrap;\n word-wrap: normal;\n direction: ltr;\n -webkit-font-feature-settings: \"liga\";\n -webkit-font-smoothing: antialiased;\n overflow: hidden;\n\n font-variation-settings: \"FILL\" 0, \"wght\" 300, \"GRAD\" 0, \"opsz\" 48,\n \"ROND\" 100;\n\n &.filled {\n font-variation-settings: \"FILL\" 1, \"wght\" 300, \"GRAD\" 0, \"opsz\" 48,\n \"ROND\" 100;\n }\n\n &.filled-heavy {\n font-variation-settings: \"FILL\" 1, \"wght\" 700, \"GRAD\" 0, \"opsz\" 48,\n \"ROND\" 100;\n }\n }\n";
11
+ //# sourceMappingURL=icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/icons.ts"],"names":[],"mappings":"AAgBA;;;;;;;;GAQG;AACH,eAAO,MAAM,KAAK,k5BAkCjB,CAAC"}
@@ -0,0 +1,60 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ * CSS classes for Google Symbols.
18
+ *
19
+ * Usage:
20
+ *
21
+ * ```html
22
+ * <span class="g-icon">pen_spark</span>
23
+ * ```
24
+ */
25
+ export const icons = `
26
+ .g-icon {
27
+ font-family: "Material Symbols Outlined", "Google Symbols";
28
+ font-weight: normal;
29
+ font-style: normal;
30
+ font-display: optional;
31
+ font-size: 20px;
32
+ width: 1em;
33
+ height: 1em;
34
+ user-select: none;
35
+ line-height: 1;
36
+ letter-spacing: normal;
37
+ text-transform: none;
38
+ display: inline-block;
39
+ white-space: nowrap;
40
+ word-wrap: normal;
41
+ direction: ltr;
42
+ -webkit-font-feature-settings: "liga";
43
+ -webkit-font-smoothing: antialiased;
44
+ overflow: hidden;
45
+
46
+ font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 48,
47
+ "ROND" 100;
48
+
49
+ &.filled {
50
+ font-variation-settings: "FILL" 1, "wght" 300, "GRAD" 0, "opsz" 48,
51
+ "ROND" 100;
52
+ }
53
+
54
+ &.filled-heavy {
55
+ font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 48,
56
+ "ROND" 100;
57
+ }
58
+ }
59
+ `;
60
+ //# sourceMappingURL=icons.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icons.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/icons.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkCpB,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from "./utils.js";
2
+ export declare const structuralStyles: string;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/index.ts"],"names":[],"mappings":"AAwBA,cAAc,YAAY,CAAC;AAE3B,eAAO,MAAM,gBAAgB,EAAE,MAUlB,CAAC"}
@@ -0,0 +1,35 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ import { behavior } from "./behavior.js";
17
+ import { border } from "./border.js";
18
+ import { colors } from "./colors.js";
19
+ import { icons } from "./icons.js";
20
+ import { layout } from "./layout.js";
21
+ import { opacity } from "./opacity.js";
22
+ import { type } from "./type.js";
23
+ export * from "./utils.js";
24
+ export const structuralStyles = [
25
+ behavior,
26
+ border,
27
+ colors,
28
+ icons,
29
+ layout,
30
+ opacity,
31
+ type,
32
+ ]
33
+ .flat(Infinity)
34
+ .join("\n");
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,cAAc,YAAY,CAAC;AAE3B,MAAM,CAAC,MAAM,gBAAgB,GAAW;IACtC,QAAQ;IACR,MAAM;IACN,MAAM;IACN,KAAK;IACL,MAAM;IACN,OAAO;IACP,IAAI;CACL;KACE,IAAI,CAAC,QAAQ,CAAC;KACd,IAAI,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const layout: string;
2
+ //# sourceMappingURL=layout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/layout.ts"],"names":[],"mappings":"AAkBA,eAAO,MAAM,MAAM,QAwNlB,CAAC"}
@@ -0,0 +1,232 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ import { grid } from "./shared.js";
17
+ export const layout = `
18
+ :host {
19
+ ${new Array(16)
20
+ .fill(0)
21
+ .map((_, idx) => {
22
+ return `--g-${idx + 1}: ${(idx + 1) * grid}px;`;
23
+ })
24
+ .join("\n")}
25
+ }
26
+
27
+ ${new Array(49)
28
+ .fill(0)
29
+ .map((_, index) => {
30
+ const idx = index - 24;
31
+ const lbl = idx < 0 ? `n${Math.abs(idx)}` : idx.toString();
32
+ return `
33
+ .layout-p-${lbl} { --padding: ${idx * grid}px; padding: var(--padding); }
34
+ .layout-pt-${lbl} { padding-top: ${idx * grid}px; }
35
+ .layout-pr-${lbl} { padding-right: ${idx * grid}px; }
36
+ .layout-pb-${lbl} { padding-bottom: ${idx * grid}px; }
37
+ .layout-pl-${lbl} { padding-left: ${idx * grid}px; }
38
+
39
+ .layout-m-${lbl} { --margin: ${idx * grid}px; margin: var(--margin); }
40
+ .layout-mt-${lbl} { margin-top: ${idx * grid}px; }
41
+ .layout-mr-${lbl} { margin-right: ${idx * grid}px; }
42
+ .layout-mb-${lbl} { margin-bottom: ${idx * grid}px; }
43
+ .layout-ml-${lbl} { margin-left: ${idx * grid}px; }
44
+
45
+ .layout-t-${lbl} { top: ${idx * grid}px; }
46
+ .layout-r-${lbl} { right: ${idx * grid}px; }
47
+ .layout-b-${lbl} { bottom: ${idx * grid}px; }
48
+ .layout-l-${lbl} { left: ${idx * grid}px; }`;
49
+ })
50
+ .join("\n")}
51
+
52
+ ${new Array(25)
53
+ .fill(0)
54
+ .map((_, idx) => {
55
+ return `
56
+ .layout-g-${idx} { gap: ${idx * grid}px; }`;
57
+ })
58
+ .join("\n")}
59
+
60
+ ${new Array(8)
61
+ .fill(0)
62
+ .map((_, idx) => {
63
+ return `
64
+ .layout-grd-col${idx + 1} { grid-template-columns: ${"1fr "
65
+ .repeat(idx + 1)
66
+ .trim()}; }`;
67
+ })
68
+ .join("\n")}
69
+
70
+ .layout-pos-a {
71
+ position: absolute;
72
+ }
73
+
74
+ .layout-pos-rel {
75
+ position: relative;
76
+ }
77
+
78
+ .layout-dsp-none {
79
+ display: none;
80
+ }
81
+
82
+ .layout-dsp-block {
83
+ display: block;
84
+ }
85
+
86
+ .layout-dsp-grid {
87
+ display: grid;
88
+ }
89
+
90
+ .layout-dsp-iflex {
91
+ display: inline-flex;
92
+ }
93
+
94
+ .layout-dsp-flexvert {
95
+ display: flex;
96
+ flex-direction: column;
97
+ }
98
+
99
+ .layout-dsp-flexhor {
100
+ display: flex;
101
+ flex-direction: row;
102
+ }
103
+
104
+ .layout-fw-w {
105
+ flex-wrap: wrap;
106
+ }
107
+
108
+ .layout-al-fs {
109
+ align-items: start;
110
+ }
111
+
112
+ .layout-al-fe {
113
+ align-items: end;
114
+ }
115
+
116
+ .layout-al-c {
117
+ align-items: center;
118
+ }
119
+
120
+ .layout-as-n {
121
+ align-self: normal;
122
+ }
123
+
124
+ .layout-js-c {
125
+ justify-self: center;
126
+ }
127
+
128
+ .layout-sp-c {
129
+ justify-content: center;
130
+ }
131
+
132
+ .layout-sp-ev {
133
+ justify-content: space-evenly;
134
+ }
135
+
136
+ .layout-sp-bt {
137
+ justify-content: space-between;
138
+ }
139
+
140
+ .layout-sp-s {
141
+ justify-content: start;
142
+ }
143
+
144
+ .layout-sp-e {
145
+ justify-content: end;
146
+ }
147
+
148
+ .layout-ji-e {
149
+ justify-items: end;
150
+ }
151
+
152
+ .layout-r-none {
153
+ resize: none;
154
+ }
155
+
156
+ .layout-fs-c {
157
+ field-sizing: content;
158
+ }
159
+
160
+ .layout-fs-n {
161
+ field-sizing: none;
162
+ }
163
+
164
+ .layout-flx-0 {
165
+ flex: 0 0 auto;
166
+ }
167
+
168
+ .layout-flx-1 {
169
+ flex: 1 0 auto;
170
+ }
171
+
172
+ .layout-c-s {
173
+ contain: strict;
174
+ }
175
+
176
+ /** Widths **/
177
+
178
+ ${new Array(10)
179
+ .fill(0)
180
+ .map((_, idx) => {
181
+ const weight = (idx + 1) * 10;
182
+ return `.layout-w-${weight} { width: ${weight}%; max-width: ${weight}%; }`;
183
+ })
184
+ .join("\n")}
185
+
186
+ ${new Array(16)
187
+ .fill(0)
188
+ .map((_, idx) => {
189
+ const weight = idx * grid;
190
+ return `.layout-wp-${idx} { width: ${weight}px; }`;
191
+ })
192
+ .join("\n")}
193
+
194
+ /** Heights **/
195
+
196
+ ${new Array(10)
197
+ .fill(0)
198
+ .map((_, idx) => {
199
+ const height = (idx + 1) * 10;
200
+ return `.layout-h-${height} { height: ${height}%; }`;
201
+ })
202
+ .join("\n")}
203
+
204
+ ${new Array(16)
205
+ .fill(0)
206
+ .map((_, idx) => {
207
+ const height = idx * grid;
208
+ return `.layout-hp-${idx} { height: ${height}px; }`;
209
+ })
210
+ .join("\n")}
211
+
212
+ .layout-el-cv {
213
+ & img,
214
+ & video {
215
+ width: 100%;
216
+ height: 100%;
217
+ object-fit: cover;
218
+ margin: 0;
219
+ }
220
+ }
221
+
222
+ .layout-ar-sq {
223
+ aspect-ratio: 1 / 1;
224
+ }
225
+
226
+ .layout-ex-fb {
227
+ margin: calc(var(--padding) * -1) 0 0 calc(var(--padding) * -1);
228
+ width: calc(100% + var(--padding) * 2);
229
+ height: calc(100% + var(--padding) * 2);
230
+ }
231
+ `;
232
+ //# sourceMappingURL=layout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"layout.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/layout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAEnC,MAAM,CAAC,MAAM,MAAM,GAAG;;MAEhB,IAAI,KAAK,CAAC,EAAE,CAAC;KACZ,IAAI,CAAC,CAAC,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACd,OAAO,OAAO,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,KAAK,CAAC;AAClD,CAAC,CAAC;KACD,IAAI,CAAC,IAAI,CAAC;;;IAGb,IAAI,KAAK,CAAC,EAAE,CAAC;KACZ,IAAI,CAAC,CAAC,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE;IAChB,MAAM,GAAG,GAAG,KAAK,GAAG,EAAE,CAAC;IACvB,MAAM,GAAG,GAAG,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CA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-0,0 +1,2 @@
1
+ export declare const opacity: string;
2
+ //# sourceMappingURL=opacity.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opacity.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/opacity.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,OAAO,QAOnB,CAAC"}
@@ -0,0 +1,24 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ export const opacity = `
17
+ ${new Array(21)
18
+ .fill(0)
19
+ .map((_, idx) => {
20
+ return `.opacity-el-${idx * 5} { opacity: ${idx / 20}; }`;
21
+ })
22
+ .join("\n")}
23
+ `;
24
+ //# sourceMappingURL=opacity.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"opacity.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/opacity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,IAAI,KAAK,CAAC,EAAE,CAAC;KACZ,IAAI,CAAC,CAAC,CAAC;KACP,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE;IACd,OAAO,eAAe,GAAG,GAAG,CAAC,eAAe,GAAG,GAAG,EAAE,KAAK,CAAC;AAC5D,CAAC,CAAC;KACD,IAAI,CAAC,IAAI,CAAC;CACd,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const grid = 4;
2
+ //# sourceMappingURL=shared.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/shared.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,IAAI,IAAI,CAAC"}
@@ -0,0 +1,17 @@
1
+ /*
2
+ Copyright 2025 Google LLC
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
+ https://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
+ export const grid = 4;
17
+ //# sourceMappingURL=shared.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared.js","sourceRoot":"","sources":["../../../../src/v0_8/styles/shared.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const type: string;
2
+ //# sourceMappingURL=type.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"type.d.ts","sourceRoot":"","sources":["../../../../src/v0_8/styles/type.ts"],"names":[],"mappings":"AAgBA,eAAO,MAAM,IAAI,QA2IhB,CAAC"}