@xfers/design-system 4.1.4-dev.053ec636cf → 4.1.4-dev.3909bc3835
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/cjs/index.js +13 -13
- package/cjs/index.js.map +1 -1
- package/dist/index.js +2 -4
- package/dist/index.js.map +1 -1
- package/dist/types/components/CopyBox/styles.d.ts +3 -3
- package/dist/types/components/DynamicSelect/DynamicSelect.d.ts +3 -3
- package/dist/types/components/Grid/Section.d.ts +3 -3
- package/dist/types/index.d.ts +0 -1
- package/es/index.js +1 -1
- package/es/index.js.map +1 -1
- package/package.json +1 -4
- package/dist/icons/MaterialSymbols/MaterialSymbols.js +0 -32
- package/dist/icons/MaterialSymbols/MaterialSymbols.js.map +0 -1
- package/dist/icons/MaterialSymbols/MaterialSymbolsStories.args.js +0 -37
- package/dist/icons/MaterialSymbols/MaterialSymbolsStories.args.js.map +0 -1
- package/dist/icons/MaterialSymbols/index.js +0 -7
- package/dist/icons/MaterialSymbols/index.js.map +0 -1
- package/dist/types/icons/MaterialSymbols/MaterialSymbols.d.ts +0 -23
- package/dist/types/icons/MaterialSymbols/MaterialSymbolsStories.args.d.ts +0 -49
- package/dist/types/icons/MaterialSymbols/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xfers/design-system",
|
|
3
|
-
"version": "4.1.4-dev.
|
|
3
|
+
"version": "4.1.4-dev.3909bc3835",
|
|
4
4
|
"description": "StraitsX design system",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"xfers",
|
|
@@ -160,8 +160,5 @@
|
|
|
160
160
|
"peerDependencies": {
|
|
161
161
|
"react": ">=16.8.0",
|
|
162
162
|
"react-dom": ">=16.8.0"
|
|
163
|
-
},
|
|
164
|
-
"dependencies": {
|
|
165
|
-
"material-symbols": "^0.38.0"
|
|
166
163
|
}
|
|
167
164
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
var react_1 = require("react");
|
|
15
|
-
require("material-symbols/rounded.css");
|
|
16
|
-
var ColorStyles_1 = require("src/shared/ColorStyles");
|
|
17
|
-
var SIZE_MAP = {
|
|
18
|
-
xs: 16,
|
|
19
|
-
s: 20,
|
|
20
|
-
m: 24,
|
|
21
|
-
l: 32,
|
|
22
|
-
xl: 40,
|
|
23
|
-
xxl: 48
|
|
24
|
-
};
|
|
25
|
-
var MaterialSymbols = function (_a) {
|
|
26
|
-
var icon = _a.icon, _b = _a.size, size = _b === void 0 ? 'm' : _b, _c = _a.fill, fill = _c === void 0 ? 0 : _c, _d = _a.color, color = _d === void 0 ? ColorStyles_1.NEUTRAL_COLORS.BLACK : _d, _e = _a.className, className = _e === void 0 ? '' : _e, style = _a.style;
|
|
27
|
-
var iconSize = typeof size === 'string' ? SIZE_MAP[size] : size;
|
|
28
|
-
var materialSymbolStyle = __assign({ fontVariationSettings: "'FILL' ".concat(fill, ", 'wght' 400"), fontSize: iconSize, color: color }, style);
|
|
29
|
-
return (react_1.default.createElement("span", { className: "material-symbols-rounded ".concat(className), style: materialSymbolStyle }, icon));
|
|
30
|
-
};
|
|
31
|
-
exports.default = MaterialSymbols;
|
|
32
|
-
//# sourceMappingURL=MaterialSymbols.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialSymbols.js","sourceRoot":"","sources":["../../../src/icons/MaterialSymbols/MaterialSymbols.tsx"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,+BAAyB;AAEzB,wCAAqC;AACrC,sDAAuD;AAEvD,IAAM,QAAQ,GAAG;IACf,EAAE,EAAE,EAAE;IACN,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,CAAC,EAAE,EAAE;IACL,EAAE,EAAE,EAAE;IACN,GAAG,EAAE,EAAE;CACC,CAAA;AAcV,IAAM,eAAe,GAAG,UAAC,EAOH;QANpB,IAAI,UAAA,EACJ,YAAU,EAAV,IAAI,mBAAG,GAAG,KAAA,EACV,YAAQ,EAAR,IAAI,mBAAG,CAAC,KAAA,EACR,aAA4B,EAA5B,KAAK,mBAAG,4BAAc,CAAC,KAAK,KAAA,EAC5B,iBAAc,EAAd,SAAS,mBAAG,EAAE,KAAA,EACd,KAAK,WAAA;IAEL,IAAM,QAAQ,GAAG,OAAO,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;IAEjE,IAAM,mBAAmB,cACvB,qBAAqB,EAAE,iBAAU,IAAI,iBAAc,EACnD,QAAQ,EAAE,QAAQ,EAClB,KAAK,OAAA,IACF,KAAK,CACT,CAAA;IAED,OAAO,CACL,wCACE,SAAS,EAAE,mCAA4B,SAAS,CAAE,EAClD,KAAK,EAAE,mBAAmB,IAEzB,IAAI,CACA,CACR,CAAA;AACH,CAAC,CAAA;AAED,kBAAe,eAAe,CAAA"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.materialSymbolArgTypes = void 0;
|
|
4
|
-
var ColorStyles_1 = require("src/shared/ColorStyles");
|
|
5
|
-
exports.materialSymbolArgTypes = {
|
|
6
|
-
icon: {
|
|
7
|
-
control: { type: 'text' },
|
|
8
|
-
description: 'The name of the Material Symbol icon to display',
|
|
9
|
-
table: {
|
|
10
|
-
defaultValue: { summary: 'home' }
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
size: {
|
|
14
|
-
control: { type: 'select' },
|
|
15
|
-
options: ['xs', 's', 'm', 'l', 'xl', 'xxl', 27],
|
|
16
|
-
description: 'Size of the icon (preset sizes: xs=16, s=20, m=24, l=32, xl=40, xxl=48 or custom number)',
|
|
17
|
-
table: {
|
|
18
|
-
defaultValue: { summary: 'm' }
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
fill: {
|
|
22
|
-
control: { type: 'radio' },
|
|
23
|
-
options: [0, 1],
|
|
24
|
-
description: 'Fill of the icon (0 = outlined, 1 = filled)',
|
|
25
|
-
table: {
|
|
26
|
-
defaultValue: { summary: '0' }
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
color: {
|
|
30
|
-
control: { type: 'color' },
|
|
31
|
-
description: 'Color of the icon',
|
|
32
|
-
table: {
|
|
33
|
-
defaultValue: { summary: ColorStyles_1.NEUTRAL_COLORS.BLACK }
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=MaterialSymbolsStories.args.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MaterialSymbolsStories.args.js","sourceRoot":"","sources":["../../../src/icons/MaterialSymbols/MaterialSymbolsStories.args.ts"],"names":[],"mappings":";;;AAAA,sDAAuD;AAE1C,QAAA,sBAAsB,GAAG;IACpC,IAAI,EAAE;QACJ,OAAO,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;QACzB,WAAW,EAAE,iDAAiD;QAC9D,KAAK,EAAE;YACL,YAAY,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE;SAClC;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,OAAO,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;QAC/C,WAAW,EACT,0FAA0F;QAC5F,KAAK,EAAE;YACL,YAAY,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;SAC/B;KACF;IACD,IAAI,EAAE;QACJ,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QAC1B,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACf,WAAW,EAAE,6CAA6C;QAC1D,KAAK,EAAE;YACL,YAAY,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE;SAC/B;KACF;IACD,KAAK,EAAE;QACL,OAAO,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;QAC1B,WAAW,EAAE,mBAAmB;QAChC,KAAK,EAAE;YACL,YAAY,EAAE,EAAE,OAAO,EAAE,4BAAc,CAAC,KAAK,EAAE;SAChD;KACF;CACO,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MaterialSymbols = void 0;
|
|
4
|
-
require("material-symbols/rounded.css");
|
|
5
|
-
var MaterialSymbols_1 = require("./MaterialSymbols");
|
|
6
|
-
Object.defineProperty(exports, "MaterialSymbols", { enumerable: true, get: function () { return MaterialSymbols_1.default; } });
|
|
7
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/icons/MaterialSymbols/index.ts"],"names":[],"mappings":";;;AAAA,wCAAqC;AAErC,qDAA8D;AAArD,kHAAA,OAAO,OAAmB"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { MaterialSymbol } from 'material-symbols';
|
|
3
|
-
import 'material-symbols/rounded.css';
|
|
4
|
-
declare const SIZE_MAP: {
|
|
5
|
-
readonly xs: 16;
|
|
6
|
-
readonly s: 20;
|
|
7
|
-
readonly m: 24;
|
|
8
|
-
readonly l: 32;
|
|
9
|
-
readonly xl: 40;
|
|
10
|
-
readonly xxl: 48;
|
|
11
|
-
};
|
|
12
|
-
type IconSize = keyof typeof SIZE_MAP | number;
|
|
13
|
-
type IconFill = 0 | 1;
|
|
14
|
-
type MaterialSymbolProps = {
|
|
15
|
-
icon: MaterialSymbol;
|
|
16
|
-
size?: IconSize;
|
|
17
|
-
fill?: IconFill;
|
|
18
|
-
color?: string;
|
|
19
|
-
className?: string;
|
|
20
|
-
style?: React.CSSProperties;
|
|
21
|
-
};
|
|
22
|
-
declare const MaterialSymbols: ({ icon, size, fill, color, className, style }: MaterialSymbolProps) => JSX.Element;
|
|
23
|
-
export default MaterialSymbols;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { NEUTRAL_COLORS } from 'src/shared/ColorStyles';
|
|
2
|
-
export declare const materialSymbolArgTypes: {
|
|
3
|
-
readonly icon: {
|
|
4
|
-
readonly control: {
|
|
5
|
-
readonly type: "text";
|
|
6
|
-
};
|
|
7
|
-
readonly description: "The name of the Material Symbol icon to display";
|
|
8
|
-
readonly table: {
|
|
9
|
-
readonly defaultValue: {
|
|
10
|
-
readonly summary: "home";
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
readonly size: {
|
|
15
|
-
readonly control: {
|
|
16
|
-
readonly type: "select";
|
|
17
|
-
};
|
|
18
|
-
readonly options: readonly ["xs", "s", "m", "l", "xl", "xxl", 27];
|
|
19
|
-
readonly description: "Size of the icon (preset sizes: xs=16, s=20, m=24, l=32, xl=40, xxl=48 or custom number)";
|
|
20
|
-
readonly table: {
|
|
21
|
-
readonly defaultValue: {
|
|
22
|
-
readonly summary: "m";
|
|
23
|
-
};
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
readonly fill: {
|
|
27
|
-
readonly control: {
|
|
28
|
-
readonly type: "radio";
|
|
29
|
-
};
|
|
30
|
-
readonly options: readonly [0, 1];
|
|
31
|
-
readonly description: "Fill of the icon (0 = outlined, 1 = filled)";
|
|
32
|
-
readonly table: {
|
|
33
|
-
readonly defaultValue: {
|
|
34
|
-
readonly summary: "0";
|
|
35
|
-
};
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
readonly color: {
|
|
39
|
-
readonly control: {
|
|
40
|
-
readonly type: "color";
|
|
41
|
-
};
|
|
42
|
-
readonly description: "Color of the icon";
|
|
43
|
-
readonly table: {
|
|
44
|
-
readonly defaultValue: {
|
|
45
|
-
readonly summary: NEUTRAL_COLORS.BLACK;
|
|
46
|
-
};
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
};
|