@bosonprotocol/react-kit 0.31.1-alpha.0 → 0.32.0-alpha.0
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/cjs/components/buttons/BaseButton.d.ts +27 -0
- package/dist/cjs/components/buttons/BaseButton.d.ts.map +1 -0
- package/dist/cjs/components/buttons/BaseButton.js +154 -0
- package/dist/cjs/components/buttons/BaseButton.js.map +1 -0
- package/dist/cjs/components/form/BaseInput.d.ts +17 -0
- package/dist/cjs/components/form/BaseInput.d.ts.map +1 -0
- package/dist/cjs/components/form/BaseInput.js +88 -0
- package/dist/cjs/components/form/BaseInput.js.map +1 -0
- package/dist/cjs/components/form/BaseTagsInput.d.ts +8 -0
- package/dist/cjs/components/form/BaseTagsInput.d.ts.map +1 -0
- package/dist/cjs/components/form/{TagsInput.js → BaseTagsInput.js} +24 -16
- package/dist/cjs/components/form/BaseTagsInput.js.map +1 -0
- package/dist/cjs/components/form/ClearButton.d.ts +14 -0
- package/dist/cjs/components/form/ClearButton.d.ts.map +1 -0
- package/dist/cjs/components/form/ClearButton.js +28 -0
- package/dist/cjs/components/form/ClearButton.js.map +1 -0
- package/dist/cjs/components/form/Field.styles.d.ts +45 -7
- package/dist/cjs/components/form/Field.styles.d.ts.map +1 -1
- package/dist/cjs/components/form/Field.styles.js +44 -36
- package/dist/cjs/components/form/Field.styles.js.map +1 -1
- package/dist/cjs/components/form/Input.d.ts +3 -2
- package/dist/cjs/components/form/Input.d.ts.map +1 -1
- package/dist/cjs/components/form/Input.js +37 -24
- package/dist/cjs/components/form/Input.js.map +1 -1
- package/dist/cjs/components/form/Phone.js +1 -1
- package/dist/cjs/components/form/Phone.js.map +1 -1
- package/dist/cjs/components/form/index.d.ts +3 -2
- package/dist/cjs/components/form/index.d.ts.map +1 -1
- package/dist/cjs/components/form/index.js +17 -3
- package/dist/cjs/components/form/index.js.map +1 -1
- package/dist/cjs/components/form/styles/{TagsInput.styles.d.ts → BaseTagsInput.styles.d.ts} +6 -2
- package/dist/cjs/components/form/styles/BaseTagsInput.styles.d.ts.map +1 -0
- package/dist/cjs/components/form/styles/BaseTagsInput.styles.js +76 -0
- package/dist/cjs/components/form/styles/BaseTagsInput.styles.js.map +1 -0
- package/dist/cjs/components/styles/GlobalStyle.d.ts +1 -14
- package/dist/cjs/components/styles/GlobalStyle.d.ts.map +1 -1
- package/dist/cjs/components/styles/GlobalStyle.js +14 -41
- package/dist/cjs/components/styles/GlobalStyle.js.map +1 -1
- package/dist/cjs/components/ui/ThemedButton.d.ts.map +1 -1
- package/dist/cjs/components/ui/ThemedButton.js +3 -97
- package/dist/cjs/components/ui/ThemedButton.js.map +1 -1
- package/dist/cjs/components/ui/styles.d.ts.map +1 -1
- package/dist/cjs/components/ui/styles.js +5 -2
- package/dist/cjs/components/ui/styles.js.map +1 -1
- package/dist/cjs/hooks/useCurrentSellers.js.map +1 -1
- package/dist/cjs/index.d.ts +2 -0
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/buttons/BaseButton.d.ts +27 -0
- package/dist/esm/components/buttons/BaseButton.d.ts.map +1 -0
- package/dist/esm/components/buttons/BaseButton.js +107 -0
- package/dist/esm/components/buttons/BaseButton.js.map +1 -0
- package/dist/esm/components/form/BaseInput.d.ts +17 -0
- package/dist/esm/components/form/BaseInput.d.ts.map +1 -0
- package/dist/esm/components/form/BaseInput.js +47 -0
- package/dist/esm/components/form/BaseInput.js.map +1 -0
- package/dist/esm/components/form/BaseTagsInput.d.ts +8 -0
- package/dist/esm/components/form/BaseTagsInput.d.ts.map +1 -0
- package/dist/esm/components/form/{TagsInput.js → BaseTagsInput.js} +22 -17
- package/dist/esm/components/form/BaseTagsInput.js.map +1 -0
- package/dist/esm/components/form/ClearButton.d.ts +14 -0
- package/dist/esm/components/form/ClearButton.d.ts.map +1 -0
- package/dist/esm/components/form/ClearButton.js +22 -0
- package/dist/esm/components/form/ClearButton.js.map +1 -0
- package/dist/esm/components/form/Field.styles.d.ts +45 -7
- package/dist/esm/components/form/Field.styles.d.ts.map +1 -1
- package/dist/esm/components/form/Field.styles.js +44 -36
- package/dist/esm/components/form/Field.styles.js.map +1 -1
- package/dist/esm/components/form/Input.d.ts +3 -2
- package/dist/esm/components/form/Input.d.ts.map +1 -1
- package/dist/esm/components/form/Input.js +37 -12
- package/dist/esm/components/form/Input.js.map +1 -1
- package/dist/esm/components/form/Phone.js +1 -1
- package/dist/esm/components/form/Phone.js.map +1 -1
- package/dist/esm/components/form/index.d.ts +3 -2
- package/dist/esm/components/form/index.d.ts.map +1 -1
- package/dist/esm/components/form/index.js +2 -1
- package/dist/esm/components/form/index.js.map +1 -1
- package/dist/esm/components/form/styles/{TagsInput.styles.d.ts → BaseTagsInput.styles.d.ts} +6 -2
- package/dist/esm/components/form/styles/BaseTagsInput.styles.d.ts.map +1 -0
- package/dist/esm/components/form/styles/{TagsInput.styles.js → BaseTagsInput.styles.js} +14 -4
- package/dist/esm/components/form/styles/BaseTagsInput.styles.js.map +1 -0
- package/dist/esm/components/styles/GlobalStyle.d.ts +1 -14
- package/dist/esm/components/styles/GlobalStyle.d.ts.map +1 -1
- package/dist/esm/components/styles/GlobalStyle.js +14 -41
- package/dist/esm/components/styles/GlobalStyle.js.map +1 -1
- package/dist/esm/components/ui/ThemedButton.d.ts.map +1 -1
- package/dist/esm/components/ui/ThemedButton.js +4 -98
- package/dist/esm/components/ui/ThemedButton.js.map +1 -1
- package/dist/esm/components/ui/styles.d.ts.map +1 -1
- package/dist/esm/components/ui/styles.js +5 -2
- package/dist/esm/components/ui/styles.js.map +1 -1
- package/dist/esm/hooks/useCurrentSellers.js.map +1 -1
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/buttons/BaseButton.tsx +181 -0
- package/src/components/form/BaseInput.tsx +88 -0
- package/src/components/form/{TagsInput.tsx → BaseTagsInput.tsx} +46 -24
- package/src/components/form/ClearButton.tsx +39 -0
- package/src/components/form/Field.styles.ts +83 -40
- package/src/components/form/Input.tsx +42 -21
- package/src/components/form/Phone.tsx +1 -1
- package/src/components/form/index.ts +3 -2
- package/src/components/form/styles/{TagsInput.styles.ts → BaseTagsInput.styles.ts} +18 -4
- package/src/components/styles/GlobalStyle.tsx +15 -71
- package/src/components/ui/ThemedButton.tsx +8 -145
- package/src/components/ui/styles.ts +5 -2
- package/src/hooks/useCurrentSellers.ts +8 -8
- package/src/index.tsx +2 -0
- package/src/stories/buttons/button.stories.tsx +84 -62
- package/src/stories/form/Input.stories.tsx +67 -0
- package/src/stories/ui/ThemedButton.stories.tsx +79 -52
- package/dist/cjs/components/form/TagsInput.d.ts +0 -4
- package/dist/cjs/components/form/TagsInput.d.ts.map +0 -1
- package/dist/cjs/components/form/TagsInput.js.map +0 -1
- package/dist/cjs/components/form/styles/TagsInput.styles.d.ts.map +0 -1
- package/dist/cjs/components/form/styles/TagsInput.styles.js +0 -46
- package/dist/cjs/components/form/styles/TagsInput.styles.js.map +0 -1
- package/dist/cjs/global.d.ts +0 -5
- package/dist/cjs/global.d.ts.map +0 -1
- package/dist/cjs/global.js +0 -44
- package/dist/cjs/global.js.map +0 -1
- package/dist/esm/components/form/TagsInput.d.ts +0 -4
- package/dist/esm/components/form/TagsInput.d.ts.map +0 -1
- package/dist/esm/components/form/TagsInput.js.map +0 -1
- package/dist/esm/components/form/styles/TagsInput.styles.d.ts.map +0 -1
- package/dist/esm/components/form/styles/TagsInput.styles.js.map +0 -1
- package/dist/esm/global.d.ts +0 -5
- package/dist/esm/global.d.ts.map +0 -1
- package/dist/esm/global.js +0 -41
- package/dist/esm/global.js.map +0 -1
- package/src/global.ts +0 -42
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React, { ButtonHTMLAttributes, ReactNode } from "react";
|
|
2
|
+
import { DefaultTheme } from "styled-components";
|
|
3
|
+
import { ButtonSize } from "../ui/buttonSize";
|
|
4
|
+
type Theme = DefaultTheme;
|
|
5
|
+
type ButtonSizeProp = "small" | "regular" | "large" | ButtonSize;
|
|
6
|
+
export type BaseButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
9
|
+
size?: ButtonSizeProp;
|
|
10
|
+
theme: Theme;
|
|
11
|
+
fill?: boolean;
|
|
12
|
+
step?: number;
|
|
13
|
+
isLoading?: boolean;
|
|
14
|
+
tooltip?: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const BaseButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
17
|
+
children?: React.ReactNode;
|
|
18
|
+
onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
|
|
19
|
+
size?: ButtonSizeProp | undefined;
|
|
20
|
+
theme: Theme;
|
|
21
|
+
fill?: boolean | undefined;
|
|
22
|
+
step?: number | undefined;
|
|
23
|
+
isLoading?: boolean | undefined;
|
|
24
|
+
tooltip?: string | undefined;
|
|
25
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
26
|
+
export {};
|
|
27
|
+
//# sourceMappingURL=BaseButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseButton.d.ts","sourceRoot":"","sources":["../../../../src/components/buttons/BaseButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,oBAAoB,EAEpB,SAAS,EAEV,MAAM,OAAO,CAAC;AACf,OAAe,EAAO,YAAY,EAAiB,MAAM,mBAAmB,CAAC;AAQ7E,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA6F9C,KAAK,KAAK,GAAG,YAAY,CAAC;AAC1B,KAAK,cAAc,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,UAAU,CAAC;AAEjE,MAAM,MAAM,eAAe,GAAG,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACtE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,SAAS,CAAC;IACjE,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,KAAK,EAAE,KAAK,CAAC;IACb,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,UAAU;eAVV,eAAe;cAChB,MAAM,iBAAiB,CAAC,iBAAiB,CAAC,GAAG,SAAS;;WAEzD,KAAK;;;;;2CAkEb,CAAC"}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.BaseButton = void 0;
|
|
38
|
+
const react_1 = __importStar(require("react"));
|
|
39
|
+
const styled_components_1 = __importStar(require("styled-components"));
|
|
40
|
+
const zIndex_1 = require("../ui/zIndex");
|
|
41
|
+
const Tooltip_1 = require("../tooltip/Tooltip");
|
|
42
|
+
const Styles = __importStar(require("../ui/styles"));
|
|
43
|
+
const Typography_1 = require("../ui/Typography");
|
|
44
|
+
const theme_1 = require("../../theme");
|
|
45
|
+
const Loading_1 = require("../Loading");
|
|
46
|
+
const colors = theme_1.theme.colors.light;
|
|
47
|
+
const ButtonWithThemeProps = styled_components_1.default.button `
|
|
48
|
+
${() => Styles.button};
|
|
49
|
+
${(props) => Styles[props.size]}
|
|
50
|
+
border-style: solid;
|
|
51
|
+
border-color: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.borderColor) || "transparent"; }};
|
|
52
|
+
border-width: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.borderWidth) || 0; }}px;
|
|
53
|
+
border-radius: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.borderRadius) || 0; }}px;
|
|
54
|
+
color: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.color) || "#000000"; }};
|
|
55
|
+
background-color: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.background) || "transparent"; }};
|
|
56
|
+
svg {
|
|
57
|
+
stroke: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.color) || "#000000"; }};
|
|
58
|
+
}
|
|
59
|
+
${(props) => props.fill
|
|
60
|
+
? (0, styled_components_1.css) `
|
|
61
|
+
width: 100%;
|
|
62
|
+
`
|
|
63
|
+
: ""};
|
|
64
|
+
${(props) => {
|
|
65
|
+
var _a, _b, _c, _d;
|
|
66
|
+
return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.hover) &&
|
|
67
|
+
(0, styled_components_1.css) `
|
|
68
|
+
&:hover:not(:disabled) {
|
|
69
|
+
background-color: ${(_b = props.theme) === null || _b === void 0 ? void 0 : _b.hover.background};
|
|
70
|
+
${((_c = props.theme) === null || _c === void 0 ? void 0 : _c.hover.color) &&
|
|
71
|
+
(0, styled_components_1.css) `
|
|
72
|
+
color: ${props.theme.hover.color} !important;
|
|
73
|
+
svg {
|
|
74
|
+
fill: ${props.theme.hover.color} !important;
|
|
75
|
+
line {
|
|
76
|
+
stroke: ${props.theme.hover.color} !important;
|
|
77
|
+
}
|
|
78
|
+
polyline {
|
|
79
|
+
stroke: ${props.theme.hover.color} !important;
|
|
80
|
+
}
|
|
81
|
+
path {
|
|
82
|
+
stroke: ${props.theme.hover.color} !important;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
`};
|
|
86
|
+
${((_d = props.theme) === null || _d === void 0 ? void 0 : _d.hover.borderColor) &&
|
|
87
|
+
(0, styled_components_1.css) `
|
|
88
|
+
border-color: ${props.theme.hover.borderColor};
|
|
89
|
+
`};
|
|
90
|
+
}
|
|
91
|
+
`;
|
|
92
|
+
}}
|
|
93
|
+
${(props) => {
|
|
94
|
+
var _a;
|
|
95
|
+
return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.padding)
|
|
96
|
+
? (0, styled_components_1.css) `
|
|
97
|
+
padding: ${props.theme.padding} !important;
|
|
98
|
+
`
|
|
99
|
+
: "";
|
|
100
|
+
}}
|
|
101
|
+
|
|
102
|
+
${(props) => {
|
|
103
|
+
var _a, _b, _c;
|
|
104
|
+
return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.disabled)
|
|
105
|
+
? (0, styled_components_1.css) `
|
|
106
|
+
&:disabled {
|
|
107
|
+
background-color: ${((_b = props.theme.disabled) === null || _b === void 0 ? void 0 : _b.background) ||
|
|
108
|
+
"transparent"};
|
|
109
|
+
color: ${((_c = props.theme.disabled) === null || _c === void 0 ? void 0 : _c.color) || colors.darkGrey};
|
|
110
|
+
border-color: transparent;
|
|
111
|
+
cursor: not-allowed;
|
|
112
|
+
opacity: 0.5;
|
|
113
|
+
}
|
|
114
|
+
`
|
|
115
|
+
: (0, styled_components_1.css) `
|
|
116
|
+
&:disabled {
|
|
117
|
+
background-color: ${colors.lightGrey};
|
|
118
|
+
color: ${colors.darkGrey};
|
|
119
|
+
border-color: transparent;
|
|
120
|
+
cursor: not-allowed;
|
|
121
|
+
opacity: 0.5;
|
|
122
|
+
}
|
|
123
|
+
`;
|
|
124
|
+
}};
|
|
125
|
+
`;
|
|
126
|
+
const ChildWrapperButton = styled_components_1.default.div `
|
|
127
|
+
display: flex;
|
|
128
|
+
align-items: center;
|
|
129
|
+
justify-content: center;
|
|
130
|
+
gap: 12px;
|
|
131
|
+
position: relative;
|
|
132
|
+
z-index: ${zIndex_1.zIndex.Button};
|
|
133
|
+
|
|
134
|
+
${() => Styles.buttonText};
|
|
135
|
+
`;
|
|
136
|
+
exports.BaseButton = (0, react_1.forwardRef)((_a, ref) => {
|
|
137
|
+
var { children, onClick, size = "regular", theme, type = "button", step = 0, fill = false, isLoading = false, tooltip = "" } = _a, rest = __rest(_a, ["children", "onClick", "size", "theme", "type", "step", "fill", "isLoading", "tooltip"]);
|
|
138
|
+
const Wrapper = (0, react_1.useCallback)(({ children }) => {
|
|
139
|
+
if (tooltip !== "" && (rest === null || rest === void 0 ? void 0 : rest.disabled)) {
|
|
140
|
+
return (react_1.default.createElement(Tooltip_1.Tooltip, { wrap: false, content: tooltip }, children));
|
|
141
|
+
}
|
|
142
|
+
return react_1.default.createElement(react_1.default.Fragment, null, children);
|
|
143
|
+
}, [rest === null || rest === void 0 ? void 0 : rest.disabled, tooltip]);
|
|
144
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
145
|
+
react_1.default.createElement(styled_components_1.ThemeProvider, { theme: theme },
|
|
146
|
+
react_1.default.createElement(Wrapper, null,
|
|
147
|
+
react_1.default.createElement(ButtonWithThemeProps, Object.assign({ onClick: onClick, type: type, size: size, fill: fill ? fill : undefined }, rest, { ref: ref }), isLoading ? (react_1.default.createElement(Loading_1.Loading, null)) : (react_1.default.createElement(ChildWrapperButton, { "data-child-wrapper-button": true },
|
|
148
|
+
children,
|
|
149
|
+
step !== 0 && (react_1.default.createElement(Typography_1.Typography, null,
|
|
150
|
+
react_1.default.createElement("small", null,
|
|
151
|
+
"Step ",
|
|
152
|
+
step))))))))));
|
|
153
|
+
});
|
|
154
|
+
//# sourceMappingURL=BaseButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseButton.js","sourceRoot":"","sources":["../../../../src/components/buttons/BaseButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAKe;AACf,uEAA6E;AAE7E,yCAAsC;AACtC,gDAA6C;AAC7C,qDAAuC;AACvC,iDAA8C;AAC9C,uCAAoC;AACpC,wCAAqC;AAGrC,MAAM,MAAM,GAAG,aAAK,CAAC,MAAM,CAAC,KAAK,CAA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-0,0 +1,17 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { InputTheme } from "./Field.styles";
|
|
3
|
+
import type { InputProps as CommonInputProps } from "./types";
|
|
4
|
+
import { ClearButtonTheme } from "./ClearButton";
|
|
5
|
+
export type BaseInputProps = CommonInputProps & {
|
|
6
|
+
heightSize?: "large" | "regular" | "small";
|
|
7
|
+
theme?: InputTheme;
|
|
8
|
+
clearButtonTheme?: ClearButtonTheme;
|
|
9
|
+
isClearable?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const BaseInput: React.ForwardRefExoticComponent<import("./types").BaseProps & React.InputHTMLAttributes<HTMLInputElement> & {
|
|
12
|
+
heightSize?: "regular" | "small" | "large" | undefined;
|
|
13
|
+
theme?: InputTheme | undefined;
|
|
14
|
+
clearButtonTheme?: ClearButtonTheme | undefined;
|
|
15
|
+
isClearable?: boolean | undefined;
|
|
16
|
+
} & React.RefAttributes<HTMLInputElement>>;
|
|
17
|
+
//# sourceMappingURL=BaseInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/BaseInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA8B,MAAM,OAAO,CAAC;AAInD,OAAO,EAAc,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,IAAI,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAG9D,OAAO,EAAe,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAE9D,MAAM,MAAM,cAAc,GAAG,gBAAgB,GAAG;IAC9C,UAAU,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IAC3C,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AASF,eAAO,MAAM,SAAS;;;;;0CA+DrB,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
26
|
+
var t = {};
|
|
27
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
28
|
+
t[p] = s[p];
|
|
29
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
30
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
31
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
32
|
+
t[p[i]] = s[p[i]];
|
|
33
|
+
}
|
|
34
|
+
return t;
|
|
35
|
+
};
|
|
36
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
37
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
38
|
+
};
|
|
39
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40
|
+
exports.BaseInput = void 0;
|
|
41
|
+
const react_1 = __importStar(require("react"));
|
|
42
|
+
const formik_1 = require("formik");
|
|
43
|
+
const Error_1 = __importDefault(require("./Error"));
|
|
44
|
+
const Field_styles_1 = require("./Field.styles");
|
|
45
|
+
const Grid_1 = require("../ui/Grid");
|
|
46
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
47
|
+
const ClearButton_1 = require("./ClearButton");
|
|
48
|
+
const StyledFieldInput = (0, styled_components_1.default)(Field_styles_1.FieldInput) `
|
|
49
|
+
padding-right: calc(1rem + 12px);
|
|
50
|
+
`;
|
|
51
|
+
const StyledClearButton = (0, styled_components_1.default)(ClearButton_1.ClearButton) `
|
|
52
|
+
top: 1px;
|
|
53
|
+
height: calc(100% - 4px);
|
|
54
|
+
margin-left: 0;
|
|
55
|
+
`;
|
|
56
|
+
exports.BaseInput = (0, react_1.forwardRef)((_a, ref) => {
|
|
57
|
+
var { name, theme, clearButtonTheme, isClearable, heightSize } = _a, props = __rest(_a, ["name", "theme", "clearButtonTheme", "isClearable", "heightSize"]);
|
|
58
|
+
const { status, setFieldValue } = (0, formik_1.useFormikContext)();
|
|
59
|
+
const [field, meta] = (0, formik_1.useField)(name);
|
|
60
|
+
const errorText = meta.error || (status === null || status === void 0 ? void 0 : status[name]);
|
|
61
|
+
const errorMessage = errorText && meta.touched ? errorText : "";
|
|
62
|
+
const displayError = typeof errorMessage === typeof "string" && errorMessage !== "";
|
|
63
|
+
const InputComponent = (0, react_1.useMemo)(() => {
|
|
64
|
+
const displayClearButton = isClearable && !props.disabled;
|
|
65
|
+
const inputProps = {
|
|
66
|
+
$heightSize: heightSize,
|
|
67
|
+
theme: theme
|
|
68
|
+
};
|
|
69
|
+
return displayClearButton ? (react_1.default.createElement(Grid_1.Grid, { style: { position: "relative" } },
|
|
70
|
+
react_1.default.createElement(StyledFieldInput, Object.assign({ "$error": errorMessage }, field, props, inputProps, { ref: ref })),
|
|
71
|
+
react_1.default.createElement(StyledClearButton, { onClick: () => setFieldValue(name, ""), theme: clearButtonTheme }))) : (react_1.default.createElement(Field_styles_1.FieldInput, Object.assign({ "$error": errorMessage }, field, props, inputProps, { ref: ref })));
|
|
72
|
+
}, [
|
|
73
|
+
errorMessage,
|
|
74
|
+
field,
|
|
75
|
+
isClearable,
|
|
76
|
+
name,
|
|
77
|
+
props,
|
|
78
|
+
ref,
|
|
79
|
+
setFieldValue,
|
|
80
|
+
theme,
|
|
81
|
+
clearButtonTheme,
|
|
82
|
+
heightSize
|
|
83
|
+
]);
|
|
84
|
+
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
85
|
+
InputComponent,
|
|
86
|
+
react_1.default.createElement(Error_1.default, { display: !props.hideError && displayError, message: errorMessage })));
|
|
87
|
+
});
|
|
88
|
+
//# sourceMappingURL=BaseInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseInput.js","sourceRoot":"","sources":["../../../../src/components/form/BaseInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAAmD;AACnD,mCAAoD;AAEpD,oDAA4B;AAC5B,iDAAwD;AAExD,qCAAkC;AAClC,0EAAuC;AACvC,+CAA8D;AAQ9D,MAAM,gBAAgB,GAAG,IAAA,2BAAM,EAAC,yBAAU,CAAC,CAAA;;CAE1C,CAAC;AACF,MAAM,iBAAiB,GAAG,IAAA,2BAAM,EAAC,yBAAW,CAAC,CAAA;;;;CAI5C,CAAC;AACW,QAAA,SAAS,GAAG,IAAA,kBAAU,EACjC,CACE,EAAoE,EACpE,GAAG,EACH,EAAE;QAFF,EAAE,IAAI,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAA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L,WAAW;QACX,IAAI;QACJ,KAAK;QACL,GAAG;QACH,aAAa;QACb,KAAK;QACL,gBAAgB;QAChB,UAAU;KACX,CAAC,CAAC;IACH,OAAO,CACL;QACG,cAAc;QACf,8BAAC,eAAK,IACJ,OAAO,EAAE,CAAC,KAAK,CAAC,SAAS,IAAI,YAAY,EACzC,OAAO,EAAE,YAAY,GACrB,CACD,CACJ,CAAC;AACJ,CAAC,CACF,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { HeightSize, InputTheme } from "./Field.styles";
|
|
2
|
+
import { TagsProps as TagsPropsWithoutTheme } from "./types";
|
|
3
|
+
export type BaseTagsInputProps = TagsPropsWithoutTheme & {
|
|
4
|
+
theme?: InputTheme;
|
|
5
|
+
heightSize?: HeightSize;
|
|
6
|
+
};
|
|
7
|
+
export declare const BaseTagsInput: ({ name, placeholder, onAddTag, onRemoveTag, compareTags, transform, label, heightSize, theme }: BaseTagsInputProps) => JSX.Element;
|
|
8
|
+
//# sourceMappingURL=BaseTagsInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTagsInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/BaseTagsInput.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAc,UAAU,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAOpE,OAAO,EAAE,SAAS,IAAI,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC7D,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,GAAG;IACvD,KAAK,CAAC,EAAE,UAAU,CAAC;IACnB,UAAU,CAAC,EAAE,UAAU,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,aAAa,mGAWvB,kBAAkB,gBAgGpB,CAAC"}
|
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
|
|
29
|
+
exports.BaseTagsInput = void 0;
|
|
30
30
|
const formik_1 = require("formik");
|
|
31
31
|
const phosphor_react_1 = require("phosphor-react");
|
|
32
32
|
const react_1 = __importStar(require("react"));
|
|
@@ -34,8 +34,10 @@ const Grid_1 = require("../ui/Grid");
|
|
|
34
34
|
const Typography_1 = require("../ui/Typography");
|
|
35
35
|
const Error_1 = __importDefault(require("./Error"));
|
|
36
36
|
const Field_styles_1 = require("./Field.styles");
|
|
37
|
-
const
|
|
38
|
-
const
|
|
37
|
+
const BaseTagsInput_styles_1 = require("./styles/BaseTagsInput.styles");
|
|
38
|
+
const gap = "0.5rem";
|
|
39
|
+
const BaseTagsInput = ({ name, placeholder, onAddTag, onRemoveTag, compareTags = (tagA, tagB) => tagA.toLowerCase() === tagB.toLowerCase(), transform = (tag) => tag, label, heightSize, theme }) => {
|
|
40
|
+
var _a, _b;
|
|
39
41
|
const { validateForm } = (0, formik_1.useFormikContext)();
|
|
40
42
|
const [field, meta, helpers] = (0, formik_1.useField)(name);
|
|
41
43
|
const tags = field.value || [];
|
|
@@ -76,21 +78,27 @@ const TagsInput = ({ name, placeholder, onAddTag, onRemoveTag, compareTags = (ta
|
|
|
76
78
|
validateForm();
|
|
77
79
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
78
80
|
}, [field.value]);
|
|
81
|
+
const labelRef = (0, react_1.useRef)(null);
|
|
82
|
+
const hitEnterWidth = (0, react_1.useRef)(null);
|
|
79
83
|
return (react_1.default.createElement(react_1.default.Fragment, null,
|
|
80
|
-
react_1.default.createElement(Grid_1.Grid, { gap:
|
|
81
|
-
label && react_1.default.createElement(Typography_1.Typography,
|
|
82
|
-
react_1.default.createElement(
|
|
83
|
-
react_1.default.createElement(Field_styles_1.FieldInput, { onKeyDown: handleKeyDown, type: "text", placeholder: placeholder || "Choose tags...", name: name, onBlur: handleBlur, error: errorMessage })
|
|
84
|
-
|
|
84
|
+
react_1.default.createElement(Grid_1.Grid, { gap: gap, alignItems: "center" },
|
|
85
|
+
label && (react_1.default.createElement(Typography_1.Typography, { "data-label": true, ref: labelRef }, label)),
|
|
86
|
+
react_1.default.createElement(BaseTagsInput_styles_1.TagContainer, { "$gap": gap },
|
|
87
|
+
react_1.default.createElement(Field_styles_1.FieldInput, Object.assign({ theme: theme, "$heightSize": heightSize, onKeyDown: handleKeyDown, type: "text", placeholder: placeholder || "Choose tags...", name: name, onBlur: handleBlur, "$error": errorMessage }, (((_a = hitEnterWidth.current) === null || _a === void 0 ? void 0 : _a.clientWidth) && {
|
|
88
|
+
style: {
|
|
89
|
+
paddingRight: `calc(${hitEnterWidth.current.clientWidth}px + 1rem)`
|
|
90
|
+
}
|
|
91
|
+
}))),
|
|
92
|
+
react_1.default.createElement(BaseTagsInput_styles_1.Helper, { ref: hitEnterWidth },
|
|
85
93
|
"Hit Enter ",
|
|
86
|
-
react_1.default.createElement(phosphor_react_1.KeyReturn, { size:
|
|
87
|
-
react_1.default.createElement(
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
94
|
+
react_1.default.createElement(phosphor_react_1.KeyReturn, { size: 13 })))),
|
|
95
|
+
react_1.default.createElement(BaseTagsInput_styles_1.TagContainer, { "$gap": gap, "$paddingLeft": label
|
|
96
|
+
? `calc(${(_b = labelRef.current) === null || _b === void 0 ? void 0 : _b.clientWidth}px + ${gap})`
|
|
97
|
+
: undefined }, tags.map((tag, index) => (react_1.default.createElement(BaseTagsInput_styles_1.TagWrapper, { key: `tags-wrapper_${tag}`, theme: theme },
|
|
98
|
+
react_1.default.createElement("span", { className: "text tag" }, tag),
|
|
99
|
+
react_1.default.createElement(BaseTagsInput_styles_1.Close, { onClick: () => removeTag(index) }, "\u00D7"))))),
|
|
92
100
|
react_1.default.createElement(Error_1.default, { display: displayError, message: errorMessage }),
|
|
93
101
|
" "));
|
|
94
102
|
};
|
|
95
|
-
exports.
|
|
96
|
-
//# sourceMappingURL=
|
|
103
|
+
exports.BaseTagsInput = BaseTagsInput;
|
|
104
|
+
//# sourceMappingURL=BaseTagsInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseTagsInput.js","sourceRoot":"","sources":["../../../../src/components/form/BaseTagsInput.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAoD;AACpD,mDAA2C;AAC3C,+CAAiD;AAEjD,qCAAkC;AAClC,iDAA8C;AAC9C,oDAA4B;AAC5B,iDAAoE;AACpE,wEAKuC;AAMvC,MAAM,GAAG,GAAG,QAAQ,CAAC;AACd,MAAM,aAAa,GAAG,CAAC,EAC5B,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,WAAW,EACX,WAAW,GAAG,CAAC,IAAY,EAAE,IAAY,EAAE,EAAE,CAC3C,IAAI,CAAC,WAAW,EAAE,KAAK,IAAI,CAAC,WAAW,EAAE,EAC3C,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,EAChC,KAAK,EACL,UAAU,EACV,KAAK,EACc,EAAE,EAAE;;IACvB,MAAM,EAAE,YAAY,EAAE,GAAG,IAAA,yBAAgB,GAAE,CAAC;IAC5C,MAAM,CAAC,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,GAAG,IAAA,iBAAQ,EAAW,IAAI,CAAC,CAAC;IACxD,MAAM,IAAI,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;IAE/B,MAAM,YAAY,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC;IAClE,MAAM,YAAY,GAChB,OAAO,YAAY,KAAK,OAAO,QAAQ,IAAI,YAAY,KAAK,EAAE,CAAC;IAEjE,MAAM,UAAU,GAAG,GAAG,EAAE;QACtB,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;YACjB,OAAO,CAAC,UAAU,CAAC,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AAS,EAAC,UAAU,IAAE,GAAG,CAAQ;YACvC,8BAAC,4BAAK,IAAC,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,KAAK,CAAC,aAAiB,CAC5C,CACd,CAAC,CACW;QACf,8BAAC,eAAK,IAAC,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,YAAY,GAAI;QAAC,GAAG,CAC1D,CACJ,CAAC;AACJ,CAAC,CAAC;AA3GW,QAAA,aAAa,iBA2GxB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CSSProperties } from "styled-components";
|
|
2
|
+
import React from "react";
|
|
3
|
+
export type ClearButtonTheme = {
|
|
4
|
+
fill: CSSProperties["fill"];
|
|
5
|
+
stroke: CSSProperties["stroke"];
|
|
6
|
+
hover: {
|
|
7
|
+
fill: CSSProperties["fill"];
|
|
8
|
+
stroke: CSSProperties["stroke"];
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const ClearButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Pick<Record<string, unknown>, string> & {
|
|
12
|
+
ref?: unknown;
|
|
13
|
+
}, never>> & Omit<(props: Record<string, unknown>) => JSX.Element, keyof React.Component<any, {}, any>>;
|
|
14
|
+
//# sourceMappingURL=ClearButton.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearButton.d.ts","sourceRoot":"","sources":["../../../../src/components/form/ClearButton.tsx"],"names":[],"mappings":"AAAA,OAAe,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,KAAK,MAAM,OAAO,CAAC;AAa1B,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAC5B,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAChC,KAAK,EAAE;QACL,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;QAC5B,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;KACjC,CAAC;CACH,CAAC;AACF,eAAO,MAAM,WAAW;;0BApBE,OAAO,MAAM,EAAE,OAAO,CAAC,sDAoChD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
exports.ClearButton = void 0;
|
|
7
|
+
const styled_components_1 = __importDefault(require("styled-components"));
|
|
8
|
+
const react_1 = __importDefault(require("react"));
|
|
9
|
+
const CrossIcon = (props) => (react_1.default.createElement("svg", Object.assign({ height: "20", width: "20", viewBox: "0 0 20 20", "aria-hidden": "true", focusable: "false" }, props),
|
|
10
|
+
react_1.default.createElement("path", { d: "M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z" })));
|
|
11
|
+
exports.ClearButton = (0, styled_components_1.default)(CrossIcon) `
|
|
12
|
+
position: absolute;
|
|
13
|
+
top: 0;
|
|
14
|
+
right: 0;
|
|
15
|
+
height: 100%;
|
|
16
|
+
margin: 0 5px;
|
|
17
|
+
cursor: pointer;
|
|
18
|
+
display: inline-block;
|
|
19
|
+
fill: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.fill) || "#cccccc"; }};
|
|
20
|
+
line-height: 1;
|
|
21
|
+
stroke: ${(props) => { var _a; return ((_a = props.theme) === null || _a === void 0 ? void 0 : _a.stroke) || "#cccccc"; }};
|
|
22
|
+
stroke-width: 0;
|
|
23
|
+
&:hover * {
|
|
24
|
+
stroke: ${(props) => { var _a, _b; return ((_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.hover) === null || _b === void 0 ? void 0 : _b.stroke) || "#999999"; }};
|
|
25
|
+
fill: ${(props) => { var _a, _b; return ((_b = (_a = props.theme) === null || _a === void 0 ? void 0 : _a.hover) === null || _b === void 0 ? void 0 : _b.fill) || "#999999"; }};
|
|
26
|
+
}
|
|
27
|
+
`;
|
|
28
|
+
//# sourceMappingURL=ClearButton.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClearButton.js","sourceRoot":"","sources":["../../../../src/components/form/ClearButton.tsx"],"names":[],"mappings":";;;;;;AAAA,0EAA0D;AAC1D,kDAA0B;AAC1B,MAAM,SAAS,GAAG,CAAC,KAA8B,EAAE,EAAE,CAAC,CACpD,qDACE,MAAM,EAAC,IAAI,EACX,KAAK,EAAC,IAAI,EACV,OAAO,EAAC,WAAW,iBACP,MAAM,EAClB,SAAS,EAAC,OAAO,IACb,KAAK;IAET,wCAAM,CAAC,EAAC,4VAA4V,GAAQ,CACxW,CACP,CAAC;AASW,QAAA,WAAW,GAAG,IAAA,2BAAM,EAAC,SAAS,CAAC,CAAA;;;;;;;;UAQlC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,IAAI,KAAI,SAAS,CAAA,EAAA;;YAEvC,CAAC,KAAK,EAAE,EAAE,WAAC,OAAA,CAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,MAAM,KAAI,SAAS,CAAA,EAAA;;;cAGzC,CAAC,KAAK,EAAE,EAAE,eAAC,OAAA,CAAA,MAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,KAAK,0CAAE,MAAM,KAAI,SAAS,CAAA,EAAA;YACpD,CAAC,KAAK,EAAE,EAAE,eAAC,OAAA,CAAA,MAAA,MAAA,KAAK,CAAC,KAAK,0CAAE,KAAK,0CAAE,IAAI,KAAI,SAAS,CAAA,EAAA;;CAE3D,CAAC"}
|
|
@@ -1,18 +1,55 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import { CSSProperties } from "styled-components";
|
|
2
3
|
export declare const CopyButton: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, never>>;
|
|
4
|
+
export type InputTheme = {
|
|
5
|
+
background: CSSProperties["backgroundColor"];
|
|
6
|
+
borderColor: CSSProperties["borderColor"];
|
|
7
|
+
borderRadius: CSSProperties["borderRadius"];
|
|
8
|
+
focus: {
|
|
9
|
+
caretColor: CSSProperties["caretColor"];
|
|
10
|
+
};
|
|
11
|
+
hover: {
|
|
12
|
+
borderColor: CSSProperties["borderColor"];
|
|
13
|
+
};
|
|
14
|
+
error: {
|
|
15
|
+
borderColor: CSSProperties["borderColor"];
|
|
16
|
+
hover: {
|
|
17
|
+
borderColor: CSSProperties["borderColor"];
|
|
18
|
+
};
|
|
19
|
+
focus: {
|
|
20
|
+
borderColor: CSSProperties["borderColor"];
|
|
21
|
+
caretColor: CSSProperties["caretColor"];
|
|
22
|
+
};
|
|
23
|
+
placeholder: {
|
|
24
|
+
color: CSSProperties["color"];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
export type HeightSize = keyof typeof sizeToHeight;
|
|
29
|
+
declare const sizeToHeight: {
|
|
30
|
+
readonly small: "40px";
|
|
31
|
+
readonly regular: "49px";
|
|
32
|
+
readonly large: "56px";
|
|
33
|
+
};
|
|
3
34
|
export declare const FieldInput: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
4
|
-
error?: any;
|
|
35
|
+
$error?: any;
|
|
36
|
+
$heightSize?: "regular" | "small" | "large" | undefined;
|
|
37
|
+
theme?: InputTheme | undefined;
|
|
5
38
|
}>>;
|
|
6
39
|
export declare const FileUploadWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
7
40
|
choosen: any;
|
|
8
41
|
error: any;
|
|
9
42
|
}>>;
|
|
10
|
-
export declare const FieldFileUpload: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Pick<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "error"> & {
|
|
11
|
-
error?: any;
|
|
12
|
-
|
|
43
|
+
export declare const FieldFileUpload: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<Pick<import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "theme" | "$error" | "$heightSize"> & {
|
|
44
|
+
$error?: any;
|
|
45
|
+
$heightSize?: "regular" | "small" | "large" | undefined;
|
|
46
|
+
theme?: InputTheme | undefined;
|
|
47
|
+
}, "theme" | "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement> | "$error" | "$heightSize"> & {
|
|
13
48
|
ref?: ((instance: HTMLInputElement | null) => void) | import("react").RefObject<HTMLInputElement> | null | undefined;
|
|
14
49
|
}, never>> & Omit<import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, {
|
|
15
|
-
error?: any;
|
|
50
|
+
$error?: any;
|
|
51
|
+
$heightSize?: "regular" | "small" | "large" | undefined;
|
|
52
|
+
theme?: InputTheme | undefined;
|
|
16
53
|
}>>, keyof import("react").Component<any, {}, any>>;
|
|
17
54
|
export declare const FieldFileUploadWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
|
|
18
55
|
$disabled: boolean;
|
|
@@ -23,7 +60,7 @@ export declare const FieldTextArea: import("styled-components").IStyledComponent
|
|
|
23
60
|
export declare const FormFieldWrapper: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<{
|
|
24
61
|
children?: import("react").ReactNode;
|
|
25
62
|
as?: import("react").ElementType<any> | undefined;
|
|
26
|
-
style?:
|
|
63
|
+
style?: CSSProperties | undefined;
|
|
27
64
|
onClick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
28
65
|
} & {
|
|
29
66
|
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
@@ -50,7 +87,7 @@ export declare const FormFieldWrapper: import("styled-components").IStyledCompon
|
|
|
50
87
|
} & import("react").HTMLAttributes<unknown> & import("react").RefAttributes<HTMLDivElement>, never>> & Omit<import("react").ForwardRefExoticComponent<{
|
|
51
88
|
children?: import("react").ReactNode;
|
|
52
89
|
as?: import("react").ElementType<any> | undefined;
|
|
53
|
-
style?:
|
|
90
|
+
style?: CSSProperties | undefined;
|
|
54
91
|
onClick?: ((this: GlobalEventHandlers, ev: MouseEvent) => any) | null | undefined;
|
|
55
92
|
} & {
|
|
56
93
|
height?: import("csstype").Property.Height<number | (string & {})> | undefined;
|
|
@@ -80,4 +117,5 @@ export declare const CheckboxWrapper: import("styled-components").IStyledCompone
|
|
|
80
117
|
}>>;
|
|
81
118
|
export declare const VideoPreview: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, never>>;
|
|
82
119
|
export declare const ImagePreview: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").FastOmit<import("react").DetailedHTMLProps<import("react").ImgHTMLAttributes<HTMLImageElement>, HTMLImageElement>, never>>;
|
|
120
|
+
export {};
|
|
83
121
|
//# sourceMappingURL=Field.styles.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Field.styles.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Field.styles.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Field.styles.ts"],"names":[],"mappings":";AACA,OAAe,EAAE,aAAa,EAAO,MAAM,mBAAmB,CAAC;AAS/D,eAAO,MAAM,UAAU,4NAGtB,CAAC;AACF,MAAM,MAAM,UAAU,GAAG;IACvB,UAAU,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IAC7C,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;IAC1C,YAAY,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC5C,KAAK,EAAE;QACL,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;KACzC,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;KAC3C,CAAC;IACF,KAAK,EAAE;QACL,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;QAC1C,KAAK,EAAE;YACL,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;SAC3C,CAAC;QACF,KAAK,EAAE;YACL,WAAW,EAAE,aAAa,CAAC,aAAa,CAAC,CAAC;YAC1C,UAAU,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;SACzC,CAAC;QACF,WAAW,EAAE;YACX,KAAK,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;SAC/B,CAAC;KACH,CAAC;CACH,CAAC;AACF,MAAM,MAAM,UAAU,GAAG,MAAM,OAAO,YAAY,CAAC;AACnD,QAAA,MAAM,YAAY;;;;CAIR,CAAC;AACX,eAAO,MAAM,UAAU;aACZ,GAAG;;;GAuEb,CAAC;AAEF,eAAO,MAAM,iBAAiB;aAAyB,GAAG;WAAS,GAAG;GAsDrE,CAAC;AAEF,eAA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