@synerise/ds-skeleton 2.0.11 → 2.1.0

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 CHANGED
@@ -3,6 +3,17 @@
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
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-skeleton@2.0.11...@synerise/ds-skeleton@2.1.0) (2026-10-29)
7
+
8
+
9
+ ### Features
10
+
11
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-skeleton@2.0.10...@synerise/ds-skeleton@2.0.11) (2026-10-28)
7
18
 
8
19
  **Note:** Version bump only for package @synerise/ds-skeleton
package/CLAUDE.md CHANGED
@@ -104,7 +104,7 @@ import Skeleton, { CheckboxSkeleton, DropdownSkeleton, OrderedListSkeleton, Skel
104
104
 
105
105
  ## Styling
106
106
 
107
- All components share `BackgroundGradient` from `Skeleton.styles.ts` — a grey-to-light gradient. Each bar is animated with a `1.2s ease-in-out infinite` keyframes animation that slides the gradient left/right, producing a shimmer effect. Colours come from `theme.palette['grey-050']` for the base and the gradient for the shimmer.
107
+ All components share `BackgroundGradient` from `Skeleton.styles.ts` — a grey-to-light gradient. Each bar is animated with a `1.2s ease-in-out infinite` keyframes animation that slides the gradient left/right, producing a shimmer effect. Colours come from `var(--ds-skeleton-bg)` for the base and `var(--ds-skeleton-gradient)` for the shimmer.
108
108
 
109
109
  ## Key dependencies
110
110
 
@@ -1,7 +1,7 @@
1
1
  import styled, { keyframes } from "styled-components";
2
2
  import { BackgroundGradient } from "../Skeleton.styles.js";
3
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);
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-120px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}50%{background:", ";left:140px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-max);}100%{background:", ";left:-120px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
5
  const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "CheckboxSkeletonstyles__Container",
7
7
  componentId: "sc-abp40a-0"
@@ -15,7 +15,7 @@ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
15
15
  const Wrapper = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "CheckboxSkeletonstyles__Wrapper",
17
17
  componentId: "sc-abp40a-2"
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`]);
18
+ })(["display:flex;margin-bottom:5px;border-radius:2px;width:150px;height:", "px;background-color:var(--ds-skeleton-bg);"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT);
19
19
  const SkeletonWrapper = /* @__PURE__ */ styled.div.withConfig({
20
20
  displayName: "CheckboxSkeletonstyles__SkeletonWrapper",
21
21
  componentId: "sc-abp40a-3"
@@ -1,7 +1,7 @@
1
1
  import styled, { keyframes } from "styled-components";
2
2
  import { BackgroundGradient } from "../Skeleton.styles.js";
3
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);
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-140px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}50%{background:", ";left:160px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-max);}100%{background:", ";left:-140px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
5
  const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "DropdownSkeletonstyles__Container",
7
7
  componentId: "sc-r1oxe3-0"
@@ -15,7 +15,7 @@ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
15
15
  const Wrapper = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "DropdownSkeletonstyles__Wrapper",
17
17
  componentId: "sc-r1oxe3-2"
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`]);
18
+ })(["display:flex;margin:15px 0;border-radius:2px;width:100%;height:", "px;background-color:var(--ds-skeleton-bg);"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT);
19
19
  export {
20
20
  Container,
21
21
  SkeletonBar,
@@ -1,7 +1,7 @@
1
1
  import styled, { keyframes } from "styled-components";
2
2
  import { SkeletonSize } from "../CheckboxSkeleton/CheckboxSkeleton.types.js";
3
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);
4
+ const loadingAnimation = /* @__PURE__ */ keyframes(["0%{background:", ";left:-120px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}50%{background:", ";left:140px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-max);}100%{background:", ";left:-120px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}"], BackgroundGradient, BackgroundGradient, BackgroundGradient);
5
5
  const Container = /* @__PURE__ */ styled.div.withConfig({
6
6
  displayName: "OrderedListSkeletonstyles__Container",
7
7
  componentId: "sc-zwdgyl-0"
@@ -15,7 +15,7 @@ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
15
15
  const Wrapper = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "OrderedListSkeletonstyles__Wrapper",
17
17
  componentId: "sc-zwdgyl-2"
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`]);
18
+ })(["display:flex;margin:0px 0px 15px 0px;border-radius:2px;width:150px;height:", "px;background-color:var(--ds-skeleton-bg);"], (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT);
19
19
  export {
20
20
  Container,
21
21
  SkeletonBar,
@@ -1,9 +1,9 @@
1
1
  import styled, { css, keyframes } from "styled-components";
2
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%);"]);
3
+ const BackgroundGradient = /* @__PURE__ */ css(["var(--ds-skeleton-gradient);"]);
4
4
  const OFFSET_LEFT = 140;
5
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);
6
+ const loadingAnimation = (width) => keyframes(["0%{left:", "px;opacity:var(--ds-skeleton-pulse-opacity-min);}50%{left:", "px;opacity:var(--ds-skeleton-pulse-opacity-max);}100%{left:", "px;opacity:var(--ds-skeleton-pulse-opacity-min);}"], width ? StartOffsetSize[width] : START_OFFSET_LEFT, width ? WidthSize[width] : OFFSET_LEFT, width ? StartOffsetSize[width] : START_OFFSET_LEFT);
7
7
  const SIZE_WRAPPER_DEFAULT = 16;
8
8
  const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
9
9
  displayName: "Skeletonstyles__SkeletonBar",
@@ -12,12 +12,12 @@ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
12
12
  const Wrapper = /* @__PURE__ */ styled.div.withConfig({
13
13
  displayName: "Skeletonstyles__Wrapper",
14
14
  componentId: "sc-1xxxvq3-1"
15
- })(["border-right:transparent;border-left:transparent;border-radius:", ";width:100%;height:", "px;background-color:", ";overflow:hidden;"], (props) => props.width === "M" ? "4px" : "2px", (props) => {
15
+ })(["border-right:transparent;border-left:transparent;border-radius:", ";width:100%;height:", "px;background-color:var(--ds-skeleton-bg);overflow:hidden;"], (props) => props.width === "M" ? "4px" : "2px", (props) => {
16
16
  if (props.height !== void 0) {
17
17
  return props.height;
18
18
  }
19
19
  return props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT;
20
- }, (props) => props.theme.palette[`grey-050`]);
20
+ });
21
21
  const Container = /* @__PURE__ */ styled.div.withConfig({
22
22
  displayName: "Skeletonstyles__Container",
23
23
  componentId: "sc-1xxxvq3-2"
@@ -4,7 +4,7 @@ import { SkeletonSize, LeftSize } from "./SkeletonAvatar.types.js";
4
4
  const SIZE_RIGHT = 60;
5
5
  const SIZE_LEFT = -40;
6
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);
7
+ const loadingAnimation = (size) => keyframes(["0%{background:", ";left:-", "px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}50%{background:", ";left:", "px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-max);}100%{background:", ";left:-", "px;top:0px;opacity:var(--ds-skeleton-pulse-opacity-min);}"], BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT, BackgroundGradient, size ? LeftSize[size] : SIZE_RIGHT, BackgroundGradient, size ? LeftSize[size] : SIZE_LEFT);
8
8
  const SIZE_DEFAULT = 40;
9
9
  const SIZE_WRAPPER_DEFAULT = 40;
10
10
  const Container = /* @__PURE__ */ styled.div.withConfig({
@@ -18,7 +18,7 @@ const SkeletonBar = /* @__PURE__ */ styled.div.withConfig({
18
18
  const Wrapper = /* @__PURE__ */ styled.div.withConfig({
19
19
  displayName: "SkeletonAvatarstyles__Wrapper",
20
20
  componentId: "sc-1yghksa-2"
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`]);
21
+ })(["display:flex;margin:0px 0px;border-radius:", ";width:100%;height:", "px;background-color:var(--ds-skeleton-bg);"], (props) => props.shape === "square" ? "6px" : "48%", (props) => props.size ? SkeletonSize[props.size] : SIZE_WRAPPER_DEFAULT);
22
22
  export {
23
23
  Container,
24
24
  SkeletonBar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-skeleton",
3
- "version": "2.0.11",
3
+ "version": "2.1.0",
4
4
  "description": "Skeleton UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -42,8 +42,8 @@
42
42
  ],
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
- "@synerise/ds-checkbox": "^2.0.11",
46
- "@synerise/ds-utils": "^2.2.2"
45
+ "@synerise/ds-checkbox": "^2.1.0",
46
+ "@synerise/ds-utils": "^2.3.0"
47
47
  },
48
48
  "devDependencies": {
49
49
  "vitest": "4"
@@ -53,5 +53,5 @@
53
53
  "react": ">=16.9.0 <= 18.3.1",
54
54
  "styled-components": "^5.3.3"
55
55
  },
56
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
56
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
57
57
  }