@lynx-js/genui 0.0.1-rc.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 (254) hide show
  1. package/LICENSE +202 -0
  2. package/README.md +170 -0
  3. package/a2ui/README.md +140 -0
  4. package/a2ui/dist/catalog/Button/catalog.json +156 -0
  5. package/a2ui/dist/catalog/Button/index.d.ts +35 -0
  6. package/a2ui/dist/catalog/Button/index.js +35 -0
  7. package/a2ui/dist/catalog/Button/index.js.map +1 -0
  8. package/a2ui/dist/catalog/Card/catalog.json +24 -0
  9. package/a2ui/dist/catalog/Card/index.d.ts +11 -0
  10. package/a2ui/dist/catalog/Card/index.js +19 -0
  11. package/a2ui/dist/catalog/Card/index.js.map +1 -0
  12. package/a2ui/dist/catalog/CheckBox/catalog.json +170 -0
  13. package/a2ui/dist/catalog/CheckBox/index.d.ts +32 -0
  14. package/a2ui/dist/catalog/CheckBox/index.js +24 -0
  15. package/a2ui/dist/catalog/CheckBox/index.js.map +1 -0
  16. package/a2ui/dist/catalog/Column/catalog.json +57 -0
  17. package/a2ui/dist/catalog/Column/index.d.ts +15 -0
  18. package/a2ui/dist/catalog/Column/index.js +55 -0
  19. package/a2ui/dist/catalog/Column/index.js.map +1 -0
  20. package/a2ui/dist/catalog/Divider/catalog.json +14 -0
  21. package/a2ui/dist/catalog/Divider/index.d.ts +9 -0
  22. package/a2ui/dist/catalog/Divider/index.js +8 -0
  23. package/a2ui/dist/catalog/Divider/index.js.map +1 -0
  24. package/a2ui/dist/catalog/Icon/catalog.json +45 -0
  25. package/a2ui/dist/catalog/Icon/index.d.ts +14 -0
  26. package/a2ui/dist/catalog/Icon/index.js +11 -0
  27. package/a2ui/dist/catalog/Icon/index.js.map +1 -0
  28. package/a2ui/dist/catalog/Image/catalog.json +62 -0
  29. package/a2ui/dist/catalog/Image/index.d.ts +16 -0
  30. package/a2ui/dist/catalog/Image/index.js +30 -0
  31. package/a2ui/dist/catalog/Image/index.js.map +1 -0
  32. package/a2ui/dist/catalog/LineChart/catalog.json +98 -0
  33. package/a2ui/dist/catalog/LineChart/index.d.ts +31 -0
  34. package/a2ui/dist/catalog/LineChart/index.js +195 -0
  35. package/a2ui/dist/catalog/LineChart/index.js.map +1 -0
  36. package/a2ui/dist/catalog/List/catalog.json +52 -0
  37. package/a2ui/dist/catalog/List/index.d.ts +15 -0
  38. package/a2ui/dist/catalog/List/index.js +53 -0
  39. package/a2ui/dist/catalog/List/index.js.map +1 -0
  40. package/a2ui/dist/catalog/Modal/catalog.json +18 -0
  41. package/a2ui/dist/catalog/Modal/index.d.ts +12 -0
  42. package/a2ui/dist/catalog/Modal/index.js +33 -0
  43. package/a2ui/dist/catalog/Modal/index.js.map +1 -0
  44. package/a2ui/dist/catalog/PieChart/catalog.json +87 -0
  45. package/a2ui/dist/catalog/PieChart/index.d.ts +37 -0
  46. package/a2ui/dist/catalog/PieChart/index.js +131 -0
  47. package/a2ui/dist/catalog/PieChart/index.js.map +1 -0
  48. package/a2ui/dist/catalog/RadioGroup/catalog.json +184 -0
  49. package/a2ui/dist/catalog/RadioGroup/index.d.ts +36 -0
  50. package/a2ui/dist/catalog/RadioGroup/index.js +36 -0
  51. package/a2ui/dist/catalog/RadioGroup/index.js.map +1 -0
  52. package/a2ui/dist/catalog/Row/catalog.json +57 -0
  53. package/a2ui/dist/catalog/Row/index.d.ts +15 -0
  54. package/a2ui/dist/catalog/Row/index.js +28 -0
  55. package/a2ui/dist/catalog/Row/index.js.map +1 -0
  56. package/a2ui/dist/catalog/Slider/catalog.json +183 -0
  57. package/a2ui/dist/catalog/Slider/index.d.ts +41 -0
  58. package/a2ui/dist/catalog/Slider/index.js +39 -0
  59. package/a2ui/dist/catalog/Slider/index.js.map +1 -0
  60. package/a2ui/dist/catalog/Slider/utils.d.ts +11 -0
  61. package/a2ui/dist/catalog/Slider/utils.js +58 -0
  62. package/a2ui/dist/catalog/Slider/utils.js.map +1 -0
  63. package/a2ui/dist/catalog/Tabs/catalog.json +28 -0
  64. package/a2ui/dist/catalog/Tabs/index.d.ts +12 -0
  65. package/a2ui/dist/catalog/Tabs/index.js +32 -0
  66. package/a2ui/dist/catalog/Tabs/index.js.map +1 -0
  67. package/a2ui/dist/catalog/Text/catalog.json +74 -0
  68. package/a2ui/dist/catalog/Text/index.d.ts +18 -0
  69. package/a2ui/dist/catalog/Text/index.js +27 -0
  70. package/a2ui/dist/catalog/Text/index.js.map +1 -0
  71. package/a2ui/dist/catalog/TextField/catalog.json +147 -0
  72. package/a2ui/dist/catalog/TextField/index.d.ts +35 -0
  73. package/a2ui/dist/catalog/TextField/index.js +43 -0
  74. package/a2ui/dist/catalog/TextField/index.js.map +1 -0
  75. package/a2ui/dist/catalog/TextField/utils.d.ts +7 -0
  76. package/a2ui/dist/catalog/TextField/utils.js +51 -0
  77. package/a2ui/dist/catalog/TextField/utils.js.map +1 -0
  78. package/a2ui/dist/catalog/defineCatalog.d.ts +119 -0
  79. package/a2ui/dist/catalog/defineCatalog.js +196 -0
  80. package/a2ui/dist/catalog/defineCatalog.js.map +1 -0
  81. package/a2ui/dist/catalog/index.d.ts +20 -0
  82. package/a2ui/dist/catalog/index.js +26 -0
  83. package/a2ui/dist/catalog/index.js.map +1 -0
  84. package/a2ui/dist/catalog/utils/chart.d.ts +3 -0
  85. package/a2ui/dist/catalog/utils/chart.js +28 -0
  86. package/a2ui/dist/catalog/utils/chart.js.map +1 -0
  87. package/a2ui/dist/functions/index.d.ts +19 -0
  88. package/a2ui/dist/functions/index.js +87 -0
  89. package/a2ui/dist/functions/index.js.map +1 -0
  90. package/a2ui/dist/index.d.ts +11 -0
  91. package/a2ui/dist/index.js +35 -0
  92. package/a2ui/dist/index.js.map +1 -0
  93. package/a2ui/dist/react/A2UI.d.ts +77 -0
  94. package/a2ui/dist/react/A2UI.js +159 -0
  95. package/a2ui/dist/react/A2UI.js.map +1 -0
  96. package/a2ui/dist/react/A2UIProvider.d.ts +25 -0
  97. package/a2ui/dist/react/A2UIProvider.js +20 -0
  98. package/a2ui/dist/react/A2UIProvider.js.map +1 -0
  99. package/a2ui/dist/react/A2UIRenderer.d.ts +34 -0
  100. package/a2ui/dist/react/A2UIRenderer.js +161 -0
  101. package/a2ui/dist/react/A2UIRenderer.js.map +1 -0
  102. package/a2ui/dist/react/FormContext.d.ts +10 -0
  103. package/a2ui/dist/react/FormContext.js +12 -0
  104. package/a2ui/dist/react/FormContext.js.map +1 -0
  105. package/a2ui/dist/react/index.d.ts +8 -0
  106. package/a2ui/dist/react/index.js +23 -0
  107. package/a2ui/dist/react/index.js.map +1 -0
  108. package/a2ui/dist/react/useA2UIContext.d.ts +7 -0
  109. package/a2ui/dist/react/useA2UIContext.js +19 -0
  110. package/a2ui/dist/react/useA2UIContext.js.map +1 -0
  111. package/a2ui/dist/react/useAction.d.ts +9 -0
  112. package/a2ui/dist/react/useAction.js +38 -0
  113. package/a2ui/dist/react/useAction.js.map +1 -0
  114. package/a2ui/dist/react/useCatalog.d.ts +7 -0
  115. package/a2ui/dist/react/useCatalog.js +13 -0
  116. package/a2ui/dist/react/useCatalog.js.map +1 -0
  117. package/a2ui/dist/react/useChecks.d.ts +27 -0
  118. package/a2ui/dist/react/useChecks.js +76 -0
  119. package/a2ui/dist/react/useChecks.js.map +1 -0
  120. package/a2ui/dist/react/useDataBinding.d.ts +10 -0
  121. package/a2ui/dist/react/useDataBinding.js +175 -0
  122. package/a2ui/dist/react/useDataBinding.js.map +1 -0
  123. package/a2ui/dist/store/FormController.d.ts +23 -0
  124. package/a2ui/dist/store/FormController.js +40 -0
  125. package/a2ui/dist/store/FormController.js.map +1 -0
  126. package/a2ui/dist/store/FunctionRegistry.d.ts +47 -0
  127. package/a2ui/dist/store/FunctionRegistry.js +23 -0
  128. package/a2ui/dist/store/FunctionRegistry.js.map +1 -0
  129. package/a2ui/dist/store/MessageProcessor.d.ts +28 -0
  130. package/a2ui/dist/store/MessageProcessor.js +408 -0
  131. package/a2ui/dist/store/MessageProcessor.js.map +1 -0
  132. package/a2ui/dist/store/MessageStore.d.ts +38 -0
  133. package/a2ui/dist/store/MessageStore.js +37 -0
  134. package/a2ui/dist/store/MessageStore.js.map +1 -0
  135. package/a2ui/dist/store/Resource.d.ts +45 -0
  136. package/a2ui/dist/store/Resource.js +80 -0
  137. package/a2ui/dist/store/Resource.js.map +1 -0
  138. package/a2ui/dist/store/SignalStore.d.ts +10 -0
  139. package/a2ui/dist/store/SignalStore.js +29 -0
  140. package/a2ui/dist/store/SignalStore.js.map +1 -0
  141. package/a2ui/dist/store/index.d.ts +14 -0
  142. package/a2ui/dist/store/index.js +15 -0
  143. package/a2ui/dist/store/index.js.map +1 -0
  144. package/a2ui/dist/store/payloadNormalizer.d.ts +27 -0
  145. package/a2ui/dist/store/payloadNormalizer.js +179 -0
  146. package/a2ui/dist/store/payloadNormalizer.js.map +1 -0
  147. package/a2ui/dist/store/resolveFunctionCall.d.ts +18 -0
  148. package/a2ui/dist/store/resolveFunctionCall.js +131 -0
  149. package/a2ui/dist/store/resolveFunctionCall.js.map +1 -0
  150. package/a2ui/dist/store/types.d.ts +68 -0
  151. package/a2ui/dist/store/types.js +2 -0
  152. package/a2ui/dist/store/types.js.map +1 -0
  153. package/a2ui/dist/tsconfig.build.tsbuildinfo +1 -0
  154. package/a2ui/styles/catalog/Button.css +83 -0
  155. package/a2ui/styles/catalog/Card.css +49 -0
  156. package/a2ui/styles/catalog/CheckBox.css +46 -0
  157. package/a2ui/styles/catalog/Column.css +89 -0
  158. package/a2ui/styles/catalog/Divider.css +20 -0
  159. package/a2ui/styles/catalog/Icon.css +39 -0
  160. package/a2ui/styles/catalog/Image.css +54 -0
  161. package/a2ui/styles/catalog/LineChart.css +116 -0
  162. package/a2ui/styles/catalog/List.css +38 -0
  163. package/a2ui/styles/catalog/Modal.css +60 -0
  164. package/a2ui/styles/catalog/PieChart.css +109 -0
  165. package/a2ui/styles/catalog/RadioGroup.css +123 -0
  166. package/a2ui/styles/catalog/Row.css +83 -0
  167. package/a2ui/styles/catalog/Slider.css +96 -0
  168. package/a2ui/styles/catalog/Tabs.css +46 -0
  169. package/a2ui/styles/catalog/Text.css +121 -0
  170. package/a2ui/styles/catalog/TextField.css +48 -0
  171. package/a2ui/styles/theme.css +62 -0
  172. package/a2ui-catalog-extractor/README.md +605 -0
  173. package/a2ui-catalog-extractor/bin/a2ui-catalog-extractor.js +6 -0
  174. package/a2ui-catalog-extractor/dist/cli.d.ts +12 -0
  175. package/a2ui-catalog-extractor/dist/cli.js +171 -0
  176. package/a2ui-catalog-extractor/dist/cli.js.map +1 -0
  177. package/a2ui-catalog-extractor/dist/index.d.ts +140 -0
  178. package/a2ui-catalog-extractor/dist/index.js +755 -0
  179. package/a2ui-catalog-extractor/dist/index.js.map +1 -0
  180. package/a2ui-catalog-extractor/dist/tsconfig.build.tsbuildinfo +1 -0
  181. package/a2ui-catalog-extractor/skills/a2ui-catalog-extractor/SKILL.md +30 -0
  182. package/a2ui-prompt/README.md +65 -0
  183. package/a2ui-prompt/dist/index.d.ts +91 -0
  184. package/a2ui-prompt/dist/index.js +767 -0
  185. package/cli/README.md +88 -0
  186. package/cli/bin/cli.js +271 -0
  187. package/dist/index.d.ts +10 -0
  188. package/dist/index.js +10 -0
  189. package/dist/index.js.map +1 -0
  190. package/dist/tsconfig.build.tsbuildinfo +1 -0
  191. package/index.ts +114 -0
  192. package/openui/README.md +211 -0
  193. package/openui/dist/catalog/Action/index.d.ts +20 -0
  194. package/openui/dist/catalog/Action/index.js +23 -0
  195. package/openui/dist/catalog/Action/index.js.map +1 -0
  196. package/openui/dist/catalog/Button/index.d.ts +64 -0
  197. package/openui/dist/catalog/Button/index.js +75 -0
  198. package/openui/dist/catalog/Button/index.js.map +1 -0
  199. package/openui/dist/catalog/Card/index.d.ts +34 -0
  200. package/openui/dist/catalog/Card/index.js +69 -0
  201. package/openui/dist/catalog/Card/index.js.map +1 -0
  202. package/openui/dist/catalog/CardHeader/index.d.ts +5 -0
  203. package/openui/dist/catalog/CardHeader/index.js +18 -0
  204. package/openui/dist/catalog/CardHeader/index.js.map +1 -0
  205. package/openui/dist/catalog/Separator/index.d.ts +2 -0
  206. package/openui/dist/catalog/Separator/index.js +13 -0
  207. package/openui/dist/catalog/Separator/index.js.map +1 -0
  208. package/openui/dist/catalog/Stack/index.d.ts +29 -0
  209. package/openui/dist/catalog/Stack/index.js +61 -0
  210. package/openui/dist/catalog/Stack/index.js.map +1 -0
  211. package/openui/dist/catalog/Tag/index.d.ts +4 -0
  212. package/openui/dist/catalog/Tag/index.js +15 -0
  213. package/openui/dist/catalog/Tag/index.js.map +1 -0
  214. package/openui/dist/catalog/TextContent/index.d.ts +11 -0
  215. package/openui/dist/catalog/TextContent/index.js +33 -0
  216. package/openui/dist/catalog/TextContent/index.js.map +1 -0
  217. package/openui/dist/catalog/index.d.ts +7 -0
  218. package/openui/dist/catalog/index.js +11 -0
  219. package/openui/dist/catalog/index.js.map +1 -0
  220. package/openui/dist/catalog/utils.d.ts +2 -0
  221. package/openui/dist/catalog/utils.js +17 -0
  222. package/openui/dist/catalog/utils.js.map +1 -0
  223. package/openui/dist/core/context.d.ts +112 -0
  224. package/openui/dist/core/context.js +99 -0
  225. package/openui/dist/core/context.js.map +1 -0
  226. package/openui/dist/core/createLibrary.d.ts +10 -0
  227. package/openui/dist/core/createLibrary.js +36 -0
  228. package/openui/dist/core/createLibrary.js.map +1 -0
  229. package/openui/dist/core/hooks/index.d.ts +4 -0
  230. package/openui/dist/core/hooks/index.js +6 -0
  231. package/openui/dist/core/hooks/index.js.map +1 -0
  232. package/openui/dist/core/hooks/useFormValidation.d.ts +13 -0
  233. package/openui/dist/core/hooks/useFormValidation.js +76 -0
  234. package/openui/dist/core/hooks/useFormValidation.js.map +1 -0
  235. package/openui/dist/core/hooks/useOpenUIState.d.ts +33 -0
  236. package/openui/dist/core/hooks/useOpenUIState.js +413 -0
  237. package/openui/dist/core/hooks/useOpenUIState.js.map +1 -0
  238. package/openui/dist/core/hooks/useStateField.d.ts +2 -0
  239. package/openui/dist/core/hooks/useStateField.js +11 -0
  240. package/openui/dist/core/hooks/useStateField.js.map +1 -0
  241. package/openui/dist/core/index.d.ts +7 -0
  242. package/openui/dist/core/index.js +8 -0
  243. package/openui/dist/core/index.js.map +1 -0
  244. package/openui/dist/core/library.d.ts +20 -0
  245. package/openui/dist/core/library.js +13 -0
  246. package/openui/dist/core/library.js.map +1 -0
  247. package/openui/dist/core/renderer.css +271 -0
  248. package/openui/dist/core/renderer.d.ts +9 -0
  249. package/openui/dist/core/renderer.js +139 -0
  250. package/openui/dist/core/renderer.js.map +1 -0
  251. package/openui/dist/core/utils.d.ts +1 -0
  252. package/openui/dist/core/utils.js +76 -0
  253. package/openui/dist/core/utils.js.map +1 -0
  254. package/package.json +120 -0
@@ -0,0 +1,83 @@
1
+ @import "../theme.css";
2
+
3
+ .button {
4
+ display: inline-flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ min-width: 0;
8
+ gap: 10px;
9
+ padding: 10px 16px;
10
+ margin: 6px 0;
11
+ border: 1px solid var(--a2ui-color-border);
12
+ border-radius: 12px;
13
+ background: var(--a2ui-color-surface);
14
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset;
15
+ color: var(--a2ui-color-on-surface);
16
+ font-weight: 600;
17
+ transition:
18
+ background-color 0.18s ease,
19
+ transform 0.18s ease,
20
+ opacity 0.18s ease,
21
+ box-shadow 0.18s ease,
22
+ border-color 0.18s ease;
23
+ }
24
+
25
+ .button.ui-active {
26
+ background-color: var(--a2ui-color-secondary-hover);
27
+ transform: translateY(1px);
28
+ }
29
+
30
+ .button-primary {
31
+ background-color: var(--a2ui-color-primary);
32
+ border-color: var(--a2ui-color-primary);
33
+ color: var(--a2ui-color-on-primary);
34
+ box-shadow:
35
+ 0 10px 24px rgba(0, 85, 217, 0.16),
36
+ 0 1px 0 rgba(255, 255, 255, 0.22) inset;
37
+ }
38
+
39
+ .button-borderless {
40
+ background: none;
41
+ border: none;
42
+ padding-left: 0;
43
+ padding-right: 0;
44
+ color: var(--a2ui-color-primary);
45
+ }
46
+
47
+ .button-disabled {
48
+ opacity: 0.55;
49
+ }
50
+
51
+ .button-disabled.ui-active {
52
+ background-color: inherit;
53
+ transform: none;
54
+ }
55
+
56
+ .button-invalid {
57
+ opacity: 0.45;
58
+ }
59
+
60
+ .button-error {
61
+ margin-top: -2px;
62
+ color: var(--a2ui-color-error, #d92d20);
63
+ font-size: 12px;
64
+ line-height: 1.5;
65
+ }
66
+
67
+ .button-fallback {
68
+ color: inherit;
69
+ font-size: inherit;
70
+ }
71
+
72
+ .button .text-body,
73
+ .button .text-caption,
74
+ .button .text-h1,
75
+ .button .text-h2,
76
+ .button .text-h3,
77
+ .button .text-h4,
78
+ .button .text-h5,
79
+ .button .text-price,
80
+ .button .text-link,
81
+ .button .text-label {
82
+ color: inherit;
83
+ }
@@ -0,0 +1,49 @@
1
+ @import "../theme.css";
2
+
3
+ .card {
4
+ display: flex;
5
+ flex-direction: column;
6
+ width: 100%;
7
+ box-sizing: border-box;
8
+ flex-shrink: 0;
9
+ min-width: 0;
10
+ min-height: 0;
11
+ gap: 18px;
12
+ }
13
+
14
+ /* Elevated (Default) */
15
+ .card-elevated {
16
+ background-color: var(--a2ui-color-surface);
17
+ border: 1px solid var(--a2ui-color-border-strong);
18
+ border-radius: 18px;
19
+ box-shadow:
20
+ 0 12px 30px var(--a2ui-color-overlay),
21
+ 0 1px 0 rgba(255, 255, 255, 0.45) inset;
22
+ padding: 18px;
23
+ }
24
+
25
+ /* Outlined */
26
+ .card-outlined {
27
+ background-color: var(--a2ui-color-background);
28
+ border: 1px solid var(--a2ui-color-border);
29
+ border-radius: 16px;
30
+ padding: 18px;
31
+ }
32
+
33
+ /* Filled */
34
+ .card-filled {
35
+ background-color: var(--a2ui-color-surface);
36
+ border: 1px solid var(--a2ui-color-border-strong);
37
+ border-radius: 16px;
38
+ padding: 18px;
39
+ }
40
+
41
+ /* Ghost */
42
+ .card-ghost {
43
+ background-color: transparent;
44
+ padding: 0;
45
+ }
46
+
47
+ .card-weighted {
48
+ width: auto;
49
+ }
@@ -0,0 +1,46 @@
1
+ @import "../theme.css";
2
+
3
+ .checkbox-row {
4
+ display: flex;
5
+ flex-direction: row;
6
+ align-items: center;
7
+ justify-content: flex-start;
8
+ gap: 14px;
9
+ }
10
+
11
+ .checkbox-input {
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ width: 22px;
16
+ height: 22px;
17
+ border-radius: 6px;
18
+ border: 1.5px solid var(--a2ui-color-border);
19
+ background-color: var(--a2ui-color-surface);
20
+ color: var(--a2ui-color-on-primary);
21
+ flex-shrink: 0;
22
+ box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset;
23
+ }
24
+
25
+ .checkbox-input-checked {
26
+ border-color: var(--a2ui-color-primary);
27
+ background-color: var(--a2ui-color-on-primary);
28
+ color: var(--a2ui-color-primary);
29
+ }
30
+
31
+ .checkbox-row-invalid .checkbox-input {
32
+ border-color: var(--a2ui-color-error, #d92d20);
33
+ }
34
+
35
+ .checkbox-label {
36
+ font-size: 15px;
37
+ font-weight: 500;
38
+ line-height: 1.5;
39
+ color: var(--a2ui-color-on-background);
40
+ }
41
+
42
+ .checkbox-error {
43
+ color: var(--a2ui-color-error, #d92d20);
44
+ font-size: 10px;
45
+ line-height: 1.5;
46
+ }
@@ -0,0 +1,89 @@
1
+ @import "../theme.css";
2
+
3
+ .column {
4
+ display: flex;
5
+ flex-direction: column;
6
+ gap: 18px;
7
+ width: 100%;
8
+ min-width: 0;
9
+ }
10
+
11
+ .column-weighted-item {
12
+ min-height: 0;
13
+ }
14
+
15
+ /* Alignment */
16
+ .alignment-start {
17
+ align-items: flex-start;
18
+ }
19
+
20
+ .alignment-center {
21
+ align-items: center;
22
+ }
23
+
24
+ .alignment-end {
25
+ align-items: flex-end;
26
+ }
27
+
28
+ .alignment-stretch {
29
+ align-items: stretch;
30
+ }
31
+
32
+ /* Distribution */
33
+ .distribution-start {
34
+ justify-content: flex-start;
35
+ }
36
+
37
+ .distribution-center {
38
+ justify-content: center;
39
+ }
40
+
41
+ .distribution-end {
42
+ justify-content: flex-end;
43
+ }
44
+
45
+ .distribution-spaceBetween {
46
+ justify-content: space-between;
47
+ }
48
+
49
+ .distribution-spaceAround {
50
+ justify-content: space-around;
51
+ }
52
+
53
+ .distribution-spaceEvenly {
54
+ justify-content: space-evenly;
55
+ }
56
+
57
+ /* Usage Hints */
58
+
59
+ /* Section: Large sections of content */
60
+ .col-hint-section {
61
+ padding: 36px;
62
+ gap: 28px;
63
+ }
64
+
65
+ /* Group: Standard logical grouping */
66
+ .col-hint-group {
67
+ gap: 18px;
68
+ }
69
+
70
+ /* Compact: Tighter grouping */
71
+ .col-hint-compact {
72
+ gap: 10px;
73
+ }
74
+
75
+ /* Screen: Full screen container */
76
+ .col-hint-screen {
77
+ width: 100%;
78
+ height: 100%;
79
+ background-color: var(--a2ui-color-background);
80
+ }
81
+
82
+ /* Root Column: Default root container */
83
+ .col-hint-root-column {
84
+ width: 100%;
85
+ min-height: 100%;
86
+ padding: 20px;
87
+ gap: 18px;
88
+ background-color: var(--a2ui-color-background-ambient);
89
+ }
@@ -0,0 +1,20 @@
1
+ @import "../theme.css";
2
+
3
+ .divider {
4
+ display: block;
5
+ min-height: 0;
6
+ overflow: hidden;
7
+ background-color: var(--a2ui-color-border);
8
+ border: none;
9
+ opacity: 0.7;
10
+ }
11
+
12
+ .divider-horizontal {
13
+ width: 100%;
14
+ height: 1px;
15
+ }
16
+
17
+ .divider-vertical {
18
+ height: 100%;
19
+ width: 1px;
20
+ }
@@ -0,0 +1,39 @@
1
+ @import "../theme.css";
2
+
3
+ .a2ui-icon {
4
+ font-family: var(--a2ui-icon-font-family);
5
+ font-style: normal;
6
+ font-weight: normal;
7
+ font-size: 24px;
8
+ line-height: 1;
9
+ letter-spacing: normal;
10
+ display: inline-flex;
11
+ align-items: center;
12
+ justify-content: center;
13
+ flex-shrink: 0;
14
+ color: var(--a2ui-color-on-background);
15
+ }
16
+
17
+ .a2ui-icon-sm {
18
+ font-size: 14px;
19
+ }
20
+
21
+ .a2ui-icon-md {
22
+ font-size: 24px;
23
+ }
24
+
25
+ .a2ui-icon-lg {
26
+ font-size: 32px;
27
+ }
28
+
29
+ .a2ui-icon-color-primary {
30
+ color: var(--a2ui-icon-color-primary);
31
+ }
32
+
33
+ .a2ui-icon-color-muted {
34
+ color: var(--a2ui-icon-color-muted);
35
+ }
36
+
37
+ .a2ui-icon-color-inherit {
38
+ color: inherit;
39
+ }
@@ -0,0 +1,54 @@
1
+ @import "../theme.css";
2
+
3
+ .a2ui-image {
4
+ flex-shrink: 0;
5
+ overflow: hidden;
6
+ border-radius: 16px;
7
+ background-color: var(--a2ui-color-surface-muted);
8
+ border: 1px solid var(--a2ui-color-border-strong);
9
+ box-shadow: 0 8px 24px var(--a2ui-color-overlay);
10
+ }
11
+
12
+ .image-weighted {
13
+ flex: 1 1 0;
14
+ }
15
+
16
+ .row-weighted-item .a2ui-image,
17
+ .column-weighted-item .a2ui-image {
18
+ width: 100%;
19
+ box-sizing: border-box;
20
+ }
21
+
22
+ .image-variant-icon {
23
+ width: 24px;
24
+ height: 24px;
25
+ border-radius: 0;
26
+ border: none;
27
+ box-shadow: none;
28
+ background-color: transparent;
29
+ }
30
+
31
+ .image-variant-avatar {
32
+ width: 40px;
33
+ height: 40px;
34
+ border-radius: 50%;
35
+ box-shadow: 0 6px 16px var(--a2ui-color-overlay);
36
+ }
37
+
38
+ .image-variant-header {
39
+ width: 100%;
40
+ height: 200px;
41
+ border-radius: 18px;
42
+ }
43
+
44
+ .image-variant-smallFeature {
45
+ max-width: 120px;
46
+ }
47
+
48
+ .image-variant-mediumFeature {
49
+ max-width: 240px;
50
+ }
51
+
52
+ .image-variant-largeFeature {
53
+ max-height: 400px;
54
+ }
@@ -0,0 +1,116 @@
1
+ @import "../theme.css";
2
+
3
+ .line-chart {
4
+ display: flex;
5
+ flex-direction: column;
6
+ width: 100%;
7
+ gap: 10px;
8
+ box-sizing: border-box;
9
+ padding: 16px;
10
+ border: 1px solid var(--a2ui-color-border);
11
+ border-radius: 20px;
12
+ background:
13
+ linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 28%),
14
+ var(--a2ui-color-surface);
15
+ }
16
+
17
+ .line-chart-header {
18
+ display: flex;
19
+ align-items: flex-start;
20
+ justify-content: space-between;
21
+ gap: 12px;
22
+ }
23
+
24
+ .line-chart-header-copy {
25
+ display: flex;
26
+ flex-direction: column;
27
+ gap: 4px;
28
+ min-width: 0;
29
+ }
30
+
31
+ .line-chart-title {
32
+ color: var(--a2ui-color-on-surface);
33
+ font-size: 16px;
34
+ font-weight: 700;
35
+ line-height: 1.25;
36
+ }
37
+
38
+ .line-chart-caption,
39
+ .line-chart-axis-label,
40
+ .line-chart-scale-value,
41
+ .line-chart-legend-label,
42
+ .line-chart-axis-tick-label {
43
+ color: var(--a2ui-color-text-muted);
44
+ font-size: 11px;
45
+ line-height: 1.4;
46
+ }
47
+
48
+ .line-chart-axis-label {
49
+ text-align: right;
50
+ white-space: nowrap;
51
+ }
52
+
53
+ .line-chart-scale-row {
54
+ display: flex;
55
+ justify-content: space-between;
56
+ align-items: center;
57
+ }
58
+
59
+ .line-chart-scale-value-right {
60
+ text-align: right;
61
+ }
62
+
63
+ .line-chart-svg {
64
+ display: block;
65
+ width: 100%;
66
+ min-height: 220px;
67
+ border-radius: 14px;
68
+ overflow: hidden;
69
+ }
70
+
71
+ .line-chart-axis-row {
72
+ display: flex;
73
+ gap: 8px;
74
+ align-items: flex-start;
75
+ }
76
+
77
+ .line-chart-axis-tick {
78
+ flex: 1;
79
+ min-width: 0;
80
+ text-align: center;
81
+ }
82
+
83
+ .line-chart-axis-tick-label {
84
+ display: block;
85
+ white-space: nowrap;
86
+ overflow: hidden;
87
+ text-overflow: ellipsis;
88
+ }
89
+
90
+ .line-chart-legend {
91
+ display: flex;
92
+ flex-wrap: wrap;
93
+ gap: 8px 14px;
94
+ align-items: center;
95
+ }
96
+
97
+ .line-chart-legend-item {
98
+ display: flex;
99
+ align-items: center;
100
+ gap: 8px;
101
+ min-width: 0;
102
+ }
103
+
104
+ .line-chart-legend-swatch {
105
+ width: 10px;
106
+ height: 10px;
107
+ border-radius: 999px;
108
+ flex-shrink: 0;
109
+ }
110
+
111
+ .line-chart-legend-label {
112
+ min-width: 0;
113
+ white-space: nowrap;
114
+ overflow: hidden;
115
+ text-overflow: ellipsis;
116
+ }
@@ -0,0 +1,38 @@
1
+ @import "../theme.css";
2
+
3
+ .list {
4
+ width: 100%;
5
+ height: 420px;
6
+ display: flex;
7
+ flex-direction: column;
8
+ gap: 14px;
9
+ min-width: 0;
10
+ padding: 0;
11
+ }
12
+
13
+ .list.list-horizontal {
14
+ flex-direction: row;
15
+ align-items: center;
16
+ overflow-x: auto;
17
+ }
18
+
19
+ .list.list-vertical {
20
+ flex-direction: column;
21
+ overflow-y: auto;
22
+ }
23
+
24
+ .list-align-start {
25
+ align-items: flex-start;
26
+ }
27
+
28
+ .list-align-center {
29
+ align-items: center;
30
+ }
31
+
32
+ .list-align-end {
33
+ align-items: flex-end;
34
+ }
35
+
36
+ .list-align-stretch {
37
+ align-items: stretch;
38
+ }
@@ -0,0 +1,60 @@
1
+ @import "../theme.css";
2
+
3
+ .modal-trigger {
4
+ display: flex;
5
+ flex-direction: column;
6
+ min-width: 0;
7
+ }
8
+
9
+ .modal-view {
10
+ width: 100%;
11
+ height: 100%;
12
+ display: flex;
13
+ align-items: center;
14
+ justify-content: center;
15
+ padding: 20px;
16
+ box-sizing: border-box;
17
+ }
18
+
19
+ .modal-backdrop {
20
+ background-color: rgba(15, 23, 42, 0.28);
21
+ transition: opacity 0.18s ease;
22
+ }
23
+
24
+ .modal-backdrop.ui-entering,
25
+ .modal-backdrop.ui-open {
26
+ opacity: 1;
27
+ }
28
+
29
+ .modal-backdrop.ui-leaving,
30
+ .modal-backdrop.ui-closed {
31
+ opacity: 0;
32
+ }
33
+
34
+ .modal-content {
35
+ width: 100%;
36
+ max-width: 560px;
37
+ max-height: 86%;
38
+ display: flex;
39
+ flex-direction: column;
40
+ padding: 24px;
41
+ border-radius: 22px;
42
+ border: 1px solid var(--a2ui-color-border-strong);
43
+ box-sizing: border-box;
44
+ overflow-y: auto;
45
+ background-color: var(--a2ui-color-surface-strong);
46
+ box-shadow: 0 16px 40px var(--a2ui-color-overlay);
47
+ transition: opacity 0.18s ease, transform 0.18s ease;
48
+ }
49
+
50
+ .modal-content.ui-entering,
51
+ .modal-content.ui-open {
52
+ opacity: 1;
53
+ transform: translateY(0);
54
+ }
55
+
56
+ .modal-content.ui-leaving,
57
+ .modal-content.ui-closed {
58
+ opacity: 0;
59
+ transform: translateY(8px);
60
+ }
@@ -0,0 +1,109 @@
1
+ @import "../theme.css";
2
+
3
+ .pie-chart {
4
+ display: flex;
5
+ flex-direction: column;
6
+ width: 100%;
7
+ gap: 12px;
8
+ box-sizing: border-box;
9
+ padding: 16px;
10
+ border: 1px solid var(--a2ui-color-border);
11
+ border-radius: 20px;
12
+ background:
13
+ radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 40%),
14
+ linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%),
15
+ var(--a2ui-color-surface);
16
+ }
17
+
18
+ .pie-chart-header {
19
+ display: flex;
20
+ align-items: flex-start;
21
+ justify-content: space-between;
22
+ gap: 12px;
23
+ }
24
+
25
+ .pie-chart-header-copy {
26
+ display: flex;
27
+ flex-direction: column;
28
+ gap: 4px;
29
+ min-width: 0;
30
+ }
31
+
32
+ .pie-chart-title {
33
+ color: var(--a2ui-color-on-surface);
34
+ font-size: 16px;
35
+ font-weight: 700;
36
+ line-height: 1.25;
37
+ }
38
+
39
+ .pie-chart-caption,
40
+ .pie-chart-kpi-label,
41
+ .pie-chart-legend-label,
42
+ .pie-chart-legend-value {
43
+ color: var(--a2ui-color-text-muted);
44
+ font-size: 11px;
45
+ line-height: 1.4;
46
+ }
47
+
48
+ .pie-chart-kpi {
49
+ display: flex;
50
+ flex-direction: column;
51
+ align-items: flex-end;
52
+ gap: 2px;
53
+ flex-shrink: 0;
54
+ }
55
+
56
+ .pie-chart-kpi-value {
57
+ color: var(--a2ui-color-on-surface);
58
+ font-size: 18px;
59
+ font-weight: 700;
60
+ line-height: 1.2;
61
+ }
62
+
63
+ .pie-chart-svg-wrap {
64
+ display: flex;
65
+ justify-content: center;
66
+ }
67
+
68
+ .pie-chart-svg {
69
+ display: block;
70
+ width: 100%;
71
+ min-height: 0;
72
+ border-radius: 16px;
73
+ overflow: hidden;
74
+ }
75
+
76
+ .pie-chart-legend {
77
+ display: flex;
78
+ flex-wrap: wrap;
79
+ gap: 10px 14px;
80
+ align-items: flex-start;
81
+ }
82
+
83
+ .pie-chart-legend-item {
84
+ display: flex;
85
+ align-items: center;
86
+ gap: 8px;
87
+ min-width: 0;
88
+ }
89
+
90
+ .pie-chart-legend-swatch {
91
+ width: 10px;
92
+ height: 10px;
93
+ border-radius: 999px;
94
+ flex-shrink: 0;
95
+ }
96
+
97
+ .pie-chart-legend-copy {
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: 1px;
101
+ min-width: 0;
102
+ }
103
+
104
+ .pie-chart-legend-label,
105
+ .pie-chart-legend-value {
106
+ white-space: nowrap;
107
+ overflow: hidden;
108
+ text-overflow: ellipsis;
109
+ }