@astryx-vue/core 0.1.1 → 0.1.3

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 (223) hide show
  1. package/dist/AppShell/index.d.ts +2 -0
  2. package/dist/AppShell/index.js +2 -0
  3. package/dist/AppShell-b0PWt9Fz.js +249 -0
  4. package/dist/AspectRatio/index.d.ts +2 -0
  5. package/dist/AspectRatio/index.js +2 -0
  6. package/dist/AspectRatio-Bij7e-tq.js +40 -0
  7. package/dist/AvatarGroup/index.d.ts +1 -1
  8. package/dist/Banner/index.d.ts +1 -1
  9. package/dist/BottomSheet/index.d.ts +1 -1
  10. package/dist/ButtonGroup/index.d.ts +1 -1
  11. package/dist/Calendar/index.js +1 -1
  12. package/dist/{Calendar-BEyrkUtr.js → Calendar-CYhGDT6f.js} +1 -1
  13. package/dist/Chat/index.js +1 -1
  14. package/dist/{Chat-CO3mCs9A.js → Chat-C1aWl5V3.js} +1 -1
  15. package/dist/CheckboxInput/index.d.ts +1 -1
  16. package/dist/CheckboxInput/index.js +1 -1
  17. package/dist/{CheckboxInput-C86o3XoG.js → CheckboxInput-CMsEE1_4.js} +4 -2
  18. package/dist/CheckboxList/index.d.ts +1 -1
  19. package/dist/CheckboxList/index.js +1 -1
  20. package/dist/{CheckboxList-BL2sDOWK.js → CheckboxList-EsIEXjK_.js} +2 -2
  21. package/dist/Citation/index.js +1 -1
  22. package/dist/{Citation-BqwJvw7o.js → Citation-C1X0Rde8.js} +1 -1
  23. package/dist/ClickableCard/index.d.ts +2 -0
  24. package/dist/ClickableCard/index.js +2 -0
  25. package/dist/ClickableCard-Bhds4RRe.js +112 -0
  26. package/dist/Collapsible/index.d.ts +2 -2
  27. package/dist/Collapsible/index.js +2 -2
  28. package/dist/Collapsible-BS9ctCQV.js +192 -0
  29. package/dist/CommandPalette/index.d.ts +2 -0
  30. package/dist/CommandPalette/index.js +2 -0
  31. package/dist/CommandPalette-u5h_E05P.js +489 -0
  32. package/dist/ComplexSelector/index.d.ts +2 -0
  33. package/dist/ComplexSelector/index.js +2 -0
  34. package/dist/ComplexSelector-BHmGWml0.js +293 -0
  35. package/dist/ContextMenu/index.d.ts +1 -1
  36. package/dist/DateInput/index.d.ts +1 -1
  37. package/dist/DateInput/index.js +1 -1
  38. package/dist/{DateInput-BOIb0zAp.js → DateInput-D2ErjXYO.js} +2 -2
  39. package/dist/DateRangeInput/index.d.ts +1 -1
  40. package/dist/DateRangeInput/index.js +1 -1
  41. package/dist/{DateRangeInput-DLcbgUBi.js → DateRangeInput-fmQlr_A7.js} +3 -3
  42. package/dist/DateTimeInput/index.d.ts +1 -1
  43. package/dist/DateTimeInput/index.js +1 -1
  44. package/dist/{DateTimeInput-RitYX_Yx.js → DateTimeInput-Bs1JmcIp.js} +4 -4
  45. package/dist/Field/index.js +2 -2
  46. package/dist/{Field-VlTBsIEo.js → Field-8zRxzDHE.js} +11 -3
  47. package/dist/{FieldLabel-B1NRyQlS.js → FieldLabel-DmmJyX7w.js} +6 -1
  48. package/dist/FileInput/index.d.ts +1 -1
  49. package/dist/FileInput/index.js +1 -1
  50. package/dist/{FileInput-CYvEV503.js → FileInput-CmAfOpkA.js} +2 -2
  51. package/dist/FormLayout/index.d.ts +2 -0
  52. package/dist/FormLayout/index.js +2 -0
  53. package/dist/FormLayout-D47FjiOq.js +40 -0
  54. package/dist/HoverCard/index.d.ts +1 -1
  55. package/dist/Layout/index.d.ts +2 -0
  56. package/dist/Layout/index.js +3 -0
  57. package/dist/Layout-Bed3kP0M.js +56 -0
  58. package/dist/LayoutPanel-C34uOq3e.js +358 -0
  59. package/dist/List/index.d.ts +1 -1
  60. package/dist/Markdown/index.d.ts +1 -1
  61. package/dist/Markdown/index.js +1 -1
  62. package/dist/{Markdown-Dnlp8cVx.js → Markdown-CwtLr3f_.js} +1 -1
  63. package/dist/MetadataList/index.js +1 -1
  64. package/dist/{MetadataList-DIsqS1Qb.js → MetadataList-DlXQTLog.js} +1 -1
  65. package/dist/MobileNav/index.d.ts +1 -1
  66. package/dist/MobileNav/index.js +1 -1
  67. package/dist/{MobileNavToggle-aUZiDwHm.js → MobileNavToggle-CgQamG6E.js} +19 -12
  68. package/dist/MoreMenu/index.d.ts +1 -1
  69. package/dist/MultiSelector/index.d.ts +1 -1
  70. package/dist/MultiSelector/index.js +1 -1
  71. package/dist/{MultiSelector-Bh8or2S6.js → MultiSelector-DT8ZccMI.js} +3 -3
  72. package/dist/NavItem/index.d.ts +1 -1
  73. package/dist/NavMenu/index.d.ts +1 -1
  74. package/dist/NumberInput/index.d.ts +1 -1
  75. package/dist/NumberInput/index.js +1 -1
  76. package/dist/{NumberInput-C3S-4dIu.js → NumberInput-DspJO6z6.js} +1 -1
  77. package/dist/OverflowList/index.d.ts +1 -1
  78. package/dist/OverflowList/index.js +1 -1
  79. package/dist/{OverflowList-Kr4iJrNV.js → OverflowList-zXg3g6fy.js} +1 -1
  80. package/dist/Overlay/index.d.ts +1 -1
  81. package/dist/Pagination/index.js +1 -1
  82. package/dist/{Pagination-BRStpeSB.js → Pagination-DXfgMUKJ.js} +2 -2
  83. package/dist/Popover/index.d.ts +2 -1
  84. package/dist/Radio/index.d.ts +1 -1
  85. package/dist/Radio/index.js +1 -1
  86. package/dist/{RadioGroup-DS6oTV_j.js → RadioGroup-BqjdSCfJ.js} +1 -1
  87. package/dist/RadioList/index.d.ts +1 -1
  88. package/dist/RadioList/index.js +1 -1
  89. package/dist/{RadioList-pwr93I-z.js → RadioList-DI8ujXcT.js} +1 -1
  90. package/dist/Resizable/index.d.ts +2 -0
  91. package/dist/Resizable/index.js +2 -0
  92. package/dist/Resizable-BuGKvU9I.js +261 -0
  93. package/dist/ScrollableArea/index.d.ts +2 -0
  94. package/dist/ScrollableArea/index.js +2 -0
  95. package/dist/ScrollableArea-DQDYjnxO.js +78 -0
  96. package/dist/Section/index.d.ts +2 -0
  97. package/dist/Section/index.js +2 -0
  98. package/dist/Section-C48Wqfc7.js +68 -0
  99. package/dist/SelectableCard/index.d.ts +2 -0
  100. package/dist/SelectableCard/index.js +2 -0
  101. package/dist/SelectableCard-Bj5s_tIN.js +108 -0
  102. package/dist/Selector/index.d.ts +1 -1
  103. package/dist/Selector/index.js +1 -1
  104. package/dist/{Selector-DvEUIVEC.js → Selector-DlZpQh42.js} +1 -1
  105. package/dist/SideNav/index.d.ts +1 -1
  106. package/dist/SideNav/index.js +2 -1
  107. package/dist/{SideNav-B7LX4RcP.js → SideNav-Cdrigq2A.js} +48 -26
  108. package/dist/Slider/index.js +1 -1
  109. package/dist/{Slider-DTnWxtnb.js → Slider-D8h_RKcF.js} +1 -1
  110. package/dist/Stepper/index.d.ts +2 -0
  111. package/dist/Stepper/index.js +2 -0
  112. package/dist/Stepper-DxmLfh8O.js +423 -0
  113. package/dist/Switch/index.d.ts +1 -1
  114. package/dist/Switch/index.js +1 -1
  115. package/dist/{Switch-CNdnr5TP.js → Switch-SesQzPGZ.js} +4 -2
  116. package/dist/TabList/index.d.ts +2 -2
  117. package/dist/TabList/index.js +2 -2
  118. package/dist/TabList-C411uNQU.js +380 -0
  119. package/dist/Table/index.d.ts +2 -1
  120. package/dist/Table/index.js +1 -1
  121. package/dist/{Table-D5zWaITo.js → Table-7qRmlIQd.js} +5 -5
  122. package/dist/TextArea/index.d.ts +1 -1
  123. package/dist/TextArea/index.js +1 -1
  124. package/dist/{TextArea-BL0NuB99.js → TextArea-Cv9UVbzS.js} +5 -3
  125. package/dist/TextInput/index.d.ts +1 -1
  126. package/dist/TextInput/index.js +1 -1
  127. package/dist/{TextInput-B0IKC7g5.js → TextInput-BasnjVvy.js} +5 -3
  128. package/dist/Thumbnail/index.js +1 -1
  129. package/dist/{Thumbnail-DMOgWncm.js → Thumbnail-BWVzLLyI.js} +1 -1
  130. package/dist/{TimeField-DeQ1ukHl.js → TimeField-l3QzU6vC.js} +1 -1
  131. package/dist/TimeInput/index.d.ts +1 -1
  132. package/dist/TimeInput/index.js +1 -1
  133. package/dist/{TimeInput-jb1nLqZk.js → TimeInput-OkgX-xbQ.js} +2 -2
  134. package/dist/Timestamp/index.d.ts +1 -1
  135. package/dist/Timestamp/index.js +1 -1
  136. package/dist/{Timestamp-DrWwVQBL.js → Timestamp-DUoP9ari.js} +1 -1
  137. package/dist/ToggleButton/index.d.ts +1 -1
  138. package/dist/Token/index.d.ts +1 -1
  139. package/dist/Token/index.js +1 -1
  140. package/dist/{Token-CV2J94bn.js → Token-C4KD0fZD.js} +1 -1
  141. package/dist/Tokenizer/index.js +1 -1
  142. package/dist/{Tokenizer-DF9r4hTW.js → Tokenizer-BA8sTMPZ.js} +3 -3
  143. package/dist/Toolbar/index.d.ts +1 -1
  144. package/dist/Tooltip/index.d.ts +1 -1
  145. package/dist/TopNav/index.d.ts +1 -1
  146. package/dist/TopNav/index.js +1 -1
  147. package/dist/{TopNav-BH_s3uap.js → TopNav-CZokS7E_.js} +57 -31
  148. package/dist/TreeList/index.js +1 -1
  149. package/dist/{TreeList-D9cR-w7r.js → TreeList-CIbAGOMf.js} +1 -1
  150. package/dist/Typeahead/index.js +1 -1
  151. package/dist/{Typeahead-s4DC1Qem.js → Typeahead-DIw-K4aa.js} +3 -3
  152. package/dist/composables/index.d.ts +3 -2
  153. package/dist/composables/index.js +5 -2
  154. package/dist/composables-CVfjp9h4.js +502 -0
  155. package/dist/context-BjNya0v8.js +19 -0
  156. package/dist/context-Cfjh8te1.js +29 -0
  157. package/dist/{context-BshXcNYX.js → context-D6ECRdc5.js} +84 -0
  158. package/dist/index-1uRMrk63.d.ts +54 -0
  159. package/dist/{index-CsJpQElv.d.ts → index-2u4l3wq8.d.ts} +1 -1
  160. package/dist/{index-BlWLperN.d.ts → index-4FM5lQdV.d.ts} +1 -1
  161. package/dist/index-Be1czg3M.d.ts +167 -0
  162. package/dist/{index-Dbmgcm8a.d.ts → index-BeR-1LgF.d.ts} +2 -0
  163. package/dist/index-BrJzFA5X.d.ts +38 -0
  164. package/dist/{index-BDZCJ9ri.d.ts → index-BuubzuE8.d.ts} +2 -2
  165. package/dist/index-By2mSzUA.d.ts +67 -0
  166. package/dist/{index-BkIgRYGz.d.ts → index-C5p2NeCr.d.ts} +2 -2
  167. package/dist/{index-AkMWQ97a.d.ts → index-C6RecznD.d.ts} +1 -1
  168. package/dist/{index-BSRk8MFK.d.ts → index-C8wDPDcP.d.ts} +1 -1
  169. package/dist/index-CDdRQQF3.d.ts +170 -0
  170. package/dist/index-COqjznX0.d.ts +47 -0
  171. package/dist/{index-g03bmR4K.d.ts → index-CT8KEpec.d.ts} +2 -2
  172. package/dist/{index-Bc0dgVM5.d.ts → index-CTolyeii.d.ts} +4 -4
  173. package/dist/index-CVn0GBdB.d.ts +115 -0
  174. package/dist/index-CX97hlld.d.ts +158 -0
  175. package/dist/index-CjtAH60j.d.ts +38 -0
  176. package/dist/{index-5R_pi3eT.d.ts → index-D-ZuubCK.d.ts} +3 -3
  177. package/dist/index-DA52oIdw.d.ts +171 -0
  178. package/dist/{index-D3V7yRUP.d.ts → index-DGNqi2za.d.ts} +1 -1
  179. package/dist/{index-CCA4R0Mf.d.ts → index-DT9S92sh.d.ts} +31 -6
  180. package/dist/{index-CR6sUmRT.d.ts → index-DXSs3rwa.d.ts} +3 -107
  181. package/dist/{index-CNcQmDrK.d.ts → index-DYChvBOM.d.ts} +42 -0
  182. package/dist/{index-CQ9F1f_F.d.ts → index-Df2YvC8o.d.ts} +297 -125
  183. package/dist/{index--dh0s8Li.d.ts → index-DfgHJE7H.d.ts} +1 -1
  184. package/dist/{index-BnNh5Iml.d.ts → index-SMh42NI8.d.ts} +99 -2
  185. package/dist/{index-12ObcW99.d.ts → index-ZJyk8RtQ.d.ts} +1 -1
  186. package/dist/{index-Q4gqBSIZ.d.ts → index-fa72tWIU.d.ts} +1 -1
  187. package/dist/{index-BhYFxnjV.d.ts → index-kaKBOZSU.d.ts} +2 -2
  188. package/dist/index-nKlTsNfV.d.ts +42 -0
  189. package/dist/index.d.ts +75 -63
  190. package/dist/index.js +108 -89
  191. package/dist/locale/index.d.ts +1 -1
  192. package/dist/locale/index.js +1 -1
  193. package/dist/size-BuTzpgnR.d.ts +14 -0
  194. package/dist/size-xcIqExkS.js +79 -0
  195. package/dist/{index-Bovw9_8d.d.ts → types-Db3Owy8Q.d.ts} +1 -36
  196. package/dist/types-JktRxujg.d.ts +107 -0
  197. package/dist/useAppShellMobile-DTsyuAJ4.js +19 -0
  198. package/dist/useClickableContainer-DyNpnSEa.js +112 -0
  199. package/dist/useResizable-CeESZS1v.d.ts +72 -0
  200. package/dist/useScrollableArea-DDk_CluT.js +172 -0
  201. package/package.json +49 -1
  202. package/styles/app-shell.css +151 -0
  203. package/styles/aspect-ratio.css +49 -0
  204. package/styles/card.css +5 -1
  205. package/styles/clickable-card.css +101 -0
  206. package/styles/collapsible.css +37 -0
  207. package/styles/command-palette.css +183 -0
  208. package/styles/complex-selector.css +114 -0
  209. package/styles/field.css +12 -0
  210. package/styles/form-layout.css +31 -0
  211. package/styles/heading.css +19 -17
  212. package/styles/layout.css +280 -0
  213. package/styles/resize-handle.css +128 -0
  214. package/styles/scrollable-area.css +50 -0
  215. package/styles/section.css +60 -0
  216. package/styles/side-nav.css +26 -0
  217. package/styles/stepper.css +357 -0
  218. package/styles/tab-menu.css +91 -0
  219. package/styles.css +12 -0
  220. package/dist/Collapsible-BYg9soTk.js +0 -102
  221. package/dist/TabList-LV1U4ZD6.js +0 -184
  222. package/dist/composables-Dq9RS33w.js +0 -111
  223. package/dist/index-TnaIHsCS.d.ts +0 -87
@@ -0,0 +1,357 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.components {
4
+ .astryx-stepper-root {
5
+ width: 100%;
6
+ }
7
+
8
+ .astryx-stepper-root[data-collapsed] {
9
+ display: flex;
10
+ flex-direction: column;
11
+ align-items: center;
12
+ gap: var(--astryx-spacing-3, 12px);
13
+ }
14
+
15
+ .astryx-stepper {
16
+ display: flex;
17
+ width: 100%;
18
+ margin: 0;
19
+ padding: 0;
20
+ list-style: none;
21
+ gap: var(--astryx-spacing-0-5, 2px);
22
+ }
23
+
24
+ .astryx-stepper[data-orientation='horizontal'] {
25
+ gap: var(--astryx-spacing-1, 4px);
26
+ }
27
+
28
+ .astryx-stepper[data-orientation='vertical'] {
29
+ flex-direction: column;
30
+ }
31
+
32
+ .astryx-stepper[data-indicator-position='on-track'] {
33
+ gap: 0;
34
+ }
35
+
36
+ .astryx-stepper[data-collapsible='true'] {
37
+ container-type: inline-size;
38
+ container-name: astryx-stepper;
39
+ }
40
+
41
+ .astryx-step {
42
+ position: relative;
43
+ display: flex;
44
+ flex: 1 1 0;
45
+ min-width: 0;
46
+ color: var(--astryx-color-text-primary, #171717);
47
+ font-family: var(--astryx-font-family-body, Figtree, sans-serif);
48
+ }
49
+
50
+ .astryx-step[data-orientation='horizontal'] {
51
+ flex-direction: column;
52
+ }
53
+
54
+ .astryx-step[data-orientation='vertical'] {
55
+ flex-direction: row;
56
+ align-items: flex-start;
57
+ gap: var(--astryx-spacing-2, 8px);
58
+ }
59
+
60
+ .astryx-step[data-density='compact'] { --_step-space: var(--astryx-spacing-1, 4px); }
61
+ .astryx-step[data-density='balanced'] { --_step-space: var(--astryx-spacing-2, 8px); }
62
+ .astryx-step[data-density='spacious'] { --_step-space: var(--astryx-spacing-3, 12px); }
63
+
64
+ .astryx-step-bar,
65
+ .astryx-step-connector {
66
+ background: var(--astryx-color-border, #00000014);
67
+ border-radius: var(--astryx-radius-full, 999px);
68
+ }
69
+
70
+ .astryx-step-bar[data-filled],
71
+ .astryx-step-connector[data-filled] {
72
+ background: var(--astryx-color-accent, #0082fb);
73
+ }
74
+
75
+ .astryx-step[data-orientation='horizontal'] > .astryx-step-bar {
76
+ height: var(--astryx-spacing-1, 4px);
77
+ width: 100%;
78
+ margin-block-end: var(--astryx-spacing-0-5, 2px);
79
+ border-radius: 9999px;
80
+ }
81
+
82
+ .astryx-step[data-orientation='vertical'] > .astryx-step-bar {
83
+ width: var(--astryx-spacing-1, 4px);
84
+ align-self: stretch;
85
+ min-height: var(--astryx-spacing-4, 16px);
86
+ border-radius: var(--astryx-radius-full, 999px);
87
+ }
88
+
89
+ .astryx-step-rail {
90
+ display: flex;
91
+ align-items: center;
92
+ pointer-events: none;
93
+ }
94
+
95
+ .astryx-step[data-orientation='horizontal'][data-indicator-position='on-track'] > .astryx-step-rail {
96
+ height: var(--astryx-spacing-1, 4px);
97
+ margin-block: calc(var(--astryx-spacing-5, 20px) / 2 - 2px) var(--astryx-spacing-2, 8px);
98
+ }
99
+
100
+ .astryx-step[data-orientation='vertical'][data-indicator-position='on-track'] {
101
+ gap: var(--astryx-spacing-2, 8px);
102
+ }
103
+
104
+ .astryx-step[data-orientation='vertical'][data-indicator-position='on-track'] > .astryx-step-rail {
105
+ flex-direction: column;
106
+ align-self: stretch;
107
+ width: 16px;
108
+ }
109
+
110
+ .astryx-step-connector {
111
+ flex: 1 1 auto;
112
+ min-width: var(--astryx-spacing-2, 8px);
113
+ border-radius: 0;
114
+ }
115
+
116
+ .astryx-step[data-orientation='horizontal'] .astryx-step-connector {
117
+ height: var(--astryx-spacing-1, 4px);
118
+ }
119
+
120
+ .astryx-step[data-orientation='vertical'] .astryx-step-connector {
121
+ width: var(--astryx-spacing-1, 4px);
122
+ min-height: var(--astryx-spacing-2, 8px);
123
+ min-width: 0;
124
+ }
125
+
126
+ .astryx-step:first-child .astryx-step-connector-lead,
127
+ .astryx-step:last-child .astryx-step-connector-trail {
128
+ visibility: hidden;
129
+ }
130
+
131
+ .astryx-step-control {
132
+ display: flex;
133
+ align-items: flex-start;
134
+ gap: var(--astryx-spacing-2, 8px);
135
+ width: 100%;
136
+ margin: 0;
137
+ padding-block: var(--_step-space);
138
+ padding-inline: var(--_step-space);
139
+ border: 0;
140
+ border-radius: var(--astryx-radius-element, 0.625rem);
141
+ background: transparent;
142
+ color: inherit;
143
+ font: inherit;
144
+ text-align: start;
145
+ }
146
+
147
+ button.astryx-step-control {
148
+ cursor: pointer;
149
+ transition: background-color var(--astryx-duration-fast-min, 80ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
150
+ }
151
+
152
+ @media (hover: hover) {
153
+ button.astryx-step-control:hover {
154
+ background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
155
+ }
156
+ }
157
+
158
+ button.astryx-step-control:active {
159
+ background: var(--astryx-color-overlay-pressed, light-dark(#05365919, #ffffff19));
160
+ }
161
+
162
+ button.astryx-step-control:focus-visible {
163
+ outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
164
+ outline-offset: 2px;
165
+ }
166
+
167
+ .astryx-step-indicator {
168
+ display: inline-flex;
169
+ align-items: center;
170
+ justify-content: center;
171
+ flex-shrink: 0;
172
+ width: 16px;
173
+ height: 16px;
174
+ border-radius: 9999px;
175
+ background: transparent;
176
+ color: var(--astryx-color-text-primary, #171717);
177
+ font-size: 10px;
178
+ font-weight: 600;
179
+ line-height: 1;
180
+ }
181
+
182
+ .astryx-step-indicator svg {
183
+ width: 16px;
184
+ height: 16px;
185
+ }
186
+
187
+ .astryx-step-indicator[data-glyph='number'] {
188
+ background: var(--astryx-color-accent-muted, #f1f1f1);
189
+ color: var(--astryx-color-text-secondary, #525252);
190
+ }
191
+
192
+ .astryx-step[data-progress='completed'] .astryx-step-indicator[data-glyph='number'],
193
+ .astryx-step[data-progress='in-progress'] .astryx-step-indicator[data-glyph='number'] {
194
+ background: var(--astryx-color-accent, #262626);
195
+ color: var(--astryx-color-background-surface, #fff);
196
+ }
197
+
198
+ .astryx-step[data-status='accent'] .astryx-step-indicator {
199
+ color: var(--astryx-color-accent, #262626);
200
+ }
201
+
202
+ .astryx-step[data-status='success'] .astryx-step-indicator {
203
+ background: transparent;
204
+ color: var(--astryx-color-success, #16a34a);
205
+ }
206
+
207
+ .astryx-step[data-status='warning'] .astryx-step-indicator {
208
+ background: transparent;
209
+ color: var(--astryx-color-warning, #ca8a04);
210
+ }
211
+
212
+ .astryx-step[data-status='error'] .astryx-step-indicator {
213
+ background: transparent;
214
+ color: var(--astryx-color-error, #dc2626);
215
+ }
216
+
217
+ .astryx-step[data-progress='not-started'] .astryx-step-label,
218
+ .astryx-step[data-progress='completed'] .astryx-step-label {
219
+ font-weight: var(--astryx-font-weight-regular, 400);
220
+ }
221
+
222
+ .astryx-step[data-progress='in-progress'] .astryx-step-label {
223
+ font-weight: var(--astryx-font-weight-semibold, 600);
224
+ }
225
+
226
+ .astryx-step-copy {
227
+ display: flex;
228
+ flex-direction: column;
229
+ min-width: 0;
230
+ gap: var(--astryx-spacing-0-5, 2px);
231
+ }
232
+
233
+ .astryx-step-label-row {
234
+ display: flex;
235
+ align-items: center;
236
+ gap: var(--astryx-spacing-1, 4px);
237
+ min-width: 0;
238
+ }
239
+
240
+ .astryx-step-label,
241
+ .astryx-step-description,
242
+ .astryx-step-optional {
243
+ font-size: var(--astryx-text-body-size, 0.875rem);
244
+ line-height: var(--astryx-text-body-leading, 1.4286);
245
+ }
246
+
247
+ .astryx-step-description,
248
+ .astryx-step-optional {
249
+ color: var(--astryx-color-text-secondary, #525252);
250
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
251
+ line-height: 16px;
252
+ }
253
+
254
+ .astryx-step-content {
255
+ padding-block-start: var(--astryx-spacing-2, 8px);
256
+ }
257
+
258
+ .astryx-step[data-orientation='horizontal'][data-indicator-position='separated'] .astryx-step-control {
259
+ align-items: center;
260
+ }
261
+
262
+ .astryx-step[data-orientation='horizontal'][data-indicator-position='on-track'] .astryx-step-control {
263
+ flex-direction: column;
264
+ align-items: center;
265
+ text-align: center;
266
+ }
267
+
268
+ .astryx-step[data-orientation='horizontal'][data-indicator-position='on-track'] .astryx-step-indicator {
269
+ margin-block-start: -10px;
270
+ }
271
+
272
+ .astryx-stepper-root[data-collapsed] .astryx-stepper {
273
+ width: auto;
274
+ justify-content: center;
275
+ gap: var(--astryx-spacing-2, 8px);
276
+ }
277
+
278
+ .astryx-stepper-root[data-collapsed] .astryx-step {
279
+ flex: 0 0 32px;
280
+ width: 32px;
281
+ min-width: 32px;
282
+ }
283
+
284
+ .astryx-stepper-root[data-collapsed] .astryx-step-control,
285
+ .astryx-stepper-root[data-collapsed] .astryx-step-content,
286
+ .astryx-stepper-root[data-collapsed] .astryx-step-rail {
287
+ display: none;
288
+ }
289
+
290
+ .astryx-stepper-root[data-collapsed] .astryx-step-bar {
291
+ margin-block-end: 0;
292
+ }
293
+
294
+ .astryx-stepper-summary {
295
+ display: flex;
296
+ align-items: center;
297
+ justify-content: center;
298
+ gap: var(--astryx-spacing-3, 12px);
299
+ min-width: 0;
300
+ }
301
+
302
+ .astryx-stepper-summary-body {
303
+ display: flex;
304
+ flex-direction: column;
305
+ align-items: center;
306
+ gap: var(--astryx-spacing-0-5, 2px);
307
+ min-width: 0;
308
+ }
309
+
310
+ .astryx-stepper-summary-row {
311
+ display: flex;
312
+ align-items: center;
313
+ gap: var(--astryx-spacing-2, 8px);
314
+ }
315
+
316
+ .astryx-stepper-summary .astryx-step-label {
317
+ color: var(--astryx-color-text-primary, #171717);
318
+ font-weight: 600;
319
+ }
320
+
321
+ .astryx-stepper-nav {
322
+ display: inline-flex;
323
+ align-items: center;
324
+ justify-content: center;
325
+ width: 32px;
326
+ height: 32px;
327
+ margin: 0;
328
+ padding: 0;
329
+ border: 0;
330
+ border-radius: var(--astryx-radius-element, 0.625rem);
331
+ background: transparent;
332
+ color: var(--astryx-color-text-primary, #171717);
333
+ cursor: pointer;
334
+ }
335
+
336
+ .astryx-stepper-nav svg {
337
+ width: 16px;
338
+ height: 16px;
339
+ }
340
+
341
+ .astryx-stepper-nav:disabled {
342
+ opacity: 0.4;
343
+ cursor: not-allowed;
344
+ }
345
+
346
+ @container astryx-stepper (max-width: 480px) {
347
+ .astryx-stepper[data-collapsible='true'][data-orientation='horizontal'] .astryx-step:not([data-progress='in-progress']) .astryx-step-copy {
348
+ display: none;
349
+ }
350
+ }
351
+
352
+ @media (prefers-reduced-motion: reduce) {
353
+ button.astryx-step-control {
354
+ transition-duration: 0s;
355
+ }
356
+ }
357
+ }
@@ -0,0 +1,91 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.components {
4
+ .astryx-tab-menu {
5
+ gap: var(--astryx-spacing-1, 4px);
6
+ }
7
+
8
+ .astryx-tab-menu-chevron {
9
+ width: var(--astryx-spacing-4, 16px);
10
+ height: var(--astryx-spacing-4, 16px);
11
+ transition: transform var(--astryx-duration-fast, 130ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
12
+ }
13
+
14
+ .astryx-tab-menu-chevron[data-state='expanded'] {
15
+ transform: rotate(180deg);
16
+ }
17
+
18
+ .astryx-tab-menu-dropdown {
19
+ position: fixed;
20
+ z-index: 50;
21
+ display: flex;
22
+ flex-direction: column;
23
+ gap: var(--astryx-spacing-0-5, 2px);
24
+ min-width: 180px;
25
+ margin: 0;
26
+ padding-block: var(--astryx-spacing-1, 4px);
27
+ padding-inline: var(--astryx-spacing-1, 4px);
28
+ border: 0;
29
+ border-radius: var(--astryx-radius-container, 0.75rem);
30
+ background: var(--astryx-color-background-surface, #fff);
31
+ box-shadow: var(--astryx-shadow-high, 0 8px 24px rgb(0 0 0 / 16%));
32
+ color: var(--astryx-color-text-primary, #171717);
33
+ }
34
+
35
+ .astryx-tab-menu-heading {
36
+ padding-block: var(--astryx-spacing-1, 4px);
37
+ padding-inline: var(--astryx-spacing-3, 12px);
38
+ color: var(--astryx-color-text-secondary, #525252);
39
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
40
+ font-weight: var(--astryx-font-weight-semibold, 600);
41
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
42
+ }
43
+
44
+ .astryx-tab-menu-item {
45
+ display: flex;
46
+ align-items: center;
47
+ justify-content: space-between;
48
+ gap: var(--astryx-spacing-2, 8px);
49
+ padding-block: var(--astryx-spacing-2, 8px);
50
+ padding-inline: var(--astryx-spacing-3, 12px);
51
+ border-radius: var(--astryx-radius-element, 0.625rem);
52
+ color: var(--astryx-color-text-primary, #171717);
53
+ font-size: var(--astryx-text-label-size, 0.875rem);
54
+ line-height: var(--astryx-text-label-leading, 1.4286);
55
+ cursor: pointer;
56
+ }
57
+
58
+ .astryx-tab-menu-item[data-selected='true'] {
59
+ font-weight: var(--astryx-font-weight-medium, 500);
60
+ }
61
+
62
+ @media (hover: hover) {
63
+ .astryx-tab-menu-item:hover {
64
+ background: var(--astryx-color-overlay-hover, light-dark(#0536590c, #ffffff0c));
65
+ }
66
+ }
67
+
68
+ .astryx-tab-menu-item:focus-visible {
69
+ outline: var(--astryx-focus-outline-width, 2px) solid var(--astryx-focus-outline-color, var(--astryx-color-text-primary, #171717));
70
+ outline-offset: -2px;
71
+ }
72
+
73
+ .astryx-tab-menu-item-label {
74
+ display: inline-flex;
75
+ align-items: center;
76
+ gap: var(--astryx-spacing-2, 8px);
77
+ min-width: 0;
78
+ }
79
+
80
+ .astryx-tab-menu-icon {
81
+ width: 1rem;
82
+ height: 1rem;
83
+ flex-shrink: 0;
84
+ }
85
+
86
+ @media (prefers-reduced-motion: reduce) {
87
+ .astryx-tab-menu-chevron {
88
+ transition: none;
89
+ }
90
+ }
91
+ }
package/styles.css CHANGED
@@ -1,5 +1,7 @@
1
1
  /* 这个文件由 `pnpm sync` 生成,不要手改。 */
2
2
  @import './styles/alert-dialog.css';
3
+ @import './styles/app-shell.css';
4
+ @import './styles/aspect-ratio.css';
3
5
  @import './styles/avatar.css';
4
6
  @import './styles/avatar-group.css';
5
7
  @import './styles/badge.css';
@@ -17,8 +19,11 @@
17
19
  @import './styles/checkbox-input.css';
18
20
  @import './styles/checkbox-list.css';
19
21
  @import './styles/citation.css';
22
+ @import './styles/clickable-card.css';
20
23
  @import './styles/code.css';
21
24
  @import './styles/collapsible.css';
25
+ @import './styles/command-palette.css';
26
+ @import './styles/complex-selector.css';
22
27
  @import './styles/context-menu.css';
23
28
  @import './styles/date-range-input.css';
24
29
  @import './styles/date-time-input.css';
@@ -29,11 +34,13 @@
29
34
  @import './styles/empty-state.css';
30
35
  @import './styles/field.css';
31
36
  @import './styles/file-input.css';
37
+ @import './styles/form-layout.css';
32
38
  @import './styles/grid.css';
33
39
  @import './styles/heading.css';
34
40
  @import './styles/hover-card.css';
35
41
  @import './styles/icon.css';
36
42
  @import './styles/kbd.css';
43
+ @import './styles/layout.css';
37
44
  @import './styles/link.css';
38
45
  @import './styles/list.css';
39
46
  @import './styles/markdown.css';
@@ -49,6 +56,9 @@
49
56
  @import './styles/popover.css';
50
57
  @import './styles/progress-bar.css';
51
58
  @import './styles/radio.css';
59
+ @import './styles/resize-handle.css';
60
+ @import './styles/scrollable-area.css';
61
+ @import './styles/section.css';
52
62
  @import './styles/segmented-control.css';
53
63
  @import './styles/side-nav.css';
54
64
  @import './styles/skeleton.css';
@@ -56,8 +66,10 @@
56
66
  @import './styles/spinner.css';
57
67
  @import './styles/stack.css';
58
68
  @import './styles/status-dot.css';
69
+ @import './styles/stepper.css';
59
70
  @import './styles/switch.css';
60
71
  @import './styles/tab-list.css';
72
+ @import './styles/tab-menu.css';
61
73
  @import './styles/table.css';
62
74
  @import './styles/text.css';
63
75
  @import './styles/text-area.css';
@@ -1,102 +0,0 @@
1
- import { t as _sfc_main$1 } from "./Icon-5MdZQ18k.js";
2
- import { Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeModels, openBlock, renderSlot, shallowRef, toDisplayString, useId, useModel, useTemplateRef, vShow, withCtx, withDirectives } from "vue";
3
- import "../styles/collapsible.css";
4
- //#region src/Collapsible/Collapsible.vue
5
- const _hoisted_1 = [
6
- "data-chevron-position",
7
- "data-open",
8
- "data-disabled",
9
- "aria-expanded",
10
- "aria-disabled",
11
- "tabindex"
12
- ];
13
- const _hoisted_2 = { class: "astryx-collapsible-trigger-label" };
14
- const _hoisted_3 = ["data-open"];
15
- const _hoisted_4 = { class: "astryx-collapsible-content-inner" };
16
- const _sfc_main = /*@__PURE__*/ defineComponent({
17
- name: "AstryxCollapsible",
18
- __name: "Collapsible",
19
- props: /*@__PURE__*/ mergeModels({
20
- trigger: {},
21
- defaultIsOpen: {
22
- type: Boolean,
23
- default: true
24
- },
25
- isDisabled: {
26
- type: Boolean,
27
- default: false
28
- },
29
- chevronPosition: { default: "end" }
30
- }, {
31
- "isOpen": {
32
- type: Boolean,
33
- default: void 0
34
- },
35
- "isOpenModifiers": {}
36
- }),
37
- emits: /*@__PURE__*/ mergeModels(["openChange"], ["update:isOpen"]),
38
- setup(__props, { expose: __expose, emit: __emit }) {
39
- const props = __props;
40
- const emit = __emit;
41
- const open = useModel(__props, "isOpen");
42
- const localIsOpen = shallowRef(props.defaultIsOpen);
43
- const isOpen = computed(() => open.value ?? localIsOpen.value);
44
- const isChevronAtStart = computed(() => props.chevronPosition === "start");
45
- const contentId = `astryx-collapsible-${useId()}`;
46
- const root = useTemplateRef("root");
47
- __expose({ element: computed(() => root.value ?? null) });
48
- function toggle() {
49
- if (props.isDisabled) return;
50
- const next = !isOpen.value;
51
- localIsOpen.value = next;
52
- open.value = next;
53
- emit("openChange", next);
54
- }
55
- return (_ctx, _cache) => {
56
- return openBlock(), createElementBlock("div", {
57
- ref_key: "root",
58
- ref: root,
59
- class: "astryx-collapsible"
60
- }, [createElementVNode("button", {
61
- type: "button",
62
- class: "astryx-collapsible-trigger",
63
- "data-chevron-position": __props.chevronPosition,
64
- "data-open": isOpen.value ? "open" : void 0,
65
- "data-disabled": __props.isDisabled ? "disabled" : void 0,
66
- "aria-expanded": isOpen.value,
67
- "aria-controls": contentId,
68
- "aria-disabled": __props.isDisabled || void 0,
69
- tabindex: __props.isDisabled ? -1 : void 0,
70
- onClick: toggle
71
- }, [
72
- isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$1, {
73
- key: 0,
74
- class: "astryx-collapsible-chevron",
75
- color: "secondary",
76
- icon: "chevronRight",
77
- size: "sm"
78
- })) : createCommentVNode("v-if", true),
79
- createElementVNode("span", _hoisted_2, [renderSlot(_ctx.$slots, "trigger", {}, () => [createTextVNode(toDisplayString(__props.trigger), 1)])]),
80
- !isChevronAtStart.value ? (openBlock(), createBlock(_sfc_main$1, {
81
- key: 1,
82
- class: "astryx-collapsible-chevron",
83
- color: "secondary",
84
- icon: "chevronDown",
85
- size: "sm"
86
- })) : createCommentVNode("v-if", true)
87
- ], 8, _hoisted_1), createVNode(Transition, {
88
- name: "astryx-collapsible-reveal",
89
- persisted: ""
90
- }, {
91
- default: withCtx(() => [withDirectives(createElementVNode("div", {
92
- id: contentId,
93
- class: "astryx-collapsible-content",
94
- "data-open": isOpen.value ? "open" : void 0
95
- }, [createElementVNode("div", _hoisted_4, [renderSlot(_ctx.$slots, "default")])], 8, _hoisted_3), [[vShow, isOpen.value]])]),
96
- _: 3
97
- })], 512);
98
- };
99
- }
100
- });
101
- //#endregion
102
- export { _sfc_main as t };