@synerise/ds-skeleton 1.0.43 → 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.
- package/CHANGELOG.md +8 -0
- package/README.md +41 -8
- package/dist/CheckboxSkeleton/CheckboxSkeleton.d.ts +2 -2
- package/dist/CheckboxSkeleton/CheckboxSkeleton.js +23 -30
- package/dist/CheckboxSkeleton/CheckboxSkeleton.styles.d.ts +5 -5
- package/dist/CheckboxSkeleton/CheckboxSkeleton.styles.js +20 -19
- package/dist/CheckboxSkeleton/CheckboxSkeleton.types.js +9 -6
- package/dist/DropdownSkeleton/DropdownSkeleton.d.ts +2 -2
- package/dist/DropdownSkeleton/DropdownSkeleton.js +19 -29
- package/dist/DropdownSkeleton/DropdownSkeleton.styles.d.ts +4 -4
- package/dist/DropdownSkeleton/DropdownSkeleton.styles.js +17 -17
- package/dist/DropdownSkeleton/DropdownSkeleton.types.js +9 -6
- package/dist/OrderedListSkeleton/OrderedListSkeleton.d.ts +2 -2
- package/dist/OrderedListSkeleton/OrderedListSkeleton.js +18 -29
- package/dist/OrderedListSkeleton/OrderedListSkeleton.styles.d.ts +4 -4
- package/dist/OrderedListSkeleton/OrderedListSkeleton.styles.js +17 -17
- package/dist/Skeleton.d.ts +2 -2
- package/dist/Skeleton.js +20 -36
- package/dist/Skeleton.styles.d.ts +5 -5
- package/dist/Skeleton.styles.js +22 -25
- package/dist/Skeleton.types.js +21 -16
- package/dist/SkeletonAvatar/SkeletonAvatar.d.ts +2 -2
- package/dist/SkeletonAvatar/SkeletonAvatar.js +11 -19
- package/dist/SkeletonAvatar/SkeletonAvatar.styles.d.ts +4 -4
- package/dist/SkeletonAvatar/SkeletonAvatar.styles.js +21 -31
- package/dist/SkeletonAvatar/SkeletonAvatar.types.js +18 -14
- package/dist/index.js +12 -5
- package/dist/modules.d.js +1 -1
- package/dist/modules.d.ts +0 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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
|
+
|
|
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)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-skeleton
|
|
13
|
+
|
|
6
14
|
## [1.0.43](https://github.com/Synerise/synerise-design/compare/@synerise/ds-skeleton@1.0.42...@synerise/ds-skeleton@1.0.43) (2026-03-09)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-skeleton
|
package/README.md
CHANGED
|
@@ -28,11 +28,44 @@ import Skeleton from '@synerise/ds-skeleton'
|
|
|
28
28
|
|
|
29
29
|
## API
|
|
30
30
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
|
34
|
-
|
|
|
35
|
-
|
|
|
36
|
-
|
|
|
37
|
-
|
|
|
38
|
-
|
|
|
31
|
+
### Skeleton
|
|
32
|
+
|
|
33
|
+
| Property | Description | Type | Default |
|
|
34
|
+
| ----------------- | ----------------------------------------------------------------- | --------------- | ------- |
|
|
35
|
+
| size | Height of each bar | 'S' / 'M' / 'L' | 'M' |
|
|
36
|
+
| width | Fixed bar width; omit to fill container | 'M' / 'L' | - |
|
|
37
|
+
| height | Override bar height in px (takes precedence over `size`) | number | - |
|
|
38
|
+
| numberOfSkeletons | Number of skeleton bars to render | number | 2 |
|
|
39
|
+
| className | Applied to the container | string | - |
|
|
40
|
+
|
|
41
|
+
### CheckboxSkeleton
|
|
42
|
+
|
|
43
|
+
| Property | Description | Type | Default |
|
|
44
|
+
| ----------------- | --------------------------------------- | --------------- | ------- |
|
|
45
|
+
| size | Bar height | 'S' / 'M' / 'L' | 'M' |
|
|
46
|
+
| numberOfSkeletons | Number of skeleton bars | number | 2 |
|
|
47
|
+
| className | Applied to the container | string | - |
|
|
48
|
+
|
|
49
|
+
### DropdownSkeleton
|
|
50
|
+
|
|
51
|
+
| Property | Description | Type | Default |
|
|
52
|
+
| ----------------- | --------------------------------------- | --------------- | ------- |
|
|
53
|
+
| size | Bar height | 'S' / 'M' / 'L' | 'M' |
|
|
54
|
+
| numberOfSkeletons | Number of skeleton rows | number | 3 |
|
|
55
|
+
| className | Applied to the container | string | - |
|
|
56
|
+
|
|
57
|
+
### OrderedListSkeleton
|
|
58
|
+
|
|
59
|
+
| Property | Description | Type | Default |
|
|
60
|
+
| ----------------- | --------------------------------------- | --------------- | ------- |
|
|
61
|
+
| size | Bar height | 'S' / 'M' / 'L' | 'M' |
|
|
62
|
+
| numberOfSkeletons | Number of skeleton rows | number | 4 |
|
|
63
|
+
| className | Applied to the container | string | - |
|
|
64
|
+
|
|
65
|
+
### SkeletonAvatar
|
|
66
|
+
|
|
67
|
+
| Property | Description | Type | Default |
|
|
68
|
+
| --------- | --------------------------------------------------- | ----------------------- | ------- |
|
|
69
|
+
| size | Avatar diameter (S=24px, M=40px, L=84px, XL=120px) | 'S' / 'M' / 'L' / 'XL' | 'M' |
|
|
70
|
+
| shape | Square uses 6px border-radius; circle uses 48% | 'square' / 'circle' | - |
|
|
71
|
+
| className | Applied to the container | string | - |
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
})
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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(
|
|
2
|
-
export declare const Container: import(
|
|
3
|
-
export declare const SkeletonBar: import(
|
|
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(
|
|
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(
|
|
9
|
+
export declare const SkeletonWrapper: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
@@ -1,28 +1,29 @@
|
|
|
1
|
-
import styled, { keyframes } from
|
|
2
|
-
import { BackgroundGradient } from
|
|
3
|
-
import { SkeletonSize } from
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;"],
|
|
15
|
-
|
|
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:", ";"],
|
|
21
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
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 {
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
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(
|
|
2
|
-
export declare const Container: import(
|
|
3
|
-
export declare const SkeletonBar: import(
|
|
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(
|
|
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
|
|
2
|
-
import { BackgroundGradient } from
|
|
3
|
-
import { SkeletonSize } from
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;"],
|
|
15
|
-
|
|
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:", ";"],
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
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 {
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
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(
|
|
2
|
-
export declare const Container: import(
|
|
3
|
-
export declare const SkeletonBar: import(
|
|
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(
|
|
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
|
|
2
|
-
import { SkeletonSize } from
|
|
3
|
-
import { BackgroundGradient } from
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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;"],
|
|
15
|
-
|
|
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:", ";"],
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
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
|
+
};
|
package/dist/Skeleton.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import {
|
|
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
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
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 {
|
|
2
|
-
export declare const BackgroundGradient: import(
|
|
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(
|
|
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(
|
|
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(
|
|
13
|
+
export declare const Container: import('styled-components').StyledComponent<"div", any, {}, never>;
|
package/dist/Skeleton.styles.js
CHANGED
|
@@ -1,34 +1,31 @@
|
|
|
1
|
-
import styled, { css, keyframes } from
|
|
2
|
-
import { SkeletonSize, StartOffsetSize, WidthSize } from
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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,
|
|
14
|
-
|
|
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;"],
|
|
22
|
-
|
|
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
|
-
},
|
|
29
|
-
|
|
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
|
+
};
|
package/dist/Skeleton.types.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
return
|
|
6
|
-
}({});
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
return
|
|
11
|
-
}({});
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
return
|
|
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 {
|
|
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
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
return
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
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(
|
|
2
|
-
export declare const Container: import(
|
|
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(
|
|
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(
|
|
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
|
|
2
|
-
import { BackgroundGradient } from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
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:", ";"],
|
|
16
|
-
|
|
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,
|
|
24
|
-
|
|
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:", ";"],
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
}({});
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
|
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.
|
|
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": "
|
|
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": "
|
|
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.
|
|
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": "
|
|
46
|
+
"gitHead": "e4ecca8944fc9b41c1b9d59c8bcad5e5e2013225"
|
|
47
47
|
}
|