@igne-agency/react-web-ui 0.5.0 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (254) hide show
  1. package/dist/components/accordion/accordion.css +21 -21
  2. package/dist/components/accordion/accordion.d.ts +17 -4
  3. package/dist/components/accordion/accordion.js +83 -36
  4. package/dist/components/accordion/accordion.module.js +6 -6
  5. package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
  6. package/dist/components/attachment-tile/attachment-preview.js +388 -119
  7. package/dist/components/attachment-tile/attachment-tile.css +31 -25
  8. package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
  9. package/dist/components/attachment-tile/attachment-tile.js +160 -43
  10. package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
  11. package/dist/components/attachment-tile/index.d.ts +1 -1
  12. package/dist/components/avatar/avatar.css +9 -9
  13. package/dist/components/avatar/avatar.d.ts +50 -5
  14. package/dist/components/avatar/avatar.js +178 -64
  15. package/dist/components/avatar/avatar.module.js +3 -3
  16. package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
  17. package/dist/components/avatar-group/avatar-group-context.js +2 -2
  18. package/dist/components/avatar-group/avatar-group.css +26 -20
  19. package/dist/components/avatar-group/avatar-group.d.ts +85 -27
  20. package/dist/components/avatar-group/avatar-group.js +400 -246
  21. package/dist/components/avatar-group/avatar-group.module.js +8 -8
  22. package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
  23. package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
  24. package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
  25. package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
  26. package/dist/components/button/button.css +29 -31
  27. package/dist/components/button/button.d.ts +20 -16
  28. package/dist/components/button/button.js +140 -145
  29. package/dist/components/button/button.module.js +1 -1
  30. package/dist/components/button/index.js +1 -1
  31. package/dist/components/checkbox-field/checkbox-field.js +63 -49
  32. package/dist/components/checkbox-field/checkbox.css +105 -56
  33. package/dist/components/checkbox-field/checkbox.d.ts +3 -2
  34. package/dist/components/checkbox-field/checkbox.js +12 -9
  35. package/dist/components/checkbox-field/checkbox.module.js +4 -4
  36. package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
  37. package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
  38. package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
  39. package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
  40. package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
  41. package/dist/components/collapsible/collapsible.css +20 -20
  42. package/dist/components/collapsible/collapsible.d.ts +17 -4
  43. package/dist/components/collapsible/collapsible.js +83 -36
  44. package/dist/components/collapsible/collapsible.module.js +5 -5
  45. package/dist/components/combobox-field/combobox-field.js +206 -158
  46. package/dist/components/combobox-field/combobox.css +492 -277
  47. package/dist/components/combobox-field/combobox.d.ts +148 -39
  48. package/dist/components/combobox-field/combobox.js +506 -206
  49. package/dist/components/combobox-field/combobox.module.js +21 -21
  50. package/dist/components/combobox-field/value-state-view.css +5 -5
  51. package/dist/components/combobox-field/value-state-view.module.js +4 -4
  52. package/dist/components/composer/composer-attachments.d.ts +30 -11
  53. package/dist/components/composer/composer-attachments.js +45 -40
  54. package/dist/components/composer/composer-editor.css +40 -35
  55. package/dist/components/composer/composer-editor.d.ts +14 -4
  56. package/dist/components/composer/composer-editor.js +134 -44
  57. package/dist/components/composer/composer-editor.module.js +5 -5
  58. package/dist/components/composer/composer.css +22 -22
  59. package/dist/components/composer/composer.d.ts +13 -2
  60. package/dist/components/composer/composer.js +78 -63
  61. package/dist/components/composer/composer.module.js +5 -5
  62. package/dist/components/composer/index.d.ts +2 -2
  63. package/dist/components/composer/mention-text.css +5 -5
  64. package/dist/components/composer/mention-text.module.js +1 -1
  65. package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
  66. package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
  67. package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
  68. package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
  69. package/dist/components/conversation/conversation.css +52 -52
  70. package/dist/components/conversation/conversation.d.ts +43 -18
  71. package/dist/components/conversation/conversation.js +120 -78
  72. package/dist/components/conversation/conversation.module.js +15 -15
  73. package/dist/components/date-field/date-field.d.ts +1 -1
  74. package/dist/components/date-field/date-field.js +202 -100
  75. package/dist/components/date-field/date-input.d.ts +73 -37
  76. package/dist/components/date-field/date-input.js +72 -45
  77. package/dist/components/date-field/index.d.ts +1 -1
  78. package/dist/components/date-range-field/date-range-field.d.ts +1 -1
  79. package/dist/components/date-range-field/date-range-field.js +219 -107
  80. package/dist/components/date-range-field/date-range-input.d.ts +84 -40
  81. package/dist/components/date-range-field/date-range-input.js +83 -48
  82. package/dist/components/dialog/dialog.css +32 -32
  83. package/dist/components/dialog/dialog.d.ts +8 -7
  84. package/dist/components/dialog/dialog.js +8 -26
  85. package/dist/components/dialog/dialog.module.js +6 -6
  86. package/dist/components/divider/divider.css +6 -6
  87. package/dist/components/divider/divider.d.ts +36 -2
  88. package/dist/components/divider/divider.js +195 -29
  89. package/dist/components/divider/divider.module.js +3 -3
  90. package/dist/components/drawer/drawer.css +55 -56
  91. package/dist/components/drawer/drawer.d.ts +8 -7
  92. package/dist/components/drawer/drawer.js +8 -26
  93. package/dist/components/drawer/drawer.module.js +6 -6
  94. package/dist/components/field/field.css +34 -24
  95. package/dist/components/field/field.d.ts +60 -37
  96. package/dist/components/field/field.js +242 -157
  97. package/dist/components/field/field.module.js +12 -10
  98. package/dist/components/field/input-parts.d.ts +11 -13
  99. package/dist/components/field/input-parts.js +23 -42
  100. package/dist/components/field-placeholder/field-placeholder.css +6 -6
  101. package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
  102. package/dist/components/fieldset/field-group.d.ts +1 -1
  103. package/dist/components/fieldset/field-group.js +48 -42
  104. package/dist/components/fieldset/fieldset-root.d.ts +1 -1
  105. package/dist/components/fieldset/fieldset-root.js +19 -17
  106. package/dist/components/fieldset/fieldset.d.ts +2 -2
  107. package/dist/components/fieldset/fieldset.js +2 -2
  108. package/dist/components/file-field/file-field.css +126 -60
  109. package/dist/components/file-field/file-field.js +201 -109
  110. package/dist/components/file-field/file-field.module.js +4 -4
  111. package/dist/components/file-field/file-input.d.ts +66 -40
  112. package/dist/components/file-field/file-input.js +188 -132
  113. package/dist/components/filter-bar/filter-bar.css +8 -8
  114. package/dist/components/filter-bar/filter-bar.d.ts +12 -3
  115. package/dist/components/filter-bar/filter-bar.js +23 -25
  116. package/dist/components/filter-bar/filter-bar.module.js +5 -5
  117. package/dist/components/form/form.d.ts +19 -7
  118. package/dist/components/form/form.js +80 -29
  119. package/dist/components/icon/icon.css +2 -2
  120. package/dist/components/icon/icon.module.js +1 -1
  121. package/dist/components/link/link.css +6 -5
  122. package/dist/components/link/link.module.js +1 -1
  123. package/dist/components/menu/menu.css +52 -47
  124. package/dist/components/menu/menu.d.ts +32 -25
  125. package/dist/components/menu/menu.js +75 -124
  126. package/dist/components/menu/menu.module.js +8 -8
  127. package/dist/components/nav/nav-context.d.ts +1 -1
  128. package/dist/components/nav/nav-item-view.d.ts +10 -13
  129. package/dist/components/nav/nav-item-view.js +42 -54
  130. package/dist/components/nav/nav.css +150 -119
  131. package/dist/components/nav/nav.d.ts +61 -17
  132. package/dist/components/nav/nav.js +271 -176
  133. package/dist/components/nav/nav.module.js +17 -15
  134. package/dist/components/number-field/number-field.css +153 -64
  135. package/dist/components/number-field/number-field.d.ts +2 -2
  136. package/dist/components/number-field/number-field.js +112 -91
  137. package/dist/components/number-field/number-field.module.js +6 -6
  138. package/dist/components/number-field/number-input.d.ts +43 -23
  139. package/dist/components/number-field/number-input.js +179 -125
  140. package/dist/components/otp-field/otp-field.css +153 -60
  141. package/dist/components/otp-field/otp-field.d.ts +2 -2
  142. package/dist/components/otp-field/otp-field.js +62 -46
  143. package/dist/components/otp-field/otp-field.module.js +4 -4
  144. package/dist/components/otp-field/otp-input.d.ts +8 -6
  145. package/dist/components/otp-field/otp-input.js +92 -92
  146. package/dist/components/pagination/pagination.d.ts +46 -15
  147. package/dist/components/pagination/pagination.js +217 -224
  148. package/dist/components/password-field/password-field.css +23 -23
  149. package/dist/components/password-field/password-field.js +107 -85
  150. package/dist/components/password-field/password-field.module.js +8 -8
  151. package/dist/components/password-field/password-strength.d.ts +107 -3
  152. package/dist/components/password-field/password-strength.js +569 -92
  153. package/dist/components/photo-field/photo-field.js +137 -112
  154. package/dist/components/photo-field/photo-input.css +67 -44
  155. package/dist/components/photo-field/photo-input.d.ts +59 -15
  156. package/dist/components/photo-field/photo-input.js +173 -86
  157. package/dist/components/photo-field/photo-input.module.js +10 -8
  158. package/dist/components/popover/popover.css +41 -41
  159. package/dist/components/popover/popover.d.ts +66 -25
  160. package/dist/components/popover/popover.js +332 -217
  161. package/dist/components/popover/popover.module.js +15 -19
  162. package/dist/components/radio-group-field/radio-group-field.js +80 -71
  163. package/dist/components/radio-group-field/radio-group.css +112 -60
  164. package/dist/components/radio-group-field/radio-group.d.ts +19 -3
  165. package/dist/components/radio-group-field/radio-group.js +66 -23
  166. package/dist/components/radio-group-field/radio-group.module.js +4 -4
  167. package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
  168. package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
  169. package/dist/components/segmented-control-field/segmented-control.css +132 -79
  170. package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
  171. package/dist/components/segmented-control-field/segmented-control.js +124 -41
  172. package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
  173. package/dist/components/select-field/select.css +214 -101
  174. package/dist/components/select-field/select.d.ts +43 -11
  175. package/dist/components/select-field/select.js +194 -109
  176. package/dist/components/select-field/select.module.js +14 -14
  177. package/dist/components/skeleton/skeleton.css +4 -4
  178. package/dist/components/skeleton/skeleton.module.js +3 -3
  179. package/dist/components/stale/stale.css +15 -15
  180. package/dist/components/stale/stale.d.ts +27 -3
  181. package/dist/components/stale/stale.js +147 -66
  182. package/dist/components/stale/stale.module.js +6 -6
  183. package/dist/components/status-message/status-message.css +22 -22
  184. package/dist/components/status-message/status-message.module.js +6 -6
  185. package/dist/components/switch-field/switch-field.js +77 -57
  186. package/dist/components/switch-field/switch.css +112 -63
  187. package/dist/components/switch-field/switch.d.ts +20 -3
  188. package/dist/components/switch-field/switch.js +70 -27
  189. package/dist/components/switch-field/switch.module.js +4 -4
  190. package/dist/components/tabs/tabs.css +32 -32
  191. package/dist/components/tabs/tabs.d.ts +21 -7
  192. package/dist/components/tabs/tabs.js +73 -14
  193. package/dist/components/tabs/tabs.module.js +7 -7
  194. package/dist/components/tag/tag.css +84 -84
  195. package/dist/components/tag/tag.module.js +3 -3
  196. package/dist/components/tag-group/tag-group.css +94 -94
  197. package/dist/components/tag-group/tag-group.module.js +4 -4
  198. package/dist/components/text-field/text-field.css +159 -82
  199. package/dist/components/text-field/text-field.d.ts +1 -1
  200. package/dist/components/text-field/text-field.js +139 -110
  201. package/dist/components/text-field/text-field.module.js +9 -9
  202. package/dist/components/text-field/text-input.d.ts +81 -45
  203. package/dist/components/text-field/text-input.js +366 -217
  204. package/dist/components/textarea-field/textarea-field.css +7 -2
  205. package/dist/components/textarea-field/textarea-field.js +72 -56
  206. package/dist/components/textarea-field/textarea-field.module.js +2 -2
  207. package/dist/components/time-field/time-field.js +153 -60
  208. package/dist/components/time-field/time-input.d.ts +21 -10
  209. package/dist/components/time-field/time-input.js +22 -11
  210. package/dist/components/toast/toast-provider.css +34 -31
  211. package/dist/components/toast/toast-provider.d.ts +63 -14
  212. package/dist/components/toast/toast-provider.js +174 -111
  213. package/dist/components/toast/toast-provider.module.js +7 -7
  214. package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
  215. package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
  216. package/dist/components/toggle-group-field/toggle-group.css +117 -67
  217. package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
  218. package/dist/components/toggle-group-field/toggle-group.js +2 -2
  219. package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
  220. package/dist/components/tooltip/tooltip.css +4 -4
  221. package/dist/components/tooltip/tooltip.module.js +1 -1
  222. package/dist/data-table/data-table-content.js +6 -5
  223. package/dist/data-table/data-table-parts.d.ts +41 -13
  224. package/dist/data-table/data-table-parts.js +213 -172
  225. package/dist/data-table/data-table-selection.d.ts +105 -3
  226. package/dist/data-table/data-table-selection.js +654 -145
  227. package/dist/data-table/data-table.css +125 -128
  228. package/dist/data-table/data-table.d.ts +21 -26
  229. package/dist/data-table/data-table.js +20 -23
  230. package/dist/data-table/data-table.module.js +32 -34
  231. package/dist/data-table/index.d.ts +2 -2
  232. package/dist/index.js +3 -3
  233. package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
  234. package/dist/lib/calendar/calendar-navigation.js +185 -118
  235. package/dist/lib/calendar/calendar-parts.d.ts +143 -0
  236. package/dist/lib/calendar/calendar-parts.js +540 -0
  237. package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
  238. package/dist/lib/calendar/calendar-prefab.js +311 -0
  239. package/dist/lib/calendar/calendar-year.d.ts +3 -1
  240. package/dist/lib/calendar/calendar-year.js +139 -131
  241. package/dist/lib/calendar/temporal.css +325 -232
  242. package/dist/lib/calendar/temporal.d.ts +67 -82
  243. package/dist/lib/calendar/temporal.js +258 -569
  244. package/dist/lib/calendar/temporal.module.js +38 -38
  245. package/dist/lib/forms/use-connected-field.d.ts +1 -1
  246. package/dist/lib/forms/use-connected-field.js +1 -1
  247. package/dist/lib/render-as.d.ts +13 -0
  248. package/dist/lib/render-as.js +46 -0
  249. package/dist/tokens.css +6 -3
  250. package/package.json +1 -1
  251. package/tokens/dark.tokens.json +6 -0
  252. package/tokens/sys.tokens.json +7 -0
  253. package/dist/components/button/close-button.d.ts +0 -16
  254. package/dist/components/button/close-button.js +0 -30
@@ -1,6 +1,6 @@
1
1
  @layer kit.reset, kit.base, kit.components;
2
2
  @layer kit.components {
3
- ._root_k21i7_3 {
3
+ ._root_ywjb2_3 {
4
4
  --_table-radius: var(
5
5
  --table-radius,
6
6
  var(--sys-radius-md)
@@ -70,18 +70,18 @@
70
70
  );
71
71
  display: flex;
72
72
  flex-direction: column;
73
- gap: var(--sys-unit-8);
74
- color: var(--sys-color-text);
73
+ gap: var(--table-gap, var(--sys-unit-8));
74
+ color: var(--table-fg, var(--sys-color-text));
75
75
  min-block-size: 0;
76
76
  }
77
- ._toolbar_k21i7_77 {
77
+ ._toolbar_ywjb2_77 {
78
78
  display: flex;
79
79
  flex-shrink: 0;
80
80
  flex-wrap: wrap;
81
81
  align-items: center;
82
- gap: var(--sys-unit-8);
82
+ gap: var(--table-toolbar-gap, var(--sys-unit-8));
83
83
  }
84
- ._scrollFrame_k21i7_84 {
84
+ ._scrollFrame_ywjb2_84 {
85
85
  position: relative;
86
86
  display: flex;
87
87
  flex: 0 1 auto;
@@ -89,16 +89,10 @@
89
89
  min-block-size: 0;
90
90
  timeline-scope: --table-scroll;
91
91
  }
92
- ._stale_k21i7_92 {
93
- display: flex;
94
- flex: 1 1 0;
95
- min-inline-size: 0;
96
- min-block-size: 0;
97
- }
98
- ._staleOverlay_k21i7_98 {
92
+ ._staleOverlay_ywjb2_92 {
99
93
  border-radius: var(--_table-radius);
100
94
  }
101
- ._contentWrap_k21i7_101 {
95
+ ._contentWrap_ywjb2_95 {
102
96
  position: relative;
103
97
  isolation: isolate;
104
98
  flex: 1 1 0;
@@ -106,19 +100,19 @@
106
100
  min-block-size: 0;
107
101
  overflow: auto;
108
102
  border-radius: var(--_table-radius);
109
- background: var(--sys-color-surface);
103
+ background: var(--table-bg, var(--sys-color-surface));
110
104
  scroll-timeline: --table-scroll inline;
111
105
  }
112
- ._contentWrap_k21i7_101 {
106
+ ._contentWrap_ywjb2_95 {
113
107
  outline: 0 solid var(--sys-color-focus-ring);
114
108
  outline-offset: var(--sys-focus-ring-offset);
115
109
  }
116
- ._contentWrap_k21i7_101:focus-visible {
110
+ ._contentWrap_ywjb2_95:focus-visible {
117
111
  outline-width: var(--sys-focus-ring-width);
118
112
  }
119
113
  @supports (animation-timeline: scroll()) {
120
- ._scrollFrame_k21i7_84::before,
121
- ._scrollFrame_k21i7_84::after {
114
+ ._scrollFrame_ywjb2_84::before,
115
+ ._scrollFrame_ywjb2_84::after {
122
116
  position: absolute;
123
117
  z-index: 1;
124
118
  inset-block: 0 var(--table-scrollbar-block, 0px);
@@ -129,24 +123,24 @@
129
123
  animation-fill-mode: both;
130
124
  animation-timeline: --table-scroll;
131
125
  }
132
- ._scrollFrame_k21i7_84:has(._th_k21i7_132[data-sticky=start])::before,
133
- ._scrollFrame_k21i7_84:has(._th_k21i7_132[data-sticky=end])::after {
126
+ ._scrollFrame_ywjb2_84:has(._th_ywjb2_126[data-sticky=start])::before,
127
+ ._scrollFrame_ywjb2_84:has(._th_ywjb2_126[data-sticky=end])::after {
134
128
  content: "";
135
129
  }
136
- ._scrollFrame_k21i7_84::before {
130
+ ._scrollFrame_ywjb2_84::before {
137
131
  inset-inline-start: var(--table-sticky-total, 0px);
138
132
  background: linear-gradient(to right, var(--_table-edge-shadow), transparent);
139
- animation-name: _edgeStart_k21i7_1;
133
+ animation-name: _edgeStart_ywjb2_1;
140
134
  animation-range: var(--_table-edge-slack) calc(var(--_table-edge-cue) + var(--_table-edge-slack));
141
135
  }
142
- ._scrollFrame_k21i7_84::after {
136
+ ._scrollFrame_ywjb2_84::after {
143
137
  inset-inline-end: calc(var(--table-sticky-end-total, 0px) + var(--table-scrollbar-inline, 0px));
144
138
  background: linear-gradient(to left, var(--_table-edge-shadow), transparent);
145
- animation-name: _edgeEnd_k21i7_1;
139
+ animation-name: _edgeEnd_ywjb2_1;
146
140
  animation-range: calc(100% - var(--_table-edge-cue) - var(--_table-edge-slack)) calc(100% - var(--_table-edge-slack));
147
141
  }
148
142
  }
149
- @keyframes _edgeStart_k21i7_1 {
143
+ @keyframes _edgeStart_ywjb2_1 {
150
144
  from {
151
145
  opacity: 0;
152
146
  }
@@ -154,7 +148,7 @@
154
148
  opacity: 1;
155
149
  }
156
150
  }
157
- @keyframes _edgeEnd_k21i7_1 {
151
+ @keyframes _edgeEnd_ywjb2_1 {
158
152
  from {
159
153
  opacity: 1;
160
154
  }
@@ -162,66 +156,66 @@
162
156
  opacity: 0;
163
157
  }
164
158
  }
165
- ._refreshFailed_k21i7_165 {
159
+ ._refreshFailed_ywjb2_159 {
166
160
  display: flex;
167
161
  flex-shrink: 0;
168
162
  flex-wrap: wrap;
169
163
  align-items: center;
170
- gap: var(--sys-unit-6);
171
- border-radius: var(--sys-radius-md);
172
- background: var(--sys-color-error-bg);
173
- padding: var(--sys-unit-6) var(--sys-unit-8);
174
- color: var(--sys-color-error-fg);
175
- font: var(--sys-font-label-medium);
176
- }
177
- ._table_k21i7_177 {
164
+ gap: var(--table-refresh-failed-gap, var(--sys-unit-6));
165
+ border-radius: var(--table-refresh-failed-radius, var(--sys-radius-md));
166
+ background: var(--table-refresh-failed-bg, var(--sys-color-error-bg));
167
+ padding: var(--table-refresh-failed-pad-y, var(--sys-unit-6)) var(--table-refresh-failed-pad-x, var(--sys-unit-8));
168
+ color: var(--table-refresh-failed-fg, var(--sys-color-error-fg));
169
+ font: var(--table-refresh-failed-font, var(--sys-font-label-medium));
170
+ }
171
+ ._table_ywjb2_171 {
178
172
  inline-size: max-content;
179
173
  min-inline-size: var(--_table-min-inline);
180
174
  border-collapse: separate;
181
175
  border-spacing: 0;
182
- font: var(--sys-font-body-medium);
176
+ font: var(--table-font, var(--sys-font-body-medium));
183
177
  font-variant-numeric: tabular-nums;
184
178
  }
185
- ._thead_k21i7_185 {
179
+ ._thead_ywjb2_179 {
186
180
  position: sticky;
187
181
  inset-block-start: 0;
188
182
  z-index: 2;
189
183
  background: var(--_table-header-bg);
190
184
  }
191
- ._th_k21i7_132 {
185
+ ._th_ywjb2_126 {
192
186
  block-size: var(--_table-header-min-block);
193
187
  padding: var(--_table-header-pad-y) var(--_table-cell-pad-x);
194
188
  vertical-align: middle;
195
189
  color: var(--_table-header-fg);
196
190
  text-align: start;
197
- font: var(--sys-font-label-small);
191
+ font: var(--table-header-font, var(--sys-font-label-small));
198
192
  white-space: nowrap;
199
193
  }
200
- ._th_k21i7_132:has(> ._sortToggle_k21i7_200) {
194
+ ._th_ywjb2_126:has(> ._sortToggle_ywjb2_194) {
201
195
  padding: 0;
202
196
  }
203
- ._sortToggle_k21i7_200 {
197
+ ._sortToggle_ywjb2_194 {
204
198
  display: flex;
205
199
  align-items: center;
206
- gap: var(--sys-unit-4);
200
+ gap: var(--table-sort-gap, var(--sys-unit-4));
207
201
  inline-size: 100%;
208
- border-radius: var(--sys-radius-full);
202
+ border-radius: var(--table-sort-radius, var(--sys-radius-full));
209
203
  padding: var(--_table-header-pad-y) var(--_table-cell-pad-x);
210
204
  color: inherit;
211
205
  font: inherit;
212
206
  }
213
- ._sortToggle_k21i7_200 {
207
+ ._sortToggle_ywjb2_194 {
214
208
  outline: 0 solid var(--sys-color-focus-ring);
215
209
  outline-offset: var(--sys-focus-ring-offset);
216
210
  }
217
- ._sortToggle_k21i7_200:focus-visible {
211
+ ._sortToggle_ywjb2_194:focus-visible {
218
212
  outline-width: var(--sys-focus-ring-width);
219
213
  }
220
- ._sortToggle_k21i7_200 {
214
+ ._sortToggle_ywjb2_194 {
221
215
  position: relative;
222
216
  isolation: isolate;
223
217
  }
224
- ._sortToggle_k21i7_200::after {
218
+ ._sortToggle_ywjb2_194::after {
225
219
  content: "";
226
220
  position: absolute;
227
221
  z-index: -1;
@@ -232,91 +226,91 @@
232
226
  pointer-events: none;
233
227
  }
234
228
  @media not (prefers-reduced-motion) {
235
- ._sortToggle_k21i7_200::after {
229
+ ._sortToggle_ywjb2_194::after {
236
230
  transition: opacity var(--sys-motion-instant) var(--sys-motion-standard);
237
231
  }
238
232
  }
239
- ._sortToggle_k21i7_200:hover:not(:disabled, [data-disabled])::after {
233
+ ._sortToggle_ywjb2_194:hover:not(:disabled, [data-disabled])::after {
240
234
  opacity: var(--sys-state-hover);
241
235
  }
242
- ._sortToggle_k21i7_200:active:not(:disabled, [data-disabled])::after {
236
+ ._sortToggle_ywjb2_194:active:not(:disabled, [data-disabled])::after {
243
237
  opacity: var(--sys-state-pressed);
244
238
  }
245
- ._sortToggle_k21i7_200 {
239
+ ._sortToggle_ywjb2_194 {
246
240
  outline-offset: calc(-1 * var(--sys-focus-ring-width));
247
241
  }
248
- ._th_k21i7_132[data-numeric=true] ._sortToggle_k21i7_200 {
242
+ ._th_ywjb2_126[data-numeric=true] ._sortToggle_ywjb2_194 {
249
243
  justify-content: flex-end;
250
244
  }
251
- ._sortIcon_k21i7_251 {
245
+ ._sortIcon_ywjb2_245 {
252
246
  display: inline-flex;
253
247
  flex-shrink: 0;
254
248
  font-size: var(--table-sort-icon-size, 1em);
255
249
  }
256
- ._sortIcon_k21i7_251[data-sort=none] {
250
+ ._sortIcon_ywjb2_245[data-sort=none] {
257
251
  color: color-mix(in oklab, var(--_table-header-fg) 55%, var(--_table-header-bg));
258
252
  }
259
- ._th_k21i7_132[data-fit=true],
260
- ._td_k21i7_260[data-fit=true] {
253
+ ._th_ywjb2_126[data-fit=true],
254
+ ._td_ywjb2_254[data-fit=true] {
261
255
  inline-size: 1px;
262
256
  white-space: nowrap;
263
257
  }
264
- ._th_k21i7_132[data-numeric=true],
265
- ._td_k21i7_260[data-numeric=true] {
258
+ ._th_ywjb2_126[data-numeric=true],
259
+ ._td_ywjb2_254[data-numeric=true] {
266
260
  text-align: end;
267
261
  font-variant-numeric: tabular-nums;
268
262
  }
269
- ._th_k21i7_132[data-sticky],
270
- ._td_k21i7_260[data-sticky] {
263
+ ._th_ywjb2_126[data-sticky],
264
+ ._td_ywjb2_254[data-sticky] {
271
265
  position: sticky;
272
266
  z-index: 1;
273
267
  }
274
- ._th_k21i7_132[data-sticky] {
268
+ ._th_ywjb2_126[data-sticky] {
275
269
  background: var(--_table-header-bg);
276
270
  }
277
- ._td_k21i7_260[data-sticky] {
278
- background: var(--sys-color-surface);
271
+ ._td_ywjb2_254[data-sticky] {
272
+ background: var(--table-bg, var(--sys-color-surface));
279
273
  }
280
274
  @media not (prefers-reduced-motion) {
281
- ._td_k21i7_260[data-sticky] {
275
+ ._td_ywjb2_254[data-sticky] {
282
276
  transition: background-color var(--sys-motion-instant) var(--sys-motion-standard);
283
277
  }
284
278
  }
285
- ._row_k21i7_285[data-stripe=true] ._td_k21i7_260[data-sticky] {
279
+ ._row_ywjb2_279[data-stripe=true] ._td_ywjb2_254[data-sticky] {
286
280
  background: var(--_table-row-stripe);
287
281
  }
288
- ._row_k21i7_285:hover ._td_k21i7_260[data-sticky] {
282
+ ._row_ywjb2_279:hover ._td_ywjb2_254[data-sticky] {
289
283
  background: var(--_table-row-hover);
290
284
  }
291
285
  @media not (prefers-reduced-motion) {
292
- ._row_k21i7_285 {
286
+ ._row_ywjb2_279 {
293
287
  transition: background-color var(--sys-motion-instant) var(--sys-motion-standard);
294
288
  }
295
289
  }
296
- ._row_k21i7_285[data-stripe=true] {
290
+ ._row_ywjb2_279[data-stripe=true] {
297
291
  background: var(--_table-row-stripe);
298
292
  }
299
- ._row_k21i7_285:hover {
293
+ ._row_ywjb2_279:hover {
300
294
  background: var(--_table-row-hover);
301
295
  }
302
- ._td_k21i7_260 {
296
+ ._td_ywjb2_254 {
303
297
  padding: var(--_table-cell-pad-y) var(--_table-cell-pad-x);
304
298
  vertical-align: middle;
305
299
  white-space: nowrap;
306
300
  }
307
- ._subRow_k21i7_307 {
301
+ ._subRow_ywjb2_301 {
308
302
  background: var(--_table-subrow-bg);
309
303
  }
310
- ._subRow_k21i7_307 > td {
304
+ ._subRow_ywjb2_301 > td {
311
305
  padding: 0;
312
306
  }
313
- ._subRow_k21i7_307 > ._td_k21i7_260[data-sticky] {
307
+ ._subRow_ywjb2_301 > ._td_ywjb2_254[data-sticky] {
314
308
  background: var(--_table-subrow-bg);
315
309
  }
316
- ._skeletonBar_k21i7_316 {
317
- min-inline-size: var(--sys-unit-16);
310
+ ._skeletonBar_ywjb2_310 {
311
+ min-inline-size: var(--table-skeleton-min-inline, var(--sys-unit-16));
318
312
  }
319
- ._busyCaption_k21i7_319 {
313
+ ._busyCaption_ywjb2_313 {
320
314
  position: absolute;
321
315
  overflow: hidden;
322
316
  clip-path: inset(50%);
@@ -324,23 +318,23 @@
324
318
  block-size: 1px;
325
319
  white-space: nowrap;
326
320
  }
327
- ._stateCell_k21i7_327 {
328
- padding: var(--sys-unit-24) var(--_table-cell-pad-x);
329
- color: var(--sys-color-text-muted);
321
+ ._stateCell_ywjb2_321 {
322
+ padding: var(--table-state-pad-y, var(--sys-unit-24)) var(--_table-cell-pad-x);
323
+ color: var(--table-state-fg, var(--sys-color-text-muted));
330
324
  text-align: center;
331
325
  }
332
- ._errorState_k21i7_332 {
333
- color: var(--sys-color-error-fg);
326
+ ._errorState_ywjb2_326 {
327
+ color: var(--table-error-fg, var(--sys-color-error-fg));
334
328
  }
335
- ._pagination_k21i7_335 {
329
+ ._pagination_ywjb2_329 {
336
330
  flex-shrink: 0;
337
331
  align-self: flex-end;
338
332
  }
339
- ._selectionContainer_k21i7_339 {
333
+ ._selectionContainer_ywjb2_333 {
340
334
  container: selection-bar/inline-size;
341
335
  min-inline-size: 0;
342
336
  }
343
- ._selectionBar_k21i7_343 {
337
+ ._selectionBar_ywjb2_337 {
344
338
  --_selection-stagger: var(
345
339
  --selection-stagger,
346
340
  calc(var(--sys-motion-instant) / 4)
@@ -359,107 +353,110 @@
359
353
  flex-shrink: 0;
360
354
  flex-wrap: nowrap;
361
355
  align-items: center;
362
- gap: var(--sys-unit-6);
356
+ gap: var(--selection-gap, var(--sys-unit-6));
363
357
  isolation: isolate;
364
358
  min-inline-size: 0;
365
359
  overflow-x: auto;
366
360
  border-radius: var(--_selection-radius);
367
361
  padding-block: var(--_selection-pad);
368
362
  padding-inline: 0;
369
- color: var(--sys-color-text);
363
+ color: var(--selection-fg, var(--sys-color-text));
370
364
  white-space: nowrap;
371
365
  }
372
- ._selectionBar_k21i7_343 {
366
+ ._selectionBar_ywjb2_337 {
373
367
  outline: 0 solid var(--sys-color-focus-ring);
374
368
  outline-offset: var(--sys-focus-ring-offset);
375
369
  }
376
- ._selectionBar_k21i7_343:focus-visible {
370
+ ._selectionBar_ywjb2_337:focus-visible {
377
371
  outline-width: var(--sys-focus-ring-width);
378
372
  }
379
- ._selectionBar_k21i7_343::before {
373
+ ._selectionBar_ywjb2_337::before {
380
374
  position: absolute;
381
375
  inset: 0;
382
376
  z-index: -1;
383
377
  border-radius: inherit;
384
- background: var(--sys-color-surface);
378
+ background: var(--selection-bg, var(--sys-color-surface));
385
379
  content: "";
386
380
  opacity: 0;
387
381
  scale: 0.98 0.8;
388
382
  }
389
- ._selectionBar_k21i7_343[data-selected] {
390
- --_selection-text-inset: var(--sys-unit-6);
383
+ ._selectionBar_ywjb2_337[data-selected] {
384
+ --_selection-text-inset: var(
385
+ --selection-text-inset,
386
+ var(--sys-unit-6)
387
+ );
391
388
  padding-inline: var(--_selection-pad);
392
389
  }
393
- ._selectionBar_k21i7_343[data-selected]::before {
390
+ ._selectionBar_ywjb2_337[data-selected]::before {
394
391
  opacity: 1;
395
392
  scale: 1;
396
393
  }
397
394
  @media not (prefers-reduced-motion) {
398
- ._selectionBar_k21i7_343 {
395
+ ._selectionBar_ywjb2_337 {
399
396
  transition: padding-inline var(--sys-motion-instant) var(--sys-motion-accelerate);
400
397
  }
401
- ._selectionBar_k21i7_343::before {
398
+ ._selectionBar_ywjb2_337::before {
402
399
  transition: opacity var(--sys-motion-instant) var(--sys-motion-accelerate), scale var(--sys-motion-instant) var(--sys-motion-accelerate);
403
400
  }
404
- ._selectionBar_k21i7_343[data-selected] {
401
+ ._selectionBar_ywjb2_337[data-selected] {
405
402
  transition-duration: var(--sys-motion-short);
406
403
  transition-timing-function: var(--sys-motion-emphasized);
407
404
  }
408
- ._selectionBar_k21i7_343[data-selected]::before {
405
+ ._selectionBar_ywjb2_337[data-selected]::before {
409
406
  transition-duration: var(--sys-motion-short);
410
407
  transition-timing-function: var(--sys-motion-emphasized);
411
408
  }
412
409
  }
413
- ._selectionSummary_k21i7_413 {
410
+ ._selectionSummary_ywjb2_410 {
414
411
  display: grid;
415
412
  flex-shrink: 0;
416
413
  align-items: center;
417
414
  padding-inline-start: var(--_selection-text-inset);
418
415
  }
419
416
  @media not (prefers-reduced-motion) {
420
- ._selectionSummary_k21i7_413 {
417
+ ._selectionSummary_ywjb2_410 {
421
418
  transition: padding-inline-start var(--sys-motion-instant) var(--sys-motion-accelerate);
422
419
  }
423
- ._selectionBar_k21i7_343[data-selected] ._selectionSummary_k21i7_413 {
420
+ ._selectionBar_ywjb2_337[data-selected] ._selectionSummary_ywjb2_410 {
424
421
  transition-duration: var(--sys-motion-short);
425
422
  transition-timing-function: var(--sys-motion-emphasized);
426
423
  }
427
424
  }
428
- ._selectionTotal_k21i7_428,
429
- ._selectionCount_k21i7_429,
430
- ._selectionMeasure_k21i7_430 {
425
+ ._selectionTotal_ywjb2_425,
426
+ ._selectionCount_ywjb2_426,
427
+ ._selectionMeasure_ywjb2_427 {
431
428
  grid-area: 1/1;
432
- font: var(--sys-font-body-medium);
429
+ font: var(--selection-font, var(--sys-font-body-medium));
433
430
  }
434
- ._selectionTotal_k21i7_428 {
435
- color: var(--sys-color-text-muted);
431
+ ._selectionTotal_ywjb2_425 {
432
+ color: var(--selection-total-fg, var(--sys-color-text-muted));
436
433
  }
437
- ._selectionCount_k21i7_429 {
434
+ ._selectionCount_ywjb2_426 {
438
435
  font-variant-numeric: tabular-nums;
439
436
  }
440
- ._selectionBar_k21i7_343:not([data-selected]) ._selectionCount_k21i7_429 {
437
+ ._selectionBar_ywjb2_337:not([data-selected]) ._selectionCount_ywjb2_426 {
441
438
  opacity: 0;
442
439
  translate: 0 var(--sys-unit-2);
443
440
  }
444
- ._selectionBar_k21i7_343[data-selected] ._selectionCount_k21i7_429 {
441
+ ._selectionBar_ywjb2_337[data-selected] ._selectionCount_ywjb2_426 {
445
442
  opacity: 1;
446
443
  translate: 0;
447
444
  }
448
- ._selectionMeasure_k21i7_430 {
445
+ ._selectionMeasure_ywjb2_427 {
449
446
  visibility: hidden;
450
447
  font-variant-numeric: tabular-nums;
451
448
  }
452
- ._selectionBar_k21i7_343[data-selected] ._selectionTotal_k21i7_428 {
449
+ ._selectionBar_ywjb2_337[data-selected] ._selectionTotal_ywjb2_425 {
453
450
  opacity: 0;
454
451
  translate: 0 calc(-1 * var(--sys-unit-2));
455
452
  }
456
453
  @media not (prefers-reduced-motion) {
457
- ._selectionTotal_k21i7_428,
458
- ._selectionCount_k21i7_429 {
454
+ ._selectionTotal_ywjb2_425,
455
+ ._selectionCount_ywjb2_426 {
459
456
  transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), translate var(--sys-motion-instant) var(--sys-motion-standard);
460
457
  }
461
458
  }
462
- ._selectionStatus_k21i7_462 {
459
+ ._selectionStatus_ywjb2_459 {
463
460
  position: absolute;
464
461
  overflow: hidden;
465
462
  clip-path: inset(50%);
@@ -467,53 +464,53 @@
467
464
  block-size: 1px;
468
465
  white-space: nowrap;
469
466
  }
470
- ._selectionActions_k21i7_470 {
467
+ ._selectionActions_ywjb2_467 {
471
468
  display: flex;
472
469
  flex: 1 1 auto;
473
470
  flex-wrap: nowrap;
474
471
  align-items: center;
475
472
  gap: var(--_selection-pad);
476
473
  }
477
- ._selectionActions_k21i7_470 > * {
474
+ ._selectionActions_ywjb2_467 > * {
478
475
  opacity: 1;
479
476
  }
480
- ._selectionActions_k21i7_470[inert] {
477
+ ._selectionActions_ywjb2_467[inert] {
481
478
  visibility: hidden;
482
479
  }
483
- ._selectionActions_k21i7_470[inert] > * {
480
+ ._selectionActions_ywjb2_467[inert] > * {
484
481
  opacity: 0;
485
482
  }
486
483
  @media not (prefers-reduced-motion) {
487
- ._selectionActions_k21i7_470 {
484
+ ._selectionActions_ywjb2_467 {
488
485
  transition: visibility var(--sys-motion-instant);
489
486
  }
490
- ._selectionActions_k21i7_470 > * {
487
+ ._selectionActions_ywjb2_467 > * {
491
488
  transition: opacity var(--sys-motion-instant) var(--sys-motion-standard);
492
489
  }
493
- ._selectionActions_k21i7_470:not([inert]) > :nth-child(1) {
490
+ ._selectionActions_ywjb2_467:not([inert]) > :nth-child(1) {
494
491
  transition-delay: var(--_selection-stagger);
495
492
  }
496
- ._selectionActions_k21i7_470:not([inert]) > :nth-child(2) {
493
+ ._selectionActions_ywjb2_467:not([inert]) > :nth-child(2) {
497
494
  transition-delay: calc(var(--_selection-stagger) * 2);
498
495
  }
499
496
  }
500
- ._selectionSelectAll_k21i7_500[data-starting-style], ._selectionSelectAll_k21i7_500[data-ending-style] {
497
+ ._selectionSelectAll_ywjb2_497[data-starting-style], ._selectionSelectAll_ywjb2_497[data-ending-style] {
501
498
  opacity: 0;
502
499
  }
503
- ._selectionBulk_k21i7_503 {
500
+ ._selectionBulk_ywjb2_500 {
504
501
  display: flex;
505
502
  flex-wrap: nowrap;
506
503
  align-items: center;
507
- gap: var(--sys-unit-6);
504
+ gap: var(--selection-bulk-gap, var(--sys-unit-6));
508
505
  margin-inline-start: auto;
509
506
  }
510
507
  @container selection-bar (max-width: 36rem) {
511
- ._selectionBar_k21i7_343 {
508
+ ._selectionBar_ywjb2_337 {
512
509
  flex-wrap: wrap;
513
510
  overflow-x: visible;
514
511
  row-gap: var(--_selection-pad);
515
512
  }
516
- ._selectionActions_k21i7_470 {
513
+ ._selectionActions_ywjb2_467 {
517
514
  flex-wrap: wrap;
518
515
  }
519
516
  }
@@ -1,9 +1,9 @@
1
1
  import type { ReactTable } from "@tanstack/react-table";
2
2
  import type { ReactNode } from "react";
3
- import { type PaginationContentProps, type PaginationRootProps } from "../components/pagination/pagination.tsx";
3
+ import { type PaginationRootProps } from "../components/pagination/pagination.tsx";
4
4
  import type { RowSelectionView } from "../lib/hooks/use-row-selection.ts";
5
5
  import { DataTableContent } from "./data-table-content.tsx";
6
- import { Body, Cell, ErrorMessage, Frame, Head, HeaderCell, HeaderRow, LoadingCaption, PlaceholderRows, RefreshFailed, Row, Scroller, SortButton, StaleOverlay, StateRow, SubRow, Table } from "./data-table-parts.tsx";
6
+ import { Body, Cell, ErrorMessage, Frame, Head, HeaderCell, HeaderRow, LoadingCaption, PlaceholderRows, RefreshFailed, Row, Scroller, SortButton, SortIcon, StaleOverlay, StateRow, SubRow, Table } from "./data-table-parts.tsx";
7
7
  import { DataTableSelectionBar } from "./data-table-selection.tsx";
8
8
  import type { DataTableStatus } from "./resolve-view.ts";
9
9
  import { type DataTableFeatures } from "./table-features.ts";
@@ -36,18 +36,18 @@ export type DataTableToolbarProps = Readonly<{
36
36
  /** Layout slot above the table for search, filters and actions. */
37
37
  declare const Toolbar: ({ children, className, }: DataTableToolbarProps) => ReactNode;
38
38
  type TableBoundPagination = "pageIndex" | "pageCount" | "pageSize" | "pageSizes" | "onPageIndexChange" | "onPageSizeChange";
39
- export type DataTablePaginationProps = Omit<PaginationRootProps, TableBoundPagination | "children"> & ((PaginationContentProps & Readonly<{
40
- children?: undefined;
41
- }>) | (Readonly<{
42
- /** The `Pagination` parts, such as `Pagination.PageSize`, `Pagination.Index` and `Pagination.Controls`, in place of the ready-made pager. */
43
- children: ReactNode;
44
- }> & Readonly<Partial<Record<keyof PaginationContentProps, undefined>>>));
39
+ export type DataTablePaginationProps = Omit<PaginationRootProps, TableBoundPagination>;
45
40
  /**
46
- * The pager driven by the instance's pagination API (built with
47
- * `manualPagination` + server `rowCount`): the ready-made `Pagination` from its
48
- * labels and icons, or a `Pagination.Root` holding the parts it is given. The
49
- * page sizes come from the table's `meta.pageSizeOptions`, and picking one
50
- * returns to the first page.
41
+ * The `Pagination.Root` driven by the instance's pagination API (built with
42
+ * `manualPagination` + server `rowCount`), holding the `Pagination` parts it is
43
+ * given. The page sizes come from the table's `meta.pageSizeOptions`, and
44
+ * picking one returns to the first page.
45
+ *
46
+ * @example
47
+ * <DataTable.Pagination>
48
+ * <Pagination.Index label={page => `Page ${page.pageIndex + 1} of ${page.pageCount}`} />
49
+ * <Pagination.Controls>…</Pagination.Controls>
50
+ * </DataTable.Pagination>
51
51
  */
52
52
  declare const DataTablePagination: (props: DataTablePaginationProps) => ReactNode;
53
53
  type DataTableParts = Readonly<{
@@ -66,6 +66,7 @@ type DataTableParts = Readonly<{
66
66
  HeaderRow: typeof HeaderRow;
67
67
  HeaderCell: typeof HeaderCell;
68
68
  SortButton: typeof SortButton;
69
+ SortIcon: typeof SortIcon;
69
70
  Body: typeof Body;
70
71
  Row: typeof Row;
71
72
  Cell: typeof Cell;
@@ -98,19 +99,13 @@ type DataTableParts = Readonly<{
98
99
  * sortAscendingIcon={<ArrowUpwardIcon />}
99
100
  * sortDescendingIcon={<ArrowDownwardIcon />}
100
101
  * />
101
- * <DataTable.Pagination
102
- * pageSizeLabel="Rows per page"
103
- * indexLabel={page => `Page ${page.pageIndex + 1} of ${page.pageCount}`}
104
- * firstLabel="First page"
105
- * previousLabel="Previous page"
106
- * nextLabel="Next page"
107
- * lastLabel="Last page"
108
- * firstIcon={<FirstPageIcon />}
109
- * previousIcon={<ChevronLeftIcon />}
110
- * nextIcon={<ChevronRightIcon />}
111
- * lastIcon={<LastPageIcon />}
112
- * checkIcon={<CheckIcon />}
113
- * />
102
+ * <DataTable.Pagination>
103
+ * <Pagination.Index label={page => `Page ${page.pageIndex + 1} of ${page.pageCount}`} />
104
+ * <Pagination.Controls>
105
+ * <Pagination.Previous render={<IconButton label="Previous page" variant="tertiary"><ChevronLeftIcon /></IconButton>} />
106
+ * <Pagination.Next render={<IconButton label="Next page" variant="tertiary"><ChevronRightIcon /></IconButton>} />
107
+ * </Pagination.Controls>
108
+ * </DataTable.Pagination>
114
109
  * </DataTable.Root>
115
110
  */
116
111
  export declare const DataTable: DataTableParts;