@astryx-vue/core 0.2.1 → 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 (174) hide show
  1. package/dist/AppShell/index.js +1 -1
  2. package/dist/{AppShell-1wNIEtK_.js → AppShell-Cb41gIAj.js} +2 -2
  3. package/dist/AvatarGroup/index.d.ts +1 -1
  4. package/dist/Badge/index.d.ts +2 -1
  5. package/dist/Banner/index.d.ts +1 -1
  6. package/dist/Breadcrumbs/index.js +1 -1
  7. package/dist/{Breadcrumbs-C97HmjkC.js → Breadcrumbs-CTQ7fjDn.js} +2 -2
  8. package/dist/Button/index.d.ts +1 -1
  9. package/dist/ButtonGroup/index.d.ts +1 -1
  10. package/dist/Calendar/index.js +1 -1
  11. package/dist/{Calendar-DqC3EDN1.js → Calendar-BFaI5AMv.js} +1 -1
  12. package/dist/Carousel/index.js +1 -1
  13. package/dist/{Carousel-BGUnskjo.js → Carousel-X0cuQkvg.js} +2 -2
  14. package/dist/Chat/index.d.ts +2 -2
  15. package/dist/Chat/index.js +2 -2
  16. package/dist/Chat-M0tiGrNT.js +3148 -0
  17. package/dist/CheckboxInput/index.d.ts +1 -1
  18. package/dist/CheckboxList/index.d.ts +1 -1
  19. package/dist/Citation/index.js +1 -1
  20. package/dist/{Citation-DunoAqVH.js → Citation-C1veUk5p.js} +2 -2
  21. package/dist/ClickableCard/index.d.ts +1 -1
  22. package/dist/Code/index.js +1 -1
  23. package/dist/{CodeBlock-CAF-VJnh.js → CodeBlock-DesTJAkm.js} +1 -1
  24. package/dist/Collapsible/index.js +1 -1
  25. package/dist/{Collapsible-DvMiYJp7.js → Collapsible-BestK35V.js} +1 -1
  26. package/dist/CommandPalette/index.js +1 -1
  27. package/dist/{CommandPalette-xfm9ldUI.js → CommandPalette-BArt97V8.js} +1 -1
  28. package/dist/ComplexSelector/index.d.ts +1 -1
  29. package/dist/ComplexSelector/index.js +1 -1
  30. package/dist/{ComplexSelector-B6lBTRhP.js → ComplexSelector-CAoig1RK.js} +2 -2
  31. package/dist/ContextMenu/index.d.ts +1 -1
  32. package/dist/ContextMenu/index.js +1 -1
  33. package/dist/{ContextMenu-DUkED3Z3.js → ContextMenu-9Im6i43E.js} +1 -1
  34. package/dist/DateInput/index.d.ts +1 -1
  35. package/dist/DateInput/index.js +1 -1
  36. package/dist/{DateInput-Crcg-CCj.js → DateInput-BLocxqC3.js} +2 -2
  37. package/dist/DateRangeInput/index.d.ts +1 -1
  38. package/dist/DateRangeInput/index.js +1 -1
  39. package/dist/{DateRangeInput-e9KSxBBK.js → DateRangeInput-DwDy3eRo.js} +2 -2
  40. package/dist/DateTimeInput/index.d.ts +1 -1
  41. package/dist/DateTimeInput/index.js +1 -1
  42. package/dist/{DateTimeInput-fSOfuLex.js → DateTimeInput-BYiaC9bn.js} +3 -3
  43. package/dist/Divider/index.d.ts +1 -1
  44. package/dist/DropdownMenu/index.js +2 -2
  45. package/dist/{DropdownMenu-XvW4BJob.js → DropdownMenu-Ddfr-aEC.js} +2 -2
  46. package/dist/{DropdownMenu-8G0B1UND.js → DropdownMenu-Dh-WAHKb.js} +1 -1
  47. package/dist/FileInput/index.d.ts +1 -1
  48. package/dist/FileInput/index.js +1 -1
  49. package/dist/{FileInput-D-fchyQH.js → FileInput-DLO6V12n.js} +2 -2
  50. package/dist/Icon/index.d.ts +2 -2
  51. package/dist/Icon/index.js +1 -1
  52. package/dist/{Icon-Bku25g_K.js → Icon-CJKjdJy-.js} +6 -1
  53. package/dist/Lightbox/index.js +1 -1
  54. package/dist/{Lightbox-uuVGgHxW.js → Lightbox-CdFCS_EA.js} +2 -2
  55. package/dist/List/index.d.ts +1 -1
  56. package/dist/Markdown/index.js +1 -1
  57. package/dist/{Markdown-DLICa3db.js → Markdown-BqKloI3w.js} +2 -2
  58. package/dist/MetadataList/index.d.ts +1 -1
  59. package/dist/MetadataList/index.js +1 -1
  60. package/dist/{MetadataList-h492rqEN.js → MetadataList-CvZkmisf.js} +1 -1
  61. package/dist/MobileNav/index.js +1 -1
  62. package/dist/{MobileNavToggle-BMj3Wtuq.js → MobileNavToggle-Bwi0qXXM.js} +1 -1
  63. package/dist/MoreMenu/index.d.ts +1 -1
  64. package/dist/MoreMenu/index.js +1 -1
  65. package/dist/{MoreMenu-DkYi5az5.js → MoreMenu-BwJaJrkB.js} +1 -1
  66. package/dist/MultiSelector/index.d.ts +1 -1
  67. package/dist/MultiSelector/index.js +1 -1
  68. package/dist/{MultiSelector-C2IS-EaU.js → MultiSelector-C-ETfFy_.js} +2 -2
  69. package/dist/NavItem/index.d.ts +1 -1
  70. package/dist/NumberInput/index.d.ts +1 -1
  71. package/dist/NumberInput/index.js +1 -1
  72. package/dist/{NumberInput-CjfAsFwj.js → NumberInput-DjetVB8O.js} +1 -1
  73. package/dist/Outline/index.js +1 -1
  74. package/dist/{Outline-BTmrtvXR.js → Outline-Bz9c-u5y.js} +1 -1
  75. package/dist/OverflowList/index.d.ts +1 -1
  76. package/dist/OverflowList/index.js +1 -1
  77. package/dist/{OverflowList-CRE8BE7V.js → OverflowList-ED-KN9Y5.js} +1 -1
  78. package/dist/Pagination/index.js +1 -1
  79. package/dist/{Pagination-BpGXPmc7.js → Pagination-Cb66HMEf.js} +2 -2
  80. package/dist/PowerSearch/index.d.ts +2 -0
  81. package/dist/PowerSearch/index.js +2 -0
  82. package/dist/PowerSearch-CjU8y4mi.js +2386 -0
  83. package/dist/Radio/index.d.ts +1 -1
  84. package/dist/RadioList/index.d.ts +1 -1
  85. package/dist/Resizable/index.d.ts +1 -1
  86. package/dist/Resizable/index.js +1 -1
  87. package/dist/{Resizable-CE8XQDL2.js → Resizable-D-TBCg0Y.js} +1 -1
  88. package/dist/ScrollableArea/index.d.ts +1 -1
  89. package/dist/SegmentedControl/index.d.ts +1 -1
  90. package/dist/SelectableCard/index.d.ts +1 -1
  91. package/dist/Selector/index.d.ts +1 -1
  92. package/dist/Selector/index.js +1 -1
  93. package/dist/{Selector-DkJOLZSR.js → Selector-DE2IEFML.js} +1 -1
  94. package/dist/SideNav/index.d.ts +1 -1
  95. package/dist/SideNav/index.js +1 -1
  96. package/dist/{SideNav-DcDWBnXJ.js → SideNav-DonEfiAx.js} +2 -2
  97. package/dist/Stepper/index.d.ts +1 -1
  98. package/dist/Stepper/index.js +1 -1
  99. package/dist/{Stepper-DZKaqEoz.js → Stepper-D2ZIcUNx.js} +1 -1
  100. package/dist/Switch/index.d.ts +1 -1
  101. package/dist/TabList/index.js +1 -1
  102. package/dist/{TabList-hm06QPiW.js → TabList-D3F-stq-.js} +1 -1
  103. package/dist/Table/index.d.ts +3 -3
  104. package/dist/Table/index.js +2 -2
  105. package/dist/Table-CrP2Uffq.js +1982 -0
  106. package/dist/TextArea/index.d.ts +1 -1
  107. package/dist/TextInput/index.d.ts +1 -1
  108. package/dist/Thumbnail/index.js +1 -1
  109. package/dist/{Thumbnail-CAOYds8t.js → Thumbnail-BC5JGPGZ.js} +2 -2
  110. package/dist/{TimeField-BGbxCoKU.js → TimeField-DpHFrNv0.js} +2 -2
  111. package/dist/TimeInput/index.d.ts +1 -1
  112. package/dist/TimeInput/index.js +1 -1
  113. package/dist/{TimeInput-DJP3l4ZS.js → TimeInput-DJLV0_4z.js} +1 -1
  114. package/dist/Timestamp/index.d.ts +1 -1
  115. package/dist/Timestamp/index.js +1 -1
  116. package/dist/{Timestamp-BzRp8uWc.js → Timestamp-GKNjjt5g.js} +3 -3
  117. package/dist/ToggleButton/index.d.ts +1 -1
  118. package/dist/Token/index.js +1 -1
  119. package/dist/{Token-CjocuhzE.js → Token-Chu_eCVs.js} +1 -1
  120. package/dist/Tokenizer/index.js +1 -1
  121. package/dist/{Tokenizer-mYES5SPM.js → Tokenizer-DRDpvQ_l.js} +3 -3
  122. package/dist/Toolbar/index.d.ts +1 -1
  123. package/dist/TopNav/index.d.ts +1 -1
  124. package/dist/TopNav/index.js +1 -1
  125. package/dist/{TopNav-C2t6JkZb.js → TopNav-CEyWddtA.js} +3 -3
  126. package/dist/TreeList/index.d.ts +1 -1
  127. package/dist/TreeList/index.js +1 -1
  128. package/dist/{TreeList-THJ0KamE.js → TreeList-COS8US8e.js} +2 -2
  129. package/dist/Typeahead/index.js +1 -1
  130. package/dist/{Typeahead-D7VnvRpK.js → Typeahead-P7cCqtaQ.js} +3 -3
  131. package/dist/{useTypeaheadMenu-Ba7XpcZl.js → TypeaheadMenu-CGvo0Tud.js} +107 -107
  132. package/dist/composables/index.d.ts +3 -3
  133. package/dist/{context-DzcK4T_C.js → context-CiKncNSH.js} +180 -4
  134. package/dist/{index-SMh42NI8.d.ts → index-B1TG2GPS.d.ts} +2 -2
  135. package/dist/index-B9WzWqzk.d.ts +18 -0
  136. package/dist/{index-Z_onS2lR.d.ts → index-C7mxUcDR.d.ts} +2 -2
  137. package/dist/{index-cG1E0U2s.d.ts → index-CVn0GBdB.d.ts} +1 -1
  138. package/dist/{index-DnEh-HA0.d.ts → index-C_2Z65Rp.d.ts} +1 -1
  139. package/dist/{index-DXSs3rwa.d.ts → index-CngORuiq.d.ts} +137 -2
  140. package/dist/index-Cs5pcwY3.d.ts +416 -0
  141. package/dist/{index-DnSrjbjP.d.ts → index-D-ZuubCK.d.ts} +1 -1
  142. package/dist/{index-DAiGhkNZ.d.ts → index-D4I_obqR.d.ts} +1 -1
  143. package/dist/{index-I4J7gwa1.d.ts → index-DGXviOlp.d.ts} +1 -1
  144. package/dist/{index-BLOEjvaM.d.ts → index-DN7MXPHM.d.ts} +1 -1
  145. package/dist/{index-DeOftUMq.d.ts → index-DNRBbwp_.d.ts} +37 -36
  146. package/dist/{index-DQAnGHu7.d.ts → index-DOUEn7V0.d.ts} +2 -2
  147. package/dist/{index-CBym0hSq.d.ts → index-DWH_HzXi.d.ts} +1 -1
  148. package/dist/{index-Byar3h1e.d.ts → index-HV6W3xCx.d.ts} +1 -1
  149. package/dist/{index-D2bSSSBP.d.ts → index-fa72tWIU.d.ts} +1 -1
  150. package/dist/{index-COxy6LEW.d.ts → index-gW0HW02U.d.ts} +1 -1
  151. package/dist/index-kVhSuA9t.d.ts +902 -0
  152. package/dist/{index-1uRMrk63.d.ts → index-nCEmW6wa.d.ts} +1 -1
  153. package/dist/{index-Clmz00IK.d.ts → index-qiZtHnGK.d.ts} +24 -0
  154. package/dist/{index-3p2BDVHq.d.ts → index-u5ozu0G7.d.ts} +2 -2
  155. package/dist/{index-NOXYEdOI.d.ts → index-utZGF4GR.d.ts} +1 -1
  156. package/dist/index.d.ts +73 -71
  157. package/dist/index.js +106 -98
  158. package/dist/locale/index.d.ts +1 -1
  159. package/dist/locale/index.js +1 -1
  160. package/dist/power-search-DrDfcoL1.d.ts +68 -0
  161. package/dist/{types-JktRxujg.d.ts → types-Cp4liug-.d.ts} +66 -3
  162. package/dist/types-DIYwbkpe.d.ts +33 -0
  163. package/dist/{types-BKcxXW--.d.ts → types-pnljWjEE.d.ts} +1 -1
  164. package/dist/{useResizable-CeESZS1v.d.ts → useResizable-CUoNPmUw.d.ts} +1 -1
  165. package/package.json +5 -1
  166. package/styles/chat.css +469 -1
  167. package/styles/icon.css +20 -0
  168. package/styles/power-search.css +303 -0
  169. package/styles/table.css +304 -1
  170. package/styles.css +1 -0
  171. package/dist/Chat-DCjXRiOF.js +0 -1051
  172. package/dist/Table-DwehtMap.js +0 -967
  173. package/dist/index-CuFLztiI.d.ts +0 -49
  174. package/dist/index-DJo-BmXZ.d.ts +0 -431
@@ -0,0 +1,303 @@
1
+ @layer astryx.reset, astryx.tokens, astryx.base, astryx.components, astryx.overrides;
2
+
3
+ @layer astryx.components {
4
+ .astryx-field.astryx-power-search {
5
+ position: relative;
6
+ width: var(--astryx-field-width, 100%);
7
+ max-width: 100%;
8
+ min-width: 0;
9
+ }
10
+
11
+ .astryx-power-search-control {
12
+ box-sizing: border-box;
13
+ position: relative;
14
+ display: flex;
15
+ flex-wrap: wrap;
16
+ align-items: center;
17
+ gap: var(--astryx-spacing-1, 4px);
18
+ width: 100%;
19
+ min-width: 0;
20
+ min-height: var(--astryx-input-height-md, 32px);
21
+ padding: var(--astryx-spacing-1, 4px);
22
+ border: var(--astryx-border-width, 1px) solid var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4));
23
+ border-radius: var(--astryx-radius-element, 0.625rem);
24
+ background: var(--astryx-input-background, #fff);
25
+ color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
26
+ font-family: var(--astryx-font-family-body, Figtree, sans-serif);
27
+ font-size: var(--astryx-text-body-size, 0.875rem);
28
+ line-height: var(--astryx-text-body-leading, 1.4286);
29
+ cursor: text;
30
+ transition:
31
+ border-color var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1)),
32
+ box-shadow var(--astryx-duration-fast-max, 165ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
33
+ }
34
+
35
+ .astryx-power-search.size-sm .astryx-power-search-control {
36
+ min-height: var(--astryx-input-height-sm, 28px);
37
+ }
38
+
39
+ .astryx-power-search.size-lg .astryx-power-search-control {
40
+ min-height: var(--astryx-input-height-lg, 36px);
41
+ }
42
+
43
+ .astryx-power-search-control.is-floating {
44
+ position: absolute;
45
+ z-index: 2;
46
+ inset-inline: 0;
47
+ top: 0;
48
+ height: auto;
49
+ box-shadow: var(--astryx-popover-shadow, 0 4px 8px #0000001a);
50
+ }
51
+
52
+ @media (hover: hover) {
53
+ .astryx-power-search-control:hover:not(.is-disabled):not(:focus-within) {
54
+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-input-border, #d4d4d4)) 30%, transparent);
55
+ }
56
+ }
57
+
58
+ .astryx-power-search-control:focus-within,
59
+ .astryx-power-search-control.is-open {
60
+ border-color: var(--astryx-input-status-color, var(--astryx-input-focus, #262626));
61
+ box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--astryx-input-status-color, var(--astryx-input-focus, #262626)) 15%, transparent);
62
+ }
63
+
64
+ .astryx-power-search-control.is-disabled {
65
+ cursor: default;
66
+ opacity: 0.5;
67
+ }
68
+
69
+ .astryx-power-search-control.status-error {
70
+ --astryx-input-status-color: var(--astryx-input-error, #e33f4a);
71
+ }
72
+
73
+ .astryx-power-search-control.status-warning {
74
+ --astryx-input-status-color: var(--astryx-input-warning, #a67a00);
75
+ }
76
+
77
+ .astryx-power-search-control.status-success {
78
+ --astryx-input-status-color: var(--astryx-input-success, #198100);
79
+ }
80
+
81
+ .astryx-power-search-icon,
82
+ .astryx-power-search-clear {
83
+ display: inline-flex;
84
+ flex: none;
85
+ align-items: center;
86
+ color: var(--astryx-color-text-secondary, #525252);
87
+ }
88
+
89
+ .astryx-power-search-clear {
90
+ margin-inline-start: auto;
91
+ padding: 0;
92
+ border: 0;
93
+ background: transparent;
94
+ cursor: pointer;
95
+ }
96
+
97
+ .astryx-power-search-tokens {
98
+ display: flex;
99
+ flex: 1 1 auto;
100
+ flex-wrap: wrap;
101
+ align-items: center;
102
+ gap: var(--astryx-spacing-1, 4px);
103
+ min-width: 0;
104
+ }
105
+
106
+ .astryx-power-search-tokens.is-collapsed {
107
+ flex-wrap: nowrap;
108
+ overflow: hidden;
109
+ }
110
+
111
+ .astryx-power-search-token {
112
+ display: inline-flex;
113
+ max-width: 100%;
114
+ outline: none;
115
+ }
116
+
117
+ .astryx-power-search-token-value {
118
+ font-weight: var(--astryx-font-weight-bold, 700);
119
+ }
120
+
121
+ .astryx-power-search-more,
122
+ .astryx-power-search-count {
123
+ flex: none;
124
+ color: var(--astryx-color-text-secondary, #525252);
125
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
126
+ line-height: var(--astryx-text-supporting-leading, 1.6667);
127
+ white-space: nowrap;
128
+ }
129
+
130
+ .astryx-power-search-measure {
131
+ position: absolute;
132
+ display: flex;
133
+ gap: var(--astryx-spacing-1, 4px);
134
+ height: 0;
135
+ overflow: hidden;
136
+ visibility: hidden;
137
+ pointer-events: none;
138
+ white-space: nowrap;
139
+ }
140
+
141
+ .astryx-power-search-input {
142
+ flex: 1 1 8rem;
143
+ min-width: 4rem;
144
+ height: var(--astryx-input-height-sm, 28px);
145
+ margin: 0;
146
+ padding: 0 var(--astryx-spacing-1, 4px);
147
+ border: 0;
148
+ background: transparent;
149
+ color: inherit;
150
+ font: inherit;
151
+ outline: none;
152
+ }
153
+
154
+ .astryx-power-search-input::placeholder {
155
+ color: var(--astryx-color-text-tertiary, #a3a3a3);
156
+ }
157
+
158
+ .astryx-power-search-placeholder {
159
+ width: 100%;
160
+ }
161
+
162
+ .astryx-power-search-menu-group {
163
+ padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
164
+ color: var(--astryx-color-text-secondary, #525252);
165
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
166
+ font-weight: var(--astryx-font-weight-semibold, 600);
167
+ }
168
+
169
+ .astryx-typeahead-option .astryx-icon {
170
+ flex: none;
171
+ color: var(--astryx-color-icon-secondary, #737373);
172
+ }
173
+
174
+ .astryx-power-search-editor {
175
+ position: fixed;
176
+ z-index: var(--astryx-popover-z-index, 1000);
177
+ box-sizing: border-box;
178
+ min-width: min(400px, calc(100vw - 16px));
179
+ max-width: min(720px, calc(100vw - 16px));
180
+ padding: var(--astryx-spacing-3, 12px);
181
+ border: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
182
+ border-radius: var(--astryx-radius-element, 0.625rem);
183
+ background: var(--astryx-color-background-card, #fff);
184
+ color: var(--astryx-color-text-primary, light-dark(#171717, #fafafa));
185
+ box-shadow: var(--astryx-popover-shadow, 0 4px 8px #0000001a);
186
+ animation: astryx-power-search-enter var(--astryx-duration-fast, 125ms) var(--astryx-ease-standard, cubic-bezier(0.24, 1, 0.4, 1));
187
+ }
188
+
189
+ .astryx-power-search-editor[data-ready='false'] {
190
+ visibility: hidden;
191
+ }
192
+
193
+ .astryx-power-search-editor-body {
194
+ display: flex;
195
+ flex-direction: column;
196
+ gap: var(--astryx-spacing-3, 12px);
197
+ }
198
+
199
+ .astryx-power-search-editor-row {
200
+ display: flex;
201
+ flex-wrap: wrap;
202
+ align-items: flex-end;
203
+ gap: var(--astryx-spacing-2, 8px);
204
+ }
205
+
206
+ .astryx-power-search-editor-row > * {
207
+ flex: 1 1 10rem;
208
+ min-width: 0;
209
+ }
210
+
211
+ .astryx-power-search-editor-value,
212
+ .astryx-power-search-value,
213
+ .astryx-power-search-value__stack,
214
+ .astryx-power-search-nested {
215
+ display: flex;
216
+ flex-direction: column;
217
+ gap: var(--astryx-spacing-2, 8px);
218
+ min-width: 0;
219
+ }
220
+
221
+ .astryx-power-search-nested-row {
222
+ display: flex;
223
+ flex-direction: column;
224
+ gap: var(--astryx-spacing-2, 8px);
225
+ }
226
+
227
+ .astryx-power-search-editor-group {
228
+ color: var(--astryx-color-text-secondary, #525252);
229
+ font-size: var(--astryx-text-supporting-size, 0.75rem);
230
+ font-weight: var(--astryx-font-weight-semibold, 600);
231
+ }
232
+
233
+ .astryx-power-search-editor-footer {
234
+ display: flex;
235
+ align-items: center;
236
+ justify-content: space-between;
237
+ gap: var(--astryx-spacing-2, 8px);
238
+ }
239
+
240
+ .astryx-power-search-editor-actions {
241
+ display: flex;
242
+ justify-content: flex-end;
243
+ gap: var(--astryx-spacing-2, 8px);
244
+ margin-inline-start: auto;
245
+ }
246
+
247
+ .astryx-power-search-presets {
248
+ display: flex;
249
+ flex-wrap: wrap;
250
+ gap: var(--astryx-spacing-1, 4px);
251
+ }
252
+
253
+ .astryx-power-search-preset,
254
+ .astryx-power-search-icon-button {
255
+ margin: 0;
256
+ border: var(--astryx-border-width, 1px) solid var(--astryx-color-border, light-dark(#ebebeb, #ffffff1a));
257
+ border-radius: var(--astryx-radius-inner, 0.375rem);
258
+ background: transparent;
259
+ color: inherit;
260
+ font: inherit;
261
+ cursor: pointer;
262
+ }
263
+
264
+ .astryx-power-search-preset {
265
+ padding: var(--astryx-spacing-1, 4px) var(--astryx-spacing-2, 8px);
266
+ }
267
+
268
+ .astryx-power-search-icon-button {
269
+ display: inline-flex;
270
+ flex: none;
271
+ align-items: center;
272
+ justify-content: center;
273
+ width: 28px;
274
+ height: 28px;
275
+ padding: 0;
276
+ }
277
+
278
+ @media (max-width: 399px) {
279
+ .astryx-power-search-editor-row > * {
280
+ flex-basis: 100%;
281
+ }
282
+ }
283
+
284
+ @keyframes astryx-power-search-enter {
285
+ from {
286
+ opacity: 0;
287
+ transform: translateY(-4px);
288
+ }
289
+
290
+ to {
291
+ opacity: 1;
292
+ transform: none;
293
+ }
294
+ }
295
+
296
+ @media (prefers-reduced-motion: reduce) {
297
+ .astryx-power-search-control,
298
+ .astryx-power-search-editor {
299
+ transition: none;
300
+ animation: none;
301
+ }
302
+ }
303
+ }
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
  }
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';