@luscii-healthtech/web-ui 0.1.25 → 0.1.26
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/dist/components/ButtonV2/ButtonProps.type.d.ts +12 -0
- package/dist/components/ButtonV2/ButtonV2.d.ts +3 -11
- package/dist/components/ButtonV2/PrimaryButton.d.ts +3 -11
- package/dist/components/ButtonV2/SecondaryButton.d.ts +3 -10
- package/dist/components/ButtonV2/TertiaryButton.d.ts +3 -10
- package/dist/index.d.ts +4 -3
- package/dist/web-ui.cjs.development.css +46 -46
- package/dist/web-ui.cjs.development.js +11 -24
- package/dist/web-ui.cjs.development.js.map +1 -1
- package/dist/web-ui.cjs.production.min.css +22 -22
- package/dist/web-ui.cjs.production.min.js +1 -1
- package/dist/web-ui.cjs.production.min.js.map +1 -1
- package/dist/web-ui.esm.css +77 -77
- package/dist/web-ui.esm.js +11 -24
- package/dist/web-ui.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/ButtonV2/ButtonProps.type.ts +13 -0
- package/src/components/ButtonV2/ButtonV2.tsx +3 -10
- package/src/components/ButtonV2/PrimaryButton.tsx +3 -17
- package/src/components/ButtonV2/SecondaryButton.tsx +3 -15
- package/src/components/ButtonV2/TertiaryButton.tsx +3 -15
- package/src/index.tsx +6 -11
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IconProps } from "../Icons/types/IconProps.type";
|
|
3
|
+
export interface BaseButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
+
text?: string;
|
|
6
|
+
icon?: React.FunctionComponent<IconProps>;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ButtonProps extends BaseButtonProps {
|
|
11
|
+
isPending?: boolean;
|
|
12
|
+
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
text?: string;
|
|
6
|
-
icon?: React.FunctionComponent<IconProps>;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
isPending?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const ButtonV2: (props: ButtonV2Props) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from "./ButtonProps.type";
|
|
3
|
+
export declare const ButtonV2: (props: ButtonProps) => JSX.Element;
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
text?: string;
|
|
6
|
-
icon?: React.FunctionComponent<IconProps>;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
isPending?: boolean;
|
|
9
|
-
className?: string;
|
|
10
|
-
}
|
|
11
|
-
export declare const PrimaryButton: (props: PrimaryButtonProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ButtonProps } from "./ButtonProps.type";
|
|
3
|
+
export declare const PrimaryButton: (props: ButtonProps) => JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
text?: string;
|
|
6
|
-
icon?: React.FunctionComponent<IconProps>;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const SecondaryButton: (props: SecondaryButtonProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseButtonProps } from "./ButtonProps.type";
|
|
3
|
+
export declare const SecondaryButton: (props: BaseButtonProps) => JSX.Element;
|
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
export
|
|
4
|
-
onClick: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
5
|
-
text?: string;
|
|
6
|
-
icon?: React.FunctionComponent<IconProps>;
|
|
7
|
-
isDisabled?: boolean;
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const TertiaryButton: (props: TertiaryButtonProps) => JSX.Element;
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { BaseButtonProps } from "./ButtonProps.type";
|
|
3
|
+
export declare const TertiaryButton: (props: BaseButtonProps) => JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export { default as Acknowledgement, ACKNOWLEDGEMENT_TYPE_OPTIONS, } from "./components/Acknowledgement/Acknowledgement";
|
|
2
2
|
export { default as Avatar } from "./components/Avatar/Avatar";
|
|
3
3
|
export { default as Badge } from "./components/Badge/Badge";
|
|
4
|
-
export {
|
|
5
|
-
export {
|
|
6
|
-
export {
|
|
4
|
+
export { BaseButtonProps as NonPrimaryButtonProps, ButtonProps as PrimaryButtonProps, } from "./components/ButtonV2/ButtonProps.type";
|
|
5
|
+
export { PrimaryButton } from "./components/ButtonV2/PrimaryButton";
|
|
6
|
+
export { SecondaryButton } from "./components/ButtonV2/SecondaryButton";
|
|
7
|
+
export { TertiaryButton } from "./components/ButtonV2/TertiaryButton";
|
|
7
8
|
export { default as Carousel } from "./components/Carousel/Carousel";
|
|
8
9
|
export { default as CenteredHero } from "./components/CenteredHero/CenteredHero";
|
|
9
10
|
export { default as Checkbox } from "./components/Checkbox/Checkbox";
|
|
@@ -1,38 +1,3 @@
|
|
|
1
|
-
.cweb-acknowledgement {
|
|
2
|
-
position: fixed;
|
|
3
|
-
left: 0;
|
|
4
|
-
right: 0;
|
|
5
|
-
z-index: 10000;
|
|
6
|
-
display: flex;
|
|
7
|
-
justify-content: center;
|
|
8
|
-
flex-direction: column;
|
|
9
|
-
align-items: center;
|
|
10
|
-
top: 0;
|
|
11
|
-
margin: 0 auto;
|
|
12
|
-
opacity: 0;
|
|
13
|
-
width: 354px;
|
|
14
|
-
max-width: calc(100% - 6px);
|
|
15
|
-
box-shadow: 0 0 20px 0 rgba(106, 191, 165, 0.2);
|
|
16
|
-
padding: 16px;
|
|
17
|
-
border-radius: 8px;
|
|
18
|
-
transform: translateY(-100%);
|
|
19
|
-
transition: transform ease-out 400ms, opacity 1ms linear 500ms; }
|
|
20
|
-
.cweb-acknowledgement > .acknowledgement-icon-container {
|
|
21
|
-
width: 48px;
|
|
22
|
-
height: 48px;
|
|
23
|
-
margin-bottom: 12px; }
|
|
24
|
-
.cweb-acknowledgement > .acknowledgement-icon-container > .acknowledgement-icon {
|
|
25
|
-
width: 100%;
|
|
26
|
-
height: 100%; }
|
|
27
|
-
.cweb-acknowledgement.type-success {
|
|
28
|
-
background: #e7f5ec; }
|
|
29
|
-
.cweb-acknowledgement.type-failure {
|
|
30
|
-
background: #fff1f1; }
|
|
31
|
-
.cweb-acknowledgement.is-visible {
|
|
32
|
-
opacity: 1;
|
|
33
|
-
transform: translateY(32px);
|
|
34
|
-
transition: transform ease-in 150ms; }
|
|
35
|
-
|
|
36
1
|
.cweb-avatar {
|
|
37
2
|
display: flex;
|
|
38
3
|
justify-content: flex-start;
|
|
@@ -118,6 +83,41 @@
|
|
|
118
83
|
.cweb-avatar.size-large.display-initials > .avatar-content-container {
|
|
119
84
|
border-width: 0.5px; } }
|
|
120
85
|
|
|
86
|
+
.cweb-acknowledgement {
|
|
87
|
+
position: fixed;
|
|
88
|
+
left: 0;
|
|
89
|
+
right: 0;
|
|
90
|
+
z-index: 10000;
|
|
91
|
+
display: flex;
|
|
92
|
+
justify-content: center;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
align-items: center;
|
|
95
|
+
top: 0;
|
|
96
|
+
margin: 0 auto;
|
|
97
|
+
opacity: 0;
|
|
98
|
+
width: 354px;
|
|
99
|
+
max-width: calc(100% - 6px);
|
|
100
|
+
box-shadow: 0 0 20px 0 rgba(106, 191, 165, 0.2);
|
|
101
|
+
padding: 16px;
|
|
102
|
+
border-radius: 8px;
|
|
103
|
+
transform: translateY(-100%);
|
|
104
|
+
transition: transform ease-out 400ms, opacity 1ms linear 500ms; }
|
|
105
|
+
.cweb-acknowledgement > .acknowledgement-icon-container {
|
|
106
|
+
width: 48px;
|
|
107
|
+
height: 48px;
|
|
108
|
+
margin-bottom: 12px; }
|
|
109
|
+
.cweb-acknowledgement > .acknowledgement-icon-container > .acknowledgement-icon {
|
|
110
|
+
width: 100%;
|
|
111
|
+
height: 100%; }
|
|
112
|
+
.cweb-acknowledgement.type-success {
|
|
113
|
+
background: #e7f5ec; }
|
|
114
|
+
.cweb-acknowledgement.type-failure {
|
|
115
|
+
background: #fff1f1; }
|
|
116
|
+
.cweb-acknowledgement.is-visible {
|
|
117
|
+
opacity: 1;
|
|
118
|
+
transform: translateY(32px);
|
|
119
|
+
transition: transform ease-in 150ms; }
|
|
120
|
+
|
|
121
121
|
.cweb-checkbox {
|
|
122
122
|
outline: none;
|
|
123
123
|
transition: all 0.3s ease; }
|
|
@@ -798,6 +798,17 @@
|
|
|
798
798
|
width: 32px;
|
|
799
799
|
height: 32px; }
|
|
800
800
|
|
|
801
|
+
.ql-editor {
|
|
802
|
+
resize: vertical;
|
|
803
|
+
min-height: 10rem; }
|
|
804
|
+
|
|
805
|
+
.ql-snow.ql-toolbar {
|
|
806
|
+
display: block;
|
|
807
|
+
background: #f1f5f9;
|
|
808
|
+
border-top-left-radius: 0.5em;
|
|
809
|
+
border-top-right-radius: 0.5em;
|
|
810
|
+
margin-top: 0.5em; }
|
|
811
|
+
|
|
801
812
|
.cweb-textarea {
|
|
802
813
|
border: 1px solid #cccccc;
|
|
803
814
|
border-radius: 4px;
|
|
@@ -829,17 +840,6 @@
|
|
|
829
840
|
border: 1px solid #ff6266;
|
|
830
841
|
color: #ff6266; }
|
|
831
842
|
|
|
832
|
-
.ql-editor {
|
|
833
|
-
resize: vertical;
|
|
834
|
-
min-height: 10rem; }
|
|
835
|
-
|
|
836
|
-
.ql-snow.ql-toolbar {
|
|
837
|
-
display: block;
|
|
838
|
-
background: #f1f5f9;
|
|
839
|
-
border-top-left-radius: 0.5em;
|
|
840
|
-
border-top-right-radius: 0.5em;
|
|
841
|
-
margin-top: 0.5em; }
|
|
842
|
-
|
|
843
843
|
.editor .rdw-editor {
|
|
844
844
|
overflow-y: auto; }
|
|
845
845
|
.editor .rdw-editor .rdw-link-modal {
|
|
@@ -273,13 +273,13 @@ var ButtonV2 = function ButtonV2(props) {
|
|
|
273
273
|
"opacity-50": props.isDisabled,
|
|
274
274
|
"pointer-events-none": props.isDisabled || props.isPending
|
|
275
275
|
}, props.className);
|
|
276
|
-
return /*#__PURE__*/React__default.createElement("button", {
|
|
276
|
+
return /*#__PURE__*/React__default.createElement("button", Object.assign({}, props, {
|
|
277
277
|
className: buttonClassName,
|
|
278
278
|
type: "button",
|
|
279
279
|
onClick: props.onClick,
|
|
280
280
|
disabled: props.isDisabled,
|
|
281
281
|
"aria-disabled": props.isDisabled
|
|
282
|
-
}, props.icon && /*#__PURE__*/React__default.createElement(props.icon, {
|
|
282
|
+
}), props.icon && /*#__PURE__*/React__default.createElement(props.icon, {
|
|
283
283
|
className: "w-5 h-5"
|
|
284
284
|
}), props.isPending && /*#__PURE__*/React__default.createElement("span", {
|
|
285
285
|
className: "opacity-100",
|
|
@@ -301,34 +301,21 @@ var ButtonV2 = function ButtonV2(props) {
|
|
|
301
301
|
};
|
|
302
302
|
|
|
303
303
|
var PrimaryButton = function PrimaryButton(props) {
|
|
304
|
-
return /*#__PURE__*/React__default.createElement(ButtonV2, {
|
|
305
|
-
className: classNames(["text-white", "bg-blue-800", "border-transparent", "hover:bg-blue-900"], props.className)
|
|
306
|
-
|
|
307
|
-
text: props.text,
|
|
308
|
-
icon: props.icon,
|
|
309
|
-
isDisabled: props.isDisabled,
|
|
310
|
-
isPending: props.isPending
|
|
311
|
-
});
|
|
304
|
+
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
305
|
+
className: classNames(["text-white", "bg-blue-800", "border-transparent", "hover:bg-blue-900"], props.className)
|
|
306
|
+
}));
|
|
312
307
|
};
|
|
313
308
|
|
|
314
309
|
var SecondaryButton = function SecondaryButton(props) {
|
|
315
|
-
return /*#__PURE__*/React__default.createElement(ButtonV2, {
|
|
316
|
-
className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400"], props.className)
|
|
317
|
-
|
|
318
|
-
text: props.text,
|
|
319
|
-
icon: props.icon,
|
|
320
|
-
isDisabled: props.isDisabled
|
|
321
|
-
});
|
|
310
|
+
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
311
|
+
className: classNames(["text-blue-800", "bg-white", "border-slate-300", "hover:text-blue-900", "hover:border-slate-400"], props.className)
|
|
312
|
+
}));
|
|
322
313
|
};
|
|
323
314
|
|
|
324
315
|
var TertiaryButton = function TertiaryButton(props) {
|
|
325
|
-
return /*#__PURE__*/React__default.createElement(ButtonV2, {
|
|
326
|
-
className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "shadow-none"], props.className)
|
|
327
|
-
|
|
328
|
-
text: props.text,
|
|
329
|
-
icon: props.icon,
|
|
330
|
-
isDisabled: props.isDisabled
|
|
331
|
-
});
|
|
316
|
+
return /*#__PURE__*/React__default.createElement(ButtonV2, Object.assign({}, props, {
|
|
317
|
+
className: classNames(["text-blue-800", "bg-transparent", "border-transparent", "hover:text-blue-900", "shadow-none"], props.className)
|
|
318
|
+
}));
|
|
332
319
|
};
|
|
333
320
|
|
|
334
321
|
function _extends() {
|