@synerise/ds-skeleton 1.0.44 → 1.0.45

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +4 -0
  2. package/dist/CheckboxSkeleton/CheckboxSkeleton.d.ts +2 -2
  3. package/dist/CheckboxSkeleton/CheckboxSkeleton.js +23 -30
  4. package/dist/CheckboxSkeleton/CheckboxSkeleton.styles.d.ts +5 -5
  5. package/dist/CheckboxSkeleton/CheckboxSkeleton.styles.js +20 -19
  6. package/dist/CheckboxSkeleton/CheckboxSkeleton.types.js +9 -6
  7. package/dist/DropdownSkeleton/DropdownSkeleton.d.ts +2 -2
  8. package/dist/DropdownSkeleton/DropdownSkeleton.js +19 -29
  9. package/dist/DropdownSkeleton/DropdownSkeleton.styles.d.ts +4 -4
  10. package/dist/DropdownSkeleton/DropdownSkeleton.styles.js +17 -17
  11. package/dist/DropdownSkeleton/DropdownSkeleton.types.js +9 -6
  12. package/dist/OrderedListSkeleton/OrderedListSkeleton.d.ts +2 -2
  13. package/dist/OrderedListSkeleton/OrderedListSkeleton.js +18 -29
  14. package/dist/OrderedListSkeleton/OrderedListSkeleton.styles.d.ts +4 -4
  15. package/dist/OrderedListSkeleton/OrderedListSkeleton.styles.js +17 -17
  16. package/dist/Skeleton.d.ts +2 -2
  17. package/dist/Skeleton.js +20 -36
  18. package/dist/Skeleton.styles.d.ts +5 -5
  19. package/dist/Skeleton.styles.js +22 -25
  20. package/dist/Skeleton.types.js +21 -16
  21. package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +2 -2
  22. package/dist/SkeletonAvatar/SkeletonAvatar.js +11 -19
  23. package/dist/SkeletonAvatar/SkeletonAvatar.styles.d.ts +4 -4
  24. package/dist/SkeletonAvatar/SkeletonAvatar.styles.js +21 -31
  25. package/dist/SkeletonAvatar/SkeletonAvatar.types.js +18 -14
  26. package/dist/index.js +12 -5
  27. package/dist/modules.d.js +1 -1
  28. package/dist/modules.d.ts +0 -0
  29. package/package.json +5 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,10 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [1.0.45](https://github.com/Synerise/synerise-design/compare/@synerise/ds-skeleton@1.0.44...@synerise/ds-skeleton@1.0.45) (2026-03-24)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-skeleton
9
+
6
10
  ## [1.0.44](https://github.com/Synerise/synerise-design/compare/@synerise/ds-skeleton@1.0.43...@synerise/ds-skeleton@1.0.44) (2026-03-20)
7
11
 
8
12
  **Note:** Version bump only for package @synerise/ds-skeleton
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type CheckboxSkeletonProps } from './CheckboxSkeleton.types';
1
+ import { default as React } from 'react';
2
+ import { CheckboxSkeletonProps } from './CheckboxSkeleton.types';
3
3
  declare const _default: React.MemoExoticComponent<({ size, numberOfSkeletons, className, }: CheckboxSkeletonProps) => React.JSX.Element>;
4
4
  export default _default;
@@ -1,31 +1,24 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { v4 as uuid } from 'uuid';
3
- import Checkbox from '@synerise/ds-checkbox';
4
- import * as S from './CheckboxSkeleton.styles';
5
- var CheckboxSkeleton = function CheckboxSkeleton(_ref) {
6
- var _ref$size = _ref.size,
7
- size = _ref$size === void 0 ? 'M' : _ref$size,
8
- _ref$numberOfSkeleton = _ref.numberOfSkeletons,
9
- numberOfSkeletons = _ref$numberOfSkeleton === void 0 ? 2 : _ref$numberOfSkeleton,
10
- className = _ref.className;
11
- var tiles = useMemo(function () {
12
- return Array.from({
13
- length: numberOfSkeletons
14
- }, function () {
15
- return {
16
- id: uuid()
17
- };
18
- });
19
- }, [numberOfSkeletons]);
20
- return /*#__PURE__*/React.createElement(S.Container, {
21
- className: className
22
- }, /*#__PURE__*/React.createElement(Checkbox, null), /*#__PURE__*/React.createElement(S.SkeletonWrapper, null, tiles.map(function (tile) {
23
- return /*#__PURE__*/React.createElement(S.Wrapper, {
24
- key: tile.id,
25
- size: size
26
- }, /*#__PURE__*/React.createElement(S.SkeletonBar, {
27
- size: size
28
- }));
29
- })));
1
+ import { jsxs, jsx } from "react/jsx-runtime";
2
+ import { memo, useMemo } from "react";
3
+ import { v4 } from "uuid";
4
+ import Checkbox from "@synerise/ds-checkbox";
5
+ import { Container, SkeletonWrapper, Wrapper, SkeletonBar } from "./CheckboxSkeleton.styles.js";
6
+ const CheckboxSkeleton = ({
7
+ size = "M",
8
+ numberOfSkeletons = 2,
9
+ className
10
+ }) => {
11
+ const tiles = useMemo(() => Array.from({
12
+ length: numberOfSkeletons
13
+ }, () => ({
14
+ id: v4()
15
+ })), [numberOfSkeletons]);
16
+ return /* @__PURE__ */ jsxs(Container, { className, children: [
17
+ /* @__PURE__ */ jsx(Checkbox, {}),
18
+ /* @__PURE__ */ jsx(SkeletonWrapper, { children: tiles.map((tile) => /* @__PURE__ */ jsx(Wrapper, { size, children: /* @__PURE__ */ jsx(SkeletonBar, { size }) }, tile.id)) })
19
+ ] });
20
+ };
21
+ const CheckboxSkeleton_default = memo(CheckboxSkeleton);
22
+ export {
23
+ CheckboxSkeleton_default as default
30
24
  };
31
- export default /*#__PURE__*/memo(CheckboxSkeleton);
@@ -1,9 +1,9 @@
1
- export declare const loadingAnimation: import("styled-components").Keyframes;
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const SkeletonBar: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const loadingAnimation: import('styled-components').Keyframes;
2
+ export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const SkeletonBar: import('styled-components').StyledComponent<"div", any, {
4
4
  size?: "S" | "M" | "L";
5
5
  }, never>;
6
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
6
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {
7
7
  size?: "S" | "M" | "L";
8
8
  }, never>;
9
- export declare const SkeletonWrapper: import("styled-components").StyledComponent<"div", any, {}, never>;
9
+ export declare const SkeletonWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,28 +1,29 @@
1
- import styled, { keyframes } from 'styled-components';
2
- import { BackgroundGradient } from '../Skeleton.styles';
3
- import { SkeletonSize } from './CheckboxSkeleton.types';
4
- export var loadingAnimation = keyframes(["0%{background:", ";left:-120px;top:0px;opacity:0.1;}50%{background:", ";left:140px;top:0px;opacity:0.3;}100%{background:", ";left:-120px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
- export var Container = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ import { BackgroundGradient } from "../Skeleton.styles.js";
3
+ import { SkeletonSize } from "./CheckboxSkeleton.types.js";
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-120px;top:0px;opacity:0.1;}50%{background:", ";left:140px;top:0px;opacity:0.3;}100%{background:", ";left:-120px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
+ const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "CheckboxSkeletonstyles__Container",
7
7
  componentId: "sc-abp40a-0"
8
8
  })(["width:100%;display:flex;"]);
9
- var SIZE_DEFAULT = 16;
10
- var SIZE_WRAPPER_DEFAULT = 16;
11
- export var SkeletonBar = styled.div.withConfig({
9
+ const SIZE_DEFAULT = 16;
10
+ const SIZE_WRAPPER_DEFAULT = 16;
11
+ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "CheckboxSkeletonstyles__SkeletonBar",
13
13
  componentId: "sc-abp40a-1"
14
- })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], function (props) {
15
- return props.size ? SkeletonSize[props.size] : SIZE_DEFAULT;
16
- }, loadingAnimation);
17
- export var Wrapper = styled.div.withConfig({
14
+ })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], (props) => props.size ? SkeletonSize[props.size] : SIZE_DEFAULT, loadingAnimation);
15
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
18
16
  displayName: "CheckboxSkeletonstyles__Wrapper",
19
17
  componentId: "sc-abp40a-2"
20
- })(["display:flex;margin-bottom:5px;border-radius:2px;width:150px;height:", "px;background-color:", ";"], function (props) {
21
- return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
22
- }, function (props) {
23
- return props.theme.palette["grey-050"];
24
- });
25
- export var SkeletonWrapper = styled.div.withConfig({
18
+ })(["display:flex;margin-bottom:5px;border-radius:2px;width:150px;height:", "px;background-color:", ";"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT, (props) => props.theme.palette[`grey-050`]);
19
+ const SkeletonWrapper = /* @__PURE__ */ styled.div.withConfig({
26
20
  displayName: "CheckboxSkeletonstyles__SkeletonWrapper",
27
21
  componentId: "sc-abp40a-3"
28
- })(["margin-top:7px;border-radius:2px;overflow:hidden;"]);
22
+ })(["margin-top:7px;border-radius:2px;overflow:hidden;"]);
23
+ export {
24
+ Container,
25
+ SkeletonBar,
26
+ SkeletonWrapper,
27
+ Wrapper,
28
+ loadingAnimation
29
+ };
@@ -1,6 +1,9 @@
1
- export var SkeletonSize = /*#__PURE__*/function (SkeletonSize) {
2
- SkeletonSize[SkeletonSize["S"] = 14] = "S";
3
- SkeletonSize[SkeletonSize["M"] = 16] = "M";
4
- SkeletonSize[SkeletonSize["L"] = 30] = "L";
5
- return SkeletonSize;
6
- }({});
1
+ var SkeletonSize = /* @__PURE__ */ ((SkeletonSize2) => {
2
+ SkeletonSize2[SkeletonSize2["S"] = 14] = "S";
3
+ SkeletonSize2[SkeletonSize2["M"] = 16] = "M";
4
+ SkeletonSize2[SkeletonSize2["L"] = 30] = "L";
5
+ return SkeletonSize2;
6
+ })(SkeletonSize || {});
7
+ export {
8
+ SkeletonSize
9
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type DropdownSkeletonProps } from './DropdownSkeleton.types';
1
+ import { default as React } from 'react';
2
+ import { DropdownSkeletonProps } from './DropdownSkeleton.types';
3
3
  declare const _default: React.MemoExoticComponent<({ size, numberOfSkeletons, className, }: DropdownSkeletonProps) => React.JSX.Element>;
4
4
  export default _default;
@@ -1,30 +1,20 @@
1
- import React, { memo, useMemo } from 'react';
2
- import { v4 as uuid } from 'uuid';
3
- import * as S from './DropdownSkeleton.styles';
4
- var DropdownSkeleton = function DropdownSkeleton(_ref) {
5
- var _ref$size = _ref.size,
6
- size = _ref$size === void 0 ? 'M' : _ref$size,
7
- _ref$numberOfSkeleton = _ref.numberOfSkeletons,
8
- numberOfSkeletons = _ref$numberOfSkeleton === void 0 ? 3 : _ref$numberOfSkeleton,
9
- className = _ref.className;
10
- var tiles = useMemo(function () {
11
- return Array.from({
12
- length: numberOfSkeletons
13
- }, function () {
14
- return {
15
- id: uuid()
16
- };
17
- });
18
- }, [numberOfSkeletons]);
19
- return /*#__PURE__*/React.createElement(S.Container, {
20
- className: className
21
- }, tiles.map(function (tile) {
22
- return /*#__PURE__*/React.createElement(S.Wrapper, {
23
- key: tile.id,
24
- size: size
25
- }, /*#__PURE__*/React.createElement(S.SkeletonBar, {
26
- size: size
27
- }));
28
- }));
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { memo, useMemo } from "react";
3
+ import { v4 } from "uuid";
4
+ import { Container, Wrapper, SkeletonBar } from "./DropdownSkeleton.styles.js";
5
+ const DropdownSkeleton = ({
6
+ size = "M",
7
+ numberOfSkeletons = 3,
8
+ className
9
+ }) => {
10
+ const tiles = useMemo(() => Array.from({
11
+ length: numberOfSkeletons
12
+ }, () => ({
13
+ id: v4()
14
+ })), [numberOfSkeletons]);
15
+ return /* @__PURE__ */ jsx(Container, { className, children: tiles.map((tile) => /* @__PURE__ */ jsx(Wrapper, { size, children: /* @__PURE__ */ jsx(SkeletonBar, { size }) }, tile.id)) });
16
+ };
17
+ const DropdownSkeleton_default = memo(DropdownSkeleton);
18
+ export {
19
+ DropdownSkeleton_default as default
29
20
  };
30
- export default /*#__PURE__*/memo(DropdownSkeleton);
@@ -1,8 +1,8 @@
1
- export declare const loadingAnimation: import("styled-components").Keyframes;
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const SkeletonBar: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const loadingAnimation: import('styled-components').Keyframes;
2
+ export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const SkeletonBar: import('styled-components').StyledComponent<"div", any, {
4
4
  size?: "S" | "M" | "L";
5
5
  }, never>;
6
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
6
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {
7
7
  size?: "S" | "M" | "L";
8
8
  }, never>;
@@ -1,24 +1,24 @@
1
- import styled, { keyframes } from 'styled-components';
2
- import { BackgroundGradient } from '../Skeleton.styles';
3
- import { SkeletonSize } from './DropdownSkeleton.types';
4
- export var loadingAnimation = keyframes(["0%{background:", ";left:-140px;top:0px;opacity:0.1;}50%{background:", ";left:160px;top:0px;opacity:0.3;}100%{background:", ";left:-140px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
- export var Container = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ import { BackgroundGradient } from "../Skeleton.styles.js";
3
+ import { SkeletonSize } from "./DropdownSkeleton.types.js";
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-140px;top:0px;opacity:0.1;}50%{background:", ";left:160px;top:0px;opacity:0.3;}100%{background:", ";left:-140px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
+ const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "DropdownSkeletonstyles__Container",
7
7
  componentId: "sc-r1oxe3-0"
8
8
  })(["width:100%;overflow:hidden;margin-left:10px;"]);
9
- var SIZE_DEFAULT = 16;
10
- var SIZE_WRAPPER_DEFAULT = 16;
11
- export var SkeletonBar = styled.div.withConfig({
9
+ const SIZE_DEFAULT = 16;
10
+ const SIZE_WRAPPER_DEFAULT = 16;
11
+ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "DropdownSkeletonstyles__SkeletonBar",
13
13
  componentId: "sc-r1oxe3-1"
14
- })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], function (props) {
15
- return props.size ? SkeletonSize[props.size] : SIZE_DEFAULT;
16
- }, loadingAnimation);
17
- export var Wrapper = styled.div.withConfig({
14
+ })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], (props) => props.size ? SkeletonSize[props.size] : SIZE_DEFAULT, loadingAnimation);
15
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
18
16
  displayName: "DropdownSkeletonstyles__Wrapper",
19
17
  componentId: "sc-r1oxe3-2"
20
- })(["display:flex;margin:15px 0;border-radius:2px;width:100%;height:", "px;background-color:", ";"], function (props) {
21
- return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
22
- }, function (props) {
23
- return props.theme.palette["grey-050"];
24
- });
18
+ })(["display:flex;margin:15px 0;border-radius:2px;width:100%;height:", "px;background-color:", ";"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT, (props) => props.theme.palette[`grey-050`]);
19
+ export {
20
+ Container,
21
+ SkeletonBar,
22
+ Wrapper,
23
+ loadingAnimation
24
+ };
@@ -1,6 +1,9 @@
1
- export var SkeletonSize = /*#__PURE__*/function (SkeletonSize) {
2
- SkeletonSize[SkeletonSize["S"] = 14] = "S";
3
- SkeletonSize[SkeletonSize["M"] = 16] = "M";
4
- SkeletonSize[SkeletonSize["L"] = 30] = "L";
5
- return SkeletonSize;
6
- }({});
1
+ var SkeletonSize = /* @__PURE__ */ ((SkeletonSize2) => {
2
+ SkeletonSize2[SkeletonSize2["S"] = 14] = "S";
3
+ SkeletonSize2[SkeletonSize2["M"] = 16] = "M";
4
+ SkeletonSize2[SkeletonSize2["L"] = 30] = "L";
5
+ return SkeletonSize2;
6
+ })(SkeletonSize || {});
7
+ export {
8
+ SkeletonSize
9
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type CheckboxSkeletonProps } from '../CheckboxSkeleton/CheckboxSkeleton.types';
1
+ import { default as React } from 'react';
2
+ import { CheckboxSkeletonProps } from '../CheckboxSkeleton/CheckboxSkeleton.types';
3
3
  declare const OrderedListSkeleton: ({ size, numberOfSkeletons, className, }: CheckboxSkeletonProps) => React.JSX.Element;
4
4
  export default OrderedListSkeleton;
@@ -1,30 +1,19 @@
1
- import React, { useMemo } from 'react';
2
- import { v4 as uuid } from 'uuid';
3
- import * as S from './OrderedListSkeleton.styles';
4
- var OrderedListSkeleton = function OrderedListSkeleton(_ref) {
5
- var _ref$size = _ref.size,
6
- size = _ref$size === void 0 ? 'M' : _ref$size,
7
- _ref$numberOfSkeleton = _ref.numberOfSkeletons,
8
- numberOfSkeletons = _ref$numberOfSkeleton === void 0 ? 4 : _ref$numberOfSkeleton,
9
- className = _ref.className;
10
- var tiles = useMemo(function () {
11
- return Array.from({
12
- length: numberOfSkeletons
13
- }, function () {
14
- return {
15
- id: uuid()
16
- };
17
- });
18
- }, [numberOfSkeletons]);
19
- return /*#__PURE__*/React.createElement(S.Container, {
20
- className: className
21
- }, /*#__PURE__*/React.createElement("div", null, tiles.map(function (tile) {
22
- return /*#__PURE__*/React.createElement(S.Wrapper, {
23
- key: tile.id,
24
- size: size
25
- }, /*#__PURE__*/React.createElement(S.SkeletonBar, {
26
- size: size
27
- }));
28
- })));
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { v4 } from "uuid";
4
+ import { Container, Wrapper, SkeletonBar } from "./OrderedListSkeleton.styles.js";
5
+ const OrderedListSkeleton = ({
6
+ size = "M",
7
+ numberOfSkeletons = 4,
8
+ className
9
+ }) => {
10
+ const tiles = useMemo(() => Array.from({
11
+ length: numberOfSkeletons
12
+ }, () => ({
13
+ id: v4()
14
+ })), [numberOfSkeletons]);
15
+ return /* @__PURE__ */ jsx(Container, { className, children: /* @__PURE__ */ jsx("div", { children: tiles.map((tile) => /* @__PURE__ */ jsx(Wrapper, { size, children: /* @__PURE__ */ jsx(SkeletonBar, { size }) }, tile.id)) }) });
16
+ };
17
+ export {
18
+ OrderedListSkeleton as default
29
19
  };
30
- export default OrderedListSkeleton;
@@ -1,8 +1,8 @@
1
- export declare const loadingAnimation: import("styled-components").Keyframes;
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
3
- export declare const SkeletonBar: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const loadingAnimation: import('styled-components').Keyframes;
2
+ export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
3
+ export declare const SkeletonBar: import('styled-components').StyledComponent<"div", any, {
4
4
  size?: "S" | "M" | "L";
5
5
  }, never>;
6
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
6
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {
7
7
  size?: "S" | "M" | "L";
8
8
  }, never>;
@@ -1,24 +1,24 @@
1
- import styled, { keyframes } from 'styled-components';
2
- import { SkeletonSize } from '../CheckboxSkeleton/CheckboxSkeleton.types';
3
- import { BackgroundGradient } from '../Skeleton.styles';
4
- export var loadingAnimation = keyframes(["0%{background:", ";left:-120px;top:0px;opacity:0.1;}50%{background:", ";left:140px;top:0px;opacity:0.3;}100%{background:", ";left:-120px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
- export var Container = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ import { SkeletonSize } from "../CheckboxSkeleton/CheckboxSkeleton.types.js";
3
+ import { BackgroundGradient } from "../Skeleton.styles.js";
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-120px;top:0px;opacity:0.1;}50%{background:", ";left:140px;top:0px;opacity:0.3;}100%{background:", ";left:-120px;top:0px;opacity:0.1;}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
+ const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "OrderedListSkeletonstyles__Container",
7
7
  componentId: "sc-zwdgyl-0"
8
8
  })(["width:100%;overflow:hidden;"]);
9
- var SIZE_DEFAULT = 16;
10
- var SIZE_WRAPPER_DEFAULT = 16;
11
- export var SkeletonBar = styled.div.withConfig({
9
+ const SIZE_DEFAULT = 16;
10
+ const SIZE_WRAPPER_DEFAULT = 16;
11
+ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "OrderedListSkeletonstyles__SkeletonBar",
13
13
  componentId: "sc-zwdgyl-1"
14
- })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], function (props) {
15
- return props.size ? SkeletonSize[props.size] : SIZE_DEFAULT;
16
- }, loadingAnimation);
17
- export var Wrapper = styled.div.withConfig({
14
+ })(["width:100%;height:", "px;position:relative;animation:", " 1.2s ease-in-out infinite;"], (props) => props.size ? SkeletonSize[props.size] : SIZE_DEFAULT, loadingAnimation);
15
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
18
16
  displayName: "OrderedListSkeletonstyles__Wrapper",
19
17
  componentId: "sc-zwdgyl-2"
20
- })(["display:flex;margin:0px 0px 15px 0px;border-radius:2px;width:150px;height:", "px;background-color:", ";"], function (props) {
21
- return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
22
- }, function (props) {
23
- return props.theme.palette["grey-050"];
24
- });
18
+ })(["display:flex;margin:0px 0px 15px 0px;border-radius:2px;width:150px;height:", "px;background-color:", ";"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT, (props) => props.theme.palette[`grey-050`]);
19
+ export {
20
+ Container,
21
+ SkeletonBar,
22
+ Wrapper,
23
+ loadingAnimation
24
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type SkeletonProps } from './Skeleton.types';
1
+ import { default as React } from 'react';
2
+ import { SkeletonProps } from './Skeleton.types';
3
3
  declare const Skeleton: ({ size, numberOfSkeletons, width, height, className, }: SkeletonProps) => React.JSX.Element;
4
4
  export default Skeleton;
package/dist/Skeleton.js CHANGED
@@ -1,37 +1,21 @@
1
- import React, { useMemo } from 'react';
2
- import { v4 as uuid } from 'uuid';
3
- import * as S from './Skeleton.styles';
4
- var Skeleton = function Skeleton(_ref) {
5
- var _ref$size = _ref.size,
6
- size = _ref$size === void 0 ? 'M' : _ref$size,
7
- _ref$numberOfSkeleton = _ref.numberOfSkeletons,
8
- numberOfSkeletons = _ref$numberOfSkeleton === void 0 ? 2 : _ref$numberOfSkeleton,
9
- width = _ref.width,
10
- height = _ref.height,
11
- className = _ref.className;
12
- var tiles = useMemo(function () {
13
- return Array.from({
14
- length: numberOfSkeletons
15
- }, function () {
16
- return {
17
- id: uuid()
18
- };
19
- });
20
- }, [numberOfSkeletons]);
21
- return /*#__PURE__*/React.createElement(S.Container, {
22
- "data-testid": "ds-skeleton",
23
- className: className
24
- }, tiles.map(function (tile) {
25
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(S.Wrapper, {
26
- key: tile.id,
27
- className: "ds-skeleton",
28
- size: size,
29
- width: width,
30
- height: height
31
- }, /*#__PURE__*/React.createElement(S.SkeletonBar, {
32
- width: width,
33
- size: size
34
- })));
35
- }));
1
+ import { jsx, Fragment } from "react/jsx-runtime";
2
+ import { useMemo } from "react";
3
+ import { v4 } from "uuid";
4
+ import { Container, Wrapper, SkeletonBar } from "./Skeleton.styles.js";
5
+ const Skeleton = ({
6
+ size = "M",
7
+ numberOfSkeletons = 2,
8
+ width,
9
+ height,
10
+ className
11
+ }) => {
12
+ const tiles = useMemo(() => Array.from({
13
+ length: numberOfSkeletons
14
+ }, () => ({
15
+ id: v4()
16
+ })), [numberOfSkeletons]);
17
+ return /* @__PURE__ */ jsx(Container, { "data-testid": "ds-skeleton", className, children: tiles.map((tile) => /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsx(Wrapper, { className: "ds-skeleton", size, width, height, children: /* @__PURE__ */ jsx(SkeletonBar, { width, size }) }, tile.id) })) });
18
+ };
19
+ export {
20
+ Skeleton as default
36
21
  };
37
- export default Skeleton;
@@ -1,13 +1,13 @@
1
- import { type Keyframes } from 'styled-components';
2
- export declare const BackgroundGradient: import("styled-components").FlattenSimpleInterpolation;
1
+ import { Keyframes } from 'styled-components';
2
+ export declare const BackgroundGradient: import('styled-components').FlattenSimpleInterpolation;
3
3
  export declare const loadingAnimation: (width?: "M" | "L") => Keyframes;
4
- export declare const SkeletonBar: import("styled-components").StyledComponent<"div", any, {
4
+ export declare const SkeletonBar: import('styled-components').StyledComponent<"div", any, {
5
5
  size?: "S" | "M" | "L";
6
6
  width?: "M" | "L";
7
7
  }, never>;
8
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
8
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {
9
9
  size?: "S" | "M" | "L";
10
10
  width?: "M" | "L";
11
11
  height?: number;
12
12
  }, never>;
13
- export declare const Container: import("styled-components").StyledComponent<"div", any, {}, never>;
13
+ export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
@@ -1,34 +1,31 @@
1
- import styled, { css, keyframes } from 'styled-components';
2
- import { SkeletonSize, StartOffsetSize, WidthSize } from './Skeleton.types';
3
- export var BackgroundGradient = css(["linear-gradient(90deg,rgba(252,252,255,1) 0%,rgba(243,243,245,1) 17%,rgba(156,157,157,1) 100%);"]);
4
- var OFFSET_LEFT = 140;
5
- var START_OFFSET_LEFT = -120;
6
- export var loadingAnimation = function loadingAnimation(width) {
7
- return keyframes(["0%{left:", "px;opacity:0.1;}50%{left:", "px;opacity:0.4;}100%{left:", "px;opacity:0.1;}"], width ? StartOffsetSize[width] : START_OFFSET_LEFT, width ? WidthSize[width] : OFFSET_LEFT, width ? StartOffsetSize[width] : START_OFFSET_LEFT);
8
- };
9
- var SIZE_WRAPPER_DEFAULT = 16;
10
- export var SkeletonBar = styled.div.withConfig({
1
+ import styled, { css, keyframes } from "styled-components";
2
+ import { SkeletonSize, StartOffsetSize, WidthSize } from "./Skeleton.types.js";
3
+ const BackgroundGradient = /* @__PURE__ */ css(["linear-gradient(90deg,rgba(252,252,255,1) 0%,rgba(243,243,245,1) 17%,rgba(156,157,157,1) 100%);"]);
4
+ const OFFSET_LEFT = 140;
5
+ const START_OFFSET_LEFT = -120;
6
+ const loadingAnimation = (width) => keyframes(["0%{left:", "px;opacity:0.1;}50%{left:", "px;opacity:0.4;}100%{left:", "px;opacity:0.1;}"], width ? StartOffsetSize[width] : START_OFFSET_LEFT, width ? WidthSize[width] : OFFSET_LEFT, width ? StartOffsetSize[width] : START_OFFSET_LEFT);
7
+ const SIZE_WRAPPER_DEFAULT = 16;
8
+ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
11
9
  displayName: "Skeletonstyles__SkeletonBar",
12
10
  componentId: "sc-1xxxvq3-0"
13
- })(["width:100%;height:100%;position:relative;top:0;background:", ";animation:", " 1.2s ease-in-out infinite;border-radius:", ";"], BackgroundGradient, function (props) {
14
- return loadingAnimation(props.width);
15
- }, function (props) {
16
- return props.width === 'M' ? '4px' : '0px';
17
- });
18
- export var Wrapper = styled.div.withConfig({
11
+ })(["width:100%;height:100%;position:relative;top:0;background:", ";animation:", " 1.2s ease-in-out infinite;border-radius:", ";"], BackgroundGradient, (props) => loadingAnimation(props.width), (props) => props.width === "M" ? "4px" : "0px");
12
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
19
13
  displayName: "Skeletonstyles__Wrapper",
20
14
  componentId: "sc-1xxxvq3-1"
21
- })(["border-right:transparent;border-left:transparent;border-radius:", ";width:100%;height:", "px;background-color:", ";overflow:hidden;"], function (props) {
22
- return props.width === 'M' ? '4px' : '2px';
23
- }, function (props) {
24
- if (props.height !== undefined) {
15
+ })(["border-right:transparent;border-left:transparent;border-radius:", ";width:100%;height:", "px;background-color:", ";overflow:hidden;"], (props) => props.width === "M" ? "4px" : "2px", (props) => {
16
+ if (props.height !== void 0) {
25
17
  return props.height;
26
18
  }
27
19
  return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
28
- }, function (props) {
29
- return props.theme.palette["grey-050"];
30
- });
31
- export var Container = styled.div.withConfig({
20
+ }, (props) => props.theme.palette[`grey-050`]);
21
+ const Container = /* @__PURE__ */ styled.div.withConfig({
32
22
  displayName: "Skeletonstyles__Container",
33
23
  componentId: "sc-1xxxvq3-2"
34
- })(["width:100%;overflow:hidden;padding:12px;gap:15px;display:flex;flex-direction:column;"]);
24
+ })(["width:100%;overflow:hidden;padding:12px;gap:15px;display:flex;flex-direction:column;"]);
25
+ export {
26
+ BackgroundGradient,
27
+ Container,
28
+ SkeletonBar,
29
+ Wrapper,
30
+ loadingAnimation
31
+ };
@@ -1,16 +1,21 @@
1
- export var SkeletonSize = /*#__PURE__*/function (SkeletonSize) {
2
- SkeletonSize[SkeletonSize["S"] = 14] = "S";
3
- SkeletonSize[SkeletonSize["M"] = 16] = "M";
4
- SkeletonSize[SkeletonSize["L"] = 32] = "L";
5
- return SkeletonSize;
6
- }({});
7
- export var WidthSize = /*#__PURE__*/function (WidthSize) {
8
- WidthSize[WidthSize["M"] = 60] = "M";
9
- WidthSize[WidthSize["L"] = 140] = "L";
10
- return WidthSize;
11
- }({});
12
- export var StartOffsetSize = /*#__PURE__*/function (StartOffsetSize) {
13
- StartOffsetSize[StartOffsetSize["M"] = -50] = "M";
14
- StartOffsetSize[StartOffsetSize["L"] = -120] = "L";
15
- return StartOffsetSize;
16
- }({});
1
+ var SkeletonSize = /* @__PURE__ */ ((SkeletonSize2) => {
2
+ SkeletonSize2[SkeletonSize2["S"] = 14] = "S";
3
+ SkeletonSize2[SkeletonSize2["M"] = 16] = "M";
4
+ SkeletonSize2[SkeletonSize2["L"] = 32] = "L";
5
+ return SkeletonSize2;
6
+ })(SkeletonSize || {});
7
+ var WidthSize = /* @__PURE__ */ ((WidthSize2) => {
8
+ WidthSize2[WidthSize2["M"] = 60] = "M";
9
+ WidthSize2[WidthSize2["L"] = 140] = "L";
10
+ return WidthSize2;
11
+ })(WidthSize || {});
12
+ var StartOffsetSize = /* @__PURE__ */ ((StartOffsetSize2) => {
13
+ StartOffsetSize2[StartOffsetSize2["M"] = -50] = "M";
14
+ StartOffsetSize2[StartOffsetSize2["L"] = -120] = "L";
15
+ return StartOffsetSize2;
16
+ })(StartOffsetSize || {});
17
+ export {
18
+ SkeletonSize,
19
+ StartOffsetSize,
20
+ WidthSize
21
+ };
@@ -1,4 +1,4 @@
1
- import React from 'react';
2
- import { type SkeletonAvatarProps } from './SkeletonAvatar.types';
1
+ import { default as React } from 'react';
2
+ import { SkeletonAvatarProps } from './SkeletonAvatar.types';
3
3
  declare const SkeletonAvatar: ({ size, shape, className, }: SkeletonAvatarProps) => React.JSX.Element;
4
4
  export default SkeletonAvatar;
@@ -1,20 +1,12 @@
1
- import React from 'react';
2
- import * as S from './SkeletonAvatar.styles';
3
- var SkeletonAvatar = function SkeletonAvatar(_ref) {
4
- var _ref$size = _ref.size,
5
- size = _ref$size === void 0 ? 'M' : _ref$size,
6
- shape = _ref.shape,
7
- className = _ref.className;
8
- return /*#__PURE__*/React.createElement(S.Container, {
9
- className: className,
10
- shape: shape,
11
- size: size
12
- }, /*#__PURE__*/React.createElement(S.Wrapper, {
13
- shape: shape,
14
- size: size
15
- }, /*#__PURE__*/React.createElement(S.SkeletonBar, {
16
- shape: shape,
17
- size: size
18
- })));
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Container, Wrapper, SkeletonBar } from "./SkeletonAvatar.styles.js";
3
+ const SkeletonAvatar = ({
4
+ size = "M",
5
+ shape,
6
+ className
7
+ }) => {
8
+ return /* @__PURE__ */ jsx(Container, { className, shape, size, children: /* @__PURE__ */ jsx(Wrapper, { shape, size, children: /* @__PURE__ */ jsx(SkeletonBar, { shape, size }) }) });
9
+ };
10
+ export {
11
+ SkeletonAvatar as default
19
12
  };
20
- export default SkeletonAvatar;
@@ -1,13 +1,13 @@
1
- export declare const loadingAnimation: (size?: "S" | "M" | "L" | "XL") => import("styled-components").Keyframes;
2
- export declare const Container: import("styled-components").StyledComponent<"div", any, {
1
+ export declare const loadingAnimation: (size?: "S" | "M" | "L" | "XL") => import('styled-components').Keyframes;
2
+ export declare const Container: import('styled-components').StyledComponent<"div", any, {
3
3
  size?: "S" | "M" | "L" | "XL";
4
4
  shape?: "square" | "circle";
5
5
  }, never>;
6
- export declare const SkeletonBar: import("styled-components").StyledComponent<"div", any, {
6
+ export declare const SkeletonBar: import('styled-components').StyledComponent<"div", any, {
7
7
  size?: "S" | "M" | "L" | "XL";
8
8
  shape?: "square" | "circle";
9
9
  }, never>;
10
- export declare const Wrapper: import("styled-components").StyledComponent<"div", any, {
10
+ export declare const Wrapper: import('styled-components').StyledComponent<"div", any, {
11
11
  size?: "S" | "M" | "L" | "XL";
12
12
  shape?: "square" | "circle";
13
13
  }, never>;
@@ -1,37 +1,27 @@
1
- import styled, { keyframes } from 'styled-components';
2
- import { BackgroundGradient } from '../Skeleton.styles';
3
- import { LeftSize, SkeletonSize } from './SkeletonAvatar.types';
4
- var SIZE_RIGHT = 60;
5
- var SIZE_LEFT = -40;
6
- var SKELETON_WIDTH = 80;
7
- export var loadingAnimation = function loadingAnimation(size) {
8
- return keyframes(["0%{background:", ";left:-", "px;top:0px;opacity:0.1;}50%{background:", ";left:", "px;top:0px;opacity:0.3;}100%{background:", ";left:-", "px;top:0px;opacity:0.1;}"], BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT, BackgroundGradient, size ? LeftSize[size] : SIZE_RIGHT, BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT);
9
- };
10
- var SIZE_DEFAULT = 40;
11
- var SIZE_WRAPPER_DEFAULT = 40;
12
- export var Container = styled.div.withConfig({
1
+ import styled, { keyframes } from "styled-components";
2
+ import { BackgroundGradient } from "../Skeleton.styles.js";
3
+ import { SkeletonSize, LeftSize } from "./SkeletonAvatar.types.js";
4
+ const SIZE_RIGHT = 60;
5
+ const SIZE_LEFT = -40;
6
+ const SKELETON_WIDTH = 80;
7
+ const loadingAnimation = (size) => keyframes(["0%{background:", ";left:-", "px;top:0px;opacity:0.1;}50%{background:", ";left:", "px;top:0px;opacity:0.3;}100%{background:", ";left:-", "px;top:0px;opacity:0.1;}"], BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT, BackgroundGradient, size ? LeftSize[size] : SIZE_RIGHT, BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT);
8
+ const SIZE_DEFAULT = 40;
9
+ const SIZE_WRAPPER_DEFAULT = 40;
10
+ const Container = /* @__PURE__ */ styled.div.withConfig({
13
11
  displayName: "SkeletonAvatarstyles__Container",
14
12
  componentId: "sc-1yghksa-0"
15
- })(["width:", "px;overflow:hidden;border-radius:", ";"], function (props) {
16
- return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
17
- }, function (props) {
18
- return props.shape === 'square' ? '6px' : '48%';
19
- });
20
- export var SkeletonBar = styled.div.withConfig({
13
+ })(["width:", "px;overflow:hidden;border-radius:", ";"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT, (props) => props.shape === "square" ? "6px" : "48%");
14
+ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
21
15
  displayName: "SkeletonAvatarstyles__SkeletonBar",
22
16
  componentId: "sc-1yghksa-1"
23
- })(["width:", "%;height:", "px;position:relative;animation:", " 1.2s linear infinite;border-radius:6px;"], SKELETON_WIDTH, function (props) {
24
- return props.size ? SkeletonSize[props.size] : SIZE_DEFAULT;
25
- }, function (props) {
26
- return loadingAnimation(props.size);
27
- });
28
- export var Wrapper = styled.div.withConfig({
17
+ })(["width:", "%;height:", "px;position:relative;animation:", " 1.2s linear infinite;border-radius:6px;"], SKELETON_WIDTH, (props) => props.size ? SkeletonSize[props.size] : SIZE_DEFAULT, (props) => loadingAnimation(props.size));
18
+ const Wrapper = /* @__PURE__ */ styled.div.withConfig({
29
19
  displayName: "SkeletonAvatarstyles__Wrapper",
30
20
  componentId: "sc-1yghksa-2"
31
- })(["display:flex;margin:0px 0px;border-radius:", ";width:100%;height:", "px;background-color:", ";"], function (props) {
32
- return props.shape === 'square' ? '6px' : '48%';
33
- }, function (props) {
34
- return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
35
- }, function (props) {
36
- return props.theme.palette["grey-050"];
37
- });
21
+ })(["display:flex;margin:0px 0px;border-radius:", ";width:100%;height:", "px;background-color:", ";"], (props) => props.shape === "square" ? "6px" : "48%", (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT, (props) => props.theme.palette[`grey-050`]);
22
+ export {
23
+ Container,
24
+ SkeletonBar,
25
+ Wrapper,
26
+ loadingAnimation
27
+ };
@@ -1,14 +1,18 @@
1
- export var SkeletonSize = /*#__PURE__*/function (SkeletonSize) {
2
- SkeletonSize[SkeletonSize["S"] = 24] = "S";
3
- SkeletonSize[SkeletonSize["M"] = 40] = "M";
4
- SkeletonSize[SkeletonSize["L"] = 84] = "L";
5
- SkeletonSize[SkeletonSize["XL"] = 120] = "XL";
6
- return SkeletonSize;
7
- }({});
8
- export var LeftSize = /*#__PURE__*/function (LeftSize) {
9
- LeftSize[LeftSize["S"] = 25] = "S";
10
- LeftSize[LeftSize["M"] = 40] = "M";
11
- LeftSize[LeftSize["L"] = 70] = "L";
12
- LeftSize[LeftSize["XL"] = 90] = "XL";
13
- return LeftSize;
14
- }({});
1
+ var SkeletonSize = /* @__PURE__ */ ((SkeletonSize2) => {
2
+ SkeletonSize2[SkeletonSize2["S"] = 24] = "S";
3
+ SkeletonSize2[SkeletonSize2["M"] = 40] = "M";
4
+ SkeletonSize2[SkeletonSize2["L"] = 84] = "L";
5
+ SkeletonSize2[SkeletonSize2["XL"] = 120] = "XL";
6
+ return SkeletonSize2;
7
+ })(SkeletonSize || {});
8
+ var LeftSize = /* @__PURE__ */ ((LeftSize2) => {
9
+ LeftSize2[LeftSize2["S"] = 25] = "S";
10
+ LeftSize2[LeftSize2["M"] = 40] = "M";
11
+ LeftSize2[LeftSize2["L"] = 70] = "L";
12
+ LeftSize2[LeftSize2["XL"] = 90] = "XL";
13
+ return LeftSize2;
14
+ })(LeftSize || {});
15
+ export {
16
+ LeftSize,
17
+ SkeletonSize
18
+ };
package/dist/index.js CHANGED
@@ -1,5 +1,12 @@
1
- export { default } from './Skeleton';
2
- export { default as CheckboxSkeleton } from './CheckboxSkeleton/CheckboxSkeleton';
3
- export { default as DropdownSkeleton } from './DropdownSkeleton/DropdownSkeleton';
4
- export { default as OrderedListSkeleton } from './OrderedListSkeleton/OrderedListSkeleton';
5
- export { default as SkeletonAvatar } from './SkeletonAvatar/SkeletonAvatar';
1
+ import { default as default2 } from "./Skeleton.js";
2
+ import { default as default3 } from "./CheckboxSkeleton/CheckboxSkeleton.js";
3
+ import { default as default4 } from "./DropdownSkeleton/DropdownSkeleton.js";
4
+ import { default as default5 } from "./OrderedListSkeleton/OrderedListSkeleton.js";
5
+ import { default as default6 } from "./SkeletonAvatar/SkeletonAvatar.js";
6
+ export {
7
+ default3 as CheckboxSkeleton,
8
+ default4 as DropdownSkeleton,
9
+ default5 as OrderedListSkeleton,
10
+ default6 as SkeletonAvatar,
11
+ default2 as default
12
+ };
package/dist/modules.d.js CHANGED
@@ -1 +1 @@
1
- import '@testing-library/jest-dom';
1
+ import "@testing-library/jest-dom";
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-skeleton",
3
- "version": "1.0.44",
3
+ "version": "1.0.45",
4
4
  "description": "Skeleton UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -16,10 +16,10 @@
16
16
  "access": "public"
17
17
  },
18
18
  "scripts": {
19
- "build": "pnpm run build:js && pnpm run build:css && pnpm run defs",
19
+ "build": "vite build",
20
20
  "build:css": "node ../../../scripts/style/less.js",
21
21
  "build:js": "babel --delete-dir-on-start --root-mode upward src --out-dir dist --extensions '.js,.ts,.tsx'",
22
- "build:watch": "pnpm run build:js -- --watch",
22
+ "build:watch": "vite build --watch",
23
23
  "defs": "tsc --declaration --outDir dist/ --emitDeclarationOnly",
24
24
  "pack:ci": "pnpm pack --pack-destination ../../storybook/storybook-static/static",
25
25
  "prepublish": "pnpm run build",
@@ -35,7 +35,7 @@
35
35
  ],
36
36
  "types": "dist/index.d.ts",
37
37
  "dependencies": {
38
- "@synerise/ds-checkbox": "^1.2.20",
38
+ "@synerise/ds-checkbox": "^1.2.21",
39
39
  "uuid": "^8.3.2"
40
40
  },
41
41
  "peerDependencies": {
@@ -43,5 +43,5 @@
43
43
  "react": ">=16.9.0 <= 18.3.1",
44
44
  "styled-components": "^5.3.3"
45
45
  },
46
- "gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
46
+ "gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
47
47
  }