@synerise/ds-popconfirm 2.0.11 → 2.1.1

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,25 @@
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.1](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@2.1.0...@synerise/ds-popconfirm@2.1.1) (2026-11-03)
7
+
8
+ **Note:** Version bump only for package @synerise/ds-popconfirm
9
+
10
+
11
+
12
+
13
+
14
+ # [2.1.0](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@2.0.11...@synerise/ds-popconfirm@2.1.0) (2026-10-29)
15
+
16
+
17
+ ### Features
18
+
19
+ * integrate Token Studio design tokens across the design system ([aabb447](https://github.com/Synerise/synerise-design/commit/aabb447edfb2d0c85e3de1f07e809ef84083453b))
20
+
21
+
22
+
23
+
24
+
6
25
  ## [2.0.11](https://github.com/Synerise/synerise-design/compare/@synerise/ds-popconfirm@2.0.10...@synerise/ds-popconfirm@2.0.11) (2026-10-28)
7
26
 
8
27
  **Note:** Version bump only for package @synerise/ds-popconfirm
package/CLAUDE.md CHANGED
@@ -127,20 +127,20 @@ import { ConfirmMessage } from '@synerise/ds-popconfirm';
127
127
 
128
128
  ## Styling
129
129
 
130
- - Container: `max-width: 288px`, `padding: 16px`, `border-radius: 3px`, `background: theme.palette.white`, shadow from `theme.variables['box-shadow-2']`
131
- - Title: `14px`, `font-weight: 500`, `color: theme.palette['grey-800']`
130
+ - Container: `max-width: 288px`, `padding: 16px`, `border-radius: 3px`, `background: var(--ds-popconfirm-container-bg)`, shadow `var(--ds-shadows-shadow-2)`
131
+ - Title: `14px`, `font-weight: 500`, `color: var(--ds-popconfirm-header-text)`
132
132
  - Description: `13px`, `font-weight: 400`; `margin-top: 6px` only when `titlePadding` is falsy
133
133
  - Buttons: `height: 32px`; cancel is always `type="secondary"`, confirm uses `okType`
134
134
  - Arrow: custom SVG triangle, positioned via CSS classes (`ds-popover-arrow-*`) — rotated per placement
135
- - Carousel dots: ds-carousel's `.ds-carousel-dots` restyled here to round dots; active dot (`.ds-carousel-dot-active`) uses `theme.palette['green-600']` border
136
- - `ConfirmMessage` styles contain a hardcoded colour (`#404c5a` for text) — not a design token
135
+ - Carousel dots: ds-carousel's `.ds-carousel-dots` restyled here to round dots; active dot (`.ds-carousel-dot-active`) uses a `var(--ds-color-background-success-solid)` border
136
+ - `ConfirmMessage` text uses `var(--ds-popconfirm-header-text)`
137
137
 
138
138
  ## Key dependencies
139
139
 
140
140
  - `@synerise/ds-popover` — provides `Popover`, `PopoverTrigger`, `PopoverContent`, `PopoverArrow`, `getPlacement`
141
141
  - `@synerise/ds-button` — cancel and confirm buttons
142
142
  - `@synerise/ds-tooltip` — used by `ConfirmMessage` internally
143
- - `@synerise/ds-core` — `useTheme` for z-index and colour tokens
143
+ - `@synerise/ds-core` — `useTheme` for the `zindex-popconfirm` default (`theme.variables`)
144
144
  - `@synerise/ds-carousel` — image slideshow (fade + dots)
145
145
  - `@floating-ui/react` — `UseTransitionStylesProps`, re-exported in the published types
146
146
 
@@ -7,11 +7,11 @@ const Message = /* @__PURE__ */ styled.div.withConfig({
7
7
  const ConfirmMessageTitle = /* @__PURE__ */ styled.span.withConfig({
8
8
  displayName: "ConfirmMessagestyle__ConfirmMessageTitle",
9
9
  componentId: "sc-6dbwo9-1"
10
- })(["font-size:14px;line-height:1.43;color:#404c5a;"]);
10
+ })(["font-size:14px;line-height:1.43;color:var(--ds-popconfirm-header-text);"]);
11
11
  const ConfirmMessage = /* @__PURE__ */ styled.div.withConfig({
12
12
  displayName: "ConfirmMessagestyle__ConfirmMessage",
13
13
  componentId: "sc-6dbwo9-2"
14
- })(["display:flex;align-items:center;justify-content:center;background-color:", ";padding:16px;border-radius:3px;box-shadow:0 16px 32px 0 rgba(35,41,54,0.1);", "{margin-right:8px;}"], (props) => props.theme.palette.white, IconContainer);
14
+ })(["display:flex;align-items:center;justify-content:center;background-color:var(--ds-popconfirm-container-bg);padding:16px;border-radius:3px;box-shadow:var(--ds-shadows-shadow-2);", "{margin-right:8px;}"], IconContainer);
15
15
  export {
16
16
  ConfirmMessage,
17
17
  ConfirmMessageTitle,
@@ -3,17 +3,17 @@ import Button from "@synerise/ds-button";
3
3
  const PopconfirmContainer = /* @__PURE__ */ styled.div.withConfig({
4
4
  displayName: "Popconfirmstyles__PopconfirmContainer",
5
5
  componentId: "sc-19dzptq-0"
6
- })(["box-shadow:", ";max-width:288px;padding:16px;position:relative;z-index:1;border-radius:3px;background-color:", ";"], (props) => props.theme.variables["box-shadow-2"], (props) => props.theme.palette.white);
6
+ })(["box-shadow:var(--ds-shadows-shadow-2);max-width:288px;padding:16px;position:relative;z-index:1;border-radius:3px;background-color:var(--ds-popconfirm-container-bg);"]);
7
7
  const PopconfirmContent = /* @__PURE__ */ styled.div.withConfig({
8
8
  displayName: "Popconfirmstyles__PopconfirmContent",
9
9
  componentId: "sc-19dzptq-1"
10
- })(["display:flex;flex-direction:column;align-items:", ";justify-content:flex-start;margin:0px;.ds-carousel{position:relative;width:100%;margin-top:24px;.ds-carousel-track{width:100%;}.ds-carousel-dots{position:relative;bottom:0;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:24px 0 0;margin:0;li{width:8px;height:8px;border-radius:50%;margin:0 8px 0 0;display:flex;align-items:center;justify-content:center;button{box-sizing:content-box;background-color:", ";border:2px solid ", ";height:4px;width:4px;border-radius:50%;opacity:1;}}li.ds-carousel-dot-active{button{border:2px solid ", ";background-color:", ";}}}}"], ({
10
+ })(["display:flex;flex-direction:column;align-items:", ";justify-content:flex-start;margin:0px;.ds-carousel{position:relative;width:100%;margin-top:24px;.ds-carousel-track{width:100%;}.ds-carousel-dots{position:relative;bottom:0;display:flex;flex-direction:row;align-items:center;justify-content:center;padding:24px 0 0;margin:0;li{width:8px;height:8px;border-radius:50%;margin:0 8px 0 0;display:flex;align-items:center;justify-content:center;button{box-sizing:content-box;background-color:var(--ds-color-icon-base-default);border:2px solid var(--ds-color-background-base-default);height:4px;width:4px;border-radius:50%;opacity:1;}}li.ds-carousel-dot-active{button{border:2px solid var(--ds-color-background-success-solid);background-color:var(--ds-color-background-base-default);}}}}"], ({
11
11
  buttonsAlign
12
- }) => buttonsAlign === "left" ? "flex-start" : "flex-end", (props) => props.theme.palette["grey-600"], (props) => props.theme.palette.white, (props) => props.theme.palette["green-600"], (props) => `${props.theme.palette.white}`);
12
+ }) => buttonsAlign === "left" ? "flex-start" : "flex-end");
13
13
  const PopconfirmTitle = /* @__PURE__ */ styled.div.withConfig({
14
14
  displayName: "Popconfirmstyles__PopconfirmTitle",
15
15
  componentId: "sc-19dzptq-2"
16
- })(["font-size:14px;line-height:1.43;color:", ";font-weight:500;padding-top:2px;text-overflow:ellipsis;overflow:hidden;"], (props) => props.theme.palette["grey-800"]);
16
+ })(["font-size:14px;line-height:1.43;color:var(--ds-popconfirm-header-text);font-weight:500;padding-top:2px;text-overflow:ellipsis;overflow:hidden;"]);
17
17
  const PopconfirmButton = /* @__PURE__ */ styled(Button).withConfig({
18
18
  displayName: "Popconfirmstyles__PopconfirmButton",
19
19
  componentId: "sc-19dzptq-3"
@@ -29,7 +29,7 @@ const ButtonWrapper = /* @__PURE__ */ styled.div.withConfig({
29
29
  const PopconfirmDescription = /* @__PURE__ */ styled.div.withConfig({
30
30
  displayName: "Popconfirmstyles__PopconfirmDescription",
31
31
  componentId: "sc-19dzptq-6"
32
- })(["font-size:13px;line-height:1.38;font-weight:400;margin-top:", ";color:", ";"], (props) => props.titlePadding ? "6px" : "none", (props) => props.theme.palette["grey-800"]);
32
+ })(["font-size:13px;line-height:1.38;font-weight:400;margin-top:", ";color:var(--ds-popconfirm-content-description);"], (props) => props.titlePadding ? "6px" : "none");
33
33
  const PopconfirmIcon = /* @__PURE__ */ styled.div.withConfig({
34
34
  displayName: "Popconfirmstyles__PopconfirmIcon",
35
35
  componentId: "sc-19dzptq-7"
@@ -37,7 +37,7 @@ const PopconfirmIcon = /* @__PURE__ */ styled.div.withConfig({
37
37
  const PopconfirmCloseIcon = /* @__PURE__ */ styled.div.withConfig({
38
38
  displayName: "Popconfirmstyles__PopconfirmCloseIcon",
39
39
  componentId: "sc-19dzptq-8"
40
- })(["margin-left:", ";color:", ";cursor:pointer;border-radius:3px;"], (props) => props.titlePadding ? "8px" : "6px", (props) => props.theme.palette["grey-600"]);
40
+ })(["margin-left:", ";color:var(--ds-popconfirm-header-icon);cursor:pointer;border-radius:3px;"], (props) => props.titlePadding ? "8px" : "6px");
41
41
  const PopconfirmWrapper = /* @__PURE__ */ styled.div.withConfig({
42
42
  displayName: "Popconfirmstyles__PopconfirmWrapper",
43
43
  componentId: "sc-19dzptq-9"
@@ -49,7 +49,7 @@ const PopconfirmArrow = /* @__PURE__ */ styled.svg.withConfig({
49
49
  const PopconfirmArrowWrapper = /* @__PURE__ */ styled.div.withConfig({
50
50
  displayName: "Popconfirmstyles__PopconfirmArrowWrapper",
51
51
  componentId: "sc-19dzptq-11"
52
- })(["width:0;height:0;position:absolute;z-index:2;color:", ";&.ds-popover-arrow-bottom,&.ds-popover-arrow-bottom-end,&.ds-popover-arrow-bottom-start{top:0;transform:rotate(180deg);}&.ds-popover-arrow-top,&.ds-popover-arrow-top-end,&.ds-popover-arrow-top-start{bottom:0;}&.ds-popover-arrow-left,&.ds-popover-arrow-left-end,&.ds-popover-arrow-left-start{right:0;transform:rotate(-90deg);}&.ds-popover-arrow-right,&.ds-popover-arrow-right-end,&.ds-popover-arrow-right-start{left:0;transform:rotate(90deg);}"], (props) => props.theme.palette["white"]);
52
+ })(["width:0;height:0;position:absolute;z-index:2;color:var(--ds-popconfirm-container-bg);&.ds-popover-arrow-bottom,&.ds-popover-arrow-bottom-end,&.ds-popover-arrow-bottom-start{top:0;transform:rotate(180deg);}&.ds-popover-arrow-top,&.ds-popover-arrow-top-end,&.ds-popover-arrow-top-start{bottom:0;}&.ds-popover-arrow-left,&.ds-popover-arrow-left-end,&.ds-popover-arrow-left-start{right:0;transform:rotate(-90deg);}&.ds-popover-arrow-right,&.ds-popover-arrow-right-end,&.ds-popover-arrow-right-start{left:0;transform:rotate(90deg);}"]);
53
53
  const PopconfirmContentWrapper = /* @__PURE__ */ styled.div.withConfig({
54
54
  displayName: "Popconfirmstyles__PopconfirmContentWrapper",
55
55
  componentId: "sc-19dzptq-12"
@@ -69,7 +69,7 @@ const PopconfirmImage = /* @__PURE__ */ styled.img.withConfig({
69
69
  const LinkWrapper = /* @__PURE__ */ styled.span.withConfig({
70
70
  displayName: "Popconfirmstyles__LinkWrapper",
71
71
  componentId: "sc-19dzptq-16"
72
- })(["font-size:13px;line-height:1.5;font-weight:400;color:", ";text-decoration:underline;cursor:pointer;max-width:200px;text-overflow:ellipsis;overflow:hidden;"], (props) => props.theme.palette["grey-700"]);
72
+ })(["font-size:13px;line-height:1.5;font-weight:400;color:var(--ds-color-text-base-subtle);text-decoration:underline;cursor:pointer;max-width:200px;text-overflow:ellipsis;overflow:hidden;"]);
73
73
  export {
74
74
  ButtonWrapper,
75
75
  LinkWrapper,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-popconfirm",
3
- "version": "2.0.11",
3
+ "version": "2.1.1",
4
4
  "description": "Popconfirm UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "Synerise/synerise-design",
@@ -43,11 +43,11 @@
43
43
  "types": "dist/index.d.ts",
44
44
  "dependencies": {
45
45
  "@floating-ui/react": "^0.27.16",
46
- "@synerise/ds-button": "^2.1.6",
47
- "@synerise/ds-carousel": "^2.0.2",
48
- "@synerise/ds-icon": "^2.2.3",
49
- "@synerise/ds-popover": "^2.1.0",
50
- "@synerise/ds-tooltip": "^2.0.11"
46
+ "@synerise/ds-button": "^2.2.1",
47
+ "@synerise/ds-carousel": "^2.1.0",
48
+ "@synerise/ds-icon": "^2.3.1",
49
+ "@synerise/ds-popover": "^2.3.0",
50
+ "@synerise/ds-tooltip": "^2.1.1"
51
51
  },
52
52
  "devDependencies": {
53
53
  "@testing-library/user-event": "^14",
@@ -58,5 +58,5 @@
58
58
  "react": ">=16.9.0 <= 18.3.1",
59
59
  "styled-components": "^5.3.3"
60
60
  },
61
- "gitHead": "c356039703d8826bbbdb6dadcb18bb008fea8bc5"
61
+ "gitHead": "2d2a540b35fddf8855da45f0dec2f4612c6d87b6"
62
62
  }