@ltht-react/admin-actions 2.0.193 → 2.0.194
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/README.md +16 -16
- package/package.json +9 -9
- package/src/atoms/admin-action-button.tsx +59 -59
- package/src/atoms/admin-action-description.tsx +19 -19
- package/src/index.tsx +5 -5
- package/src/organisms/admin-action.tsx +29 -29
- package/lib/atoms/admin-action-button.d.ts +0 -14
- package/lib/atoms/admin-action-button.js +0 -29
- package/lib/atoms/admin-action-button.js.map +0 -1
- package/lib/atoms/admin-action-description.d.ts +0 -7
- package/lib/atoms/admin-action-description.js +0 -20
- package/lib/atoms/admin-action-description.js.map +0 -1
- package/lib/index.d.ts +0 -4
- package/lib/index.js +0 -8
- package/lib/index.js.map +0 -1
- package/lib/organisms/admin-action.d.ts +0 -8
- package/lib/organisms/admin-action.js +0 -22
- package/lib/organisms/admin-action.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
# AdminActions
|
|
3
|
-
|
|
4
|
-
<!-- STORY -->
|
|
5
|
-
|
|
6
|
-
### Import
|
|
7
|
-
|
|
8
|
-
```js
|
|
9
|
-
import AdminActions from '@ltht-react/admin-actions'
|
|
10
|
-
```
|
|
11
|
-
|
|
12
|
-
### Usage
|
|
13
|
-
|
|
14
|
-
```jsx
|
|
15
|
-
<AdminActions />
|
|
16
|
-
```
|
|
1
|
+
|
|
2
|
+
# AdminActions
|
|
3
|
+
|
|
4
|
+
<!-- STORY -->
|
|
5
|
+
|
|
6
|
+
### Import
|
|
7
|
+
|
|
8
|
+
```js
|
|
9
|
+
import AdminActions from '@ltht-react/admin-actions'
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
### Usage
|
|
13
|
+
|
|
14
|
+
```jsx
|
|
15
|
+
<AdminActions />
|
|
16
|
+
```
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ltht-react/admin-actions",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.194",
|
|
4
4
|
"description": "ltht-react clinical AdminActions component.",
|
|
5
5
|
"author": "LTHT",
|
|
6
6
|
"homepage": "",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@emotion/react": "^11.0.0",
|
|
30
30
|
"@emotion/styled": "^11.0.0",
|
|
31
|
-
"@ltht-react/button": "^2.0.
|
|
32
|
-
"@ltht-react/hooks": "^2.0.
|
|
33
|
-
"@ltht-react/icon": "^2.0.
|
|
34
|
-
"@ltht-react/styles": "^2.0.
|
|
35
|
-
"@ltht-react/type-summary": "^2.0.
|
|
36
|
-
"@ltht-react/types": "^2.0.
|
|
37
|
-
"@ltht-react/utils": "^2.0.
|
|
31
|
+
"@ltht-react/button": "^2.0.194",
|
|
32
|
+
"@ltht-react/hooks": "^2.0.194",
|
|
33
|
+
"@ltht-react/icon": "^2.0.194",
|
|
34
|
+
"@ltht-react/styles": "^2.0.194",
|
|
35
|
+
"@ltht-react/type-summary": "^2.0.194",
|
|
36
|
+
"@ltht-react/types": "^2.0.194",
|
|
37
|
+
"@ltht-react/utils": "^2.0.194",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2eb4b88fa2bc19baa1be9433dbe29fe1a947dc62"
|
|
41
41
|
}
|
|
@@ -1,59 +1,59 @@
|
|
|
1
|
-
import styled from '@emotion/styled'
|
|
2
|
-
import { Button } from '@ltht-react/button'
|
|
3
|
-
import { BTN_COLOURS } from '@ltht-react/styles'
|
|
4
|
-
import { Maybe, Task } from '@ltht-react/types'
|
|
5
|
-
import { FC } from 'react'
|
|
6
|
-
import Icon from '@ltht-react/icon'
|
|
7
|
-
|
|
8
|
-
const SuccessButton = styled(Button)`
|
|
9
|
-
background-color: ${BTN_COLOURS.WORKFLOW.VALUE};
|
|
10
|
-
cursor: auto;
|
|
11
|
-
:hover {
|
|
12
|
-
background-color: ${BTN_COLOURS.WORKFLOW.VALUE};
|
|
13
|
-
cursor: auto !important;
|
|
14
|
-
}
|
|
15
|
-
`
|
|
16
|
-
|
|
17
|
-
const FailButton = styled(Button)`
|
|
18
|
-
background-color: ${BTN_COLOURS.DANGER.VALUE};
|
|
19
|
-
cursor: auto;
|
|
20
|
-
:hover {
|
|
21
|
-
background-color: ${BTN_COLOURS.DANGER.VALUE};
|
|
22
|
-
cursor: auto !important;
|
|
23
|
-
}
|
|
24
|
-
`
|
|
25
|
-
|
|
26
|
-
const ActionButton: FC<IProps> = ({ adminAction, actionClickHandler }) => {
|
|
27
|
-
if (adminAction.isSuccess === true) {
|
|
28
|
-
return <SuccessButton type="button" value="Done" icon={<Icon type="check" size="medium" />} />
|
|
29
|
-
}
|
|
30
|
-
if (adminAction.isSuccess === false) {
|
|
31
|
-
return (
|
|
32
|
-
<FailButton type="button" value={adminAction.failText} icon={<Icon type="cross" size="medium" color="grey" />} />
|
|
33
|
-
)
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
return (
|
|
37
|
-
<Button
|
|
38
|
-
type="button"
|
|
39
|
-
title="Perform Action"
|
|
40
|
-
value={!adminAction.isLoading ? 'Perform Action' : 'Loading'}
|
|
41
|
-
icon={adminAction.isLoading && <Icon type="spinner" size="medium" />}
|
|
42
|
-
onClick={adminAction.isLoading ? () => undefined : () => actionClickHandler(adminAction)}
|
|
43
|
-
/>
|
|
44
|
-
)
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface IProps {
|
|
48
|
-
adminAction: IAdminAction
|
|
49
|
-
actionClickHandler(adminAction: IAdminAction): void
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface IAdminAction {
|
|
53
|
-
task: Task
|
|
54
|
-
isLoading: boolean
|
|
55
|
-
isSuccess: Maybe<boolean>
|
|
56
|
-
failText: string
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export default ActionButton
|
|
1
|
+
import styled from '@emotion/styled'
|
|
2
|
+
import { Button } from '@ltht-react/button'
|
|
3
|
+
import { BTN_COLOURS } from '@ltht-react/styles'
|
|
4
|
+
import { Maybe, Task } from '@ltht-react/types'
|
|
5
|
+
import { FC } from 'react'
|
|
6
|
+
import Icon from '@ltht-react/icon'
|
|
7
|
+
|
|
8
|
+
const SuccessButton = styled(Button)`
|
|
9
|
+
background-color: ${BTN_COLOURS.WORKFLOW.VALUE};
|
|
10
|
+
cursor: auto;
|
|
11
|
+
:hover {
|
|
12
|
+
background-color: ${BTN_COLOURS.WORKFLOW.VALUE};
|
|
13
|
+
cursor: auto !important;
|
|
14
|
+
}
|
|
15
|
+
`
|
|
16
|
+
|
|
17
|
+
const FailButton = styled(Button)`
|
|
18
|
+
background-color: ${BTN_COLOURS.DANGER.VALUE};
|
|
19
|
+
cursor: auto;
|
|
20
|
+
:hover {
|
|
21
|
+
background-color: ${BTN_COLOURS.DANGER.VALUE};
|
|
22
|
+
cursor: auto !important;
|
|
23
|
+
}
|
|
24
|
+
`
|
|
25
|
+
|
|
26
|
+
const ActionButton: FC<IProps> = ({ adminAction, actionClickHandler }) => {
|
|
27
|
+
if (adminAction.isSuccess === true) {
|
|
28
|
+
return <SuccessButton type="button" value="Done" icon={<Icon type="check" size="medium" />} />
|
|
29
|
+
}
|
|
30
|
+
if (adminAction.isSuccess === false) {
|
|
31
|
+
return (
|
|
32
|
+
<FailButton type="button" value={adminAction.failText} icon={<Icon type="cross" size="medium" color="grey" />} />
|
|
33
|
+
)
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
return (
|
|
37
|
+
<Button
|
|
38
|
+
type="button"
|
|
39
|
+
title="Perform Action"
|
|
40
|
+
value={!adminAction.isLoading ? 'Perform Action' : 'Loading'}
|
|
41
|
+
icon={adminAction.isLoading && <Icon type="spinner" size="medium" />}
|
|
42
|
+
onClick={adminAction.isLoading ? () => undefined : () => actionClickHandler(adminAction)}
|
|
43
|
+
/>
|
|
44
|
+
)
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
interface IProps {
|
|
48
|
+
adminAction: IAdminAction
|
|
49
|
+
actionClickHandler(adminAction: IAdminAction): void
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface IAdminAction {
|
|
53
|
+
task: Task
|
|
54
|
+
isLoading: boolean
|
|
55
|
+
isSuccess: Maybe<boolean>
|
|
56
|
+
failText: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export default ActionButton
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { FC } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
import { Maybe } from '@ltht-react/types'
|
|
4
|
-
|
|
5
|
-
const StyledDescription = styled.div`
|
|
6
|
-
flex: 1;
|
|
7
|
-
`
|
|
8
|
-
|
|
9
|
-
const Description: FC<IProps> = (props) => {
|
|
10
|
-
if (props.description) return <StyledDescription>{props.description}</StyledDescription>
|
|
11
|
-
|
|
12
|
-
return null
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface IProps {
|
|
16
|
-
description?: Maybe<string>
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export default Description
|
|
1
|
+
import { FC } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
import { Maybe } from '@ltht-react/types'
|
|
4
|
+
|
|
5
|
+
const StyledDescription = styled.div`
|
|
6
|
+
flex: 1;
|
|
7
|
+
`
|
|
8
|
+
|
|
9
|
+
const Description: FC<IProps> = (props) => {
|
|
10
|
+
if (props.description) return <StyledDescription>{props.description}</StyledDescription>
|
|
11
|
+
|
|
12
|
+
return null
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
interface IProps {
|
|
16
|
+
description?: Maybe<string>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export default Description
|
package/src/index.tsx
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import AdminAction from './organisms/admin-action'
|
|
2
|
-
import { IAdminAction } from './atoms/admin-action-button'
|
|
3
|
-
|
|
4
|
-
export default AdminAction
|
|
5
|
-
export { IAdminAction }
|
|
1
|
+
import AdminAction from './organisms/admin-action'
|
|
2
|
+
import { IAdminAction } from './atoms/admin-action-button'
|
|
3
|
+
|
|
4
|
+
export default AdminAction
|
|
5
|
+
export { IAdminAction }
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { FC } from 'react'
|
|
2
|
-
import styled from '@emotion/styled'
|
|
3
|
-
import Description from '../atoms/admin-action-description'
|
|
4
|
-
import ActionButton, { IAdminAction } from '../atoms/admin-action-button'
|
|
5
|
-
|
|
6
|
-
const StyledAdminAction = styled.div`
|
|
7
|
-
display: flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
`
|
|
10
|
-
|
|
11
|
-
const RightSection = styled.div`
|
|
12
|
-
text-align: right;
|
|
13
|
-
`
|
|
14
|
-
|
|
15
|
-
const AdminAction: FC<IProps> = ({ adminAction, actionClickHandler }) => (
|
|
16
|
-
<StyledAdminAction>
|
|
17
|
-
<Description description={adminAction.task.description} />
|
|
18
|
-
<RightSection>
|
|
19
|
-
<ActionButton adminAction={adminAction} actionClickHandler={actionClickHandler} />
|
|
20
|
-
</RightSection>
|
|
21
|
-
</StyledAdminAction>
|
|
22
|
-
)
|
|
23
|
-
|
|
24
|
-
interface IProps {
|
|
25
|
-
adminAction: IAdminAction
|
|
26
|
-
actionClickHandler(adminAction: IAdminAction): void
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default AdminAction
|
|
1
|
+
import { FC } from 'react'
|
|
2
|
+
import styled from '@emotion/styled'
|
|
3
|
+
import Description from '../atoms/admin-action-description'
|
|
4
|
+
import ActionButton, { IAdminAction } from '../atoms/admin-action-button'
|
|
5
|
+
|
|
6
|
+
const StyledAdminAction = styled.div`
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
`
|
|
10
|
+
|
|
11
|
+
const RightSection = styled.div`
|
|
12
|
+
text-align: right;
|
|
13
|
+
`
|
|
14
|
+
|
|
15
|
+
const AdminAction: FC<IProps> = ({ adminAction, actionClickHandler }) => (
|
|
16
|
+
<StyledAdminAction>
|
|
17
|
+
<Description description={adminAction.task.description} />
|
|
18
|
+
<RightSection>
|
|
19
|
+
<ActionButton adminAction={adminAction} actionClickHandler={actionClickHandler} />
|
|
20
|
+
</RightSection>
|
|
21
|
+
</StyledAdminAction>
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
interface IProps {
|
|
25
|
+
adminAction: IAdminAction
|
|
26
|
+
actionClickHandler(adminAction: IAdminAction): void
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export default AdminAction
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Maybe, Task } from '@ltht-react/types';
|
|
2
|
-
import { FC } from 'react';
|
|
3
|
-
declare const ActionButton: FC<IProps>;
|
|
4
|
-
interface IProps {
|
|
5
|
-
adminAction: IAdminAction;
|
|
6
|
-
actionClickHandler(adminAction: IAdminAction): void;
|
|
7
|
-
}
|
|
8
|
-
export interface IAdminAction {
|
|
9
|
-
task: Task;
|
|
10
|
-
isLoading: boolean;
|
|
11
|
-
isSuccess: Maybe<boolean>;
|
|
12
|
-
failText: string;
|
|
13
|
-
}
|
|
14
|
-
export default ActionButton;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
-
var button_1 = require("@ltht-react/button");
|
|
13
|
-
var styles_1 = require("@ltht-react/styles");
|
|
14
|
-
var icon_1 = __importDefault(require("@ltht-react/icon"));
|
|
15
|
-
var SuccessButton = (0, styled_1.default)(button_1.Button)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"], ["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"])), styles_1.BTN_COLOURS.WORKFLOW.VALUE, styles_1.BTN_COLOURS.WORKFLOW.VALUE);
|
|
16
|
-
var FailButton = (0, styled_1.default)(button_1.Button)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"], ["\n background-color: ", ";\n cursor: auto;\n :hover {\n background-color: ", ";\n cursor: auto !important;\n }\n"])), styles_1.BTN_COLOURS.DANGER.VALUE, styles_1.BTN_COLOURS.DANGER.VALUE);
|
|
17
|
-
var ActionButton = function (_a) {
|
|
18
|
-
var adminAction = _a.adminAction, actionClickHandler = _a.actionClickHandler;
|
|
19
|
-
if (adminAction.isSuccess === true) {
|
|
20
|
-
return (0, jsx_runtime_1.jsx)(SuccessButton, { type: "button", value: "Done", icon: (0, jsx_runtime_1.jsx)(icon_1.default, { type: "check", size: "medium" }) });
|
|
21
|
-
}
|
|
22
|
-
if (adminAction.isSuccess === false) {
|
|
23
|
-
return ((0, jsx_runtime_1.jsx)(FailButton, { type: "button", value: adminAction.failText, icon: (0, jsx_runtime_1.jsx)(icon_1.default, { type: "cross", size: "medium", color: "grey" }) }));
|
|
24
|
-
}
|
|
25
|
-
return ((0, jsx_runtime_1.jsx)(button_1.Button, { type: "button", title: "Perform Action", value: !adminAction.isLoading ? 'Perform Action' : 'Loading', icon: adminAction.isLoading && (0, jsx_runtime_1.jsx)(icon_1.default, { type: "spinner", size: "medium" }), onClick: adminAction.isLoading ? function () { return undefined; } : function () { return actionClickHandler(adminAction); } }));
|
|
26
|
-
};
|
|
27
|
-
exports.default = ActionButton;
|
|
28
|
-
var templateObject_1, templateObject_2;
|
|
29
|
-
//# sourceMappingURL=admin-action-button.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-action-button.js","sourceRoot":"","sources":["../../src/atoms/admin-action-button.tsx"],"names":[],"mappings":";;;;;;;;;;AAAA,2DAAoC;AACpC,6CAA2C;AAC3C,6CAAgD;AAGhD,0DAAmC;AAEnC,IAAM,aAAa,GAAG,IAAA,gBAAM,EAAC,eAAM,CAAC,+LAAA,wBACd,EAA0B,wDAGxB,EAA0B,wCAGjD,KANqB,oBAAW,CAAC,QAAQ,CAAC,KAAK,EAGxB,oBAAW,CAAC,QAAQ,CAAC,KAAK,CAGjD,CAAA;AAED,IAAM,UAAU,GAAG,IAAA,gBAAM,EAAC,eAAM,CAAC,+LAAA,wBACX,EAAwB,wDAGtB,EAAwB,wCAG/C,KANqB,oBAAW,CAAC,MAAM,CAAC,KAAK,EAGtB,oBAAW,CAAC,MAAM,CAAC,KAAK,CAG/C,CAAA;AAED,IAAM,YAAY,GAAe,UAAC,EAAmC;QAAjC,WAAW,iBAAA,EAAE,kBAAkB,wBAAA;IACjE,IAAI,WAAW,CAAC,SAAS,KAAK,IAAI,EAAE,CAAC;QACnC,OAAO,uBAAC,aAAa,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,EAAC,IAAI,EAAE,uBAAC,cAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,QAAQ,GAAG,GAAI,CAAA;IAChG,CAAC;IACD,IAAI,WAAW,CAAC,SAAS,KAAK,KAAK,EAAE,CAAC;QACpC,OAAO,CACL,uBAAC,UAAU,IAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAE,WAAW,CAAC,QAAQ,EAAE,IAAI,EAAE,uBAAC,cAAI,IAAC,IAAI,EAAC,OAAO,EAAC,IAAI,EAAC,QAAQ,EAAC,KAAK,EAAC,MAAM,GAAG,GAAI,CAClH,CAAA;IACH,CAAC;IAED,OAAO,CACL,uBAAC,eAAM,IACL,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,gBAAgB,EACtB,KAAK,EAAE,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,SAAS,EAC5D,IAAI,EAAE,WAAW,CAAC,SAAS,IAAI,uBAAC,cAAI,IAAC,IAAI,EAAC,SAAS,EAAC,IAAI,EAAC,QAAQ,GAAG,EACpE,OAAO,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,cAAM,OAAA,SAAS,EAAT,CAAS,CAAC,CAAC,CAAC,cAAM,OAAA,kBAAkB,CAAC,WAAW,CAAC,EAA/B,CAA+B,GACxF,CACH,CAAA;AACH,CAAC,CAAA;AAcD,kBAAe,YAAY,CAAA"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
-
var StyledDescription = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n flex: 1;\n"], ["\n flex: 1;\n"])));
|
|
13
|
-
var Description = function (props) {
|
|
14
|
-
if (props.description)
|
|
15
|
-
return (0, jsx_runtime_1.jsx)(StyledDescription, { children: props.description });
|
|
16
|
-
return null;
|
|
17
|
-
};
|
|
18
|
-
exports.default = Description;
|
|
19
|
-
var templateObject_1;
|
|
20
|
-
//# sourceMappingURL=admin-action-description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-action-description.js","sourceRoot":"","sources":["../../src/atoms/admin-action-description.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,2DAAoC;AAGpC,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,mFAAA,gBAEnC,IAAA,CAAA;AAED,IAAM,WAAW,GAAe,UAAC,KAAK;IACpC,IAAI,KAAK,CAAC,WAAW;QAAE,OAAO,uBAAC,iBAAiB,cAAE,KAAK,CAAC,WAAW,GAAqB,CAAA;IAExF,OAAO,IAAI,CAAA;AACb,CAAC,CAAA;AAMD,kBAAe,WAAW,CAAA"}
|
package/lib/index.d.ts
DELETED
package/lib/index.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
var admin_action_1 = __importDefault(require("./organisms/admin-action"));
|
|
7
|
-
exports.default = admin_action_1.default;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.tsx"],"names":[],"mappings":";;;;;AAAA,0EAAkD;AAGlD,kBAAe,sBAAW,CAAA"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { FC } from 'react';
|
|
2
|
-
import { IAdminAction } from '../atoms/admin-action-button';
|
|
3
|
-
declare const AdminAction: FC<IProps>;
|
|
4
|
-
interface IProps {
|
|
5
|
-
adminAction: IAdminAction;
|
|
6
|
-
actionClickHandler(adminAction: IAdminAction): void;
|
|
7
|
-
}
|
|
8
|
-
export default AdminAction;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
|
|
3
|
-
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
4
|
-
return cooked;
|
|
5
|
-
};
|
|
6
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
8
|
-
};
|
|
9
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
11
|
-
var styled_1 = __importDefault(require("@emotion/styled"));
|
|
12
|
-
var admin_action_description_1 = __importDefault(require("../atoms/admin-action-description"));
|
|
13
|
-
var admin_action_button_1 = __importDefault(require("../atoms/admin-action-button"));
|
|
14
|
-
var StyledAdminAction = styled_1.default.div(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
|
|
15
|
-
var RightSection = styled_1.default.div(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n text-align: right;\n"], ["\n text-align: right;\n"])));
|
|
16
|
-
var AdminAction = function (_a) {
|
|
17
|
-
var adminAction = _a.adminAction, actionClickHandler = _a.actionClickHandler;
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(StyledAdminAction, { children: [(0, jsx_runtime_1.jsx)(admin_action_description_1.default, { description: adminAction.task.description }), (0, jsx_runtime_1.jsx)(RightSection, { children: (0, jsx_runtime_1.jsx)(admin_action_button_1.default, { adminAction: adminAction, actionClickHandler: actionClickHandler }) })] }));
|
|
19
|
-
};
|
|
20
|
-
exports.default = AdminAction;
|
|
21
|
-
var templateObject_1, templateObject_2;
|
|
22
|
-
//# sourceMappingURL=admin-action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"admin-action.js","sourceRoot":"","sources":["../../src/organisms/admin-action.tsx"],"names":[],"mappings":";;;;;;;;;;AACA,2DAAoC;AACpC,+FAA2D;AAC3D,qFAAyE;AAEzE,IAAM,iBAAiB,GAAG,gBAAM,CAAC,GAAG,iHAAA,8CAGnC,IAAA,CAAA;AAED,IAAM,YAAY,GAAG,gBAAM,CAAC,GAAG,6FAAA,0BAE9B,IAAA,CAAA;AAED,IAAM,WAAW,GAAe,UAAC,EAAmC;QAAjC,WAAW,iBAAA,EAAE,kBAAkB,wBAAA;IAAO,OAAA,CACvE,wBAAC,iBAAiB,eAChB,uBAAC,kCAAW,IAAC,WAAW,EAAE,WAAW,CAAC,IAAI,CAAC,WAAW,GAAI,EAC1D,uBAAC,YAAY,cACX,uBAAC,6BAAY,IAAC,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,kBAAkB,GAAI,GACrE,IACG,CACrB;AAPwE,CAOxE,CAAA;AAOD,kBAAe,WAAW,CAAA"}
|