@nethru/ui 2.1.12 → 2.1.14

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/base/Slider.js CHANGED
@@ -8,8 +8,8 @@ const Slider = /*#__PURE__*/forwardRef(({
8
8
  ...props
9
9
  }, ref) => {
10
10
  const autoMarks = useMemo(() => {
11
- let values = value || defaultValue;
12
- if (values === undefined) return {};
11
+ let values = value ?? defaultValue;
12
+ if (values === undefined) return [];
13
13
  if (values instanceof Array === false) values = [values];
14
14
  return values.map(v => {
15
15
  return {
@@ -18,6 +18,7 @@ const Slider = /*#__PURE__*/forwardRef(({
18
18
  };
19
19
  });
20
20
  }, [value, defaultValue]);
21
+ console.log(value, autoMarks);
21
22
  return /*#__PURE__*/_jsx(MuiSlider, {
22
23
  ref: ref,
23
24
  value: value,
@@ -6,7 +6,6 @@ import { appbarBackground } from "../assets/images";
6
6
  import { jsx as _jsx } from "react/jsx-runtime";
7
7
  import { jsxs as _jsxs } from "react/jsx-runtime";
8
8
  const AppBar = /*#__PURE__*/forwardRef(({
9
- mode,
10
9
  appsSlot,
11
10
  brandSlot,
12
11
  avatarSlot,
@@ -29,7 +28,6 @@ const AppBar = /*#__PURE__*/forwardRef(({
29
28
  }), [states.menuClosed]);
30
29
  return /*#__PURE__*/_jsxs(MuiAppBar, {
31
30
  ref: ref,
32
- className: mode === 'preview' ? 'MuiAppBar-preview' : '',
33
31
  ...props,
34
32
  children: [/*#__PURE__*/_jsx(Toolbar, {
35
33
  children: /*#__PURE__*/_jsxs(Stack, {
@@ -6,9 +6,6 @@ export const styles = {
6
6
  backgroundColor: 'var(--frame-background-color)',
7
7
  boxShadow: 'none',
8
8
  zIndex: `var(--gnb-zindex)`,
9
- '&.MuiAppBar-preview': {
10
- backgroundColor: '#d5f5f8'
11
- },
12
9
  '.MuiToolbar-root': {
13
10
  paddingLeft: 18
14
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nethru/ui",
3
- "version": "2.1.12",
3
+ "version": "2.1.14",
4
4
  "main": "base/index.js",
5
5
  "files": [
6
6
  "/base"