@ensi-platform/admin-ui 0.14.0 → 0.14.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-_PP1i9V1.js → Component-Bs-kDKZf.js} +3 -3
- package/dist/{Component-_PP1i9V1.js.map → Component-Bs-kDKZf.js.map} +1 -1
- package/dist/{Component-DrdEP1wD.js → Component-DNQetS8Y.js} +3 -3
- package/dist/{Component-DrdEP1wD.js.map → Component-DNQetS8Y.js.map} +1 -1
- package/dist/{Component--pn4mDeS.js → Component-Q_eH0Y9C.js} +2 -2
- package/dist/{Component--pn4mDeS.js.map → Component-Q_eH0Y9C.js.map} +1 -1
- package/dist/{Component-COgt_U9z.js → Component-jpe2PT8K.js} +3 -3
- package/dist/{Component-COgt_U9z.js.map → Component-jpe2PT8K.js.map} +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index12.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/index22.css +1 -1
- package/dist/assets/index34.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/autocomplete/index.js +1 -1
- package/dist/autocomplete-async/index.js +2 -2
- package/dist/color-field/index.js +22 -22
- package/dist/color-field/index.js.map +1 -1
- package/dist/combobox/components/MultiTrigger/index.d.ts.map +1 -1
- package/dist/combobox/components/Trigger/index.d.ts.map +1 -1
- package/dist/combobox/index.js +3 -3
- package/dist/data-table/index.js +1 -1
- package/dist/date-picker/Component.d.ts.map +1 -1
- package/dist/date-picker/index.js +142 -134
- package/dist/date-picker/index.js.map +1 -1
- package/dist/date-range-picker/Component.d.ts.map +1 -1
- package/dist/date-range-picker/index.js +150 -142
- package/dist/date-range-picker/index.js.map +1 -1
- package/dist/flex-layout/Component.d.ts +1 -1
- package/dist/flex-layout/Component.d.ts.map +1 -1
- package/dist/flex-layout/index.js +60 -52
- package/dist/flex-layout/index.js.map +1 -1
- package/dist/flex-layout/types.d.ts +10 -1
- package/dist/flex-layout/types.d.ts.map +1 -1
- package/dist/grid-layout/Component.d.ts +1 -1
- package/dist/grid-layout/Component.d.ts.map +1 -1
- package/dist/grid-layout/index.js +57 -53
- package/dist/grid-layout/index.js.map +1 -1
- package/dist/grid-layout/types.d.ts +6 -0
- package/dist/grid-layout/types.d.ts.map +1 -1
- package/dist/index-BVJblFhG.js +275 -0
- package/dist/index-BVJblFhG.js.map +1 -0
- package/dist/index-DtpMocgp.js +106 -0
- package/dist/index-DtpMocgp.js.map +1 -0
- package/dist/multi-autocomplete/index.js +1 -1
- package/dist/multi-autocomplete-async/index.js +1 -1
- package/dist/multi-select/index.js +2 -2
- package/dist/select/index.js +1 -1
- package/dist/table/index.js +1 -1
- package/dist/time-field/Component.d.ts.map +1 -1
- package/dist/time-field/index.js +87 -79
- package/dist/time-field/index.js.map +1 -1
- package/dist/{utils-Dfp1NDWx.js → utils-C3l0oYwN.js} +8 -8
- package/dist/utils-C3l0oYwN.js.map +1 -0
- package/package.json +1 -1
- package/src/color-field/docs/cssVariables.ts +8 -2
- package/src/date-picker/docs/cssVariables.ts +4 -0
- package/src/date-range-picker/docs/cssVariables.ts +4 -0
- package/src/flex-layout/docs/Description.md +3 -1
- package/src/flex-layout/types.ts +11 -1
- package/src/grid-layout/docs/Description.md +3 -1
- package/src/grid-layout/types.ts +6 -0
- package/src/time-field/docs/cssVariables.ts +4 -0
- package/dist/index-CYUeRS10.js +0 -262
- package/dist/index-CYUeRS10.js.map +0 -1
- package/dist/index-Rx06m88a.js +0 -101
- package/dist/index-Rx06m88a.js.map +0 -1
- package/dist/utils-Dfp1NDWx.js.map +0 -1
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as _ } from "react/jsx-runtime";
|
|
2
2
|
import p from "classnames";
|
|
3
|
-
import { s as
|
|
4
|
-
import '../assets/index12.css';const
|
|
5
|
-
root:
|
|
6
|
-
grow:
|
|
7
|
-
},
|
|
8
|
-
({ ref:
|
|
3
|
+
import { s as g } from "../index-h8z54aFR.js";
|
|
4
|
+
import '../assets/index12.css';const w = "aub_styles-module_root_6fb94", x = "aub_styles-module_grow_f3b2d", n = {
|
|
5
|
+
root: w,
|
|
6
|
+
grow: x
|
|
7
|
+
}, c = g(
|
|
8
|
+
({ ref: e, children: a, grow: s = !1, className: o, dataTestId: l, ...u }) => /* @__PURE__ */ _("div", { ...u, ref: e, className: p(n.root, s && n.grow, o), "data-test-id": l, children: a })
|
|
9
9
|
);
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
root:
|
|
13
|
-
column:
|
|
14
|
-
wrap:
|
|
15
|
-
gap0:
|
|
16
|
-
gap4:
|
|
17
|
-
gap8:
|
|
18
|
-
gap12:
|
|
10
|
+
c.displayName = "FlexLayout.Item";
|
|
11
|
+
const C = "aub_styles-module_root_208b0", F = "aub_styles-module_column_7b48c", L = "aub_styles-module_wrap_3e487", v = "aub_styles-module_gap0_511ba", N = "aub_styles-module_gap4_a11b2", S = "aub_styles-module_gap8_0001f", $ = "aub_styles-module_gap12_2faaf", E = "aub_styles-module_gap16_1a9d4", I = "aub_styles-module_gap20_ca7b9", h = "aub_styles-module_gap24_20da2", R = "aub_styles-module_gap32_0aae1", O = "aub_styles-module_gap40_0b0a3", k = "aub_styles-module_gap48_28ea1", q = "aub_styles-module_gap64_e05eb", z = "aub_styles-module_start_59232", A = "aub_styles-module_center_a8723", B = "aub_styles-module_end_40e0b", D = "aub_styles-module_justify-start_94083", H = "aub_styles-module_justify-center_eadc0", J = "aub_styles-module_justify-end_b6925", K = "aub_styles-module_between_6ce09", t = {
|
|
12
|
+
root: C,
|
|
13
|
+
column: F,
|
|
14
|
+
wrap: L,
|
|
15
|
+
gap0: v,
|
|
16
|
+
gap4: N,
|
|
17
|
+
gap8: S,
|
|
18
|
+
gap12: $,
|
|
19
19
|
gap16: E,
|
|
20
20
|
gap20: I,
|
|
21
|
-
gap24:
|
|
22
|
-
gap32:
|
|
23
|
-
gap40:
|
|
24
|
-
gap48:
|
|
25
|
-
gap64:
|
|
26
|
-
start:
|
|
27
|
-
center:
|
|
28
|
-
end:
|
|
29
|
-
justifyStart:
|
|
30
|
-
justifyCenter:
|
|
31
|
-
justifyEnd:
|
|
32
|
-
between:
|
|
33
|
-
},
|
|
21
|
+
gap24: h,
|
|
22
|
+
gap32: R,
|
|
23
|
+
gap40: O,
|
|
24
|
+
gap48: k,
|
|
25
|
+
gap64: q,
|
|
26
|
+
start: z,
|
|
27
|
+
center: A,
|
|
28
|
+
end: B,
|
|
29
|
+
justifyStart: D,
|
|
30
|
+
justifyCenter: H,
|
|
31
|
+
justifyEnd: J,
|
|
32
|
+
between: K
|
|
33
|
+
}, M = {
|
|
34
34
|
0: t.gap0,
|
|
35
35
|
4: t.gap4,
|
|
36
36
|
8: t.gap8,
|
|
@@ -42,50 +42,58 @@ const j = "aub_styles-module_root_208b0", w = "aub_styles-module_column_7b48c",
|
|
|
42
42
|
40: t.gap40,
|
|
43
43
|
48: t.gap48,
|
|
44
44
|
64: t.gap64
|
|
45
|
-
},
|
|
45
|
+
}, P = {
|
|
46
46
|
start: t.start,
|
|
47
47
|
center: t.center,
|
|
48
48
|
end: t.end,
|
|
49
49
|
stretch: null
|
|
50
|
-
},
|
|
50
|
+
}, Q = (e, a, s) => a == null && s == null ? e : {
|
|
51
|
+
...e,
|
|
52
|
+
...a != null ? { "--aui-flex-layout-row-gap": `var(--aui-flex-layout-gap-${a})` } : {},
|
|
53
|
+
...s != null ? { "--aui-flex-layout-column-gap": `var(--aui-flex-layout-gap-${s})` } : {}
|
|
54
|
+
}, T = {
|
|
51
55
|
start: t.justifyStart,
|
|
52
56
|
center: t.justifyCenter,
|
|
53
57
|
end: t.justifyEnd,
|
|
54
58
|
between: t.between
|
|
55
|
-
}, r =
|
|
59
|
+
}, r = g(
|
|
56
60
|
({
|
|
57
|
-
ref:
|
|
61
|
+
ref: e,
|
|
58
62
|
children: a,
|
|
59
|
-
direction:
|
|
63
|
+
direction: s = "row",
|
|
60
64
|
gap: o = 16,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
65
|
+
rowGap: l,
|
|
66
|
+
columnGap: u,
|
|
67
|
+
align: y = "stretch",
|
|
68
|
+
justify: d = "start",
|
|
69
|
+
wrap: b = !1,
|
|
70
|
+
className: m,
|
|
71
|
+
dataTestId: i,
|
|
72
|
+
style: f,
|
|
73
|
+
...j
|
|
74
|
+
}) => /* @__PURE__ */ _(
|
|
68
75
|
"div",
|
|
69
76
|
{
|
|
70
|
-
...
|
|
71
|
-
ref:
|
|
77
|
+
...j,
|
|
78
|
+
ref: e,
|
|
72
79
|
className: p(
|
|
73
80
|
t.root,
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
81
|
+
s === "column" && t.column,
|
|
82
|
+
b && t.wrap,
|
|
83
|
+
M[o],
|
|
84
|
+
P[y],
|
|
85
|
+
T[d],
|
|
86
|
+
m
|
|
80
87
|
),
|
|
81
|
-
|
|
88
|
+
style: Q(f, l, u),
|
|
89
|
+
"data-test-id": i,
|
|
82
90
|
children: a
|
|
83
91
|
}
|
|
84
92
|
)
|
|
85
93
|
);
|
|
86
94
|
r.displayName = "FlexLayout";
|
|
87
|
-
const
|
|
95
|
+
const X = Object.assign(r, { Item: c });
|
|
88
96
|
export {
|
|
89
|
-
|
|
97
|
+
X as FlexLayout
|
|
90
98
|
};
|
|
91
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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 {
|
|
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 {\n type IFlexLayoutProps,\n type IFlexLayoutStyle,\n type TFlexLayoutAlign,\n type TFlexLayoutGap,\n type TFlexLayoutJustify,\n} 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 axisGapStyle = (\n style: IFlexLayoutStyle | undefined,\n rowGap: TFlexLayoutGap | undefined,\n columnGap: TFlexLayoutGap | undefined\n): IFlexLayoutStyle | undefined => {\n if (rowGap == null && columnGap == null) {\n return style;\n }\n\n return {\n ...style,\n ...(rowGap != null ? { '--aui-flex-layout-row-gap': `var(--aui-flex-layout-gap-${rowGap})` } : {}),\n ...(columnGap != null ? { '--aui-flex-layout-column-gap': `var(--aui-flex-layout-gap-${columnGap})` } : {}),\n };\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 rowGap,\n columnGap,\n align = 'stretch',\n justify = 'start',\n wrap = false,\n className,\n dataTestId,\n style,\n ...props\n }: IFlexLayoutProps) => (\n <div\n {...props}\n ref={ref}\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 style={axisGapStyle(style, rowGap, columnGap)}\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","axisGapStyle","style","rowGap","columnGap","justifyClass","FlexLayoutRoot","direction","gap","align","justify","wrap","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;;;;;;;;;;;;;;;;;;;;;;;GCDvBW,IAA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AAQb,EAAO;AAAA,QACfC,EAASS,CAAG;AAAA,QACZR,EAAWS,CAAK;AAAA,QAChBJ,EAAaK,CAAO;AAAA,QACpBjB;AAAA,MAAA;AAAA,MAEJ,OAAOQ,EAAaC,GAAOC,GAAQC,CAAS;AAAA,MAC5C,gBAAcV;AAAA,MAEb,UAAAH;AAAA,IAAA;AAAA,EAAA;AAGb;AAEAe,EAAe,cAAc;AAEtB,MAAMM,IAAa,OAAO,OAAON,GAAgB,EAAE,MAAMlB,GAAgB;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
1
|
+
import { CSSProperties, ComponentPropsWithRef, ReactNode, Ref } from 'react';
|
|
2
2
|
import { IDataTestIdProps } from '../ds/common/index.js';
|
|
3
3
|
/** Gap step. Matches the spacing scale. */
|
|
4
4
|
export type TFlexLayoutGap = 0 | 4 | 8 | 12 | 16 | 20 | 24 | 32 | 40 | 48 | 64;
|
|
@@ -15,6 +15,10 @@ export interface IFlexLayoutOwnProps extends IDataTestIdProps {
|
|
|
15
15
|
direction?: TFlexLayoutDirection;
|
|
16
16
|
/** Gap between items. */
|
|
17
17
|
gap?: TFlexLayoutGap;
|
|
18
|
+
/** Row gap. Overrides gap. */
|
|
19
|
+
rowGap?: TFlexLayoutGap;
|
|
20
|
+
/** Column gap. Overrides gap. */
|
|
21
|
+
columnGap?: TFlexLayoutGap;
|
|
18
22
|
/** Cross-axis alignment. */
|
|
19
23
|
align?: TFlexLayoutAlign;
|
|
20
24
|
/** Main-axis distribution. */
|
|
@@ -36,4 +40,9 @@ export interface IFlexLayoutItemOwnProps extends IDataTestIdProps {
|
|
|
36
40
|
}
|
|
37
41
|
export interface IFlexLayoutItemProps extends Omit<ComponentPropsWithRef<'div'>, keyof IFlexLayoutItemOwnProps | 'children'>, IFlexLayoutItemOwnProps {
|
|
38
42
|
}
|
|
43
|
+
/** Inline axis gaps written by FlexLayout. */
|
|
44
|
+
export interface IFlexLayoutStyle extends CSSProperties {
|
|
45
|
+
'--aui-flex-layout-row-gap'?: string;
|
|
46
|
+
'--aui-flex-layout-column-gap'?: string;
|
|
47
|
+
}
|
|
39
48
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +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;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/flex-layout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK,qBAAqB,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjG,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,8BAA8B;IAC9B,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,iCAAiC;IACjC,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,4BAA4B;IAC5B,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,8BAA8B;IAC9B,OAAO,CAAC,EAAE,kBAAkB,CAAC;IAC7B,qCAAqC;IACrC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,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;AAEtH,8CAA8C;AAC9C,MAAM,WAAW,gBAAiB,SAAQ,aAAa;IACnD,2BAA2B,CAAC,EAAE,MAAM,CAAC;IACrC,8BAA8B,CAAC,EAAE,MAAM,CAAC;CAC3C"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IGridLayoutProps } from './types';
|
|
2
|
-
export declare const GridLayout: (({ ref, children, cols, gap, col, align, className, dataTestId, style, ...props }: IGridLayoutProps) => import("react").JSX.Element) & {
|
|
2
|
+
export declare const GridLayout: (({ ref, children, cols, gap, rowGap, columnGap, col, align, className, dataTestId, style, ...props }: IGridLayoutProps) => import("react").JSX.Element) & {
|
|
3
3
|
displayName?: string;
|
|
4
4
|
} & {
|
|
5
5
|
Item: (({ ref, children, col, className, dataTestId, style, ...props }: import('./types').IGridLayoutItemProps) => import("react").JSX.Element) & {
|
|
@@ -1 +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;
|
|
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;AAiE5F,eAAO,MAAM,UAAU,yGAzBhB,gBAAgB;;;;;;CAyB0D,CAAC"}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { s as
|
|
4
|
-
import '../assets/index18.css';const
|
|
1
|
+
import { jsx as g } from "react/jsx-runtime";
|
|
2
|
+
import n from "classnames";
|
|
3
|
+
import { s as d } from "../index-h8z54aFR.js";
|
|
4
|
+
import '../assets/index18.css';const $ = (a) => typeof a == "number" ? `repeat(${a}, minmax(0, 1fr))` : a.map((e) => typeof e == "number" ? `${e}fr` : e).join(" "), _ = (a) => a === "full" ? "1 / -1" : typeof a == "number" ? `span ${a}` : "auto", G = "aub_styles-module_root_d8095", v = {
|
|
5
5
|
root: G
|
|
6
|
-
},
|
|
7
|
-
({ ref: a, children: e, col:
|
|
8
|
-
const
|
|
9
|
-
...
|
|
10
|
-
"--aui-grid-layout-col":
|
|
6
|
+
}, y = d(
|
|
7
|
+
({ ref: a, children: e, col: u, className: p, dataTestId: o, style: s, ...r }) => {
|
|
8
|
+
const l = {
|
|
9
|
+
...s,
|
|
10
|
+
"--aui-grid-layout-col": _(u)
|
|
11
11
|
};
|
|
12
|
-
return /* @__PURE__ */
|
|
12
|
+
return /* @__PURE__ */ g(
|
|
13
13
|
"div",
|
|
14
14
|
{
|
|
15
15
|
...r,
|
|
16
16
|
ref: a,
|
|
17
|
-
className:
|
|
18
|
-
style:
|
|
19
|
-
"data-test-id":
|
|
17
|
+
className: n(v.root, p),
|
|
18
|
+
style: l,
|
|
19
|
+
"data-test-id": o,
|
|
20
20
|
children: e
|
|
21
21
|
}
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
|
-
|
|
26
|
-
const
|
|
27
|
-
root:
|
|
28
|
-
gap0:
|
|
29
|
-
gap4:
|
|
30
|
-
gap8:
|
|
31
|
-
gap12:
|
|
32
|
-
gap16:
|
|
33
|
-
gap20:
|
|
34
|
-
gap24:
|
|
35
|
-
gap32:
|
|
36
|
-
gap40:
|
|
37
|
-
gap48:
|
|
38
|
-
gap64:
|
|
39
|
-
start:
|
|
40
|
-
center:
|
|
41
|
-
end:
|
|
42
|
-
},
|
|
25
|
+
y.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", R = "aub_styles-module_gap20_2755c", S = "aub_styles-module_gap24_77b33", O = "aub_styles-module_gap32_af5e0", T = "aub_styles-module_gap40_05ba5", q = "aub_styles-module_gap48_5a222", w = "aub_styles-module_gap64_f11d8", z = "aub_styles-module_start_902b5", A = "aub_styles-module_center_08d51", B = "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: R,
|
|
34
|
+
gap24: S,
|
|
35
|
+
gap32: O,
|
|
36
|
+
gap40: T,
|
|
37
|
+
gap48: q,
|
|
38
|
+
gap64: w,
|
|
39
|
+
start: z,
|
|
40
|
+
center: A,
|
|
41
|
+
end: B
|
|
42
|
+
}, D = {
|
|
43
43
|
0: t.gap0,
|
|
44
44
|
4: t.gap4,
|
|
45
45
|
8: t.gap8,
|
|
@@ -51,45 +51,49 @@ const $ = "aub_styles-module_root_5a7d4", N = "aub_styles-module_gap0_5a7ed", j
|
|
|
51
51
|
40: t.gap40,
|
|
52
52
|
48: t.gap48,
|
|
53
53
|
64: t.gap64
|
|
54
|
-
},
|
|
54
|
+
}, E = {
|
|
55
55
|
start: t.start,
|
|
56
56
|
center: t.center,
|
|
57
57
|
end: t.end,
|
|
58
58
|
stretch: null
|
|
59
|
-
},
|
|
59
|
+
}, i = d(
|
|
60
60
|
({
|
|
61
61
|
ref: a,
|
|
62
62
|
children: e,
|
|
63
|
-
cols:
|
|
64
|
-
gap:
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
63
|
+
cols: u,
|
|
64
|
+
gap: p = 16,
|
|
65
|
+
rowGap: o,
|
|
66
|
+
columnGap: s,
|
|
67
|
+
col: r,
|
|
68
|
+
align: l = "stretch",
|
|
69
|
+
className: m,
|
|
70
|
+
dataTestId: c,
|
|
71
|
+
style: b,
|
|
72
|
+
...f
|
|
71
73
|
}) => {
|
|
72
|
-
const
|
|
73
|
-
...
|
|
74
|
-
"--aui-grid-layout-template":
|
|
75
|
-
"--aui-grid-layout-col":
|
|
74
|
+
const L = {
|
|
75
|
+
...b,
|
|
76
|
+
"--aui-grid-layout-template": $(u),
|
|
77
|
+
"--aui-grid-layout-col": _(r),
|
|
78
|
+
...o != null ? { "--aui-grid-layout-row-gap": `var(--aui-grid-layout-gap-${o})` } : {},
|
|
79
|
+
...s != null ? { "--aui-grid-layout-column-gap": `var(--aui-grid-layout-gap-${s})` } : {}
|
|
76
80
|
};
|
|
77
|
-
return /* @__PURE__ */
|
|
81
|
+
return /* @__PURE__ */ g(
|
|
78
82
|
"div",
|
|
79
83
|
{
|
|
80
|
-
...
|
|
84
|
+
...f,
|
|
81
85
|
ref: a,
|
|
82
|
-
className:
|
|
83
|
-
style:
|
|
84
|
-
"data-test-id":
|
|
86
|
+
className: n(t.root, D[p], E[l], m),
|
|
87
|
+
style: L,
|
|
88
|
+
"data-test-id": c,
|
|
85
89
|
children: e
|
|
86
90
|
}
|
|
87
91
|
);
|
|
88
92
|
}
|
|
89
93
|
);
|
|
90
|
-
|
|
91
|
-
const
|
|
94
|
+
i.displayName = "GridLayout";
|
|
95
|
+
const K = Object.assign(i, { Item: y });
|
|
92
96
|
export {
|
|
93
|
-
|
|
97
|
+
K as GridLayout
|
|
94
98
|
};
|
|
95
99
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +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 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 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","gridStyle","GridLayout"],"mappings":";;;AAGO,MAAMA,IAAuB,CAACC,MAC7B,OAAOA,KAAS,WACT,UAAUA,CAAI,sBAGlBA,EAAK,IA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../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 rowGap,\n columnGap,\n col,\n align = 'stretch',\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 ...(rowGap != null ? { '--aui-grid-layout-row-gap': `var(--aui-grid-layout-gap-${rowGap})` } : {}),\n ...(columnGap != null ? { '--aui-grid-layout-column-gap': `var(--aui-grid-layout-gap-${columnGap})` } : {}),\n };\n\n return (\n <div\n {...props}\n ref={ref}\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","rowGap","columnGap","align","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,IAA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AAa,OAAO,EAAE,gCAAgC,6BAA6BA,CAAS,QAAQ,CAAA;AAAA,IAAC;AAG7G,WACI,gBAAAR;AAAA,MAAC;AAAA,MAAA;AAAA,QACI,GAAGF;AAAA,QACJ,KAAAL;AAAA,QACA,WAAWQ,EAAGC,EAAO,MAAMC,EAASG,CAAG,GAAGF,EAAWK,CAAK,GAAGd,CAAS;AAAA,QACtE,OAAOe;AAAA,QACP,gBAAcd;AAAA,QAEb,UAAAF;AAAA,MAAA;AAAA,IAAA;AAAA,EAGb;AACJ;AAEAW,EAAe,cAAc;AAEtB,MAAMM,IAAa,OAAO,OAAON,GAAgB,EAAE,MAAMd,GAAgB;"}
|
|
@@ -15,6 +15,10 @@ export interface IGridLayoutOwnProps extends IDataTestIdProps {
|
|
|
15
15
|
cols: number | TGridLayoutTrack[];
|
|
16
16
|
/** Gap between items. */
|
|
17
17
|
gap?: TGridLayoutGap;
|
|
18
|
+
/** Row gap. Overrides gap. */
|
|
19
|
+
rowGap?: TGridLayoutGap;
|
|
20
|
+
/** Column gap. Overrides gap. */
|
|
21
|
+
columnGap?: TGridLayoutGap;
|
|
18
22
|
/** Span when this grid sits inside another grid. */
|
|
19
23
|
col?: TGridLayoutCol;
|
|
20
24
|
/** Cross-axis alignment. */
|
|
@@ -38,5 +42,7 @@ export interface IGridLayoutItemProps extends Omit<ComponentPropsWithRef<'div'>,
|
|
|
38
42
|
export interface IGridLayoutStyle extends CSSProperties {
|
|
39
43
|
'--aui-grid-layout-template'?: string;
|
|
40
44
|
'--aui-grid-layout-col'?: string;
|
|
45
|
+
'--aui-grid-layout-row-gap'?: string;
|
|
46
|
+
'--aui-grid-layout-column-gap'?: string;
|
|
41
47
|
}
|
|
42
48
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/grid-layout/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,KAAK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