@astryx-vue/core 0.2.0 → 0.2.2

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/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-EiGyPFbA.js → AppShell-Cb41gIAj.js} +2 -2
  3. package/dist/Avatar/index.d.ts +1 -1
  4. package/dist/Avatar/index.js +1 -1
  5. package/dist/Avatar-jmHInHwj.js +244 -0
  6. package/dist/AvatarGroup/index.d.ts +1 -1
  7. package/dist/AvatarGroup/index.js +1 -1
  8. package/dist/{AvatarGroup-CZcgAMjM.js → AvatarGroup-QyzSrpYA.js} +8 -7
  9. package/dist/Badge/index.d.ts +2 -1
  10. package/dist/Badge/index.js +1 -1
  11. package/dist/Badge-CjDQPF5g.js +30 -0
  12. package/dist/Banner/index.d.ts +1 -1
  13. package/dist/Breadcrumbs/index.d.ts +2 -2
  14. package/dist/Breadcrumbs/index.js +1 -1
  15. package/dist/{Breadcrumbs-C3YZFQ9w.js → Breadcrumbs-CTQ7fjDn.js} +45 -11
  16. package/dist/ButtonGroup/index.d.ts +1 -1
  17. package/dist/Calendar/index.d.ts +2 -2
  18. package/dist/Calendar/index.js +1 -1
  19. package/dist/Calendar-BFaI5AMv.js +352 -0
  20. package/dist/Card/index.d.ts +1 -1
  21. package/dist/Carousel/index.js +1 -1
  22. package/dist/{Carousel-BTtHkKea.js → Carousel-X0cuQkvg.js} +2 -2
  23. package/dist/Chat/index.d.ts +2 -2
  24. package/dist/Chat/index.js +2 -2
  25. package/dist/Chat-M0tiGrNT.js +3148 -0
  26. package/dist/CheckboxInput/index.d.ts +1 -1
  27. package/dist/CheckboxList/index.d.ts +1 -1
  28. package/dist/CheckboxList/index.js +1 -1
  29. package/dist/Citation/index.js +1 -1
  30. package/dist/{Citation-DijdbUUu.js → Citation-C1veUk5p.js} +2 -2
  31. package/dist/ClickableCard/index.d.ts +1 -1
  32. package/dist/Code/index.js +1 -1
  33. package/dist/{CodeBlock-CxTb6j9_.js → CodeBlock-DesTJAkm.js} +1 -1
  34. package/dist/Collapsible/index.js +1 -1
  35. package/dist/{Collapsible-9MC08X39.js → Collapsible-BestK35V.js} +1 -1
  36. package/dist/CommandPalette/index.js +1 -1
  37. package/dist/{CommandPalette-BD2iODF5.js → CommandPalette-BArt97V8.js} +1 -1
  38. package/dist/ComplexSelector/index.d.ts +1 -1
  39. package/dist/ComplexSelector/index.js +1 -1
  40. package/dist/{ComplexSelector-D9iXd5cH.js → ComplexSelector-CAoig1RK.js} +2 -2
  41. package/dist/ContextMenu/index.d.ts +2 -2
  42. package/dist/ContextMenu/index.js +1 -1
  43. package/dist/{ContextMenu-HS_WqYIg.js → ContextMenu-9Im6i43E.js} +101 -63
  44. package/dist/DateInput/index.d.ts +2 -2
  45. package/dist/DateInput/index.js +1 -1
  46. package/dist/DateInput-BLocxqC3.js +376 -0
  47. package/dist/DateRangeInput/index.d.ts +1 -1
  48. package/dist/DateRangeInput/index.js +1 -1
  49. package/dist/{DateRangeInput-1bhPGG2s.js → DateRangeInput-DwDy3eRo.js} +2 -2
  50. package/dist/DateTimeInput/index.d.ts +1 -1
  51. package/dist/DateTimeInput/index.js +1 -1
  52. package/dist/{DateTimeInput-SnPdgk6P.js → DateTimeInput-BYiaC9bn.js} +5 -3
  53. package/dist/DropdownMenu/index.d.ts +3 -2
  54. package/dist/DropdownMenu/index.js +3 -2
  55. package/dist/DropdownMenu-Ddfr-aEC.js +164 -0
  56. package/dist/{DropdownMenu-UJGych6v.js → DropdownMenu-Dh-WAHKb.js} +63 -16
  57. package/dist/FileInput/index.d.ts +1 -1
  58. package/dist/FileInput/index.js +1 -1
  59. package/dist/{FileInput-BQiwE-GB.js → FileInput-DLO6V12n.js} +2 -2
  60. package/dist/Icon/index.d.ts +4 -3
  61. package/dist/Icon/index.js +3 -2
  62. package/dist/Icon/plugin.d.ts +45 -0
  63. package/dist/Icon/plugin.js +177 -0
  64. package/dist/Icon-CJKjdJy-.js +198 -0
  65. package/dist/Lightbox/index.js +1 -1
  66. package/dist/{Lightbox-CshKoB0r.js → Lightbox-CdFCS_EA.js} +2 -2
  67. package/dist/Link/index.d.ts +1 -1
  68. package/dist/Link/index.js +1 -1
  69. package/dist/Link-DqdQZ37C.js +141 -0
  70. package/dist/Markdown/index.js +1 -1
  71. package/dist/{Markdown-D-Ua055V.js → Markdown-BqKloI3w.js} +3 -3
  72. package/dist/MetadataList/index.js +1 -1
  73. package/dist/{MetadataList-sYph_d8Q.js → MetadataList-CvZkmisf.js} +1 -1
  74. package/dist/MobileNav/index.js +1 -1
  75. package/dist/{MobileNavToggle-DD9D01aj.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
  76. package/dist/MoreMenu/index.d.ts +1 -1
  77. package/dist/MoreMenu/index.js +1 -1
  78. package/dist/{MoreMenu-BVrK5kkk.js → MoreMenu-BwJaJrkB.js} +2 -2
  79. package/dist/MultiSelector/index.js +1 -1
  80. package/dist/{MultiSelector-DiYov9sF.js → MultiSelector-C-ETfFy_.js} +2 -2
  81. package/dist/NumberInput/index.d.ts +2 -2
  82. package/dist/NumberInput/index.js +1 -1
  83. package/dist/NumberInput-DjetVB8O.js +210 -0
  84. package/dist/Outline/index.js +1 -1
  85. package/dist/{Outline-DQfEBxlc.js → Outline-Bz9c-u5y.js} +1 -1
  86. package/dist/OverflowList/index.d.ts +1 -1
  87. package/dist/OverflowList/index.js +1 -1
  88. package/dist/{OverflowList-BU5VCntl.js → OverflowList-ED-KN9Y5.js} +1 -1
  89. package/dist/Overlay/index.d.ts +1 -1
  90. package/dist/Pagination/index.d.ts +2 -2
  91. package/dist/Pagination/index.js +1 -1
  92. package/dist/{Pagination-HdhtykeF.js → Pagination-Cb66HMEf.js} +76 -22
  93. package/dist/PowerSearch/index.d.ts +2 -0
  94. package/dist/PowerSearch/index.js +2 -0
  95. package/dist/PowerSearch-CjU8y4mi.js +2386 -0
  96. package/dist/ProgressBar/index.d.ts +1 -1
  97. package/dist/ProgressBar/index.js +1 -1
  98. package/dist/{ProgressBar-ChDp-7oe.js → ProgressBar-DO9Chic6.js} +31 -11
  99. package/dist/Radio/index.d.ts +1 -1
  100. package/dist/RadioList/index.d.ts +1 -1
  101. package/dist/Resizable/index.d.ts +1 -1
  102. package/dist/Resizable/index.js +1 -1
  103. package/dist/{Resizable-BhSMfO5B.js → Resizable-D-TBCg0Y.js} +1 -1
  104. package/dist/ScrollableArea/index.d.ts +1 -1
  105. package/dist/SelectableCard/index.d.ts +1 -1
  106. package/dist/Selector/index.d.ts +2 -2
  107. package/dist/Selector/index.js +1 -1
  108. package/dist/Selector-DE2IEFML.js +468 -0
  109. package/dist/SideNav/index.d.ts +1 -1
  110. package/dist/SideNav/index.js +1 -1
  111. package/dist/{SideNav-B-Om6Bz3.js → SideNav-DonEfiAx.js} +17 -17
  112. package/dist/Stepper/index.js +1 -1
  113. package/dist/{Stepper-BZ_8SEZt.js → Stepper-D2ZIcUNx.js} +1 -1
  114. package/dist/Switch/index.d.ts +1 -1
  115. package/dist/TabList/index.d.ts +1 -1
  116. package/dist/TabList/index.js +1 -1
  117. package/dist/{TabList-Cnc2Hs1H.js → TabList-D3F-stq-.js} +10 -3
  118. package/dist/Table/index.d.ts +3 -3
  119. package/dist/Table/index.js +2 -2
  120. package/dist/Table-CrP2Uffq.js +1982 -0
  121. package/dist/TextArea/index.d.ts +1 -1
  122. package/dist/TextArea/index.js +1 -1
  123. package/dist/{TextArea-Cv9UVbzS.js → TextArea-CPwSytdO.js} +12 -6
  124. package/dist/TextInput/index.d.ts +1 -1
  125. package/dist/Thumbnail/index.js +1 -1
  126. package/dist/{Thumbnail-Dc1UpykG.js → Thumbnail-BC5JGPGZ.js} +11 -11
  127. package/dist/{TimeField-C7t9Knq9.js → TimeField-DpHFrNv0.js} +2 -2
  128. package/dist/TimeInput/index.d.ts +1 -1
  129. package/dist/TimeInput/index.js +1 -1
  130. package/dist/{TimeInput-BXxCOY98.js → TimeInput-DJLV0_4z.js} +1 -1
  131. package/dist/Timestamp/index.d.ts +1 -1
  132. package/dist/Timestamp/index.js +2 -1
  133. package/dist/{Timestamp-DlZSmgCJ.js → Timestamp-GKNjjt5g.js} +4 -121
  134. package/dist/Toast/index.d.ts +2 -2
  135. package/dist/Toast/index.js +1 -1
  136. package/dist/{Toast-BKXPvEMp.js → Toast-C2ML-bmi.js} +37 -7
  137. package/dist/ToggleButton/index.d.ts +1 -1
  138. package/dist/Token/index.js +1 -1
  139. package/dist/{Token-wt4e80IM.js → Token-Chu_eCVs.js} +1 -1
  140. package/dist/Tokenizer/index.js +1 -1
  141. package/dist/{Tokenizer-nmTqdS9n.js → Tokenizer-DRDpvQ_l.js} +3 -3
  142. package/dist/Toolbar/index.d.ts +1 -1
  143. package/dist/TopNav/index.d.ts +1 -1
  144. package/dist/TopNav/index.js +1 -1
  145. package/dist/{TopNav-notp-mJx.js → TopNav-CEyWddtA.js} +3 -3
  146. package/dist/TreeList/index.js +1 -1
  147. package/dist/{TreeList-s1xBQ0qq.js → TreeList-COS8US8e.js} +3 -3
  148. package/dist/Typeahead/index.js +1 -1
  149. package/dist/{Typeahead-VAuiCurV.js → Typeahead-P7cCqtaQ.js} +3 -3
  150. package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
  151. package/dist/composables/index.d.ts +3 -3
  152. package/dist/{context-Dbo22sck.js → context-CiKncNSH.js} +184 -6
  153. package/dist/formatInstant-BDWUIxS7.js +119 -0
  154. package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
  155. package/dist/{index-DRmb-oUa.d.ts → index-B9WzWqzk.d.ts} +3 -29
  156. package/dist/{index-BuubzuE8.d.ts → index-BDZCJ9ri.d.ts} +2 -2
  157. package/dist/{index-z4p2k9VR.d.ts → index-Bgv4ZmBl.d.ts} +20 -2
  158. package/dist/{index-BoRIw-bP.d.ts → index-Bt7ewoz2.d.ts} +32 -2
  159. package/dist/{index-uQrLBZfF.d.ts → index-Bu3oXIIS.d.ts} +24 -0
  160. package/dist/index-CJlBAXwj.d.ts +100 -0
  161. package/dist/{index-DT9S92sh.d.ts → index-CNjbOgty.d.ts} +15 -0
  162. package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
  163. package/dist/index-Cs5pcwY3.d.ts +416 -0
  164. package/dist/{index-NzLDrOkk.d.ts → index-D4I_obqR.d.ts} +14 -1
  165. package/dist/{index-BtPZKO20.d.ts → index-DGXviOlp.d.ts} +49 -7
  166. package/dist/{index-CTolyeii.d.ts → index-DN7MXPHM.d.ts} +15 -1
  167. package/dist/{index-C6iJwTL0.d.ts → index-DNRBbwp_.d.ts} +165 -55
  168. package/dist/{index-C59PdX9L.d.ts → index-DWH_HzXi.d.ts} +1 -1
  169. package/dist/{index-BfOtLyNH.d.ts → index-D_nYxnNv.d.ts} +1 -1
  170. package/dist/{index-Bn_odHQ9.d.ts → index-Dg3ZmwEg.d.ts} +12 -1
  171. package/dist/{index-BiMGXtD-.d.ts → index-DimuSES0.d.ts} +14 -1
  172. package/dist/{index-DEeJowZf.d.ts → index-cGagYM1g.d.ts} +15 -2
  173. package/dist/{index-Ck8qy6Rf.d.ts → index-c_TaW8mM.d.ts} +24 -2
  174. package/dist/index-kVhSuA9t.d.ts +902 -0
  175. package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
  176. package/dist/{index-DoFCm2Q2.d.ts → index-qiZtHnGK.d.ts} +26 -0
  177. package/dist/{index-Bainr_3n.d.ts → index-u5ozu0G7.d.ts} +2 -2
  178. package/dist/index.d.ts +79 -76
  179. package/dist/index.js +111 -100
  180. package/dist/locale/index.d.ts +1 -1
  181. package/dist/locale/index.js +1 -1
  182. package/dist/power-search-DrDfcoL1.d.ts +68 -0
  183. package/dist/registry-B1ObuP--.d.ts +45 -0
  184. package/dist/registry-C7OZb0PJ.js +135 -0
  185. package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
  186. package/dist/{index-B8MbfMwV.d.ts → types-DDAAT1Xd.d.ts} +36 -82
  187. package/dist/types-DIYwbkpe.d.ts +33 -0
  188. package/dist/{types-DZoEm_DG.d.ts → types-pnljWjEE.d.ts} +23 -6
  189. package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
  190. package/package.json +10 -1
  191. package/styles/avatar.css +14 -0
  192. package/styles/badge.css +8 -0
  193. package/styles/breadcrumbs.css +6 -1
  194. package/styles/button.css +13 -0
  195. package/styles/calendar.css +16 -0
  196. package/styles/card.css +2 -0
  197. package/styles/chat.css +474 -3
  198. package/styles/dropdown-menu.css +11 -0
  199. package/styles/icon.css +58 -8
  200. package/styles/link.css +5 -0
  201. package/styles/number-input.css +22 -0
  202. package/styles/pagination.css +45 -1
  203. package/styles/power-search.css +303 -0
  204. package/styles/progress-bar.css +4 -0
  205. package/styles/selector.css +58 -0
  206. package/styles/tab-list.css +15 -0
  207. package/styles/table.css +304 -1
  208. package/styles/text-area.css +17 -0
  209. package/styles/text-input.css +5 -0
  210. package/styles/toast.css +7 -0
  211. package/styles/toolbar.css +11 -0
  212. package/styles.css +1 -0
  213. package/dist/Avatar-5s3HSrtN.js +0 -136
  214. package/dist/Badge-Ba0EwsTj.js +0 -19
  215. package/dist/Calendar-BG7wEsro.js +0 -277
  216. package/dist/Chat-DjNxw5gv.js +0 -1051
  217. package/dist/DateInput-DE2TN1Rq.js +0 -250
  218. package/dist/Icon-Dfr4k6-S.js +0 -86
  219. package/dist/Link-CprjOuTI.js +0 -92
  220. package/dist/NumberInput-CTYiQxHq.js +0 -147
  221. package/dist/Selector-Da-2BO3q.js +0 -325
  222. package/dist/Table-D-LhAy_J.js +0 -967
  223. package/dist/index-DJo-BmXZ.d.ts +0 -431
  224. package/dist/index-DtjAdYEc.d.ts +0 -68
  225. package/dist/{CheckboxList-EsIEXjK_.js → CheckboxList-BbCPiend.js} +1 -1
package/styles/table.css CHANGED
@@ -115,7 +115,8 @@
115
115
  max-width: 0;
116
116
  }
117
117
 
118
- .astryx-table[data-striped='true'] tbody tr:nth-child(even of :not([data-expansion-panel])) {
118
+ .astryx-table[data-striped='true'] tbody tr:nth-child(even of :not([data-expansion-panel], [data-group-header])) {
119
+ --table-row-overlay: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
119
120
  background-color: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
120
121
  }
121
122
 
@@ -125,11 +126,13 @@
125
126
 
126
127
  @media (hover: hover) {
127
128
  .astryx-table[data-hover='true'] tbody tr:hover {
129
+ --table-row-overlay: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
128
130
  background-color: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
129
131
  }
130
132
  }
131
133
 
132
134
  .astryx-table tbody tr[aria-selected='true'] {
135
+ --table-row-overlay: var(--astryx-color-accent-muted, light-dark(#f1f1f1, #262626));
133
136
  background-color: var(--astryx-color-accent-muted, light-dark(#f1f1f1, #262626));
134
137
  }
135
138
 
@@ -191,6 +194,18 @@
191
194
  min-width: 0;
192
195
  }
193
196
 
197
+ .astryx-table__header-line {
198
+ display: flex;
199
+ align-items: center;
200
+ gap: var(--astryx-spacing-1, 4px);
201
+ min-width: 0;
202
+ }
203
+
204
+ .astryx-table__header-line > .astryx-table__sort {
205
+ flex: 1;
206
+ min-width: 0;
207
+ }
208
+
194
209
  .astryx-table__resize {
195
210
  position: absolute;
196
211
  top: 0;
@@ -253,4 +268,292 @@
253
268
  gap: var(--astryx-spacing-2, 8px);
254
269
  margin-bottom: var(--astryx-spacing-2, 8px);
255
270
  }
271
+
272
+ .astryx-table__clickable {
273
+ cursor: pointer;
274
+ }
275
+
276
+ .astryx-table tr[data-group-header] {
277
+ cursor: pointer;
278
+ user-select: none;
279
+ background: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
280
+ border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
281
+ }
282
+
283
+ .astryx-table td.astryx-table__group {
284
+ max-width: none;
285
+ overflow: visible;
286
+ padding-inline-start: 0;
287
+ background: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
288
+ }
289
+
290
+ .astryx-table__group-inner,
291
+ .astryx-table__tree {
292
+ display: flex;
293
+ align-items: center;
294
+ gap: var(--astryx-spacing-1, 4px);
295
+ min-width: 0;
296
+ }
297
+
298
+ .astryx-table__group-inner {
299
+ padding-inline-start: var(--astryx-spacing-1, 4px);
300
+ }
301
+
302
+ .astryx-table__group-inner[data-pinned] {
303
+ position: sticky;
304
+ inset-inline-start: 0;
305
+ width: fit-content;
306
+ }
307
+
308
+ .astryx-table__group-chevron[data-pinned] {
309
+ position: sticky;
310
+ inset-inline-start: var(--astryx-spacing-1, 4px);
311
+ z-index: 1;
312
+ }
313
+
314
+ .astryx-table__group-chevron,
315
+ .astryx-table__expander {
316
+ display: inline-flex;
317
+ flex: none;
318
+ align-items: center;
319
+ justify-content: center;
320
+ margin: 0;
321
+ padding: 0;
322
+ border: 0;
323
+ background: transparent;
324
+ color: var(--astryx-color-icon-secondary, light-dark(#737373, #a3a3a3));
325
+ cursor: pointer;
326
+ }
327
+
328
+ .astryx-table__group-chevron {
329
+ color: var(--astryx-color-icon-secondary, light-dark(#737373, #a3a3a3));
330
+ }
331
+
332
+ .astryx-table__expander {
333
+ width: 24px;
334
+ height: 24px;
335
+ border-radius: var(--astryx-radius-inner, 0.375rem);
336
+ transition: color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
337
+ }
338
+
339
+ @media (hover: hover) {
340
+ .astryx-table__group-chevron:hover,
341
+ .astryx-table__expander:hover {
342
+ color: var(--astryx-color-icon-primary, light-dark(#171717, #fafafa));
343
+ }
344
+
345
+ .astryx-table__expander:hover {
346
+ background-image: linear-gradient(var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d)), var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d)));
347
+ }
348
+ }
349
+
350
+ .astryx-table__chevron-icon {
351
+ display: inline-flex;
352
+ transition: transform var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
353
+ }
354
+
355
+ .astryx-table__chevron-icon.is-expanded {
356
+ transform: rotate(90deg);
357
+ }
358
+
359
+ [dir='rtl'] .astryx-table__chevron-icon {
360
+ transform: scaleX(-1);
361
+ }
362
+
363
+ [dir='rtl'] .astryx-table__chevron-icon.is-expanded {
364
+ transform: scaleX(-1) rotate(90deg);
365
+ }
366
+
367
+ .astryx-table__group-label {
368
+ font-weight: var(--astryx-font-weight-semibold, 600);
369
+ color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
370
+ }
371
+
372
+ .astryx-table__group-count {
373
+ font-weight: var(--astryx-font-weight-normal, 400);
374
+ color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
375
+ }
376
+
377
+ .astryx-table__tree {
378
+ padding-inline-start: calc(var(--astryx-table-tree-level, 0) * var(--astryx-table-tree-step, var(--astryx-spacing-4, 16px)));
379
+ }
380
+
381
+ .astryx-table__tree-spacer {
382
+ flex: none;
383
+ width: 24px;
384
+ height: 24px;
385
+ }
386
+
387
+ .astryx-table__tree-label {
388
+ min-width: 0;
389
+ }
390
+
391
+ .astryx-table :is(th, td)[data-column='__expansion'] {
392
+ width: 40px;
393
+ min-width: 40px;
394
+ max-width: 40px;
395
+ padding-inline-start: 0;
396
+ padding-inline-end: 0;
397
+ }
398
+
399
+ .astryx-table[data-density='compact'] .astryx-table__expander--column {
400
+ margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-2, 8px));
401
+ }
402
+
403
+ .astryx-table[data-density='balanced'] .astryx-table__expander--column {
404
+ margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-3, 12px));
405
+ }
406
+
407
+ .astryx-table[data-density='spacious'] .astryx-table__expander--column {
408
+ margin-inline-start: calc((40px - min(var(--astryx-spacing-6, 24px), 40px)) / 2 - var(--astryx-spacing-4, 16px));
409
+ }
410
+
411
+ .astryx-table[data-dividers='rows'] tbody tr[data-expanded] > td,
412
+ .astryx-table[data-dividers='grid'] tbody tr[data-expanded] > td {
413
+ border-bottom-width: 0;
414
+ }
415
+
416
+ .astryx-table__panel-row[data-variant='muted'] {
417
+ background: var(--astryx-color-background-muted, light-dark(#f1f1f1, #1b1b1b));
418
+ }
419
+
420
+ .astryx-table__panel {
421
+ max-width: none;
422
+ padding-inline-end: var(--astryx-spacing-5, 20px);
423
+ padding-block: var(--astryx-spacing-4, 16px);
424
+ }
425
+
426
+ .astryx-table[data-density='compact'] .astryx-table__panel {
427
+ padding-inline-start: calc(40px + var(--astryx-spacing-2, 8px));
428
+ }
429
+
430
+ .astryx-table[data-density='balanced'] .astryx-table__panel {
431
+ padding-inline-start: calc(40px + var(--astryx-spacing-3, 12px));
432
+ }
433
+
434
+ .astryx-table[data-density='spacious'] .astryx-table__panel {
435
+ padding-inline-start: calc(40px + var(--astryx-spacing-4, 16px));
436
+ }
437
+
438
+ .astryx-table[data-dividers='rows'] .astryx-table__panel,
439
+ .astryx-table[data-dividers='grid'] .astryx-table__panel {
440
+ border-bottom: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
441
+ }
442
+
443
+ .astryx-table tbody tr:last-child > .astryx-table__panel {
444
+ border-bottom-width: 0;
445
+ }
446
+
447
+ .astryx-table__row-index {
448
+ font-family: var(--astryx-font-family-code, ui-monospace, monospace);
449
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
450
+ font-variant-numeric: tabular-nums;
451
+ color: var(--astryx-color-text-secondary, light-dark(#525252, #a3a3a3));
452
+ }
453
+
454
+ .astryx-table__status {
455
+ display: flex;
456
+ align-items: center;
457
+ justify-content: center;
458
+ }
459
+
460
+ .astryx-table__status-dot {
461
+ flex: none;
462
+ width: 8px;
463
+ height: 8px;
464
+ border-radius: 50%;
465
+ }
466
+
467
+ .astryx-table__sticky {
468
+ position: sticky;
469
+ background-color: var(--table-sticky-background, var(--astryx-color-background-card, #fff));
470
+ background-clip: padding-box;
471
+ overflow: visible;
472
+ }
473
+
474
+ .astryx-table__sticky::before {
475
+ content: '';
476
+ position: absolute;
477
+ inset: 0;
478
+ z-index: -1;
479
+ pointer-events: none;
480
+ background-color: var(--table-row-overlay, transparent);
481
+ transition: background-color var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
482
+ }
483
+
484
+ .astryx-table__sticky--start::after,
485
+ .astryx-table__sticky--end::after {
486
+ content: '';
487
+ position: absolute;
488
+ top: 0;
489
+ bottom: 0;
490
+ width: 6px;
491
+ pointer-events: none;
492
+ transition: opacity 150ms ease;
493
+ }
494
+
495
+ .astryx-table__sticky--start::after {
496
+ inset-inline-end: 0;
497
+ transform: translateX(100%);
498
+ opacity: var(--table-sticky-shadow-start, 0);
499
+ background-image: linear-gradient(to right, var(--astryx-color-shadow, #0000001a), transparent);
500
+ }
501
+
502
+ .astryx-table__sticky--end::after {
503
+ inset-inline-start: 0;
504
+ transform: translateX(-100%);
505
+ opacity: var(--table-sticky-shadow-end, 0);
506
+ background-image: linear-gradient(to left, var(--astryx-color-shadow, #0000001a), transparent);
507
+ }
508
+
509
+ [dir='rtl'] .astryx-table__sticky--start::after {
510
+ transform: translateX(-100%);
511
+ background-image: linear-gradient(to left, var(--astryx-color-shadow, #0000001a), transparent);
512
+ }
513
+
514
+ [dir='rtl'] .astryx-table__sticky--end::after {
515
+ transform: translateX(100%);
516
+ background-image: linear-gradient(to right, var(--astryx-color-shadow, #0000001a), transparent);
517
+ }
518
+
519
+ .astryx-table-menu {
520
+ position: fixed;
521
+ z-index: var(--astryx-popover-z-index, 1000);
522
+ min-width: 10rem;
523
+ padding: var(--astryx-spacing-1, 4px);
524
+ border: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
525
+ border-radius: var(--astryx-radius-element, 0.625rem);
526
+ background: var(--astryx-color-background-card, #fff);
527
+ box-shadow: var(--astryx-popover-shadow, 0 4px 8px #0000001a);
528
+ }
529
+
530
+ .astryx-table-menu__item {
531
+ display: flex;
532
+ align-items: center;
533
+ gap: var(--astryx-spacing-2, 8px);
534
+ width: 100%;
535
+ margin: 0;
536
+ padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
537
+ border: 0;
538
+ border-radius: var(--astryx-radius-inner, 0.375rem);
539
+ background: transparent;
540
+ color: inherit;
541
+ font: inherit;
542
+ text-align: start;
543
+ cursor: pointer;
544
+ }
545
+
546
+ .astryx-table-menu__item:hover,
547
+ .astryx-table-menu__item:focus-visible {
548
+ background: var(--astryx-color-overlay-hover, light-dark(#0000000d, #ffffff0d));
549
+ }
550
+
551
+ @media (prefers-reduced-motion: reduce) {
552
+ .astryx-table__chevron-icon,
553
+ .astryx-table__sticky::before,
554
+ .astryx-table__sticky--start::after,
555
+ .astryx-table__sticky--end::after {
556
+ transition: none;
557
+ }
558
+ }
256
559
  }
@@ -18,6 +18,23 @@
18
18
  transition: border-color 130ms cubic-bezier(0.24, 1, 0.4, 1);
19
19
  }
20
20
 
21
+ .astryx-text-area-count {
22
+ position: absolute;
23
+ right: var(--astryx-spacing-2, 8px);
24
+ bottom: var(--astryx-spacing-1, 4px);
25
+ font-size: 0.75rem;
26
+ line-height: 1;
27
+ color: var(--astryx-color-text-secondary, #525252);
28
+ }
29
+
30
+ .astryx-text-area-count[data-over='true'] {
31
+ color: var(--astryx-input-error, #e33f4a);
32
+ }
33
+
34
+ .astryx-text-area:has(.astryx-text-area-count) {
35
+ padding-bottom: var(--astryx-spacing-5, 20px);
36
+ }
37
+
21
38
  .astryx-text-area[data-size='sm'] {
22
39
  min-height: var(--astryx-text-area-min-height-sm, 64px);
23
40
  padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
@@ -82,6 +82,11 @@
82
82
  height: 16px;
83
83
  }
84
84
 
85
+ .astryx-text-input-end > .astryx-icon {
86
+ width: 16px;
87
+ height: 16px;
88
+ }
89
+
85
90
  .astryx-text-input > .astryx-field-icon {
86
91
  color: var(--astryx-input-status-color);
87
92
  }
package/styles/toast.css CHANGED
@@ -155,6 +155,13 @@
155
155
  overflow-wrap: anywhere;
156
156
  }
157
157
 
158
+ .astryx-toast__end {
159
+ display: flex;
160
+ flex-shrink: 0;
161
+ align-items: center;
162
+ gap: var(--astryx-spacing-2, 8px);
163
+ }
164
+
158
165
  .astryx-toast__close {
159
166
  display: inline-flex;
160
167
  align-items: center;
@@ -47,6 +47,17 @@
47
47
  min-width: 0;
48
48
  }
49
49
 
50
+ /*
51
+ * The start slot is a row. A title stack inside it is another row whose
52
+ * column of text would otherwise shrink to its longest word (min-content)
53
+ * and stack one word per line. Give those stacks the slot's width instead.
54
+ */
55
+ .astryx-toolbar__slot--start > *,
56
+ .astryx-toolbar__slot--start .astryx-stack {
57
+ max-width: 100%;
58
+ min-width: 0;
59
+ }
60
+
50
61
  .astryx-toolbar__slot--center { justify-content: center; overflow: hidden; }
51
62
  .astryx-toolbar__slot--end { justify-content: flex-end; margin-inline-start: auto; }
52
63
  .astryx-toolbar--centered .astryx-toolbar__slot--end { margin-inline-start: 0; }
package/styles.css CHANGED
@@ -58,6 +58,7 @@
58
58
  @import './styles/overflow-list.css';
59
59
  @import './styles/overlay.css';
60
60
  @import './styles/popover.css';
61
+ @import './styles/power-search.css';
61
62
  @import './styles/progress-bar.css';
62
63
  @import './styles/radio.css';
63
64
  @import './styles/resize-handle.css';
@@ -1,136 +0,0 @@
1
- import { n as AvatarGroupContext, t as resolveSize } from "./utils-C9r3UD_y.js";
2
- import { computed, createCommentVNode, createElementBlock, createElementVNode, defineComponent, inject, mergeProps, normalizeStyle, openBlock, ref, renderSlot, toDisplayString, unref } from "vue";
3
- import "../styles/avatar.css";
4
- //#region src/Avatar/Avatar.vue
5
- const _hoisted_1$1 = { class: "astryx-avatar__content" };
6
- const _hoisted_2 = ["src"];
7
- const _hoisted_3 = ["src"];
8
- const _hoisted_4 = {
9
- key: 0,
10
- class: "astryx-avatar__status"
11
- };
12
- const INITIALS_FONT_SIZE_RATIO = 16 / 36;
13
- const DEFAULT_ICON_RATIO = .6;
14
- const _sfc_main$1 = /*@__PURE__*/ defineComponent({
15
- __name: "Avatar",
16
- props: {
17
- alt: {},
18
- fallbackSrc: {},
19
- name: {},
20
- size: { default: "md" },
21
- shape: { default: "circle" },
22
- src: {}
23
- },
24
- emits: ["error"],
25
- setup(__props, { emit: __emit }) {
26
- const props = __props;
27
- const emit = __emit;
28
- const erroredSrc = ref(void 0);
29
- const erroredFallbackSrc = ref(void 0);
30
- const avatarGroup = inject(AvatarGroupContext, void 0);
31
- const resolvedSize = computed(() => avatarGroup?.size.value ?? props.size);
32
- const resolvedShape = computed(() => avatarGroup?.shape.value ?? props.shape);
33
- const numericSize = computed(() => resolveSize(resolvedSize.value));
34
- const groupStyle = computed(() => {
35
- if (!avatarGroup) return {};
36
- return {
37
- marginInlineStart: `${-avatarGroup.overlap.value}px`,
38
- borderWidth: "2px"
39
- };
40
- });
41
- const rootStyle = computed(() => ({
42
- width: `${numericSize.value}px`,
43
- height: `${numericSize.value}px`
44
- }));
45
- const showImage = computed(() => props.src && erroredSrc.value !== props.src);
46
- const showFallbackImage = computed(() => !showImage.value && props.fallbackSrc && erroredFallbackSrc.value !== props.fallbackSrc);
47
- const meaningfulName = computed(() => {
48
- return typeof props.name === "string" && props.name.trim() !== "" ? props.name.trim() : void 0;
49
- });
50
- const meaningfulAlt = computed(() => {
51
- return typeof props.alt === "string" && props.alt.trim() !== "" ? props.alt.trim() : void 0;
52
- });
53
- const initials = computed(() => {
54
- if (!meaningfulName.value) return "";
55
- const words = meaningfulName.value.split(/\s+/);
56
- const first = words.at(0);
57
- const last = words.length > 1 ? words.at(-1) : void 0;
58
- const initial = (word) => {
59
- if (!word) return "";
60
- const match = word.match(/[\p{L}\p{N}]/u);
61
- return match ? match[0].toUpperCase() : "";
62
- };
63
- return `${initial(first)}${initial(last)}`;
64
- });
65
- const showInitials = computed(() => !showImage.value && !showFallbackImage.value && initials.value !== "");
66
- const showIcon = computed(() => !showImage.value && !showFallbackImage.value && initials.value === "");
67
- const accessibleName = computed(() => {
68
- return meaningfulAlt.value || meaningfulName.value;
69
- });
70
- const a11yProps = computed(() => {
71
- if (accessibleName.value) return {
72
- "role": "img",
73
- "aria-label": accessibleName.value
74
- };
75
- return {
76
- "role": "presentation",
77
- "aria-hidden": "true"
78
- };
79
- });
80
- function handleImageError(event) {
81
- if (props.src) erroredSrc.value = props.src;
82
- emit("error", event);
83
- }
84
- function handleFallbackError() {
85
- if (props.fallbackSrc) erroredFallbackSrc.value = props.fallbackSrc;
86
- }
87
- return (_ctx, _cache) => {
88
- return openBlock(), createElementBlock("span", mergeProps({
89
- class: ["astryx-avatar", [`astryx-avatar--${resolvedShape.value}`, { "astryx-avatar--group-item": unref(avatarGroup) }]],
90
- style: [rootStyle.value, groupStyle.value]
91
- }, a11yProps.value), [createElementVNode("span", _hoisted_1$1, [showImage.value ? (openBlock(), createElementBlock("img", {
92
- key: 0,
93
- class: "astryx-avatar__image",
94
- src: __props.src,
95
- alt: "",
96
- onError: handleImageError
97
- }, null, 40, _hoisted_2)) : showFallbackImage.value ? (openBlock(), createElementBlock("img", {
98
- key: 1,
99
- class: "astryx-avatar__image",
100
- src: __props.fallbackSrc,
101
- alt: "",
102
- onError: handleFallbackError
103
- }, null, 40, _hoisted_3)) : showInitials.value ? (openBlock(), createElementBlock("span", {
104
- key: 2,
105
- class: "astryx-avatar__fallback astryx-avatar__fallback--initials",
106
- style: normalizeStyle({ fontSize: `${numericSize.value * INITIALS_FONT_SIZE_RATIO}px` })
107
- }, toDisplayString(initials.value), 5)) : showIcon.value ? (openBlock(), createElementBlock("span", {
108
- key: 3,
109
- class: "astryx-avatar__fallback astryx-avatar__fallback--icon",
110
- style: normalizeStyle({ fontSize: `${numericSize.value * DEFAULT_ICON_RATIO}px` })
111
- }, [renderSlot(_ctx.$slots, "default", {}, () => [_cache[0] || (_cache[0] = createElementVNode("svg", {
112
- viewBox: "0 0 24 24",
113
- fill: "currentColor",
114
- "aria-hidden": "true"
115
- }, [createElementVNode("path", { d: "M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z" })], -1))])], 4)) : createCommentVNode("v-if", true)]), _ctx.$slots.status ? (openBlock(), createElementBlock("span", _hoisted_4, [renderSlot(_ctx.$slots, "status")])) : createCommentVNode("v-if", true)], 16);
116
- };
117
- }
118
- });
119
- //#endregion
120
- //#region src/Avatar/AvatarStatusDot.vue
121
- const _hoisted_1 = ["data-variant"];
122
- const _sfc_main = /*@__PURE__*/ defineComponent({
123
- __name: "AvatarStatusDot",
124
- props: { variant: { default: "neutral" } },
125
- setup(__props) {
126
- return (_ctx, _cache) => {
127
- return openBlock(), createElementBlock("span", {
128
- class: "astryx-avatar-status-dot",
129
- "data-variant": __props.variant,
130
- "aria-hidden": "true"
131
- }, null, 8, _hoisted_1);
132
- };
133
- }
134
- });
135
- //#endregion
136
- export { _sfc_main$1 as n, _sfc_main as t };
@@ -1,19 +0,0 @@
1
- import { createElementBlock, defineComponent, openBlock, renderSlot } from "vue";
2
- import "../styles/badge.css";
3
- //#region src/Badge/Badge.vue
4
- const _hoisted_1 = ["data-variant"];
5
- const _sfc_main = /*@__PURE__*/ defineComponent({
6
- name: "Badge",
7
- __name: "Badge",
8
- props: { variant: { default: "neutral" } },
9
- setup(__props) {
10
- return (_ctx, _cache) => {
11
- return openBlock(), createElementBlock("span", {
12
- class: "astryx-badge",
13
- "data-variant": __props.variant
14
- }, [renderSlot(_ctx.$slots, "icon"), renderSlot(_ctx.$slots, "default")], 8, _hoisted_1);
15
- };
16
- }
17
- });
18
- //#endregion
19
- export { _sfc_main as t };