@searchspring/snap-preact-components 0.47.0 → 0.49.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/Atoms/Icon/Icon.d.ts +13 -4
- package/dist/cjs/components/Atoms/Icon/Icon.d.ts.map +1 -1
- package/dist/cjs/components/Atoms/Icon/Icon.js +29 -7
- package/dist/cjs/components/Atoms/Icon/paths.d.ts +2 -44
- package/dist/cjs/components/Atoms/Icon/paths.d.ts.map +1 -1
- package/dist/cjs/components/Atoms/Icon/paths.js +46 -0
- package/dist/cjs/types.d.ts +1 -1
- package/dist/cjs/types.d.ts.map +1 -1
- package/dist/esm/components/Atoms/Icon/Icon.d.ts +13 -4
- package/dist/esm/components/Atoms/Icon/Icon.d.ts.map +1 -1
- package/dist/esm/components/Atoms/Icon/Icon.js +17 -6
- package/dist/esm/components/Atoms/Icon/paths.d.ts +2 -44
- package/dist/esm/components/Atoms/Icon/paths.d.ts.map +1 -1
- package/dist/esm/components/Atoms/Icon/paths.js +46 -0
- package/dist/esm/types.d.ts +1 -1
- package/dist/esm/types.d.ts.map +1 -1
- package/package.json +11 -11
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { ComponentChildren } from 'preact';
|
|
2
4
|
import { ComponentProps } from '../../../types';
|
|
3
5
|
import { IconType } from './paths';
|
|
4
6
|
export declare function Icon(properties: IconProps): JSX.Element;
|
|
7
|
+
export declare type SVGPathElement = {
|
|
8
|
+
type: string;
|
|
9
|
+
attributes: {
|
|
10
|
+
[attribute: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
5
13
|
export interface IconProps extends ComponentProps {
|
|
6
14
|
color?: string;
|
|
7
15
|
icon?: IconType | string;
|
|
8
|
-
path?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
path?: string | SVGPathElement[];
|
|
17
|
+
children?: ComponentChildren;
|
|
18
|
+
size?: string | number;
|
|
19
|
+
width?: string | number;
|
|
20
|
+
height?: string | number;
|
|
12
21
|
viewBox?: string;
|
|
13
22
|
}
|
|
14
23
|
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/Icon.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,eAAe;AACf,OAAO,EAAe,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAMxD,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAa,QAAQ,EAAE,MAAM,SAAS,CAAC;AAa9C,wBAAgB,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAkDvD;AAED,oBAAY,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACX,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;KAC5B,CAAC;CACF,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,cAAc;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -10,6 +10,17 @@ var __assign = (this && this.__assign) || function () {
|
|
|
10
10
|
};
|
|
11
11
|
return __assign.apply(this, arguments);
|
|
12
12
|
};
|
|
13
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
16
|
+
t[p] = s[p];
|
|
17
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
18
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
19
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
20
|
+
t[p[i]] = s[p[i]];
|
|
21
|
+
}
|
|
22
|
+
return t;
|
|
23
|
+
};
|
|
13
24
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
25
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
26
|
};
|
|
@@ -23,12 +34,13 @@ var providers_1 = require("../../../providers");
|
|
|
23
34
|
var paths_1 = require("./paths");
|
|
24
35
|
var CSS = {
|
|
25
36
|
icon: function (_a) {
|
|
26
|
-
var _b;
|
|
37
|
+
var _b, _c;
|
|
27
38
|
var color = _a.color, height = _a.height, width = _a.width, size = _a.size, theme = _a.theme;
|
|
28
39
|
return (0, react_1.css)({
|
|
29
40
|
fill: color || ((_b = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _b === void 0 ? void 0 : _b.primary),
|
|
30
|
-
|
|
31
|
-
|
|
41
|
+
stroke: color || ((_c = theme === null || theme === void 0 ? void 0 : theme.colors) === null || _c === void 0 ? void 0 : _c.primary),
|
|
42
|
+
width: isNaN(Number(width || size)) ? width || size : "".concat(width || size, "px"),
|
|
43
|
+
height: isNaN(Number(height || size)) ? height || size : "".concat(height || size, "px"),
|
|
32
44
|
position: 'relative',
|
|
33
45
|
});
|
|
34
46
|
},
|
|
@@ -40,8 +52,9 @@ function Icon(properties) {
|
|
|
40
52
|
var props = __assign(__assign(__assign({
|
|
41
53
|
// default props
|
|
42
54
|
size: '16px', viewBox: '0 0 56 56' }, (_a = globalTheme === null || globalTheme === void 0 ? void 0 : globalTheme.components) === null || _a === void 0 ? void 0 : _a.icon), properties), (_c = (_b = properties.theme) === null || _b === void 0 ? void 0 : _b.components) === null || _c === void 0 ? void 0 : _c.icon);
|
|
43
|
-
var color = props.color, icon = props.icon, path = props.path, size = props.size, width = props.width, height = props.height, viewBox = props.viewBox, disableStyles = props.disableStyles, className = props.className, style = props.style;
|
|
55
|
+
var color = props.color, icon = props.icon, path = props.path, children = props.children, size = props.size, width = props.width, height = props.height, viewBox = props.viewBox, disableStyles = props.disableStyles, className = props.className, style = props.style, otherProps = __rest(props, ["color", "icon", "path", "children", "size", "width", "height", "viewBox", "disableStyles", "className", "style"]);
|
|
44
56
|
var iconPath = paths_1.iconPaths[icon] || path;
|
|
57
|
+
var pathType = typeof iconPath;
|
|
45
58
|
var styling = {};
|
|
46
59
|
if (!disableStyles) {
|
|
47
60
|
styling.css = [CSS.icon({ color: color, width: width, height: height, size: size, theme: theme }), style];
|
|
@@ -49,8 +62,17 @@ function Icon(properties) {
|
|
|
49
62
|
else if (style) {
|
|
50
63
|
styling.css = [style];
|
|
51
64
|
}
|
|
52
|
-
return iconPath ? ((0, react_1.jsx)(providers_1.CacheProvider, null,
|
|
53
|
-
(0, react_1.jsx)("svg", __assign({}, styling, { className: (0, classnames_1.default)('ss__icon', icon ? "ss__icon--".concat(icon) : null, className), viewBox: viewBox, xmlns: "http://www.w3.org/2000/svg", width: disableStyles ? width || size : undefined, height: disableStyles ? height || size : undefined }),
|
|
54
|
-
(
|
|
65
|
+
return children || (iconPath && (pathType === 'string' || (pathType === 'object' && Array.isArray(iconPath)))) ? ((0, react_1.jsx)(providers_1.CacheProvider, null,
|
|
66
|
+
(0, react_1.jsx)("svg", __assign({}, styling, { className: (0, classnames_1.default)('ss__icon', icon ? "ss__icon--".concat(icon) : null, className), viewBox: viewBox, xmlns: "http://www.w3.org/2000/svg", width: disableStyles ? width || size : undefined, height: disableStyles ? height || size : undefined }, otherProps), (function () {
|
|
67
|
+
if (children) {
|
|
68
|
+
return children;
|
|
69
|
+
}
|
|
70
|
+
else if (pathType === 'string') {
|
|
71
|
+
return (0, react_1.jsx)("path", { fill: disableStyles ? color : undefined, d: iconPath });
|
|
72
|
+
}
|
|
73
|
+
else if (iconPath && pathType === 'object' && Array.isArray(iconPath)) {
|
|
74
|
+
return iconPath.map(function (p, i) { return (0, react_1.jsx)(p.type, __assign({ key: i }, p.attributes)); });
|
|
75
|
+
}
|
|
76
|
+
})()))) : ((0, react_1.jsx)(preact_1.Fragment, null));
|
|
55
77
|
}
|
|
56
78
|
exports.Icon = Icon;
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
+
import { SVGPathElement } from './Icon';
|
|
1
2
|
export declare type IconType = keyof typeof iconPaths;
|
|
2
3
|
export declare const iconPaths: {
|
|
3
|
-
|
|
4
|
-
'angle-down': string;
|
|
5
|
-
'angle-left': string;
|
|
6
|
-
'angle-right': string;
|
|
7
|
-
ban: string;
|
|
8
|
-
check: string;
|
|
9
|
-
'check-thin': string;
|
|
10
|
-
'chevron-up': string;
|
|
11
|
-
'chevron-down': string;
|
|
12
|
-
'chevron-left': string;
|
|
13
|
-
'chevron-right': string;
|
|
14
|
-
circle: string;
|
|
15
|
-
close: string;
|
|
16
|
-
'close-thin': string;
|
|
17
|
-
cog: string;
|
|
18
|
-
cogs: string;
|
|
19
|
-
dollar: string;
|
|
20
|
-
envelope: string;
|
|
21
|
-
error: string;
|
|
22
|
-
eye: string;
|
|
23
|
-
'eye-thin': string;
|
|
24
|
-
filter: string;
|
|
25
|
-
heart: string;
|
|
26
|
-
'heart-o': string;
|
|
27
|
-
info: string;
|
|
28
|
-
'layout-grid': string;
|
|
29
|
-
'layout-large': string;
|
|
30
|
-
'layout-list': string;
|
|
31
|
-
minus: string;
|
|
32
|
-
'minus-thin': string;
|
|
33
|
-
plus: string;
|
|
34
|
-
'plus-thin': string;
|
|
35
|
-
'rotate-left': string;
|
|
36
|
-
'rotate-right': string;
|
|
37
|
-
search: string;
|
|
38
|
-
sort: string;
|
|
39
|
-
spinner: string;
|
|
40
|
-
square: string;
|
|
41
|
-
star: string;
|
|
42
|
-
'star-half': string;
|
|
43
|
-
'star-o': string;
|
|
44
|
-
'video-camera': string;
|
|
45
|
-
warn: string;
|
|
46
|
-
wrench: string;
|
|
4
|
+
[name: string]: string | SVGPathElement[];
|
|
47
5
|
};
|
|
48
6
|
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/paths.tsx"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/paths.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,oBAAY,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,EAAE,CAAA;CAyHlE,CAAC"}
|
|
@@ -24,6 +24,52 @@ exports.iconPaths = {
|
|
|
24
24
|
eye: 'M28 20.374q3.098 0 5.362 2.264t2.264 5.362-2.264 5.362-5.362 2.264-5.362-2.264-2.264-5.362 2.264-5.362 5.362-2.264zM28 40.749q5.243 0 8.996-3.753t3.753-8.996-3.753-8.996-8.996-3.753-8.996 3.753-3.753 8.996 3.753 8.996 8.996 3.753zM28 8.936q9.413 0 17.038 5.243t10.962 13.821q-3.336 8.579-10.962 13.821t-17.038 5.243-17.038-5.243-10.962-13.821q3.336-8.579 10.962-13.821t17.038-5.243z',
|
|
25
25
|
'eye-thin': 'M52 28c-2.969-4.594-7.031-8.531-11.906-11.031 1.25 2.125 1.906 4.563 1.906 7.031 0 7.719-6.281 14-14 14s-14-6.281-14-14c0-2.469 0.656-4.906 1.906-7.031-4.875 2.5-8.938 6.437-11.906 11.031 5.344 8.25 13.969 14 24 14s18.656-5.75 24-14zM29.5 16c0-0.812-0.687-1.5-1.5-1.5-5.219 0-9.5 4.281-9.5 9.5 0 0.812 0.687 1.5 1.5 1.5s1.5-0.687 1.5-1.5c0-3.563 2.937-6.5 6.5-6.5 0.812 0 1.5-0.687 1.5-1.5zM56 28c0 0.781-0.25 1.5-0.625 2.156-5.75 9.469-16.281 15.844-27.375 15.844s-21.625-6.406-27.375-15.844c-0.375-0.656-0.625-1.375-0.625-2.156s0.25-1.5 0.625-2.156c5.75-9.437 16.281-15.844 27.375-15.844s21.625 6.406 27.375 15.844c0.375 0.656 0.625 1.375 0.625 2.156z',
|
|
26
26
|
filter: 'M25.519 21.889c0 0-0.241-4.089-0.241-4.089s0-13.471 0-13.471c0.002-1.162-0.005-2.636 0.825-3.553 1.104-1.224 3.156-0.929 4.022 0.435 0.498 0.787 0.443 1.744 0.445 2.636 0 0 0 25.258 0 25.258s-5.052 0-5.052 0c0 0 0-7.217 0-7.217zM42.358 3.848c0.019-1.576 0.281-3.476 2.165-3.794 2.798-0.471 3.125 2.24 3.127 4.275 0 0 0 11.546 0 11.546s-2.646-0.233-2.646-0.233c0 0-2.646 0.233-2.646 0.233s0-12.028 0-12.028zM8.44 3.848c0.014-1.181 0.147-2.442 1.229-3.163 1.484-0.986 3.286-0.156 3.825 1.479 0.322 0.984 0.238 2.545 0.238 3.608 0 0 0 6.014 0 6.014s-2.646-0.197-2.646-0.197c0 0-2.646 0.197-2.646 0.197s0-7.938 0-7.938zM13.010 13.556c5.509 1.855 5.477 10.377-1.203 11.551-5.121 0.902-8.455-5.015-5.867-9.23 0.907-1.475 2.314-2.151 3.943-2.535 1.176-0.166 1.985-0.171 3.127 0.214zM46.207 28.993c-5.564 1.051-8.874-4.833-6.348-9.028 1.046-1.737 2.533-2.357 4.424-2.774 7.57-0.883 9.36 10.399 1.924 11.802zM13.732 26.46c0 0 0 24.536 0 24.536-0.002 1.215-0.067 3.079-0.844 4.063-1.066 1.352-3.094 1.222-3.984-0.226-0.496-0.808-0.462-1.958-0.464-2.875 0 0 0-25.499 0-25.499s5.292 0 5.292 0zM33.219 33.436c1.936 3.286-0.019 8.15-3.851 8.821-1.169 0.207-3.019 0.135-4.089-0.402-4.71-2.355-4.39-9.803 1.443-11.193 2.673-0.375 5.056 0.33 6.497 2.774zM45.004 30.77c0 0 2.646-0.221 2.646-0.221s0 21.409 0 21.409c-0.002 1.034 0.034 2.215-0.649 3.074-0.977 1.224-3.017 1.224-3.993 0-0.637-0.799-0.645-1.867-0.649-2.834 0 0 0-21.65 0-21.65s2.646 0.221 2.646 0.221zM27.684 43.998c0 0 2.887-0.219 2.887-0.219s0 8.66 0 8.66c-0.022 1.758-0.654 3.861-2.887 3.517-1.912-0.296-2.384-2.114-2.406-3.757 0 0 0-8.419 0-8.419s2.406 0.219 2.406 0.219z',
|
|
27
|
+
filters: [
|
|
28
|
+
{
|
|
29
|
+
type: 'line',
|
|
30
|
+
attributes: {
|
|
31
|
+
x1: '1',
|
|
32
|
+
y1: '17',
|
|
33
|
+
x2: '55',
|
|
34
|
+
y2: '17',
|
|
35
|
+
'stroke-width': '4',
|
|
36
|
+
'stroke-linecap': 'round',
|
|
37
|
+
'stroke-linejoin': 'round',
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
type: 'line',
|
|
42
|
+
attributes: {
|
|
43
|
+
x1: '1',
|
|
44
|
+
y1: '39',
|
|
45
|
+
x2: '55',
|
|
46
|
+
y2: '39',
|
|
47
|
+
'stroke-width': '4',
|
|
48
|
+
'stroke-linecap': 'round',
|
|
49
|
+
'stroke-linejoin': 'round',
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
type: 'circle',
|
|
54
|
+
attributes: {
|
|
55
|
+
cx: '18',
|
|
56
|
+
cy: '17',
|
|
57
|
+
r: '8',
|
|
58
|
+
fill: 'white',
|
|
59
|
+
'stroke-width': '4',
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
type: 'circle',
|
|
64
|
+
attributes: {
|
|
65
|
+
cx: '38',
|
|
66
|
+
cy: '39',
|
|
67
|
+
r: '8',
|
|
68
|
+
fill: 'white',
|
|
69
|
+
'stroke-width': '4',
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
],
|
|
27
73
|
heart: 'M28 52c-0.5 0-1-0.188-1.375-0.563l-19.5-18.813c-0.25-0.219-7.125-6.5-7.125-14 0-9.156 5.594-14.625 14.938-14.625 5.469 0 10.594 4.312 13.062 6.75 2.469-2.437 7.594-6.75 13.062-6.75 9.344 0 14.938 5.469 14.938 14.625 0 7.5-6.875 13.781-7.156 14.063l-19.469 18.75c-0.375 0.375-0.875 0.563-1.375 0.563z',
|
|
28
74
|
'heart-o': 'M52 18.625c0-8.781-5.937-10.625-10.938-10.625-4.656 0-9.906 5.031-11.531 6.969-0.75 0.906-2.313 0.906-3.063 0-1.625-1.938-6.875-6.969-11.531-6.969-5 0-10.938 1.844-10.938 10.625 0 5.719 5.781 11.031 5.844 11.094l18.156 17.5 18.125-17.469c0.094-0.094 5.875-5.406 5.875-11.125zM56 18.625c0 7.5-6.875 13.781-7.156 14.063l-19.469 18.75c-0.375 0.375-0.875 0.563-1.375 0.563s-1-0.188-1.375-0.563l-19.5-18.813c-0.25-0.219-7.125-6.5-7.125-14 0-9.156 5.594-14.625 14.938-14.625 5.469 0 10.594 4.312 13.062 6.75 2.469-2.437 7.594-6.75 13.062-6.75 9.344 0 14.938 5.469 14.938 14.625z',
|
|
29
75
|
info: 'M56.1425 28.2143C56.1425 43.6783 43.6065 56.2143 28.1425 56.2143C12.6786 56.2143 0.142578 43.6783 0.142578 28.2143C0.142578 12.7504 12.6786 0.214325 28.1425 0.214325C43.6065 0.214325 56.1425 12.7504 56.1425 28.2143ZM32.2543 16.7406C33.1441 15.8361 33.587 14.7358 33.587 13.4469C33.587 12.1603 33.1441 11.0578 32.2543 10.1417C31.3665 9.22792 30.2961 8.76988 29.0452 8.76988C27.7901 8.76988 26.7156 9.22562 25.8194 10.1417C24.9232 11.0578 24.4741 12.1603 24.4741 13.4469C24.4741 14.7358 24.9232 15.8361 25.8194 16.7406C26.7177 17.6498 27.7901 18.1032 29.0452 18.1032C30.2961 18.1032 31.3665 17.6498 32.2543 16.7406ZM29.9419 45.5994C30.7373 45.2628 31.8057 44.7746 33.1417 44.1326C33.1417 44.1326 32.9859 42.1999 32.4746 42.3716C31.9633 42.5432 31.5033 42.6302 31.0983 42.6302C30.237 42.6302 29.6304 42.4585 29.2785 42.113C28.9285 41.7675 28.7544 41.1188 28.7544 40.1669C28.7544 39.7902 28.8076 39.2285 28.9175 38.4928C29.0238 37.7527 29.1466 37.0951 29.2822 36.52L30.9462 29.3555C31.1093 28.6979 31.2211 27.9756 31.2816 27.1865C31.342 26.3996 31.3714 25.849 31.3714 25.5369C31.3714 24.0255 30.9352 22.7995 30.0647 21.8543C29.1942 20.9091 27.9536 20.4365 26.3464 20.4365C25.4521 20.4365 24.5065 20.6305 23.5059 21.0161C22.5053 21.4018 21.4588 21.8654 20.3648 22.4071C20.3648 22.4071 20.6323 24.3198 21.0868 24.157C21.5395 23.9943 21.983 23.9096 22.4155 23.9096C23.2969 23.9096 23.8907 24.0924 24.2022 24.4535C24.5138 24.8146 24.6695 25.4566 24.6695 26.3751C24.6695 26.8833 24.6201 27.4473 24.5174 28.0603C24.4167 28.6778 24.2902 29.3309 24.1418 30.0198L22.4704 37.2111C22.322 37.9667 22.2139 38.6444 22.1461 39.2441C22.0783 39.8437 22.0453 40.4322 22.0453 41.0051C22.0453 42.483 22.4943 43.7024 23.3922 44.6632C24.2902 45.6217 25.5492 46.1032 27.1674 46.1032C28.2211 46.1032 29.1466 45.936 29.9419 45.5994Z',
|
package/dist/cjs/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Theme } from './providers/theme';
|
|
|
4
4
|
export interface ComponentProps extends RenderableProps<any> {
|
|
5
5
|
className?: string;
|
|
6
6
|
disableStyles?: boolean;
|
|
7
|
-
style?: string | Record<string,
|
|
7
|
+
style?: string | Record<string, any>;
|
|
8
8
|
theme?: Theme;
|
|
9
9
|
}
|
|
10
10
|
export declare enum Layout {
|
package/dist/cjs/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,GAAG,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,GAAG,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACd;AAED,oBAAY,MAAM;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;CACb;AAED,oBAAY,UAAU,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGnD,oBAAY,SAAS;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,aAAa,kBAAkB;CAC/B;AAGD,oBAAY,YAAY;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;CACvB;AAED,oBAAY,gBAAgB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC9B,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACxB,CAAC;AAEF,oBAAY,UAAU,GAAG,KAAK,CAAC,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC"}
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
/** @jsx jsx */
|
|
3
|
+
import { ComponentChildren } from 'preact';
|
|
2
4
|
import { ComponentProps } from '../../../types';
|
|
3
5
|
import { IconType } from './paths';
|
|
4
6
|
export declare function Icon(properties: IconProps): JSX.Element;
|
|
7
|
+
export declare type SVGPathElement = {
|
|
8
|
+
type: string;
|
|
9
|
+
attributes: {
|
|
10
|
+
[attribute: string]: string;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
5
13
|
export interface IconProps extends ComponentProps {
|
|
6
14
|
color?: string;
|
|
7
15
|
icon?: IconType | string;
|
|
8
|
-
path?: string;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
path?: string | SVGPathElement[];
|
|
17
|
+
children?: ComponentChildren;
|
|
18
|
+
size?: string | number;
|
|
19
|
+
width?: string | number;
|
|
20
|
+
height?: string | number;
|
|
12
21
|
viewBox?: string;
|
|
13
22
|
}
|
|
14
23
|
//# sourceMappingURL=Icon.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/Icon.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/Icon.tsx"],"names":[],"mappings":";AAAA,eAAe;AACf,OAAO,EAAe,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAMxD,OAAO,EAAE,cAAc,EAAc,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAa,QAAQ,EAAE,MAAM,SAAS,CAAC;AAa9C,wBAAgB,IAAI,CAAC,UAAU,EAAE,SAAS,GAAG,GAAG,CAAC,OAAO,CAkDvD;AAED,oBAAY,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE;QACX,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;KAC5B,CAAC;CACF,CAAC;AAEF,MAAM,WAAW,SAAU,SAAQ,cAAc;IAChD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,cAAc,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,iBAAiB,CAAC;IAC7B,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -7,8 +7,9 @@ import { iconPaths } from './paths';
|
|
|
7
7
|
const CSS = {
|
|
8
8
|
icon: ({ color, height, width, size, theme }) => css({
|
|
9
9
|
fill: color || theme?.colors?.primary,
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
stroke: color || theme?.colors?.primary,
|
|
11
|
+
width: isNaN(Number(width || size)) ? width || size : `${width || size}px`,
|
|
12
|
+
height: isNaN(Number(height || size)) ? height || size : `${height || size}px`,
|
|
12
13
|
position: 'relative',
|
|
13
14
|
}),
|
|
14
15
|
};
|
|
@@ -25,8 +26,9 @@ export function Icon(properties) {
|
|
|
25
26
|
...properties,
|
|
26
27
|
...properties.theme?.components?.icon,
|
|
27
28
|
};
|
|
28
|
-
const { color, icon, path, size, width, height, viewBox, disableStyles, className, style } = props;
|
|
29
|
+
const { color, icon, path, children, size, width, height, viewBox, disableStyles, className, style, ...otherProps } = props;
|
|
29
30
|
const iconPath = iconPaths[icon] || path;
|
|
31
|
+
const pathType = typeof iconPath;
|
|
30
32
|
const styling = {};
|
|
31
33
|
if (!disableStyles) {
|
|
32
34
|
styling.css = [CSS.icon({ color, width, height, size, theme }), style];
|
|
@@ -34,7 +36,16 @@ export function Icon(properties) {
|
|
|
34
36
|
else if (style) {
|
|
35
37
|
styling.css = [style];
|
|
36
38
|
}
|
|
37
|
-
return iconPath ? (jsx(CacheProvider, null,
|
|
38
|
-
jsx("svg", { ...styling, className: classnames('ss__icon', icon ? `ss__icon--${icon}` : null, className), viewBox: viewBox, xmlns: "http://www.w3.org/2000/svg", width: disableStyles ? width || size : undefined, height: disableStyles ? height || size : undefined },
|
|
39
|
-
|
|
39
|
+
return children || (iconPath && (pathType === 'string' || (pathType === 'object' && Array.isArray(iconPath)))) ? (jsx(CacheProvider, null,
|
|
40
|
+
jsx("svg", { ...styling, className: classnames('ss__icon', icon ? `ss__icon--${icon}` : null, className), viewBox: viewBox, xmlns: "http://www.w3.org/2000/svg", width: disableStyles ? width || size : undefined, height: disableStyles ? height || size : undefined, ...otherProps }, (() => {
|
|
41
|
+
if (children) {
|
|
42
|
+
return children;
|
|
43
|
+
}
|
|
44
|
+
else if (pathType === 'string') {
|
|
45
|
+
return jsx("path", { fill: disableStyles ? color : undefined, d: iconPath });
|
|
46
|
+
}
|
|
47
|
+
else if (iconPath && pathType === 'object' && Array.isArray(iconPath)) {
|
|
48
|
+
return iconPath.map((p, i) => jsx(p.type, { key: i, ...p.attributes }));
|
|
49
|
+
}
|
|
50
|
+
})()))) : (jsx(Fragment, null));
|
|
40
51
|
}
|
|
@@ -1,48 +1,6 @@
|
|
|
1
|
+
import { SVGPathElement } from './Icon';
|
|
1
2
|
export declare type IconType = keyof typeof iconPaths;
|
|
2
3
|
export declare const iconPaths: {
|
|
3
|
-
|
|
4
|
-
'angle-down': string;
|
|
5
|
-
'angle-left': string;
|
|
6
|
-
'angle-right': string;
|
|
7
|
-
ban: string;
|
|
8
|
-
check: string;
|
|
9
|
-
'check-thin': string;
|
|
10
|
-
'chevron-up': string;
|
|
11
|
-
'chevron-down': string;
|
|
12
|
-
'chevron-left': string;
|
|
13
|
-
'chevron-right': string;
|
|
14
|
-
circle: string;
|
|
15
|
-
close: string;
|
|
16
|
-
'close-thin': string;
|
|
17
|
-
cog: string;
|
|
18
|
-
cogs: string;
|
|
19
|
-
dollar: string;
|
|
20
|
-
envelope: string;
|
|
21
|
-
error: string;
|
|
22
|
-
eye: string;
|
|
23
|
-
'eye-thin': string;
|
|
24
|
-
filter: string;
|
|
25
|
-
heart: string;
|
|
26
|
-
'heart-o': string;
|
|
27
|
-
info: string;
|
|
28
|
-
'layout-grid': string;
|
|
29
|
-
'layout-large': string;
|
|
30
|
-
'layout-list': string;
|
|
31
|
-
minus: string;
|
|
32
|
-
'minus-thin': string;
|
|
33
|
-
plus: string;
|
|
34
|
-
'plus-thin': string;
|
|
35
|
-
'rotate-left': string;
|
|
36
|
-
'rotate-right': string;
|
|
37
|
-
search: string;
|
|
38
|
-
sort: string;
|
|
39
|
-
spinner: string;
|
|
40
|
-
square: string;
|
|
41
|
-
star: string;
|
|
42
|
-
'star-half': string;
|
|
43
|
-
'star-o': string;
|
|
44
|
-
'video-camera': string;
|
|
45
|
-
warn: string;
|
|
46
|
-
wrench: string;
|
|
4
|
+
[name: string]: string | SVGPathElement[];
|
|
47
5
|
};
|
|
48
6
|
//# sourceMappingURL=paths.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/paths.tsx"],"names":[],"mappings":"AAAA,oBAAY,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../../../src/components/Atoms/Icon/paths.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,QAAQ,CAAC;AACxC,oBAAY,QAAQ,GAAG,MAAM,OAAO,SAAS,CAAC;AAE9C,eAAO,MAAM,SAAS,EAAE;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,cAAc,EAAE,CAAA;CAyHlE,CAAC"}
|
|
@@ -21,6 +21,52 @@ export const iconPaths = {
|
|
|
21
21
|
eye: 'M28 20.374q3.098 0 5.362 2.264t2.264 5.362-2.264 5.362-5.362 2.264-5.362-2.264-2.264-5.362 2.264-5.362 5.362-2.264zM28 40.749q5.243 0 8.996-3.753t3.753-8.996-3.753-8.996-8.996-3.753-8.996 3.753-3.753 8.996 3.753 8.996 8.996 3.753zM28 8.936q9.413 0 17.038 5.243t10.962 13.821q-3.336 8.579-10.962 13.821t-17.038 5.243-17.038-5.243-10.962-13.821q3.336-8.579 10.962-13.821t17.038-5.243z',
|
|
22
22
|
'eye-thin': 'M52 28c-2.969-4.594-7.031-8.531-11.906-11.031 1.25 2.125 1.906 4.563 1.906 7.031 0 7.719-6.281 14-14 14s-14-6.281-14-14c0-2.469 0.656-4.906 1.906-7.031-4.875 2.5-8.938 6.437-11.906 11.031 5.344 8.25 13.969 14 24 14s18.656-5.75 24-14zM29.5 16c0-0.812-0.687-1.5-1.5-1.5-5.219 0-9.5 4.281-9.5 9.5 0 0.812 0.687 1.5 1.5 1.5s1.5-0.687 1.5-1.5c0-3.563 2.937-6.5 6.5-6.5 0.812 0 1.5-0.687 1.5-1.5zM56 28c0 0.781-0.25 1.5-0.625 2.156-5.75 9.469-16.281 15.844-27.375 15.844s-21.625-6.406-27.375-15.844c-0.375-0.656-0.625-1.375-0.625-2.156s0.25-1.5 0.625-2.156c5.75-9.437 16.281-15.844 27.375-15.844s21.625 6.406 27.375 15.844c0.375 0.656 0.625 1.375 0.625 2.156z',
|
|
23
23
|
filter: 'M25.519 21.889c0 0-0.241-4.089-0.241-4.089s0-13.471 0-13.471c0.002-1.162-0.005-2.636 0.825-3.553 1.104-1.224 3.156-0.929 4.022 0.435 0.498 0.787 0.443 1.744 0.445 2.636 0 0 0 25.258 0 25.258s-5.052 0-5.052 0c0 0 0-7.217 0-7.217zM42.358 3.848c0.019-1.576 0.281-3.476 2.165-3.794 2.798-0.471 3.125 2.24 3.127 4.275 0 0 0 11.546 0 11.546s-2.646-0.233-2.646-0.233c0 0-2.646 0.233-2.646 0.233s0-12.028 0-12.028zM8.44 3.848c0.014-1.181 0.147-2.442 1.229-3.163 1.484-0.986 3.286-0.156 3.825 1.479 0.322 0.984 0.238 2.545 0.238 3.608 0 0 0 6.014 0 6.014s-2.646-0.197-2.646-0.197c0 0-2.646 0.197-2.646 0.197s0-7.938 0-7.938zM13.010 13.556c5.509 1.855 5.477 10.377-1.203 11.551-5.121 0.902-8.455-5.015-5.867-9.23 0.907-1.475 2.314-2.151 3.943-2.535 1.176-0.166 1.985-0.171 3.127 0.214zM46.207 28.993c-5.564 1.051-8.874-4.833-6.348-9.028 1.046-1.737 2.533-2.357 4.424-2.774 7.57-0.883 9.36 10.399 1.924 11.802zM13.732 26.46c0 0 0 24.536 0 24.536-0.002 1.215-0.067 3.079-0.844 4.063-1.066 1.352-3.094 1.222-3.984-0.226-0.496-0.808-0.462-1.958-0.464-2.875 0 0 0-25.499 0-25.499s5.292 0 5.292 0zM33.219 33.436c1.936 3.286-0.019 8.15-3.851 8.821-1.169 0.207-3.019 0.135-4.089-0.402-4.71-2.355-4.39-9.803 1.443-11.193 2.673-0.375 5.056 0.33 6.497 2.774zM45.004 30.77c0 0 2.646-0.221 2.646-0.221s0 21.409 0 21.409c-0.002 1.034 0.034 2.215-0.649 3.074-0.977 1.224-3.017 1.224-3.993 0-0.637-0.799-0.645-1.867-0.649-2.834 0 0 0-21.65 0-21.65s2.646 0.221 2.646 0.221zM27.684 43.998c0 0 2.887-0.219 2.887-0.219s0 8.66 0 8.66c-0.022 1.758-0.654 3.861-2.887 3.517-1.912-0.296-2.384-2.114-2.406-3.757 0 0 0-8.419 0-8.419s2.406 0.219 2.406 0.219z',
|
|
24
|
+
filters: [
|
|
25
|
+
{
|
|
26
|
+
type: 'line',
|
|
27
|
+
attributes: {
|
|
28
|
+
x1: '1',
|
|
29
|
+
y1: '17',
|
|
30
|
+
x2: '55',
|
|
31
|
+
y2: '17',
|
|
32
|
+
'stroke-width': '4',
|
|
33
|
+
'stroke-linecap': 'round',
|
|
34
|
+
'stroke-linejoin': 'round',
|
|
35
|
+
},
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
type: 'line',
|
|
39
|
+
attributes: {
|
|
40
|
+
x1: '1',
|
|
41
|
+
y1: '39',
|
|
42
|
+
x2: '55',
|
|
43
|
+
y2: '39',
|
|
44
|
+
'stroke-width': '4',
|
|
45
|
+
'stroke-linecap': 'round',
|
|
46
|
+
'stroke-linejoin': 'round',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
type: 'circle',
|
|
51
|
+
attributes: {
|
|
52
|
+
cx: '18',
|
|
53
|
+
cy: '17',
|
|
54
|
+
r: '8',
|
|
55
|
+
fill: 'white',
|
|
56
|
+
'stroke-width': '4',
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
type: 'circle',
|
|
61
|
+
attributes: {
|
|
62
|
+
cx: '38',
|
|
63
|
+
cy: '39',
|
|
64
|
+
r: '8',
|
|
65
|
+
fill: 'white',
|
|
66
|
+
'stroke-width': '4',
|
|
67
|
+
},
|
|
68
|
+
},
|
|
69
|
+
],
|
|
24
70
|
heart: 'M28 52c-0.5 0-1-0.188-1.375-0.563l-19.5-18.813c-0.25-0.219-7.125-6.5-7.125-14 0-9.156 5.594-14.625 14.938-14.625 5.469 0 10.594 4.312 13.062 6.75 2.469-2.437 7.594-6.75 13.062-6.75 9.344 0 14.938 5.469 14.938 14.625 0 7.5-6.875 13.781-7.156 14.063l-19.469 18.75c-0.375 0.375-0.875 0.563-1.375 0.563z',
|
|
25
71
|
'heart-o': 'M52 18.625c0-8.781-5.937-10.625-10.938-10.625-4.656 0-9.906 5.031-11.531 6.969-0.75 0.906-2.313 0.906-3.063 0-1.625-1.938-6.875-6.969-11.531-6.969-5 0-10.938 1.844-10.938 10.625 0 5.719 5.781 11.031 5.844 11.094l18.156 17.5 18.125-17.469c0.094-0.094 5.875-5.406 5.875-11.125zM56 18.625c0 7.5-6.875 13.781-7.156 14.063l-19.469 18.75c-0.375 0.375-0.875 0.563-1.375 0.563s-1-0.188-1.375-0.563l-19.5-18.813c-0.25-0.219-7.125-6.5-7.125-14 0-9.156 5.594-14.625 14.938-14.625 5.469 0 10.594 4.312 13.062 6.75 2.469-2.437 7.594-6.75 13.062-6.75 9.344 0 14.938 5.469 14.938 14.625z',
|
|
26
72
|
info: 'M56.1425 28.2143C56.1425 43.6783 43.6065 56.2143 28.1425 56.2143C12.6786 56.2143 0.142578 43.6783 0.142578 28.2143C0.142578 12.7504 12.6786 0.214325 28.1425 0.214325C43.6065 0.214325 56.1425 12.7504 56.1425 28.2143ZM32.2543 16.7406C33.1441 15.8361 33.587 14.7358 33.587 13.4469C33.587 12.1603 33.1441 11.0578 32.2543 10.1417C31.3665 9.22792 30.2961 8.76988 29.0452 8.76988C27.7901 8.76988 26.7156 9.22562 25.8194 10.1417C24.9232 11.0578 24.4741 12.1603 24.4741 13.4469C24.4741 14.7358 24.9232 15.8361 25.8194 16.7406C26.7177 17.6498 27.7901 18.1032 29.0452 18.1032C30.2961 18.1032 31.3665 17.6498 32.2543 16.7406ZM29.9419 45.5994C30.7373 45.2628 31.8057 44.7746 33.1417 44.1326C33.1417 44.1326 32.9859 42.1999 32.4746 42.3716C31.9633 42.5432 31.5033 42.6302 31.0983 42.6302C30.237 42.6302 29.6304 42.4585 29.2785 42.113C28.9285 41.7675 28.7544 41.1188 28.7544 40.1669C28.7544 39.7902 28.8076 39.2285 28.9175 38.4928C29.0238 37.7527 29.1466 37.0951 29.2822 36.52L30.9462 29.3555C31.1093 28.6979 31.2211 27.9756 31.2816 27.1865C31.342 26.3996 31.3714 25.849 31.3714 25.5369C31.3714 24.0255 30.9352 22.7995 30.0647 21.8543C29.1942 20.9091 27.9536 20.4365 26.3464 20.4365C25.4521 20.4365 24.5065 20.6305 23.5059 21.0161C22.5053 21.4018 21.4588 21.8654 20.3648 22.4071C20.3648 22.4071 20.6323 24.3198 21.0868 24.157C21.5395 23.9943 21.983 23.9096 22.4155 23.9096C23.2969 23.9096 23.8907 24.0924 24.2022 24.4535C24.5138 24.8146 24.6695 25.4566 24.6695 26.3751C24.6695 26.8833 24.6201 27.4473 24.5174 28.0603C24.4167 28.6778 24.2902 29.3309 24.1418 30.0198L22.4704 37.2111C22.322 37.9667 22.2139 38.6444 22.1461 39.2441C22.0783 39.8437 22.0453 40.4322 22.0453 41.0051C22.0453 42.483 22.4943 43.7024 23.3922 44.6632C24.2902 45.6217 25.5492 46.1032 27.1674 46.1032C28.2211 46.1032 29.1466 45.936 29.9419 45.5994Z',
|
package/dist/esm/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { Theme } from './providers/theme';
|
|
|
4
4
|
export interface ComponentProps extends RenderableProps<any> {
|
|
5
5
|
className?: string;
|
|
6
6
|
disableStyles?: boolean;
|
|
7
|
-
style?: string | Record<string,
|
|
7
|
+
style?: string | Record<string, any>;
|
|
8
8
|
theme?: Theme;
|
|
9
9
|
}
|
|
10
10
|
export declare enum Layout {
|
package/dist/esm/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,GAAG,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAE1C,MAAM,WAAW,cAAe,SAAQ,eAAe,CAAC,GAAG,CAAC;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACrC,KAAK,CAAC,EAAE,KAAK,CAAC;CACd;AAED,oBAAY,MAAM;IACjB,IAAI,SAAS;IACb,IAAI,SAAS;CACb;AAED,oBAAY,UAAU,GAAG,MAAM,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC;AAGnD,oBAAY,SAAS;IACpB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,aAAa,kBAAkB;CAC/B;AAGD,oBAAY,YAAY;IACvB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,SAAS,cAAc;CACvB;AAED,oBAAY,gBAAgB,GAAG;IAC9B,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAC;CAChC,CAAC;AAEF,oBAAY,gBAAgB,GAAG;IAC9B,CAAC,QAAQ,EAAE,MAAM,GAAG,GAAG,CAAC;CACxB,CAAC;AAEF,oBAAY,UAAU,GAAG,KAAK,CAAC,gBAAgB,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@searchspring/snap-preact-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.49.0",
|
|
4
4
|
"description": "Snap Preact Component Library",
|
|
5
5
|
"author": "Searchspring",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@emotion/react": "11.9.0",
|
|
29
|
-
"@searchspring/snap-toolbox": "^0.
|
|
29
|
+
"@searchspring/snap-toolbox": "^0.49.0",
|
|
30
30
|
"classnames": "^2.3.2",
|
|
31
31
|
"deepmerge": "4.3.1",
|
|
32
32
|
"dequal": "2.0.3",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
"preact": "10.9.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@searchspring/snap-client": "^0.
|
|
42
|
-
"@searchspring/snap-controller": "^0.
|
|
43
|
-
"@searchspring/snap-event-manager": "^0.
|
|
44
|
-
"@searchspring/snap-logger": "^0.
|
|
45
|
-
"@searchspring/snap-profiler": "^0.
|
|
46
|
-
"@searchspring/snap-store-mobx": "^0.
|
|
47
|
-
"@searchspring/snap-tracker": "^0.
|
|
48
|
-
"@searchspring/snap-url-manager": "^0.
|
|
41
|
+
"@searchspring/snap-client": "^0.49.0",
|
|
42
|
+
"@searchspring/snap-controller": "^0.49.0",
|
|
43
|
+
"@searchspring/snap-event-manager": "^0.49.0",
|
|
44
|
+
"@searchspring/snap-logger": "^0.49.0",
|
|
45
|
+
"@searchspring/snap-profiler": "^0.49.0",
|
|
46
|
+
"@searchspring/snap-store-mobx": "^0.49.0",
|
|
47
|
+
"@searchspring/snap-tracker": "^0.49.0",
|
|
48
|
+
"@searchspring/snap-url-manager": "^0.49.0",
|
|
49
49
|
"@storybook/addon-actions": "6.4.22",
|
|
50
50
|
"@storybook/addon-controls": "6.4.22",
|
|
51
51
|
"@storybook/addon-docs": "6.4.22",
|
|
@@ -67,5 +67,5 @@
|
|
|
67
67
|
"ts-loader": "9.3.0"
|
|
68
68
|
},
|
|
69
69
|
"sideEffects": false,
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "29db25460668f3c53e07942c62de4d9c82c051a1"
|
|
71
71
|
}
|