@kanmu/popcorn-icons 1.1.2 → 1.2.1
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/README.md +13 -7
- package/dist/Icon.d.mts +6 -3
- package/dist/Icon.d.ts +6 -3
- package/dist/Icon.js +32 -2
- package/dist/Icon.mjs +49 -2
- package/dist/icons/Bars.d.mts +2 -1
- package/dist/icons/Bars.d.ts +2 -1
- package/dist/icons/Bars.js +2 -2
- package/dist/icons/Bars.mjs +2 -2
- package/dist/icons/Bell.d.mts +2 -1
- package/dist/icons/Bell.d.ts +2 -1
- package/dist/icons/Bell.js +2 -2
- package/dist/icons/Bell.mjs +2 -2
- package/dist/icons/BellFill.d.mts +2 -1
- package/dist/icons/BellFill.d.ts +2 -1
- package/dist/icons/BellFill.js +2 -2
- package/dist/icons/BellFill.mjs +2 -2
- package/dist/icons/Calendar.d.mts +2 -1
- package/dist/icons/Calendar.d.ts +2 -1
- package/dist/icons/Calendar.js +2 -2
- package/dist/icons/Calendar.mjs +2 -2
- package/dist/icons/Check.d.mts +2 -1
- package/dist/icons/Check.d.ts +2 -1
- package/dist/icons/Check.js +2 -2
- package/dist/icons/Check.mjs +2 -2
- package/dist/icons/CheckCircleFill.d.mts +2 -1
- package/dist/icons/CheckCircleFill.d.ts +2 -1
- package/dist/icons/CheckCircleFill.js +8 -2
- package/dist/icons/CheckCircleFill.mjs +8 -2
- package/dist/icons/ChevronDown.d.mts +2 -1
- package/dist/icons/ChevronDown.d.ts +2 -1
- package/dist/icons/ChevronDown.js +8 -2
- package/dist/icons/ChevronDown.mjs +8 -2
- package/dist/icons/ChevronLeft.d.mts +2 -1
- package/dist/icons/ChevronLeft.d.ts +2 -1
- package/dist/icons/ChevronLeft.js +8 -2
- package/dist/icons/ChevronLeft.mjs +8 -2
- package/dist/icons/ChevronRight.d.mts +2 -1
- package/dist/icons/ChevronRight.d.ts +2 -1
- package/dist/icons/ChevronRight.js +8 -2
- package/dist/icons/ChevronRight.mjs +8 -2
- package/dist/icons/ChevronUp.d.mts +2 -1
- package/dist/icons/ChevronUp.d.ts +2 -1
- package/dist/icons/ChevronUp.js +2 -2
- package/dist/icons/ChevronUp.mjs +2 -2
- package/dist/icons/ClockRotateLeft.d.mts +2 -1
- package/dist/icons/ClockRotateLeft.d.ts +2 -1
- package/dist/icons/ClockRotateLeft.js +10 -4
- package/dist/icons/ClockRotateLeft.mjs +10 -4
- package/dist/icons/CreditCard.d.mts +2 -1
- package/dist/icons/CreditCard.d.ts +2 -1
- package/dist/icons/CreditCard.js +9 -3
- package/dist/icons/CreditCard.mjs +9 -3
- package/dist/icons/CreditCardFill.d.mts +2 -1
- package/dist/icons/CreditCardFill.d.ts +2 -1
- package/dist/icons/CreditCardFill.js +9 -3
- package/dist/icons/CreditCardFill.mjs +9 -3
- package/dist/icons/CreditCardSwipe.d.mts +2 -1
- package/dist/icons/CreditCardSwipe.d.ts +2 -1
- package/dist/icons/CreditCardSwipe.js +9 -3
- package/dist/icons/CreditCardSwipe.mjs +9 -3
- package/dist/icons/ExclamationCircle.d.mts +2 -1
- package/dist/icons/ExclamationCircle.d.ts +2 -1
- package/dist/icons/ExclamationCircle.js +3 -2
- package/dist/icons/ExclamationCircle.mjs +3 -2
- package/dist/icons/ExclamationCircleFill.d.mts +2 -1
- package/dist/icons/ExclamationCircleFill.d.ts +2 -1
- package/dist/icons/ExclamationCircleFill.js +2 -1
- package/dist/icons/ExclamationCircleFill.mjs +2 -1
- package/dist/icons/ExclamationTriangle.d.mts +2 -1
- package/dist/icons/ExclamationTriangle.d.ts +2 -1
- package/dist/icons/ExclamationTriangle.js +3 -2
- package/dist/icons/ExclamationTriangle.mjs +3 -2
- package/dist/icons/EyeFill.d.mts +2 -1
- package/dist/icons/EyeFill.d.ts +2 -1
- package/dist/icons/EyeFill.js +2 -2
- package/dist/icons/EyeFill.mjs +2 -2
- package/dist/icons/EyeSlashFill.d.mts +2 -1
- package/dist/icons/EyeSlashFill.d.ts +2 -1
- package/dist/icons/EyeSlashFill.js +8 -2
- package/dist/icons/EyeSlashFill.mjs +8 -2
- package/dist/icons/File.d.mts +2 -1
- package/dist/icons/File.d.ts +2 -1
- package/dist/icons/File.js +3 -3
- package/dist/icons/File.mjs +3 -3
- package/dist/icons/Gauge.d.mts +2 -1
- package/dist/icons/Gauge.d.ts +2 -1
- package/dist/icons/Gauge.js +3 -3
- package/dist/icons/Gauge.mjs +3 -3
- package/dist/icons/Gear.d.mts +2 -1
- package/dist/icons/Gear.d.ts +2 -1
- package/dist/icons/Gear.js +2 -2
- package/dist/icons/Gear.mjs +2 -2
- package/dist/icons/GearFill.d.mts +2 -1
- package/dist/icons/GearFill.d.ts +2 -1
- package/dist/icons/GearFill.js +2 -2
- package/dist/icons/GearFill.mjs +2 -2
- package/dist/icons/Gift.d.mts +2 -1
- package/dist/icons/Gift.d.ts +2 -1
- package/dist/icons/Gift.js +7 -7
- package/dist/icons/Gift.mjs +7 -7
- package/dist/icons/GiftFill.d.mts +2 -1
- package/dist/icons/GiftFill.d.ts +2 -1
- package/dist/icons/GiftFill.js +4 -4
- package/dist/icons/GiftFill.mjs +4 -4
- package/dist/icons/Globe.d.mts +2 -1
- package/dist/icons/Globe.d.ts +2 -1
- package/dist/icons/Globe.js +2 -2
- package/dist/icons/Globe.mjs +2 -2
- package/dist/icons/HandPointUp.d.mts +2 -1
- package/dist/icons/HandPointUp.d.ts +2 -1
- package/dist/icons/HandPointUp.js +11 -5
- package/dist/icons/HandPointUp.mjs +11 -5
- package/dist/icons/House.d.mts +2 -1
- package/dist/icons/House.d.ts +2 -1
- package/dist/icons/House.js +3 -3
- package/dist/icons/House.mjs +3 -3
- package/dist/icons/HouseFill.d.mts +2 -1
- package/dist/icons/HouseFill.d.ts +2 -1
- package/dist/icons/HouseFill.js +2 -2
- package/dist/icons/HouseFill.mjs +2 -2
- package/dist/icons/Lock.d.mts +2 -1
- package/dist/icons/Lock.d.ts +2 -1
- package/dist/icons/Lock.js +2 -2
- package/dist/icons/Lock.mjs +2 -2
- package/dist/icons/MagnifyingGlass.d.mts +2 -1
- package/dist/icons/MagnifyingGlass.d.ts +2 -1
- package/dist/icons/MagnifyingGlass.js +9 -3
- package/dist/icons/MagnifyingGlass.mjs +9 -3
- package/dist/icons/MinusCircle.d.mts +2 -1
- package/dist/icons/MinusCircle.d.ts +2 -1
- package/dist/icons/MinusCircle.js +8 -2
- package/dist/icons/MinusCircle.mjs +8 -2
- package/dist/icons/MinusCircleFill.d.mts +2 -1
- package/dist/icons/MinusCircleFill.d.ts +2 -1
- package/dist/icons/MinusCircleFill.js +8 -2
- package/dist/icons/MinusCircleFill.mjs +8 -2
- package/dist/icons/Mobile.d.mts +2 -1
- package/dist/icons/Mobile.d.ts +2 -1
- package/dist/icons/Mobile.js +2 -2
- package/dist/icons/Mobile.mjs +2 -2
- package/dist/icons/MonthlyLimit.d.mts +2 -1
- package/dist/icons/MonthlyLimit.d.ts +2 -1
- package/dist/icons/MonthlyLimit.js +9 -3
- package/dist/icons/MonthlyLimit.mjs +9 -3
- package/dist/icons/PhoneFill.d.mts +2 -1
- package/dist/icons/PhoneFill.d.ts +2 -1
- package/dist/icons/PhoneFill.js +2 -2
- package/dist/icons/PhoneFill.mjs +2 -2
- package/dist/icons/Plus.d.mts +2 -1
- package/dist/icons/Plus.d.ts +2 -1
- package/dist/icons/Plus.js +2 -2
- package/dist/icons/Plus.mjs +2 -2
- package/dist/icons/PlusCircle.d.mts +2 -1
- package/dist/icons/PlusCircle.d.ts +2 -1
- package/dist/icons/PlusCircle.js +8 -2
- package/dist/icons/PlusCircle.mjs +8 -2
- package/dist/icons/PlusCircleFill.d.mts +2 -1
- package/dist/icons/PlusCircleFill.d.ts +2 -1
- package/dist/icons/PlusCircleFill.js +8 -2
- package/dist/icons/PlusCircleFill.mjs +8 -2
- package/dist/icons/Pochitto.d.mts +2 -1
- package/dist/icons/Pochitto.d.ts +2 -1
- package/dist/icons/Pochitto.js +4 -4
- package/dist/icons/Pochitto.mjs +4 -4
- package/dist/icons/Question.d.mts +2 -1
- package/dist/icons/Question.d.ts +2 -1
- package/dist/icons/Question.js +2 -2
- package/dist/icons/Question.mjs +2 -2
- package/dist/icons/QuestionCircle.d.mts +2 -1
- package/dist/icons/QuestionCircle.d.ts +2 -1
- package/dist/icons/QuestionCircle.js +9 -3
- package/dist/icons/QuestionCircle.mjs +9 -3
- package/dist/icons/RotateRight.d.mts +2 -1
- package/dist/icons/RotateRight.d.ts +2 -1
- package/dist/icons/RotateRight.js +8 -2
- package/dist/icons/RotateRight.mjs +8 -2
- package/dist/icons/Shop.d.mts +2 -1
- package/dist/icons/Shop.d.ts +2 -1
- package/dist/icons/Shop.js +3 -3
- package/dist/icons/Shop.mjs +3 -3
- package/dist/icons/SquareDot.d.mts +2 -1
- package/dist/icons/SquareDot.d.ts +2 -1
- package/dist/icons/SquareDot.js +3 -9
- package/dist/icons/SquareDot.mjs +3 -9
- package/dist/icons/Unlock.d.mts +2 -1
- package/dist/icons/Unlock.d.ts +2 -1
- package/dist/icons/Unlock.js +2 -2
- package/dist/icons/Unlock.mjs +2 -2
- package/dist/icons/Vandlykun.d.mts +2 -1
- package/dist/icons/Vandlykun.d.ts +2 -1
- package/dist/icons/Vandlykun.js +4 -4
- package/dist/icons/Vandlykun.mjs +4 -4
- package/dist/icons/Xmark.d.mts +2 -1
- package/dist/icons/Xmark.d.ts +2 -1
- package/dist/icons/Xmark.js +2 -2
- package/dist/icons/Xmark.mjs +2 -2
- package/dist/icons/XmarkCircle.d.mts +2 -1
- package/dist/icons/XmarkCircle.d.ts +2 -1
- package/dist/icons/XmarkCircle.js +8 -2
- package/dist/icons/XmarkCircle.mjs +8 -2
- package/dist/icons/XmarkCircleFill.d.mts +2 -1
- package/dist/icons/XmarkCircleFill.d.ts +2 -1
- package/dist/icons/XmarkCircleFill.js +8 -2
- package/dist/icons/XmarkCircleFill.mjs +8 -2
- package/dist/icons/YenSign.d.mts +2 -1
- package/dist/icons/YenSign.d.ts +2 -1
- package/dist/icons/YenSign.js +2 -2
- package/dist/icons/YenSign.mjs +2 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.mjs +5 -1
- package/package.json +4 -1
package/README.md
CHANGED
|
@@ -22,8 +22,14 @@ yarn add react-native-svg
|
|
|
22
22
|
|
|
23
23
|
すべてのアイコンコンポーネントは以下のデフォルト値を持ちます。
|
|
24
24
|
|
|
25
|
-
- サイズ: `
|
|
26
|
-
- 色: `
|
|
25
|
+
- サイズ: `medium`
|
|
26
|
+
- 色: `dark`
|
|
27
|
+
|
|
28
|
+
`size` と `color` は Popcorn のデザイントークンに対応する文字列リテラルです。
|
|
29
|
+
型としては `IconSize` / `IconColor` を利用できます。
|
|
30
|
+
|
|
31
|
+
- `size`: `2xsmall` / `xsmall` / `small` / `medium` / `large` / `xlarge`
|
|
32
|
+
- `color`: `blue` / `dark` / `default` / `disabled` / `green` / `inverse` / `light` / `link` / `red` / `yellow`
|
|
27
33
|
|
|
28
34
|
### 基本的な使用例
|
|
29
35
|
|
|
@@ -34,8 +40,8 @@ import {View} from 'react-native';
|
|
|
34
40
|
const MyComponent = () => {
|
|
35
41
|
return (
|
|
36
42
|
<View>
|
|
37
|
-
<Icon
|
|
38
|
-
<Icon
|
|
43
|
+
<Icon color="dark" name="house" size="medium" />
|
|
44
|
+
<Icon color="light" name="magnifyingGlass" size="medium" />
|
|
39
45
|
</View>
|
|
40
46
|
);
|
|
41
47
|
};
|
|
@@ -51,10 +57,10 @@ const CustomizedIcons = () => {
|
|
|
51
57
|
return (
|
|
52
58
|
<View style={styles.container}>
|
|
53
59
|
<Icon
|
|
60
|
+
color="light"
|
|
54
61
|
name="chevronRight"
|
|
55
|
-
size={36}
|
|
56
|
-
color="#A6AAB7"
|
|
57
62
|
opacity={0.7}
|
|
63
|
+
size="large"
|
|
58
64
|
style={{transform: [{rotate: '45deg'}]}}
|
|
59
65
|
/>
|
|
60
66
|
|
|
@@ -64,7 +70,7 @@ const CustomizedIcons = () => {
|
|
|
64
70
|
accessibilityHint="検索画面を開きます"
|
|
65
71
|
style={styles.iconButton}
|
|
66
72
|
>
|
|
67
|
-
<Icon name="magnifyingGlass" size=
|
|
73
|
+
<Icon color="dark" name="magnifyingGlass" size="small" />
|
|
68
74
|
</Pressable>
|
|
69
75
|
</View>
|
|
70
76
|
);
|
package/dist/Icon.d.mts
CHANGED
|
@@ -2,11 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { SvgProps } from 'react-native-svg';
|
|
3
3
|
|
|
4
4
|
type IconName = 'bars' | 'bell' | 'bellFill' | 'calendar' | 'check' | 'checkCircleFill' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'clockRotateLeft' | 'creditCard' | 'creditCardFill' | 'creditCardSwipe' | 'exclamationCircle' | 'exclamationCircleFill' | 'exclamationTriangle' | 'eyeFill' | 'eyeSlashFill' | 'file' | 'gauge' | 'gear' | 'gearFill' | 'gift' | 'giftFill' | 'globe' | 'handPointUp' | 'house' | 'houseFill' | 'lock' | 'magnifyingGlass' | 'minusCircle' | 'minusCircleFill' | 'mobile' | 'monthlyLimit' | 'phoneFill' | 'plus' | 'plusCircle' | 'plusCircleFill' | 'pochitto' | 'question' | 'questionCircle' | 'rotateRight' | 'shop' | 'squareDot' | 'unlock' | 'vandlykun' | 'xmark' | 'xmarkCircle' | 'xmarkCircleFill' | 'yenSign';
|
|
5
|
+
type IconSize = '2xsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
|
+
type IconColor = 'blue' | 'dark' | 'default' | 'disabled' | 'green' | 'inverse' | 'light' | 'link' | 'red' | 'yellow';
|
|
5
7
|
interface IconProps extends SvgProps {
|
|
6
8
|
name: IconName;
|
|
7
|
-
size?:
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
color?: IconColor;
|
|
8
11
|
}
|
|
9
12
|
declare const iconNames: IconName[];
|
|
10
|
-
declare const Icon: ({ name, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const Icon: ({ name, size, color, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
11
14
|
|
|
12
|
-
export { Icon, type IconName, type IconProps, Icon as default, iconNames };
|
|
15
|
+
export { Icon, type IconColor, type IconName, type IconProps, type IconSize, Icon as default, iconNames };
|
package/dist/Icon.d.ts
CHANGED
|
@@ -2,11 +2,14 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { SvgProps } from 'react-native-svg';
|
|
3
3
|
|
|
4
4
|
type IconName = 'bars' | 'bell' | 'bellFill' | 'calendar' | 'check' | 'checkCircleFill' | 'chevronDown' | 'chevronLeft' | 'chevronRight' | 'chevronUp' | 'clockRotateLeft' | 'creditCard' | 'creditCardFill' | 'creditCardSwipe' | 'exclamationCircle' | 'exclamationCircleFill' | 'exclamationTriangle' | 'eyeFill' | 'eyeSlashFill' | 'file' | 'gauge' | 'gear' | 'gearFill' | 'gift' | 'giftFill' | 'globe' | 'handPointUp' | 'house' | 'houseFill' | 'lock' | 'magnifyingGlass' | 'minusCircle' | 'minusCircleFill' | 'mobile' | 'monthlyLimit' | 'phoneFill' | 'plus' | 'plusCircle' | 'plusCircleFill' | 'pochitto' | 'question' | 'questionCircle' | 'rotateRight' | 'shop' | 'squareDot' | 'unlock' | 'vandlykun' | 'xmark' | 'xmarkCircle' | 'xmarkCircleFill' | 'yenSign';
|
|
5
|
+
type IconSize = '2xsmall' | 'xsmall' | 'small' | 'medium' | 'large' | 'xlarge';
|
|
6
|
+
type IconColor = 'blue' | 'dark' | 'default' | 'disabled' | 'green' | 'inverse' | 'light' | 'link' | 'red' | 'yellow';
|
|
5
7
|
interface IconProps extends SvgProps {
|
|
6
8
|
name: IconName;
|
|
7
|
-
size?:
|
|
9
|
+
size?: IconSize;
|
|
10
|
+
color?: IconColor;
|
|
8
11
|
}
|
|
9
12
|
declare const iconNames: IconName[];
|
|
10
|
-
declare const Icon: ({ name, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
13
|
+
declare const Icon: ({ name, size, color, ...props }: IconProps) => react_jsx_runtime.JSX.Element;
|
|
11
14
|
|
|
12
|
-
export { Icon, type IconName, type IconProps, Icon as default, iconNames };
|
|
15
|
+
export { Icon, type IconColor, type IconName, type IconProps, type IconSize, Icon as default, iconNames };
|
package/dist/Icon.js
CHANGED
|
@@ -34,7 +34,37 @@ __export(Icon_exports, {
|
|
|
34
34
|
});
|
|
35
35
|
module.exports = __toCommonJS(Icon_exports);
|
|
36
36
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
37
|
+
var import_popcorn_tokens = require("@kanmu/popcorn-tokens");
|
|
37
38
|
var icons = __toESM(require("./icons"));
|
|
39
|
+
const getTokenNumber = (value) => {
|
|
40
|
+
if (typeof value === "object" && value !== null && "number" in value) {
|
|
41
|
+
return value.number;
|
|
42
|
+
}
|
|
43
|
+
if (typeof value === "number") {
|
|
44
|
+
return value;
|
|
45
|
+
}
|
|
46
|
+
return Number(value);
|
|
47
|
+
};
|
|
48
|
+
const iconSizeMap = {
|
|
49
|
+
"2xsmall": getTokenNumber(import_popcorn_tokens.icon2xsmall),
|
|
50
|
+
xsmall: getTokenNumber(import_popcorn_tokens.iconXsmall),
|
|
51
|
+
small: getTokenNumber(import_popcorn_tokens.iconSmall),
|
|
52
|
+
medium: getTokenNumber(import_popcorn_tokens.iconMedium),
|
|
53
|
+
large: getTokenNumber(import_popcorn_tokens.iconLarge),
|
|
54
|
+
xlarge: getTokenNumber(import_popcorn_tokens.iconXlarge)
|
|
55
|
+
};
|
|
56
|
+
const iconColorMap = {
|
|
57
|
+
blue: String(import_popcorn_tokens.colorsSemanticIconBlue),
|
|
58
|
+
dark: String(import_popcorn_tokens.colorsSemanticIconDark),
|
|
59
|
+
default: String(import_popcorn_tokens.colorsSemanticIconDefault),
|
|
60
|
+
disabled: String(import_popcorn_tokens.colorsSemanticIconDisabled),
|
|
61
|
+
green: String(import_popcorn_tokens.colorsSemanticIconGreen),
|
|
62
|
+
inverse: String(import_popcorn_tokens.colorsSemanticIconInverse),
|
|
63
|
+
light: String(import_popcorn_tokens.colorsSemanticIconLight),
|
|
64
|
+
link: String(import_popcorn_tokens.colorsSemanticIconLink),
|
|
65
|
+
red: String(import_popcorn_tokens.colorsSemanticIconRed),
|
|
66
|
+
yellow: String(import_popcorn_tokens.colorsSemanticIconYellow)
|
|
67
|
+
};
|
|
38
68
|
const iconMap = {
|
|
39
69
|
bars: icons.Bars,
|
|
40
70
|
bell: icons.Bell,
|
|
@@ -89,9 +119,9 @@ const iconMap = {
|
|
|
89
119
|
yenSign: icons.YenSign
|
|
90
120
|
};
|
|
91
121
|
const iconNames = Object.keys(iconMap);
|
|
92
|
-
const Icon = ({ name, ...props }) => {
|
|
122
|
+
const Icon = ({ name, size = "medium", color = "dark", ...props }) => {
|
|
93
123
|
const IconComponent = iconMap[name];
|
|
94
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconComponent, { ...props });
|
|
124
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconComponent, { ...props, size: iconSizeMap[size], color: iconColorMap[color] });
|
|
95
125
|
};
|
|
96
126
|
var Icon_default = Icon;
|
|
97
127
|
// Annotate the CommonJS export names for ESM import in node:
|
package/dist/Icon.mjs
CHANGED
|
@@ -1,5 +1,52 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import {
|
|
3
|
+
colorsSemanticIconBlue,
|
|
4
|
+
colorsSemanticIconDark,
|
|
5
|
+
colorsSemanticIconDefault,
|
|
6
|
+
colorsSemanticIconDisabled,
|
|
7
|
+
colorsSemanticIconGreen,
|
|
8
|
+
colorsSemanticIconInverse,
|
|
9
|
+
colorsSemanticIconLight,
|
|
10
|
+
colorsSemanticIconLink,
|
|
11
|
+
colorsSemanticIconRed,
|
|
12
|
+
colorsSemanticIconYellow,
|
|
13
|
+
icon2xsmall,
|
|
14
|
+
iconLarge,
|
|
15
|
+
iconMedium,
|
|
16
|
+
iconSmall,
|
|
17
|
+
iconXlarge,
|
|
18
|
+
iconXsmall
|
|
19
|
+
} from "@kanmu/popcorn-tokens";
|
|
2
20
|
import * as icons from "./icons";
|
|
21
|
+
const getTokenNumber = (value) => {
|
|
22
|
+
if (typeof value === "object" && value !== null && "number" in value) {
|
|
23
|
+
return value.number;
|
|
24
|
+
}
|
|
25
|
+
if (typeof value === "number") {
|
|
26
|
+
return value;
|
|
27
|
+
}
|
|
28
|
+
return Number(value);
|
|
29
|
+
};
|
|
30
|
+
const iconSizeMap = {
|
|
31
|
+
"2xsmall": getTokenNumber(icon2xsmall),
|
|
32
|
+
xsmall: getTokenNumber(iconXsmall),
|
|
33
|
+
small: getTokenNumber(iconSmall),
|
|
34
|
+
medium: getTokenNumber(iconMedium),
|
|
35
|
+
large: getTokenNumber(iconLarge),
|
|
36
|
+
xlarge: getTokenNumber(iconXlarge)
|
|
37
|
+
};
|
|
38
|
+
const iconColorMap = {
|
|
39
|
+
blue: String(colorsSemanticIconBlue),
|
|
40
|
+
dark: String(colorsSemanticIconDark),
|
|
41
|
+
default: String(colorsSemanticIconDefault),
|
|
42
|
+
disabled: String(colorsSemanticIconDisabled),
|
|
43
|
+
green: String(colorsSemanticIconGreen),
|
|
44
|
+
inverse: String(colorsSemanticIconInverse),
|
|
45
|
+
light: String(colorsSemanticIconLight),
|
|
46
|
+
link: String(colorsSemanticIconLink),
|
|
47
|
+
red: String(colorsSemanticIconRed),
|
|
48
|
+
yellow: String(colorsSemanticIconYellow)
|
|
49
|
+
};
|
|
3
50
|
const iconMap = {
|
|
4
51
|
bars: icons.Bars,
|
|
5
52
|
bell: icons.Bell,
|
|
@@ -54,9 +101,9 @@ const iconMap = {
|
|
|
54
101
|
yenSign: icons.YenSign
|
|
55
102
|
};
|
|
56
103
|
const iconNames = Object.keys(iconMap);
|
|
57
|
-
const Icon = ({ name, ...props }) => {
|
|
104
|
+
const Icon = ({ name, size = "medium", color = "dark", ...props }) => {
|
|
58
105
|
const IconComponent = iconMap[name];
|
|
59
|
-
return /* @__PURE__ */ jsx(IconComponent, { ...props });
|
|
106
|
+
return /* @__PURE__ */ jsx(IconComponent, { ...props, size: iconSizeMap[size], color: iconColorMap[color] });
|
|
60
107
|
};
|
|
61
108
|
var Icon_default = Icon;
|
|
62
109
|
export {
|
package/dist/icons/Bars.d.mts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBars: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBars: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBars as default };
|
package/dist/icons/Bars.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBars: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBars: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBars as default };
|
package/dist/icons/Bars.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(Bars_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Bars_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgBars = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
36
|
+
const SvgBars = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
37
37
|
const props = {
|
|
38
38
|
...restProps,
|
|
39
39
|
width,
|
|
@@ -42,7 +42,7 @@ const SvgBars = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
42
42
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
43
|
import_react_native_svg.Path,
|
|
44
44
|
{
|
|
45
|
-
fill:
|
|
45
|
+
fill: color,
|
|
46
46
|
d: "M19.286 16.286a.857.857 0 1 1 0 1.714H4.715a.858.858 0 0 1 0-1.714zM19.286 11.143a.858.858 0 0 1 0 1.714H4.715a.858.858 0 0 1 0-1.714zM19.286 6a.858.858 0 0 1 0 1.714H4.715a.857.857 0 1 1 0-1.714z"
|
|
47
47
|
}
|
|
48
48
|
) });
|
package/dist/icons/Bars.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgBars = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
3
|
+
const SvgBars = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
4
4
|
const props = {
|
|
5
5
|
...restProps,
|
|
6
6
|
width,
|
|
@@ -9,7 +9,7 @@ const SvgBars = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
10
|
Path,
|
|
11
11
|
{
|
|
12
|
-
fill:
|
|
12
|
+
fill: color,
|
|
13
13
|
d: "M19.286 16.286a.857.857 0 1 1 0 1.714H4.715a.858.858 0 0 1 0-1.714zM19.286 11.143a.858.858 0 0 1 0 1.714H4.715a.858.858 0 0 1 0-1.714zM19.286 6a.858.858 0 0 1 0 1.714H4.715a.857.857 0 1 1 0-1.714z"
|
|
14
14
|
}
|
|
15
15
|
) });
|
package/dist/icons/Bell.d.mts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBell: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBell: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBell as default };
|
package/dist/icons/Bell.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBell: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBell: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBell as default };
|
package/dist/icons/Bell.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(Bell_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Bell_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgBell = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
36
|
+
const SvgBell = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
37
37
|
const props = {
|
|
38
38
|
...restProps,
|
|
39
39
|
width,
|
|
@@ -42,7 +42,7 @@ const SvgBell = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
42
42
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
43
|
import_react_native_svg.Path,
|
|
44
44
|
{
|
|
45
|
-
fill:
|
|
45
|
+
fill: color,
|
|
46
46
|
fillRule: "evenodd",
|
|
47
47
|
d: "M13.915 3.757a5.4 5.4 0 0 1 1.602.905q.7.577 1.259 1.372t.93 1.718q.37.924.58 1.961.62 3.113 1.317 4.92.696 1.809 1.826 2.938h-7.207q.135.387.135.785 0 .975-.69 1.667a2.27 2.27 0 0 1-1.667.69 2.27 2.27 0 0 1-1.666-.69 2.27 2.27 0 0 1-.691-1.667q0-.4.135-.785H2.571q1.13-1.13 1.826-2.937.697-1.809 1.317-4.92.21-1.038.58-1.962a8.4 8.4 0 0 1 .93-1.718q.56-.795 1.26-1.372.699-.578 1.601-.905a5.6 5.6 0 0 1 1.916-.328q1.01 0 1.914.328m-1.916 13.815a.76.76 0 0 0-.556.23.76.76 0 0 0-.23.555q0 .325.23.556.232.23.556.23a.76.76 0 0 0 .556-.23.76.76 0 0 0 .23-.556.76.76 0 0 0-.23-.555.76.76 0 0 0-.556-.23m0-12.429q-.693 0-1.306.215a3.7 3.7 0 0 0-1.05.55q-.435.336-.81.805a6 6 0 0 0-.607.911q-.232.442-.421.945-.19.502-.278.828-.09.326-.15.637-.765 3.856-1.686 5.823h12.617q-.921-1.967-1.686-5.823-.06-.311-.15-.637a10 10 0 0 0-.7-1.773 6 6 0 0 0-.606-.911 4.7 4.7 0 0 0-.81-.805 3.8 3.8 0 0 0-1.05-.55A3.9 3.9 0 0 0 12 5.143",
|
|
48
48
|
clipRule: "evenodd"
|
package/dist/icons/Bell.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgBell = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
3
|
+
const SvgBell = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
4
4
|
const props = {
|
|
5
5
|
...restProps,
|
|
6
6
|
width,
|
|
@@ -9,7 +9,7 @@ const SvgBell = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
10
|
Path,
|
|
11
11
|
{
|
|
12
|
-
fill:
|
|
12
|
+
fill: color,
|
|
13
13
|
fillRule: "evenodd",
|
|
14
14
|
d: "M13.915 3.757a5.4 5.4 0 0 1 1.602.905q.7.577 1.259 1.372t.93 1.718q.37.924.58 1.961.62 3.113 1.317 4.92.696 1.809 1.826 2.938h-7.207q.135.387.135.785 0 .975-.69 1.667a2.27 2.27 0 0 1-1.667.69 2.27 2.27 0 0 1-1.666-.69 2.27 2.27 0 0 1-.691-1.667q0-.4.135-.785H2.571q1.13-1.13 1.826-2.937.697-1.809 1.317-4.92.21-1.038.58-1.962a8.4 8.4 0 0 1 .93-1.718q.56-.795 1.26-1.372.699-.578 1.601-.905a5.6 5.6 0 0 1 1.916-.328q1.01 0 1.914.328m-1.916 13.815a.76.76 0 0 0-.556.23.76.76 0 0 0-.23.555q0 .325.23.556.232.23.556.23a.76.76 0 0 0 .556-.23.76.76 0 0 0 .23-.556.76.76 0 0 0-.23-.555.76.76 0 0 0-.556-.23m0-12.429q-.693 0-1.306.215a3.7 3.7 0 0 0-1.05.55q-.435.336-.81.805a6 6 0 0 0-.607.911q-.232.442-.421.945-.19.502-.278.828-.09.326-.15.637-.765 3.856-1.686 5.823h12.617q-.921-1.967-1.686-5.823-.06-.311-.15-.637a10 10 0 0 0-.7-1.773 6 6 0 0 0-.606-.911 4.7 4.7 0 0 0-.81-.805 3.8 3.8 0 0 0-1.05-.55A3.9 3.9 0 0 0 12 5.143",
|
|
15
15
|
clipRule: "evenodd"
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBellFill: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBellFill: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBellFill as default };
|
package/dist/icons/BellFill.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgBellFill: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgBellFill: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgBellFill as default };
|
package/dist/icons/BellFill.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(BellFill_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(BellFill_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgBellFill = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
36
|
+
const SvgBellFill = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
37
37
|
const props = {
|
|
38
38
|
...restProps,
|
|
39
39
|
width,
|
|
@@ -42,7 +42,7 @@ const SvgBellFill = ({ size = 24, width = size, height = size, ...restProps }) =
|
|
|
42
42
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
43
|
import_react_native_svg.Path,
|
|
44
44
|
{
|
|
45
|
-
fill:
|
|
45
|
+
fill: color,
|
|
46
46
|
fillRule: "evenodd",
|
|
47
47
|
d: "M13.915 3.757a5.4 5.4 0 0 1 1.602.905q.7.577 1.259 1.372t.93 1.718q.37.924.58 1.962.62 3.111 1.317 4.92.696 1.807 1.826 2.937h-7.207q.135.387.135.785 0 .975-.69 1.667a2.27 2.27 0 0 1-1.667.69 2.27 2.27 0 0 1-1.666-.69 2.27 2.27 0 0 1-.691-1.667q0-.4.135-.785H2.571q1.13-1.13 1.826-2.937.697-1.809 1.317-4.92.21-1.038.58-1.962a8.4 8.4 0 0 1 .93-1.718q.56-.795 1.26-1.372.699-.578 1.601-.905a5.6 5.6 0 0 1 1.916-.328q1.01 0 1.914.328",
|
|
48
48
|
clipRule: "evenodd"
|
package/dist/icons/BellFill.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgBellFill = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
3
|
+
const SvgBellFill = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
4
4
|
const props = {
|
|
5
5
|
...restProps,
|
|
6
6
|
width,
|
|
@@ -9,7 +9,7 @@ const SvgBellFill = ({ size = 24, width = size, height = size, ...restProps }) =
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
10
|
Path,
|
|
11
11
|
{
|
|
12
|
-
fill:
|
|
12
|
+
fill: color,
|
|
13
13
|
fillRule: "evenodd",
|
|
14
14
|
d: "M13.915 3.757a5.4 5.4 0 0 1 1.602.905q.7.577 1.259 1.372t.93 1.718q.37.924.58 1.962.62 3.111 1.317 4.92.696 1.807 1.826 2.937h-7.207q.135.387.135.785 0 .975-.69 1.667a2.27 2.27 0 0 1-1.667.69 2.27 2.27 0 0 1-1.666-.69 2.27 2.27 0 0 1-.691-1.667q0-.4.135-.785H2.571q1.13-1.13 1.826-2.937.697-1.809 1.317-4.92.21-1.038.58-1.962a8.4 8.4 0 0 1 .93-1.718q.56-.795 1.26-1.372.699-.578 1.601-.905a5.6 5.6 0 0 1 1.916-.328q1.01 0 1.914.328",
|
|
15
15
|
clipRule: "evenodd"
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCalendar: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCalendar: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCalendar as default };
|
package/dist/icons/Calendar.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCalendar: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCalendar: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCalendar as default };
|
package/dist/icons/Calendar.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(Calendar_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Calendar_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgCalendar = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
36
|
+
const SvgCalendar = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
37
37
|
const props = {
|
|
38
38
|
...restProps,
|
|
39
39
|
width,
|
|
@@ -42,7 +42,7 @@ const SvgCalendar = ({ size = 24, width = size, height = size, ...restProps }) =
|
|
|
42
42
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
43
|
import_react_native_svg.Path,
|
|
44
44
|
{
|
|
45
|
-
fill:
|
|
45
|
+
fill: color,
|
|
46
46
|
d: "M6.857 5.571s0 .857.857.857.857-.857.857-.857V3.857h6.858v1.714s-.001.857.856.857.858-.857.858-.857V3.857h1.714c.71 0 1.286.579 1.286 1.285v13.715c0 .71-.58 1.286-1.286 1.286H5.142c-.71 0-1.285-.58-1.285-1.286V5.142c0-.71.579-1.285 1.285-1.285h1.715zM5.571 18.428h12.858v-8.142H5.57zm6.382-7.57a.857.857 0 0 1 1.333.713v5.144a.857.857 0 0 1-1.715 0V13.14c-.347.263-.879.157-1.142-.237a.857.857 0 0 1 .239-1.188z"
|
|
47
47
|
}
|
|
48
48
|
) });
|
package/dist/icons/Calendar.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgCalendar = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
3
|
+
const SvgCalendar = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
4
4
|
const props = {
|
|
5
5
|
...restProps,
|
|
6
6
|
width,
|
|
@@ -9,7 +9,7 @@ const SvgCalendar = ({ size = 24, width = size, height = size, ...restProps }) =
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
10
|
Path,
|
|
11
11
|
{
|
|
12
|
-
fill:
|
|
12
|
+
fill: color,
|
|
13
13
|
d: "M6.857 5.571s0 .857.857.857.857-.857.857-.857V3.857h6.858v1.714s-.001.857.856.857.858-.857.858-.857V3.857h1.714c.71 0 1.286.579 1.286 1.285v13.715c0 .71-.58 1.286-1.286 1.286H5.142c-.71 0-1.285-.58-1.285-1.286V5.142c0-.71.579-1.285 1.285-1.285h1.715zM5.571 18.428h12.858v-8.142H5.57zm6.382-7.57a.857.857 0 0 1 1.333.713v5.144a.857.857 0 0 1-1.715 0V13.14c-.347.263-.879.157-1.142-.237a.857.857 0 0 1 .239-1.188z"
|
|
14
14
|
}
|
|
15
15
|
) });
|
package/dist/icons/Check.d.mts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCheck: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCheck: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCheck as default };
|
package/dist/icons/Check.d.ts
CHANGED
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCheck: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCheck: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCheck as default };
|
package/dist/icons/Check.js
CHANGED
|
@@ -33,7 +33,7 @@ __export(Check_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(Check_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgCheck = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
36
|
+
const SvgCheck = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
37
37
|
const props = {
|
|
38
38
|
...restProps,
|
|
39
39
|
width,
|
|
@@ -42,7 +42,7 @@ const SvgCheck = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
42
42
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
43
|
import_react_native_svg.Path,
|
|
44
44
|
{
|
|
45
|
-
fill:
|
|
45
|
+
fill: color,
|
|
46
46
|
d: "M19.784 5.242A1.071 1.071 0 1 1 21.3 6.758L9.503 18.554q-.067.115-.165.213a1.07 1.07 0 0 1-1.516 0l-5.151-5.152A1.071 1.071 0 1 1 4.187 12.1l4.37 4.37z"
|
|
47
47
|
}
|
|
48
48
|
) });
|
package/dist/icons/Check.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgCheck = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
3
|
+
const SvgCheck = ({ size = 24, width = size, height = size, color, ...restProps }) => {
|
|
4
4
|
const props = {
|
|
5
5
|
...restProps,
|
|
6
6
|
width,
|
|
@@ -9,7 +9,7 @@ const SvgCheck = ({ size = 24, width = size, height = size, ...restProps }) => {
|
|
|
9
9
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
10
|
Path,
|
|
11
11
|
{
|
|
12
|
-
fill:
|
|
12
|
+
fill: color,
|
|
13
13
|
d: "M19.784 5.242A1.071 1.071 0 1 1 21.3 6.758L9.503 18.554q-.067.115-.165.213a1.07 1.07 0 0 1-1.516 0l-5.151-5.152A1.071 1.071 0 1 1 4.187 12.1l4.37 4.37z"
|
|
14
14
|
}
|
|
15
15
|
) });
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCheckCircleFill: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCheckCircleFill: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCheckCircleFill as default };
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgCheckCircleFill: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgCheckCircleFill: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgCheckCircleFill as default };
|
|
@@ -33,7 +33,13 @@ __export(CheckCircleFill_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(CheckCircleFill_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgCheckCircleFill = ({
|
|
36
|
+
const SvgCheckCircleFill = ({
|
|
37
|
+
size = 24,
|
|
38
|
+
width = size,
|
|
39
|
+
height = size,
|
|
40
|
+
color,
|
|
41
|
+
...restProps
|
|
42
|
+
}) => {
|
|
37
43
|
const props = {
|
|
38
44
|
...restProps,
|
|
39
45
|
width,
|
|
@@ -42,7 +48,7 @@ const SvgCheckCircleFill = ({ size = 24, width = size, height = size, ...restPro
|
|
|
42
48
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
49
|
import_react_native_svg.Path,
|
|
44
50
|
{
|
|
45
|
-
fill:
|
|
51
|
+
fill: color,
|
|
46
52
|
fillRule: "evenodd",
|
|
47
53
|
d: "M12 2.571a9.43 9.43 0 0 1 9.429 9.43A9.43 9.43 0 0 1 12 21.428 9.43 9.43 0 0 1 2.571 12a9.43 9.43 0 0 1 9.43-9.429m5.694 5.607a.857.857 0 0 0-1.212 0l-6.408 6.407-2.12-2.121a.857.857 0 1 0-1.213 1.212l2.121 2.121s.472.606 1.212.607c.741 0 1.213-.607 1.213-.607l6.406-6.406a.86.86 0 0 0 0-1.213",
|
|
48
54
|
clipRule: "evenodd"
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import Svg, { Path } from "react-native-svg";
|
|
3
|
-
const SvgCheckCircleFill = ({
|
|
3
|
+
const SvgCheckCircleFill = ({
|
|
4
|
+
size = 24,
|
|
5
|
+
width = size,
|
|
6
|
+
height = size,
|
|
7
|
+
color,
|
|
8
|
+
...restProps
|
|
9
|
+
}) => {
|
|
4
10
|
const props = {
|
|
5
11
|
...restProps,
|
|
6
12
|
width,
|
|
@@ -9,7 +15,7 @@ const SvgCheckCircleFill = ({ size = 24, width = size, height = size, ...restPro
|
|
|
9
15
|
return /* @__PURE__ */ jsx(Svg, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ jsx(
|
|
10
16
|
Path,
|
|
11
17
|
{
|
|
12
|
-
fill:
|
|
18
|
+
fill: color,
|
|
13
19
|
fillRule: "evenodd",
|
|
14
20
|
d: "M12 2.571a9.43 9.43 0 0 1 9.429 9.43A9.43 9.43 0 0 1 12 21.428 9.43 9.43 0 0 1 2.571 12a9.43 9.43 0 0 1 9.43-9.429m5.694 5.607a.857.857 0 0 0-1.212 0l-6.408 6.407-2.12-2.121a.857.857 0 1 0-1.213 1.212l2.121 2.121s.472.606 1.212.607c.741 0 1.213-.607 1.213-.607l6.406-6.406a.86.86 0 0 0 0-1.213",
|
|
15
21
|
clipRule: "evenodd"
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgChevronDown: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgChevronDown: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgChevronDown as default };
|
|
@@ -6,7 +6,8 @@ interface ISvgProps extends SvgProps {
|
|
|
6
6
|
xmlnsXlink?: string;
|
|
7
7
|
xmlSpace?: string;
|
|
8
8
|
size?: number;
|
|
9
|
+
color?: string;
|
|
9
10
|
}
|
|
10
|
-
declare const SvgChevronDown: ({ size, width, height, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
|
+
declare const SvgChevronDown: ({ size, width, height, color, ...restProps }: ISvgProps) => react_jsx_runtime.JSX.Element;
|
|
11
12
|
|
|
12
13
|
export { SvgChevronDown as default };
|
|
@@ -33,7 +33,13 @@ __export(ChevronDown_exports, {
|
|
|
33
33
|
module.exports = __toCommonJS(ChevronDown_exports);
|
|
34
34
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
35
|
var import_react_native_svg = __toESM(require("react-native-svg"));
|
|
36
|
-
const SvgChevronDown = ({
|
|
36
|
+
const SvgChevronDown = ({
|
|
37
|
+
size = 24,
|
|
38
|
+
width = size,
|
|
39
|
+
height = size,
|
|
40
|
+
color,
|
|
41
|
+
...restProps
|
|
42
|
+
}) => {
|
|
37
43
|
const props = {
|
|
38
44
|
...restProps,
|
|
39
45
|
width,
|
|
@@ -42,7 +48,7 @@ const SvgChevronDown = ({ size = 24, width = size, height = size, ...restProps }
|
|
|
42
48
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_native_svg.default, { xmlns: "http://www.w3.org/2000/svg", fill: "none", viewBox: "0 0 24 24", ...props, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
43
49
|
import_react_native_svg.Path,
|
|
44
50
|
{
|
|
45
|
-
fill:
|
|
51
|
+
fill: color,
|
|
46
52
|
d: "M4.76 7.25a1.074 1.074 0 1 0-1.52 1.52l7.964 7.966c.44.439 1.151.439 1.59 0L20.76 8.77a1.074 1.074 0 1 0-1.52-1.52L12 14.49z"
|
|
47
53
|
}
|
|
48
54
|
) });
|