@solostylist/ui-kit 1.0.17 → 1.0.19
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/assets/s-image-gallery.css +1 -1
- package/dist/s-image-gallery/s-image-gallery.d.ts +2 -3
- package/dist/s-snackbar-message/s-snackbar-message.d.ts +1 -1
- package/dist/s-snackbar-message/s-snackbar-message.js +35 -26
- package/dist/s-text-field/s-text-field.js +10 -16
- package/dist/s-theme-provider/s-theme-provider.js +15 -12
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
.image-gallery-icon{color
|
|
1
|
+
:root{--image-gallery-color-white: var(--s-palette-common-white);--image-gallery-color-primary: var(--s-palette-primary-main);--image-gallery-color-transparent: transparent;--image-gallery-color-overlay: var(--s-palette-action-hover);--image-gallery-color-shadow: var(--s-palette-grey-900);--image-gallery-color-dark: var(--s-palette-common-black);--image-gallery-icon-size: calc(var(--s-spacing) * 3);--image-gallery-padding: calc(var(--s-spacing))}.image-gallery-icon{color:var(--image-gallery-color-white);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--image-gallery-color-transparent);border:0;cursor:pointer;outline:none;position:absolute;z-index:4;filter:drop-shadow(0 2px 2px var(--image-gallery-color-shadow))}@media (hover: hover) and (pointer: fine){.image-gallery-icon:hover{color:var(--image-gallery-color-primary)}.image-gallery-icon:hover .image-gallery-svg{transform:scale(1.1)}}.image-gallery-icon:focus{outline:2px solid var(--image-gallery-color-primary)}.image-gallery-using-mouse .image-gallery-icon:focus{outline:none}.image-gallery-fullscreen-button,.image-gallery-play-button{bottom:0;padding:var(--image-gallery-padding)}.image-gallery-fullscreen-button .image-gallery-svg,.image-gallery-play-button .image-gallery-svg{height:var(--image-gallery-icon-size);width:var(--image-gallery-icon-size)}.image-gallery-fullscreen-button{right:0}.image-gallery-play-button{left:0}.image-gallery-top-nav,.image-gallery-bottom-nav{left:50%;transform:translate(-50%)}.image-gallery-top-nav .image-gallery-svg,.image-gallery-bottom-nav .image-gallery-svg{height:calc(var(--image-gallery-icon-size) * 2);width:var(--image-gallery-icon-size)}.image-gallery-top-nav[disabled],.image-gallery-bottom-nav[disabled]{cursor:disabled;opacity:.6;pointer-events:none}.image-gallery-top-nav{top:0}.image-gallery-bottom-nav{bottom:0}.image-gallery-left-nav,.image-gallery-right-nav{top:50%;transform:translateY(-50%)}.image-gallery-left-nav .image-gallery-svg,.image-gallery-right-nav .image-gallery-svg{height:calc(var(--image-gallery-icon-size) * 2);width:var(--image-gallery-icon-size)}.image-gallery-left-nav[disabled],.image-gallery-right-nav[disabled]{cursor:disabled;opacity:.6;pointer-events:none}.image-gallery-left-nav{left:0}.image-gallery-right-nav{right:0}.image-gallery{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-o-user-select:none;user-select:none;-webkit-tap-highlight-color:rgba(0,0,0,0);position:relative}.image-gallery.fullscreen-modal{background:var(--image-gallery-color-dark);bottom:0;height:100%;left:0;position:fixed;right:0;top:0;width:100%;z-index:5}.image-gallery.fullscreen-modal .image-gallery-content{top:50%;transform:translateY(-50%)}.image-gallery-content{position:relative;line-height:0;top:0}.image-gallery-content.fullscreen{background:var(--image-gallery-color-dark)}.image-gallery-content .image-gallery-slide .image-gallery-image{max-height:calc(100vh - 80px)}.image-gallery-content.image-gallery-thumbnails-left .image-gallery-slide .image-gallery-image,.image-gallery-content.image-gallery-thumbnails-right .image-gallery-slide .image-gallery-image{max-height:100vh}.image-gallery-slide-wrapper{position:relative}.image-gallery-slide-wrapper.image-gallery-thumbnails-left,.image-gallery-slide-wrapper.image-gallery-thumbnails-right{display:inline-block;width:calc(100% - 110px)}@media (max-width: 768px){.image-gallery-slide-wrapper.image-gallery-thumbnails-left,.image-gallery-slide-wrapper.image-gallery-thumbnails-right{width:calc(100% - 87px)}}.image-gallery-slide-wrapper.image-gallery-rtl{direction:rtl}.image-gallery-slides{line-height:0;overflow:hidden;position:relative;white-space:nowrap;text-align:center;touch-action:none}.image-gallery-slide{left:0;position:absolute;top:0;width:100%}.image-gallery-slide.image-gallery-center{position:relative}.image-gallery-slide .image-gallery-image{width:100%;object-fit:contain}.image-gallery-slide .image-gallery-description{background:var(--image-gallery-color-overlay);bottom:70px;color:var(--image-gallery-color-white);left:0;line-height:1;padding:10px 20px;position:absolute;white-space:normal}@media (max-width: 768px){.image-gallery-slide .image-gallery-description{bottom:45px;font-size:.8em;padding:8px 15px}}.image-gallery-bullets{bottom:20px;left:0;margin:0 auto;position:absolute;right:0;width:80%;z-index:4}.image-gallery-bullets .image-gallery-bullets-container{margin:0;padding:0;text-align:center}.image-gallery-bullets .image-gallery-bullet{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--image-gallery-color-transparent);border:1px solid var(--image-gallery-color-white);border-radius:50%;box-shadow:0 2px 2px var(--image-gallery-color-dark);cursor:pointer;display:inline-block;margin:0 5px;outline:none;padding:5px;transition:all .2s ease-out}@media (max-width: 768px){.image-gallery-bullets .image-gallery-bullet{margin:0 3px;padding:3px}}@media (max-width: 480px){.image-gallery-bullets .image-gallery-bullet{padding:2.7px}}.image-gallery-bullets .image-gallery-bullet:focus{transform:scale(1.2);background:var(--image-gallery-color-primary);border:1px solid var(--image-gallery-color-primary)}.image-gallery-bullets .image-gallery-bullet.active{transform:scale(1.2);border:1px solid var(--image-gallery-color-white);background:var(--image-gallery-color-white)}@media (hover: hover) and (pointer: fine){.image-gallery-bullets .image-gallery-bullet:hover{background:var(--image-gallery-color-primary);border:1px solid var(--image-gallery-color-primary)}.image-gallery-bullets .image-gallery-bullet.active:hover{background:var(--image-gallery-color-primary)}}.image-gallery-bullets.image-gallery-bullets-vertical{left:20px;right:auto;bottom:auto;width:auto;top:50%;transform:translateY(-50%)}.image-gallery-bullets.image-gallery-bullets-vertical .image-gallery-bullet{display:block;margin:12px 0}@media (max-width: 768px){.image-gallery-bullets.image-gallery-bullets-vertical .image-gallery-bullet{margin:6px 0;padding:3px}}@media (max-width: 480px){.image-gallery-bullets.image-gallery-bullets-vertical .image-gallery-bullet{padding:2.7px}}.image-gallery-thumbnails-wrapper{position:relative}.image-gallery-thumbnails-wrapper.thumbnails-swipe-horizontal{touch-action:pan-y}.image-gallery-thumbnails-wrapper.thumbnails-swipe-vertical{touch-action:pan-x}.image-gallery-thumbnails-wrapper.thumbnails-wrapper-rtl{direction:rtl}.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right{display:inline-block;vertical-align:top;width:100px}@media (max-width: 768px){.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right{width:81px}}.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left .image-gallery-thumbnails,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right .image-gallery-thumbnails{height:100%;width:100%;left:0;padding:0;position:absolute;top:0}.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left .image-gallery-thumbnails .image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right .image-gallery-thumbnails .image-gallery-thumbnail{display:block;margin-right:0;padding:0}.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right .image-gallery-thumbnails .image-gallery-thumbnail+.image-gallery-thumbnail{margin-left:0;margin-top:2px}.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right{margin:0 5px}@media (max-width: 768px){.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-left,.image-gallery-thumbnails-wrapper.image-gallery-thumbnails-right{margin:0 3px}}.image-gallery-thumbnails{overflow:hidden;padding:5px 0}@media (max-width: 768px){.image-gallery-thumbnails{padding:3px 0}}.image-gallery-thumbnails .image-gallery-thumbnails-container{cursor:pointer;text-align:center;white-space:nowrap}.image-gallery-thumbnail{display:inline-block;border:4px solid var(--image-gallery-color-transparent);transition:border .3s ease-out;width:100px;background:var(--image-gallery-color-transparent);padding:0}@media (max-width: 768px){.image-gallery-thumbnail{border:3px solid var(--image-gallery-color-transparent);width:81px}}.image-gallery-thumbnail+.image-gallery-thumbnail{margin-left:2px}.image-gallery-thumbnail .image-gallery-thumbnail-inner{display:block;position:relative}.image-gallery-thumbnail .image-gallery-thumbnail-image{vertical-align:middle;width:100%;line-height:0}.image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{outline:none;border:4px solid var(--image-gallery-color-primary)}@media (max-width: 768px){.image-gallery-thumbnail.active,.image-gallery-thumbnail:focus{border:3px solid var(--image-gallery-color-primary)}}@media (hover: hover) and (pointer: fine){.image-gallery-thumbnail:hover{outline:none;border:4px solid var(--image-gallery-color-primary)}}@media (hover: hover) and (pointer: fine) and (max-width: 768px){.image-gallery-thumbnail:hover{border:3px solid var(--image-gallery-color-primary)}}.image-gallery-thumbnail-label{box-sizing:border-box;color:var(--image-gallery-color-white);font-size:1em;left:0;line-height:1em;padding:5%;position:absolute;top:50%;text-shadow:0 2px 2px var(--image-gallery-color-dark);transform:translateY(-50%);white-space:normal;width:100%}@media (max-width: 768px){.image-gallery-thumbnail-label{font-size:.8em;line-height:.8em}}.image-gallery-index{background:var(--image-gallery-color-overlay);color:var(--image-gallery-color-white);line-height:1;padding:10px 20px;position:absolute;right:0;top:0;z-index:4}@media (max-width: 768px){.image-gallery-index{font-size:.8em;padding:5px 10px}}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
}
|
|
2
|
+
import { default as ImageGallery } from 'react-image-gallery';
|
|
3
|
+
export type SImageGalleryProps = React.ComponentProps<typeof ImageGallery>;
|
|
5
4
|
declare const SImageGallery: ({ ...props }: SImageGalleryProps) => React.JSX.Element;
|
|
6
5
|
export default SImageGallery;
|
|
@@ -13,7 +13,7 @@ export interface SnackbarMessageOpenOptions {
|
|
|
13
13
|
message: string;
|
|
14
14
|
}
|
|
15
15
|
export interface SnackbarMessageContextProps {
|
|
16
|
-
handleOpen: (snackbarMessageOptions: SnackbarMessageOpenOptions) => void;
|
|
16
|
+
handleOpen: (snackbarMessageOptions: SnackbarMessageOpenOptions, snackbarProps?: SnackbarProps, alertProps?: AlertProps) => void;
|
|
17
17
|
handleClose: () => void;
|
|
18
18
|
open: boolean;
|
|
19
19
|
}
|
|
@@ -1,50 +1,59 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
3
|
-
import { Snackbar as
|
|
4
|
-
import { useDialog as
|
|
5
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as a from "react";
|
|
3
|
+
import { Snackbar as S, Alert as b } from "@mui/material";
|
|
4
|
+
import { useDialog as x } from "../hooks/use-dialog.js";
|
|
5
|
+
const k = ({
|
|
6
6
|
message: s,
|
|
7
7
|
onClose: e = () => {
|
|
8
8
|
},
|
|
9
|
-
open:
|
|
10
|
-
snackbarProps:
|
|
9
|
+
open: r = !1,
|
|
10
|
+
snackbarProps: n,
|
|
11
11
|
alertProps: o
|
|
12
|
-
}) => /* @__PURE__ */
|
|
13
|
-
|
|
12
|
+
}) => /* @__PURE__ */ t.jsx(
|
|
13
|
+
S,
|
|
14
14
|
{
|
|
15
|
-
open:
|
|
15
|
+
open: r,
|
|
16
16
|
autoHideDuration: 1e4,
|
|
17
17
|
onClose: e,
|
|
18
18
|
anchorOrigin: { vertical: "top", horizontal: "center" },
|
|
19
|
-
...
|
|
20
|
-
children: /* @__PURE__ */
|
|
19
|
+
...n,
|
|
20
|
+
children: /* @__PURE__ */ t.jsx(b, { onClose: e, severity: "error", sx: { width: "100%" }, ...o, children: s })
|
|
21
21
|
}
|
|
22
|
-
), c =
|
|
23
|
-
const e =
|
|
22
|
+
), c = a.createContext(null), P = ({ children: s }) => {
|
|
23
|
+
const e = x(), [r, n] = a.useState({
|
|
24
24
|
message: ""
|
|
25
|
-
}), o = {
|
|
26
|
-
handleOpen:
|
|
27
|
-
(
|
|
28
|
-
const { message:
|
|
29
|
-
|
|
25
|
+
}), [o, l] = a.useState({}), [i, u] = a.useState({}), p = {
|
|
26
|
+
handleOpen: a.useCallback(
|
|
27
|
+
(d, g = {}, m = {}) => {
|
|
28
|
+
const { message: h } = d;
|
|
29
|
+
n({ message: h }), l(g), u(m), e.handleOpen();
|
|
30
30
|
},
|
|
31
31
|
[e]
|
|
32
32
|
),
|
|
33
33
|
handleClose: e.handleClose,
|
|
34
34
|
open: e.open
|
|
35
35
|
};
|
|
36
|
-
return /* @__PURE__ */
|
|
37
|
-
/* @__PURE__ */
|
|
36
|
+
return /* @__PURE__ */ t.jsxs(c.Provider, { value: p, children: [
|
|
37
|
+
/* @__PURE__ */ t.jsx(
|
|
38
|
+
k,
|
|
39
|
+
{
|
|
40
|
+
open: e.open,
|
|
41
|
+
message: r == null ? void 0 : r.message,
|
|
42
|
+
onClose: e.handleClose,
|
|
43
|
+
snackbarProps: o,
|
|
44
|
+
alertProps: i
|
|
45
|
+
}
|
|
46
|
+
),
|
|
38
47
|
s
|
|
39
48
|
] });
|
|
40
|
-
},
|
|
41
|
-
const s =
|
|
49
|
+
}, j = () => {
|
|
50
|
+
const s = a.useContext(c);
|
|
42
51
|
if (!s)
|
|
43
52
|
throw new Error("useSnackbarMessage must be used within a SnackbarMessageProvider");
|
|
44
53
|
return s;
|
|
45
54
|
};
|
|
46
55
|
export {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
56
|
+
P as SnackbarMessageProvider,
|
|
57
|
+
k as default,
|
|
58
|
+
j as useSnackbarMessage
|
|
50
59
|
};
|
|
@@ -1,20 +1,14 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import {
|
|
3
|
-
import { TextField as x } from "@mui/material";
|
|
1
|
+
import { j as r } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { TextField as m } from "@mui/material";
|
|
4
3
|
import d from "../s-form/s-form.js";
|
|
5
|
-
const
|
|
6
|
-
label:
|
|
7
|
-
required:
|
|
4
|
+
const u = ({
|
|
5
|
+
label: i = "",
|
|
6
|
+
required: o = !1,
|
|
8
7
|
error: t,
|
|
9
|
-
type:
|
|
10
|
-
htmlFor:
|
|
11
|
-
...
|
|
12
|
-
}) => {
|
|
13
|
-
const [f, m] = o(e.value ?? "");
|
|
14
|
-
return s(() => {
|
|
15
|
-
m(e.value ?? "");
|
|
16
|
-
}, [e.value]), /* @__PURE__ */ l.jsx(d, { label: a, error: t, required: r, htmlFor: u, children: /* @__PURE__ */ l.jsx(x, { fullWidth: !0, type: i, id: u, error: !!t, ...e, value: f ?? "" }) });
|
|
17
|
-
};
|
|
8
|
+
type: s = "text",
|
|
9
|
+
htmlFor: e,
|
|
10
|
+
...x
|
|
11
|
+
}) => /* @__PURE__ */ r.jsx(d, { label: i, error: t, required: o, htmlFor: e, children: /* @__PURE__ */ r.jsx(m, { fullWidth: !0, type: s, id: e, error: !!t, ...x }) });
|
|
18
12
|
export {
|
|
19
|
-
|
|
13
|
+
u as default
|
|
20
14
|
};
|
|
@@ -1,37 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import * as
|
|
1
|
+
import { j as e } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import * as s from "react";
|
|
3
3
|
import { createTheme as i, ThemeProvider as a } from "@mui/material";
|
|
4
4
|
import { components as n } from "../theme/components/components.js";
|
|
5
5
|
import { dataDisplayCustomizations as p } from "../theme/customizations/data-display.js";
|
|
6
6
|
import { feedbackCustomizations as c } from "../theme/customizations/feedback.js";
|
|
7
7
|
import { inputsCustomizations as f } from "../theme/customizations/inputs.js";
|
|
8
8
|
import { navigationCustomizations as u } from "../theme/customizations/navigation.js";
|
|
9
|
-
import { surfacesCustomizations as
|
|
10
|
-
import { shape as
|
|
11
|
-
const
|
|
12
|
-
const
|
|
9
|
+
import { surfacesCustomizations as d } from "../theme/customizations/surfaces.js";
|
|
10
|
+
import { shape as h, shadows as l, typography as x, colorSchemes as z } from "../theme/theme-primitives.js";
|
|
11
|
+
const T = ({ children: r, disableCustomTheme: o, themeComponents: t }) => {
|
|
12
|
+
const m = s.useMemo(() => o ? {} : i({
|
|
13
13
|
// For more details about CSS variables configuration, see https://mui.com/material-ui/customization/css-theme-variables/configuration/
|
|
14
14
|
cssVariables: {
|
|
15
15
|
colorSchemeSelector: "data-mui-color-scheme",
|
|
16
16
|
cssVarPrefix: "s"
|
|
17
17
|
},
|
|
18
|
+
palette: {
|
|
19
|
+
mode: "dark"
|
|
20
|
+
},
|
|
18
21
|
colorSchemes: z,
|
|
19
22
|
// Recently added in v6 for building light & dark mode app, see https://mui.com/material-ui/customization/palette/#color-schemes
|
|
20
|
-
typography:
|
|
21
|
-
shadows:
|
|
22
|
-
shape:
|
|
23
|
+
typography: x,
|
|
24
|
+
shadows: l,
|
|
25
|
+
shape: h,
|
|
23
26
|
components: {
|
|
24
27
|
...f,
|
|
25
28
|
...p,
|
|
26
29
|
...c,
|
|
27
30
|
...u,
|
|
28
|
-
...
|
|
31
|
+
...d,
|
|
29
32
|
...n,
|
|
30
33
|
...t
|
|
31
34
|
}
|
|
32
35
|
}), [o, t]);
|
|
33
|
-
return o ? /* @__PURE__ */
|
|
36
|
+
return o ? /* @__PURE__ */ e.jsx(s.Fragment, { children: r }) : /* @__PURE__ */ e.jsx(a, { theme: m, disableTransitionOnChange: !0, children: r });
|
|
34
37
|
};
|
|
35
38
|
export {
|
|
36
|
-
|
|
39
|
+
T as default
|
|
37
40
|
};
|