@ensi-platform/admin-ui 0.7.0 → 0.8.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 (138) hide show
  1. package/dist/{Component-B2_pbcdj.js → Component-BnSNDZFt.js} +3 -3
  2. package/dist/{Component-B2_pbcdj.js.map → Component-BnSNDZFt.js.map} +1 -1
  3. package/dist/{Component-BiiaP51W.js → Component-C6mp0LOp.js} +2 -2
  4. package/dist/{Component-BiiaP51W.js.map → Component-C6mp0LOp.js.map} +1 -1
  5. package/dist/{Component-7vxv_s32.js → Component-CDgOJr89.js} +2 -2
  6. package/dist/{Component-7vxv_s32.js.map → Component-CDgOJr89.js.map} +1 -1
  7. package/dist/{Component-CRVPfwqm.js → Component-CIxKpL6s.js} +3 -3
  8. package/dist/{Component-CRVPfwqm.js.map → Component-CIxKpL6s.js.map} +1 -1
  9. package/dist/{Component-KNlwEG00.js → Component-D25FKJAT.js} +2 -2
  10. package/dist/{Component-KNlwEG00.js.map → Component-D25FKJAT.js.map} +1 -1
  11. package/dist/{Component-DFwWbzFS.js → Component-D310jlAj.js} +2 -2
  12. package/dist/{Component-DFwWbzFS.js.map → Component-D310jlAj.js.map} +1 -1
  13. package/dist/{Component-gOj-4jKv.js → Component-XnDMb714.js} +3 -3
  14. package/dist/{Component-gOj-4jKv.js.map → Component-XnDMb714.js.map} +1 -1
  15. package/dist/{Component-Dkvzqo0L.js → Component-ZIAMtMpP.js} +2 -2
  16. package/dist/{Component-Dkvzqo0L.js.map → Component-ZIAMtMpP.js.map} +1 -1
  17. package/dist/{Component-DhhrZEMr.js → Component-qJGssCB4.js} +3 -3
  18. package/dist/{Component-DhhrZEMr.js.map → Component-qJGssCB4.js.map} +1 -1
  19. package/dist/Copy-DBU7bgFo.js +28 -0
  20. package/dist/Copy-DBU7bgFo.js.map +1 -0
  21. package/dist/action-popup/index.js +2 -2
  22. package/dist/active-filters/index.js +2 -2
  23. package/dist/arrangement-settings/index.js +3 -3
  24. package/dist/assets/index.css +1 -1
  25. package/dist/assets/index10.css +1 -1
  26. package/dist/assets/index11.css +1 -1
  27. package/dist/assets/index12.css +1 -1
  28. package/dist/assets/index13.css +1 -1
  29. package/dist/assets/index14.css +1 -1
  30. package/dist/assets/index15.css +1 -1
  31. package/dist/assets/index16.css +1 -1
  32. package/dist/assets/index17.css +1 -1
  33. package/dist/assets/index18.css +1 -1
  34. package/dist/assets/index19.css +1 -1
  35. package/dist/assets/index2.css +1 -1
  36. package/dist/assets/index20.css +1 -1
  37. package/dist/assets/index21.css +1 -1
  38. package/dist/assets/index22.css +1 -1
  39. package/dist/assets/index23.css +1 -1
  40. package/dist/assets/index24.css +1 -1
  41. package/dist/assets/index25.css +1 -1
  42. package/dist/assets/index26.css +1 -1
  43. package/dist/assets/index27.css +1 -1
  44. package/dist/assets/index28.css +1 -1
  45. package/dist/assets/index29.css +1 -1
  46. package/dist/assets/index3.css +1 -1
  47. package/dist/assets/index30.css +1 -0
  48. package/dist/assets/index31.css +1 -0
  49. package/dist/assets/index4.css +1 -1
  50. package/dist/assets/index5.css +1 -1
  51. package/dist/assets/index6.css +1 -1
  52. package/dist/assets/index7.css +1 -1
  53. package/dist/assets/index8.css +1 -1
  54. package/dist/assets/index9.css +1 -1
  55. package/dist/autocomplete/index.js +1 -1
  56. package/dist/autocomplete-async/index.js +1 -1
  57. package/dist/avatar/index.js +1 -1
  58. package/dist/badge/index.js +1 -1
  59. package/dist/bottom-sheet/index.js +2 -2
  60. package/dist/cascade-menu/index.js +3 -3
  61. package/dist/checkbox-group/index.js +1 -1
  62. package/dist/combobox/index.js +4 -4
  63. package/dist/copy-button/Component.d.ts +5 -0
  64. package/dist/copy-button/Component.d.ts.map +1 -0
  65. package/dist/copy-button/index.d.ts +3 -0
  66. package/dist/copy-button/index.d.ts.map +1 -0
  67. package/dist/copy-button/index.js +97 -0
  68. package/dist/copy-button/index.js.map +1 -0
  69. package/dist/copy-button/types.d.ts +14 -0
  70. package/dist/copy-button/types.d.ts.map +1 -0
  71. package/dist/data-table/index.js +3 -3
  72. package/dist/date-picker/index.js +3 -3
  73. package/dist/date-range-picker/index.js +3 -3
  74. package/dist/drawer/index.js +1 -1
  75. package/dist/filters/index.js +1 -1
  76. package/dist/flex-layout/Component.d.ts +9 -0
  77. package/dist/flex-layout/Component.d.ts.map +1 -0
  78. package/dist/flex-layout/components/Item/index.d.ts +5 -0
  79. package/dist/flex-layout/components/Item/index.d.ts.map +1 -0
  80. package/dist/flex-layout/index.d.ts +3 -0
  81. package/dist/flex-layout/index.d.ts.map +1 -0
  82. package/dist/flex-layout/index.js +93 -0
  83. package/dist/flex-layout/index.js.map +1 -0
  84. package/dist/flex-layout/types.d.ts +41 -0
  85. package/dist/flex-layout/types.d.ts.map +1 -0
  86. package/dist/grid/index.js +1 -1
  87. package/dist/{hooks-BAkrGC45.js → hooks-BlX5Y4Zt.js} +9 -6
  88. package/dist/hooks-BlX5Y4Zt.js.map +1 -0
  89. package/dist/icons/index.js +80 -100
  90. package/dist/icons/index.js.map +1 -1
  91. package/dist/{index-yKOPreNy.js → index-BXlN61PG.js} +2 -2
  92. package/dist/{index-yKOPreNy.js.map → index-BXlN61PG.js.map} +1 -1
  93. package/dist/{index-bdpk2nvt.js → index-CDCqZ3um.js} +3 -3
  94. package/dist/{index-bdpk2nvt.js.map → index-CDCqZ3um.js.map} +1 -1
  95. package/dist/{index-B0l1op71.js → index-tPhlowOw.js} +4 -4
  96. package/dist/{index-B0l1op71.js.map → index-tPhlowOw.js.map} +1 -1
  97. package/dist/input/index.js +1 -1
  98. package/dist/loader/index.js +2 -2
  99. package/dist/menu-list/index.js +1 -1
  100. package/dist/{metrics-C8FBvbwl.js → metrics-B5YsELiI.js} +2 -2
  101. package/dist/{metrics-C8FBvbwl.js.map → metrics-B5YsELiI.js.map} +1 -1
  102. package/dist/modal/index.js +1 -1
  103. package/dist/multi-autocomplete/index.js +1 -1
  104. package/dist/multi-autocomplete-async/index.js +1 -1
  105. package/dist/multi-select/index.js +3 -3
  106. package/dist/number-input/index.js +1 -1
  107. package/dist/number-range/index.js +2 -2
  108. package/dist/provider/context.d.ts.map +1 -1
  109. package/dist/provider/index.js +3 -3
  110. package/dist/provider/types.d.ts +6 -0
  111. package/dist/provider/types.d.ts.map +1 -1
  112. package/dist/select/index.js +1 -1
  113. package/dist/slider/index.js +1 -1
  114. package/dist/suggest-checklist/index.js +4 -4
  115. package/dist/switch/index.js +1 -1
  116. package/dist/table/index.js +1 -1
  117. package/dist/tabs/index.js +1 -1
  118. package/dist/tag/index.js +1 -1
  119. package/dist/textarea/index.js +2 -2
  120. package/dist/time-field/index.js +2 -2
  121. package/dist/toast/index.js +2 -2
  122. package/dist/typography/index.js +1 -1
  123. package/dist/{utils-DUOIRqE-.js → utils-Dj_u-w0s.js} +3 -3
  124. package/dist/{utils-DUOIRqE-.js.map → utils-Dj_u-w0s.js.map} +1 -1
  125. package/dist/vertical-tabs/index.js +1 -1
  126. package/docs/design-language.md +3 -3
  127. package/docs/skills/SKILL.md +2 -0
  128. package/package.json +9 -1
  129. package/src/copy-button/docs/Description.md +23 -0
  130. package/src/copy-button/docs/Example.md +5 -0
  131. package/src/copy-button/docs/cssVariables.ts +12 -0
  132. package/src/copy-button/types.ts +16 -0
  133. package/src/flex-layout/docs/Description.md +27 -0
  134. package/src/flex-layout/docs/Example.md +11 -0
  135. package/src/flex-layout/docs/cssVariables.ts +13 -0
  136. package/src/flex-layout/types.ts +49 -0
  137. package/src/provider/types.ts +6 -0
  138. package/dist/hooks-BAkrGC45.js.map +0 -1
@@ -48,11 +48,11 @@ Z-order: L0+flyout (`--aui-z-chrome`) above a sticky table (`--aui-table-z-stick
48
48
 
49
49
  ## Screens (assembled from Base)
50
50
 
51
- Primitives: `CascadeMenu` / `MenuList`, `Button`, `Tag`, `Badge`, `Table`, `Tabs`, `VerticalTabs`, `Field` + controls, and `Drawer` when needed.
51
+ Primitives: `CascadeMenu` / `MenuList`, `Button`, `Tag`, `Badge`, `Table`, `Tabs`, `VerticalTabs`, `Grid`, `FlexLayout`, `Field` + controls, and `Drawer` when needed.
52
52
 
53
53
  ### List — table
54
54
 
55
- - title (`headingM`); `Button` secondary “Filters” + primary “+ New …”
55
+ - title (`headingM`) and buttons on one line — `FlexLayout`; `Button` secondary “Filters” + primary “+ New …”
56
56
  - applied filters: `ActiveFilters` (`Tag` + a “Clear” link) — **no** bordered bar around the row
57
57
  - `Table` flush on `page` — **no** outer rounded card
58
58
  - status in a cell — `Badge` (tint only)
@@ -69,7 +69,7 @@ Primitives: `CascadeMenu` / `MenuList`, `Button`, `Tag`, `Badge`, `Table`, `Tabs
69
69
 
70
70
  ### Detail
71
71
 
72
- - back link; title + `Badge`; `⋯` + primary “Save”
72
+ - back link; title + `Badge` and buttons — `FlexLayout`; `⋯` + primary “Save”
73
73
  - page sections — underline `Tabs` (not a pill row with a border)
74
74
  - sections inside one tab — `VerticalTabs` (column on the left, panel on the right)
75
75
  - sections: H2 + gap; fields on `page` in `Grid` — **no** card per section
@@ -61,6 +61,8 @@ Import `@ensi-platform/admin-ui/<folder>` (`button`, `date-picker`, …). Inside
61
61
  | Sections of one page or entity card. Underline, not a pill row | `Tabs` | bordered segment buttons; vertical tabs inside a tab — `VerticalTabs` |
62
62
  | Vertical tabs inside one page tab: column on the left, panel on the right. Column width, gap, and selected fill are `--aui-vertical-tabs-*` | `VerticalTabs` | underline page tabs — `Tabs` |
63
63
  | Equal columns of fields, or an explicit track split (`cols` number or track list, `Grid.Item` `col="full"`). Gap is a spacing step | `Grid` | `Filters.Grid`, which is only the list-filter grid |
64
+ | A row or a stack: page title and buttons, or a button group. `FlexLayout.Item` `grow` takes the free space. Gap is a spacing step | `FlexLayout` | equal field columns — `Grid` |
65
+ | A short value the user copies (order id, number). Link style; tooltip shows the copied value, or that the copy failed | `CopyButton` | a plain `Button` |
64
66
  | Filters or details at the side. Long content that must not cover the viewport the way `Modal` does | `Drawer` | a nested card on the page; on mobile — `BottomSheet` |
65
67
  | The same panel on a narrow screen, dismissed with a swipe down | `BottomSheet` | a side `Drawer` |
66
68
  | Filter form of a list page. Fields sit on the page: no card and no muted bar. A date or a range may span more columns than a short field | `Filters` | applied chips — `ActiveFilters`; which fields exist and their order — `ArrangementSettings` |
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ensi-platform/admin-ui",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "Admin UI for Ensi admin panel",
5
5
  "type": "module",
6
6
  "sideEffects": [
@@ -117,6 +117,10 @@
117
117
  "types": "./dist/context-menu/index.d.ts",
118
118
  "import": "./dist/context-menu/index.js"
119
119
  },
120
+ "./copy-button": {
121
+ "types": "./dist/copy-button/index.d.ts",
122
+ "import": "./dist/copy-button/index.js"
123
+ },
120
124
  "./data-table": {
121
125
  "types": "./dist/data-table/index.d.ts",
122
126
  "import": "./dist/data-table/index.js"
@@ -141,6 +145,10 @@
141
145
  "types": "./dist/filters/index.d.ts",
142
146
  "import": "./dist/filters/index.js"
143
147
  },
148
+ "./flex-layout": {
149
+ "types": "./dist/flex-layout/index.d.ts",
150
+ "import": "./dist/flex-layout/index.js"
151
+ },
144
152
  "./form": {
145
153
  "types": "./dist/form/index.d.ts",
146
154
  "import": "./dist/form/index.js"
@@ -0,0 +1,23 @@
1
+ A link-styled button that shows a text and copies it.
2
+
3
+ ```tsx
4
+ import { CopyButton } from '@ensi-platform/admin-ui/copy-button';
5
+ ```
6
+
7
+ ## When to use
8
+
9
+ - a short id the user copies: an order number, a code, an article
10
+ - the text stays visible
11
+ - hover shows “Copy”; after success the tooltip shows what was copied; a failure says the copy did not work
12
+
13
+ A plain action uses `Button` or `Link`.
14
+
15
+ ## API (short)
16
+
17
+ | Prop | Values | Default | Description |
18
+ | ------------ | -------- | ------- | ------------------------------------------ |
19
+ | `children` | `string` | — | button text and the clipboard value |
20
+ | `timeout` | `number` | `1000` | how long the success or error tooltip stays, in ms |
21
+ | `dataTestId` | `string` | — | `data-test-id` for tests |
22
+
23
+ Names come from `AdminUiProvider`: `labels.copy`, `labels.copied` (`{value}` is the copied text), `labels.copyFailed`.
@@ -0,0 +1,5 @@
1
+ ## Example
2
+
3
+ ```tsx
4
+ <CopyButton>{order.number}</CopyButton>
5
+ ```
@@ -0,0 +1,12 @@
1
+ /** Copy button CSS variables from semantic tokens (--aui-copy-button-*). */
2
+ export const docsCssVariables = `/* CSS variables — CopyButton (--aui-copy-button-*) */
3
+ --aui-copy-button-fg: var(--aui-link-fg); /* text */
4
+ --aui-copy-button-fg-hover: var(--aui-link-fg-hover); /* hover */
5
+ --aui-copy-button-fg-active: var(--aui-page-fg-primary); /* pressed */
6
+ --aui-copy-button-fg-copied: var(--aui-green-700); /* copied */
7
+ --aui-copy-button-fg-danger: var(--aui-control-fg-danger); /* copy failed */
8
+ --aui-copy-button-border-focus: var(--aui-link-border-focus); /* focus ring */
9
+ --aui-copy-button-gap: var(--aui-spacing-4); /* text to icon */
10
+ --aui-copy-button-icon-size: var(--aui-spacing-16); /* icon size */
11
+ --aui-copy-button-duration-fast: var(--aui-link-duration-fast); /* color transition */
12
+ --aui-copy-button-ease-out: var(--aui-link-ease-out); /* color easing */`;
@@ -0,0 +1,16 @@
1
+ import { type ComponentPropsWithRef, type Ref } from 'react';
2
+
3
+ import { type IDataTestIdProps } from '@ds/common';
4
+
5
+ /** Own / chrome props (not from DOM). */
6
+ export interface ICopyButtonOwnProps extends IDataTestIdProps {
7
+ /** Text shown and written to the clipboard. */
8
+ children: string;
9
+ /** How long the success icon stays, in milliseconds. */
10
+ timeout?: number;
11
+ /** Ref to the button (React 19 prop). */
12
+ ref?: Ref<HTMLButtonElement>;
13
+ }
14
+
15
+ export interface ICopyButtonProps
16
+ extends Omit<ComponentPropsWithRef<'button'>, keyof ICopyButtonOwnProps | 'children'>, ICopyButtonOwnProps {}
@@ -0,0 +1,27 @@
1
+ A row or a column with a gap: a title and actions, or several blocks stacked.
2
+
3
+ ```tsx
4
+ import { FlexLayout } from '@ensi-platform/admin-ui/flex-layout';
5
+ ```
6
+
7
+ ## When to use
8
+
9
+ - a page title and its buttons on one line
10
+ - several buttons side by side
11
+ - a stack of blocks when equal columns are not needed
12
+
13
+ Equal field columns use `Grid`.
14
+
15
+ ## API (short)
16
+
17
+ | Prop | Values | Default | Description |
18
+ | ------------ | --------------------------------------------- | --------- | ------------------------------ |
19
+ | `direction` | `row` \| `column` | `row` | axis |
20
+ | `gap` | `0` \| `4` \| `8` \| `12` \| `16` \| … \| `64` | `16` | gap, a spacing-scale step |
21
+ | `align` | `start` \| `center` \| `end` \| `stretch` | `stretch` | cross-axis alignment |
22
+ | `justify` | `start` \| `center` \| `end` \| `between` | `start` | main-axis distribution |
23
+ | `wrap` | `boolean` | `false` | wrap onto the next line |
24
+ | `hidden` | `boolean` | `false` | removes the row from layout |
25
+ | `dataTestId` | `string` | — | `data-test-id` for tests |
26
+
27
+ `FlexLayout.Item` `grow` takes the free space on the main axis.
@@ -0,0 +1,11 @@
1
+ ## Example
2
+
3
+ ```tsx
4
+ <FlexLayout align="center" justify="between">
5
+ <h1>Order</h1>
6
+ <FlexLayout gap={8}>
7
+ <Button variant="secondary">Cancel</Button>
8
+ <Button>Save</Button>
9
+ </FlexLayout>
10
+ </FlexLayout>
11
+ ```
@@ -0,0 +1,13 @@
1
+ /** Flex layout CSS variables from semantic tokens (--aui-flex-layout-*). */
2
+ export const docsCssVariables = `/* CSS variables — FlexLayout (--aui-flex-layout-*) */
3
+ --aui-flex-layout-gap-0: 0; /* no gap */
4
+ --aui-flex-layout-gap-4: var(--aui-spacing-4); /* gap 4 */
5
+ --aui-flex-layout-gap-8: var(--aui-spacing-8); /* gap 8 */
6
+ --aui-flex-layout-gap-12: var(--aui-spacing-12); /* gap 12 */
7
+ --aui-flex-layout-gap-16: var(--aui-spacing-16); /* gap 16 */
8
+ --aui-flex-layout-gap-20: var(--aui-spacing-20); /* gap 20 */
9
+ --aui-flex-layout-gap-24: var(--aui-spacing-24); /* gap 24 */
10
+ --aui-flex-layout-gap-32: var(--aui-spacing-32); /* gap 32 */
11
+ --aui-flex-layout-gap-40: var(--aui-spacing-40); /* gap 40 */
12
+ --aui-flex-layout-gap-48: var(--aui-spacing-48); /* gap 48 */
13
+ --aui-flex-layout-gap-64: var(--aui-spacing-64); /* gap 64 */`;
@@ -0,0 +1,49 @@
1
+ import { type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
2
+
3
+ import { type IDataTestIdProps } from '@ds/common';
4
+
5
+ /** Gap step. Matches the spacing scale. */
6
+ export type TFlexLayoutGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
7
+
8
+ /** Main axis. */
9
+ export type TFlexLayoutDirection = 'row' | 'column';
10
+
11
+ /** Cross-axis alignment. */
12
+ export type TFlexLayoutAlign = 'start' | 'center' | 'end' | 'stretch';
13
+
14
+ /** Main-axis distribution. */
15
+ export type TFlexLayoutJustify = 'start' | 'center' | 'end' | 'between';
16
+
17
+ /** Own props for FlexLayout. */
18
+ export interface IFlexLayoutOwnProps extends IDataTestIdProps {
19
+ children: ReactNode;
20
+ /** Row or column. */
21
+ direction?: TFlexLayoutDirection;
22
+ /** Gap between items. */
23
+ gap?: TFlexLayoutGap;
24
+ /** Cross-axis alignment. */
25
+ align?: TFlexLayoutAlign;
26
+ /** Main-axis distribution. */
27
+ justify?: TFlexLayoutJustify;
28
+ /** Wrap items onto the next line. */
29
+ wrap?: boolean;
30
+ /** Removes the layout from the page. */
31
+ hidden?: boolean;
32
+ /** Ref to the layout (React 19 prop). */
33
+ ref?: Ref<HTMLDivElement>;
34
+ }
35
+
36
+ export interface IFlexLayoutProps
37
+ extends Omit<ComponentPropsWithRef<'div'>, keyof IFlexLayoutOwnProps | 'children'>, IFlexLayoutOwnProps {}
38
+
39
+ /** Own props for FlexLayout.Item. */
40
+ export interface IFlexLayoutItemOwnProps extends IDataTestIdProps {
41
+ children: ReactNode;
42
+ /** Take the free space on the main axis. */
43
+ grow?: boolean;
44
+ /** Ref to the item (React 19 prop). */
45
+ ref?: Ref<HTMLDivElement>;
46
+ }
47
+
48
+ export interface IFlexLayoutItemProps
49
+ extends Omit<ComponentPropsWithRef<'div'>, keyof IFlexLayoutItemOwnProps | 'children'>, IFlexLayoutItemOwnProps {}
@@ -64,6 +64,12 @@ export interface IAuiLabels {
64
64
  arrangementList: string;
65
65
  /** ActiveFilters: clear the whole row. */
66
66
  clearFilters: string;
67
+ /** CopyButton: idle accessible name prefix. */
68
+ copy: string;
69
+ /** CopyButton: success tooltip. `{value}` is the copied text. */
70
+ copied: string;
71
+ /** CopyButton: clipboard failure tooltip. */
72
+ copyFailed: string;
67
73
  }
68
74
 
69
75
  export type TAuiLabels = IAuiLabels;
@@ -1 +0,0 @@
1
- {"version":3,"file":"hooks-BAkrGC45.js","sources":["../src/provider/context.ts","../src/provider/hooks.ts"],"sourcesContent":["import { createContext } from 'react';\n\nimport { type IAuiContextValue, type IAuiLabels } from './types';\n\nexport const defaultLabels: IAuiLabels = {\n close: 'Закрыть',\n clear: 'Очистить',\n confirm: 'Подтвердить',\n cancel: 'Отмена',\n delete: 'Удалить',\n notDelete: 'Не удалять',\n loading: 'Загрузка',\n loadingSuggestions: 'Загрузка подсказок',\n noSuggestions: 'Ничего не найдено',\n suggestionsError: 'Не удалось загрузить подсказки',\n moreSelected: 'ещё выбрано',\n openCalendar: 'Открыть календарь',\n pageSize: 'Строк на странице',\n paginationPrev: 'Назад',\n paginationNext: 'Далее',\n paginationPage: 'Страница {page}',\n paginationRange: '{from}–{to} из {total}',\n collapseSidebar: 'Свернуть меню',\n expandSidebar: 'Развернуть меню',\n resizeSidebar: 'Изменить ширину меню',\n pinMenuItem: 'Закрепить',\n unpinMenuItem: 'Открепить',\n pinnedSection: 'Закреплённые',\n pinnedSectionHint: 'ПКМ по пункту меню, чтобы закрепить',\n searchMenu: 'Поиск по меню',\n searchMenuEmpty: 'Ничего не найдено',\n openInNewTab: 'Открыть в новой вкладке',\n sortAscending: 'По возрастанию',\n sortDescending: 'По убыванию',\n moreActions: 'Ещё действия',\n save: 'Сохранить',\n arrangementList: 'Элементы',\n clearFilters: 'Очистить',\n};\n\nexport const AuiContext = createContext<IAuiContextValue | null>(null);\n","import { useContext } from 'react';\n\nimport { AuiContext } from './context';\nimport { type IAuiContextValue, type IAuiLabels, type TAuiLinkComponent, type TTextDirection } from './types';\n\nconst useAuiContext = (): IAuiContextValue => {\n const context = useContext(AuiContext);\n\n if (!context) {\n throw new Error('AdminUiProvider is required. Wrap the app with <AdminUiProvider>.');\n }\n\n return context;\n};\n\nexport const useAuiLabels = (): IAuiLabels => useAuiContext().labels;\n\nexport const useAuiLocale = (): string => useAuiContext().locale;\n\nexport const useAuiDirection = (): TTextDirection => useAuiContext().direction;\n\n/** Host router link from AdminUiProvider. Defaults to `a`. */\nexport const useAuiLink = (): TAuiLinkComponent => useAuiContext().linkComponent ?? 'a';\n"],"names":["defaultLabels","AuiContext","createContext","useAuiContext","context","useContext","useAuiLabels","useAuiLocale","useAuiDirection","useAuiLink"],"mappings":";AAIO,MAAMA,IAA4B;AAAA,EACrC,OAAO;AAAA,EACP,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,EACR,QAAQ;AAAA,EACR,WAAW;AAAA,EACX,SAAS;AAAA,EACT,oBAAoB;AAAA,EACpB,eAAe;AAAA,EACf,kBAAkB;AAAA,EAClB,cAAc;AAAA,EACd,cAAc;AAAA,EACd,UAAU;AAAA,EACV,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,gBAAgB;AAAA,EAChB,iBAAiB;AAAA,EACjB,iBAAiB;AAAA,EACjB,eAAe;AAAA,EACf,eAAe;AAAA,EACf,aAAa;AAAA,EACb,eAAe;AAAA,EACf,eAAe;AAAA,EACf,mBAAmB;AAAA,EACnB,YAAY;AAAA,EACZ,iBAAiB;AAAA,EACjB,cAAc;AAAA,EACd,eAAe;AAAA,EACf,gBAAgB;AAAA,EAChB,aAAa;AAAA,EACb,MAAM;AAAA,EACN,iBAAiB;AAAA,EACjB,cAAc;AAClB,GAEaC,IAAaC,EAAuC,IAAI,GCnC/DC,IAAgB,MAAwB;AAC1C,QAAMC,IAAUC,EAAWJ,CAAU;AAErC,MAAI,CAACG;AACD,UAAM,IAAI,MAAM,mEAAmE;AAGvF,SAAOA;AACX,GAEaE,IAAe,MAAkBH,IAAgB,QAEjDI,IAAe,MAAcJ,IAAgB,QAE7CK,IAAkB,MAAsBL,IAAgB,WAGxDM,IAAa,MAAyBN,EAAA,EAAgB,iBAAiB;"}