@solostylist/ui-kit 1.0.26 → 1.0.27
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,8 +1,7 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { IconButtonProps, TooltipProps } from '@mui/material';
|
|
3
3
|
export interface SIconButtonProps extends IconButtonProps {
|
|
4
|
-
|
|
5
|
-
tooltipOptions: TooltipProps;
|
|
4
|
+
tooltipOptions?: Omit<TooltipProps, 'children'>;
|
|
6
5
|
}
|
|
7
|
-
declare const SIconButton: ({
|
|
6
|
+
declare const SIconButton: ({ tooltipOptions, ...props }: SIconButtonProps) => React.JSX.Element;
|
|
8
7
|
export default SIconButton;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { Tooltip as
|
|
3
|
-
const
|
|
1
|
+
import { j as t } from "../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { Tooltip as s, IconButton as n } from "@mui/material";
|
|
3
|
+
const j = ({ tooltipOptions: o, ...r }) => o ? /* @__PURE__ */ t.jsx(s, { ...o, children: /* @__PURE__ */ t.jsx(n, { ...r }) }) : /* @__PURE__ */ t.jsx(n, { ...r });
|
|
4
4
|
export {
|
|
5
|
-
|
|
5
|
+
j as default
|
|
6
6
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { c as
|
|
1
|
+
import { j as t } from "../../jsx-runtime-C5mzlN2N.js";
|
|
2
|
+
import { c as l } from "../../createSvgIcon-C9keHw6o.js";
|
|
3
3
|
import { brand as e, gray as o } from "../theme-primitives.js";
|
|
4
4
|
import { o as i } from "../../outlinedInputClasses-BiB8MrLY.js";
|
|
5
|
-
import { g as
|
|
6
|
-
import { s
|
|
5
|
+
import { g as n } from "../../generateUtilityClasses-BHlV34bM.js";
|
|
6
|
+
import { s } from "../../svgIconClasses-B4eDa4bG.js";
|
|
7
7
|
import { a } from "../../createTheme-DwCHEbMU.js";
|
|
8
|
-
const
|
|
8
|
+
const p = l(/* @__PURE__ */ t.jsx("path", {
|
|
9
9
|
d: "M18 19H6c-.55 0-1-.45-1-1V6c0-.55.45-1 1-1h12c.55 0 1 .45 1 1v12c0 .55-.45 1-1 1m1-16H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"
|
|
10
|
-
}), "CheckBoxOutlineBlankRounded"),
|
|
10
|
+
}), "CheckBoxOutlineBlankRounded"), c = l(/* @__PURE__ */ t.jsx("path", {
|
|
11
11
|
d: "M9 16.17 5.53 12.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41l4.18 4.18c.39.39 1.02.39 1.41 0L20.29 7.71c.39-.39.39-1.02 0-1.41a.996.996 0 0 0-1.41 0z"
|
|
12
|
-
}), "CheckRounded"), u =
|
|
12
|
+
}), "CheckRounded"), u = l(/* @__PURE__ */ t.jsx("path", {
|
|
13
13
|
d: "M18 13H6c-.55 0-1-.45-1-1s.45-1 1-1h12c.55 0 1 .45 1 1s-.45 1-1 1"
|
|
14
|
-
}), "RemoveRounded"), b =
|
|
14
|
+
}), "RemoveRounded"), b = n("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = n("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
|
|
15
15
|
MuiButtonBase: {
|
|
16
16
|
defaultProps: {
|
|
17
17
|
disableTouchRipple: !0,
|
|
@@ -226,12 +226,12 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
226
226
|
styleOverrides: {
|
|
227
227
|
root: ({ theme: r }) => ({
|
|
228
228
|
boxShadow: "none",
|
|
229
|
-
borderRadius: (
|
|
229
|
+
// borderRadius: (theme.vars || theme).shape.borderRadius,
|
|
230
230
|
textTransform: "none",
|
|
231
231
|
fontWeight: r.typography.fontWeightMedium,
|
|
232
232
|
letterSpacing: 0,
|
|
233
233
|
color: (r.vars || r).palette.text.primary,
|
|
234
|
-
border:
|
|
234
|
+
// border: '1px solid ',
|
|
235
235
|
borderColor: o[200],
|
|
236
236
|
backgroundColor: a(o[50], 0.3),
|
|
237
237
|
"&:hover": {
|
|
@@ -261,7 +261,7 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
261
261
|
width: "2.25rem",
|
|
262
262
|
height: "2.25rem",
|
|
263
263
|
padding: "0.25rem",
|
|
264
|
-
[`& .${
|
|
264
|
+
[`& .${s.root}`]: { fontSize: "1rem" }
|
|
265
265
|
}
|
|
266
266
|
},
|
|
267
267
|
{
|
|
@@ -314,9 +314,9 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
314
314
|
MuiCheckbox: {
|
|
315
315
|
defaultProps: {
|
|
316
316
|
disableRipple: !0,
|
|
317
|
-
icon: /* @__PURE__ */
|
|
318
|
-
checkedIcon: /* @__PURE__ */
|
|
319
|
-
indeterminateIcon: /* @__PURE__ */
|
|
317
|
+
icon: /* @__PURE__ */ t.jsx(p, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
|
|
318
|
+
checkedIcon: /* @__PURE__ */ t.jsx(c, { sx: { height: 14, width: 14 } }),
|
|
319
|
+
indeterminateIcon: /* @__PURE__ */ t.jsx(u, { sx: { height: 14, width: 14 } })
|
|
320
320
|
},
|
|
321
321
|
styleOverrides: {
|
|
322
322
|
root: ({ theme: r }) => ({
|
|
@@ -377,9 +377,18 @@ const c = t(/* @__PURE__ */ l.jsx("path", {
|
|
|
377
377
|
},
|
|
378
378
|
MuiOutlinedInput: {
|
|
379
379
|
styleOverrides: {
|
|
380
|
-
input: {
|
|
381
|
-
padding: 0
|
|
382
|
-
|
|
380
|
+
input: ({ ownerState: r }) => ({
|
|
381
|
+
padding: 0,
|
|
382
|
+
...r.type === "number" && {
|
|
383
|
+
// Remove spinner buttons (cross-browser)
|
|
384
|
+
"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button": {
|
|
385
|
+
WebkitAppearance: "none",
|
|
386
|
+
margin: 0
|
|
387
|
+
},
|
|
388
|
+
MozAppearance: "textfield"
|
|
389
|
+
// Firefox
|
|
390
|
+
}
|
|
391
|
+
}),
|
|
383
392
|
root: ({ theme: r }) => ({
|
|
384
393
|
padding: "8px 12px",
|
|
385
394
|
color: (r.vars || r).palette.text.primary,
|