@movable/ui 0.15.3 → 0.16.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.
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { SxProps, Theme } from '@mui/material';
|
|
2
3
|
type InkPageHeaderProps = {
|
|
3
4
|
Breadcrumbs?: JSX.Element;
|
|
4
5
|
Subtitle?: JSX.Element;
|
|
@@ -6,6 +7,7 @@ type InkPageHeaderProps = {
|
|
|
6
7
|
ButtonGroup?: JSX.Element;
|
|
7
8
|
Chips?: JSX.Element;
|
|
8
9
|
Tabs?: JSX.Element;
|
|
10
|
+
sx?: SxProps<Theme>;
|
|
9
11
|
};
|
|
10
|
-
export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, }: InkPageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare function InkPageHeader({ Breadcrumbs, Subtitle, Metadata, Chips, ButtonGroup, Tabs, sx, }: InkPageHeaderProps): import("react/jsx-runtime").JSX.Element;
|
|
11
13
|
export {};
|
package/lib/index.mjs
CHANGED
|
@@ -630,7 +630,7 @@ Check the top-level render call using <` + y + ">.");
|
|
|
630
630
|
}
|
|
631
631
|
process.env.NODE_ENV === "production" ? Sr.exports = tn() : Sr.exports = nn();
|
|
632
632
|
var _ = Sr.exports;
|
|
633
|
-
function
|
|
633
|
+
function di({ stringToDisplay: e }) {
|
|
634
634
|
return _.jsxs(ke, { children: ["stringToDisplay prop is:", " ", _.jsx("span", { "data-test-string-to-display": !0, children: e })] });
|
|
635
635
|
}
|
|
636
636
|
const bt = 280, on = qt("main", { shouldForwardProp: (e) => e !== "open" })(({ theme: e, open: r }) => ({
|
|
@@ -649,7 +649,7 @@ const bt = 280, on = qt("main", { shouldForwardProp: (e) => e !== "open" })(({ t
|
|
|
649
649
|
marginLeft: 0
|
|
650
650
|
}
|
|
651
651
|
}));
|
|
652
|
-
function
|
|
652
|
+
function pi({
|
|
653
653
|
isOpen: e,
|
|
654
654
|
handleDrawerClose: r,
|
|
655
655
|
children: o,
|
|
@@ -673,16 +673,17 @@ function di({
|
|
|
673
673
|
variant: "outlined"
|
|
674
674
|
}, variant: "persistent", anchor: "left", open: e, children: _.jsxs(Ae, { direction: "column", spacing: 3, sx: { p: 2 }, children: [_.jsxs(Ae, { direction: "row", alignItems: "center", children: [_.jsxs(Ae, { direction: "row", alignItems: "center", children: [_.jsx(ir, { sx: { color: "text.primary" }, fontSize: "small", children: "filter_list_icon" }), _.jsx(ke, { sx: { ml: 2 }, "data-cy": "drawer-header", children: s })] }), _.jsx(Jt, { onClick: r, sx: { ml: "auto" }, children: _.jsx(ir, { fontSize: "small", children: "close_icon" }) })] }), a] }) }), _.jsx(on, { open: e, children: o })] });
|
|
675
675
|
}
|
|
676
|
-
function
|
|
676
|
+
function gi({ metadata: e }) {
|
|
677
677
|
return _.jsx(Ae, { direction: "row", spacing: 2, children: e.map(({ icon: r, label: o, value: n }) => _.jsxs(Ae, { direction: "row", spacing: 0.5, children: [_.jsx(ir, { fontSize: "small", sx: { color: "neutral600" }, children: r }), _.jsx(ke, { variant: "body2", color: "text.secondary", children: o }), _.jsx(ke, { variant: "body2", children: n })] }, o)) });
|
|
678
678
|
}
|
|
679
|
-
function
|
|
679
|
+
function yi({ Breadcrumbs: e, Subtitle: r, Metadata: o, Chips: n, ButtonGroup: i, Tabs: a, sx: s }) {
|
|
680
680
|
return _.jsx("header", { children: _.jsxs(Ae, { direction: "column", spacing: 2, sx: {
|
|
681
681
|
borderBottom: 1,
|
|
682
682
|
borderColor: "divider",
|
|
683
683
|
px: 3,
|
|
684
684
|
py: 3,
|
|
685
|
-
...a && { pb: -3 }
|
|
685
|
+
...a && { pb: -3 },
|
|
686
|
+
...s
|
|
686
687
|
}, children: [_.jsxs(Ae, { direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", children: [_.jsxs(Ae, { direction: "row", spacing: 1, alignItems: "center", children: [e, n] }), i] }), o, r, a] }) });
|
|
687
688
|
}
|
|
688
689
|
function an({ label: e }) {
|
|
@@ -691,10 +692,10 @@ function an({ label: e }) {
|
|
|
691
692
|
function sn({ breadcrumb: e, i: r }) {
|
|
692
693
|
return _.jsx(Zt, { underline: "hover", href: e.path, "data-cy": `breadcrumb-${r}`, variant: "h5", color: "text.disabled", children: e.label });
|
|
693
694
|
}
|
|
694
|
-
function
|
|
695
|
+
function mi({ breadcrumbs: e }) {
|
|
695
696
|
return _.jsx(Xt, { children: e == null ? void 0 : e.map((r, o) => o === e.length - 1 ? _.jsx(an, { label: r.label }, `breadcrumb-${o}`) : _.jsx(sn, { breadcrumb: r, i: o }, `breadcrumb-${o}`)) });
|
|
696
697
|
}
|
|
697
|
-
function
|
|
698
|
+
function hi({ primaryAction: e, secondaryAction: r, dropdownAction: o }) {
|
|
698
699
|
var d;
|
|
699
700
|
const [n, i] = Kt(null), a = !!n, s = (p) => {
|
|
700
701
|
i(p.currentTarget);
|
|
@@ -713,10 +714,10 @@ function mi({ primaryAction: e, secondaryAction: r, dropdownAction: o }) {
|
|
|
713
714
|
g(), f();
|
|
714
715
|
}, ...m, children: p }, l)) })] }), r && _.jsx(Er, { variant: "contained", color: "inherit", ...r, children: r.label }), e && _.jsx(Er, { variant: "contained", ...e, sx: { whiteSpace: "nowrap" }, children: e.label })] });
|
|
715
716
|
}
|
|
716
|
-
function
|
|
717
|
+
function bi({ subtitle: e }) {
|
|
717
718
|
return _.jsx(ke, { variant: "body2", color: "text.secondary", children: e });
|
|
718
719
|
}
|
|
719
|
-
function
|
|
720
|
+
function vi({ label: e, Stepper: r, ButtonGroup: o }) {
|
|
720
721
|
return _.jsx("header", { children: _.jsxs(Ae, { direction: "row", spacing: 2, justifyContent: "space-between", alignItems: "center", sx: {
|
|
721
722
|
borderBottom: "1px solid divider",
|
|
722
723
|
p: 3
|
|
@@ -2964,6 +2965,17 @@ const ni = {
|
|
|
2964
2965
|
}
|
|
2965
2966
|
}
|
|
2966
2967
|
}, oi = {
|
|
2968
|
+
MuiTypography: {
|
|
2969
|
+
styleOverrides: {
|
|
2970
|
+
root: ({ ownerState: e }) => ({
|
|
2971
|
+
// bold weight
|
|
2972
|
+
...(e.component === "strong" || e.component === "b") && {
|
|
2973
|
+
fontWeight: 600
|
|
2974
|
+
}
|
|
2975
|
+
})
|
|
2976
|
+
}
|
|
2977
|
+
}
|
|
2978
|
+
}, ii = {
|
|
2967
2979
|
50: "#ede7f6",
|
|
2968
2980
|
100: "#d1c4e9",
|
|
2969
2981
|
200: "#b39ddb",
|
|
@@ -2978,7 +2990,7 @@ const ni = {
|
|
|
2978
2990
|
A200: "#7c4dff",
|
|
2979
2991
|
A400: "#651fff",
|
|
2980
2992
|
A700: "#6200ea"
|
|
2981
|
-
}, ce =
|
|
2993
|
+
}, ce = ii, ai = {
|
|
2982
2994
|
50: "#e0f7fa",
|
|
2983
2995
|
100: "#b2ebf2",
|
|
2984
2996
|
200: "#80deea",
|
|
@@ -2993,7 +3005,7 @@ const ni = {
|
|
|
2993
3005
|
A200: "#18ffff",
|
|
2994
3006
|
A400: "#00e5ff",
|
|
2995
3007
|
A700: "#00b8d4"
|
|
2996
|
-
}, de =
|
|
3008
|
+
}, de = ai, si = {
|
|
2997
3009
|
50: "#f1f8e9",
|
|
2998
3010
|
100: "#dcedc8",
|
|
2999
3011
|
200: "#c5e1a5",
|
|
@@ -3008,7 +3020,7 @@ const ni = {
|
|
|
3008
3020
|
A200: "#b2ff59",
|
|
3009
3021
|
A400: "#76ff03",
|
|
3010
3022
|
A700: "#64dd17"
|
|
3011
|
-
}, xe =
|
|
3023
|
+
}, xe = si, ui = {
|
|
3012
3024
|
50: "#fffde7",
|
|
3013
3025
|
100: "#fff9c4",
|
|
3014
3026
|
200: "#fff59d",
|
|
@@ -3023,7 +3035,7 @@ const ni = {
|
|
|
3023
3035
|
A200: "#ffff00",
|
|
3024
3036
|
A400: "#ffea00",
|
|
3025
3037
|
A700: "#ffd600"
|
|
3026
|
-
}, ue =
|
|
3038
|
+
}, ue = ui, I = {
|
|
3027
3039
|
blue600: "#1389F6",
|
|
3028
3040
|
blue700: "#287DFD",
|
|
3029
3041
|
blue800: "#285AE6",
|
|
@@ -3274,12 +3286,13 @@ const ni = {
|
|
|
3274
3286
|
disabledBackground: ne[200],
|
|
3275
3287
|
disabled: ne[700]
|
|
3276
3288
|
}
|
|
3277
|
-
}, mt = "0.15px",
|
|
3289
|
+
}, mt = "0.15px", li = "5.5px", xi = ti({
|
|
3278
3290
|
typography: {
|
|
3279
3291
|
fontFamily: ["Inter", "sans-serif"].join(",")
|
|
3280
3292
|
},
|
|
3281
3293
|
components: {
|
|
3282
3294
|
...ni,
|
|
3295
|
+
...oi,
|
|
3283
3296
|
MuiAutocomplete: {
|
|
3284
3297
|
defaultProps: {
|
|
3285
3298
|
ChipProps: {
|
|
@@ -3488,7 +3501,7 @@ const ni = {
|
|
|
3488
3501
|
MuiFormControl: {
|
|
3489
3502
|
styleOverrides: {
|
|
3490
3503
|
root: {
|
|
3491
|
-
gap:
|
|
3504
|
+
gap: li
|
|
3492
3505
|
}
|
|
3493
3506
|
}
|
|
3494
3507
|
},
|
|
@@ -3559,14 +3572,14 @@ const ni = {
|
|
|
3559
3572
|
palette: B
|
|
3560
3573
|
});
|
|
3561
3574
|
export {
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3575
|
+
di as DemoComponent,
|
|
3576
|
+
gi as HeaderMetadata,
|
|
3577
|
+
bi as HeaderSubtitle,
|
|
3578
|
+
yi as InkPageHeader,
|
|
3579
|
+
pi as InkPersistentFilterDrawer,
|
|
3580
|
+
vi as InkWorkflowHeader,
|
|
3581
|
+
mi as LinkBreadcrumbs,
|
|
3582
|
+
xi as MovableUITheme,
|
|
3583
|
+
hi as PageHeaderActionButtons
|
|
3571
3584
|
};
|
|
3572
3585
|
//# sourceMappingURL=index.mjs.map
|