@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/dist/data-table/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsxs as C, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useContext as x, createContext as N, Children as y, isValidElement as h, useMemo as _ } from "react";
|
|
3
3
|
import { s as F } from "../index-h8z54aFR.js";
|
|
4
|
-
import { T as t } from "../Component-
|
|
4
|
+
import { T as t } from "../Component-qJGssCB4.js";
|
|
5
5
|
import A from "classnames";
|
|
6
6
|
import { M as P } from "../SortDescending-DziKhSYN.js";
|
|
7
|
-
import { u as R } from "../hooks-
|
|
8
|
-
import '../assets/
|
|
7
|
+
import { u as R } from "../hooks-BlX5Y4Zt.js";
|
|
8
|
+
import '../assets/index23.css';const S = "aub_styles-module_trigger_f9d5f", k = "aub_styles-module_icon_fcb5d", w = "aub_styles-module_visuallyHidden_14779", b = {
|
|
9
9
|
trigger: S,
|
|
10
10
|
icon: k,
|
|
11
11
|
visuallyHidden: w
|
|
@@ -4,15 +4,15 @@ import { CalendarDate as z } from "@internationalized/date";
|
|
|
4
4
|
import E from "classnames";
|
|
5
5
|
import { DatePickerStateContext as Z, useSlottedContext as ee, CalendarContext as ae, DatePicker as oe, Group as te, DateInput as le, DateSegment as ne, Button as Y, Popover as re, Dialog as se } from "react-aria-components";
|
|
6
6
|
import { s as j } from "../index-h8z54aFR.js";
|
|
7
|
-
import { u as ce, t as M, a as ie, M as ue, b as de, D as me, c as pe } from "../index-
|
|
7
|
+
import { u as ce, t as M, a as ie, M as ue, b as de, D as me, c as pe } from "../index-BXlN61PG.js";
|
|
8
8
|
import { C as be } from "../Calendar-CMg4K4oF.js";
|
|
9
9
|
import { C as _e } from "../Clear-DcxADxz6.js";
|
|
10
|
-
import { u as ye } from "../hooks-
|
|
10
|
+
import { u as ye } from "../hooks-BlX5Y4Zt.js";
|
|
11
11
|
import { cva as fe } from "class-variance-authority";
|
|
12
12
|
import { typographyStyles as O } from "../typography/index.js";
|
|
13
13
|
import { F as N, u as he } from "../Component-BPN5FgKq.js";
|
|
14
14
|
import { u as De, g as ge } from "../useFieldHook-Bt9nST7g.js";
|
|
15
|
-
import '../assets/
|
|
15
|
+
import '../assets/index15.css';const K = ({ scrollToDate: o, className: r, autoFocusDay: s = !1 }) => {
|
|
16
16
|
const { months: m, viewportRef: c, setMonthEl: d, scrollToMonth: p } = ce(o), i = Q(Z), t = ee(ae), b = M(i?.value ?? t?.value ?? null), y = M(t?.minValue ?? null), f = M(t?.maxValue ?? null), v = !!t?.isDisabled, h = t?.isDateUnavailable ? (n) => !!t.isDateUnavailable?.(n) : void 0, _ = (n) => {
|
|
17
17
|
if (t?.onChange) {
|
|
18
18
|
t.onChange(n);
|
|
@@ -4,15 +4,15 @@ import { CalendarDate as q } from "@internationalized/date";
|
|
|
4
4
|
import L from "classnames";
|
|
5
5
|
import { DateRangePickerStateContext as ne, useSlottedContext as oe, RangeCalendarContext as te, DateRangePicker as re, Group as se, DateInput as j, DateSegment as K, Button as X, Popover as le, Dialog as ce } from "react-aria-components";
|
|
6
6
|
import { s as J } from "../index-h8z54aFR.js";
|
|
7
|
-
import { u as ie, t as V, a as ue, M as de, b as me, D as pe, c as ge } from "../index-
|
|
7
|
+
import { u as ie, t as V, a as ue, M as de, b as me, D as pe, c as ge } from "../index-BXlN61PG.js";
|
|
8
8
|
import { C as be } from "../Calendar-CMg4K4oF.js";
|
|
9
9
|
import { C as _e } from "../Clear-DcxADxz6.js";
|
|
10
|
-
import { u as he } from "../hooks-
|
|
10
|
+
import { u as he } from "../hooks-BlX5Y4Zt.js";
|
|
11
11
|
import { cva as ye } from "class-variance-authority";
|
|
12
12
|
import { typographyStyles as Y } from "../typography/index.js";
|
|
13
13
|
import { F as M, u as fe } from "../Component-BPN5FgKq.js";
|
|
14
14
|
import { u as De, g as Ce } from "../useFieldHook-Bt9nST7g.js";
|
|
15
|
-
import '../assets/
|
|
15
|
+
import '../assets/index16.css';const Q = ({ scrollToDate: e, className: l, autoFocusDay: c = !1 }) => {
|
|
16
16
|
const { months: g, viewportRef: u, setMonthEl: p, scrollToMonth: b } = ie(e), d = ee(ne), t = oe(te), [r, f] = U(null), [R, D] = U(null), C = d?.value ?? t?.value ?? null, _ = V(C?.start ?? null), v = V(C?.end ?? null), h = V(t?.minValue ?? null), F = V(t?.maxValue ?? null), x = !!t?.isDisabled, N = t?.isDateUnavailable ? (a) => !!t.isDateUnavailable?.(a) : void 0, P = (a) => {
|
|
17
17
|
if (!r) {
|
|
18
18
|
f(a);
|
package/dist/drawer/index.js
CHANGED
|
@@ -2,10 +2,7 @@ import { IFiltersProps } from './types';
|
|
|
2
2
|
export declare const Filters: (({ ref, children, className, dataTestId, ...props }: IFiltersProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName?: string;
|
|
4
4
|
} & {
|
|
5
|
-
|
|
6
|
-
displayName?: string;
|
|
7
|
-
};
|
|
8
|
-
Cell: (({ ref, children, kind, className, dataTestId, style, ...props }: import('./types').IFiltersCellProps) => import("react").JSX.Element) & {
|
|
5
|
+
Body: (({ ref, children, className, dataTestId, ...props }: import('./types').IFiltersBodyProps) => import("react").JSX.Element) & {
|
|
9
6
|
displayName?: string;
|
|
10
7
|
};
|
|
11
8
|
Footer: (({ ref, children, className, dataTestId, ...props }: import('./types').IFiltersFooterProps) => import("react").JSX.Element) & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/filters/Component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/filters/Component.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAY7C,eAAO,MAAM,OAAO,wDARgE,aAAa;;;;;;;;;CAW/F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/filters/components/Body/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIrD,eAAO,MAAM,WAAW,wDAAmE,iBAAiB;;CAI1G,CAAC"}
|
package/dist/filters/index.js
CHANGED
|
@@ -1,71 +1,23 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import l from "classnames";
|
|
3
3
|
import { s as d } from "../index-h8z54aFR.js";
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
return /* @__PURE__ */ n(
|
|
20
|
-
"div",
|
|
21
|
-
{
|
|
22
|
-
...i,
|
|
23
|
-
ref: t,
|
|
24
|
-
className: c(j.cell, o),
|
|
25
|
-
style: u,
|
|
26
|
-
"data-test-id": s,
|
|
27
|
-
children: r
|
|
28
|
-
}
|
|
29
|
-
);
|
|
30
|
-
}
|
|
31
|
-
);
|
|
32
|
-
y.displayName = "Filters.Cell";
|
|
33
|
-
const O = "aub_styles-module_footer_b9353", P = {
|
|
34
|
-
footer: O
|
|
35
|
-
}, f = d(({ ref: t, children: r, className: e, dataTestId: o, ...s }) => /* @__PURE__ */ n("div", { ...s, ref: t, className: c(P.footer, e), "data-test-id": o, children: r }));
|
|
36
|
-
f.displayName = "Filters.Footer";
|
|
37
|
-
const S = "aub_styles-module_grid_61b41", $ = {
|
|
38
|
-
grid: S
|
|
39
|
-
}, F = d(
|
|
40
|
-
({ ref: t, children: r, columns: e = 4, span: o = {}, className: s, dataTestId: l, style: i, ...m }) => {
|
|
41
|
-
const a = g(e), u = C(() => ({ columns: a, span: o }), [a, o]), _ = {
|
|
42
|
-
...i,
|
|
43
|
-
"--aui-filters-columns": a
|
|
44
|
-
};
|
|
45
|
-
return /* @__PURE__ */ n(h, { value: u, children: /* @__PURE__ */ n(
|
|
46
|
-
"div",
|
|
47
|
-
{
|
|
48
|
-
...m,
|
|
49
|
-
ref: t,
|
|
50
|
-
className: c($.grid, s),
|
|
51
|
-
style: _,
|
|
52
|
-
"data-test-id": l,
|
|
53
|
-
children: r
|
|
54
|
-
}
|
|
55
|
-
) });
|
|
56
|
-
}
|
|
57
|
-
);
|
|
58
|
-
F.displayName = "Filters.Grid";
|
|
59
|
-
const w = "aub_styles-module_root_59901", R = {
|
|
60
|
-
root: w
|
|
61
|
-
}, b = d(({ ref: t, children: r, className: e, dataTestId: o, ...s }) => /* @__PURE__ */ n("div", { ...s, ref: t, className: c(R.root, e), "data-test-id": o, children: r }));
|
|
62
|
-
b.displayName = "Filters";
|
|
63
|
-
const D = Object.assign(b, {
|
|
64
|
-
Grid: F,
|
|
65
|
-
Cell: y,
|
|
66
|
-
Footer: f
|
|
4
|
+
import '../assets/index21.css';const n = "aub_styles-module_root_ddbd4", y = {
|
|
5
|
+
root: n
|
|
6
|
+
}, i = d(({ ref: o, children: t, className: s, dataTestId: e, ...r }) => /* @__PURE__ */ a("div", { ...r, ref: o, className: l(y.root, s), "data-test-id": e, children: t }));
|
|
7
|
+
i.displayName = "Filters.Body";
|
|
8
|
+
const F = "aub_styles-module_footer_b9353", p = {
|
|
9
|
+
footer: F
|
|
10
|
+
}, c = d(({ ref: o, children: t, className: s, dataTestId: e, ...r }) => /* @__PURE__ */ a("div", { ...r, ref: o, className: l(p.footer, s), "data-test-id": e, children: t }));
|
|
11
|
+
c.displayName = "Filters.Footer";
|
|
12
|
+
const _ = "aub_styles-module_root_59901", f = {
|
|
13
|
+
root: _
|
|
14
|
+
}, m = d(({ ref: o, children: t, className: s, dataTestId: e, ...r }) => /* @__PURE__ */ a("div", { ...r, ref: o, className: l(f.root, s), "data-test-id": e, children: t }));
|
|
15
|
+
m.displayName = "Filters";
|
|
16
|
+
const v = Object.assign(m, {
|
|
17
|
+
Body: i,
|
|
18
|
+
Footer: c
|
|
67
19
|
});
|
|
68
20
|
export {
|
|
69
|
-
|
|
21
|
+
v as Filters
|
|
70
22
|
};
|
|
71
23
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../src/filters/
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/filters/components/Body/index.tsx","../../src/filters/components/Footer/index.tsx","../../src/filters/Component.tsx"],"sourcesContent":["import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { type IFiltersBodyProps } from '../../types';\n\nimport styles from './styles.module.css';\n\nexport const FiltersBody = supportRef(({ ref, children, className, dataTestId, ...props }: IFiltersBodyProps) => (\n <div {...props} ref={ref} className={cn(styles.root, className)} data-test-id={dataTestId}>\n {children}\n </div>\n));\n\nFiltersBody.displayName = 'Filters.Body';\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { type IFiltersFooterProps } from '../../types';\n\nimport styles from './styles.module.css';\n\nexport const FiltersFooter = supportRef(({ ref, children, className, dataTestId, ...props }: IFiltersFooterProps) => (\n <div {...props} ref={ref} className={cn(styles.footer, className)} data-test-id={dataTestId}>\n {children}\n </div>\n));\n\nFiltersFooter.displayName = 'Filters.Footer';\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { FiltersBody } from './components/Body';\nimport { FiltersFooter } from './components/Footer';\nimport { type IFiltersProps } from './types';\n\nimport styles from './styles.module.css';\n\nconst FiltersRoot = supportRef(({ ref, children, className, dataTestId, ...props }: IFiltersProps) => (\n <div {...props} ref={ref} className={cn(styles.root, className)} data-test-id={dataTestId}>\n {children}\n </div>\n));\n\nFiltersRoot.displayName = 'Filters';\n\nexport const Filters = Object.assign(FiltersRoot, {\n Body: FiltersBody,\n Footer: FiltersFooter,\n});\n"],"names":["FiltersBody","supportRef","ref","children","className","dataTestId","props","jsx","cn","styles","FiltersFooter","FiltersRoot","Filters"],"mappings":";;;;;GAQaA,IAAcC,EAAW,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,GAAGC,QAC9E,gBAAAC,EAAC,SAAK,GAAGD,GAAO,KAAAJ,GAAU,WAAWM,EAAGC,EAAO,MAAML,CAAS,GAAG,gBAAcC,GAC1E,UAAAF,EAAA,CACL,CACH;AAEDH,EAAY,cAAc;;;GCNbU,IAAgBT,EAAW,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,GAAGC,QAChF,gBAAAC,EAAC,SAAK,GAAGD,GAAO,KAAAJ,GAAU,WAAWM,EAAGC,EAAO,QAAQL,CAAS,GAAG,gBAAcC,GAC5E,UAAAF,EAAA,CACL,CACH;AAEDO,EAAc,cAAc;;;GCJtBC,IAAcV,EAAW,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,WAAAC,GAAW,YAAAC,GAAY,GAAGC,QACvE,gBAAAC,EAAC,SAAK,GAAGD,GAAO,KAAAJ,GAAU,WAAWM,EAAGC,EAAO,MAAML,CAAS,GAAG,gBAAcC,GAC1E,UAAAF,EAAA,CACL,CACH;AAEDQ,EAAY,cAAc;AAEnB,MAAMC,IAAU,OAAO,OAAOD,GAAa;AAAA,EAC9C,MAAMX;AAAA,EACN,QAAQU;AACZ,CAAC;"}
|
package/dist/filters/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithRef,
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
2
2
|
import { IDataTestIdProps } from '../ds/common/index.js';
|
|
3
3
|
/** Own / chrome props (not from DOM). */
|
|
4
4
|
export interface IFiltersOwnProps extends IDataTestIdProps {
|
|
@@ -8,32 +8,13 @@ export interface IFiltersOwnProps extends IDataTestIdProps {
|
|
|
8
8
|
}
|
|
9
9
|
export interface IFiltersProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersOwnProps | 'children'>, IFiltersOwnProps {
|
|
10
10
|
}
|
|
11
|
-
/** Grid context value. */
|
|
12
|
-
export interface IFiltersGridContextValue {
|
|
13
|
-
columns: number;
|
|
14
|
-
span: Record<string, number>;
|
|
15
|
-
}
|
|
16
|
-
/** Own / chrome props (not from DOM). */
|
|
17
|
-
export interface IFiltersGridOwnProps extends IDataTestIdProps {
|
|
18
|
-
children: ReactNode;
|
|
19
|
-
/** Equal tracks. The page sets this; there are no built-in breakpoints. */
|
|
20
|
-
columns?: number;
|
|
21
|
-
/** Field kind → column span. `default` is used when `kind` is missing. */
|
|
22
|
-
span?: Record<string, number>;
|
|
23
|
-
/** Ref to the grid (React 19 prop). */
|
|
24
|
-
ref?: Ref<HTMLDivElement>;
|
|
25
|
-
}
|
|
26
|
-
export interface IFiltersGridProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersGridOwnProps | 'children'>, IFiltersGridOwnProps {
|
|
27
|
-
}
|
|
28
11
|
/** Own / chrome props (not from DOM). */
|
|
29
|
-
export interface
|
|
12
|
+
export interface IFiltersBodyOwnProps extends IDataTestIdProps {
|
|
30
13
|
children: ReactNode;
|
|
31
|
-
/**
|
|
32
|
-
kind?: string;
|
|
33
|
-
/** Ref to the cell (React 19 prop). */
|
|
14
|
+
/** Ref to the body (React 19 prop). */
|
|
34
15
|
ref?: Ref<HTMLDivElement>;
|
|
35
16
|
}
|
|
36
|
-
export interface
|
|
17
|
+
export interface IFiltersBodyProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersBodyOwnProps | 'children'>, IFiltersBodyOwnProps {
|
|
37
18
|
}
|
|
38
19
|
/** Own / chrome props (not from DOM). */
|
|
39
20
|
export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
@@ -43,11 +24,4 @@ export interface IFiltersFooterOwnProps extends IDataTestIdProps {
|
|
|
43
24
|
}
|
|
44
25
|
export interface IFiltersFooterProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFiltersFooterOwnProps | 'children'>, IFiltersFooterOwnProps {
|
|
45
26
|
}
|
|
46
|
-
/** Inline span / column overrides. */
|
|
47
|
-
export interface IFiltersGridStyle extends CSSProperties {
|
|
48
|
-
'--aui-filters-columns'?: number | string;
|
|
49
|
-
}
|
|
50
|
-
export interface IFiltersCellStyle extends CSSProperties {
|
|
51
|
-
'--aui-filters-span'?: number | string;
|
|
52
|
-
}
|
|
53
27
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/filters/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/filters/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,yCAAyC;AACzC,MAAM,WAAW,gBAAiB,SAAQ,gBAAgB;IACtD,QAAQ,EAAE,SAAS,CAAC;IACpB,0CAA0C;IAC1C,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,aACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,gBAAgB,GAAG,UAAU,CAAC,EAAE,gBAAgB;CAAG;AAExG,yCAAyC;AACzC,MAAM,WAAW,oBAAqB,SAAQ,gBAAgB;IAC1D,QAAQ,EAAE,SAAS,CAAC;IACpB,uCAAuC;IACvC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,iBACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,oBAAoB,GAAG,UAAU,CAAC,EAAE,oBAAoB;CAAG;AAEhH,yCAAyC;AACzC,MAAM,WAAW,sBAAuB,SAAQ,gBAAgB;IAC5D,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,yCAAyC;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,mBACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,sBAAsB,GAAG,UAAU,CAAC,EAAE,sBAAsB;CAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IFlexLayoutProps } from './types';
|
|
2
|
+
export declare const FlexLayout: (({ ref, children, direction, gap, align, justify, wrap, hidden, className, dataTestId, ...props }: IFlexLayoutProps) => import("react").JSX.Element) & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
} & {
|
|
5
|
+
Item: (({ ref, children, grow, className, dataTestId, ...props }: import('./types').IFlexLayoutItemProps) => import("react").JSX.Element) & {
|
|
6
|
+
displayName?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/flex-layout/Component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAAuE,MAAM,SAAS,CAAC;AAoErH,eAAO,MAAM,UAAU,sGAvBhB,gBAAgB;;;;;;CAuB0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IFlexLayoutItemProps } from '../../types';
|
|
2
|
+
export declare const FlexLayoutItem: (({ ref, children, grow, className, dataTestId, ...props }: IFlexLayoutItemProps) => import("react").JSX.Element) & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/flex-layout/components/Item/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAIxD,eAAO,MAAM,cAAc,8DAC4C,oBAAoB;;CAK1F,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/flex-layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import p from "classnames";
|
|
3
|
+
import { s as c } from "../index-h8z54aFR.js";
|
|
4
|
+
import '../assets/index11.css';const i = "aub_styles-module_root_6fb94", j = "aub_styles-module_grow_f3b2d", _ = {
|
|
5
|
+
root: i,
|
|
6
|
+
grow: j
|
|
7
|
+
}, g = c(
|
|
8
|
+
({ ref: s, children: a, grow: e = !1, className: o, dataTestId: l, ...u }) => /* @__PURE__ */ n("div", { ...u, ref: s, className: p(_.root, e && _.grow, o), "data-test-id": l, children: a })
|
|
9
|
+
);
|
|
10
|
+
g.displayName = "FlexLayout.Item";
|
|
11
|
+
const w = "aub_styles-module_root_208b0", x = "aub_styles-module_column_7b48c", C = "aub_styles-module_wrap_3e487", F = "aub_styles-module_gap0_511ba", L = "aub_styles-module_gap4_a11b2", N = "aub_styles-module_gap8_0001f", E = "aub_styles-module_gap12_2faaf", I = "aub_styles-module_gap16_1a9d4", S = "aub_styles-module_gap20_ca7b9", h = "aub_styles-module_gap24_20da2", v = "aub_styles-module_gap32_0aae1", R = "aub_styles-module_gap40_0b0a3", $ = "aub_styles-module_gap48_28ea1", O = "aub_styles-module_gap64_e05eb", k = "aub_styles-module_start_59232", q = "aub_styles-module_center_a8723", z = "aub_styles-module_end_40e0b", A = "aub_styles-module_justify-start_94083", B = "aub_styles-module_justify-center_eadc0", D = "aub_styles-module_justify-end_b6925", G = "aub_styles-module_between_6ce09", t = {
|
|
12
|
+
root: w,
|
|
13
|
+
column: x,
|
|
14
|
+
wrap: C,
|
|
15
|
+
gap0: F,
|
|
16
|
+
gap4: L,
|
|
17
|
+
gap8: N,
|
|
18
|
+
gap12: E,
|
|
19
|
+
gap16: I,
|
|
20
|
+
gap20: S,
|
|
21
|
+
gap24: h,
|
|
22
|
+
gap32: v,
|
|
23
|
+
gap40: R,
|
|
24
|
+
gap48: $,
|
|
25
|
+
gap64: O,
|
|
26
|
+
start: k,
|
|
27
|
+
center: q,
|
|
28
|
+
end: z,
|
|
29
|
+
justifyStart: A,
|
|
30
|
+
justifyCenter: B,
|
|
31
|
+
justifyEnd: D,
|
|
32
|
+
between: G
|
|
33
|
+
}, H = {
|
|
34
|
+
0: t.gap0,
|
|
35
|
+
4: t.gap4,
|
|
36
|
+
8: t.gap8,
|
|
37
|
+
12: t.gap12,
|
|
38
|
+
16: t.gap16,
|
|
39
|
+
20: t.gap20,
|
|
40
|
+
24: t.gap24,
|
|
41
|
+
32: t.gap32,
|
|
42
|
+
40: t.gap40,
|
|
43
|
+
48: t.gap48,
|
|
44
|
+
64: t.gap64
|
|
45
|
+
}, J = {
|
|
46
|
+
start: t.start,
|
|
47
|
+
center: t.center,
|
|
48
|
+
end: t.end,
|
|
49
|
+
stretch: null
|
|
50
|
+
}, K = {
|
|
51
|
+
start: t.justifyStart,
|
|
52
|
+
center: t.justifyCenter,
|
|
53
|
+
end: t.justifyEnd,
|
|
54
|
+
between: t.between
|
|
55
|
+
}, r = c(
|
|
56
|
+
({
|
|
57
|
+
ref: s,
|
|
58
|
+
children: a,
|
|
59
|
+
direction: e = "row",
|
|
60
|
+
gap: o = 16,
|
|
61
|
+
align: l = "stretch",
|
|
62
|
+
justify: u = "start",
|
|
63
|
+
wrap: d = !1,
|
|
64
|
+
hidden: y = !1,
|
|
65
|
+
className: m,
|
|
66
|
+
dataTestId: b,
|
|
67
|
+
...f
|
|
68
|
+
}) => /* @__PURE__ */ n(
|
|
69
|
+
"div",
|
|
70
|
+
{
|
|
71
|
+
...f,
|
|
72
|
+
ref: s,
|
|
73
|
+
hidden: y,
|
|
74
|
+
className: p(
|
|
75
|
+
t.root,
|
|
76
|
+
e === "column" && t.column,
|
|
77
|
+
d && t.wrap,
|
|
78
|
+
H[o],
|
|
79
|
+
J[l],
|
|
80
|
+
K[u],
|
|
81
|
+
m
|
|
82
|
+
),
|
|
83
|
+
"data-test-id": b,
|
|
84
|
+
children: a
|
|
85
|
+
}
|
|
86
|
+
)
|
|
87
|
+
);
|
|
88
|
+
r.displayName = "FlexLayout";
|
|
89
|
+
const T = Object.assign(r, { Item: g });
|
|
90
|
+
export {
|
|
91
|
+
T as FlexLayout
|
|
92
|
+
};
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/flex-layout/components/Item/index.tsx","../../src/flex-layout/Component.tsx"],"sourcesContent":["import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { type IFlexLayoutItemProps } from '../../types';\n\nimport styles from './styles.module.css';\n\nexport const FlexLayoutItem = supportRef(\n ({ ref, children, grow = false, className, dataTestId, ...props }: IFlexLayoutItemProps) => (\n <div {...props} ref={ref} className={cn(styles.root, grow && styles.grow, className)} data-test-id={dataTestId}>\n {children}\n </div>\n )\n);\n\nFlexLayoutItem.displayName = 'FlexLayout.Item';\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { FlexLayoutItem } from './components/Item';\nimport { type IFlexLayoutProps, type TFlexLayoutAlign, type TFlexLayoutGap, type TFlexLayoutJustify } from './types';\n\nimport styles from './styles.module.css';\n\nconst gapClass: Record<TFlexLayoutGap, string> = {\n 0: styles.gap0,\n 4: styles.gap4,\n 8: styles.gap8,\n 12: styles.gap12,\n 16: styles.gap16,\n 20: styles.gap20,\n 24: styles.gap24,\n 32: styles.gap32,\n 40: styles.gap40,\n 48: styles.gap48,\n 64: styles.gap64,\n};\n\nconst alignClass: Record<TFlexLayoutAlign, string | null> = {\n start: styles.start,\n center: styles.center,\n end: styles.end,\n stretch: null,\n};\n\nconst justifyClass: Record<TFlexLayoutJustify, string> = {\n start: styles.justifyStart,\n center: styles.justifyCenter,\n end: styles.justifyEnd,\n between: styles.between,\n};\n\nconst FlexLayoutRoot = supportRef(\n ({\n ref,\n children,\n direction = 'row',\n gap = 16,\n align = 'stretch',\n justify = 'start',\n wrap = false,\n hidden = false,\n className,\n dataTestId,\n ...props\n }: IFlexLayoutProps) => (\n <div\n {...props}\n ref={ref}\n hidden={hidden}\n className={cn(\n styles.root,\n direction === 'column' && styles.column,\n wrap && styles.wrap,\n gapClass[gap],\n alignClass[align],\n justifyClass[justify],\n className\n )}\n data-test-id={dataTestId}\n >\n {children}\n </div>\n )\n);\n\nFlexLayoutRoot.displayName = 'FlexLayout';\n\nexport const FlexLayout = Object.assign(FlexLayoutRoot, { Item: FlexLayoutItem });\n"],"names":["FlexLayoutItem","supportRef","ref","children","grow","className","dataTestId","props","jsx","cn","styles","gapClass","alignClass","justifyClass","FlexLayoutRoot","direction","gap","align","justify","wrap","hidden","FlexLayout"],"mappings":";;;;;;GAQaA,IAAiBC;AAAA,EAC1B,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,MAAAC,IAAO,IAAO,WAAAC,GAAW,YAAAC,GAAY,GAAGC,EAAA,MACtD,gBAAAC,EAAC,OAAA,EAAK,GAAGD,GAAO,KAAAL,GAAU,WAAWO,EAAGC,EAAO,MAAMN,KAAQM,EAAO,MAAML,CAAS,GAAG,gBAAcC,GAC/F,UAAAH,EAAA,CACL;AAER;AAEAH,EAAe,cAAc;;;;;;;;;;;;;;;;;;;;;;;GCPvBW,IAA2C;AAAA,EAC7C,GAAGD,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AACf,GAEME,IAAsD;AAAA,EACxD,OAAOF,EAAO;AAAA,EACd,QAAQA,EAAO;AAAA,EACf,KAAKA,EAAO;AAAA,EACZ,SAAS;AACb,GAEMG,IAAmD;AAAA,EACrD,OAAOH,EAAO;AAAA,EACd,QAAQA,EAAO;AAAA,EACf,KAAKA,EAAO;AAAA,EACZ,SAASA,EAAO;AACpB,GAEMI,IAAiBb;AAAA,EACnB,CAAC;AAAA,IACG,KAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAY,IAAY;AAAA,IACZ,KAAAC,IAAM;AAAA,IACN,OAAAC,IAAQ;AAAA,IACR,SAAAC,IAAU;AAAA,IACV,MAAAC,IAAO;AAAA,IACP,QAAAC,IAAS;AAAA,IACT,WAAAf;AAAA,IACA,YAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MAEH,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACI,GAAGD;AAAA,MACJ,KAAAL;AAAA,MACA,QAAAkB;AAAA,MACA,WAAWX;AAAA,QACPC,EAAO;AAAA,QACPK,MAAc,YAAYL,EAAO;AAAA,QACjCS,KAAQT,EAAO;AAAA,QACfC,EAASK,CAAG;AAAA,QACZJ,EAAWK,CAAK;AAAA,QAChBJ,EAAaK,CAAO;AAAA,QACpBb;AAAA,MAAA;AAAA,MAEJ,gBAAcC;AAAA,MAEb,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGb;AAEAW,EAAe,cAAc;AAEtB,MAAMO,IAAa,OAAO,OAAOP,GAAgB,EAAE,MAAMd,GAAgB;"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
2
|
+
import { IDataTestIdProps } from '../ds/common/index.js';
|
|
3
|
+
/** Gap step. Matches the spacing scale. */
|
|
4
|
+
export type TFlexLayoutGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
5
|
+
/** Main axis. */
|
|
6
|
+
export type TFlexLayoutDirection = 'row' | 'column';
|
|
7
|
+
/** Cross-axis alignment. */
|
|
8
|
+
export type TFlexLayoutAlign = 'start' | 'center' | 'end' | 'stretch';
|
|
9
|
+
/** Main-axis distribution. */
|
|
10
|
+
export type TFlexLayoutJustify = 'start' | 'center' | 'end' | 'between';
|
|
11
|
+
/** Own props for FlexLayout. */
|
|
12
|
+
export interface IFlexLayoutOwnProps extends IDataTestIdProps {
|
|
13
|
+
children: ReactNode;
|
|
14
|
+
/** Row or column. */
|
|
15
|
+
direction?: TFlexLayoutDirection;
|
|
16
|
+
/** Gap between items. */
|
|
17
|
+
gap?: TFlexLayoutGap;
|
|
18
|
+
/** Cross-axis alignment. */
|
|
19
|
+
align?: TFlexLayoutAlign;
|
|
20
|
+
/** Main-axis distribution. */
|
|
21
|
+
justify?: TFlexLayoutJustify;
|
|
22
|
+
/** Wrap items onto the next line. */
|
|
23
|
+
wrap?: boolean;
|
|
24
|
+
/** Removes the layout from the page. */
|
|
25
|
+
hidden?: boolean;
|
|
26
|
+
/** Ref to the layout (React 19 prop). */
|
|
27
|
+
ref?: Ref<HTMLDivElement>;
|
|
28
|
+
}
|
|
29
|
+
export interface IFlexLayoutProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFlexLayoutOwnProps | 'children'>, IFlexLayoutOwnProps {
|
|
30
|
+
}
|
|
31
|
+
/** Own props for FlexLayout.Item. */
|
|
32
|
+
export interface IFlexLayoutItemOwnProps extends IDataTestIdProps {
|
|
33
|
+
children: ReactNode;
|
|
34
|
+
/** Take the free space on the main axis. */
|
|
35
|
+
grow?: boolean;
|
|
36
|
+
/** Ref to the item (React 19 prop). */
|
|
37
|
+
ref?: Ref<HTMLDivElement>;
|
|
38
|
+
}
|
|
39
|
+
export interface IFlexLayoutItemProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFlexLayoutItemOwnProps | 'children'>, IFlexLayoutItemOwnProps {
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/flex-layout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAE7E,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,2CAA2C;AAC3C,MAAM,MAAM,cAAc,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;AAE/E,iBAAiB;AACjB,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,QAAQ,CAAC;AAEpD,4BAA4B;AAC5B,MAAM,MAAM,gBAAgB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAEtE,8BAA8B;AAC9B,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,GAAG,SAAS,CAAC;AAExE,gCAAgC;AAChC,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IACzD,QAAQ,EAAE,SAAS,CAAC;IACpB,qBAAqB;IACrB,SAAS,CAAC,EAAE,oBAAoB,CAAC;IACjC,yBAAyB;IACzB,GAAG,CAAC,EAAE,cAAc,CAAC;IACrB,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,wCAAwC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,yCAAyC;IACzC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,gBACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,mBAAmB,GAAG,UAAU,CAAC,EAAE,mBAAmB;CAAG;AAE9G,qCAAqC;AACrC,MAAM,WAAW,uBAAwB,SAAQ,gBAAgB;IAC7D,QAAQ,EAAE,SAAS,CAAC;IACpB,4CAA4C;IAC5C,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC7B;AAED,MAAM,WAAW,oBACb,SAAQ,IAAI,CAAC,qBAAqB,CAAC,KAAK,CAAC,EAAE,MAAM,uBAAuB,GAAG,UAAU,CAAC,EAAE,uBAAuB;CAAG"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IGridLayoutProps } from './types';
|
|
2
|
+
export declare const GridLayout: (({ ref, children, cols, gap, col, align, hidden, className, dataTestId, style, ...props }: IGridLayoutProps) => import("react").JSX.Element) & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
} & {
|
|
5
|
+
Item: (({ ref, children, col, className, dataTestId, style, ...props }: import('./types').IGridLayoutItemProps) => import("react").JSX.Element) & {
|
|
6
|
+
displayName?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=Component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Component.d.ts","sourceRoot":"","sources":["../../../src/grid-layout/Component.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,KAAK,gBAAgB,EAA8C,MAAM,SAAS,CAAC;AA+D5F,eAAO,MAAM,UAAU,8FAxBhB,gBAAgB;;;;;;CAwB0D,CAAC"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IGridLayoutItemProps } from '../../types';
|
|
2
|
+
export declare const GridLayoutItem: (({ ref, children, col, className, dataTestId, style, ...props }: IGridLayoutItemProps) => import("react").JSX.Element) & {
|
|
3
|
+
displayName?: string;
|
|
4
|
+
};
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/grid-layout/components/Item/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,oBAAoB,EAAyB,MAAM,aAAa,CAAC;AAK/E,eAAO,MAAM,cAAc,oEAC0C,oBAAoB;;CAkBxF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/grid-layout/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import g from "classnames";
|
|
3
|
+
import { s as _ } from "../index-h8z54aFR.js";
|
|
4
|
+
import '../assets/index17.css';const G = (a) => typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a.map((e) => typeof e == "number" ? `${e}fr` : e).join(" "), d = (a) => a === "full" ? "1 / -1" : typeof a == "number" ? `span ${a}` : "auto", L = "aub_styles-module_root_d8095", $ = {
|
|
5
|
+
root: L
|
|
6
|
+
}, m = _(
|
|
7
|
+
({ ref: a, children: e, col: s, className: o, dataTestId: p, style: u, ...r }) => {
|
|
8
|
+
const n = {
|
|
9
|
+
...u,
|
|
10
|
+
"--aui-grid-layout-col": d(s)
|
|
11
|
+
};
|
|
12
|
+
return /* @__PURE__ */ l(
|
|
13
|
+
"div",
|
|
14
|
+
{
|
|
15
|
+
...r,
|
|
16
|
+
ref: a,
|
|
17
|
+
className: g($.root, o),
|
|
18
|
+
style: n,
|
|
19
|
+
"data-test-id": p,
|
|
20
|
+
children: e
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
}
|
|
24
|
+
);
|
|
25
|
+
m.displayName = "GridLayout.Item";
|
|
26
|
+
const N = "aub_styles-module_root_5a7d4", j = "aub_styles-module_gap0_5a7ed", x = "aub_styles-module_gap4_201c5", C = "aub_styles-module_gap8_aeb1b", I = "aub_styles-module_gap12_2f1c5", h = "aub_styles-module_gap16_1d6bd", v = "aub_styles-module_gap20_2755c", R = "aub_styles-module_gap24_77b33", S = "aub_styles-module_gap32_af5e0", O = "aub_styles-module_gap40_05ba5", T = "aub_styles-module_gap48_5a222", q = "aub_styles-module_gap64_f11d8", w = "aub_styles-module_start_902b5", z = "aub_styles-module_center_08d51", A = "aub_styles-module_end_b5c44", t = {
|
|
27
|
+
root: N,
|
|
28
|
+
gap0: j,
|
|
29
|
+
gap4: x,
|
|
30
|
+
gap8: C,
|
|
31
|
+
gap12: I,
|
|
32
|
+
gap16: h,
|
|
33
|
+
gap20: v,
|
|
34
|
+
gap24: R,
|
|
35
|
+
gap32: S,
|
|
36
|
+
gap40: O,
|
|
37
|
+
gap48: T,
|
|
38
|
+
gap64: q,
|
|
39
|
+
start: w,
|
|
40
|
+
center: z,
|
|
41
|
+
end: A
|
|
42
|
+
}, B = {
|
|
43
|
+
0: t.gap0,
|
|
44
|
+
4: t.gap4,
|
|
45
|
+
8: t.gap8,
|
|
46
|
+
12: t.gap12,
|
|
47
|
+
16: t.gap16,
|
|
48
|
+
20: t.gap20,
|
|
49
|
+
24: t.gap24,
|
|
50
|
+
32: t.gap32,
|
|
51
|
+
40: t.gap40,
|
|
52
|
+
48: t.gap48,
|
|
53
|
+
64: t.gap64
|
|
54
|
+
}, D = {
|
|
55
|
+
start: t.start,
|
|
56
|
+
center: t.center,
|
|
57
|
+
end: t.end,
|
|
58
|
+
stretch: null
|
|
59
|
+
}, c = _(
|
|
60
|
+
({
|
|
61
|
+
ref: a,
|
|
62
|
+
children: e,
|
|
63
|
+
cols: s,
|
|
64
|
+
gap: o = 16,
|
|
65
|
+
col: p,
|
|
66
|
+
align: u = "stretch",
|
|
67
|
+
hidden: r = !1,
|
|
68
|
+
className: n,
|
|
69
|
+
dataTestId: y,
|
|
70
|
+
style: i,
|
|
71
|
+
...b
|
|
72
|
+
}) => {
|
|
73
|
+
const f = {
|
|
74
|
+
...i,
|
|
75
|
+
"--aui-grid-layout-template": G(s),
|
|
76
|
+
"--aui-grid-layout-col": d(p)
|
|
77
|
+
};
|
|
78
|
+
return /* @__PURE__ */ l(
|
|
79
|
+
"div",
|
|
80
|
+
{
|
|
81
|
+
...b,
|
|
82
|
+
ref: a,
|
|
83
|
+
hidden: r,
|
|
84
|
+
className: g(t.root, B[o], D[u], n),
|
|
85
|
+
style: f,
|
|
86
|
+
"data-test-id": y,
|
|
87
|
+
children: e
|
|
88
|
+
}
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
);
|
|
92
|
+
c.displayName = "GridLayout";
|
|
93
|
+
const J = Object.assign(c, { Item: m });
|
|
94
|
+
export {
|
|
95
|
+
J as GridLayout
|
|
96
|
+
};
|
|
97
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../src/grid-layout/utils.ts","../../src/grid-layout/components/Item/index.tsx","../../src/grid-layout/Component.tsx"],"sourcesContent":["import { type TGridLayoutCol, type TGridLayoutTrack } from './types';\n\n/** Equal tracks, or an explicit list (`2` → two `1fr`, `2` inside a list → `2fr`). */\nexport const toGridLayoutTemplate = (cols: number | TGridLayoutTrack[]): string => {\n if (typeof cols === 'number') {\n return `repeat(${cols}, minmax(0, 1fr))`;\n }\n\n return cols.map(track => (typeof track === 'number' ? `${track}fr` : track)).join(' ');\n};\n\n/** Item span. `full` crosses every column. */\nexport const toGridLayoutColumn = (col?: TGridLayoutCol): string => {\n if (col === 'full') {\n return '1 / -1';\n }\n\n if (typeof col === 'number') {\n return `span ${col}`;\n }\n\n return 'auto';\n};\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { type IGridLayoutItemProps, type IGridLayoutStyle } from '../../types';\nimport { toGridLayoutColumn } from '../../utils';\n\nimport styles from './styles.module.css';\n\nexport const GridLayoutItem = supportRef(\n ({ ref, children, col, className, dataTestId, style, ...props }: IGridLayoutItemProps) => {\n const itemStyle: IGridLayoutStyle = {\n ...style,\n '--aui-grid-layout-col': toGridLayoutColumn(col),\n };\n\n return (\n <div\n {...props}\n ref={ref}\n className={cn(styles.root, className)}\n style={itemStyle}\n data-test-id={dataTestId}\n >\n {children}\n </div>\n );\n }\n);\n\nGridLayoutItem.displayName = 'GridLayout.Item';\n","import cn from 'classnames';\n\nimport { supportRef } from '@ds/common/support-ref';\n\nimport { GridLayoutItem } from './components/Item';\nimport { type IGridLayoutProps, type IGridLayoutStyle, type TGridLayoutGap } from './types';\nimport { toGridLayoutColumn, toGridLayoutTemplate } from './utils';\n\nimport styles from './styles.module.css';\n\nconst gapClass: Record<TGridLayoutGap, string> = {\n 0: styles.gap0,\n 4: styles.gap4,\n 8: styles.gap8,\n 12: styles.gap12,\n 16: styles.gap16,\n 20: styles.gap20,\n 24: styles.gap24,\n 32: styles.gap32,\n 40: styles.gap40,\n 48: styles.gap48,\n 64: styles.gap64,\n};\n\nconst alignClass = {\n start: styles.start,\n center: styles.center,\n end: styles.end,\n stretch: null,\n} as const;\n\nconst GridLayoutRoot = supportRef(\n ({\n ref,\n children,\n cols,\n gap = 16,\n col,\n align = 'stretch',\n hidden = false,\n className,\n dataTestId,\n style,\n ...props\n }: IGridLayoutProps) => {\n const gridStyle: IGridLayoutStyle = {\n ...style,\n '--aui-grid-layout-template': toGridLayoutTemplate(cols),\n '--aui-grid-layout-col': toGridLayoutColumn(col),\n };\n\n return (\n <div\n {...props}\n ref={ref}\n hidden={hidden}\n className={cn(styles.root, gapClass[gap], alignClass[align], className)}\n style={gridStyle}\n data-test-id={dataTestId}\n >\n {children}\n </div>\n );\n }\n);\n\nGridLayoutRoot.displayName = 'GridLayout';\n\nexport const GridLayout = Object.assign(GridLayoutRoot, { Item: GridLayoutItem });\n"],"names":["toGridLayoutTemplate","cols","track","toGridLayoutColumn","col","GridLayoutItem","supportRef","ref","children","className","dataTestId","style","props","itemStyle","jsx","cn","styles","gapClass","alignClass","GridLayoutRoot","gap","align","hidden","gridStyle","GridLayout"],"mappings":";;;AAGO,MAAMA,IAAuB,CAACC,MAC7B,OAAOA,KAAS,WACT,UAAUA,CAAI,sBAGlBA,EAAK,IAAI,CAAAC,MAAU,OAAOA,KAAU,WAAW,GAAGA,CAAK,OAAOA,CAAM,EAAE,KAAK,GAAG,GAI5EC,IAAqB,CAACC,MAC3BA,MAAQ,SACD,WAGP,OAAOA,KAAQ,WACR,QAAQA,CAAG,KAGf;;GCZEC,IAAiBC;AAAA,EAC1B,CAAC,EAAE,KAAAC,GAAK,UAAAC,GAAU,KAAAJ,GAAK,WAAAK,GAAW,YAAAC,GAAY,OAAAC,GAAO,GAAGC,QAAkC;AACtF,UAAMC,IAA8B;AAAA,MAChC,GAAGF;AAAA,MACH,yBAAyBR,EAAmBC,CAAG;AAAA,IAAA;AAGnD,WACI,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACI,GAAGF;AAAA,QACJ,KAAAL;AAAA,QACA,WAAWQ,EAAGC,EAAO,MAAMP,CAAS;AAAA,QACpC,OAAOI;AAAA,QACP,gBAAcH;AAAA,QAEb,UAAAF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGb;AACJ;AAEAH,EAAe,cAAc;;;;;;;;;;;;;;;;;GCpBvBY,IAA2C;AAAA,EAC7C,GAAGD,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,GAAGA,EAAO;AAAA,EACV,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AAAA,EACX,IAAIA,EAAO;AACf,GAEME,IAAa;AAAA,EACf,OAAOF,EAAO;AAAA,EACd,QAAQA,EAAO;AAAA,EACf,KAAKA,EAAO;AAAA,EACZ,SAAS;AACb,GAEMG,IAAiBb;AAAA,EACnB,CAAC;AAAA,IACG,KAAAC;AAAA,IACA,UAAAC;AAAA,IACA,MAAAP;AAAA,IACA,KAAAmB,IAAM;AAAA,IACN,KAAAhB;AAAA,IACA,OAAAiB,IAAQ;AAAA,IACR,QAAAC,IAAS;AAAA,IACT,WAAAb;AAAA,IACA,YAAAC;AAAA,IACA,OAAAC;AAAA,IACA,GAAGC;AAAA,EAAA,MACiB;AACpB,UAAMW,IAA8B;AAAA,MAChC,GAAGZ;AAAA,MACH,8BAA8BX,EAAqBC,CAAI;AAAA,MACvD,yBAAyBE,EAAmBC,CAAG;AAAA,IAAA;AAGnD,WACI,gBAAAU;AAAA,MAAC;AAAA,MAAA;AAAA,QACI,GAAGF;AAAA,QACJ,KAAAL;AAAA,QACA,QAAAe;AAAA,QACA,WAAWP,EAAGC,EAAO,MAAMC,EAASG,CAAG,GAAGF,EAAWG,CAAK,GAAGZ,CAAS;AAAA,QACtE,OAAOc;AAAA,QACP,gBAAcb;AAAA,QAEb,UAAAF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGb;AACJ;AAEAW,EAAe,cAAc;AAEtB,MAAMK,IAAa,OAAO,OAAOL,GAAgB,EAAE,MAAMd,GAAgB;"}
|