ag-common 0.0.313 → 0.0.316
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/ui/components/Chevron/index.js +4 -5
- package/dist/ui/components/Close/index.js +2 -2
- package/dist/ui/components/DropdownList/index.js +2 -2
- package/dist/ui/components/KebabDots/index.js +2 -3
- package/dist/ui/components/Loader/index.js +2 -2
- package/dist/ui/components/LogoutButton/index.js +2 -4
- package/dist/ui/components/Search/Base.js +4 -5
- package/dist/ui/components/TextEdit/CheckboxEdit.js +4 -3
- package/dist/ui/components/TextEdit/ColourEdit.js +4 -3
- package/dist/ui/components/TextEdit/ListboxEdit.js +4 -3
- package/dist/ui/components/TextEdit/TextEdit.js +6 -4
- package/dist/ui/components/UserImage/index.d.ts +0 -1
- package/dist/ui/components/UserImage/index.js +3 -4
- package/dist/ui/components/index.d.ts +0 -1
- package/dist/ui/components/index.js +0 -1
- package/dist/ui/icons/ChevronRight.d.ts +2 -0
- package/dist/ui/icons/ChevronRight.js +9 -0
- package/dist/ui/{components/Search/images.d.ts → icons/CrossIcon.d.ts} +0 -0
- package/dist/ui/{components/Search/images.js → icons/CrossIcon.js} +2 -2
- package/dist/ui/icons/Door.d.ts +2 -0
- package/dist/ui/icons/Door.js +10 -0
- package/dist/ui/icons/HorizontalDots.d.ts +2 -0
- package/dist/ui/icons/HorizontalDots.js +9 -0
- package/dist/ui/icons/Magnify.d.ts +2 -0
- package/dist/ui/icons/Magnify.js +9 -0
- package/dist/ui/icons/Pencil.d.ts +2 -0
- package/dist/ui/icons/Pencil.js +12 -0
- package/dist/ui/icons/Save.d.ts +2 -0
- package/dist/ui/icons/Save.js +11 -0
- package/dist/ui/icons/Undo.d.ts +2 -0
- package/dist/ui/icons/Undo.js +12 -0
- package/dist/ui/icons/UserOutline.d.ts +2 -0
- package/dist/ui/icons/UserOutline.js +9 -0
- package/dist/ui/icons/index.d.ts +9 -0
- package/dist/ui/icons/index.js +25 -0
- package/dist/ui/index.d.ts +1 -0
- package/dist/ui/index.js +1 -0
- package/package.json +3 -13
- package/dist/ui/components/LoginButton/index.d.ts +0 -12
- package/dist/ui/components/LoginButton/index.js +0 -22
- package/dist/ui/components/TextEdit/images.d.ts +0 -4
- package/dist/ui/components/TextEdit/images.js +0 -21
|
@@ -7,7 +7,8 @@ exports.Chevron = void 0;
|
|
|
7
7
|
const Icon_1 = require("../Icon");
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const
|
|
10
|
+
const ChevronRight_1 = require("../../icons/ChevronRight");
|
|
11
|
+
const Base = styled_components_1.default.span `
|
|
11
12
|
font-size: 2rem;
|
|
12
13
|
display: flex;
|
|
13
14
|
justify-content: center;
|
|
@@ -18,8 +19,6 @@ const IconStyled = (0, styled_components_1.default)(Icon_1.Icon) `
|
|
|
18
19
|
margin: 0;
|
|
19
20
|
padding: 0;
|
|
20
21
|
`;
|
|
21
|
-
const ChevronIcon = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor" },
|
|
22
|
-
react_1.default.createElement("path", { fillRule: "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })));
|
|
23
22
|
const Chevron = ({ width = '1.2rem', className, colour = 'black', onToggle, point = 'right', }) => {
|
|
24
23
|
let rotate = 0;
|
|
25
24
|
switch (point) {
|
|
@@ -39,7 +38,7 @@ const Chevron = ({ width = '1.2rem', className, colour = 'black', onToggle, poin
|
|
|
39
38
|
rotate = 0;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
|
-
return (react_1.default.createElement(
|
|
43
|
-
react_1.default.createElement(IconStyled, { rotate: rotate, fill: colour, width: width, height: width },
|
|
41
|
+
return (react_1.default.createElement(Base, { className: className, onClick: () => onToggle === null || onToggle === void 0 ? void 0 : onToggle(), onTouchStart: () => onToggle === null || onToggle === void 0 ? void 0 : onToggle(), onKeyPress: (e) => e.key === 'Enter' && (onToggle === null || onToggle === void 0 ? void 0 : onToggle()) },
|
|
42
|
+
react_1.default.createElement(IconStyled, { rotate: rotate, fill: colour, width: width, height: width }, ChevronRight_1.ChevronRight)));
|
|
44
43
|
};
|
|
45
44
|
exports.Chevron = Chevron;
|
|
@@ -7,7 +7,7 @@ exports.Close = void 0;
|
|
|
7
7
|
const dom_1 = require("../../helpers/dom");
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
|
-
const
|
|
10
|
+
const Base = styled_components_1.default.div `
|
|
11
11
|
position: absolute;
|
|
12
12
|
z-index: 1;
|
|
13
13
|
width: 32px;
|
|
@@ -37,6 +37,6 @@ const SClose = styled_components_1.default.div `
|
|
|
37
37
|
}
|
|
38
38
|
`;
|
|
39
39
|
const Close = (p) => {
|
|
40
|
-
return (react_1.default.createElement(
|
|
40
|
+
return (react_1.default.createElement(Base, Object.assign({}, (0, dom_1.filterDataProps)(p), { className: p.className, onClick: (e) => { var _a; return (_a = p.onClick) === null || _a === void 0 ? void 0 : _a.call(p, e); } })));
|
|
41
41
|
};
|
|
42
42
|
exports.Close = Close;
|
|
@@ -34,7 +34,7 @@ const colours_1 = require("../../styles/colours");
|
|
|
34
34
|
const KebabDots_1 = require("../KebabDots");
|
|
35
35
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
36
36
|
const react_1 = __importStar(require("react"));
|
|
37
|
-
const
|
|
37
|
+
const Base = styled_components_1.default.div `
|
|
38
38
|
display: flex;
|
|
39
39
|
flex-flow: row;
|
|
40
40
|
position: relative;
|
|
@@ -149,7 +149,7 @@ function DropdownList(p) {
|
|
|
149
149
|
setBounced(true);
|
|
150
150
|
}
|
|
151
151
|
}, [bounced, open]);
|
|
152
|
-
return (react_1.default.createElement(
|
|
152
|
+
return (react_1.default.createElement(Base, { className: className, ref: ref, title: placeholder, onClick: (e) => {
|
|
153
153
|
e.stopPropagation();
|
|
154
154
|
e.preventDefault();
|
|
155
155
|
setOpen(!open);
|
|
@@ -7,10 +7,9 @@ exports.KebabDots = void 0;
|
|
|
7
7
|
const Icon_1 = require("../Icon");
|
|
8
8
|
const react_1 = __importDefault(require("react"));
|
|
9
9
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
-
const
|
|
11
|
-
react_1.default.createElement("path", { d: "M16 12a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0117 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0110 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 013 12z" })));
|
|
10
|
+
const HorizontalDots_1 = require("../../icons/HorizontalDots");
|
|
12
11
|
const IconStyled = (0, styled_components_1.default)(Icon_1.Icon) `
|
|
13
12
|
position: absolute;
|
|
14
13
|
`;
|
|
15
|
-
const KebabDots = ({ onClick }) => (react_1.default.createElement(IconStyled, { width: "2rem", height: "2rem", onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick() },
|
|
14
|
+
const KebabDots = ({ onClick }) => (react_1.default.createElement(IconStyled, { width: "2rem", height: "2rem", onClick: () => onClick === null || onClick === void 0 ? void 0 : onClick() }, HorizontalDots_1.HorizontalDots));
|
|
16
15
|
exports.KebabDots = KebabDots;
|
|
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.Loader = void 0;
|
|
30
30
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
31
31
|
const react_1 = __importStar(require("react"));
|
|
32
|
-
const
|
|
32
|
+
const Base = styled_components_1.default.div `
|
|
33
33
|
border: 16px solid #f3f3f3; /* Light grey */
|
|
34
34
|
border-top: 16px solid #3498db; /* Blue */
|
|
35
35
|
border-radius: 50%;
|
|
@@ -69,6 +69,6 @@ const Loader = ({ name, height = '2rem', width = '2rem', }) => {
|
|
|
69
69
|
setTrans(false);
|
|
70
70
|
}, []);
|
|
71
71
|
return (react_1.default.createElement(LoadingBack, { "data-loading": name, "data-transparent": trans },
|
|
72
|
-
react_1.default.createElement(
|
|
72
|
+
react_1.default.createElement(Base, { style: { height: height, width: width } })));
|
|
73
73
|
};
|
|
74
74
|
exports.Loader = Loader;
|
|
@@ -8,9 +8,7 @@ const colours_1 = require("../../styles/colours");
|
|
|
8
8
|
const Button_1 = require("../Button");
|
|
9
9
|
const react_1 = __importDefault(require("react"));
|
|
10
10
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
11
|
-
const
|
|
12
|
-
react_1.default.createElement("path", { d: "M3 3h8V1H3a2 2 0 00-2 2v14a2 2 0 002 2h8v-2H3z" }),
|
|
13
|
-
react_1.default.createElement("path", { d: "M19 10l-6-5v4H5v2h8v4l6-5z" })));
|
|
11
|
+
const Door_1 = require("../../icons/Door");
|
|
14
12
|
const Icon = styled_components_1.default.div `
|
|
15
13
|
width: 1.5rem;
|
|
16
14
|
height: 1.5rem;
|
|
@@ -25,5 +23,5 @@ const ButtonStyled = (0, styled_components_1.default)(Button_1.Button) `
|
|
|
25
23
|
}
|
|
26
24
|
`;
|
|
27
25
|
const LogoutButton = ({ className, invert, logout, }) => (react_1.default.createElement(ButtonStyled, { invert: invert, className: className, onKeyPress: () => logout(), onClick: () => logout() },
|
|
28
|
-
react_1.default.createElement(Icon, null, Door)));
|
|
26
|
+
react_1.default.createElement(Icon, null, Door_1.Door)));
|
|
29
27
|
exports.LogoutButton = LogoutButton;
|
|
@@ -27,12 +27,13 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.SearchBase = void 0;
|
|
30
|
-
const
|
|
30
|
+
const CrossIcon_1 = require("../../icons/CrossIcon");
|
|
31
31
|
const helpers_1 = require("../../helpers");
|
|
32
32
|
const TextEdit_1 = require("../TextEdit");
|
|
33
33
|
const styles_1 = require("../../styles");
|
|
34
34
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
35
35
|
const react_1 = __importStar(require("react"));
|
|
36
|
+
const Magnify_1 = require("../../icons/Magnify");
|
|
36
37
|
const Base = styled_components_1.default.div `
|
|
37
38
|
display: flex;
|
|
38
39
|
flex-flow: column;
|
|
@@ -55,8 +56,6 @@ const SearchBox = styled_components_1.default.div `
|
|
|
55
56
|
width: 100%;
|
|
56
57
|
}
|
|
57
58
|
`;
|
|
58
|
-
const MagnifyIconSvg = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 490 490" },
|
|
59
|
-
react_1.default.createElement("path", { fill: "none", stroke: "#000", strokeWidth: "36", strokeLinecap: "round", d: "M280 278a153 153 0 1 0-2 2l170 170m-91-117 110 110-26 26-110-110" })));
|
|
60
59
|
const Icon = styled_components_1.default.div `
|
|
61
60
|
width: 1.5rem;
|
|
62
61
|
height: 1.5rem;
|
|
@@ -87,7 +86,7 @@ const Row = styled_components_1.default.div `
|
|
|
87
86
|
width: 100%;
|
|
88
87
|
cursor: pointer;
|
|
89
88
|
`;
|
|
90
|
-
const CrossIconStyled = (0, styled_components_1.default)(
|
|
89
|
+
const CrossIconStyled = (0, styled_components_1.default)(CrossIcon_1.CrossIcon) `
|
|
91
90
|
position: absolute;
|
|
92
91
|
right: 1rem;
|
|
93
92
|
`;
|
|
@@ -108,7 +107,7 @@ const SearchBase = ({ onSelectItem, onSearchTextChange, placeholderText, renderI
|
|
|
108
107
|
const textEditRef = (0, react_1.createRef)();
|
|
109
108
|
return (react_1.default.createElement(Base, { className: className },
|
|
110
109
|
react_1.default.createElement(SearchBox, { "data-type": "search" },
|
|
111
|
-
react_1.default.createElement(TextEdit_1.TextEdit, { ref: textEditRef, placeholder: placeholderText, defaultEditing: { focus: true }, singleLine: true, leftContent: react_1.default.createElement(Icon, null,
|
|
110
|
+
react_1.default.createElement(TextEdit_1.TextEdit, { ref: textEditRef, placeholder: placeholderText, defaultEditing: { focus: true }, singleLine: true, leftContent: react_1.default.createElement(Icon, null, Magnify_1.Magnify), noGrow: true, allowUndo: false, onEscape: () => resWrap(undefined), onClickOutsideWithNoValue: null, onSubmit: (v) => (0, helpers_1.debounce)(() => {
|
|
112
111
|
setSearchText(v);
|
|
113
112
|
onSearchTextChange === null || onSearchTextChange === void 0 ? void 0 : onSearchTextChange(v);
|
|
114
113
|
}, { key: 'pagesearch', time: 200 }) }),
|
|
@@ -27,13 +27,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
29
|
exports.CheckboxEdit = void 0;
|
|
30
|
-
const images_1 = require("./images");
|
|
31
30
|
const common_1 = require("./common");
|
|
32
31
|
const common_2 = require("../../styles/common");
|
|
33
32
|
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
34
33
|
const FlexRow_1 = require("../FlexRow");
|
|
35
34
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
36
35
|
const react_1 = __importStar(require("react"));
|
|
36
|
+
const Save_1 = require("../../icons/Save");
|
|
37
|
+
const Undo_1 = require("../../icons/Undo");
|
|
37
38
|
const Icons = (0, styled_components_1.default)(FlexRow_1.FlexRow) `
|
|
38
39
|
position: absolute;
|
|
39
40
|
top: 0;
|
|
@@ -62,8 +63,8 @@ const CheckboxEdit = ({ defaultValue, onSubmit, noGrow = false, allowUndo = true
|
|
|
62
63
|
}, onKeyPress: (e) => e.key === 'Enter' && value !== defaultValue && onSubmit(value) }),
|
|
63
64
|
allowUndo && value !== defaultValue && (react_1.default.createElement(Icons, { center: true, enableOverflow: true },
|
|
64
65
|
react_1.default.createElement(common_1.IconD, { style: common_1.iconLeft, onClick: () => value !== defaultValue && onSubmit(value) },
|
|
65
|
-
react_1.default.createElement(
|
|
66
|
+
react_1.default.createElement(Save_1.Save, null)),
|
|
66
67
|
react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: () => setValue(defaultValue) },
|
|
67
|
-
react_1.default.createElement(
|
|
68
|
+
react_1.default.createElement(Undo_1.Undo, null))))));
|
|
68
69
|
};
|
|
69
70
|
exports.CheckboxEdit = CheckboxEdit;
|
|
@@ -24,11 +24,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ColourEdit = void 0;
|
|
27
|
-
const images_1 = require("./images");
|
|
28
27
|
const common_1 = require("./common");
|
|
29
28
|
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
30
29
|
const common_2 = require("../../styles/common");
|
|
31
30
|
const react_1 = __importStar(require("react"));
|
|
31
|
+
const Save_1 = require("../../icons/Save");
|
|
32
|
+
const Undo_1 = require("../../icons/Undo");
|
|
32
33
|
const ColourEdit = ({ defaultValue, onSubmit, }) => {
|
|
33
34
|
const ref = (0, react_1.useRef)(null);
|
|
34
35
|
const [value, setValue] = (0, react_1.useState)(defaultValue);
|
|
@@ -44,8 +45,8 @@ const ColourEdit = ({ defaultValue, onSubmit, }) => {
|
|
|
44
45
|
return (react_1.default.createElement(common_1.ValueBox, Object.assign({}, common_2.noDrag, { ref: ref }),
|
|
45
46
|
react_1.default.createElement("input", { type: "color", size: 5, value: value, onChange: (v) => setValue(v.target.value) }),
|
|
46
47
|
value !== defaultValue && (react_1.default.createElement(common_1.IconD, { style: common_1.iconLeft, onClick: () => valueChange && onSubmit(value.trim()) },
|
|
47
|
-
react_1.default.createElement(
|
|
48
|
+
react_1.default.createElement(Save_1.Save, null))),
|
|
48
49
|
valueChange && (react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: () => setValue(defaultValue) },
|
|
49
|
-
react_1.default.createElement(
|
|
50
|
+
react_1.default.createElement(Undo_1.Undo, null)))));
|
|
50
51
|
};
|
|
51
52
|
exports.ColourEdit = ColourEdit;
|
|
@@ -24,10 +24,11 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.ListboxEdit = void 0;
|
|
27
|
-
const images_1 = require("./images");
|
|
28
27
|
const common_1 = require("./common");
|
|
29
28
|
const common_2 = require("../../styles/common");
|
|
30
29
|
const react_1 = __importStar(require("react"));
|
|
30
|
+
const Save_1 = require("../../icons/Save");
|
|
31
|
+
const Undo_1 = require("../../icons/Undo");
|
|
31
32
|
const ListboxEdit = ({ defaultValue, onSubmit, values, canEdit = true,
|
|
32
33
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
33
34
|
renderLabel = (e) => e.toString(), }) => {
|
|
@@ -50,8 +51,8 @@ renderLabel = (e) => e.toString(), }) => {
|
|
|
50
51
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
51
52
|
value: v.toString() }, renderLabel(v))))),
|
|
52
53
|
canEdit && value !== defaultValue && (react_1.default.createElement(common_1.IconD, { style: common_1.iconLeft, onClick: () => value !== defaultValue && onSubmit(value) },
|
|
53
|
-
react_1.default.createElement(
|
|
54
|
+
react_1.default.createElement(Save_1.Save, null))),
|
|
54
55
|
canEdit && value !== defaultValue && (react_1.default.createElement(common_1.IconD, { style: common_1.iconRight, onClick: () => setValue(defaultValue) },
|
|
55
|
-
react_1.default.createElement(
|
|
56
|
+
react_1.default.createElement(Undo_1.Undo, null)))));
|
|
56
57
|
};
|
|
57
58
|
exports.ListboxEdit = ListboxEdit;
|
|
@@ -25,7 +25,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
26
|
exports.TextEdit = exports.ValueReadonly = void 0;
|
|
27
27
|
/* eslint-disable react/display-name */
|
|
28
|
-
const images_1 = require("./images");
|
|
29
28
|
const common_1 = require("./common");
|
|
30
29
|
const LengthBox_1 = require("./LengthBox");
|
|
31
30
|
const useOnClickOutside_1 = require("../../helpers/useOnClickOutside");
|
|
@@ -33,6 +32,9 @@ const common_2 = require("../../styles/common");
|
|
|
33
32
|
const dom_1 = require("../../helpers/dom");
|
|
34
33
|
const styled_components_1 = __importStar(require("styled-components"));
|
|
35
34
|
const react_1 = __importStar(require("react"));
|
|
35
|
+
const Pencil_1 = require("../../icons/Pencil");
|
|
36
|
+
const Save_1 = require("../../icons/Save");
|
|
37
|
+
const Undo_1 = require("../../icons/Undo");
|
|
36
38
|
exports.ValueReadonly = styled_components_1.default.div `
|
|
37
39
|
${common_1.valueCss};
|
|
38
40
|
word-break: break-word;
|
|
@@ -134,7 +136,7 @@ exports.TextEdit = (0, react_1.forwardRef)((p, ref) => {
|
|
|
134
136
|
e.stopPropagation();
|
|
135
137
|
setEditing(true);
|
|
136
138
|
} },
|
|
137
|
-
react_1.default.createElement(
|
|
139
|
+
react_1.default.createElement(Pencil_1.Pencil, null))))));
|
|
138
140
|
}
|
|
139
141
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
140
142
|
const Comp = singleLine
|
|
@@ -166,10 +168,10 @@ exports.TextEdit = (0, react_1.forwardRef)((p, ref) => {
|
|
|
166
168
|
react_1.default.createElement(LengthBox_1.TextEditLengthBox, { min: value.length, max: maxLength }))),
|
|
167
169
|
allowUndo && (react_1.default.createElement(Right, null,
|
|
168
170
|
valueChange && (react_1.default.createElement(Icon, { style: common_1.iconLeft, onClick: () => valueChange && onSubmit(value, false) },
|
|
169
|
-
react_1.default.createElement(
|
|
171
|
+
react_1.default.createElement(Save_1.Save, null))),
|
|
170
172
|
(valueChange || editing !== !!defaultEditing) && (react_1.default.createElement(Icon, { style: common_1.iconRight, onClick: () => {
|
|
171
173
|
setEditing(!!defaultEditing);
|
|
172
174
|
setValue(defaultValue);
|
|
173
175
|
} },
|
|
174
|
-
react_1.default.createElement(
|
|
176
|
+
react_1.default.createElement(Undo_1.Undo, null)))))));
|
|
175
177
|
});
|
|
@@ -26,13 +26,12 @@ 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
|
-
exports.UserProfileImage = exports.UserImage =
|
|
29
|
+
exports.UserProfileImage = exports.UserImage = void 0;
|
|
30
30
|
const log_1 = require("../../../common/helpers/log");
|
|
31
31
|
const array_1 = require("../../../common/helpers/array");
|
|
32
32
|
const react_1 = __importStar(require("react"));
|
|
33
33
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
34
|
-
|
|
35
|
-
react_1.default.createElement("path", { d: "M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-58.6 0-111.1-26.6-146.1-68.3 17.8-7.7 62.2-23.7 90.3-31.9 2.2-.7 2.6-.8 2.6-10.7 0-10.6-1.2-18.1-3.8-23.6-3.5-7.5-7.7-20.2-9.2-31.6-4.2-4.9-9.9-14.5-13.6-32.9-3.2-16.2-1.7-22.1.4-27.6.2-.6.5-1.2.6-1.8.8-3.7-.3-23.5-3.1-38.8-1.9-10.5.5-32.8 15-51.3 9.1-11.7 26.6-26 58-28h17.5c31.9 2 49.4 16.3 58.5 28 14.5 18.5 16.9 40.8 14.9 51.3-2.8 15.3-3.9 35-3.1 38.8.1.6.4 1.2.6 1.7 2.1 5.5 3.7 11.4.4 27.6-3.7 18.4-9.4 28-13.6 32.9-1.5 11.4-5.7 24-9.2 31.6-3.3 6.9-6.6 15.1-6.6 23.3 0 9.9.4 10 2.7 10.7 26.7 7.9 72.7 23.8 93 32.1-35 41.8-87.5 68.5-146.2 68.5z" })));
|
|
34
|
+
const UserOutline_1 = require("../../icons/UserOutline");
|
|
36
35
|
const Base = styled_components_1.default.div `
|
|
37
36
|
width: 2.5rem;
|
|
38
37
|
height: 2.5rem;
|
|
@@ -52,7 +51,7 @@ const UserImage = ({ image, className, title = 'user image', }) => {
|
|
|
52
51
|
const [fallback, setFallback] = (0, react_1.useState)(false);
|
|
53
52
|
return (react_1.default.createElement(Base, { className: className, title: title },
|
|
54
53
|
image && !fallback && (react_1.default.createElement(Img, { alt: "user", src: image, onError: () => setFallback(true) })),
|
|
55
|
-
(!image || fallback) &&
|
|
54
|
+
(!image || fallback) && UserOutline_1.UserOutline));
|
|
56
55
|
};
|
|
57
56
|
exports.UserImage = UserImage;
|
|
58
57
|
const UserProfileImage = ({ className, user, }) => {
|
|
@@ -27,7 +27,6 @@ __exportStar(require("./HeadersRaw"), exports);
|
|
|
27
27
|
__exportStar(require("./Icon"), exports);
|
|
28
28
|
__exportStar(require("./KebabDots"), exports);
|
|
29
29
|
__exportStar(require("./Loader"), exports);
|
|
30
|
-
__exportStar(require("./LoginButton"), exports);
|
|
31
30
|
__exportStar(require("./LogoutButton"), exports);
|
|
32
31
|
__exportStar(require("./Modal/Modal"), exports);
|
|
33
32
|
__exportStar(require("./Prompt"), exports);
|
|
@@ -0,0 +1,9 @@
|
|
|
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.ChevronRight = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.ChevronRight = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", fill: "currentColor" },
|
|
9
|
+
react_1.default.createElement("path", { fillRule: "evenodd", d: "M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z" })));
|
|
File without changes
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.CrossIcon = void 0;
|
|
7
7
|
const react_1 = __importDefault(require("react"));
|
|
8
8
|
const styled_components_1 = __importDefault(require("styled-components"));
|
|
9
|
-
const
|
|
9
|
+
const Base = styled_components_1.default.svg `
|
|
10
10
|
color: rgb(170, 170, 170);
|
|
11
11
|
margin: auto;
|
|
12
12
|
font-size: 2rem;
|
|
@@ -18,6 +18,6 @@ const CrossIconBase = styled_components_1.default.svg `
|
|
|
18
18
|
color: rgb(136, 136, 136);
|
|
19
19
|
}
|
|
20
20
|
`;
|
|
21
|
-
const CrossIcon = ({ className, onClick, }) => (react_1.default.createElement(
|
|
21
|
+
const CrossIcon = ({ className, onClick, }) => (react_1.default.createElement(Base, { className: className, stroke: "currentColor", fill: "currentColor", strokeWidth: "0", viewBox: "0 0 352 512", xmlns: "http://www.w3.org/2000/svg", onClick: onClick },
|
|
22
22
|
react_1.default.createElement("path", { d: "M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z" })));
|
|
23
23
|
exports.CrossIcon = CrossIcon;
|
|
@@ -0,0 +1,10 @@
|
|
|
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.Door = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.Door = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 20 20" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M3 3h8V1H3a2 2 0 00-2 2v14a2 2 0 002 2h8v-2H3z" }),
|
|
10
|
+
react_1.default.createElement("path", { d: "M19 10l-6-5v4H5v2h8v4l6-5z" })));
|
|
@@ -0,0 +1,9 @@
|
|
|
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.HorizontalDots = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.HorizontalDots = (react_1.default.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", fillRule: "evenodd", clipRule: "evenodd" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M16 12a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0117 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 0110 12zm-8 0a3.001 3.001 0 016 0 3.001 3.001 0 01-6 0zm1 0a2 2 0 114.001.001A2 2 0 013 12z" })));
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Magnify = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.Magnify = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 490 490" },
|
|
9
|
+
react_1.default.createElement("path", { fill: "none", stroke: "#000", strokeWidth: "36", strokeLinecap: "round", d: "M280 278a153 153 0 1 0-2 2l170 170m-91-117 110 110-26 26-110-110" })));
|
|
@@ -0,0 +1,12 @@
|
|
|
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.Pencil = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Pencil = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M9.6 40.4l2.5-9.9L27 15.6l7.4 7.4-14.9 14.9-9.9 2.5zm4.3-8.9l-1.5 6.1 6.1-1.5L31.6 23 27 18.4 13.9 31.5z" }),
|
|
10
|
+
react_1.default.createElement("path", { d: "M17.8 37.3c-.6-2.5-2.6-4.5-5.1-5.1l.5-1.9c3.2.8 5.7 3.3 6.5 6.5l-1.9.5z" }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M29.298 19.287l1.414 1.414-13.01 13.02-1.414-1.412zM11 39l2.9-.7c-.3-1.1-1.1-1.9-2.2-2.2L11 39zM35 22.4L27.6 15l3-3 .5.1c3.6.5 6.4 3.3 6.9 6.9l.1.5-3.1 2.9zM30.4 15l4.6 4.6.9-.9c-.5-2.3-2.3-4.1-4.6-4.6l-.9.9z" })));
|
|
12
|
+
exports.Pencil = Pencil;
|
|
@@ -0,0 +1,11 @@
|
|
|
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.Save = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Save = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M50 12c-21 0-38 17-38 38s17 38 38 38 38-17 38-38-17-38-38-38zm0 72c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm22.9-46.9c-.8-.8-2-.8-2.8 0L44.6 62.7 33.9 52c-.8-.8-2.1-.8-2.8 0-.8.8-.8 2.1 0 2.8l12.1 12.1c.4.4.9.6 1.4.6.5 0 1-.2 1.4-.6l26.9-27c.8-.8.8-2 0-2.8z" }),
|
|
10
|
+
react_1.default.createElement("path", { fill: "#00F", d: "M1644-1210V474H-140v-1684h1784m8-8H-148V482h1800v-1700z" })));
|
|
11
|
+
exports.Save = Save;
|
|
@@ -0,0 +1,12 @@
|
|
|
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.Undo = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const Undo = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" },
|
|
9
|
+
react_1.default.createElement("g", { fill: "#134563" },
|
|
10
|
+
react_1.default.createElement("path", { d: "M32.1 51.9c-7.8 0-14.9-4.6-18.1-11.6l2.6-1.2c2.8 6 8.9 9.9 15.5 9.9 9.4 0 17-7.6 17-17s-7.6-17-17-17C25 15 19 19.4 16.5 26.4l-2.7-1c2.9-8.1 10-13.3 18.3-13.3C43.1 12.1 52 21 52 32s-9 19.9-19.9 19.9" }),
|
|
11
|
+
react_1.default.createElement("path", { d: "M24.4 27.4H12V15.1h3.1v9.2h9.3v3.1" }))));
|
|
12
|
+
exports.Undo = Undo;
|
|
@@ -0,0 +1,9 @@
|
|
|
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.UserOutline = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
exports.UserOutline = (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 512 512" },
|
|
9
|
+
react_1.default.createElement("path", { d: "M256 48C141.1 48 48 141.1 48 256s93.1 208 208 208 208-93.1 208-208S370.9 48 256 48zm0 398.7c-58.6 0-111.1-26.6-146.1-68.3 17.8-7.7 62.2-23.7 90.3-31.9 2.2-.7 2.6-.8 2.6-10.7 0-10.6-1.2-18.1-3.8-23.6-3.5-7.5-7.7-20.2-9.2-31.6-4.2-4.9-9.9-14.5-13.6-32.9-3.2-16.2-1.7-22.1.4-27.6.2-.6.5-1.2.6-1.8.8-3.7-.3-23.5-3.1-38.8-1.9-10.5.5-32.8 15-51.3 9.1-11.7 26.6-26 58-28h17.5c31.9 2 49.4 16.3 58.5 28 14.5 18.5 16.9 40.8 14.9 51.3-2.8 15.3-3.9 35-3.1 38.8.1.6.4 1.2.6 1.7 2.1 5.5 3.7 11.4.4 27.6-3.7 18.4-9.4 28-13.6 32.9-1.5 11.4-5.7 24-9.2 31.6-3.3 6.9-6.6 15.1-6.6 23.3 0 9.9.4 10 2.7 10.7 26.7 7.9 72.7 23.8 93 32.1-35 41.8-87.5 68.5-146.2 68.5z" })));
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './ChevronRight';
|
|
2
|
+
export * from './CrossIcon';
|
|
3
|
+
export * from './Door';
|
|
4
|
+
export * from './HorizontalDots';
|
|
5
|
+
export * from './Magnify';
|
|
6
|
+
export * from './Pencil';
|
|
7
|
+
export * from './Save';
|
|
8
|
+
export * from './Undo';
|
|
9
|
+
export * from './UserOutline';
|
|
@@ -0,0 +1,25 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ChevronRight"), exports);
|
|
18
|
+
__exportStar(require("./CrossIcon"), exports);
|
|
19
|
+
__exportStar(require("./Door"), exports);
|
|
20
|
+
__exportStar(require("./HorizontalDots"), exports);
|
|
21
|
+
__exportStar(require("./Magnify"), exports);
|
|
22
|
+
__exportStar(require("./Pencil"), exports);
|
|
23
|
+
__exportStar(require("./Save"), exports);
|
|
24
|
+
__exportStar(require("./Undo"), exports);
|
|
25
|
+
__exportStar(require("./UserOutline"), exports);
|
package/dist/ui/index.d.ts
CHANGED
package/dist/ui/index.js
CHANGED
|
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./helpers"), exports);
|
|
18
|
+
__exportStar(require("./icons"), exports);
|
|
18
19
|
__exportStar(require("./styles"), exports);
|
|
19
20
|
__exportStar(require("./components"), exports);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ag-common",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.316",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"author": "Andrei Gec <@andreigec> (https://gec.dev/)",
|
|
@@ -42,22 +42,12 @@
|
|
|
42
42
|
"@storybook/react": "6.5.10",
|
|
43
43
|
"@storybook/theming": "6.5.10",
|
|
44
44
|
"@types/jsonwebtoken": "8.5.8",
|
|
45
|
-
"@types/node": "18.7.
|
|
45
|
+
"@types/node": "18.7.6",
|
|
46
46
|
"@types/react": "18.0.17",
|
|
47
47
|
"@types/react-dom": "18.0.6",
|
|
48
48
|
"@types/styled-components": "5.1.26",
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "5.33.1",
|
|
50
|
-
"@typescript-eslint/parser": "5.33.1",
|
|
51
49
|
"cross-env": "7.0.3",
|
|
52
|
-
"eslint": "
|
|
53
|
-
"eslint-config-airbnb-typescript": "17.0.0",
|
|
54
|
-
"eslint-config-prettier": "8.5.0",
|
|
55
|
-
"eslint-plugin-import": "2.26.0",
|
|
56
|
-
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
57
|
-
"eslint-plugin-prettier": "4.2.1",
|
|
58
|
-
"eslint-plugin-react": "7.30.1",
|
|
59
|
-
"eslint-plugin-react-hooks": "4.6.0",
|
|
60
|
-
"prettier": "2.7.1",
|
|
50
|
+
"eslint-config-e7npm": "0.0.5",
|
|
61
51
|
"rimraf": "3.0.2",
|
|
62
52
|
"styled-components": "5.3.5"
|
|
63
53
|
},
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare const LoginButton: ({ className, text, invert, savePath, loginPath, style, }: {
|
|
3
|
-
invert?: boolean | undefined;
|
|
4
|
-
text: string;
|
|
5
|
-
className?: string | undefined;
|
|
6
|
-
/**
|
|
7
|
-
* pass in request.url.path to save redirect. undefined will not set redirect
|
|
8
|
-
*/
|
|
9
|
-
savePath: string | undefined;
|
|
10
|
-
loginPath: (state?: Record<string, unknown> | undefined) => string;
|
|
11
|
-
style?: Record<string, string | number | boolean> | undefined;
|
|
12
|
-
}) => JSX.Element;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.LoginButton = void 0;
|
|
7
|
-
const Button_1 = require("../Button");
|
|
8
|
-
const react_1 = __importDefault(require("react"));
|
|
9
|
-
const styled_components_1 = __importDefault(require("styled-components"));
|
|
10
|
-
const Base = styled_components_1.default.a `
|
|
11
|
-
${Button_1.ButtonBase}
|
|
12
|
-
`;
|
|
13
|
-
const LoginButton = ({ className, text, invert, savePath, loginPath, style, }) => {
|
|
14
|
-
const state = !savePath
|
|
15
|
-
? undefined
|
|
16
|
-
: {
|
|
17
|
-
redirect: savePath,
|
|
18
|
-
};
|
|
19
|
-
const lp = loginPath(state);
|
|
20
|
-
return (react_1.default.createElement(Base, { style: style, href: lp, title: text, "data-invert": invert, "data-disabled": false, className: className, "data-theme": "green" }, text));
|
|
21
|
-
};
|
|
22
|
-
exports.LoginButton = LoginButton;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.SaveIcon = exports.PencilIcon = exports.UndoIcon = void 0;
|
|
7
|
-
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const UndoIcon = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 64 64" },
|
|
9
|
-
react_1.default.createElement("g", { fill: "#134563" },
|
|
10
|
-
react_1.default.createElement("path", { d: "M32.1 51.9c-7.8 0-14.9-4.6-18.1-11.6l2.6-1.2c2.8 6 8.9 9.9 15.5 9.9 9.4 0 17-7.6 17-17s-7.6-17-17-17C25 15 19 19.4 16.5 26.4l-2.7-1c2.9-8.1 10-13.3 18.3-13.3C43.1 12.1 52 21 52 32s-9 19.9-19.9 19.9" }),
|
|
11
|
-
react_1.default.createElement("path", { d: "M24.4 27.4H12V15.1h3.1v9.2h9.3v3.1" }))));
|
|
12
|
-
exports.UndoIcon = UndoIcon;
|
|
13
|
-
const PencilIcon = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 50 50" },
|
|
14
|
-
react_1.default.createElement("path", { d: "M9.6 40.4l2.5-9.9L27 15.6l7.4 7.4-14.9 14.9-9.9 2.5zm4.3-8.9l-1.5 6.1 6.1-1.5L31.6 23 27 18.4 13.9 31.5z" }),
|
|
15
|
-
react_1.default.createElement("path", { d: "M17.8 37.3c-.6-2.5-2.6-4.5-5.1-5.1l.5-1.9c3.2.8 5.7 3.3 6.5 6.5l-1.9.5z" }),
|
|
16
|
-
react_1.default.createElement("path", { d: "M29.298 19.287l1.414 1.414-13.01 13.02-1.414-1.412zM11 39l2.9-.7c-.3-1.1-1.1-1.9-2.2-2.2L11 39zM35 22.4L27.6 15l3-3 .5.1c3.6.5 6.4 3.3 6.9 6.9l.1.5-3.1 2.9zM30.4 15l4.6 4.6.9-.9c-.5-2.3-2.3-4.1-4.6-4.6l-.9.9z" })));
|
|
17
|
-
exports.PencilIcon = PencilIcon;
|
|
18
|
-
const SaveIcon = () => (react_1.default.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 100 100" },
|
|
19
|
-
react_1.default.createElement("path", { d: "M50 12c-21 0-38 17-38 38s17 38 38 38 38-17 38-38-17-38-38-38zm0 72c-18.8 0-34-15.2-34-34s15.2-34 34-34 34 15.2 34 34-15.2 34-34 34zm22.9-46.9c-.8-.8-2-.8-2.8 0L44.6 62.7 33.9 52c-.8-.8-2.1-.8-2.8 0-.8.8-.8 2.1 0 2.8l12.1 12.1c.4.4.9.6 1.4.6.5 0 1-.2 1.4-.6l26.9-27c.8-.8.8-2 0-2.8z" }),
|
|
20
|
-
react_1.default.createElement("path", { fill: "#00F", d: "M1644-1210V474H-140v-1684h1784m8-8H-148V482h1800v-1700z" })));
|
|
21
|
-
exports.SaveIcon = SaveIcon;
|