react-restyle-components 0.2.42 → 0.2.44
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/lib/package.json +7 -5
- package/lib/src/App.css +45 -0
- package/lib/src/assets/styles/colors.css +217 -0
- package/lib/src/assets/styles/decorations.css +15 -0
- package/lib/src/assets/styles/fontface.css +17 -0
- package/lib/src/assets/styles/scrollbars.css +70 -0
- package/lib/src/assets/styles/typography.css +3 -0
- package/lib/src/core-components/atoms/button/button.component.d.ts +0 -3
- package/lib/src/core-components/atoms/button/button.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/button/button.component.js +1 -4
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.d.ts +0 -1
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/button/buttonGroup/buttonGroup.component.js +3 -2
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts +0 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/check-box/checkBox.component.js +4 -5
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts +0 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/date-picker/date-picker.component.js +4 -3
- package/lib/src/core-components/atoms/form/form.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/form/form.component.js +37 -13
- package/lib/src/core-components/atoms/grid/grid.component.d.ts +0 -1
- package/lib/src/core-components/atoms/grid/grid.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/grid/grid.component.js +3 -2
- package/lib/src/core-components/atoms/icons/icons.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/icons/icons.component.js +4 -2
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input-otp.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input/input-otp.component.js +3 -2
- package/lib/src/core-components/atoms/input/input-otp.styles.css +35 -0
- package/lib/src/core-components/atoms/input/input.component.d.ts +0 -1
- package/lib/src/core-components/atoms/input/input.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input/input.component.js +4 -3
- package/lib/src/core-components/atoms/input/input.styles.css +35 -0
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/input-dropdown/input-dropdown.component.js +5 -3
- package/lib/src/core-components/atoms/loader/loader.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/radio/radio.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts +0 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.d.ts.map +1 -1
- package/lib/src/core-components/atoms/stepper/stepper.component.js +0 -1
- package/lib/src/core-components/atoms/tabs/tabs.module.css +238 -0
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +2 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts.map +1 -1
- package/lib/src/core-components/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +2 -2
- package/lib/src/core-components/molecules/autocomplete/autocomplete.css +37 -0
- package/lib/src/core-components/molecules/color-picker/color-picker.css +24 -0
- package/lib/src/core-components/molecules/color-picker-modal/color-picker-modal.css +24 -0
- package/lib/src/index.css +110 -0
- package/lib/src/tc.module.css +209 -754
- package/package.json +7 -5
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import React, { useState, useEffect } from 'react';
|
|
3
3
|
import classNames from 'classnames';
|
|
4
|
+
import s from '../../../tc.module.css';
|
|
5
|
+
import { cn } from '../../../core-utils';
|
|
4
6
|
import '../../../tc.module.css';
|
|
5
|
-
export const Label = (props) => (_jsx(_Fragment, { children: _jsx("label", { htmlFor: props.htmlFor, className:
|
|
6
|
-
|
|
7
|
+
export const Label = (props) => (_jsx(_Fragment, { children: _jsx("label", { htmlFor: props.htmlFor, className: cn(s['block'], s['text-3xs'], s['font-medium'], s['mb-1'], {
|
|
8
|
+
[s['text-red-400']]: props.hasError,
|
|
9
|
+
[s['text-current']]: !props.hasError,
|
|
10
|
+
}), style: { ...props.style }, children: props.children }) }));
|
|
11
|
+
export const InputWrapper = (props) => (_jsxs("div", { className: cn(props.className), ref: props.ref, children: [_jsx(Label, { htmlFor: props.id || '', hasError: props.hasError, style: { ...props.style }, children: _jsx("span", { className: cn(s['dark:text-white'], s['w-10']), children: props.label }) }), props.children] }));
|
|
7
12
|
export const Input = React.forwardRef((props, ref) => {
|
|
8
13
|
const handleKeyPress = (e) => {
|
|
9
14
|
const key = e.key;
|
|
@@ -12,7 +17,10 @@ export const Input = React.forwardRef((props, ref) => {
|
|
|
12
17
|
e.preventDefault();
|
|
13
18
|
}
|
|
14
19
|
};
|
|
15
|
-
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), onKeyPress: (e) => handleKeyPress(e), className:
|
|
20
|
+
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), onKeyPress: (e) => handleKeyPress(e), className: cn(props.className, s['leading-4'], s['p-2'], s['dark:bg-boxdark'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], {
|
|
21
|
+
[s['border-red']]: props.hasError,
|
|
22
|
+
[s['border-gray-300']]: !props.hasError,
|
|
23
|
+
}), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), onKeyDown: props.onKeyDown && props.onKeyDown }) }));
|
|
16
24
|
});
|
|
17
25
|
export const InputPassword = React.forwardRef((props, ref) => {
|
|
18
26
|
const [showPassword, setShowPassword] = useState(false);
|
|
@@ -22,9 +30,10 @@ export const InputPassword = React.forwardRef((props, ref) => {
|
|
|
22
30
|
const handleMouseUp = () => {
|
|
23
31
|
setShowPassword(false);
|
|
24
32
|
};
|
|
25
|
-
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsxs("div", { className:
|
|
26
|
-
|
|
27
|
-
|
|
33
|
+
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsxs("div", { className: cn(s['flex'], s['items-center'], s['relative']), children: [_jsx("input", { type: showPassword ? 'text' : 'password', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), className: cn(props.className, s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:bg-boxdark'], {
|
|
34
|
+
[s['border-red']]: props.hasError,
|
|
35
|
+
[s['border-gray-300']]: !props.hasError,
|
|
36
|
+
}), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), onKeyDown: props.onKeyDown && props.onKeyDown }), _jsx("div", { className: cn(s['flex'], s['absolute'], s['right-3']), children: _jsx("svg", { className: cn(s['h-6'], s['dark:bg-boxdark']), fill: "none", xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 576 512", onMouseDown: handleMouseDown, onMouseUp: handleMouseUp, onMouseLeave: handleMouseUp, children: showPassword ? (_jsx("path", { fill: "currentColor", d: "M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z" })) : (_jsx("path", { fill: "currentColor", d: "M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z" })) }) })] }) }));
|
|
28
37
|
});
|
|
29
38
|
export const Input1 = React.forwardRef((props, ref) => {
|
|
30
39
|
const handleKeyPress = (e) => {
|
|
@@ -34,7 +43,10 @@ export const Input1 = React.forwardRef((props, ref) => {
|
|
|
34
43
|
e.preventDefault();
|
|
35
44
|
}
|
|
36
45
|
};
|
|
37
|
-
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), onKeyPress: (e) => handleKeyPress(e), className:
|
|
46
|
+
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => props.onChange && props.onChange(e.target.value), onKeyPress: (e) => handleKeyPress(e), className: cn(props.className, s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:text-black'], {
|
|
47
|
+
[s['border-red']]: props.hasError,
|
|
48
|
+
[s['border-gray-300']]: !props.hasError,
|
|
49
|
+
}), onBlur: (e) => props.onBlur && props.onBlur(e), onKeyDown: props.onKeyDown }) }));
|
|
38
50
|
});
|
|
39
51
|
export const Input2 = React.forwardRef((props, ref) => {
|
|
40
52
|
const [isBlur, setIsBlur] = useState(true);
|
|
@@ -51,7 +63,10 @@ export const Input2 = React.forwardRef((props, ref) => {
|
|
|
51
63
|
return (_jsx(InputWrapper, { label: props.label, id: props.id, hasError: props.hasError, style: props.wrapperStyle, className: props.labelClassName, children: _jsx("input", { type: props.type || 'text', id: props.id, ref: props.inputRef, "data-testid": "INPT", autoFocus: props?.isAutoFocus || false, name: props.name, style: props.style, defaultValue: props.defaultValue, placeholder: props.placeholder, required: props.required || false, disabled: props.disabled || false, autoComplete: "given-name", maxLength: props.maxLength, value: props.value, onChange: (e) => {
|
|
52
64
|
setIsBlur(true);
|
|
53
65
|
props.onChange && props.onChange(e.target.value);
|
|
54
|
-
}, onKeyPress: (e) => handleKeyPress(e), className:
|
|
66
|
+
}, onKeyPress: (e) => handleKeyPress(e), className: cn(props.className, s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:text-black'], {
|
|
67
|
+
[s['border-red']]: props.hasError,
|
|
68
|
+
[s['border-gray-300']]: !props.hasError,
|
|
69
|
+
}), onKeyDown: (e) => {
|
|
55
70
|
if (e.keyCode == 13) {
|
|
56
71
|
setIsBlur(false);
|
|
57
72
|
props.onBlur && props.onBlur(e.target.value);
|
|
@@ -61,15 +76,24 @@ export const Input2 = React.forwardRef((props, ref) => {
|
|
|
61
76
|
handleBlur(e.target.value);
|
|
62
77
|
} }) }));
|
|
63
78
|
});
|
|
64
|
-
export const MultilineInput = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, className: props.className, children: _jsx("textarea", { id: props.id, autoComplete: "given-name", value: props.value, disabled: props.disabled, style: props.style, rows: props.rows, onKeyUp: props.onKeyUp && props.onKeyUp, placeholder: props.placeholder, onChange: (e) => props.onChange && props.onChange(e.target.value), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), className:
|
|
65
|
-
|
|
79
|
+
export const MultilineInput = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, className: props.className, children: _jsx("textarea", { id: props.id, autoComplete: "given-name", value: props.value, disabled: props.disabled, style: props.style, rows: props.rows, onKeyUp: props.onKeyUp && props.onKeyUp, placeholder: props.placeholder, onChange: (e) => props.onChange && props.onChange(e.target.value), onBlur: (e) => props.onBlur && props.onBlur(e.target.value), className: cn(s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], s['dark:bg-boxdark'], {
|
|
80
|
+
[s['border-red']]: props.hasError,
|
|
81
|
+
[s['border-gray-300']]: !props.hasError,
|
|
82
|
+
}), defaultValue: props.defaultValue }) }));
|
|
83
|
+
export const InputRadio = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, style: props.labelStyle, children: props.values?.map((item, key) => (_jsxs("div", { className: cn(s['flex'], s['items-center'], s['gap-2']), onClick: () => {
|
|
66
84
|
props.onChange && props.onChange(item.value);
|
|
67
|
-
}, children: [_jsx("input", { type: "radio", id: props.id, name: props.name, value: item.value, checked: item.value == props.value ? true : false, onChange: () => props.onChange && props.onChange(item.value), className:
|
|
68
|
-
export const InputDate = ({ name, value, placeholder, use12Hours = true, label, id, hasError, disabled, format, onChange, onFocusRemove, }) => (_jsx(InputWrapper, { label: label, id: id, hasError: hasError, children: _jsx("input", { type: "date", id: id, name: name, disabled: disabled || false, value: value, onChange: (e) => onChange && onChange(e), className:
|
|
85
|
+
}, children: [_jsx("input", { type: "radio", id: props.id, name: props.name, value: item.value, checked: item.value == props.value ? true : false, onChange: () => props.onChange && props.onChange(item.value), className: cn(s['w-4'], s['h-4'], s['text-blue-600'], s['bg-gray-100'], s['border-gray-300'], s['focus:ring-blue-500'], s['dark:focus:ring-blue-600'], s['dark:ring-offset-gray-800'], s['focus:ring-2'], s['dark:bg-gray-700'], s['dark:border-gray-600']) }, key), _jsx(Label, { htmlFor: props.id || '', style: { marginTop: 6 }, children: item.label })] }, key))) }));
|
|
86
|
+
export const InputDate = ({ name, value, placeholder, use12Hours = true, label, id, hasError, disabled, format, onChange, onFocusRemove, }) => (_jsx(InputWrapper, { label: label, id: id, hasError: hasError, children: _jsx("input", { type: "date", id: id, name: name, disabled: disabled || false, value: value, onChange: (e) => onChange && onChange(e), className: cn(s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], {
|
|
87
|
+
[s['border-red']]: hasError,
|
|
88
|
+
[s['border-gray-300']]: !hasError,
|
|
89
|
+
}) }) }));
|
|
69
90
|
export const CheckBox = (props) => {
|
|
70
91
|
return (_jsxs("div", { children: [_jsx("input", { onClick: props.handleCheckChieldElement, type: "checkbox", checked: props.isChecked, value: props.value }, props.id), ' ', props.value] }));
|
|
71
92
|
};
|
|
72
|
-
export const InputFile = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, children: _jsx("input", { type: "file", id: props.id, name: props.name, disabled: props.disabled || false, accept: props.accept, value: props.value, onChange: (e) => props.onChange && props.onChange(e), className:
|
|
93
|
+
export const InputFile = (props) => (_jsx(InputWrapper, { label: props.label, id: props.id, children: _jsx("input", { type: "file", id: props.id, name: props.name, disabled: props.disabled || false, accept: props.accept, value: props.value, onChange: (e) => props.onChange && props.onChange(e), className: cn(s['leading-4'], s['p-2'], s['focus:outline-none'], s['focus:ring'], s['block'], s['w-full'], s['shadow-sm'], s['sm:text-base'], s['border-2'], s['rounded-md'], {
|
|
94
|
+
[s['border-red']]: props.hasError,
|
|
95
|
+
[s['border-gray-300']]: !props.hasError,
|
|
96
|
+
}), multiple: props.multiple }) }));
|
|
73
97
|
export const Toggle = (props) => {
|
|
74
98
|
const [toggle, setToggle] = useState(props.value);
|
|
75
99
|
const { onChange, disabled, className, isToggleLabel = true } = props;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grid.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/grid/grid.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"grid.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/grid/grid.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,SAAS;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,iBAAiB,CAAC,SAAS,CAInD,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import '../../../tc.module.css';
|
|
3
|
-
|
|
2
|
+
import s from '../../../tc.module.css';
|
|
3
|
+
import { cn } from '../../../core-utils';
|
|
4
|
+
export const Grid = (props) => (_jsx("div", { className: cn(s[`xl:grid`], s[`sm:inline-block`], s[`grid-cols-${props.cols || 1}`], s[`gap-3`]), children: props.children }));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/icons/icons.component.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"icons.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/icons/icons.component.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAC,aAAa,EAAC,MAAM,iBAAiB,CAAC;AAI9C,OAAO,wBAAwB,CAAC;AAEhC,UAAU,SAAS;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;CACtB;AAGD,eAAO,MAAM,IAAI,0DAMd,SAAS,KAAG,WA4Cd,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { Suspense } from 'react';
|
|
|
3
3
|
import _ from 'lodash';
|
|
4
4
|
import { Tooltip } from '../tooltip/tooltip.component';
|
|
5
5
|
import loadable from '@loadable/component';
|
|
6
|
+
import s from '../../../tc.module.css';
|
|
7
|
+
import { cn } from '../../../core-utils';
|
|
6
8
|
import '../../../tc.module.css';
|
|
7
9
|
let lib = 'md';
|
|
8
10
|
export const Icon = ({ nameIcon, propsIcon, tooltip = '', isDisable = false, onClick, }) => {
|
|
@@ -24,10 +26,10 @@ export const Icon = ({ nameIcon, propsIcon, tooltip = '', isDisable = false, onC
|
|
|
24
26
|
ElementIcon = loadable(() => import('react-icons/fa'), {
|
|
25
27
|
resolveComponent: (el) => el[nameIcon] != null ? el[nameIcon] : el[Object.keys(el.default)[0]],
|
|
26
28
|
});
|
|
27
|
-
return (_jsx("div", { onClick: () => {
|
|
29
|
+
return (_jsx("div", { className: cn(s.iconContainer), onClick: () => {
|
|
28
30
|
if (!isDisable)
|
|
29
31
|
onClick && onClick();
|
|
30
|
-
}, children: !_.isEmpty(tooltip) ? (_jsx(Tooltip, { content: tooltip, children: _jsx(ElementIcon, { ...iconProps }) })) : (_jsx(Suspense, { fallback: _jsx("div", { children: "Loading..." }), children: _jsx(ElementIcon, { ...iconProps }) })) }));
|
|
32
|
+
}, children: !_.isEmpty(tooltip) ? (_jsx(Tooltip, { content: tooltip, children: _jsx(ElementIcon, { ...iconProps, className: cn(s.icon) }) })) : (_jsx(Suspense, { fallback: _jsx("div", { children: "Loading..." }), children: _jsx(ElementIcon, { ...iconProps, className: cn(s.icon) }) })) }));
|
|
31
33
|
}
|
|
32
34
|
catch (error) {
|
|
33
35
|
return _jsx(_Fragment, {});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input/input-otp.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"input-otp.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input/input-otp.component.tsx"],"names":[],"mappings":"AACA,OAAO,KAA0B,MAAM,OAAO,CAAC;AAI/C,OAAO,wBAAwB,CAAC;AAChC,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAE/B,YAAY,EAAE,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACrE;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAyFhD,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
import { useEffect, useRef } from 'react';
|
|
4
|
-
import '
|
|
4
|
+
import s from '../../../tc.module.css';
|
|
5
|
+
import { cn } from '../../../core-utils';
|
|
5
6
|
import '../../../tc.module.css';
|
|
6
7
|
export const InputOtp = ({ className, pin, onPinChanged, }) => {
|
|
7
8
|
const pinLength = 6;
|
|
@@ -45,7 +46,7 @@ export const InputOtp = ({ className, pin, onPinChanged, }) => {
|
|
|
45
46
|
onPinChanged(undefined, index);
|
|
46
47
|
}
|
|
47
48
|
};
|
|
48
|
-
return (_jsx("div", { className:
|
|
49
|
+
return (_jsx("div", { className: cn(className, s['relative']), children: _jsx("div", { className: cn(s['flex'], s['space-x-1'], s['bg-background-secondary'], s['rounded-lg'], s['outline-offset-8']), children: Array.from({ length: pinLength }, (_, index) => (_jsx("input", { "data-testid": "onPinChanged", className: cn(s['pt-3'], s['pb-2'], s['block'], s['w-full'], s['px-0'], s['text-5xl'], s['font-extrabold'], s['border-b-0'], s['text-orange'], s['mt-0'], s['bg-transparent'], s['text-center'], s['z-20'], s['appearance-none'], s['focus:outline-none'], s['font-arimaRegular']), onKeyDown: (event) => onKeyDown(event, index), onMouseUp: () => {
|
|
49
50
|
if (pin.join('').length <= 0) {
|
|
50
51
|
changePinFocus(0);
|
|
51
52
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.-z-1 {
|
|
2
|
+
z-index: -1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.origin-0 {
|
|
6
|
+
transform-origin: 0%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
input:focus ~ label,
|
|
10
|
+
input:not(:placeholder-shown) ~ label,
|
|
11
|
+
textarea:focus ~ label,
|
|
12
|
+
textarea:not(:placeholder-shown) ~ label,
|
|
13
|
+
select:focus ~ label,
|
|
14
|
+
select:not([value=""]):valid ~ label {
|
|
15
|
+
/* @apply transform; scale-75; -translate-y-6; */
|
|
16
|
+
--tw-translate-x: 0;
|
|
17
|
+
--tw-translate-y: 0;
|
|
18
|
+
--tw-rotate: 0;
|
|
19
|
+
--tw-skew-x: 0;
|
|
20
|
+
--tw-skew-y: 0;
|
|
21
|
+
transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))
|
|
22
|
+
rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
|
|
23
|
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
24
|
+
--tw-scale-x: 0.75;
|
|
25
|
+
--tw-scale-y: 0.75;
|
|
26
|
+
--tw-translate-y: -1.5rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input:focus ~ label,
|
|
30
|
+
select:focus ~ label {
|
|
31
|
+
/* @apply text-black; left-0; */
|
|
32
|
+
--tw-text-opacity: 1;
|
|
33
|
+
color: "#696969";
|
|
34
|
+
left: 0px;
|
|
35
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input/input.component.tsx"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"input.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input/input.component.tsx"],"names":[],"mappings":"AAEA,OAAO,oBAAoB,CAAC;AAI5B,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,KAAK,GAAG,IAAI,CAAC;IAC5B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC/B,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAC/B;AAED,eAAO,MAAM,KAAK,wIAaf,UAAU,4CAyCZ,CAAC"}
|
|
@@ -2,14 +2,15 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
/* eslint-disable no-console */
|
|
3
3
|
import { useState } from 'react';
|
|
4
4
|
import './input.styles.css';
|
|
5
|
-
import '../../../tc.module.css';
|
|
5
|
+
import s from '../../../tc.module.css';
|
|
6
|
+
import { cn } from '../../../core-utils';
|
|
6
7
|
export const Input = ({ title, defaultValue, className, disable, hasError, errorMsg, defaultMsg, inputStyle, autoComplete, maxlength = 40, onChange, onBlur, }) => {
|
|
7
8
|
const [value, setValue] = useState(defaultValue);
|
|
8
9
|
const onKeyUpValue = (event) => {
|
|
9
10
|
onChange(event.target.value);
|
|
10
11
|
};
|
|
11
|
-
return (_jsxs("div", { className:
|
|
12
|
+
return (_jsxs("div", { className: cn(className, s.relative), children: [_jsx("input", { "data-testid": "inputElement", type: "text", name: "name", value: value, placeholder: " ", disabled: disable, className: cn(s['pt-3'], s['pb-2'], s['bg-transparent'], s['block'], s['w-full'], s['px-0'], s['mt-0'], s['rounded-none'], s['border-0'], s['border-b'], s['appearance-none'], s['focus:outline-none'], s['focus:ring-0'], s['focus:border-gray-secondary'], s['border-gray-secondary'], s['font-arimaRegular'], inputStyle), onChange: (e) => {
|
|
12
13
|
setValue(e.target.value);
|
|
13
14
|
onChange && onChange(e.target.value);
|
|
14
|
-
}, onKeyUp: onKeyUpValue, onBlur: (e) => onBlur && onBlur(e.target.value), autoComplete: autoComplete, maxLength: maxlength }), _jsx("label", { className:
|
|
15
|
+
}, onKeyUp: onKeyUpValue, onBlur: (e) => onBlur && onBlur(e.target.value), autoComplete: autoComplete, maxLength: maxlength }), _jsx("label", { className: cn(s['absolute'], s['duration-300'], s['top-3'], s['-z-1'], s['origin-0'], s['text-gray-dark-secondary'], s['font-arimaRegular'], s['text-md']), children: title }), hasError && hasError?.type !== 'required' && (_jsx("span", { className: cn(s['text-sm'], s['text-red'], s['text-4xs']), id: "error", children: `${errorMsg || ''}` })), (!hasError || hasError?.type === 'required') && (_jsx("span", { className: cn(s['text-sm'], s['text-4xs']), id: "error", children: `${defaultMsg || ''}` }))] }));
|
|
15
16
|
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.-z-1 {
|
|
2
|
+
z-index: -1;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.origin-0 {
|
|
6
|
+
transform-origin: 0%;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
input:focus ~ label,
|
|
10
|
+
input:not(:placeholder-shown) ~ label,
|
|
11
|
+
textarea:focus ~ label,
|
|
12
|
+
textarea:not(:placeholder-shown) ~ label,
|
|
13
|
+
select:focus ~ label,
|
|
14
|
+
select:not([value=""]):valid ~ label {
|
|
15
|
+
/* @apply transform; scale-75; -translate-y-6; */
|
|
16
|
+
--tw-translate-x: 0;
|
|
17
|
+
--tw-translate-y: 0;
|
|
18
|
+
--tw-rotate: 0;
|
|
19
|
+
--tw-skew-x: 0;
|
|
20
|
+
--tw-skew-y: 0;
|
|
21
|
+
transform: translateX(var(--tw-translate-x)) translateY(var(--tw-translate-y))
|
|
22
|
+
rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y))
|
|
23
|
+
scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
24
|
+
--tw-scale-x: 0.75;
|
|
25
|
+
--tw-scale-y: 0.75;
|
|
26
|
+
--tw-translate-y: -1.5rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
input:focus ~ label,
|
|
30
|
+
select:focus ~ label {
|
|
31
|
+
/* @apply text-black; left-0; */
|
|
32
|
+
--tw-text-opacity: 1;
|
|
33
|
+
color: "#696969";
|
|
34
|
+
left: 0px;
|
|
35
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-dropdown.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input-dropdown/input-dropdown.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-dropdown.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/input-dropdown/input-dropdown.component.tsx"],"names":[],"mappings":"AAKA,OAAO,wBAAwB,CAAC;AAChC,UAAU,kBAAkB;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,aAAa,qDAMvB,kBAAkB,4CA0EpB,CAAC"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState, useEffect, useRef } from 'react';
|
|
3
3
|
import { UpArrow, DownArrow } from '../../../library/assets/svg';
|
|
4
|
+
import s from '../../../tc.module.css';
|
|
5
|
+
import { cn } from '../../../core-utils';
|
|
4
6
|
import '../../../tc.module.css';
|
|
5
7
|
export const InputDropdown = ({ items, className, hasError, title, onChange, }) => {
|
|
6
8
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -22,10 +24,10 @@ export const InputDropdown = ({ items, className, hasError, title, onChange, })
|
|
|
22
24
|
};
|
|
23
25
|
const wrapperRef = useRef(null);
|
|
24
26
|
useOutsideAlerter(wrapperRef);
|
|
25
|
-
return (_jsxs("div", { className:
|
|
27
|
+
return (_jsxs("div", { className: cn(className, s['relative']), children: [_jsxs("div", { className: cn(s['flex'], s['flex-row'], s['items-center']), children: [_jsx("input", { type: "text", name: "name", placeholder: title, value: value, className: cn(s['pt-3'], s['pb-2'], s['w-full'], s['px-0'], s['mt-0'], s['bg-transparent'], s['border-gray-secondary'], s['border-0'], s['border-b'], s['appearance-none'], s['focus:outline-none'], s['focus:ring-0'], s['font-arimaRegular'], s['text-md']), onClick: () => {
|
|
26
28
|
setIsOpen(!isOpen);
|
|
27
|
-
}, onChange: (event) => onChange && onChange(event.target.value) }), !isOpen && (_jsx("img", { src: UpArrow, className:
|
|
29
|
+
}, onChange: (event) => onChange && onChange(event.target.value) }), !isOpen && (_jsx("img", { src: UpArrow, className: cn(s['absolute'], s['h-4'], s['w-4'], s['right-0']) })), isOpen && (_jsx("img", { src: DownArrow, className: cn(s['absolute'], s['h-4'], s['w-4'], s['right-0']) }))] }), isOpen && (_jsx("div", { className: cn(s['z-10'], s['w-full'], s['absolute'], s['text-base'], s['list-none'], s['bg-white'], s['rounded'], s['divide-y'], s['divide-gray-100'], s['shadow'], s['dark:bg-gray-700']), ref: wrapperRef, children: _jsx("ul", { className: s['py-1'], children: items.map((item, index) => (_jsx("li", { className: cn(s['block'], s['py-2'], s['px-4'], s['text-md'], s['hover:bg-gray-100'], s['dark:hover:bg-gray-600'], s['dark:text-gray-200'], s['font-arimaRegular']), onClick: () => {
|
|
28
30
|
setValue(item);
|
|
29
31
|
setIsOpen(!isOpen);
|
|
30
|
-
}, children: item }, index))) }) })), hasError && (_jsx("span", { className:
|
|
32
|
+
}, children: item }, index))) }) })), hasError && (_jsx("span", { className: cn(s['text-primaryCharcoal'], s['text-4xs']), id: "error", children: `${title} is required` }))] }));
|
|
31
33
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loader.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/loader/loader.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"loader.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/loader/loader.component.tsx"],"names":[],"mappings":"AAKA,OAAO,wBAAwB,CAAC;AAEhC,eAAO,MAAM,MAAM,+CAMlB,CAAC;AAEF,eAAO,MAAM,WAAW,+CAkEvB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/radio/radio.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/radio/radio.component.tsx"],"names":[],"mappings":"AAMA,OAAO,wBAAwB,CAAC;AAChC,UAAU,UAAU;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,KAAA,KAAK,IAAI,CAAC;CAC1B;AAED,eAAO,MAAM,KAAK,0CAKf,UAAU,4CAgCZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stepper.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stepper.component.d.ts","sourceRoot":"","sources":["../../../../../src/core-components/atoms/stepper/stepper.component.tsx"],"names":[],"mappings":"AAIA,UAAU,YAAY;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,CAAC,WAAW,KAAA,EAAE,KAAK,KAAA,KAAK,IAAI,CAAC;CAC3C;AAED,eAAO,MAAM,OAAO,oDAKjB,YAAY,4CAyDd,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import '../../../tc.module.css';
|
|
3
2
|
export const Stepper = ({ className = '', steps, currentStep = 1, onStepClick, }) => {
|
|
4
3
|
const finalClass = `${className} w-full px-4 sm:px-8`;
|
|
5
4
|
const progressClass = 'absolute my-4 top-1/2 left-0 h-0.5 transform -translate-y-1/2 bg-orange transition-width ease-in-out duration-500';
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
.flex {
|
|
2
|
+
display: flex;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.flex-col {
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
}
|
|
8
|
+
.w-full {
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
.border {
|
|
12
|
+
border-width: 1px;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.border-b {
|
|
16
|
+
border-bottom-width: 1px;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.border-t {
|
|
20
|
+
border-top-width: 1px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.border-solid {
|
|
24
|
+
border-style: solid;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.border-none {
|
|
28
|
+
border-style: none;
|
|
29
|
+
}
|
|
30
|
+
.py-2 {
|
|
31
|
+
padding-top: 0.5rem;
|
|
32
|
+
padding-bottom: 0.5rem;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.pb-2 {
|
|
36
|
+
padding-bottom: 0.5rem;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.pt-1 {
|
|
40
|
+
padding-top: 0.25rem;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.pt-2 {
|
|
44
|
+
padding-top: 0.5rem;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.pt-3 {
|
|
48
|
+
padding-top: 0.75rem;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.text-center {
|
|
52
|
+
text-align: center;
|
|
53
|
+
}
|
|
54
|
+
.rounded {
|
|
55
|
+
border-radius: 0.25rem;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.rounded-100px {
|
|
59
|
+
border-radius: 100px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.rounded-full {
|
|
63
|
+
border-radius: 9999px;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.rounded-lg {
|
|
67
|
+
border-radius: 0.5rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.rounded-md {
|
|
71
|
+
border-radius: 0.375rem;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.rounded-none {
|
|
75
|
+
border-radius: 0px;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.rounded-sm {
|
|
79
|
+
border-radius: 0.125rem;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.rounded-b {
|
|
83
|
+
border-bottom-right-radius: 0.25rem;
|
|
84
|
+
border-bottom-left-radius: 0.25rem;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.rounded-b-md {
|
|
88
|
+
border-bottom-right-radius: 0.375rem;
|
|
89
|
+
border-bottom-left-radius: 0.375rem;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.rounded-t {
|
|
93
|
+
border-top-left-radius: 0.25rem;
|
|
94
|
+
border-top-right-radius: 0.25rem;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.rounded-t-md {
|
|
98
|
+
border-top-left-radius: 0.375rem;
|
|
99
|
+
border-top-right-radius: 0.375rem;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.border {
|
|
103
|
+
border-width: 1px;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.border-b {
|
|
107
|
+
border-bottom-width: 1px;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.border-t {
|
|
111
|
+
border-top-width: 1px;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.border-solid {
|
|
115
|
+
border-style: solid;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
.border-none {
|
|
119
|
+
border-style: none;
|
|
120
|
+
}
|
|
121
|
+
.bg-blue-500 {
|
|
122
|
+
--tw-bg-opacity: 1;
|
|
123
|
+
background-color: rgb(59 130 246 / var(--tw-bg-opacity));
|
|
124
|
+
}
|
|
125
|
+
.cursor-pointer {
|
|
126
|
+
cursor: pointer;
|
|
127
|
+
}
|
|
128
|
+
.text-white {
|
|
129
|
+
--tw-text-opacity: 1;
|
|
130
|
+
color: rgb(255 255 255 / var(--tw-text-opacity));
|
|
131
|
+
}
|
|
132
|
+
.border-solid {
|
|
133
|
+
border-style: solid;
|
|
134
|
+
}
|
|
135
|
+
.border-slate-600 {
|
|
136
|
+
--tw-border-opacity: 1;
|
|
137
|
+
border-color: rgb(71 85 105 / var(--tw-border-opacity));
|
|
138
|
+
}
|
|
139
|
+
.rounded-b-md {
|
|
140
|
+
border-bottom-right-radius: 0.375rem;
|
|
141
|
+
border-bottom-left-radius: 0.375rem;
|
|
142
|
+
}
|
|
143
|
+
.p-1 {
|
|
144
|
+
padding: 0.25rem;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
.p-2 {
|
|
148
|
+
padding: 0.5rem;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.p-4 {
|
|
152
|
+
padding: 1rem;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.px-0 {
|
|
156
|
+
padding-left: 0px;
|
|
157
|
+
padding-right: 0px;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.px-2 {
|
|
161
|
+
padding-left: 0.5rem;
|
|
162
|
+
padding-right: 0.5rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.px-3 {
|
|
166
|
+
padding-left: 0.75rem;
|
|
167
|
+
padding-right: 0.75rem;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.px-4 {
|
|
171
|
+
padding-left: 1rem;
|
|
172
|
+
padding-right: 1rem;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.py-1 {
|
|
176
|
+
padding-top: 0.25rem;
|
|
177
|
+
padding-bottom: 0.25rem;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.py-2 {
|
|
181
|
+
padding-top: 0.5rem;
|
|
182
|
+
padding-bottom: 0.5rem;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.pb-2 {
|
|
186
|
+
padding-bottom: 0.5rem;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.pt-1 {
|
|
190
|
+
padding-top: 0.25rem;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.pt-2 {
|
|
194
|
+
padding-top: 0.5rem;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.pt-3 {
|
|
198
|
+
padding-top: 0.75rem;
|
|
199
|
+
}
|
|
200
|
+
.ml-1 {
|
|
201
|
+
margin-left: 0.25rem;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.ml-2 {
|
|
205
|
+
margin-left: 0.5rem;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.ml-4 {
|
|
209
|
+
margin-left: 1rem;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.ml-6 {
|
|
213
|
+
margin-left: 1.5rem;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.mr-1 {
|
|
217
|
+
margin-right: 0.25rem;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.mr-2 {
|
|
221
|
+
margin-right: 0.5rem;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.mr-3 {
|
|
225
|
+
margin-right: 0.75rem;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.mt-0 {
|
|
229
|
+
margin-top: 0px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.mt-1 {
|
|
233
|
+
margin-top: 0.25rem;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.mt-4 {
|
|
237
|
+
margin-top: 1rem;
|
|
238
|
+
}
|