@solostylist/ui-kit 1.0.15 → 1.0.17
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/{Box-BAmUWsQI.js → Box-CppaOdse.js} +4 -4
- package/dist/{Menu-B8rPlcSd.js → Menu-bcHHOGTe.js} +5 -5
- package/dist/{Stack-DDbGEkxd.js → Stack-Cvqi8X8g.js} +4 -4
- package/dist/{Typography-DiJzGJJd.js → Typography--_YDZuXf.js} +4 -4
- package/dist/{buttonBaseClasses-DuDP2bLR.js → buttonBaseClasses-Djzc2AiG.js} +2 -2
- package/dist/{createSvgIcon-Bpes8W5L.js → createSvgIcon-Ct7gnxYc.js} +20 -20
- package/dist/{createTheme-DDycScYN.js → createTheme-Hc7RjLJ8.js} +2 -2
- package/dist/{extendSxProp-De4gGzfV.js → extendSxProp-CRSYESt2.js} +1 -1
- package/dist/{generateUtilityClasses-Z7VQRhBn.js → generateUtilityClasses-BUjlppXi.js} +1 -1
- package/dist/{iconButtonClasses-8TuGhR-e.js → iconButtonClasses-p4XIdEHn.js} +2 -2
- package/dist/{index-CBHvlAxO.js → index-DKnaPifQ.js} +4 -4
- package/dist/main.d.ts +54 -33
- package/dist/main.js +23 -21
- package/dist/{memoTheme-DX35GGEJ.js → memoTheme-Bkr5VYLb.js} +3 -3
- package/dist/{menuItemClasses-DLFqc90k.js → menuItemClasses-Dzm1zEZ_.js} +2 -2
- package/dist/{outlinedInputClasses-CnRkAD7A.js → outlinedInputClasses-49K73-OT.js} +2 -2
- package/dist/s-autocomplete/index.d.ts +1 -0
- package/dist/s-button-link/index.d.ts +1 -0
- package/dist/s-button-link/s-button-link.d.ts +1 -1
- package/dist/s-checkbox/index.d.ts +1 -0
- package/dist/s-checkbox/s-checkbox.d.ts +1 -1
- package/dist/s-chips/index.d.ts +1 -0
- package/dist/s-chips/s-chips.d.ts +3 -2
- package/dist/s-chips/s-chips.js +29 -29
- package/dist/s-data-table/s-data-table.js +5 -5
- package/dist/s-dialog/index.d.ts +1 -0
- package/dist/s-dialog/s-dialog.d.ts +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +1 -1
- package/dist/s-dialog-message/s-dialog-message.js +1 -1
- package/dist/s-empty/index.d.ts +1 -0
- package/dist/s-empty/s-empty.d.ts +1 -1
- package/dist/s-file-dropzone/index.d.ts +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.d.ts +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +3 -3
- package/dist/s-file-icon/index.d.ts +1 -0
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-form/index.d.ts +1 -0
- package/dist/s-form/s-form.d.ts +1 -1
- package/dist/s-i18n-provider/index.d.ts +1 -0
- package/dist/s-icon-button/index.d.ts +1 -0
- package/dist/s-icon-button/s-icon-button.d.ts +1 -1
- package/dist/s-image-gallery/index.d.ts +1 -0
- package/dist/s-image-gallery/s-image-gallery.d.ts +1 -1
- package/dist/s-label/index.d.ts +1 -0
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-multi-select/s-multi-select.d.ts +3 -1
- package/dist/s-multi-select/s-multi-select.js +165 -165
- package/dist/s-no-ssr/index.d.ts +1 -0
- package/dist/s-pagination/index.d.ts +1 -0
- package/dist/s-pagination/s-pagination.d.ts +1 -1
- package/dist/s-select/index.d.ts +1 -0
- package/dist/s-select/s-select.d.ts +1 -1
- package/dist/s-skeleton/index.d.ts +1 -0
- package/dist/s-skeleton/s-skeleton.d.ts +1 -1
- package/dist/s-text-editor/index.d.ts +1 -0
- package/dist/s-text-editor/s-text-editor-toolbar.js +11 -11
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/index.d.ts +1 -0
- package/dist/s-text-field/s-text-field.d.ts +1 -1
- package/dist/s-text-truncation/index.d.ts +1 -0
- package/dist/s-text-truncation/s-text-truncation.d.ts +1 -1
- package/dist/s-theme-provider/index.d.ts +1 -0
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-tip/index.d.ts +1 -0
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{selectClasses-CDFwg8w_.js → selectClasses-5MwxZ3Fd.js} +2 -2
- package/dist/{svgIconClasses-XJq1Ciua.js → svgIconClasses-CeSsTTHM.js} +2 -2
- package/dist/theme/customizations/data-display.js +6 -6
- package/dist/theme/customizations/feedback.js +1 -1
- package/dist/theme/customizations/inputs.js +6 -6
- package/dist/theme/customizations/navigation.js +6 -6
- package/dist/theme/customizations/surfaces.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{typographyClasses-CyVhKkh8.js → typographyClasses-ykhCbiPA.js} +2 -2
- package/dist/{useSlot-B682hoPx.js → useSlot-DeteCI62.js} +4 -4
- package/dist/{useTheme-DPznNGA-.js → useTheme-Z78hHaly.js} +1 -1
- package/package.json +1 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { s as x,
|
|
1
|
+
import { s as x, b as d, P as e } from "./createTheme-Hc7RjLJ8.js";
|
|
2
2
|
import { s as h, c as T, T as y } from "./identifier-CHPjnqaz.js";
|
|
3
|
-
import { g as B } from "./generateUtilityClasses-
|
|
3
|
+
import { g as B } from "./generateUtilityClasses-BUjlppXi.js";
|
|
4
4
|
import * as N from "react";
|
|
5
5
|
import { j as C } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { u as b } from "./useTheme-
|
|
7
|
-
import { e as g } from "./extendSxProp-
|
|
6
|
+
import { u as b } from "./useTheme-Z78hHaly.js";
|
|
7
|
+
import { e as g } from "./extendSxProp-CRSYESt2.js";
|
|
8
8
|
import { unstable_ClassNameGenerator as j } from "@mui/utils";
|
|
9
9
|
function E(n = {}) {
|
|
10
10
|
const {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as p from "react";
|
|
2
2
|
import be from "react";
|
|
3
|
-
import { P as e, g as se, a as ze, p as We, l as st } from "./createTheme-
|
|
3
|
+
import { P as e, g as se, a as ze, p as We, l as st } from "./createTheme-Hc7RjLJ8.js";
|
|
4
4
|
import { T as wt, c as ee } from "./identifier-CHPjnqaz.js";
|
|
5
5
|
import { j as L } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { d as St, u as ae, s as z, c as le, m as at,
|
|
7
|
-
import { g as ce } from "./generateUtilityClasses-
|
|
8
|
-
import { _ as Mt, b as kt, T as lt, c as Ne, d as Dt, u as we, a as G, e as It, m as jt, r as Ft, f as Lt, g as At, h as _t, i as $t } from "./useSlot-
|
|
9
|
-
import { u as Vt } from "./useTheme-
|
|
6
|
+
import { d as St, u as ae, s as z, c as le, m as at, r as Ct } from "./memoTheme-Bkr5VYLb.js";
|
|
7
|
+
import { g as ce } from "./generateUtilityClasses-BUjlppXi.js";
|
|
8
|
+
import { _ as Mt, b as kt, T as lt, c as Ne, d as Dt, u as we, a as G, e as It, m as jt, r as Ft, f as Lt, g as At, h as _t, i as $t } from "./useSlot-DeteCI62.js";
|
|
9
|
+
import { u as Vt } from "./useTheme-Z78hHaly.js";
|
|
10
10
|
import * as Ut from "react-dom";
|
|
11
11
|
import Ee from "react-dom";
|
|
12
12
|
import { unstable_getScrollbarSize as qt, unstable_ownerWindow as ye, unstable_ownerDocument as ie, unstable_useForkRef as Ve, unstable_getReactElementRef as ct, elementAcceptingRef as Kt, exactProp as ut, unstable_useEnhancedEffect as Ge, unstable_setRef as Xe, HTMLElementType as Bt, unstable_useEventCallback as Ye, unstable_createChainedFunction as Je } from "@mui/utils";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { P as e, h as O, r as m, f as V, j as C, m as R, g as D, e as E, k as T } from "./createTheme-
|
|
2
|
-
import { a as N,
|
|
1
|
+
import { P as e, h as O, r as m, f as V, j as C, m as R, g as D, e as E, k as T } from "./createTheme-Hc7RjLJ8.js";
|
|
2
|
+
import { a as N, b as F, c as B, s as M, u as w } from "./memoTheme-Bkr5VYLb.js";
|
|
3
3
|
import * as f from "react";
|
|
4
4
|
import { c as G } from "./identifier-CHPjnqaz.js";
|
|
5
5
|
import { j as U } from "./jsx-runtime-C5mzlN2N.js";
|
|
6
|
-
import { e as $ } from "./extendSxProp-
|
|
7
|
-
import { u as A } from "./useTheme-
|
|
6
|
+
import { e as $ } from "./extendSxProp-CRSYESt2.js";
|
|
7
|
+
import { u as A } from "./useTheme-Z78hHaly.js";
|
|
8
8
|
const _ = N();
|
|
9
9
|
function L(o) {
|
|
10
10
|
const {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as j from "react";
|
|
2
|
-
import {
|
|
2
|
+
import { c, P as r } from "./createTheme-Hc7RjLJ8.js";
|
|
3
3
|
import { c as O } from "./identifier-CHPjnqaz.js";
|
|
4
|
-
import { i as S } from "./index-
|
|
5
|
-
import { u as w, s as B, c as P, m as W } from "./memoTheme-
|
|
4
|
+
import { i as S } from "./index-DKnaPifQ.js";
|
|
5
|
+
import { u as w, s as B, c as P, m as W } from "./memoTheme-Bkr5VYLb.js";
|
|
6
6
|
import { c as C } from "./createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
7
|
-
import { g as R } from "./typographyClasses-
|
|
7
|
+
import { g as R } from "./typographyClasses-ykhCbiPA.js";
|
|
8
8
|
import { j as M } from "./jsx-runtime-C5mzlN2N.js";
|
|
9
9
|
const N = {
|
|
10
10
|
primary: !0,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as s } from "./generateUtilityClasses-
|
|
2
|
-
import { g as e } from "./createTheme-
|
|
1
|
+
import { g as s } from "./generateUtilityClasses-BUjlppXi.js";
|
|
2
|
+
import { g as e } from "./createTheme-Hc7RjLJ8.js";
|
|
3
3
|
function o(t) {
|
|
4
4
|
return e("MuiButtonBase", t);
|
|
5
5
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as h from "react";
|
|
2
|
-
import { j as
|
|
3
|
-
import {
|
|
4
|
-
import { c as
|
|
5
|
-
import { u as
|
|
6
|
-
import { g as I } from "./svgIconClasses-
|
|
2
|
+
import { j as w } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
+
import { c as x, P as o } from "./createTheme-Hc7RjLJ8.js";
|
|
4
|
+
import { c as N } from "./identifier-CHPjnqaz.js";
|
|
5
|
+
import { u as b, s as O, c as R, m as T } from "./memoTheme-Bkr5VYLb.js";
|
|
6
|
+
import { g as I } from "./svgIconClasses-CeSsTTHM.js";
|
|
7
7
|
const j = (e) => {
|
|
8
8
|
const {
|
|
9
9
|
color: r,
|
|
@@ -25,7 +25,7 @@ const j = (e) => {
|
|
|
25
25
|
})(T(({
|
|
26
26
|
theme: e
|
|
27
27
|
}) => {
|
|
28
|
-
var r, n, i, s, l, g,
|
|
28
|
+
var r, n, i, s, l, g, c, S, p, m, a, d, v, f;
|
|
29
29
|
return {
|
|
30
30
|
userSelect: "none",
|
|
31
31
|
width: "1em",
|
|
@@ -65,7 +65,7 @@ const j = (e) => {
|
|
|
65
65
|
fontSize: "medium"
|
|
66
66
|
},
|
|
67
67
|
style: {
|
|
68
|
-
fontSize: ((S = (
|
|
68
|
+
fontSize: ((S = (c = e.typography) == null ? void 0 : c.pxToRem) == null ? void 0 : S.call(c, 24)) || "1.5rem"
|
|
69
69
|
}
|
|
70
70
|
},
|
|
71
71
|
{
|
|
@@ -93,7 +93,7 @@ const j = (e) => {
|
|
|
93
93
|
color: "action"
|
|
94
94
|
},
|
|
95
95
|
style: {
|
|
96
|
-
color: (d = (
|
|
96
|
+
color: (d = (a = (e.vars ?? e).palette) == null ? void 0 : a.action) == null ? void 0 : d.active
|
|
97
97
|
}
|
|
98
98
|
},
|
|
99
99
|
{
|
|
@@ -115,24 +115,24 @@ const j = (e) => {
|
|
|
115
115
|
]
|
|
116
116
|
};
|
|
117
117
|
})), z = /* @__PURE__ */ h.forwardRef(function(r, n) {
|
|
118
|
-
const i =
|
|
118
|
+
const i = b({
|
|
119
119
|
props: r,
|
|
120
120
|
name: "MuiSvgIcon"
|
|
121
121
|
}), {
|
|
122
122
|
children: s,
|
|
123
123
|
className: l,
|
|
124
124
|
color: g = "inherit",
|
|
125
|
-
component:
|
|
125
|
+
component: c = "svg",
|
|
126
126
|
fontSize: S = "medium",
|
|
127
127
|
htmlColor: p,
|
|
128
128
|
inheritViewBox: m = !1,
|
|
129
|
-
titleAccess:
|
|
129
|
+
titleAccess: a,
|
|
130
130
|
viewBox: d = "0 0 24 24",
|
|
131
131
|
...v
|
|
132
132
|
} = i, f = /* @__PURE__ */ h.isValidElement(s) && s.type === "svg", t = {
|
|
133
133
|
...i,
|
|
134
134
|
color: g,
|
|
135
|
-
component:
|
|
135
|
+
component: c,
|
|
136
136
|
fontSize: S,
|
|
137
137
|
instanceFontSize: r.fontSize,
|
|
138
138
|
inheritViewBox: m,
|
|
@@ -141,20 +141,20 @@ const j = (e) => {
|
|
|
141
141
|
}, u = {};
|
|
142
142
|
m || (u.viewBox = d);
|
|
143
143
|
const y = j(t);
|
|
144
|
-
return /* @__PURE__ */
|
|
145
|
-
as:
|
|
146
|
-
className:
|
|
144
|
+
return /* @__PURE__ */ w.jsxs(C, {
|
|
145
|
+
as: c,
|
|
146
|
+
className: N(y.root, l),
|
|
147
147
|
focusable: "false",
|
|
148
148
|
color: p,
|
|
149
|
-
"aria-hidden":
|
|
150
|
-
role:
|
|
149
|
+
"aria-hidden": a ? void 0 : !0,
|
|
150
|
+
role: a ? "img" : void 0,
|
|
151
151
|
ref: n,
|
|
152
152
|
...u,
|
|
153
153
|
...v,
|
|
154
154
|
...f && s.props,
|
|
155
155
|
ownerState: t,
|
|
156
|
-
children: [f ? s.props.children : s,
|
|
157
|
-
children:
|
|
156
|
+
children: [f ? s.props.children : s, a ? /* @__PURE__ */ w.jsx("title", {
|
|
157
|
+
children: a
|
|
158
158
|
}) : null]
|
|
159
159
|
});
|
|
160
160
|
});
|
|
@@ -233,7 +233,7 @@ process.env.NODE_ENV !== "production" && (z.propTypes = {
|
|
|
233
233
|
z.muiName = "SvgIcon";
|
|
234
234
|
function D(e, r) {
|
|
235
235
|
function n(i, s) {
|
|
236
|
-
return /* @__PURE__ */
|
|
236
|
+
return /* @__PURE__ */ w.jsx(z, {
|
|
237
237
|
"data-testid": process.env.NODE_ENV !== "production" ? `${r}Icon` : void 0,
|
|
238
238
|
ref: s,
|
|
239
239
|
...i,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as r } from "./generateUtilityClasses-
|
|
2
|
-
import { g as t } from "./createTheme-
|
|
1
|
+
import { g as r } from "./generateUtilityClasses-BUjlppXi.js";
|
|
2
|
+
import { g as t } from "./createTheme-Hc7RjLJ8.js";
|
|
3
3
|
function n(o) {
|
|
4
4
|
return t("MuiIconButton", o);
|
|
5
5
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import { j as p } from "./jsx-runtime-C5mzlN2N.js";
|
|
3
|
-
import { e as f } from "./extendSxProp-
|
|
4
|
-
import { P as e } from "./createTheme-
|
|
5
|
-
import { d as a } from "./memoTheme-
|
|
3
|
+
import { e as f } from "./extendSxProp-CRSYESt2.js";
|
|
4
|
+
import { P as e } from "./createTheme-Hc7RjLJ8.js";
|
|
5
|
+
import { d as a } from "./memoTheme-Bkr5VYLb.js";
|
|
6
6
|
import { T as c } from "./identifier-CHPjnqaz.js";
|
|
7
|
-
import { u as m } from "./useTheme-
|
|
7
|
+
import { u as m } from "./useTheme-Z78hHaly.js";
|
|
8
8
|
import { Global as y } from "@emotion/react";
|
|
9
9
|
function d(o) {
|
|
10
10
|
return o == null || Object.keys(o).length === 0;
|
package/dist/main.d.ts
CHANGED
|
@@ -1,35 +1,56 @@
|
|
|
1
|
-
export { default as SAutocomplete } from './s-autocomplete';
|
|
2
|
-
export {
|
|
3
|
-
export { default as
|
|
4
|
-
export {
|
|
5
|
-
export { default as
|
|
6
|
-
export {
|
|
7
|
-
export
|
|
8
|
-
export {
|
|
9
|
-
export
|
|
10
|
-
export {
|
|
11
|
-
export
|
|
12
|
-
export {
|
|
13
|
-
export { default as
|
|
14
|
-
export {
|
|
15
|
-
export { default as
|
|
16
|
-
export type {
|
|
17
|
-
export { default as
|
|
18
|
-
export { default as
|
|
19
|
-
export {
|
|
20
|
-
export { default as
|
|
21
|
-
export {
|
|
22
|
-
export
|
|
23
|
-
export {
|
|
24
|
-
export { default as
|
|
25
|
-
export {
|
|
26
|
-
export { default as
|
|
27
|
-
export {
|
|
28
|
-
export { default as
|
|
29
|
-
export {
|
|
30
|
-
export { default as
|
|
31
|
-
export type {
|
|
32
|
-
export { default as
|
|
33
|
-
export {
|
|
1
|
+
export { default as SAutocomplete } from './s-autocomplete/index';
|
|
2
|
+
export type { SAutocompleteProps } from './s-autocomplete/index';
|
|
3
|
+
export { default as SButtonLink } from './s-button-link/index';
|
|
4
|
+
export type { SButtonLinkProps } from './s-button-link/index';
|
|
5
|
+
export { default as STextEditor } from './s-text-editor/index';
|
|
6
|
+
export type { STextEditorProps } from './s-text-editor/index';
|
|
7
|
+
export { default as SCheckbox } from './s-checkbox/index';
|
|
8
|
+
export type { SCheckboxProps } from './s-checkbox/index';
|
|
9
|
+
export { default as SChips } from './s-chips/index';
|
|
10
|
+
export type { SChipsProps } from './s-chips/index';
|
|
11
|
+
export { default as SDataTable } from './s-data-table/index';
|
|
12
|
+
export type { ColumnDef, SDataTableProps } from './s-data-table/index';
|
|
13
|
+
export { default as SDialogConfirm, DialogConfirmProvider, useDialogConfirm } from './s-dialog-confirm/index';
|
|
14
|
+
export type { DialogConfirmContextProps, DialogConfirmOpenOptions } from './s-dialog-confirm/index';
|
|
15
|
+
export { default as SDialogMessage, DialogMessageProvider, useDialogMessage } from './s-dialog-message/index';
|
|
16
|
+
export type { DialogMessageContextProps, DialogMessageOpenOptions } from './s-dialog-message/index';
|
|
17
|
+
export { default as SError } from './s-error/index';
|
|
18
|
+
export { default as SEmpty } from './s-empty/index';
|
|
19
|
+
export type { SEmptyProps } from './s-empty/index';
|
|
20
|
+
export { default as SDialog } from './s-dialog/index';
|
|
21
|
+
export type { SDialogProps } from './s-dialog/index';
|
|
22
|
+
export { default as SFileDropzone } from './s-file-dropzone/index';
|
|
23
|
+
export type { CustomFile, SFileDropzoneProps } from './s-file-dropzone/index';
|
|
24
|
+
export { default as SFileIcon } from './s-file-icon/index';
|
|
25
|
+
export type { SFileIconProps } from './s-file-icon/index';
|
|
26
|
+
export { default as SI18nProvider } from './s-i18n-provider/index';
|
|
27
|
+
export type { SI18nProviderProps } from './s-i18n-provider/index';
|
|
28
|
+
export { default as SIconButton } from './s-icon-button/index';
|
|
29
|
+
export type { SIconButtonProps } from './s-icon-button/index';
|
|
30
|
+
export { default as SLabel } from './s-label/index';
|
|
31
|
+
export type { SLabelProps } from './s-label/index';
|
|
32
|
+
export { default as SMultiSelect } from './s-multi-select/index';
|
|
33
|
+
export type { SMultiSelectProps } from './s-multi-select/index';
|
|
34
|
+
export { default as SNoSsr } from './s-no-ssr/index';
|
|
35
|
+
export type { SNoSsrProps } from './s-no-ssr/index';
|
|
36
|
+
export { default as STextField } from './s-text-field/index';
|
|
37
|
+
export type { STextFieldProps } from './s-text-field/index';
|
|
38
|
+
export { default as SPagination } from './s-pagination/index';
|
|
39
|
+
export type { SPaginationProps } from './s-pagination/index';
|
|
40
|
+
export { default as SSelect } from './s-select/index';
|
|
41
|
+
export type { SSelectProps } from './s-select/index';
|
|
42
|
+
export { default as SSkeleton } from './s-skeleton/index';
|
|
43
|
+
export type { SSkeletonProps } from './s-skeleton/index';
|
|
44
|
+
export { default as STip } from './s-tip/index';
|
|
45
|
+
export type { STipProps } from './s-tip/index';
|
|
46
|
+
export { default as STextTruncation } from './s-text-truncation/index';
|
|
47
|
+
export { default as SSnackbarMessage, SnackbarMessageProvider, useSnackbarMessage } from './s-snackbar-message/index';
|
|
48
|
+
export type { SnackbarMessageContextProps, SnackbarMessageOpenOptions } from './s-snackbar-message/index';
|
|
49
|
+
export { default as SImageGallery } from './s-image-gallery/index';
|
|
50
|
+
export type { SImageGalleryProps } from './s-image-gallery/index';
|
|
51
|
+
export { default as SForm } from './s-form/index';
|
|
52
|
+
export type { SFormProps } from './s-form/index';
|
|
53
|
+
export { default as SThemeProvider } from './s-theme-provider/index';
|
|
54
|
+
export type { SThemeProviderProps } from './s-theme-provider/index';
|
|
34
55
|
export * from './hooks';
|
|
35
56
|
export * from './utils';
|
package/dist/main.js
CHANGED
|
@@ -9,8 +9,8 @@ import { DialogMessageProvider as D, default as P, useDialogMessage as T } from
|
|
|
9
9
|
import { default as v } from "./s-error/s-error.js";
|
|
10
10
|
import { default as k } from "./s-empty/s-empty.js";
|
|
11
11
|
import { default as C } from "./s-dialog/s-dialog.js";
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
12
|
+
import { default as F } from "./s-file-dropzone/s-file-dropzone.js";
|
|
13
|
+
import { default as h } from "./s-file-icon/s-file-icon.js";
|
|
14
14
|
import { default as z } from "./s-i18n-provider/s-i18n-provider.js";
|
|
15
15
|
import { default as j } from "./s-icon-button/s-icon-button.js";
|
|
16
16
|
import { default as G } from "./s-label/s-label.js";
|
|
@@ -24,18 +24,19 @@ import { default as Y } from "./s-tip/s-tip.js";
|
|
|
24
24
|
import { default as _ } from "./s-text-truncation/s-text-truncation.js";
|
|
25
25
|
import { default as ee, SnackbarMessageProvider as oe, useSnackbarMessage as re } from "./s-snackbar-message/s-snackbar-message.js";
|
|
26
26
|
import { default as te } from "./s-image-gallery/s-image-gallery.js";
|
|
27
|
-
import { default as le } from "./s-
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
27
|
+
import { default as le } from "./s-form/s-form.js";
|
|
28
|
+
import { default as me } from "./s-theme-provider/s-theme-provider.js";
|
|
29
|
+
import { useDialog as ue } from "./hooks/use-dialog.js";
|
|
30
|
+
import { usePopover as xe } from "./hooks/use-popover.js";
|
|
31
|
+
import { formatDatePosted as ie } from "./utils/dayjs.js";
|
|
32
|
+
import { bytesToSize as ne } from "./utils/bytes-to-size.js";
|
|
33
|
+
import { LogLevel as De, Logger as Pe, createLogger as Te, logger as be } from "./utils/logger.js";
|
|
34
|
+
import { default as Me } from "dayjs";
|
|
34
35
|
export {
|
|
35
36
|
i as DialogConfirmProvider,
|
|
36
37
|
D as DialogMessageProvider,
|
|
37
|
-
|
|
38
|
-
|
|
38
|
+
De as LogLevel,
|
|
39
|
+
Pe as Logger,
|
|
39
40
|
r as SAutocomplete,
|
|
40
41
|
t as SButtonLink,
|
|
41
42
|
m as SCheckbox,
|
|
@@ -46,8 +47,9 @@ export {
|
|
|
46
47
|
P as SDialogMessage,
|
|
47
48
|
k as SEmpty,
|
|
48
49
|
v as SError,
|
|
49
|
-
|
|
50
|
-
|
|
50
|
+
F as SFileDropzone,
|
|
51
|
+
h as SFileIcon,
|
|
52
|
+
le as SForm,
|
|
51
53
|
z as SI18nProvider,
|
|
52
54
|
j as SIconButton,
|
|
53
55
|
te as SImageGallery,
|
|
@@ -61,17 +63,17 @@ export {
|
|
|
61
63
|
l as STextEditor,
|
|
62
64
|
K as STextField,
|
|
63
65
|
_ as STextTruncation,
|
|
64
|
-
|
|
66
|
+
me as SThemeProvider,
|
|
65
67
|
Y as STip,
|
|
66
68
|
oe as SnackbarMessageProvider,
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
ne as bytesToSize,
|
|
70
|
+
Te as createLogger,
|
|
71
|
+
Me as dayjs,
|
|
72
|
+
ie as formatDatePosted,
|
|
73
|
+
be as logger,
|
|
74
|
+
ue as useDialog,
|
|
73
75
|
n as useDialogConfirm,
|
|
74
76
|
T as useDialogMessage,
|
|
75
|
-
|
|
77
|
+
xe as usePopover,
|
|
76
78
|
re as useSnackbarMessage
|
|
77
79
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { l as V, e as Q, s as D, i as U,
|
|
1
|
+
import { l as V, e as Q, s as D, i as U, c as X, P as O, b as Y } from "./createTheme-Hc7RjLJ8.js";
|
|
2
2
|
import { i as j, a as Z, s as ee, T as te } from "./identifier-CHPjnqaz.js";
|
|
3
3
|
import * as I from "react";
|
|
4
4
|
import "./jsx-runtime-C5mzlN2N.js";
|
|
@@ -280,12 +280,12 @@ function Oe(e) {
|
|
|
280
280
|
const xe = he;
|
|
281
281
|
export {
|
|
282
282
|
ie as a,
|
|
283
|
-
|
|
283
|
+
g as b,
|
|
284
284
|
Ne as c,
|
|
285
285
|
ye as d,
|
|
286
286
|
pe as e,
|
|
287
287
|
xe as m,
|
|
288
|
-
|
|
288
|
+
Se as r,
|
|
289
289
|
Te as s,
|
|
290
290
|
Oe as u
|
|
291
291
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as e } from "./generateUtilityClasses-
|
|
2
|
-
import { g as i } from "./createTheme-
|
|
1
|
+
import { g as e } from "./generateUtilityClasses-BUjlppXi.js";
|
|
2
|
+
import { g as i } from "./createTheme-Hc7RjLJ8.js";
|
|
3
3
|
const r = e("MuiDivider", ["root", "absolute", "fullWidth", "inset", "middle", "flexItem", "light", "vertical", "withChildren", "withChildrenVertical", "textAlignRight", "textAlignLeft", "wrapper", "wrapperVertical"]);
|
|
4
4
|
function a(t) {
|
|
5
5
|
return i("MuiMenuItem", t);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { g as n } from "./generateUtilityClasses-
|
|
2
|
-
import { g as e } from "./createTheme-
|
|
1
|
+
import { g as n } from "./generateUtilityClasses-BUjlppXi.js";
|
|
2
|
+
import { g as e } from "./createTheme-Hc7RjLJ8.js";
|
|
3
3
|
function l(t) {
|
|
4
4
|
return e("MuiInputBase", t);
|
|
5
5
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { CheckboxProps } from '@mui/material';
|
|
3
|
-
interface SCheckboxProps extends Omit<CheckboxProps, 'content'> {
|
|
3
|
+
export interface SCheckboxProps extends Omit<CheckboxProps, 'content'> {
|
|
4
4
|
content?: string | React.ReactNode;
|
|
5
5
|
}
|
|
6
6
|
declare const SCheckbox: React.ForwardRefExoticComponent<Omit<SCheckboxProps, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
package/dist/s-chips/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
interface SChipsProps {
|
|
1
|
+
export interface SChipsProps {
|
|
2
2
|
chips: string[];
|
|
3
3
|
overflow?: boolean;
|
|
4
4
|
onClick?: (tag: string) => void;
|
|
5
|
+
overflowText?: string;
|
|
5
6
|
}
|
|
6
|
-
declare const SChips: ({ chips, overflow, onClick }: SChipsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare const SChips: ({ chips, overflow, onClick, overflowText }: SChipsProps) => import("react/jsx-runtime").JSX.Element;
|
|
7
8
|
export default SChips;
|
package/dist/s-chips/s-chips.js
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { Box as
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
var
|
|
7
|
-
const t = ((
|
|
1
|
+
import { j as s } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { useRef as S, useState as m, useEffect as E } from "react";
|
|
3
|
+
import { Box as o, Chip as h, Tooltip as R } from "@mui/material";
|
|
4
|
+
const P = ({ chips: n, overflow: l = !0, onClick: r, overflowText: c = "keywords" }) => {
|
|
5
|
+
const u = S(null), [w, C] = m([]), [j, y] = m([]), [x, W] = m(0), a = () => {
|
|
6
|
+
var f;
|
|
7
|
+
const t = ((f = u.current) == null ? void 0 : f.offsetWidth) || 0;
|
|
8
8
|
let e = 0, i = 0;
|
|
9
|
-
for (let p = 0; p <
|
|
10
|
-
const
|
|
11
|
-
if (e +
|
|
12
|
-
e +=
|
|
9
|
+
for (let p = 0; p < n.length; p++) {
|
|
10
|
+
const b = d(n[p]);
|
|
11
|
+
if (e + b <= t)
|
|
12
|
+
e += b, i++;
|
|
13
13
|
else
|
|
14
14
|
break;
|
|
15
15
|
}
|
|
16
|
-
const
|
|
17
|
-
for (; e +
|
|
18
|
-
i--, e -= d(
|
|
19
|
-
|
|
16
|
+
const g = d(`+${n.length - i} ${c}`);
|
|
17
|
+
for (; e + g > t && i > 0; )
|
|
18
|
+
i--, e -= d(n[i]);
|
|
19
|
+
C(n.slice(0, i)), y(n.slice(i)), W(n.length - i);
|
|
20
20
|
}, d = (t) => {
|
|
21
21
|
const e = document.createElement("span");
|
|
22
22
|
e.style.visibility = "hidden", e.style.position = "absolute", e.style.whiteSpace = "nowrap", e.textContent = t.trim(), document.body.appendChild(e);
|
|
23
23
|
const i = e.offsetWidth;
|
|
24
24
|
return document.body.removeChild(e), i + 16;
|
|
25
|
-
},
|
|
26
|
-
return
|
|
25
|
+
}, v = l ? { textOverflow: "ellipsis", whiteSpace: "nowrap", overflow: "hidden" } : {};
|
|
26
|
+
return E(() => (a(), window.addEventListener("resize", a), () => {
|
|
27
27
|
window.removeEventListener("resize", a);
|
|
28
|
-
}), [
|
|
29
|
-
(l ? w :
|
|
30
|
-
|
|
28
|
+
}), [n]), /* @__PURE__ */ s.jsxs(o, { ref: u, display: "flex", maxWidth: "100%", ...v, children: [
|
|
29
|
+
(l ? w : n).map((t) => /* @__PURE__ */ s.jsx(
|
|
30
|
+
o,
|
|
31
31
|
{
|
|
32
32
|
component: "span",
|
|
33
33
|
textTransform: "lowercase",
|
|
34
34
|
onClick: () => {
|
|
35
|
-
|
|
35
|
+
r == null || r(t);
|
|
36
36
|
},
|
|
37
|
-
children: /* @__PURE__ */
|
|
37
|
+
children: /* @__PURE__ */ s.jsx(
|
|
38
38
|
h,
|
|
39
39
|
{
|
|
40
40
|
label: t.trim(),
|
|
@@ -42,24 +42,24 @@ const L = ({ chips: s, overflow: l = !0, onClick: o }) => {
|
|
|
42
42
|
mr: 1,
|
|
43
43
|
mb: 1,
|
|
44
44
|
userSelect: "none",
|
|
45
|
-
cursor:
|
|
45
|
+
cursor: r ? "pointer" : "default"
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
)
|
|
49
49
|
},
|
|
50
50
|
t
|
|
51
51
|
)),
|
|
52
|
-
l &&
|
|
53
|
-
|
|
52
|
+
l && x > 0 && /* @__PURE__ */ s.jsx(
|
|
53
|
+
R,
|
|
54
54
|
{
|
|
55
55
|
slotProps: {
|
|
56
56
|
tooltip: { style: { padding: "0.5rem" } }
|
|
57
57
|
},
|
|
58
|
-
title: /* @__PURE__ */
|
|
59
|
-
children: /* @__PURE__ */
|
|
58
|
+
title: /* @__PURE__ */ s.jsx(o, { display: "flex", gap: 1, maxWidth: "240px", flexWrap: "wrap", children: j.map((t) => /* @__PURE__ */ s.jsx(h, { label: t.trim() }, t)) }),
|
|
59
|
+
children: /* @__PURE__ */ s.jsx(o, { component: "span", textTransform: "lowercase", children: /* @__PURE__ */ s.jsx(
|
|
60
60
|
h,
|
|
61
61
|
{
|
|
62
|
-
label: `+${
|
|
62
|
+
label: `+${x} ${c}`,
|
|
63
63
|
variant: "outlined",
|
|
64
64
|
sx: { mr: 1, mb: 1, userSelect: "none", cursor: "pointer" }
|
|
65
65
|
}
|
|
@@ -69,5 +69,5 @@ const L = ({ chips: s, overflow: l = !0, onClick: o }) => {
|
|
|
69
69
|
] });
|
|
70
70
|
};
|
|
71
71
|
export {
|
|
72
|
-
|
|
72
|
+
P as default
|
|
73
73
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { j as r } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
2
|
import * as y from "react";
|
|
3
3
|
import Ce from "../s-empty/s-empty.js";
|
|
4
|
-
import { g as N,
|
|
4
|
+
import { g as N, c as j, P as e, a as M, n as Te, o as ke } from "../createTheme-Hc7RjLJ8.js";
|
|
5
5
|
import { c as I } from "../identifier-CHPjnqaz.js";
|
|
6
|
-
import { s as S, c as $,
|
|
7
|
-
import { g as B } from "../generateUtilityClasses-
|
|
6
|
+
import { s as S, c as $, r as se, u as E, m as W } from "../memoTheme-Bkr5VYLb.js";
|
|
7
|
+
import { g as B } from "../generateUtilityClasses-BUjlppXi.js";
|
|
8
8
|
import { u as je, a as Re } from "../useControlled-Bvu9pDu8.js";
|
|
9
|
-
import { a as A, B as Oe, r as we, m as Pe } from "../useSlot-
|
|
10
|
-
import { c as J } from "../createSvgIcon-
|
|
9
|
+
import { a as A, B as Oe, r as we, m as Pe } from "../useSlot-DeteCI62.js";
|
|
10
|
+
import { c as J } from "../createSvgIcon-Ct7gnxYc.js";
|
|
11
11
|
import { c as Y } from "../createSimplePaletteValueFilter-B7--0ryQ.js";
|
|
12
12
|
function Se(o) {
|
|
13
13
|
return N("PrivateSwitchBase", o);
|
package/dist/s-dialog/index.d.ts
CHANGED