@synerise/ds-action-area 1.0.45 → 1.0.47
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/dist/ActionArea.figma.d.ts +1 -0
- package/dist/ActionArea.figma.js +66 -0
- package/package.json +6 -6
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.47](https://github.com/Synerise/synerise-design/compare/@synerise/ds-action-area@1.0.46...@synerise/ds-action-area@1.0.47) (2026-03-20)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @synerise/ds-action-area
|
|
9
|
+
|
|
10
|
+
## [1.0.46](https://github.com/Synerise/synerise-design/compare/@synerise/ds-action-area@1.0.45...@synerise/ds-action-area@1.0.46) (2026-03-09)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @synerise/ds-action-area
|
|
13
|
+
|
|
6
14
|
## [1.0.45](https://github.com/Synerise/synerise-design/compare/@synerise/ds-action-area@1.0.44...@synerise/ds-action-area@1.0.45) (2026-02-23)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @synerise/ds-action-area
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import figma from '@figma/code-connect';
|
|
2
|
+
import ActionArea from './ActionArea';
|
|
3
|
+
var FIGMA_URL = 'https://www.figma.com/design/fsSZONXpVvtrDsCgtu01Jb/Synerise-Design-System?node-id=1302:19040&m=dev';
|
|
4
|
+
var baseProps = {
|
|
5
|
+
label: figma["boolean"]('Show Header', {
|
|
6
|
+
"true": figma.string('✏️Header Text'),
|
|
7
|
+
"false": undefined
|
|
8
|
+
}),
|
|
9
|
+
description: figma["boolean"]('Show description', {
|
|
10
|
+
"true": figma.string('✏️Description Text'),
|
|
11
|
+
"false": undefined
|
|
12
|
+
})
|
|
13
|
+
};
|
|
14
|
+
figma.connect(ActionArea, FIGMA_URL, {
|
|
15
|
+
variant: {
|
|
16
|
+
State: 'Default'
|
|
17
|
+
},
|
|
18
|
+
props: baseProps,
|
|
19
|
+
example: function example(_ref) {
|
|
20
|
+
var label = _ref.label,
|
|
21
|
+
description = _ref.description;
|
|
22
|
+
return /*#__PURE__*/React.createElement(ActionArea, {
|
|
23
|
+
label: label,
|
|
24
|
+
description: description,
|
|
25
|
+
action: function action() {},
|
|
26
|
+
actionLabel: "Select template"
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
});
|
|
30
|
+
figma.connect(ActionArea, FIGMA_URL, {
|
|
31
|
+
variant: {
|
|
32
|
+
State: 'Disabled'
|
|
33
|
+
},
|
|
34
|
+
props: baseProps,
|
|
35
|
+
example: function example(_ref2) {
|
|
36
|
+
var label = _ref2.label,
|
|
37
|
+
description = _ref2.description;
|
|
38
|
+
return /*#__PURE__*/React.createElement(ActionArea, {
|
|
39
|
+
label: label,
|
|
40
|
+
description: description,
|
|
41
|
+
action: function action() {},
|
|
42
|
+
actionLabel: "Select template",
|
|
43
|
+
buttonProps: {
|
|
44
|
+
disabled: true
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
figma.connect(ActionArea, FIGMA_URL, {
|
|
50
|
+
variant: {
|
|
51
|
+
State: 'Error'
|
|
52
|
+
},
|
|
53
|
+
props: baseProps,
|
|
54
|
+
example: function example(_ref3) {
|
|
55
|
+
var label = _ref3.label,
|
|
56
|
+
description = _ref3.description;
|
|
57
|
+
return /*#__PURE__*/React.createElement(ActionArea, {
|
|
58
|
+
label: label,
|
|
59
|
+
description: description,
|
|
60
|
+
action: function action() {},
|
|
61
|
+
actionLabel: "Select template",
|
|
62
|
+
isError: true,
|
|
63
|
+
errorText: "Error message"
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@synerise/ds-action-area",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.47",
|
|
4
4
|
"description": "ActionArea UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -23,8 +23,8 @@
|
|
|
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",
|
|
26
|
-
"test": "vitest",
|
|
27
|
-
"test:watch": "
|
|
26
|
+
"test": "vitest run",
|
|
27
|
+
"test:watch": "vitest",
|
|
28
28
|
"types": "tsc --noEmit",
|
|
29
29
|
"check:circular-dependencies": "madge --circular --extensions ts,tsx,js,jsx --ts-config tsconfig.json src/ --exclude '/dist/'",
|
|
30
30
|
"upgrade:ds": "ncu -f \"@synerise/ds-*\" -u"
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
],
|
|
36
36
|
"types": "dist/index.d.ts",
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@synerise/ds-button": "^1.5.
|
|
39
|
-
"@synerise/ds-typography": "^1.1.
|
|
38
|
+
"@synerise/ds-button": "^1.5.17",
|
|
39
|
+
"@synerise/ds-typography": "^1.1.12",
|
|
40
40
|
"classnames": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"styled-components": "^5.3.3",
|
|
46
46
|
"vitest": "4"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "8efc031fa688c0b87c7b3915bae93546bb63bcac"
|
|
49
49
|
}
|