@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
- tooltip: string;
5
- tooltipOptions: TooltipProps;
4
+ tooltipOptions?: Omit<TooltipProps, 'children'>;
6
5
  }
7
- declare const SIconButton: ({ tooltip, tooltipOptions, ...props }: SIconButtonProps) => React.JSX.Element;
6
+ declare const SIconButton: ({ tooltipOptions, ...props }: SIconButtonProps) => React.JSX.Element;
8
7
  export default SIconButton;
@@ -1,6 +1,6 @@
1
- import { j as o } from "../jsx-runtime-C5mzlN2N.js";
2
- import { Tooltip as n, IconButton as s } from "@mui/material";
3
- const m = ({ tooltip: i, tooltipOptions: t, ...r }) => /* @__PURE__ */ o.jsx(n, { ...t, children: /* @__PURE__ */ o.jsx(s, { ...r }) });
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
- m as default
5
+ j as default
6
6
  };
@@ -1,17 +1,17 @@
1
- import { j as l } from "../../jsx-runtime-C5mzlN2N.js";
2
- import { c as t } from "../../createSvgIcon-C9keHw6o.js";
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 s } from "../../generateUtilityClasses-BHlV34bM.js";
6
- import { s as n } from "../../svgIconClasses-B4eDa4bG.js";
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 c = t(/* @__PURE__ */ l.jsx("path", {
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"), p = t(/* @__PURE__ */ l.jsx("path", {
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 = t(/* @__PURE__ */ l.jsx("path", {
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 = s("MuiToggleButton", ["root", "disabled", "selected", "standard", "primary", "secondary", "sizeSmall", "sizeMedium", "sizeLarge", "fullWidth"]), d = s("MuiToggleButtonGroup", ["root", "selected", "horizontal", "vertical", "disabled", "grouped", "groupedHorizontal", "groupedVertical", "fullWidth", "firstButton", "lastButton", "middleButton"]), m = {
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: (r.vars || r).shape.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: "1px solid ",
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
- [`& .${n.root}`]: { fontSize: "1rem" }
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__ */ l.jsx(c, { sx: { color: "hsla(210, 0%, 0%, 0.0)" } }),
318
- checkedIcon: /* @__PURE__ */ l.jsx(p, { sx: { height: 14, width: 14 } }),
319
- indeterminateIcon: /* @__PURE__ */ l.jsx(u, { sx: { height: 14, width: 14 } })
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,
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "registry": "https://registry.npmjs.org"
5
5
  },
6
- "version": "1.0.26",
6
+ "version": "1.0.27",
7
7
  "description": "advanced ui kit for solostylist",
8
8
  "private": false,
9
9
  "type": "module",