@synerise/ds-action-area 1.0.13 → 1.0.15
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 +222 -834
- package/README.md +3 -1
- package/dist/ActionArea.js +2 -2
- package/dist/ActionArea.types.d.ts +2 -2
- package/dist/ActionArea.utils.d.ts +2 -2
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ title: ActionArea
|
|
|
6
6
|
ActionArea UI Component
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
|
+
|
|
9
10
|
```
|
|
10
11
|
npm i @synerise/ds-action-area
|
|
11
12
|
or
|
|
@@ -13,6 +14,7 @@ yarn add @synerise/ds-action-area
|
|
|
13
14
|
```
|
|
14
15
|
|
|
15
16
|
## Usage
|
|
17
|
+
|
|
16
18
|
```
|
|
17
19
|
import ActionArea from '@synerise/ds-action-area'
|
|
18
20
|
|
|
@@ -29,7 +31,7 @@ import ActionArea from '@synerise/ds-action-area'
|
|
|
29
31
|
Either both `action` & `actionLabel` OR `customAction` is required.
|
|
30
32
|
|
|
31
33
|
| Property | Description | Type | Default |
|
|
32
|
-
|
|
34
|
+
| ------------ | ------------------------------------------------ | --------------------- | ------- |
|
|
33
35
|
| action | Function called when user clicks on ActionButton | `Function` | - |
|
|
34
36
|
| actionLabel | Label of action button | `React.ReactNode` | - |
|
|
35
37
|
| customAction | content to render below description | `React.ReactNode` | - |
|
package/dist/ActionArea.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _excluded = ["label", "description", "isFullWidth", "isError", "errorText", "className", "style"];
|
|
2
2
|
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
3
|
-
import React from 'react';
|
|
4
3
|
import classnames from 'classnames';
|
|
5
|
-
import
|
|
4
|
+
import React from 'react';
|
|
5
|
+
import { Description, Title } from '@synerise/ds-typography';
|
|
6
6
|
import * as S from './ActionArea.styles';
|
|
7
7
|
import { renderAction } from './ActionArea.utils';
|
|
8
8
|
var ActionArea = function ActionArea(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { ButtonProps } from '@synerise/ds-button';
|
|
1
|
+
import { type CSSProperties, type ReactNode } from 'react';
|
|
2
|
+
import { type ButtonProps } from '@synerise/ds-button';
|
|
3
3
|
type CommonProps = {
|
|
4
4
|
className?: string;
|
|
5
5
|
description: ReactNode;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import { ActionAreaWithCustomActionProps, ActionAreaWithStandardActionProps } from './ActionArea.types';
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import { type ActionAreaWithCustomActionProps, type ActionAreaWithStandardActionProps } from './ActionArea.types';
|
|
3
3
|
export declare const renderAction: (props: ActionAreaWithCustomActionProps | ActionAreaWithStandardActionProps) => ReactNode;
|
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.15",
|
|
4
4
|
"description": "ActionArea UI Component for the Synerise Design System",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"repository": "Synerise/synerise-design",
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
],
|
|
35
35
|
"types": "dist/index.d.ts",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@synerise/ds-button": "^1.4.
|
|
38
|
-
"@synerise/ds-typography": "^1.0.
|
|
39
|
-
"@synerise/ds-utils": "^1.3.
|
|
40
|
-
"classnames": "2.
|
|
37
|
+
"@synerise/ds-button": "^1.4.3",
|
|
38
|
+
"@synerise/ds-typography": "^1.0.14",
|
|
39
|
+
"@synerise/ds-utils": "^1.3.1",
|
|
40
|
+
"classnames": "^2.5.1"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
43
|
"@synerise/ds-core": "*",
|
|
44
44
|
"react": ">=16.9.0 <= 18.3.1",
|
|
45
45
|
"styled-components": "^5.3.3"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "8db1900bf3f7b0782c834ff82f628199530cd934"
|
|
48
48
|
}
|