@ensi-platform/admin-ui 0.9.0 → 0.11.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 (241) hide show
  1. package/dist/{Component-C6mp0LOp.js → Component-6rieHJdg.js} +4 -4
  2. package/dist/{Component-C6mp0LOp.js.map → Component-6rieHJdg.js.map} +1 -1
  3. package/dist/{Component-BRHoDRtF.js → Component-BH5skHn_.js} +3 -3
  4. package/dist/{Component-BRHoDRtF.js.map → Component-BH5skHn_.js.map} +1 -1
  5. package/dist/{Component-D310jlAj.js → Component-BZqLGwzc.js} +3 -3
  6. package/dist/{Component-D310jlAj.js.map → Component-BZqLGwzc.js.map} +1 -1
  7. package/dist/{Component-CBWeJZfB.js → Component-C24OpTxW.js} +2 -2
  8. package/dist/{Component-CBWeJZfB.js.map → Component-C24OpTxW.js.map} +1 -1
  9. package/dist/{Component-DU3MeOen.js → Component-C4vHIDMZ.js} +4 -4
  10. package/dist/{Component-DU3MeOen.js.map → Component-C4vHIDMZ.js.map} +1 -1
  11. package/dist/{Component-B73be-FU.js → Component-CkazNd13.js} +3 -3
  12. package/dist/{Component-B73be-FU.js.map → Component-CkazNd13.js.map} +1 -1
  13. package/dist/{Component-uHkw3SDR.js → Component-CzwTENBM.js} +2 -2
  14. package/dist/{Component-uHkw3SDR.js.map → Component-CzwTENBM.js.map} +1 -1
  15. package/dist/{Component-BnSNDZFt.js → Component-DH7wdC3G.js} +4 -4
  16. package/dist/{Component-BnSNDZFt.js.map → Component-DH7wdC3G.js.map} +1 -1
  17. package/dist/{Component-CIxKpL6s.js → Component-DOlDNQnu.js} +4 -4
  18. package/dist/{Component-CIxKpL6s.js.map → Component-DOlDNQnu.js.map} +1 -1
  19. package/dist/{Component-BPN5FgKq.js → Component-DSAL6avh.js} +2 -2
  20. package/dist/{Component-BPN5FgKq.js.map → Component-DSAL6avh.js.map} +1 -1
  21. package/dist/{Component-ZIAMtMpP.js → Component-DpACJ8IJ.js} +3 -3
  22. package/dist/{Component-ZIAMtMpP.js.map → Component-DpACJ8IJ.js.map} +1 -1
  23. package/dist/{Component-qJGssCB4.js → Component-IFlvrceZ.js} +6 -6
  24. package/dist/{Component-qJGssCB4.js.map → Component-IFlvrceZ.js.map} +1 -1
  25. package/dist/{Component-B1piMJHv.js → Component-MSGhHMYk.js} +2 -2
  26. package/dist/{Component-B1piMJHv.js.map → Component-MSGhHMYk.js.map} +1 -1
  27. package/dist/Component-uzbYiLD9.js +58 -0
  28. package/dist/Component-uzbYiLD9.js.map +1 -0
  29. package/dist/Upload-Bi4Xl-j5.js +120 -0
  30. package/dist/Upload-Bi4Xl-j5.js.map +1 -0
  31. package/dist/action-popup/index.js +3 -3
  32. package/dist/active-filters/index.js +2 -2
  33. package/dist/arrangement-settings/index.js +4 -4
  34. package/dist/assets/Component10.css +1 -1
  35. package/dist/assets/Component11.css +1 -1
  36. package/dist/assets/Component12.css +1 -1
  37. package/dist/assets/Component13.css +1 -1
  38. package/dist/assets/Component14.css +1 -1
  39. package/dist/assets/Component15.css +1 -1
  40. package/dist/assets/Component3.css +1 -1
  41. package/dist/assets/Component4.css +1 -1
  42. package/dist/assets/Component5.css +1 -1
  43. package/dist/assets/Component6.css +1 -1
  44. package/dist/assets/Component7.css +1 -1
  45. package/dist/assets/Component8.css +1 -1
  46. package/dist/assets/Component9.css +1 -1
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/index15.css +1 -1
  49. package/dist/assets/index16.css +1 -1
  50. package/dist/assets/index17.css +1 -1
  51. package/dist/assets/index18.css +1 -1
  52. package/dist/assets/index19.css +1 -1
  53. package/dist/assets/index20.css +1 -1
  54. package/dist/assets/index21.css +1 -1
  55. package/dist/assets/index22.css +1 -1
  56. package/dist/assets/index23.css +1 -1
  57. package/dist/assets/index24.css +1 -1
  58. package/dist/assets/index25.css +1 -1
  59. package/dist/assets/index26.css +1 -1
  60. package/dist/assets/index27.css +1 -1
  61. package/dist/assets/index28.css +1 -1
  62. package/dist/assets/index29.css +1 -1
  63. package/dist/assets/index30.css +1 -1
  64. package/dist/assets/index31.css +1 -1
  65. package/dist/assets/index32.css +1 -0
  66. package/dist/assets/index33.css +1 -0
  67. package/dist/assets/index4.css +1 -1
  68. package/dist/assets/index8.css +1 -1
  69. package/dist/assets/index9.css +1 -1
  70. package/dist/assets/theme2.css +1 -0
  71. package/dist/autocomplete/index.js +3 -3
  72. package/dist/autocomplete-async/index.js +3 -3
  73. package/dist/bottom-sheet/index.js +2 -2
  74. package/dist/button/index.js +1 -1
  75. package/dist/cascade-menu/index.js +4 -4
  76. package/dist/checkbox/index.js +3 -3
  77. package/dist/checkbox-group/index.js +2 -2
  78. package/dist/color-picker/Component.d.ts +5 -0
  79. package/dist/color-picker/Component.d.ts.map +1 -0
  80. package/dist/color-picker/FormColorPicker.d.ts +6 -0
  81. package/dist/color-picker/FormColorPicker.d.ts.map +1 -0
  82. package/dist/color-picker/index.d.ts +4 -0
  83. package/dist/color-picker/index.d.ts.map +1 -0
  84. package/dist/color-picker/index.js +347 -0
  85. package/dist/color-picker/index.js.map +1 -0
  86. package/dist/color-picker/theme.d.ts +6 -0
  87. package/dist/color-picker/theme.d.ts.map +1 -0
  88. package/dist/color-picker/types.d.ts +58 -0
  89. package/dist/color-picker/types.d.ts.map +1 -0
  90. package/dist/color-picker/utils.d.ts +23 -0
  91. package/dist/color-picker/utils.d.ts.map +1 -0
  92. package/dist/combobox/index.js +4 -4
  93. package/dist/context-menu/index.js +1 -1
  94. package/dist/copy-button/index.js +2 -2
  95. package/dist/data-table/index.js +3 -3
  96. package/dist/date-picker/index.js +5 -5
  97. package/dist/date-range-picker/index.js +5 -5
  98. package/dist/drawer/index.js +1 -1
  99. package/dist/dropzone/Component.d.ts +14 -0
  100. package/dist/dropzone/Component.d.ts.map +1 -0
  101. package/dist/dropzone/FormDropzone.d.ts +6 -0
  102. package/dist/dropzone/FormDropzone.d.ts.map +1 -0
  103. package/dist/dropzone/__tests__/helpers.d.ts +37 -0
  104. package/dist/dropzone/__tests__/helpers.d.ts.map +1 -0
  105. package/dist/dropzone/components/Action/index.d.ts +14 -0
  106. package/dist/dropzone/components/Action/index.d.ts.map +1 -0
  107. package/dist/dropzone/components/ActionSlot/index.d.ts +10 -0
  108. package/dist/dropzone/components/ActionSlot/index.d.ts.map +1 -0
  109. package/dist/dropzone/components/FileCopy/index.d.ts +7 -0
  110. package/dist/dropzone/components/FileCopy/index.d.ts.map +1 -0
  111. package/dist/dropzone/components/FileListDrag/index.d.ts +11 -0
  112. package/dist/dropzone/components/FileListDrag/index.d.ts.map +1 -0
  113. package/dist/dropzone/components/FileRows/index.d.ts +9 -0
  114. package/dist/dropzone/components/FileRows/index.d.ts.map +1 -0
  115. package/dist/dropzone/components/FileSkeletons/index.d.ts +8 -0
  116. package/dist/dropzone/components/FileSkeletons/index.d.ts.map +1 -0
  117. package/dist/dropzone/components/GridItem/index.d.ts +7 -0
  118. package/dist/dropzone/components/GridItem/index.d.ts.map +1 -0
  119. package/dist/dropzone/components/GridList/index.d.ts +7 -0
  120. package/dist/dropzone/components/GridList/index.d.ts.map +1 -0
  121. package/dist/dropzone/components/Grip/index.d.ts +7 -0
  122. package/dist/dropzone/components/Grip/index.d.ts.map +1 -0
  123. package/dist/dropzone/components/Item/index.d.ts +7 -0
  124. package/dist/dropzone/components/Item/index.d.ts.map +1 -0
  125. package/dist/dropzone/components/ItemRoot/index.d.ts +8 -0
  126. package/dist/dropzone/components/ItemRoot/index.d.ts.map +1 -0
  127. package/dist/dropzone/components/List/index.d.ts +7 -0
  128. package/dist/dropzone/components/List/index.d.ts.map +1 -0
  129. package/dist/dropzone/components/Preview/index.d.ts +6 -0
  130. package/dist/dropzone/components/Preview/index.d.ts.map +1 -0
  131. package/dist/dropzone/components/Progress/index.d.ts +7 -0
  132. package/dist/dropzone/components/Progress/index.d.ts.map +1 -0
  133. package/dist/dropzone/components/Quota/index.d.ts +9 -0
  134. package/dist/dropzone/components/Quota/index.d.ts.map +1 -0
  135. package/dist/dropzone/components/SelectionMark/index.d.ts +5 -0
  136. package/dist/dropzone/components/SelectionMark/index.d.ts.map +1 -0
  137. package/dist/dropzone/components/TypeMark/index.d.ts +5 -0
  138. package/dist/dropzone/components/TypeMark/index.d.ts.map +1 -0
  139. package/dist/dropzone/components/Zone/index.d.ts +34 -0
  140. package/dist/dropzone/components/Zone/index.d.ts.map +1 -0
  141. package/dist/dropzone/components/ZoneSkeleton/index.d.ts +3 -0
  142. package/dist/dropzone/components/ZoneSkeleton/index.d.ts.map +1 -0
  143. package/dist/dropzone/hooks/useDropzoneFiles.d.ts +30 -0
  144. package/dist/dropzone/hooks/useDropzoneFiles.d.ts.map +1 -0
  145. package/dist/dropzone/hooks/useDropzoneFocus.d.ts +18 -0
  146. package/dist/dropzone/hooks/useDropzoneFocus.d.ts.map +1 -0
  147. package/dist/dropzone/hooks/useDropzoneSelection.d.ts +15 -0
  148. package/dist/dropzone/hooks/useDropzoneSelection.d.ts.map +1 -0
  149. package/dist/dropzone/hooks/useDropzoneUploads.d.ts +27 -0
  150. package/dist/dropzone/hooks/useDropzoneUploads.d.ts.map +1 -0
  151. package/dist/dropzone/hooks/useFileList/index.d.ts +23 -0
  152. package/dist/dropzone/hooks/useFileList/index.d.ts.map +1 -0
  153. package/dist/dropzone/index.d.ts +4 -0
  154. package/dist/dropzone/index.d.ts.map +1 -0
  155. package/dist/dropzone/index.js +1516 -0
  156. package/dist/dropzone/index.js.map +1 -0
  157. package/dist/dropzone/theme.d.ts +6 -0
  158. package/dist/dropzone/theme.d.ts.map +1 -0
  159. package/dist/dropzone/types.d.ts +240 -0
  160. package/dist/dropzone/types.d.ts.map +1 -0
  161. package/dist/dropzone/utils.d.ts +123 -0
  162. package/dist/dropzone/utils.d.ts.map +1 -0
  163. package/dist/field/index.js +1 -1
  164. package/dist/filters/index.js +1 -1
  165. package/dist/form/hooks/useFieldHook.d.ts +4 -2
  166. package/dist/form/hooks/useFieldHook.d.ts.map +1 -1
  167. package/dist/form/index.js +2 -2
  168. package/dist/grid-layout/index.js +1 -1
  169. package/dist/hooks-CekMiYbX.js +91 -0
  170. package/dist/hooks-CekMiYbX.js.map +1 -0
  171. package/dist/icons/File.d.ts +7 -0
  172. package/dist/icons/File.d.ts.map +1 -0
  173. package/dist/icons/ListChecks.d.ts +8 -0
  174. package/dist/icons/ListChecks.d.ts.map +1 -0
  175. package/dist/icons/index.d.ts +2 -0
  176. package/dist/icons/index.d.ts.map +1 -1
  177. package/dist/icons/index.js +83 -145
  178. package/dist/icons/index.js.map +1 -1
  179. package/dist/{index-BXlN61PG.js → index-BccXGF9t.js} +2 -2
  180. package/dist/{index-BXlN61PG.js.map → index-BccXGF9t.js.map} +1 -1
  181. package/dist/{index-CDCqZ3um.js → index-C_oo7Xm5.js} +3 -3
  182. package/dist/{index-CDCqZ3um.js.map → index-C_oo7Xm5.js.map} +1 -1
  183. package/dist/{index-CdAE-ZaU.js → index-DxsuVBkE.js} +4 -4
  184. package/dist/{index-CdAE-ZaU.js.map → index-DxsuVBkE.js.map} +1 -1
  185. package/dist/input/index.js +3 -3
  186. package/dist/loader/index.js +2 -2
  187. package/dist/menu-list/index.js +1 -1
  188. package/dist/{metrics-B5YsELiI.js → metrics-Cv_jrA15.js} +2 -2
  189. package/dist/{metrics-B5YsELiI.js.map → metrics-Cv_jrA15.js.map} +1 -1
  190. package/dist/modal/index.js +1 -1
  191. package/dist/multi-autocomplete/index.js +3 -3
  192. package/dist/multi-autocomplete-async/index.js +3 -3
  193. package/dist/multi-select/index.js +5 -5
  194. package/dist/number-input/index.js +3 -3
  195. package/dist/number-range/index.js +3 -3
  196. package/dist/provider/context.d.ts.map +1 -1
  197. package/dist/provider/index.js +2 -2
  198. package/dist/provider/types.d.ts +76 -0
  199. package/dist/provider/types.d.ts.map +1 -1
  200. package/dist/select/index.js +3 -3
  201. package/dist/slider/Component.d.ts.map +1 -1
  202. package/dist/slider/index.js +111 -108
  203. package/dist/slider/index.js.map +1 -1
  204. package/dist/suggest-checklist/Component.d.ts.map +1 -1
  205. package/dist/suggest-checklist/index.js +78 -67
  206. package/dist/suggest-checklist/index.js.map +1 -1
  207. package/dist/switch/index.js +2 -2
  208. package/dist/table/index.js +1 -1
  209. package/dist/tabs/index.js +1 -1
  210. package/dist/tag/index.js +1 -1
  211. package/dist/test/axe.d.ts +16 -0
  212. package/dist/test/axe.d.ts.map +1 -0
  213. package/dist/textarea/index.js +4 -4
  214. package/dist/theme-C-N1qQjF.js +35 -0
  215. package/dist/theme-C-N1qQjF.js.map +1 -0
  216. package/dist/time-field/index.js +3 -3
  217. package/dist/toast/index.js +2 -2
  218. package/dist/tooltip/index.js +1 -1
  219. package/dist/typography/index.js +1 -1
  220. package/dist/useFieldHook-o47pjrRg.js +56 -0
  221. package/dist/useFieldHook-o47pjrRg.js.map +1 -0
  222. package/dist/{utils-Dj_u-w0s.js → utils-DrTtzDsS.js} +3 -3
  223. package/dist/{utils-Dj_u-w0s.js.map → utils-DrTtzDsS.js.map} +1 -1
  224. package/dist/vertical-tabs/index.js +1 -1
  225. package/package.json +10 -1
  226. package/src/color-picker/docs/Description.md +45 -0
  227. package/src/color-picker/docs/Example.md +5 -0
  228. package/src/color-picker/docs/cssVariables.ts +40 -0
  229. package/src/color-picker/types.ts +67 -0
  230. package/src/dropzone/docs/Description.md +73 -0
  231. package/src/dropzone/docs/Example.md +17 -0
  232. package/src/dropzone/docs/cssVariables.ts +32 -0
  233. package/src/dropzone/types.ts +268 -0
  234. package/src/provider/types.ts +76 -0
  235. package/dist/Component-u6K-ylDb.js +0 -85
  236. package/dist/Component-u6K-ylDb.js.map +0 -1
  237. package/dist/assets/Component16.css +0 -1
  238. package/dist/hooks-BlX5Y4Zt.js +0 -53
  239. package/dist/hooks-BlX5Y4Zt.js.map +0 -1
  240. package/dist/useFieldHook-Bt9nST7g.js +0 -52
  241. package/dist/useFieldHook-Bt9nST7g.js.map +0 -1
@@ -0,0 +1,73 @@
1
+ File field: click, drag, and paste.
2
+
3
+ ```tsx
4
+ import { Dropzone, FormDropzone } from '@ensi-platform/admin-ui/dropzone';
5
+ ```
6
+
7
+ ## When to use
8
+
9
+ - attachments on an entity (several files, order matters)
10
+ - a single image (logo, avatar) — `maxFiles={1}` and an `accept` map whose keys are all `image/`
11
+ - a file import — the same primitive with `maxFiles={1}`
12
+
13
+ ## API (short)
14
+
15
+ The value is `{ id, name, size, type, file?, url? }[]`. A new file gets `id` and `file`. A server file arrives with `id` and `url`. Rejection text is not part of the value. `title` and `description` sit above a large zone with an upload icon, and the files sit under the zone. Accepted types and the per-file limit sit in the zone, and `hint` is appended to that line. `validate` returns a refusal reason or nothing: a reason keeps the file out of the list. Count and total size sit on a line under the zone. At the count limit the zone says the limit is reached and does not take another file. `maxFiles={1}` keeps the zone open: the new file replaces the current one. `onChange` runs before `onRemove` of the file that left. `layout="grid"` renders cards: an image gets a preview, anything else gets a type icon. Retry and remove are buttons on the row. `upload` sends the file immediately; it enters the value after the response, with `id` and `url` and without `file`.
16
+
17
+ ### Dropzone
18
+
19
+ | Prop | Values | Default | Description |
20
+ | --- | --- | --- | --- |
21
+ | `title` | `ReactNode` | — | heading above the zone |
22
+ | `description` | `ReactNode` | — | text under the heading |
23
+ | `hint` | `ReactNode` | — | extra rule on the zone line, after types and the per-file limit |
24
+ | `validate` | `(file) => string \| null \| Promise<...>` | — | empty keeps the file, a string is the refusal reason |
25
+ | `value` | `IDropzoneFile[]` | — | selected files; without it the list is kept inside |
26
+ | `defaultValue` | `IDropzoneFile[]` | — | initial list when `value` is omitted |
27
+ | `onChange` | `(files) => void` | — | next list |
28
+ | `onRemove` | `(file) => void` | — | after removal; the argument still has `id` |
29
+ | `renderAction` | `(file) => ReactNode` | — | extra control next to remove; `Dropzone.Action` is that button, with `icon` and `hidden` |
30
+ | `accept` | `Record<mime, string[]>` | — | allowed types |
31
+ | `maxSize` | `number` | — | max bytes per file |
32
+ | `maxTotalSize` | `number` | — | max bytes for the list plus files still uploading |
33
+ | `maxFiles` | `number` | — | count limit; `1` replaces the current file |
34
+ | `maxFileNameLength` | `number` | — | max name length |
35
+ | `paste` | `boolean` | `false` | paste into the focused zone |
36
+ | `loading` | `boolean` | `false` | zone stays and rejects files; skeleton rows replace the list |
37
+ | `layout` | `list` \| `grid` | `list` | rows or cards; picks `list` and `item` when those are omitted |
38
+ | `list` | `ComponentType<IFileListProps>` | from `layout` | custom file list |
39
+ | `item` | `ComponentType<IDropzoneItem>` | from `layout` | file element; the list receives it |
40
+ | `upload` | `(file, { onProgress, signal }) => Promise<{ id, url }>` | — | send immediately; `onProgress` moves the bar, `signal` cancels the row |
41
+ | `disabled` | `boolean \| { add?, remove?, reorder? }` | `false` | `true` blocks adding, removal, and reorder. An object blocks only keys set to `true`; the remove control stays in place |
42
+ | `invalid` | `boolean` | `false` | field error |
43
+ | `size` | `sm` \| `md` \| `lg` | `md` | size; inside Field inherits `Field.size` |
44
+ | `dataTestId` | `string` | — | `data-test-id` for tests |
45
+
46
+ A rejected file is not added. Valid files from the same batch are. The reason is a line under the field; the next batch with no rejections clears it. A click adds a row to the selection, and a second click on that row removes only it. Selection exists when there is more than one file and removal is allowed. A mouse drag starts from anywhere on the row except its buttons, and a click selects it. The grip stays for the keyboard and for touch. Dropping highlights the whole row under the pointer, and the file takes that row's place. The size sits under the name. While something is selected, that hint is replaced by a count on the left and icon buttons on the right: select all and delete selected. Select all is hidden when every file is selected. A second click, Escape, or a click outside the list clears the selection; Delete, Backspace, and Escape work only while focus is inside this dropzone. On touch a tap toggles a row. An in-flight row has Cancel: the row goes away and `onRemove` is not called. Without `onProgress` the bar has no number. A failed upload stays on the row, with the rejection text in place of the size, or the generic caption when that text is empty. It can be retried or discarded.
47
+
48
+ No `as`.
49
+
50
+ ### FormDropzone
51
+
52
+ | Prop | Values | Default | Description |
53
+ | --- | --- | --- | --- |
54
+ | `name` | `string` | — | field name in `Form` |
55
+ | `label` | `ReactNode` | — | label (`Field.Label`) |
56
+ | `hint` | `ReactNode` | — | hint |
57
+ | `size` | `sm` \| `md` \| `lg` | `md` | size (on Field) |
58
+ | `disabled` | `boolean \| { add?, remove?, reorder? }` | — | same as Dropzone; `true` also disables Field |
59
+ | `accept` | `Record<mime, string[]>` | — | allowed types |
60
+ | `maxSize` | `number` | — | max bytes per file |
61
+ | `maxTotalSize` | `number` | — | max bytes for the sum |
62
+ | `maxFiles` | `number` | — | count limit; `1` replaces the file |
63
+ | `maxFileNameLength` | `number` | — | max name length |
64
+ | `paste` | `boolean` | `false` | paste |
65
+ | `loading` | `boolean` | `false` | skeleton instead of the list |
66
+ | `layout` | `list` \| `grid` | `list` | rows or cards |
67
+ | `upload` | `(file, { onProgress, signal }) => Promise<{ id, url }>` | — | send immediately |
68
+ | `validate` | `(file) => string \| null \| Promise<...>` | — | empty keeps the file, a string is the refusal reason |
69
+ | `onRemove` | `(file) => void` | — | after removal |
70
+ | `renderAction` | `(file) => ReactNode` | — | extra control, `Dropzone.Action` |
71
+ | `dataTestId` | `string` | — | `data-test-id` for tests |
72
+
73
+ The schema message and the rejection line share one slot under the field. A file rejection does not set a form error: submit stays available when the schema accepts the files already kept. Submit is blocked while a file is uploading or a failed upload is still in the list.
@@ -0,0 +1,17 @@
1
+ ## Example
2
+
3
+ ```tsx
4
+ <Dropzone
5
+ title="Attachments"
6
+ description="PDF, up to 5 MB"
7
+ accept={{ 'application/pdf': ['.pdf'] }}
8
+ maxFiles={5}
9
+ maxSize={5 * 1024 * 1024}
10
+ upload={(file, _context) => Promise.resolve({ id: file.name, url: `/files/${file.name}` })}
11
+ />
12
+
13
+ <Form initialValues={{ files: [] }} validationSchema={schema} onSubmit={save}>
14
+ <FormDropzone name="files" label="Attachments" hint="PDF, up to 5 MB" accept={{ 'application/pdf': ['.pdf'] }} />
15
+ <Button type="submit">Save</Button>
16
+ </Form>
17
+ ```
@@ -0,0 +1,32 @@
1
+ /** Dropzone CSS variables from semantic tokens (--aui-dropzone-*). */
2
+ export const docsCssVariables = `/* CSS variables — Dropzone (--aui-dropzone-*) */
3
+ --aui-dropzone-bg-primary: var(--aui-input-bg-primary); /* zone fill */
4
+ --aui-dropzone-bg-target: var(--aui-surface-bg-muted); /* drop target, quota track */
5
+ --aui-dropzone-bg-selected: var(--aui-surface-bg-muted-hover); /* selected row */
6
+ --aui-dropzone-fg-primary: var(--aui-input-fg-primary); /* primary foreground */
7
+ --aui-dropzone-fg-muted: var(--aui-input-fg-muted); /* muted foreground */
8
+ --aui-dropzone-fg-danger: var(--aui-field-error-fg); /* rejection foreground */
9
+ --aui-dropzone-border-primary: var(--aui-input-border-primary); /* zone border */
10
+ --aui-dropzone-border-focus: var(--aui-input-border-focus); /* focus border */
11
+ --aui-dropzone-border-selected: var(--aui-dropzone-border-focus); /* selected row border */
12
+ --aui-dropzone-fg-selected: var(--aui-dropzone-border-focus); /* selection check */
13
+ --aui-dropzone-border-danger: var(--aui-input-border-danger); /* invalid border */
14
+ --aui-dropzone-radius-sm: var(--aui-control-radius-sm); /* check inner corners */
15
+ --aui-dropzone-radius-md: var(--aui-input-radius-md); /* zone radius */
16
+ --aui-dropzone-pad-sm: var(--aui-spacing-12); /* padding sm */
17
+ --aui-dropzone-pad-md: var(--aui-spacing-16); /* padding md */
18
+ --aui-dropzone-pad-lg: var(--aui-spacing-24); /* padding lg */
19
+ --aui-dropzone-gap: var(--aui-spacing-8); /* gap between zone, list, and rejection */
20
+ --aui-dropzone-icon-size: var(--aui-spacing-20); /* row icon size */
21
+ --aui-dropzone-tile-size: var(--aui-spacing-32); /* file type tile */
22
+ --aui-dropzone-mark-size: var(--aui-spacing-32); /* zone upload icon size */
23
+ --aui-dropzone-hit: var(--aui-spacing-24); /* icon button hit target */
24
+ --aui-dropzone-row-h-sm: calc(var(--aui-spacing) * 11); /* file row height sm */
25
+ --aui-dropzone-row-h-md: calc(var(--aui-spacing) * 14); /* file row height md */
26
+ --aui-dropzone-row-h-lg: calc(var(--aui-spacing) * 18); /* file row height lg */
27
+ --aui-dropzone-preview-w: calc(var(--aui-spacing) * 28); /* image preview width */
28
+ --aui-dropzone-preview-h: var(--aui-dropzone-preview-w); /* image preview height */
29
+ --aui-dropzone-progress-h: var(--aui-spacing-4); /* upload progress height */
30
+ --aui-dropzone-duration-fast: var(--aui-input-duration-fast); /* transition duration (fast) */
31
+ --aui-dropzone-duration-normal: var(--aui-duration-normal); /* row move duration */
32
+ --aui-dropzone-ease-out: var(--aui-input-ease-out); /* transition easing */`;
@@ -0,0 +1,268 @@
1
+ import { type ComponentPropsWithRef, type ComponentType, type CSSProperties, type ReactNode, type Ref } from 'react';
2
+
3
+ import { type Accept } from 'react-dropzone';
4
+
5
+ import { type IDataTestIdProps } from '@ds/common';
6
+
7
+ import { type IFieldStateProps } from '@/field/types';
8
+ import { type IFormFieldLayoutProps } from '@/form/types';
9
+
10
+ /** One file in the dropzone value. */
11
+ export interface IDropzoneFile {
12
+ /** Stable id. Server files keep their own id. */
13
+ id: string;
14
+ /** File name. */
15
+ name: string;
16
+ /** Size in bytes. */
17
+ size: number;
18
+ /** MIME type. */
19
+ type: string;
20
+ /** Newly picked file. Absent for a file that already lives on the server. */
21
+ file?: File;
22
+ /** Preview or download address of a server file. */
23
+ url?: string;
24
+ }
25
+
26
+ export type TDropzoneSize = 'sm' | 'md' | 'lg';
27
+
28
+ /** A file that is visible but not in `value` yet. */
29
+ export interface IPendingDropzoneFile {
30
+ /** Local id until the server id arrives. */
31
+ id: string;
32
+ /** File name. */
33
+ name: string;
34
+ /** Size in bytes. */
35
+ size: number;
36
+ /** MIME type. */
37
+ type: string;
38
+ /** File passed to `upload`. */
39
+ file: File;
40
+ /** `uploading` hides remove. `error` keeps the row. */
41
+ status: 'uploading' | 'error';
42
+ /** Absent until `onProgress` reports a number. */
43
+ progress: number | null;
44
+ /** This row replaces the single file already in the list. */
45
+ replacing: boolean;
46
+ /** Rejection text. Absent when the failure has no message. */
47
+ error?: string;
48
+ }
49
+
50
+ /** One button on a file row. */
51
+ export interface IRowAction {
52
+ key: 'remove' | 'retry' | 'dismiss' | 'cancel';
53
+ label: string;
54
+ run: () => void;
55
+ disabled?: boolean;
56
+ }
57
+
58
+ /** Props shared by the row and the grid card. */
59
+ export type TDropzoneItemElement = 'div' | 'row';
60
+
61
+ /** Props of the file root. `row` is the settled list item. */
62
+ export interface IDropzoneItemElementProps {
63
+ id?: string;
64
+ textValue?: string;
65
+ 'aria-label'?: string;
66
+ 'data-file-id'?: string;
67
+ 'data-layout'?: 'stacked';
68
+ 'data-replacing'?: boolean;
69
+ 'data-flash'?: boolean;
70
+ 'data-flip'?: boolean;
71
+ style?: CSSProperties;
72
+ }
73
+
74
+ export interface IDropzoneItem {
75
+ /** Row root. `row` for a settled file, `div` while uploading. */
76
+ element: TDropzoneItemElement;
77
+ /** Props of that root (`id`, `textValue`, data attributes, drag shift). */
78
+ elementProps: IDropzoneItemElementProps;
79
+ /** File shown in the row. */
80
+ file: IDropzoneFile;
81
+ /** Control size. Sets the row height on the item root. */
82
+ size: TDropzoneSize;
83
+ /** Selected row paints the check. */
84
+ selected: boolean;
85
+ /** Grip label. Absent when reorder is off. */
86
+ gripLabel?: string;
87
+ /** Row actions. The grid card splits remove and dismiss onto the frame. */
88
+ actions: readonly IRowAction[];
89
+ /** Extra settled action from `renderAction`. */
90
+ action?: ReactNode;
91
+ /** Upload progress. `null` is indeterminate. Absent on a settled file. */
92
+ progress?: number | null;
93
+ /** Error caption. */
94
+ failedLabel?: string;
95
+ /** Replace caption. */
96
+ replaceLabel?: string;
97
+ }
98
+
99
+ export type TDropzoneVariant = 'primary';
100
+
101
+ /** Theme inputs. */
102
+ export interface IDropzoneThemeProps {
103
+ /** Control size. Inside Field, inherits `Field.size` when omitted. */
104
+ size?: TDropzoneSize;
105
+ /** Visual variant. */
106
+ variant?: TDropzoneVariant;
107
+ }
108
+
109
+ export type TDropzoneLayout = 'list' | 'grid';
110
+
111
+ /** Props of the file list. `list` receives them. */
112
+ export interface IFileListProps {
113
+ /** File element. The list passes the row model into it. */
114
+ item: ComponentType<IDropzoneItem>;
115
+ files: readonly IDropzoneFile[];
116
+ pending: readonly IPendingDropzoneFile[];
117
+ canReorder: boolean;
118
+ removable: boolean;
119
+ removeDisabled?: boolean;
120
+ disabled?: boolean;
121
+ selectable?: boolean;
122
+ selectedKeys?: ReadonlySet<string>;
123
+ onSelectionChange?: (keys: Set<string>) => void;
124
+ renderAction?: (file: IDropzoneFile) => ReactNode;
125
+ replacing?: boolean;
126
+ replaceTarget?: boolean;
127
+ flashId?: string | null;
128
+ willReplaceLabel: string;
129
+ focusId?: string | null;
130
+ size: TDropzoneSize;
131
+ listLabel: string;
132
+ removeLabel: string;
133
+ reorderLabel: string;
134
+ retryLabel: string;
135
+ cancelLabel: string;
136
+ replacingLabel: string;
137
+ failedLabel: string;
138
+ onRemove: (file: IDropzoneFile) => void;
139
+ onRetry: (id: string) => void;
140
+ onDismiss: (id: string) => void;
141
+ onCancel: (id: string) => void;
142
+ onReorder: (files: IDropzoneFile[]) => void;
143
+ }
144
+
145
+ /** Upload rows that are not in `value` yet. */
146
+ export interface IDropzonePendingState {
147
+ /** A file is still in flight. */
148
+ uploading: boolean;
149
+ /** A failed upload is still in the list. */
150
+ failed: boolean;
151
+ }
152
+
153
+ /** `true` on a key blocks that action. `false` and omission leave it on. */
154
+ export interface IDropzoneDisabledFlags {
155
+ add?: boolean;
156
+ remove?: boolean;
157
+ reorder?: boolean;
158
+ }
159
+
160
+ /** `true` blocks adding, removal, and reorder. An object blocks only the keys set to `true`. */
161
+ export type TDropzoneDisabled = boolean | IDropzoneDisabledFlags;
162
+
163
+ /** Server identity returned after `upload` resolves. */
164
+ export interface IDropzoneUploadResult {
165
+ /** Server id. Replaces the local id. */
166
+ id: string;
167
+ /** Download or preview address. */
168
+ url: string;
169
+ }
170
+
171
+ /** What `upload` receives besides the file. */
172
+ export interface IDropzoneUploadContext {
173
+ /** Reports 0–100. Omit the calls for an indeterminate bar. */
174
+ onProgress: (percent: number) => void;
175
+ /** Aborted when the row is cancelled. */
176
+ signal: AbortSignal;
177
+ }
178
+
179
+ /** Value and file rules. */
180
+ export interface IDropzoneControlProps {
181
+ /** Selected files. */
182
+ value?: IDropzoneFile[];
183
+ /** Initial files when `value` is omitted. */
184
+ defaultValue?: IDropzoneFile[];
185
+ /** Called with the next file list. */
186
+ onChange?: (files: IDropzoneFile[]) => void;
187
+ /** Called after a file was removed from the list. */
188
+ onRemove?: (file: IDropzoneFile) => void;
189
+ /** Allowed MIME types and extensions. */
190
+ accept?: Accept;
191
+ /** Max size of one file, in bytes. */
192
+ maxSize?: number;
193
+ /** Max size of the whole list, in bytes. Includes files still uploading. */
194
+ maxTotalSize?: number;
195
+ /** Max number of files. `1` replaces the current file. */
196
+ maxFiles?: number;
197
+ /** Max file name length. */
198
+ maxFileNameLength?: number;
199
+ /** Accept a file pasted into the focused zone. */
200
+ paste?: boolean;
201
+ /**
202
+ * `true` blocks adding, removal, and reorder.
203
+ * An object blocks only the flags set to `true`.
204
+ */
205
+ disabled?: TDropzoneDisabled;
206
+ /**
207
+ * Sends a file as soon as it is accepted.
208
+ * The file stays out of `value` until this resolves with `id` and `url`.
209
+ */
210
+ upload?: (file: File, context: IDropzoneUploadContext) => Promise<IDropzoneUploadResult>;
211
+ /**
212
+ * Custom refusal after type and size checks.
213
+ * A string keeps the file out and becomes the alert reason.
214
+ */
215
+ validate?: (file: File) => string | null | undefined | Promise<string | null | undefined>;
216
+ /** Fires when in-flight or failed uploads appear or clear. */
217
+ onPendingChange?: (state: IDropzonePendingState) => void;
218
+ }
219
+
220
+ /** Own / chrome props (not from DOM). */
221
+ export interface IDropzoneOwnProps extends IDataTestIdProps {
222
+ /** Ref to the dropzone root (React 19 prop). */
223
+ ref?: Ref<HTMLDivElement>;
224
+ /** Heading above the zone. */
225
+ title?: ReactNode;
226
+ /** Text under the heading and above the zone. */
227
+ description?: ReactNode;
228
+ /**
229
+ * Extra rule in the zone line, after accepted types and the per-file limit.
230
+ */
231
+ hint?: ReactNode;
232
+ /**
233
+ * Receives the local rejection line.
234
+ * When set, the line is not rendered inside the zone.
235
+ */
236
+ onRejectionChange?: (message: string) => void;
237
+ /** Renders an extra action for a settled file, next to remove. */
238
+ renderAction?: (file: IDropzoneFile) => ReactNode;
239
+ /** Show a loader instead of the file list. */
240
+ loading?: boolean;
241
+ /** `list` is a row. `grid` is a card. Picks `list` and `item` when those are omitted. */
242
+ layout?: TDropzoneLayout;
243
+ /** File list. Defaults from `layout`. */
244
+ list?: ComponentType<IFileListProps>;
245
+ /** File element. Defaults from `layout`. Passed into the list. */
246
+ item?: ComponentType<IDropzoneItem>;
247
+ }
248
+
249
+ export interface IDropzoneBaseProps
250
+ extends IDropzoneThemeProps, Omit<IFieldStateProps, 'disabled'>, IDropzoneControlProps, IDropzoneOwnProps {}
251
+
252
+ /** DOM keys omitted because names differ from ours. */
253
+ export type TDropzoneDomOmit = 'defaultValue' | 'onChange';
254
+
255
+ export interface IDropzoneProps
256
+ extends Omit<ComponentPropsWithRef<'div'>, keyof IDropzoneBaseProps | TDropzoneDomOmit>, IDropzoneBaseProps {}
257
+
258
+ /** Content slice for FormDropzone. */
259
+ export interface IDropzoneContentProps
260
+ extends
261
+ Omit<IDropzoneControlProps, 'value' | 'defaultValue' | 'onChange' | 'onPendingChange'>,
262
+ Pick<IDropzoneOwnProps, 'renderAction' | 'loading' | 'layout' | 'list' | 'item'> {}
263
+
264
+ export interface IFormDropzoneProps
265
+ extends Omit<IFormFieldLayoutProps, 'disabled'>, Pick<IDropzoneThemeProps, 'variant'>, IDropzoneContentProps {
266
+ /** Ref to the dropzone root (React 19 prop). */
267
+ ref?: Ref<HTMLDivElement>;
268
+ }
@@ -24,6 +24,16 @@ export interface IAuiLabels {
24
24
  moreSelected: string;
25
25
  /** DatePicker / DateRangePicker: open calendar button. */
26
26
  openCalendar: string;
27
+ /** ColorPicker: open the palette. */
28
+ openPalette: string;
29
+ /** ColorPicker: hex field accessible name. */
30
+ colorCode: string;
31
+ /** ColorPicker: hue slider accessible name. */
32
+ colorHue: string;
33
+ /** ColorPicker: palette dialog accessible name. */
34
+ colorPalette: string;
35
+ /** ColorPicker: preset swatch list accessible name. */
36
+ colorPresets: string;
27
37
  /** Table.PageSize: label before the select. */
28
38
  pageSize: string;
29
39
  /** Table.Pagination: previous-page control label. */
@@ -72,6 +82,72 @@ export interface IAuiLabels {
72
82
  copied: string;
73
83
  /** CopyButton: clipboard failure tooltip. */
74
84
  copyFailed: string;
85
+ /** Dropzone: zone instruction while the list is empty. */
86
+ dropzonePrompt: string;
87
+ /** Dropzone: kept for label overrides. The zone uses `dropzonePrompt`. */
88
+ dropzoneAdd: string;
89
+ /** Dropzone: remove-file button. */
90
+ dropzoneRemove: string;
91
+ /** Dropzone: file list accessible name. */
92
+ dropzoneList: string;
93
+ /** Dropzone: reorder handle. */
94
+ dropzoneReorder: string;
95
+ /** Dropzone: file exceeds `maxSize`. `{size}` is the limit. */
96
+ dropzoneTooBig: string;
97
+ /** Dropzone: size below 1 KB. `{size}` is a byte count. */
98
+ dropzoneByte: string;
99
+ /** Dropzone: size in kilobytes. `{size}` is the number. */
100
+ dropzoneKilobyte: string;
101
+ /** Dropzone: size in megabytes. `{size}` is the number. */
102
+ dropzoneMegabyte: string;
103
+ /** Dropzone: file type is outside `accept`. */
104
+ dropzoneBadType: string;
105
+ /** Dropzone: list is already at `maxFiles`. `{count}` is the limit. */
106
+ dropzoneTooMany: string;
107
+ /** Dropzone: file name is longer than `maxFileNameLength`. `{count}` is the limit. */
108
+ dropzoneNameLength: string;
109
+ /** Dropzone: a file with the same name is already in the list. */
110
+ dropzoneDuplicate: string;
111
+ /** Dropzone: rejection that has no specific copy. */
112
+ dropzoneRejected: string;
113
+ /** Dropzone: upload request failed. */
114
+ dropzoneUploadFailed: string;
115
+ /** Dropzone: retry a failed upload. */
116
+ dropzoneRetry: string;
117
+ /** Dropzone: hint under a multi-file list before the first selection. */
118
+ dropzoneSelectHint: string;
119
+ /** Dropzone: toolbar count. `{count}` selected, `{total}` in the list. */
120
+ dropzoneSelected: string;
121
+ /** Dropzone: select every settled file. */
122
+ dropzoneSelectAll: string;
123
+ /** Dropzone: remove the selection. */
124
+ dropzoneDeleteSelected: string;
125
+ /** Dropzone: live announcement. `{count}` is how many files left. */
126
+ dropzoneDeleted: string;
127
+ /** Dropzone: zone copy when `maxFiles` is 1 and a file is present. */
128
+ dropzoneReplace: string;
129
+ /** Dropzone: zone copy while a replacement is dragged. `{name}` is the current file. */
130
+ dropzoneReplaceDrop: string;
131
+ /** Dropzone: mark on the file a replacement upload will swap out. */
132
+ dropzoneReplacing: string;
133
+ /** Dropzone: file that a dragged file will replace. */
134
+ dropzoneWillReplace: string;
135
+ /** Dropzone: prefix when a replacement was refused. `{reason}` follows. */
136
+ dropzoneNotReplaced: string;
137
+ /** Dropzone: cancel an in-flight upload. */
138
+ dropzoneCancel: string;
139
+ /** Dropzone: file count quota. `{count}` used, `{max}` allowed. */
140
+ dropzoneQuotaCount: string;
141
+ /** Dropzone: byte quota. `{size}` and `{max}` are formatted. */
142
+ dropzoneQuotaBytes: string;
143
+ /** Dropzone: per-file ceiling. `{size}` is formatted. */
144
+ dropzonePerFile: string;
145
+ /** Dropzone: file does not fit `maxTotalSize`. `{name}`, `{size}` is the room left. */
146
+ dropzoneTotalTooBig: string;
147
+ /** Dropzone: the list is full. `{count}` and `{max}` are file counts. */
148
+ dropzoneLimitReached: string;
149
+ /** Dropzone: form message while a file is still uploading. */
150
+ dropzoneUploading: string;
75
151
  }
76
152
 
77
153
  export type TAuiLabels = IAuiLabels;
@@ -1,85 +0,0 @@
1
- import { jsx as s, jsxs as m } from "react/jsx-runtime";
2
- import a from "classnames";
3
- import { CheckboxField as h, CheckboxButton as C } from "react-aria-components";
4
- import { s as N } from "./index-h8z54aFR.js";
5
- import { C as g } from "./Check-deng4Zns.js";
6
- import { cva as k } from "class-variance-authority";
7
- import { typographyStyles as o } from "./typography/index.js";
8
- import './assets/Component3.css';const v = "aub_styles-module_field_b20b6", S = "aub_styles-module_root_e58e8", j = "aub_styles-module_label_d93e2", z = "aub_styles-module_box_c637b", I = "aub_styles-module_icon_6dc84", V = "aub_styles-module_indeterminate_ff5bc", B = "aub_styles-module_sm_03831", D = "aub_styles-module_md_32e3c", F = "aub_styles-module_lg_3c597", M = "aub_styles-module_primary_20c9d", e = {
9
- field: v,
10
- root: S,
11
- label: j,
12
- box: z,
13
- icon: I,
14
- indeterminate: V,
15
- sm: B,
16
- md: D,
17
- lg: F,
18
- primary: M
19
- }, R = k(e.root, {
20
- variants: {
21
- size: {
22
- sm: a(e.sm, o.bodyS),
23
- md: a(e.md, o.bodyS),
24
- lg: a(e.lg, o.bodyM)
25
- },
26
- variant: {
27
- primary: e.primary
28
- }
29
- },
30
- defaultVariants: {
31
- size: "md",
32
- variant: "primary"
33
- }
34
- }), q = N(
35
- ({
36
- ref: i,
37
- size: r = "md",
38
- variant: d = "primary",
39
- checked: n,
40
- defaultChecked: c,
41
- onChange: b,
42
- indeterminate: _ = !1,
43
- value: u,
44
- children: t,
45
- invalid: l = !1,
46
- disabled: y = !1,
47
- className: p,
48
- dataTestId: f,
49
- ...x
50
- }) => /* @__PURE__ */ s(
51
- h,
52
- {
53
- ...x,
54
- value: u,
55
- isSelected: n,
56
- defaultSelected: c,
57
- onChange: b,
58
- isIndeterminate: _,
59
- isDisabled: y,
60
- isInvalid: l,
61
- className: e.field,
62
- children: /* @__PURE__ */ m(
63
- C,
64
- {
65
- ref: i,
66
- "data-invalid": l || void 0,
67
- "data-test-id": f,
68
- className: a(R({ size: r, variant: d }), p),
69
- children: [
70
- /* @__PURE__ */ m("span", { className: e.box, "aria-hidden": !0, children: [
71
- /* @__PURE__ */ s(g, { className: e.icon }),
72
- /* @__PURE__ */ s("span", { className: e.indeterminate })
73
- ] }),
74
- t != null ? /* @__PURE__ */ s("span", { className: e.label, children: t }) : null
75
- ]
76
- }
77
- )
78
- }
79
- )
80
- );
81
- q.displayName = "Checkbox";
82
- export {
83
- q as C
84
- };
85
- //# sourceMappingURL=Component-u6K-ylDb.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Component-u6K-ylDb.js","sources":["../src/checkbox/theme.ts","../src/checkbox/Component.tsx"],"sourcesContent":["import { cva } from 'class-variance-authority';\nimport cn from 'classnames';\n\nimport { typographyStyles } from '@ds/typography';\n\nimport styles from './styles.module.css';\n\nexport const checkboxVariants = cva(styles.root, {\n variants: {\n size: {\n sm: cn(styles.sm, typographyStyles.bodyS),\n md: cn(styles.md, typographyStyles.bodyS),\n lg: cn(styles.lg, typographyStyles.bodyM),\n },\n variant: {\n primary: styles.primary,\n },\n },\n defaultVariants: {\n size: 'md',\n variant: 'primary',\n },\n});\n","import cn from 'classnames';\nimport { CheckboxButton, CheckboxField } from 'react-aria-components';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { Check } from '@/icons';\n\nimport { checkboxVariants } from './theme';\nimport { type ICheckboxProps } from './types';\n\nimport styles from './styles.module.css';\n\nexport const Checkbox = supportRef(\n ({\n ref,\n size = 'md',\n variant = 'primary',\n checked,\n defaultChecked,\n onChange,\n indeterminate = false,\n value,\n children,\n invalid = false,\n disabled = false,\n className,\n dataTestId,\n ...props\n }: ICheckboxProps) => (\n <CheckboxField\n {...props}\n value={value}\n isSelected={checked}\n defaultSelected={defaultChecked}\n onChange={onChange}\n isIndeterminate={indeterminate}\n isDisabled={disabled}\n isInvalid={invalid}\n className={styles.field}\n >\n <CheckboxButton\n ref={ref}\n data-invalid={invalid || undefined}\n data-test-id={dataTestId}\n className={cn(checkboxVariants({ size, variant }), className)}\n >\n <span className={styles.box} aria-hidden>\n <Check className={styles.icon} />\n <span className={styles.indeterminate} />\n </span>\n {children != null ? <span className={styles.label}>{children}</span> : null}\n </CheckboxButton>\n </CheckboxField>\n )\n);\n\nCheckbox.displayName = 'Checkbox';\n"],"names":["checkboxVariants","cva","styles","cn","typographyStyles","Checkbox","supportRef","ref","size","variant","checked","defaultChecked","onChange","indeterminate","value","children","invalid","disabled","className","dataTestId","props","jsx","CheckboxField","jsxs","CheckboxButton","Check"],"mappings":";;;;;;;;;;;;;;;;;;GAOaA,IAAmBC,EAAIC,EAAO,MAAM;AAAA,EAC7C,UAAU;AAAA,IACN,MAAM;AAAA,MACF,IAAIC,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,MACxC,IAAID,EAAGD,EAAO,IAAIE,EAAiB,KAAK;AAAA,IAAA;AAAA,IAE5C,SAAS;AAAA,MACL,SAASF,EAAO;AAAA,IAAA;AAAA,EACpB;AAAA,EAEJ,iBAAiB;AAAA,IACb,MAAM;AAAA,IACN,SAAS;AAAA,EAAA;AAEjB,CAAC,GCVYG,IAAWC;AAAA,EACpB,CAAC;AAAA,IACG,KAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,SAAAC,IAAU;AAAA,IACV,SAAAC;AAAA,IACA,gBAAAC;AAAA,IACA,UAAAC;AAAA,IACA,eAAAC,IAAgB;AAAA,IAChB,OAAAC;AAAA,IACA,UAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,UAAAC,IAAW;AAAA,IACX,WAAAC;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MAEH,gBAAAC;AAAA,IAACC;AAAA,IAAA;AAAA,MACI,GAAGF;AAAA,MACJ,OAAAN;AAAA,MACA,YAAYJ;AAAA,MACZ,iBAAiBC;AAAA,MACjB,UAAAC;AAAA,MACA,iBAAiBC;AAAA,MACjB,YAAYI;AAAA,MACZ,WAAWD;AAAA,MACX,WAAWd,EAAO;AAAA,MAElB,UAAA,gBAAAqB;AAAA,QAACC;AAAA,QAAA;AAAA,UACG,KAAAjB;AAAA,UACA,gBAAcS,KAAW;AAAA,UACzB,gBAAcG;AAAA,UACd,WAAWhB,EAAGH,EAAiB,EAAE,MAAAQ,GAAM,SAAAC,EAAA,CAAS,GAAGS,CAAS;AAAA,UAE5D,UAAA;AAAA,YAAA,gBAAAK,EAAC,QAAA,EAAK,WAAWrB,EAAO,KAAK,eAAW,IACpC,UAAA;AAAA,cAAA,gBAAAmB,EAACI,GAAA,EAAM,WAAWvB,EAAO,KAAA,CAAM;AAAA,cAC/B,gBAAAmB,EAAC,QAAA,EAAK,WAAWnB,EAAO,cAAA,CAAe;AAAA,YAAA,GAC3C;AAAA,YACCa,KAAY,OAAO,gBAAAM,EAAC,QAAA,EAAK,WAAWnB,EAAO,OAAQ,UAAAa,GAAS,IAAU;AAAA,UAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAC3E;AAAA,EAAA;AAGZ;AAEAV,EAAS,cAAc;"}
@@ -1 +0,0 @@
1
- .aub_styles-module_root_3dc5f{display:inline-flex;align-items:center;gap:var(--aui-table-action-gap);padding:var(--aui-table-pad-y-utility) var(--aui-table-pad-x-utility)}.aub_styles-module_menu_6e4e6{display:flex;flex-direction:column;gap:var(--aui-table-action-gap);min-width:10rem;padding:var(--aui-table-pad-y-sm) var(--aui-table-pad-x-sm)}.aub_styles-module_menuItem_f71c0{justify-content:flex-start;width:100%;padding:var(--aui-table-pad-y-sm) var(--aui-table-pad-x-md)}.aub_styles-module_overflowTrigger_7c588{min-width:unset;padding-left:var(--aui-spacing-8);padding-right:var(--aui-spacing-8)}.aub_styles-module_visuallyHidden_0e593{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.aub_styles-module_root_9238b{padding:var(--aui-table-pad-y) var(--aui-table-pad-x);vertical-align:middle;text-align:start;box-sizing:border-box}.aub_styles-module_numeric_cb295{text-align:end;font-variant-numeric:tabular-nums}.aub_styles-module_alignStart_1287f{text-align:start}.aub_styles-module_alignEnd_8f2d8{text-align:end}.aub_styles-module_alignCenter_c83e7{text-align:center}.aub_styles-module_noWrap_80a17{white-space:nowrap}.aub_styles-module_utility_f2ad7{width:1%;white-space:nowrap;padding:var(--aui-table-pad-y-utility) var(--aui-table-pad-x-utility)}.aub_styles-module_utility_f2ad7:has([data-row-actions]){height:1px;padding:0}.aub_styles-module_root_e0d29{box-sizing:border-box;width:var(--aui-table-checkbox-w);min-width:var(--aui-table-checkbox-w);max-width:var(--aui-table-checkbox-w);text-align:center;vertical-align:middle;line-height:0}.aub_styles-module_root_0f9dc{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:var(--aui-table-footer-gap);flex-shrink:0;padding:var(--aui-table-footer-pad-y) var(--aui-table-footer-pad-x);color:var(--aui-table-fg-muted);background:var(--aui-table-bg-footer)}.aub_styles-module_root_d320c,.aub_styles-module_sticky_3efca{background:var(--aui-table-bg-header)}.aub_styles-module_trigger_e351e{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);width:100%;max-width:100%;margin:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;position:relative;z-index:1}.aub_styles-module_trigger_e351e[data-open]{background:var(--aui-table-bg-selected);z-index:var(--aui-table-z-sticky)}.aub_styles-module_trigger_e351e:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:-2px}.aub_styles-module_triggerLabel_e57b8{color:var(--aui-table-fg-primary)}.aub_styles-module_sortIcon_0a409,.aub_styles-module_filterIcon_ad45e,.aub_styles-module_sortMark_e22c1,.aub_styles-module_chevron_8c778{flex-shrink:0;width:1em;height:1em;color:var(--aui-table-fg-muted)}.aub_styles-module_filterIcon_ad45e[data-active],.aub_styles-module_sortMark_e22c1{color:var(--aui-table-fg-danger)}.aub_styles-module_panel_b14cb.aub_styles-module_panel_b14cb{width:var(--aui-table-filter-min-w);min-width:0;max-width:var(--aui-table-filter-min-w);overflow:visible}.aub_styles-module_sortList_f8a4a{display:flex;flex-direction:column;gap:var(--aui-table-action-gap)}.aub_styles-module_sortItem_60ebf{display:flex;align-items:center;justify-content:space-between;gap:var(--aui-table-sort-gap);width:100%;margin:0;padding:var(--aui-table-action-gap) var(--aui-table-pad-x-sm);border:none;border-radius:var(--aui-table-radius-md);background:transparent;color:var(--aui-table-fg-primary);font:inherit;text-align:start;cursor:pointer;position:relative;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out)}.aub_styles-module_sortItem_60ebf:hover{background:var(--aui-table-sort-bg-hover)}.aub_styles-module_sortItem_60ebf:active{background:var(--aui-table-sort-bg-active)}.aub_styles-module_sortItem_60ebf:focus-visible{outline:none}.aub_styles-module_divider_a4798{height:1px;margin:var(--aui-table-filter-sort-gap) 0;background:var(--aui-table-border-primary)}@media(prefers-reduced-motion:reduce){.aub_styles-module_sortItem_60ebf{transition:none}}.aub_styles-module_root_25792{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);margin:0;padding:0;border:none;background:transparent;color:inherit;font:inherit;cursor:pointer;border-radius:var(--aui-table-radius-md);width:100%;max-width:100%;text-align:inherit;justify-content:start;position:relative}.aub_styles-module_root_25792:focus-visible{outline:none}.aub_styles-module_label_d7503{color:var(--aui-table-fg-primary)}.aub_styles-module_icon_a73d0{flex-shrink:0;width:1em;height:1em;color:var(--aui-table-fg-muted);opacity:.55;transition:color var(--aui-table-duration-fast) var(--aui-table-ease-out),opacity var(--aui-table-duration-fast) var(--aui-table-ease-out),transform var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_icon_a73d0{transition:none}}.aub_styles-module_root_25792:hover .aub_styles-module_icon_a73d0{opacity:1;color:var(--aui-table-fg-primary)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_label_d7503{font-weight:var(--aui-table-font-weight-sorted)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_icon_a73d0{color:var(--aui-table-accent-active);opacity:1;transform:scale(1.15)}.aub_styles-module_root_25792[data-sorted]:hover .aub_styles-module_icon_a73d0{color:var(--aui-table-accent-active)}.aub_styles-module_root_25792[data-sorted] .aub_styles-module_asc_29781{transform:rotate(180deg) scale(1.15)}.aub_styles-module_root_ab198{padding:var(--aui-table-pad-y) var(--aui-table-pad-x);vertical-align:middle;text-align:start;font-weight:var(--aui-table-font-weight-header);color:var(--aui-table-fg-header);box-sizing:border-box;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_root_ab198{transition:none}}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]),.aub_styles-module_root_ab198[data-filter]{position:relative;padding:0}.aub_styles-module_root_ab198[data-sortable]:focus-within,.aub_styles-module_root_ab198[data-filter]:focus-within{z-index:2}.aub_styles-module_sticky_5f518{position:sticky;top:0;z-index:var(--aui-table-z-sticky);background:var(--aui-table-bg-header)}.aub_styles-module_sticky_5f518[data-sortable]:not([data-filter]),.aub_styles-module_sticky_5f518[data-filter]{position:sticky}.aub_styles-module_sticky_5f518[data-sortable]:focus-within,.aub_styles-module_sticky_5f518[data-filter]:focus-within{z-index:calc(var(--aui-table-z-sticky) + 1)}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]):hover,.aub_styles-module_root_ab198[data-filter]:hover{background:var(--aui-table-bg-hover)}.aub_styles-module_numeric_c623f{text-align:end;font-variant-numeric:tabular-nums}.aub_styles-module_alignStart_874f7{text-align:start}.aub_styles-module_alignEnd_b80f1{text-align:end}.aub_styles-module_alignCenter_0eb45{text-align:center}.aub_styles-module_noWrap_b3b77{white-space:nowrap}.aub_styles-module_utility_d7a98{width:1%;white-space:nowrap;padding-left:var(--aui-table-pad-x-utility);padding-right:var(--aui-table-pad-x-utility)}.aub_styles-module_utility_d7a98[data-sortable]:not([data-filter]),.aub_styles-module_utility_d7a98[data-filter]{padding:0}.aub_styles-module_content_cfe0e{display:inline-flex;align-items:center;gap:var(--aui-table-sort-gap);max-width:100%}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e,.aub_styles-module_root_ab198[data-filter] .aub_styles-module_content_cfe0e{display:flex;width:100%;height:100%}.aub_styles-module_root_ab198[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_root_ab198[data-filter] .aub_styles-module_content_cfe0e>*{width:100%;box-sizing:border-box;padding:var(--aui-table-pad-y) var(--aui-table-pad-x)}.aub_styles-module_utility_d7a98[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_utility_d7a98[data-filter] .aub_styles-module_content_cfe0e>*{padding-left:var(--aui-table-pad-x-utility);padding-right:var(--aui-table-pad-x-utility)}.aub_styles-module_numeric_c623f[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignEnd_b80f1[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_numeric_c623f[data-filter] .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignEnd_b80f1[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:end}.aub_styles-module_alignCenter_0eb45[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignCenter_0eb45[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:center}.aub_styles-module_alignStart_874f7[data-sortable]:not([data-filter]) .aub_styles-module_content_cfe0e>*,.aub_styles-module_alignStart_874f7[data-filter] .aub_styles-module_content_cfe0e>*{justify-content:start}.aub_styles-module_root_78429{box-sizing:border-box;width:var(--aui-table-checkbox-w);min-width:var(--aui-table-checkbox-w);max-width:var(--aui-table-checkbox-w);text-align:center;vertical-align:middle;line-height:0}.aub_styles-module_root_6aae8{display:inline-flex;align-items:center;gap:var(--aui-table-page-size-gap);flex-shrink:0}.aub_styles-module_label_2bcb7{color:var(--aui-table-fg-muted);white-space:nowrap}.aub_styles-module_select_a3d31{width:auto;min-width:var(--aui-spacing-64)}.aub_styles-module_root_b4bb7{display:flex;align-items:center;gap:var(--aui-table-pagination-gap);margin-inline-start:auto}.aub_styles-module_range_def38{color:var(--aui-table-fg-muted);white-space:nowrap;line-height:1}.aub_styles-module_list_dd1ba{display:flex;align-items:center;gap:var(--aui-table-pagination-gap);margin:0;padding:0;list-style:none}.aub_styles-module_item_817c3{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);padding:0 var(--aui-table-pagination-item-pad-x);margin:0;border:none;background:transparent;color:var(--aui-table-fg-primary);font:inherit;line-height:1;cursor:pointer}.aub_styles-module_item_817c3:hover:not(:disabled):not([aria-current=page]){background:var(--aui-table-bg-hover);border-radius:50%}.aub_styles-module_item_817c3:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:2px;border-radius:50%}.aub_styles-module_item_817c3[aria-current=page]{background:var(--aui-table-pagination-current-bg);color:var(--aui-table-fg-primary);border-radius:50%;cursor:default}.aub_styles-module_item_817c3:disabled{color:var(--aui-table-fg-disabled);cursor:not-allowed}.aub_styles-module_ellipsis_45def{display:inline-flex;align-items:center;justify-content:center;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);color:var(--aui-table-fg-muted);-webkit-user-select:none;user-select:none}.aub_styles-module_control_216a4{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:var(--aui-table-pagination-item-size);min-height:var(--aui-table-pagination-item-size);padding:0;margin:0;border:none;border-radius:50%;background:transparent;color:var(--aui-table-fg-primary);font:inherit;line-height:1;cursor:pointer}.aub_styles-module_control_216a4:hover:not(:disabled){background:var(--aui-table-bg-hover)}.aub_styles-module_control_216a4:focus-visible{outline:2px solid var(--aui-table-border-focus);outline-offset:2px}.aub_styles-module_control_216a4:disabled{color:var(--aui-table-fg-disabled);cursor:not-allowed}.aub_styles-module_chevron_903a0{flex-shrink:0;width:var(--aui-table-pagination-chevron-size);height:var(--aui-table-pagination-chevron-size)}.aub_styles-module_root_880a9{position:relative;transition:background-color var(--aui-table-duration-fast) var(--aui-table-ease-out),box-shadow var(--aui-table-duration-fast) var(--aui-table-ease-out)}@media(prefers-reduced-motion:reduce){.aub_styles-module_root_880a9{transition:none}}.aub_styles-module_root_880a9[data-clickable],tbody .aub_styles-module_root_880a9:has(input[type=checkbox]){cursor:pointer}tbody .aub_styles-module_root_880a9:not([data-disabled]):not([data-checked]):hover>td{background:var(--aui-table-bg-hover)}.aub_styles-module_root_880a9[data-checked]>td{background:var(--aui-table-bg-selected)}.aub_styles-module_root_880a9[data-disabled]{color:var(--aui-table-fg-disabled);opacity:.56;pointer-events:none;cursor:default}.aub_styles-module_root_880a9[data-disabled]:hover{background:transparent}.aub_styles-module_root_880a9[data-disabled][data-checked]{background:var(--aui-table-bg-selected)}.aub_styles-module_root_880a9:focus-visible{outline:none}.aub_styles-module_root_4a623{display:flex;flex-direction:column;min-height:0;color:var(--aui-table-fg-primary);background:var(--aui-table-bg-primary)}.aub_styles-module_scroll_fd039{flex:1 1 auto;min-height:0;min-width:0;overflow:auto}.aub_styles-module_block_5507d{width:100%}.aub_styles-module_table_4f242{width:100%;border-collapse:separate;border-spacing:0;table-layout:auto}.aub_styles-module_hasChecked_5267f{--aui-table-checkbox-slot: var(--aui-table-checkbox-w)}.aub_styles-module_zebra_6672f tbody tr:nth-child(odd):not([data-checked]):not(:hover)>td{background:var(--aui-table-bg-zebra)}.aub_styles-module_sm_8a2a2{--aui-table-pad-x: var(--aui-table-pad-x-sm);--aui-table-pad-y: var(--aui-table-pad-y-sm)}.aub_styles-module_md_72133{--aui-table-pad-x: var(--aui-table-pad-x-md);--aui-table-pad-y: var(--aui-table-pad-y-md)}.aub_styles-module_lg_df04a{--aui-table-pad-x: var(--aui-table-pad-x-lg);--aui-table-pad-y: var(--aui-table-pad-y-lg)}
@@ -1,53 +0,0 @@
1
- import { createContext as i, useContext as o } from "react";
2
- const s = {
3
- close: "Закрыть",
4
- clear: "Очистить",
5
- confirm: "Подтвердить",
6
- cancel: "Отмена",
7
- delete: "Удалить",
8
- notDelete: "Не удалять",
9
- loading: "Загрузка",
10
- loadingSuggestions: "Загрузка подсказок",
11
- noSuggestions: "Ничего не найдено",
12
- suggestionsError: "Не удалось загрузить подсказки",
13
- moreSelected: "ещё выбрано",
14
- openCalendar: "Открыть календарь",
15
- pageSize: "Строк на странице",
16
- paginationPrev: "Назад",
17
- paginationNext: "Далее",
18
- paginationPage: "Страница {page}",
19
- paginationRange: "{from}–{to} из {total}",
20
- collapseSidebar: "Свернуть меню",
21
- expandSidebar: "Развернуть меню",
22
- resizeSidebar: "Изменить ширину меню",
23
- pinMenuItem: "Закрепить",
24
- unpinMenuItem: "Открепить",
25
- pinnedSection: "Закреплённые",
26
- pinnedSectionHint: "ПКМ по пункту меню, чтобы закрепить",
27
- searchMenu: "Поиск по меню",
28
- searchMenuEmpty: "Ничего не найдено",
29
- openInNewTab: "Открыть в новой вкладке",
30
- sortAscending: "По возрастанию",
31
- sortDescending: "По убыванию",
32
- moreActions: "Ещё действия",
33
- save: "Сохранить",
34
- arrangementList: "Элементы",
35
- clearFilters: "Очистить",
36
- copy: "Копировать",
37
- copied: "Скопировано: {value}",
38
- copyFailed: "Не удалось скопировать"
39
- }, t = i(null), e = () => {
40
- const n = o(t);
41
- if (!n)
42
- throw new Error("AdminUiProvider is required. Wrap the app with <AdminUiProvider>.");
43
- return n;
44
- }, r = () => e().labels, c = () => e().locale, l = () => e().direction, u = () => e().linkComponent ?? "a";
45
- export {
46
- t as A,
47
- l as a,
48
- u as b,
49
- c,
50
- s as d,
51
- r as u
52
- };
53
- //# sourceMappingURL=hooks-BlX5Y4Zt.js.map