@ensi-platform/admin-ui 0.7.0 → 0.8.1
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.
- package/dist/{Component-B2_pbcdj.js → Component-BnSNDZFt.js} +3 -3
- package/dist/{Component-B2_pbcdj.js.map → Component-BnSNDZFt.js.map} +1 -1
- package/dist/{Component-BiiaP51W.js → Component-C6mp0LOp.js} +2 -2
- package/dist/{Component-BiiaP51W.js.map → Component-C6mp0LOp.js.map} +1 -1
- package/dist/{Component-7vxv_s32.js → Component-CDgOJr89.js} +2 -2
- package/dist/{Component-7vxv_s32.js.map → Component-CDgOJr89.js.map} +1 -1
- package/dist/{Component-CRVPfwqm.js → Component-CIxKpL6s.js} +3 -3
- package/dist/{Component-CRVPfwqm.js.map → Component-CIxKpL6s.js.map} +1 -1
- package/dist/{Component-KNlwEG00.js → Component-D25FKJAT.js} +2 -2
- package/dist/{Component-KNlwEG00.js.map → Component-D25FKJAT.js.map} +1 -1
- package/dist/{Component-DFwWbzFS.js → Component-D310jlAj.js} +2 -2
- package/dist/{Component-DFwWbzFS.js.map → Component-D310jlAj.js.map} +1 -1
- package/dist/{Component-gOj-4jKv.js → Component-DU3MeOen.js} +3 -3
- package/dist/{Component-gOj-4jKv.js.map → Component-DU3MeOen.js.map} +1 -1
- package/dist/{Component-Dkvzqo0L.js → Component-ZIAMtMpP.js} +2 -2
- package/dist/{Component-Dkvzqo0L.js.map → Component-ZIAMtMpP.js.map} +1 -1
- package/dist/{Component-DhhrZEMr.js → Component-qJGssCB4.js} +3 -3
- package/dist/{Component-DhhrZEMr.js.map → Component-qJGssCB4.js.map} +1 -1
- package/dist/Copy-DBU7bgFo.js +28 -0
- package/dist/Copy-DBU7bgFo.js.map +1 -0
- package/dist/action-popup/index.js +2 -2
- package/dist/active-filters/index.js +2 -2
- package/dist/arrangement-settings/Component.d.ts +1 -1
- package/dist/arrangement-settings/Component.d.ts.map +1 -1
- package/dist/arrangement-settings/index.js +102 -91
- package/dist/arrangement-settings/index.js.map +1 -1
- package/dist/arrangement-settings/types.d.ts +2 -0
- package/dist/arrangement-settings/types.d.ts.map +1 -1
- package/dist/assets/Component16.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index20.css +1 -1
- package/dist/assets/index21.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index23.css +1 -1
- package/dist/assets/index24.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index26.css +1 -1
- package/dist/assets/index27.css +1 -1
- package/dist/assets/index28.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index31.css +1 -0
- package/dist/assets/index4.css +1 -1
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/autocomplete/index.js +1 -1
- package/dist/autocomplete-async/index.js +1 -1
- package/dist/avatar/index.js +1 -1
- package/dist/badge/index.js +1 -1
- package/dist/bottom-sheet/index.js +2 -2
- package/dist/cascade-menu/index.js +3 -3
- package/dist/checkbox-group/index.js +1 -1
- package/dist/combobox/index.js +4 -4
- package/dist/copy-button/Component.d.ts +5 -0
- package/dist/copy-button/Component.d.ts.map +1 -0
- package/dist/copy-button/index.d.ts.map +1 -0
- package/dist/copy-button/index.js +97 -0
- package/dist/copy-button/index.js.map +1 -0
- package/dist/copy-button/types.d.ts +14 -0
- package/dist/copy-button/types.d.ts.map +1 -0
- package/dist/data-table/index.js +3 -3
- package/dist/date-picker/index.js +3 -3
- package/dist/date-range-picker/index.js +3 -3
- package/dist/drawer/index.js +1 -1
- package/dist/filters/Component.d.ts +1 -4
- package/dist/filters/Component.d.ts.map +1 -1
- package/dist/filters/components/Body/index.d.ts +5 -0
- package/dist/filters/components/Body/index.d.ts.map +1 -0
- package/dist/filters/index.js +18 -66
- package/dist/filters/index.js.map +1 -1
- package/dist/filters/types.d.ts +4 -30
- package/dist/filters/types.d.ts.map +1 -1
- package/dist/flex-layout/Component.d.ts +9 -0
- package/dist/flex-layout/Component.d.ts.map +1 -0
- package/dist/flex-layout/components/Item/index.d.ts +5 -0
- package/dist/flex-layout/components/Item/index.d.ts.map +1 -0
- package/dist/flex-layout/index.d.ts +3 -0
- package/dist/flex-layout/index.d.ts.map +1 -0
- package/dist/flex-layout/index.js +93 -0
- package/dist/flex-layout/index.js.map +1 -0
- package/dist/flex-layout/types.d.ts +41 -0
- package/dist/flex-layout/types.d.ts.map +1 -0
- package/dist/grid-layout/Component.d.ts +9 -0
- package/dist/grid-layout/Component.d.ts.map +1 -0
- package/dist/grid-layout/components/Item/index.d.ts +5 -0
- package/dist/grid-layout/components/Item/index.d.ts.map +1 -0
- package/dist/grid-layout/index.d.ts +3 -0
- package/dist/grid-layout/index.d.ts.map +1 -0
- package/dist/grid-layout/index.js +97 -0
- package/dist/grid-layout/index.js.map +1 -0
- package/dist/grid-layout/types.d.ts +44 -0
- package/dist/grid-layout/types.d.ts.map +1 -0
- package/dist/grid-layout/utils.d.ts +6 -0
- package/dist/grid-layout/utils.d.ts.map +1 -0
- package/dist/{hooks-BAkrGC45.js → hooks-BlX5Y4Zt.js} +9 -6
- package/dist/hooks-BlX5Y4Zt.js.map +1 -0
- package/dist/icons/index.js +80 -100
- package/dist/icons/index.js.map +1 -1
- package/dist/{index-yKOPreNy.js → index-BXlN61PG.js} +2 -2
- package/dist/{index-yKOPreNy.js.map → index-BXlN61PG.js.map} +1 -1
- package/dist/{index-bdpk2nvt.js → index-CDCqZ3um.js} +3 -3
- package/dist/{index-bdpk2nvt.js.map → index-CDCqZ3um.js.map} +1 -1
- package/dist/{index-B0l1op71.js → index-CdAE-ZaU.js} +4 -4
- package/dist/{index-B0l1op71.js.map → index-CdAE-ZaU.js.map} +1 -1
- package/dist/input/index.js +1 -1
- package/dist/loader/index.js +2 -2
- package/dist/menu-list/index.js +1 -1
- package/dist/{metrics-C8FBvbwl.js → metrics-B5YsELiI.js} +2 -2
- package/dist/{metrics-C8FBvbwl.js.map → metrics-B5YsELiI.js.map} +1 -1
- package/dist/modal/index.js +1 -1
- package/dist/multi-autocomplete/index.js +1 -1
- package/dist/multi-autocomplete-async/index.js +1 -1
- package/dist/multi-select/index.js +3 -3
- package/dist/number-input/index.js +1 -1
- package/dist/number-range/index.js +2 -2
- package/dist/provider/context.d.ts.map +1 -1
- package/dist/provider/index.js +3 -3
- package/dist/provider/types.d.ts +6 -0
- package/dist/provider/types.d.ts.map +1 -1
- package/dist/select/index.js +1 -1
- package/dist/slider/index.js +1 -1
- package/dist/suggest-checklist/index.js +4 -4
- package/dist/switch/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/tabs/index.js +1 -1
- package/dist/tag/index.js +1 -1
- package/dist/textarea/index.js +2 -2
- package/dist/time-field/index.js +2 -2
- package/dist/toast/index.js +2 -2
- package/dist/typography/index.js +1 -1
- package/dist/{utils-DUOIRqE-.js → utils-Dj_u-w0s.js} +3 -3
- package/dist/{utils-DUOIRqE-.js.map → utils-Dj_u-w0s.js.map} +1 -1
- package/dist/vertical-tabs/index.js +1 -1
- package/docs/design-language.md +4 -4
- package/docs/skills/SKILL.md +3 -1
- package/package.json +15 -7
- package/src/arrangement-settings/docs/Description.md +2 -1
- package/src/arrangement-settings/types.ts +2 -0
- package/src/copy-button/docs/Description.md +23 -0
- package/src/copy-button/docs/Example.md +5 -0
- package/src/copy-button/docs/cssVariables.ts +12 -0
- package/src/copy-button/types.ts +16 -0
- package/src/filters/docs/Description.md +4 -18
- package/src/filters/docs/Example.md +10 -8
- package/src/filters/docs/cssVariables.ts +1 -3
- package/src/filters/types.ts +5 -36
- package/src/flex-layout/docs/Description.md +27 -0
- package/src/flex-layout/docs/Example.md +11 -0
- package/src/flex-layout/docs/cssVariables.ts +13 -0
- package/src/flex-layout/types.ts +49 -0
- package/src/grid-layout/docs/Description.md +25 -0
- package/src/{grid → grid-layout}/docs/Example.md +6 -6
- package/src/grid-layout/docs/cssVariables.ts +13 -0
- package/src/grid-layout/types.ts +53 -0
- package/src/provider/types.ts +6 -0
- package/src/vertical-tabs/docs/cssVariables.ts +0 -3
- package/dist/filters/components/Cell/index.d.ts +0 -5
- package/dist/filters/components/Cell/index.d.ts.map +0 -1
- package/dist/filters/components/Grid/index.d.ts +0 -5
- package/dist/filters/components/Grid/index.d.ts.map +0 -1
- package/dist/filters/context.d.ts +0 -4
- package/dist/filters/context.d.ts.map +0 -1
- package/dist/filters/utils.d.ts +0 -5
- package/dist/filters/utils.d.ts.map +0 -1
- package/dist/grid/Component.d.ts +0 -9
- package/dist/grid/Component.d.ts.map +0 -1
- package/dist/grid/components/Item/index.d.ts +0 -5
- package/dist/grid/components/Item/index.d.ts.map +0 -1
- package/dist/grid/index.d.ts.map +0 -1
- package/dist/grid/index.js +0 -85
- package/dist/grid/index.js.map +0 -1
- package/dist/grid/types.d.ts +0 -44
- package/dist/grid/types.d.ts.map +0 -1
- package/dist/grid/utils.d.ts +0 -6
- package/dist/grid/utils.d.ts.map +0 -1
- package/dist/hooks-BAkrGC45.js.map +0 -1
- package/src/grid/docs/Description.md +0 -26
- package/src/grid/docs/cssVariables.ts +0 -13
- package/src/grid/types.ts +0 -53
- /package/dist/{grid → copy-button}/index.d.ts +0 -0
package/docs/design-language.md
CHANGED
|
@@ -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`, `GridLayout`, `FlexLayout`, `Field` + controls, and `Drawer` when needed.
|
|
52
52
|
|
|
53
53
|
### List — table
|
|
54
54
|
|
|
55
|
-
- title (`headingM`)
|
|
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,10 +69,10 @@ 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
|
-
- sections: H2 + gap; fields on `page` in `
|
|
75
|
+
- sections: H2 + gap; fields on `page` in `GridLayout` — **no** card per section
|
|
76
76
|
- one alert (bg+border) is the only heavy nested block
|
|
77
77
|
- tags inside a field — tint, with no second stroke on top of `Field`
|
|
78
78
|
|
package/docs/skills/SKILL.md
CHANGED
|
@@ -60,7 +60,9 @@ Import `@ensi-platform/admin-ui/<folder>` (`button`, `date-picker`, …). Inside
|
|
|
60
60
|
| List chrome only: custom cells, pagination, `PageSize`. Row selection — `useTableRowSelection` | `Table` | `DataTable` when the header should sort or filter |
|
|
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
|
-
| Equal columns of fields, or an explicit track split (`cols` number or track list, `
|
|
63
|
+
| Equal columns of fields, or an explicit track split (`cols` number or track list, `GridLayout.Item` `col="full"`). Gap is a spacing step. List filters put it inside `Filters.Body` | `GridLayout` | `FlexLayout` for a row or a stack |
|
|
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 — `GridLayout` |
|
|
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.
|
|
3
|
+
"version": "0.8.1",
|
|
4
4
|
"description": "Admin UI for Ensi admin panel",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": [
|
|
@@ -42,11 +42,11 @@
|
|
|
42
42
|
"url": "https://github.com/ensi-platform/admin-ui.git"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@internationalized/date": "^3.
|
|
45
|
+
"@internationalized/date": "^3.12.4",
|
|
46
46
|
"class-variance-authority": "0.7.1",
|
|
47
47
|
"classnames": "2.5.1",
|
|
48
|
-
"react-aria": "3.
|
|
49
|
-
"react-aria-components": "^1.
|
|
48
|
+
"react-aria": "3.52.1",
|
|
49
|
+
"react-aria-components": "^1.21.1",
|
|
50
50
|
"react-fast-compare": "^3.2.2",
|
|
51
51
|
"usehooks-ts": "^3.1.1"
|
|
52
52
|
},
|
|
@@ -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,13 +145,17 @@
|
|
|
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"
|
|
147
155
|
},
|
|
148
|
-
"./grid": {
|
|
149
|
-
"types": "./dist/grid/index.d.ts",
|
|
150
|
-
"import": "./dist/grid/index.js"
|
|
156
|
+
"./grid-layout": {
|
|
157
|
+
"types": "./dist/grid-layout/index.d.ts",
|
|
158
|
+
"import": "./dist/grid-layout/index.js"
|
|
151
159
|
},
|
|
152
160
|
"./hooks": {
|
|
153
161
|
"types": "./dist/hooks/index.d.ts",
|
|
@@ -14,7 +14,8 @@ import { ArrangementSettings } from '@ensi-platform/admin-ui/arrangement-setting
|
|
|
14
14
|
| Prop | Values | Default | Description |
|
|
15
15
|
| -------------- | --------------------------------- | ------- | ------------------------------------------- |
|
|
16
16
|
| `open` | `boolean` | — | whether the `Drawer` is open |
|
|
17
|
-
| `onOpenChange`
|
|
17
|
+
| `onOpenChange` | `(open: boolean) => void` | — | open change; cancel and dismiss do not save |
|
|
18
|
+
| `onExitComplete` | `() => void` | — | after exit animation (for `ModalHub`) |
|
|
18
19
|
| `title` | `string` | — | drawer title |
|
|
19
20
|
| `placement` | `left` \| `right` | `left` | side the `Drawer` enters from |
|
|
20
21
|
| `items` | `{ id: string; label: string }[]` | — | every item, including hidden ones |
|
|
@@ -15,6 +15,8 @@ export interface IArrangementSettingsProps extends IDataTestIdProps {
|
|
|
15
15
|
open: boolean;
|
|
16
16
|
/** Open state change. Cancel and dismiss pass `false` without saving. */
|
|
17
17
|
onOpenChange?: (open: boolean) => void;
|
|
18
|
+
/** Called after the exit animation finishes (or immediately if skipped). */
|
|
19
|
+
onExitComplete?: () => void;
|
|
18
20
|
/** Drawer title. */
|
|
19
21
|
title: string;
|
|
20
22
|
/** Physical side of the viewport. */
|
|
@@ -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,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 {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
Listing filter section: a
|
|
1
|
+
Listing filter section: a content area and a footer for actions. The field grid is `GridLayout`.
|
|
2
2
|
|
|
3
3
|
```tsx
|
|
4
4
|
import { Filters } from '@ensi-platform/admin-ui/filters';
|
|
@@ -7,7 +7,6 @@ import { Filters } from '@ensi-platform/admin-ui/filters';
|
|
|
7
7
|
## When to use
|
|
8
8
|
|
|
9
9
|
- the filter form of a list page
|
|
10
|
-
- a date or a range needs more columns than a short field
|
|
11
10
|
- visibility and order belong in `ArrangementSettings`, not in this section
|
|
12
11
|
|
|
13
12
|
## API (short)
|
|
@@ -16,24 +15,11 @@ import { Filters } from '@ensi-platform/admin-ui/filters';
|
|
|
16
15
|
| ------------ | -------- | ------- | -------------- |
|
|
17
16
|
| `dataTestId` | `string` | — | `data-test-id` |
|
|
18
17
|
|
|
19
|
-
Slots: `
|
|
18
|
+
Slots: `Body` / `Footer`. `Form` and controls stay outside.
|
|
20
19
|
|
|
21
|
-
###
|
|
20
|
+
### Body
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
| ------------ | ------------------------ | ------- | ------------------------------------------------------------------- |
|
|
25
|
-
| `columns` | `number` | `4` | equal tracks; the page sets this, there are no built-in breakpoints |
|
|
26
|
-
| `span` | `Record<string, number>` | — | field kind → columns; an unknown kind uses `default`, otherwise `1` |
|
|
27
|
-
| `dataTestId` | `string` | — | `data-test-id` |
|
|
28
|
-
|
|
29
|
-
The cell span is clamped to `1…columns`.
|
|
30
|
-
|
|
31
|
-
### Cell
|
|
32
|
-
|
|
33
|
-
| Prop | Values | Default | Description |
|
|
34
|
-
| ------------ | -------- | ------- | -------------- |
|
|
35
|
-
| `kind` | `string` | — | key in `span` |
|
|
36
|
-
| `dataTestId` | `string` | — | `data-test-id` |
|
|
22
|
+
The field area. The page lays the fields out with `GridLayout`.
|
|
37
23
|
|
|
38
24
|
### Footer
|
|
39
25
|
|
|
@@ -3,14 +3,16 @@
|
|
|
3
3
|
```tsx
|
|
4
4
|
<Form initialValues={values} onSubmit={apply}>
|
|
5
5
|
<Filters>
|
|
6
|
-
<Filters.
|
|
7
|
-
<
|
|
8
|
-
<
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
6
|
+
<Filters.Body>
|
|
7
|
+
<GridLayout cols={4} gap={16}>
|
|
8
|
+
<GridLayout.Item>
|
|
9
|
+
<FormInput name="name" label="Name" />
|
|
10
|
+
</GridLayout.Item>
|
|
11
|
+
<GridLayout.Item col={2}>
|
|
12
|
+
<FormDateRangePicker name="date" label="Date" />
|
|
13
|
+
</GridLayout.Item>
|
|
14
|
+
</GridLayout>
|
|
15
|
+
</Filters.Body>
|
|
14
16
|
<Filters.Footer>
|
|
15
17
|
<Button type="button">Filter settings</Button>
|
|
16
18
|
<Button type="reset">Reset</Button>
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
/** Filters CSS variables from semantic tokens (--aui-filters-*). */
|
|
2
2
|
export const docsCssVariables = `/* CSS variables — Filters (--aui-filters-*) */
|
|
3
|
-
--aui-filters-gap-md: var(--aui-spacing-16); /* gap between
|
|
3
|
+
--aui-filters-gap-md: var(--aui-spacing-16); /* gap between the body and the footer */
|
|
4
4
|
--aui-filters-pad-y-md: var(--aui-spacing-16); /* space above the footer */
|
|
5
|
-
--aui-filters-columns: 4; /* default equal tracks; Grid overrides per instance */
|
|
6
|
-
--aui-filters-span: 1; /* default cell span; Cell overrides per instance */
|
|
7
5
|
`;
|
package/src/filters/types.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ComponentPropsWithRef, type
|
|
1
|
+
import { type ComponentPropsWithRef, type ReactNode, type Ref } from 'react';
|
|
2
2
|
|
|
3
3
|
import { type IDataTestIdProps } from '@ds/common';
|
|
4
4
|
|
|
@@ -12,37 +12,15 @@ export interface IFiltersOwnProps extends IDataTestIdProps {
|
|
|
12
12
|
export interface IFiltersProps
|
|
13
13
|
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersOwnProps | 'children'>, IFiltersOwnProps {}
|
|
14
14
|
|
|
15
|
-
/** Grid context value. */
|
|
16
|
-
export interface IFiltersGridContextValue {
|
|
17
|
-
columns: number;
|
|
18
|
-
span: Record<string, number>;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
/** Own / chrome props (not from DOM). */
|
|
22
|
-
export interface IFiltersGridOwnProps extends IDataTestIdProps {
|
|
23
|
-
children: ReactNode;
|
|
24
|
-
/** Equal tracks. The page sets this; there are no built-in breakpoints. */
|
|
25
|
-
columns?: number;
|
|
26
|
-
/** Field kind → column span. `default` is used when `kind` is missing. */
|
|
27
|
-
span?: Record<string, number>;
|
|
28
|
-
/** Ref to the grid (React 19 prop). */
|
|
29
|
-
ref?: Ref<HTMLDivElement>;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
export interface IFiltersGridProps
|
|
33
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersGridOwnProps | 'children'>, IFiltersGridOwnProps {}
|
|
34
|
-
|
|
35
15
|
/** Own / chrome props (not from DOM). */
|
|
36
|
-
export interface
|
|
16
|
+
export interface IFiltersBodyOwnProps extends IDataTestIdProps {
|
|
37
17
|
children: ReactNode;
|
|
38
|
-
/**
|
|
39
|
-
kind?: string;
|
|
40
|
-
/** Ref to the cell (React 19 prop). */
|
|
18
|
+
/** Ref to the body (React 19 prop). */
|
|
41
19
|
ref?: Ref<HTMLDivElement>;
|
|
42
20
|
}
|
|
43
21
|
|
|
44
|
-
export interface
|
|
45
|
-
extends Omit<ComponentPropsWithRef<'div'>, keyof
|
|
22
|
+
export interface IFiltersBodyProps
|
|
23
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersBodyOwnProps | 'children'>, IFiltersBodyOwnProps {}
|
|
46
24
|
|
|
47
25
|
/** Own / chrome props (not from DOM). */
|
|
48
26
|
export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
@@ -53,12 +31,3 @@ export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
|
53
31
|
|
|
54
32
|
export interface IFiltersFooterProps
|
|
55
33
|
extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersFooterOwnProps | 'children'>, IFiltersFooterOwnProps {}
|
|
56
|
-
|
|
57
|
-
/** Inline span / column overrides. */
|
|
58
|
-
export interface IFiltersGridStyle extends CSSProperties {
|
|
59
|
-
'--aui-filters-columns'?: number | string;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export interface IFiltersCellStyle extends CSSProperties {
|
|
63
|
-
'--aui-filters-span'?: number | string;
|
|
64
|
-
}
|
|
@@ -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 `GridLayout`.
|
|
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,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 {}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
Grid for fields and for column splits.
|
|
2
|
+
|
|
3
|
+
```tsx
|
|
4
|
+
import { GridLayout } from '@ensi-platform/admin-ui/grid-layout';
|
|
5
|
+
```
|
|
6
|
+
|
|
7
|
+
## When to use
|
|
8
|
+
|
|
9
|
+
- section fields in two or three columns
|
|
10
|
+
- one item across the whole grid (`col="full"`)
|
|
11
|
+
- a content-and-side split, by passing custom tracks in `cols`
|
|
12
|
+
- list filter fields inside `Filters.Body`
|
|
13
|
+
|
|
14
|
+
## API (short)
|
|
15
|
+
|
|
16
|
+
| Prop | Values | Default | Description |
|
|
17
|
+
| ------------ | ---------------------------------------------- | --------- | -------------------------------- |
|
|
18
|
+
| `cols` | `number` \| track list | — | columns |
|
|
19
|
+
| `gap` | `0` \| `4` \| `8` \| `12` \| `16` \| … \| `64` | `16` | gap, a spacing-scale step |
|
|
20
|
+
| `col` | `number` \| `full` | — | span when nested in another grid |
|
|
21
|
+
| `align` | `start` \| `center` \| `end` \| `stretch` | `stretch` | cross-axis alignment |
|
|
22
|
+
| `hidden` | `boolean` | `false` | removes the grid from layout |
|
|
23
|
+
| `dataTestId` | `string` | — | `data-test-id` for tests |
|
|
24
|
+
|
|
25
|
+
`GridLayout.Item` `col` is how many columns to take. `full` crosses the grid. A number in `cols` makes equal `minmax(0, 1fr)` columns. A number inside a track list is `Nfr`; a string is used as written (`minmax(0, 1fr)`).
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
## Example
|
|
2
2
|
|
|
3
3
|
```tsx
|
|
4
|
-
<
|
|
4
|
+
<GridLayout cols={2} gap={16}>
|
|
5
5
|
<FormInput name="last_name" label="Last name" />
|
|
6
6
|
<FormInput name="first_name" label="First name" />
|
|
7
|
-
<
|
|
7
|
+
<GridLayout.Item col="full">
|
|
8
8
|
<FormInput name="password" label="Password" />
|
|
9
|
-
</
|
|
10
|
-
</
|
|
9
|
+
</GridLayout.Item>
|
|
10
|
+
</GridLayout>
|
|
11
11
|
|
|
12
|
-
<
|
|
12
|
+
<GridLayout cols={['minmax(0, 1fr)', '16.25rem']} gap={0}>
|
|
13
13
|
<div>Main</div>
|
|
14
14
|
<aside>Aside</aside>
|
|
15
|
-
</
|
|
15
|
+
</GridLayout>
|
|
16
16
|
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** GridLayout CSS variables from semantic tokens (--aui-grid-layout-*). */
|
|
2
|
+
export const docsCssVariables = `/* CSS variables — GridLayout (--aui-grid-layout-*) */
|
|
3
|
+
--aui-grid-layout-gap-0: 0; /* no gap */
|
|
4
|
+
--aui-grid-layout-gap-4: var(--aui-spacing-4); /* gap 4 */
|
|
5
|
+
--aui-grid-layout-gap-8: var(--aui-spacing-8); /* gap 8 */
|
|
6
|
+
--aui-grid-layout-gap-12: var(--aui-spacing-12); /* gap 12 */
|
|
7
|
+
--aui-grid-layout-gap-16: var(--aui-spacing-16); /* gap 16 */
|
|
8
|
+
--aui-grid-layout-gap-20: var(--aui-spacing-20); /* gap 20 */
|
|
9
|
+
--aui-grid-layout-gap-24: var(--aui-spacing-24); /* gap 24 */
|
|
10
|
+
--aui-grid-layout-gap-32: var(--aui-spacing-32); /* gap 32 */
|
|
11
|
+
--aui-grid-layout-gap-40: var(--aui-spacing-40); /* gap 40 */
|
|
12
|
+
--aui-grid-layout-gap-48: var(--aui-spacing-48); /* gap 48 */
|
|
13
|
+
--aui-grid-layout-gap-64: var(--aui-spacing-64); /* gap 64 */`;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { type CSSProperties, 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 TGridLayoutGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
7
|
+
|
|
8
|
+
/** One track: a number is `Nfr`, a string is used as written. */
|
|
9
|
+
export type TGridLayoutTrack = number | string;
|
|
10
|
+
|
|
11
|
+
/** How many columns an item spans. */
|
|
12
|
+
export type TGridLayoutCol = number | 'full';
|
|
13
|
+
|
|
14
|
+
/** Cross-axis alignment of items. */
|
|
15
|
+
export type TGridLayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
16
|
+
|
|
17
|
+
/** Own props for GridLayout. */
|
|
18
|
+
export interface IGridLayoutOwnProps extends IDataTestIdProps {
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
/** Equal columns, or an explicit track list. */
|
|
21
|
+
cols: number | TGridLayoutTrack[];
|
|
22
|
+
/** Gap between items. */
|
|
23
|
+
gap?: TGridLayoutGap;
|
|
24
|
+
/** Span when this grid sits inside another grid. */
|
|
25
|
+
col?: TGridLayoutCol;
|
|
26
|
+
/** Cross-axis alignment. */
|
|
27
|
+
align?: TGridLayoutAlign;
|
|
28
|
+
/** Removes the grid from the layout. */
|
|
29
|
+
hidden?: boolean;
|
|
30
|
+
/** Ref to the grid (React 19 prop). */
|
|
31
|
+
ref?: Ref<HTMLDivElement>;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export interface IGridLayoutProps
|
|
35
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridLayoutOwnProps | 'children'>, IGridLayoutOwnProps {}
|
|
36
|
+
|
|
37
|
+
/** Own props for GridLayout.Item. */
|
|
38
|
+
export interface IGridLayoutItemOwnProps extends IDataTestIdProps {
|
|
39
|
+
children: ReactNode;
|
|
40
|
+
/** Column span. `full` crosses the whole grid. */
|
|
41
|
+
col?: TGridLayoutCol;
|
|
42
|
+
/** Ref to the item (React 19 prop). */
|
|
43
|
+
ref?: Ref<HTMLDivElement>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface IGridLayoutItemProps
|
|
47
|
+
extends Omit<ComponentPropsWithRef<'div'>, keyof IGridLayoutItemOwnProps | 'children'>, IGridLayoutItemOwnProps {}
|
|
48
|
+
|
|
49
|
+
/** Inline template written by GridLayout. */
|
|
50
|
+
export interface IGridLayoutStyle extends CSSProperties {
|
|
51
|
+
'--aui-grid-layout-template'?: string;
|
|
52
|
+
'--aui-grid-layout-col'?: string;
|
|
53
|
+
}
|
package/src/provider/types.ts
CHANGED
|
@@ -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;
|
|
@@ -11,9 +11,6 @@ export const docsCssVariables = `/* CSS variables — VerticalTabs (--aui-vertic
|
|
|
11
11
|
--aui-vertical-tabs-gap-sm: var(--aui-spacing-4); /* sm item gap */
|
|
12
12
|
--aui-vertical-tabs-gap-md: var(--aui-spacing-4); /* md item gap */
|
|
13
13
|
--aui-vertical-tabs-gap-lg: var(--aui-spacing-8); /* lg item gap */
|
|
14
|
-
--aui-vertical-tabs-h-sm: var(--aui-spacing-32); /* height sm */
|
|
15
|
-
--aui-vertical-tabs-h-md: var(--aui-spacing-40); /* height md */
|
|
16
|
-
--aui-vertical-tabs-h-lg: var(--aui-spacing-48); /* height lg */
|
|
17
14
|
--aui-vertical-tabs-pad-y-sm: var(--aui-spacing-4); /* padding-y sm */
|
|
18
15
|
--aui-vertical-tabs-pad-x-sm: var(--aui-spacing-8); /* padding-x sm */
|
|
19
16
|
--aui-vertical-tabs-pad-y-md: var(--aui-spacing-8); /* padding-y md */
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IFiltersCellProps } from '../../types';
|
|
2
|
-
export declare const FiltersCell: (({ ref, children, kind, className, dataTestId, style, ...props }: IFiltersCellProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/filters/components/Cell/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,aAAa,CAAC;AAK7E,eAAO,MAAM,WAAW,qEAC8C,iBAAiB;;CAmBtF,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { IFiltersGridProps } from '../../types';
|
|
2
|
-
export declare const FiltersGrid: (({ ref, children, columns, span, className, dataTestId, style, ...props }: IFiltersGridProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
};
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/filters/components/Grid/index.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,iBAAiB,EAA0B,MAAM,aAAa,CAAC;AAK7E,eAAO,MAAM,WAAW,8EACgE,iBAAiB;;CAsBxG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/filters/context.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,SAAS,CAAC;AAOxD,eAAO,MAAM,mBAAmB,oDAA8B,CAAC;AAE/D,eAAO,MAAM,cAAc,gCAAuC,CAAC"}
|
package/dist/filters/utils.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
/** Column span for a filter cell. Unknown kinds use `default`, then 1. Clamped to `1…columns`. */
|
|
2
|
-
export declare const resolveSpan: (kind: string | undefined, span: Record<string, number> | undefined, columns: number) => number;
|
|
3
|
-
/** Grid column count. Invalid values become 4; zero and fractions collapse to at least 1. */
|
|
4
|
-
export declare const resolveColumns: (columns: number | undefined) => number;
|
|
5
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/filters/utils.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,eAAO,MAAM,WAAW,GAAI,MAAM,MAAM,GAAG,SAAS,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,EAAE,SAAS,MAAM,WAO9G,CAAC;AAEF,6FAA6F;AAC7F,eAAO,MAAM,cAAc,GAAI,SAAS,MAAM,GAAG,SAAS,WAMzD,CAAC"}
|
package/dist/grid/Component.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { IGridProps } from './types';
|
|
2
|
-
export declare const Grid: (({ ref, children, cols, gap, col, align, hidden, className, dataTestId, style, ...props }: IGridProps) => import("react").JSX.Element) & {
|
|
3
|
-
displayName?: string;
|
|
4
|
-
} & {
|
|
5
|
-
Item: (({ ref, children, col, className, dataTestId, style, ...props }: import('./types').IGridItemProps) => import("react").JSX.Element) & {
|
|
6
|
-
displayName?: string;
|
|
7
|
-
};
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/grid/Component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,UAAU,EAAkC,MAAM,SAAS,CAAC;AA+D1E,eAAO,MAAM,IAAI,8FAxBV,UAAU;;;;;;CAwB8C,CAAC"}
|