@synerise/ds-modal 2.1.0 → 2.2.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,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.2.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@2.1.1...@synerise/ds-modal@2.2.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
+
17
+ ## [2.1.1](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@2.1.0...@synerise/ds-modal@2.1.1) (2026-10-28)
18
+
19
+ **Note:** Version bump only for package @synerise/ds-modal
20
+
21
+
22
+
23
+
24
+
6
25
  # [2.1.0](https://github.com/synerise/synerise-design/compare/@synerise/ds-modal@2.0.10...@synerise/ds-modal@2.1.0) (2026-10-26)
7
26
 
8
27
 
@@ -15,11 +15,11 @@ const Scrollbar = /* @__PURE__ */ styled(ScrollbarBase).withConfig({
15
15
  const ModalBody = /* @__PURE__ */ styled.div.withConfig({
16
16
  displayName: "ModalContentstyles__ModalBody",
17
17
  componentId: "sc-1sk67uc-3"
18
- })(["", " ", " ", ""], (props) => !props.bodyFullWidth && `padding: 24px;`, (props) => props.greyBackground && `background: ${props.theme.palette["grey-050"]};`, (props) => !props.bodyFullWidth && css(["", "{.scrollbar-container{padding-right:24px;}}"], Scrollbar));
18
+ })(["", " ", " ", ""], (props) => !props.bodyFullWidth && `padding: 24px;`, (props) => props.greyBackground && `background: var(--ds-modal-content-bg-grey);`, (props) => !props.bodyFullWidth && css(["", "{.scrollbar-container{padding-right:24px;}}"], Scrollbar));
19
19
  const ModalContainer = /* @__PURE__ */ styled.div.withConfig({
20
20
  displayName: "ModalContentstyles__ModalContainer",
21
21
  componentId: "sc-1sk67uc-4"
22
- })(["background:", ";width:", ";position:absolute;box-shadow:", ";border-radius:3px;", ""], (props) => props.theme.palette["white"], (props) => props.$width, (props) => props.theme.variables["box-shadow-2"], (props) => props.isFullscreen ? css(["&&{position:fixed;top:24px;left:24px;right:24px;bottom:24px;width:auto;margin:0;max-width:none;padding:0;display:flex;flex-direction:column;", "{flex:1 1 100%;overflow:scroll;}}"], ModalBody) : css(["left:50%;", " ", ""], props.centered ? css(["top:50%;transform:translate(-50%,-50%);"]) : css(["top:100px;transform:translateX(-50%);"]), props.maxHeight && css(["display:flex;flex-direction:column;height:", "vh;", "{flex:1 1 100%;overflow:scroll;padding-right:0;}"], props.maxHeight, ModalBody)));
22
+ })(["background:var(--ds-modal-container-bg);width:", ";position:absolute;box-shadow:var(--ds-modal-container-shadow);border-radius:3px;", ""], (props) => props.$width, (props) => props.isFullscreen ? css(["&&{position:fixed;top:24px;left:24px;right:24px;bottom:24px;width:auto;margin:0;max-width:none;padding:0;display:flex;flex-direction:column;", "{flex:1 1 100%;overflow:scroll;}}"], ModalBody) : css(["left:50%;", " ", ""], props.centered ? css(["top:50%;transform:translate(-50%,-50%);"]) : css(["top:100px;transform:translateX(-50%);"]), props.maxHeight && css(["display:flex;flex-direction:column;height:", "vh;", "{flex:1 1 100%;overflow:scroll;padding-right:0;}"], props.maxHeight, ModalBody)));
23
23
  const ModalRoot = /* @__PURE__ */ styled.div.withConfig({
24
24
  displayName: "ModalContentstyles__ModalRoot",
25
25
  componentId: "sc-1sk67uc-5"
@@ -27,7 +27,7 @@ const ModalRoot = /* @__PURE__ */ styled.div.withConfig({
27
27
  const ModalMask = /* @__PURE__ */ styled.div.withConfig({
28
28
  displayName: "ModalContentstyles__ModalMask",
29
29
  componentId: "sc-1sk67uc-6"
30
- })(["position:fixed;top:0;left:0;right:0;bottom:0;background:", ";opacity:0.2;"], (props) => props.theme.palette["grey-800"]);
30
+ })(["position:fixed;top:0;left:0;right:0;bottom:0;background:var(--ds-modal-mask-color);"]);
31
31
  export {
32
32
  ModalBody,
33
33
  ModalContainer,
@@ -2,7 +2,7 @@ import styled from "styled-components";
2
2
  const FooterContainer = /* @__PURE__ */ styled.div.withConfig({
3
3
  displayName: "ModalFooterstyles__FooterContainer",
4
4
  componentId: "sc-1h4mu26-0"
5
- })(["min-height:81px;background:", ";padding:24px 24px;border-top:1px solid ", ";border-radius:0 0 3px 3px;"], (props) => props.theme.palette["grey-050"], (props) => props.theme.palette["grey-100"]);
5
+ })(["min-height:81px;background:var(--ds-modal-footer-bg);padding:24px 24px;border-top:1px solid var(--ds-modal-footer-border-color);border-radius:0 0 3px 3px;"]);
6
6
  const FooterWrapper = /* @__PURE__ */ styled.div.withConfig({
7
7
  displayName: "ModalFooterstyles__FooterWrapper",
8
8
  componentId: "sc-1h4mu26-1"
@@ -12,7 +12,7 @@ const TitleContainer = /* @__PURE__ */ styled.div.withConfig({
12
12
  const Title = /* @__PURE__ */ styled(Title$1).withConfig({
13
13
  displayName: "ModalTitlestyles__Title",
14
14
  componentId: "sc-hnk65g-2"
15
- })(["width:100%;color:", ";white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&&{margin:0;}"], (props) => props.theme.palette["grey-800"]);
15
+ })(["width:100%;color:var(--ds-modal-header-title-color);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;&&{margin:0;}"]);
16
16
  const ActionButtons = /* @__PURE__ */ styled.div.withConfig({
17
17
  displayName: "ModalTitlestyles__ActionButtons",
18
18
  componentId: "sc-hnk65g-3"
@@ -20,11 +20,11 @@ const ActionButtons = /* @__PURE__ */ styled.div.withConfig({
20
20
  const BottomBar = /* @__PURE__ */ styled.div.withConfig({
21
21
  displayName: "ModalTitlestyles__BottomBar",
22
22
  componentId: "sc-hnk65g-4"
23
- })(["padding:12px 24px;border-bottom:1px solid ", ";"], (props) => props.theme.palette["grey-200"]);
23
+ })(["padding:12px 24px;border-bottom:1px solid var(--ds-color-border-base-default);"]);
24
24
  const ModalHeaderTop = /* @__PURE__ */ styled.div.withConfig({
25
25
  displayName: "ModalTitlestyles__ModalHeaderTop",
26
26
  componentId: "sc-hnk65g-5"
27
- })(["border-bottom:1px solid ", ";"], (props) => props.theme.palette["grey-100"]);
27
+ })(["border-bottom:1px solid var(--ds-modal-header-border-color);"]);
28
28
  const ModalTitleWrapper = /* @__PURE__ */ styled.div.withConfig({
29
29
  displayName: "ModalTitlestyles__ModalTitleWrapper",
30
30
  componentId: "sc-hnk65g-6"
@@ -32,7 +32,7 @@ const ModalTitleWrapper = /* @__PURE__ */ styled.div.withConfig({
32
32
  const Description = /* @__PURE__ */ styled.div.withConfig({
33
33
  displayName: "ModalTitlestyles__Description",
34
34
  componentId: "sc-hnk65g-7"
35
- })(["font-size:13px;font-weight:normal;line-height:18px;color:", ";display:block;padding:12px 0 0;margin:14px 0 0;background-image:linear-gradient( to right,", " 33%,", " 0% );background-repeat:repeat-x;background-size:4px 1px;background-position:top;"], (props) => props.theme.palette["grey-600"], (props) => props.theme.palette["grey-300"], (props) => props.theme.palette["white"]);
35
+ })(["font-size:13px;font-weight:normal;line-height:18px;color:var(--ds-color-text-base-muted);display:block;padding:12px 0 0;margin:14px 0 0;background-image:linear-gradient( to right,var(--ds-color-border-base-strong) 33%,var(--ds-modal-container-bg) 0% );background-repeat:repeat-x;background-size:4px 1px;background-position:top;"]);
36
36
  const TabsWrapper = /* @__PURE__ */ styled.div.withConfig({
37
37
  displayName: "ModalTitlestyles__TabsWrapper",
38
38
  componentId: "sc-hnk65g-8"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@synerise/ds-modal",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "description": "Modal UI Component for the Synerise Design System",
5
5
  "license": "ISC",
6
6
  "repository": "synerise/synerise-design",
@@ -39,16 +39,16 @@
39
39
  "sideEffects": false,
40
40
  "types": "dist/index.d.ts",
41
41
  "dependencies": {
42
- "@synerise/ds-button": "^2.1.5",
43
- "@synerise/ds-icon": "^2.2.3",
44
- "@synerise/ds-scrollbar": "^2.0.9",
45
- "@synerise/ds-tabs": "^2.0.11",
46
- "@synerise/ds-typography": "^2.0.10",
47
- "@synerise/ds-utils": "^2.2.2"
42
+ "@synerise/ds-button": "^2.2.0",
43
+ "@synerise/ds-icon": "^2.3.0",
44
+ "@synerise/ds-scrollbar": "^2.1.0",
45
+ "@synerise/ds-tabs": "^2.1.0",
46
+ "@synerise/ds-typography": "^2.1.0",
47
+ "@synerise/ds-utils": "^2.3.0"
48
48
  },
49
49
  "devDependencies": {
50
- "@synerise/ds-dropdown": "^2.1.7",
51
- "@synerise/ds-popconfirm": "^2.0.10",
50
+ "@synerise/ds-dropdown": "^2.2.0",
51
+ "@synerise/ds-popconfirm": "^2.1.0",
52
52
  "vitest": "4"
53
53
  },
54
54
  "peerDependencies": {
@@ -58,5 +58,5 @@
58
58
  "react-intl": ">=3.12.0 <= 6.8",
59
59
  "styled-components": "^5.3.3"
60
60
  },
61
- "gitHead": "5ac0f7dcb7c3995b402c86c087d8f32770f80a1d"
61
+ "gitHead": "5c3d61e30289486d14c7d6becb682e2d4a08ce41"
62
62
  }