@drivy/cobalt 0.19.1 → 0.20.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/cjs/tokens/icons.js +2 -0
- package/cjs/tokens/icons.js.map +1 -1
- package/components/Flash/index.js +4 -4
- package/components/Flash/index.js.map +1 -1
- package/components/Form/Hint.js +2 -2
- package/components/Form/Hint.js.map +1 -1
- package/components/Icon/__generated__/EvCableIcon.js +21 -0
- package/components/Icon/__generated__/EvCableIcon.js.map +1 -0
- package/components/Icon/__generated__/EvChargerIcon.js +21 -0
- package/components/Icon/__generated__/EvChargerIcon.js.map +1 -0
- package/components/Icon/__generated__/SearchCarIcon.js +0 -1
- package/components/Icon/__generated__/SearchCarIcon.js.map +1 -1
- package/components/Icon/index.js +0 -5
- package/components/Icon/index.js.map +1 -1
- package/components/Pill/index.js +1 -1
- package/components/Pill/index.js.map +1 -1
- package/icons/ev-cable.js +4 -0
- package/icons/ev-cable.js.map +1 -0
- package/icons/ev-cable.svg +1 -0
- package/icons/ev-charger.js +4 -0
- package/icons/ev-charger.js.map +1 -0
- package/icons/ev-charger.svg +1 -0
- package/icons/index.js +2 -0
- package/icons/index.js.map +1 -1
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/package.json +20 -19
- package/styles/components/Button/legacy.scss +13 -17
- package/styles/components/Callout/index.scss +3 -3
- package/styles/components/Card/index.scss +1 -1
- package/styles/components/Chip/index.scss +1 -1
- package/styles/components/Form/Autocomplete/index.scss +1 -1
- package/styles/components/Form/CheckablePill.scss +6 -6
- package/styles/components/Form/Checkmark.scss +1 -1
- package/styles/components/Form/Fieldset.scss +1 -1
- package/styles/components/Form/Select.scss +1 -1
- package/styles/components/Form/Stepper.scss +1 -1
- package/styles/components/Form/TextArea.scss +2 -2
- package/styles/components/Form/TextInput.scss +4 -4
- package/styles/components/Form/ToggleSwitch.scss +8 -8
- package/styles/components/Form/form.scss +4 -4
- package/styles/components/Icon/index.scss +0 -25
- package/styles/components/Pill/index.scss +1 -1
- package/styles/components/TabBar/index.scss +3 -3
- package/styles/components/Tag/index.scss +1 -1
- package/styles/core/card.scss +6 -6
- package/styles/core/color.scss +1 -24
- package/styles/core/typography.scss +6 -6
- package/tokens/icons.js +2 -0
- package/tokens/icons.js.map +1 -1
- package/types/components/Button/index.d.ts +6 -6
- package/types/components/Buttons/DefaultButton/index.d.ts +2 -2
- package/types/components/Buttons/GhostButton/index.d.ts +2 -2
- package/types/components/Form/Autocomplete/index.d.ts +2 -2
- package/types/components/Form/TextInput.d.ts +3 -3
- package/types/components/Icon/__generated__/EvCableIcon.d.ts +10 -0
- package/types/components/Icon/__generated__/EvChargerIcon.d.ts +10 -0
- package/types/components/Icon/__generated__/index.d.ts +2 -0
- package/types/components/Icon/index.d.ts +2 -2
- package/types/icons/index.d.ts +2 -0
- package/types/tokens/index.d.ts +2 -0
- package/utilities.css +47 -142
package/cjs/tokens/icons.js
CHANGED
|
@@ -102,6 +102,8 @@ const icons = {
|
|
|
102
102
|
edit: "edit.svg",
|
|
103
103
|
electric: "electric.svg",
|
|
104
104
|
evBattery: "ev-battery.svg",
|
|
105
|
+
evCable: "ev-cable.svg",
|
|
106
|
+
evCharger: "ev-charger.svg",
|
|
105
107
|
externalLink: "external-link.svg",
|
|
106
108
|
eyeClosed: "eye-closed.svg",
|
|
107
109
|
eyeOpened: "eye-opened.svg",
|
package/cjs/tokens/icons.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"icons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -8,9 +8,9 @@ const STATUS_ICONS_MAP = {
|
|
|
8
8
|
error: "contextualWarningCircleFilled",
|
|
9
9
|
};
|
|
10
10
|
const STATUS_ICON_COLOR_MAP = {
|
|
11
|
-
info: "
|
|
12
|
-
success: "
|
|
13
|
-
error: "
|
|
11
|
+
info: "turquoise",
|
|
12
|
+
success: "green",
|
|
13
|
+
error: "red",
|
|
14
14
|
};
|
|
15
15
|
const Flash = ({ children, status = "info" }) => {
|
|
16
16
|
const icon = STATUS_ICONS_MAP[status]
|
|
@@ -18,7 +18,7 @@ const Flash = ({ children, status = "info" }) => {
|
|
|
18
18
|
: "infoFilled";
|
|
19
19
|
const iconColor = STATUS_ICON_COLOR_MAP[status]
|
|
20
20
|
? STATUS_ICON_COLOR_MAP[status]
|
|
21
|
-
: "
|
|
21
|
+
: "turquoise";
|
|
22
22
|
return (React.createElement("div", { className: "cobalt-Flash" },
|
|
23
23
|
React.createElement("div", { className: "cobalt-Flash__wrapper" },
|
|
24
24
|
React.createElement("span", { className: "cobalt-Flash__Icon" },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Flash/index.tsx"],"sourcesContent":["import React from \"react\"\nimport { Icon, IconColorsType, IconSources } from \"../Icon\"\n\nexport type FlashStatus = \"info\" | \"success\" | \"error\"\n\nexport interface FlashProps {\n children: React.ReactNode\n status: FlashStatus\n}\n\nconst ICON_SIZE = 20\n\nconst STATUS_ICONS_MAP: { [k in FlashStatus]: IconSources } = {\n info: \"infoFilled\",\n success: \"checkCircle\",\n error: \"contextualWarningCircleFilled\",\n}\n\nconst STATUS_ICON_COLOR_MAP: { [k in FlashStatus]: IconColorsType } = {\n info: \"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Flash/index.tsx"],"sourcesContent":["import React from \"react\"\nimport { Icon, IconColorsType, IconSources } from \"../Icon\"\n\nexport type FlashStatus = \"info\" | \"success\" | \"error\"\n\nexport interface FlashProps {\n children: React.ReactNode\n status: FlashStatus\n}\n\nconst ICON_SIZE = 20\n\nconst STATUS_ICONS_MAP: { [k in FlashStatus]: IconSources } = {\n info: \"infoFilled\",\n success: \"checkCircle\",\n error: \"contextualWarningCircleFilled\",\n}\n\nconst STATUS_ICON_COLOR_MAP: { [k in FlashStatus]: IconColorsType } = {\n info: \"turquoise\",\n success: \"green\",\n error: \"red\",\n}\n\nexport const Flash = ({ children, status = \"info\" }: FlashProps) => {\n const icon = STATUS_ICONS_MAP[status]\n ? STATUS_ICONS_MAP[status]\n : \"infoFilled\"\n\n const iconColor: IconColorsType = STATUS_ICON_COLOR_MAP[status]\n ? STATUS_ICON_COLOR_MAP[status]\n : \"turquoise\"\n\n return (\n <div className=\"cobalt-Flash\">\n <div className=\"cobalt-Flash__wrapper\">\n <span className=\"cobalt-Flash__Icon\">\n <Icon source={icon} size={ICON_SIZE} color={iconColor} />\n </span>\n <span className=\"cobalt-Flash__content\">{children}</span>\n </div>\n </div>\n )\n}\n"],"names":[],"mappings":";;;AAUA,MAAM,SAAS,GAAG,EAAE,CAAA;AAEpB,MAAM,gBAAgB,GAAwC;AAC5D,IAAA,IAAI,EAAE,YAAY;AAClB,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,KAAK,EAAE,+BAA+B;CACvC,CAAA;AAED,MAAM,qBAAqB,GAA2C;AACpE,IAAA,IAAI,EAAE,WAAW;AACjB,IAAA,OAAO,EAAE,OAAO;AAChB,IAAA,KAAK,EAAE,KAAK;CACb,CAAA;AAEM,MAAM,KAAK,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAc,KAAI;AACjE,IAAA,MAAM,IAAI,GAAG,gBAAgB,CAAC,MAAM,CAAC;AACnC,UAAE,gBAAgB,CAAC,MAAM,CAAC;UACxB,YAAY,CAAA;AAEhB,IAAA,MAAM,SAAS,GAAmB,qBAAqB,CAAC,MAAM,CAAC;AAC7D,UAAE,qBAAqB,CAAC,MAAM,CAAC;UAC7B,WAAW,CAAA;AAEf,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,cAAc,EAAA;QAC3B,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,uBAAuB,EAAA;YACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,oBAAoB,EAAA;AAClC,gBAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,GAAI,CACpD;YACP,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,uBAAuB,EAAA,EAAE,QAAQ,CAAQ,CACrD,CACF,EACP;AACH;;;;"}
|
package/components/Form/Hint.js
CHANGED
|
@@ -19,10 +19,10 @@ const getIcon = (status) => {
|
|
|
19
19
|
const getIconColor = (status) => {
|
|
20
20
|
switch (status) {
|
|
21
21
|
case "success": {
|
|
22
|
-
return "
|
|
22
|
+
return "green";
|
|
23
23
|
}
|
|
24
24
|
case "error": {
|
|
25
|
-
return "
|
|
25
|
+
return "red";
|
|
26
26
|
}
|
|
27
27
|
default: {
|
|
28
28
|
return "graphiteLight";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hint.js","sources":["../../../src/components/Form/Hint.tsx"],"sourcesContent":["import React from \"react\"\nimport classNames from \"classnames\"\nimport { Icon } from \"../Icon\"\nimport { FormElementStatus } from \"./form\"\n\nexport interface HintPropsType {\n className?: string\n children: React.ReactNode\n status?: FormElementStatus\n}\n\nconst ICON_SIZE = 16\n\nconst getIcon = (status: FormElementStatus | undefined) => {\n switch (status) {\n case \"success\": {\n return \"checkCircle\"\n }\n case \"error\": {\n return \"contextualWarningCircleFilled\"\n }\n default: {\n return \"info\"\n }\n }\n}\n\nconst getIconColor = (status: FormElementStatus | undefined) => {\n switch (status) {\n case \"success\": {\n return \"
|
|
1
|
+
{"version":3,"file":"Hint.js","sources":["../../../src/components/Form/Hint.tsx"],"sourcesContent":["import React from \"react\"\nimport classNames from \"classnames\"\nimport { Icon } from \"../Icon\"\nimport { FormElementStatus } from \"./form\"\n\nexport interface HintPropsType {\n className?: string\n children: React.ReactNode\n status?: FormElementStatus\n}\n\nconst ICON_SIZE = 16\n\nconst getIcon = (status: FormElementStatus | undefined) => {\n switch (status) {\n case \"success\": {\n return \"checkCircle\"\n }\n case \"error\": {\n return \"contextualWarningCircleFilled\"\n }\n default: {\n return \"info\"\n }\n }\n}\n\nconst getIconColor = (status: FormElementStatus | undefined) => {\n switch (status) {\n case \"success\": {\n return \"green\"\n }\n case \"error\": {\n return \"red\"\n }\n default: {\n return \"graphiteLight\"\n }\n }\n}\n\nexport const Hint = ({ children, status, className }: HintPropsType) => {\n return (\n <div\n className={classNames(\"cobalt-Hint\", className, {\n \"cobalt-Hint--success\": status === \"success\",\n \"cobalt-Hint--error\": status === \"error\",\n })}\n >\n <span className=\"cobalt-Hint__Icon\">\n <Icon\n source={getIcon(status)}\n size={ICON_SIZE}\n color={getIconColor(status)}\n />\n </span>\n <span className=\"cobalt-Hint__Message\">{children}</span>\n </div>\n )\n}\n"],"names":["classNames"],"mappings":";;;;AAWA,MAAM,SAAS,GAAG,EAAE,CAAA;AAEpB,MAAM,OAAO,GAAG,CAAC,MAAqC,KAAI;AACxD,IAAA,QAAQ,MAAM;QACZ,KAAK,SAAS,EAAE;AACd,YAAA,OAAO,aAAa,CAAA;AACrB,SAAA;QACD,KAAK,OAAO,EAAE;AACZ,YAAA,OAAO,+BAA+B,CAAA;AACvC,SAAA;AACD,QAAA,SAAS;AACP,YAAA,OAAO,MAAM,CAAA;AACd,SAAA;AACF,KAAA;AACH,CAAC,CAAA;AAED,MAAM,YAAY,GAAG,CAAC,MAAqC,KAAI;AAC7D,IAAA,QAAQ,MAAM;QACZ,KAAK,SAAS,EAAE;AACd,YAAA,OAAO,OAAO,CAAA;AACf,SAAA;QACD,KAAK,OAAO,EAAE;AACZ,YAAA,OAAO,KAAK,CAAA;AACb,SAAA;AACD,QAAA,SAAS;AACP,YAAA,OAAO,eAAe,CAAA;AACvB,SAAA;AACF,KAAA;AACH,CAAC,CAAA;AAEM,MAAM,IAAI,GAAG,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAiB,KAAI;IACrE,QACE,6BACE,SAAS,EAAEA,EAAU,CAAC,aAAa,EAAE,SAAS,EAAE;YAC9C,sBAAsB,EAAE,MAAM,KAAK,SAAS;YAC5C,oBAAoB,EAAE,MAAM,KAAK,OAAO;SACzC,CAAC,EAAA;QAEF,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,mBAAmB,EAAA;YACjC,KAAC,CAAA,aAAA,CAAA,IAAI,IACH,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,EACvB,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,GAC3B,CACG;QACP,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAC,sBAAsB,EAAA,EAAE,QAAQ,CAAQ,CACpD,EACP;AACH;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import capitalize from '../../utils/capitalize.js';
|
|
3
|
+
import 'lodash.throttle';
|
|
4
|
+
import cx from 'classnames';
|
|
5
|
+
|
|
6
|
+
const iconSource = "evCable";
|
|
7
|
+
const EvCableIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
8
|
+
const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
|
|
9
|
+
[`cobalt-Icon--color${capitalize(color)}`]: color,
|
|
10
|
+
"cobalt-Icon--size16": size === 16,
|
|
11
|
+
"cobalt-Icon--size20": size === 20,
|
|
12
|
+
"cobalt-Icon--size32": size === 32,
|
|
13
|
+
"cobalt-Icon--contained": contained,
|
|
14
|
+
});
|
|
15
|
+
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
|
|
16
|
+
return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
17
|
+
React.createElement("path", { d: "M4.848 19v2h1.16v-2h1.743v2h1.16l.001-.968V19h.968v-4c0-.55-.45-1-1-1h-1V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-.968V3h-1.161v2h-1.742V3h-1.161l-.001 2h-.967v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v7h-1c-.55 0-1 .45-1 1v4h.968Z" })));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { EvCableIcon as default };
|
|
21
|
+
//# sourceMappingURL=EvCableIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvCableIcon.js","sources":["../../../../src/components/Icon/__generated__/EvCableIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"evCable\"\n\nconst EvCableIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n\n return wrap(\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"M4.848 19v2h1.16v-2h1.743v2h1.16l.001-.968V19h.968v-4c0-.55-.45-1-1-1h-1V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-.968V3h-1.161v2h-1.742V3h-1.161l-.001 2h-.967v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v7h-1c-.55 0-1 .45-1 1v4h.968Z\" />\n </svg>\n )\n}\n\nexport default EvCableIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,SAAS,CAAA;AAE5B,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AAED,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IAED,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,qTAAqT,EAAG,CAAA,CAC5T,CACP,CAAA;AACH;;;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import capitalize from '../../utils/capitalize.js';
|
|
3
|
+
import 'lodash.throttle';
|
|
4
|
+
import cx from 'classnames';
|
|
5
|
+
|
|
6
|
+
const iconSource = "evCharger";
|
|
7
|
+
const EvChargerIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
8
|
+
const computedClassName = cx(className, `cobalt-Icon cobalt-Icon--${iconSource}`, {
|
|
9
|
+
[`cobalt-Icon--color${capitalize(color)}`]: color,
|
|
10
|
+
"cobalt-Icon--size16": size === 16,
|
|
11
|
+
"cobalt-Icon--size20": size === 20,
|
|
12
|
+
"cobalt-Icon--size32": size === 32,
|
|
13
|
+
"cobalt-Icon--contained": contained,
|
|
14
|
+
});
|
|
15
|
+
const wrap = (content) => (React.createElement("span", { className: computedClassName }, content));
|
|
16
|
+
return wrap(React.createElement("svg", { viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg" },
|
|
17
|
+
React.createElement("path", { d: "m8.444 18.32 2.05-3.32H9.258v-2.49l-2.026 3.32h1.21v2.49Zm-2.725-8.016h6.264V4.897H5.72v5.407Zm0 8.822h6.264v-7.399H5.72v7.4ZM3.88 21V4.897c0-.522.18-.968.536-1.34A1.74 1.74 0 0 1 5.72 3h6.264c.513 0 .951.186 1.316.557.365.372.547.818.547 1.34v7.139h1.7c.342 0 .633.122.873.367.241.245.361.534.361.866v5.265c0 .316.124.577.373.782.248.206.535.309.861.309.342 0 .66-.103.955-.309.295-.205.443-.466.443-.782v-9.32h-.257a.875.875 0 0 1-.652-.261.909.909 0 0 1-.256-.664V5.964h.466V4.708h.885v1.256h.908V4.708h.908v1.256h.466V8.29c0 .268-.09.49-.268.664a.886.886 0 0 1-.64.26h-.256v9.32c0 .712-.272 1.301-.815 1.767a2.81 2.81 0 0 1-1.887.7c-.698 0-1.3-.233-1.804-.7-.505-.466-.757-1.055-.757-1.766v-5.265c0 .031.008.055.023.07.016.017.04.025.07.025h-1.7V21H3.88Zm8.104-1.873H5.72h6.264Z" })));
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export { EvChargerIcon as default };
|
|
21
|
+
//# sourceMappingURL=EvChargerIcon.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvChargerIcon.js","sources":["../../../../src/components/Icon/__generated__/EvChargerIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"evCharger\"\n\nconst EvChargerIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n\n return wrap(\n <svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n <path d=\"m8.444 18.32 2.05-3.32H9.258v-2.49l-2.026 3.32h1.21v2.49Zm-2.725-8.016h6.264V4.897H5.72v5.407Zm0 8.822h6.264v-7.399H5.72v7.4ZM3.88 21V4.897c0-.522.18-.968.536-1.34A1.74 1.74 0 0 1 5.72 3h6.264c.513 0 .951.186 1.316.557.365.372.547.818.547 1.34v7.139h1.7c.342 0 .633.122.873.367.241.245.361.534.361.866v5.265c0 .316.124.577.373.782.248.206.535.309.861.309.342 0 .66-.103.955-.309.295-.205.443-.466.443-.782v-9.32h-.257a.875.875 0 0 1-.652-.261.909.909 0 0 1-.256-.664V5.964h.466V4.708h.885v1.256h.908V4.708h.908v1.256h.466V8.29c0 .268-.09.49-.268.664a.886.886 0 0 1-.64.26h-.256v9.32c0 .712-.272 1.301-.815 1.767a2.81 2.81 0 0 1-1.887.7c-.698 0-1.3-.233-1.804-.7-.505-.466-.757-1.055-.757-1.766v-5.265c0 .031.008.055.023.07.016.017.04.025.07.025h-1.7V21H3.88Zm8.104-1.873H5.72h6.264Z\" />\n </svg>\n )\n}\n\nexport default EvChargerIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,WAAW,CAAA;AAE9B,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AAED,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;IAED,OAAO,IAAI,CACT,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,OAAO,EAAC,WAAW,EAAC,KAAK,EAAC,4BAA4B,EAAA;AACzD,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,CAAC,EAAC,gxBAAgxB,EAAG,CAAA,CACvxB,CACP,CAAA;AACH;;;;"}
|
|
@@ -20,7 +20,6 @@ const SearchCarIcon = ({ color, size = 24, contained = false, className, }) => {
|
|
|
20
20
|
strokeMiterlimit: 2,
|
|
21
21
|
} },
|
|
22
22
|
React.createElement("path", { d: "M15.695 18.052a9.895 9.895 0 0 1-5.753 1.833C4.451 19.885 0 15.434 0 9.942 0 4.451 4.451 0 9.942 0c5.492 0 9.943 4.451 9.943 9.942a9.9 9.9 0 0 1-1.833 5.754l5.653 5.654a1 1 0 0 1 0 1.414l-.943.943a.999.999 0 0 1-1.414 0l-5.653-5.655Zm-.496-10.179C14.904 6.341 14.141 5 12.171 5H7.886c-1.97 0-2.733 1.341-3.028 2.873A1.072 1.072 0 1 0 4.671 10h.004c-.004.25-.004.49-.004.714v3.57c0 .403.323.716.721.716h1.416a.715.715 0 0 0 .721-.716v-.713h5v.713c0 .403.322.716.721.716h1.415a.715.715 0 0 0 .721-.716v-3.57c0-.224 0-.464-.004-.714h.004a1.072 1.072 0 1 0-.187-2.127Zm-1.309.917c.017.168.03.327.04.496H6.127c.01-.169.023-.328.04-.496.175-1.699.635-2.361 1.719-2.361h4.285c1.084 0 1.544.662 1.719 2.361Zm-7.076 3.531a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Zm6.429 0a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Z", style: {
|
|
23
|
-
fill: "#362e53",
|
|
24
23
|
fillRule: "nonzero",
|
|
25
24
|
} })));
|
|
26
25
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchCarIcon.js","sources":["../../../../src/components/Icon/__generated__/SearchCarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"searchCar\"\n\nconst SearchCarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n\n return wrap(\n <svg\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlSpace=\"preserve\"\n style={{\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n strokeLinejoin: \"round\",\n strokeMiterlimit: 2,\n }}\n >\n <path\n d=\"M15.695 18.052a9.895 9.895 0 0 1-5.753 1.833C4.451 19.885 0 15.434 0 9.942 0 4.451 4.451 0 9.942 0c5.492 0 9.943 4.451 9.943 9.942a9.9 9.9 0 0 1-1.833 5.754l5.653 5.654a1 1 0 0 1 0 1.414l-.943.943a.999.999 0 0 1-1.414 0l-5.653-5.655Zm-.496-10.179C14.904 6.341 14.141 5 12.171 5H7.886c-1.97 0-2.733 1.341-3.028 2.873A1.072 1.072 0 1 0 4.671 10h.004c-.004.25-.004.49-.004.714v3.57c0 .403.323.716.721.716h1.416a.715.715 0 0 0 .721-.716v-.713h5v.713c0 .403.322.716.721.716h1.415a.715.715 0 0 0 .721-.716v-3.57c0-.224 0-.464-.004-.714h.004a1.072 1.072 0 1 0-.187-2.127Zm-1.309.917c.017.168.03.327.04.496H6.127c.01-.169.023-.328.04-.496.175-1.699.635-2.361 1.719-2.361h4.285c1.084 0 1.544.662 1.719 2.361Zm-7.076 3.531a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Zm6.429 0a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Z\"\n style={{\n
|
|
1
|
+
{"version":3,"file":"SearchCarIcon.js","sources":["../../../../src/components/Icon/__generated__/SearchCarIcon.tsx"],"sourcesContent":["import React from \"react\"\nimport { IconColorsType } from \"../\"\nimport { capitalize } from \"../../utils\"\nimport cx from \"classnames\"\nexport type IconProps = {\n color?: IconColorsType\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\nconst iconSource = \"searchCar\"\n\nconst SearchCarIcon = ({\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${iconSource}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n\n const wrap = (content: React.ReactNode) => (\n <span className={computedClassName}>{content}</span>\n )\n\n return wrap(\n <svg\n viewBox=\"0 0 24 24\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlSpace=\"preserve\"\n style={{\n fillRule: \"evenodd\",\n clipRule: \"evenodd\",\n strokeLinejoin: \"round\",\n strokeMiterlimit: 2,\n }}\n >\n <path\n d=\"M15.695 18.052a9.895 9.895 0 0 1-5.753 1.833C4.451 19.885 0 15.434 0 9.942 0 4.451 4.451 0 9.942 0c5.492 0 9.943 4.451 9.943 9.942a9.9 9.9 0 0 1-1.833 5.754l5.653 5.654a1 1 0 0 1 0 1.414l-.943.943a.999.999 0 0 1-1.414 0l-5.653-5.655Zm-.496-10.179C14.904 6.341 14.141 5 12.171 5H7.886c-1.97 0-2.733 1.341-3.028 2.873A1.072 1.072 0 1 0 4.671 10h.004c-.004.25-.004.49-.004.714v3.57c0 .403.323.716.721.716h1.416a.715.715 0 0 0 .721-.716v-.713h5v.713c0 .403.322.716.721.716h1.415a.715.715 0 0 0 .721-.716v-3.57c0-.224 0-.464-.004-.714h.004a1.072 1.072 0 1 0-.187-2.127Zm-1.309.917c.017.168.03.327.04.496H6.127c.01-.169.023-.328.04-.496.175-1.699.635-2.361 1.719-2.361h4.285c1.084 0 1.544.662 1.719 2.361Zm-7.076 3.531a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Zm6.429 0a.892.892 0 1 1-.001-1.785.892.892 0 0 1 .001 1.785Z\"\n style={{\n fillRule: \"nonzero\",\n }}\n />\n </svg>\n )\n}\n\nexport default SearchCarIcon\n"],"names":[],"mappings":";;;;;AAUA,MAAM,UAAU,GAAG,WAAW,CAAA;AAE9B,MAAM,aAAa,GAAG,CAAC,EACrB,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,UAAU,CAAA,CAAE,EACxC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AAED,IAAA,MAAM,IAAI,GAAG,CAAC,OAAwB,MACpC,KAAM,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,SAAS,EAAE,iBAAiB,EAAA,EAAG,OAAO,CAAQ,CACrD,CAAA;AAED,IAAA,OAAO,IAAI,CACT,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,OAAO,EAAC,WAAW,EACnB,KAAK,EAAC,4BAA4B,EAClC,QAAQ,EAAC,UAAU,EACnB,KAAK,EAAE;AACL,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,QAAQ,EAAE,SAAS;AACnB,YAAA,cAAc,EAAE,OAAO;AACvB,YAAA,gBAAgB,EAAE,CAAC;AACpB,SAAA,EAAA;AAED,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,CAAC,EAAC,0zBAA0zB,EAC5zB,KAAK,EAAE;AACL,gBAAA,QAAQ,EAAE,SAAS;aACpB,EACD,CAAA,CACE,CACP,CAAA;AACH;;;;"}
|
package/components/Icon/index.js
CHANGED
|
@@ -13,13 +13,9 @@ const BUNDLED_ICONS = Object.freeze(Object.keys(icons.icons).reduce((bundledIcon
|
|
|
13
13
|
[name]: index[name],
|
|
14
14
|
}), {}));
|
|
15
15
|
const iconLegacyColorsOptions = [
|
|
16
|
-
"aller",
|
|
17
16
|
"amber",
|
|
18
|
-
"asphalt",
|
|
19
|
-
"asphaltLight",
|
|
20
17
|
"blue",
|
|
21
18
|
"coral",
|
|
22
|
-
"essence",
|
|
23
19
|
"graphite",
|
|
24
20
|
"graphiteLight",
|
|
25
21
|
"green",
|
|
@@ -34,7 +30,6 @@ const iconLegacyColorsOptions = [
|
|
|
34
30
|
"purple",
|
|
35
31
|
"purpleLight",
|
|
36
32
|
"red",
|
|
37
|
-
"signal",
|
|
38
33
|
"turquoise",
|
|
39
34
|
"white",
|
|
40
35
|
];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Icon/index.tsx"],"sourcesContent":["import React from \"react\"\nimport cx from \"classnames\"\nimport { icons as iconTokens, theme } from \"../../tokens\"\n\nimport * as icons from \"../../icons\"\nimport { eqSet, capitalize } from \"../utils\"\n\nif (\n !eqSet<string>(\n new Set(Object.keys(icons)),\n new Set(Object.keys(iconTokens.icons))\n )\n)\n throw new Error(\n \"Icon sources and tokens are not consistent. Did you add the source, export it and run 'yarn run icons:update'\"\n )\n\ninterface IconsMap {\n [name: string]: string | undefined\n}\n\nexport const BUNDLED_ICONS: IconsMap = Object.freeze(\n Object.keys(iconTokens.icons).reduce(\n (bundledIcons, name) => ({\n ...bundledIcons,\n [name]: (icons as IconsMap)[name],\n }),\n {}\n )\n)\n\nexport type IconSources = keyof typeof iconTokens.icons\n\nconst iconLegacyColorsOptions = [\n \"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Icon/index.tsx"],"sourcesContent":["import React from \"react\"\nimport cx from \"classnames\"\nimport { icons as iconTokens, theme } from \"../../tokens\"\n\nimport * as icons from \"../../icons\"\nimport { eqSet, capitalize } from \"../utils\"\n\nif (\n !eqSet<string>(\n new Set(Object.keys(icons)),\n new Set(Object.keys(iconTokens.icons))\n )\n)\n throw new Error(\n \"Icon sources and tokens are not consistent. Did you add the source, export it and run 'yarn run icons:update'\"\n )\n\ninterface IconsMap {\n [name: string]: string | undefined\n}\n\nexport const BUNDLED_ICONS: IconsMap = Object.freeze(\n Object.keys(iconTokens.icons).reduce(\n (bundledIcons, name) => ({\n ...bundledIcons,\n [name]: (icons as IconsMap)[name],\n }),\n {}\n )\n)\n\nexport type IconSources = keyof typeof iconTokens.icons\n\nconst iconLegacyColorsOptions = [\n \"amber\",\n \"blue\",\n \"coral\",\n \"graphite\",\n \"graphiteLight\",\n \"green\",\n \"greenDark\",\n \"greenLight\",\n \"grey\",\n \"greyDark\",\n \"greyLight\",\n \"greyLighter\",\n \"indigo\",\n \"indigoDark\",\n \"purple\",\n \"purpleLight\",\n \"red\",\n \"turquoise\",\n \"white\",\n] as const\n\nexport const iconColors = [\n ...(Object.keys(theme.icon) as Array<keyof typeof theme.icon>),\n ...iconLegacyColorsOptions,\n]\n\nexport type IconColorsType = typeof iconColors[number]\nexport interface IconProps {\n source: IconSources\n /**\n * Available colors\n * @default base\n */\n color?: IconColorsType\n /**\n * Available size in px\n * @default 24\n */\n size?: 16 | 20 | 24 | 32\n contained?: boolean\n className?: string\n}\n\nexport const isIconSource = (source: string): source is IconSources =>\n Object.keys(iconTokens.icons).includes(source)\n\nexport const Icon = ({\n source,\n color,\n size = 24,\n contained = false,\n className,\n}: IconProps) => {\n const computedClassName = cx(\n className,\n `cobalt-Icon cobalt-Icon--${source}`,\n {\n [`cobalt-Icon--color${capitalize(color)}`]: color,\n \"cobalt-Icon--size16\": size === 16,\n \"cobalt-Icon--size20\": size === 20,\n \"cobalt-Icon--size32\": size === 32,\n \"cobalt-Icon--contained\": contained,\n }\n )\n\n const iconSource = BUNDLED_ICONS[source]\n\n if (iconSource == null)\n throw new Error(\n `Icon '${source}' can not be found. Did you add the source, export it and run 'yarn run icons:update'?`\n )\n\n return (\n <span\n className={computedClassName}\n dangerouslySetInnerHTML={{ __html: iconSource }}\n />\n )\n}\n\nexport * from \"./__generated__/index\"\n\nexport default Icon\n"],"names":["icons","iconTokens"],"mappings":";;;;;;;;AAOA,IACE,CAAC,KAAK,CACJ,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAACA,KAAK,CAAC,CAAC,EAC3B,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,CAACC,KAAU,CAAC,KAAK,CAAC,CAAC,CACvC;AAED,IAAA,MAAM,IAAI,KAAK,CACb,+GAA+G,CAChH,CAAA;AAMU,MAAA,aAAa,GAAa,MAAM,CAAC,MAAM,CAClD,MAAM,CAAC,IAAI,CAACA,KAAU,CAAC,KAAK,CAAC,CAAC,MAAM,CAClC,CAAC,YAAY,EAAE,IAAI,MAAM;AACvB,IAAA,GAAG,YAAY;AACf,IAAA,CAAC,IAAI,GAAID,KAAkB,CAAC,IAAI,CAAC;AAClC,CAAA,CAAC,EACF,EAAE,CACH,EACF;AAID,MAAM,uBAAuB,GAAG;IAC9B,OAAO;IACP,MAAM;IACN,OAAO;IACP,UAAU;IACV,eAAe;IACf,OAAO;IACP,WAAW;IACX,YAAY;IACZ,MAAM;IACN,UAAU;IACV,WAAW;IACX,aAAa;IACb,QAAQ;IACR,YAAY;IACZ,QAAQ;IACR,aAAa;IACb,KAAK;IACL,WAAW;IACX,OAAO;CACC,CAAA;AAEG,MAAA,UAAU,GAAG;AACxB,IAAA,GAAI,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAoC;AAC9D,IAAA,GAAG,uBAAuB;EAC3B;MAmBY,YAAY,GAAG,CAAC,MAAc,KACzC,MAAM,CAAC,IAAI,CAACC,KAAU,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,MAAM,EAAC;MAEnC,IAAI,GAAG,CAAC,EACnB,MAAM,EACN,KAAK,EACL,IAAI,GAAG,EAAE,EACT,SAAS,GAAG,KAAK,EACjB,SAAS,GACC,KAAI;IACd,MAAM,iBAAiB,GAAG,EAAE,CAC1B,SAAS,EACT,CAAA,yBAAA,EAA4B,MAAM,CAAA,CAAE,EACpC;QACE,CAAC,CAAA,kBAAA,EAAqB,UAAU,CAAC,KAAK,CAAC,CAAE,CAAA,GAAG,KAAK;QACjD,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;QAClC,qBAAqB,EAAE,IAAI,KAAK,EAAE;AAClC,QAAA,wBAAwB,EAAE,SAAS;AACpC,KAAA,CACF,CAAA;AAED,IAAA,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC,CAAA;IAExC,IAAI,UAAU,IAAI,IAAI;AACpB,QAAA,MAAM,IAAI,KAAK,CACb,SAAS,MAAM,CAAA,sFAAA,CAAwF,CACxG,CAAA;AAEH,IAAA,QACE,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EACE,SAAS,EAAE,iBAAiB,EAC5B,uBAAuB,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAA,CAC/C,EACH;AACH;;;;"}
|
package/components/Pill/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const Pill = ({ icon, color = "base", children, overlayed, className, size, }) =
|
|
|
7
7
|
const iconMarkup = icon ? (React.createElement("span", { className: "cobalt-Pill__Icon" },
|
|
8
8
|
React.createElement(Icon, { source: icon, size: ICON_SIZE, color: overlayed ? "white" : color }))) : null;
|
|
9
9
|
return (React.createElement("div", { className: cx(className, "cobalt-Pill", {
|
|
10
|
-
"cobalt-Pill--
|
|
10
|
+
"cobalt-Pill--colorConnect": color === "connect",
|
|
11
11
|
"cobalt-Pill--overlayed": overlayed,
|
|
12
12
|
"cobalt-Pill--large": size === "large",
|
|
13
13
|
}) },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/Pill/index.tsx"],"sourcesContent":["import React, { Children } from \"react\"\nimport cx from \"classnames\"\nimport { Icon, IconColorsType, IconSources } from \"../Icon\"\n\nconst ICON_SIZE = 20\nexport interface PillPropsType {\n children: React.ReactNode\n icon?: IconSources\n color?: IconColorsType\n size?: \"large\"\n overlayed?: boolean\n className?: string\n}\n\nexport const Pill = ({\n icon,\n color = \"base\",\n children,\n overlayed,\n className,\n size,\n}: PillPropsType) => {\n const iconMarkup = icon ? (\n <span className=\"cobalt-Pill__Icon\">\n <Icon\n source={icon}\n size={ICON_SIZE}\n color={overlayed ? \"white\" : color}\n />\n </span>\n ) : null\n\n return (\n <div\n className={cx(className, \"cobalt-Pill\", {\n \"cobalt-Pill--
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/Pill/index.tsx"],"sourcesContent":["import React, { Children } from \"react\"\nimport cx from \"classnames\"\nimport { Icon, IconColorsType, IconSources } from \"../Icon\"\n\nconst ICON_SIZE = 20\nexport interface PillPropsType {\n children: React.ReactNode\n icon?: IconSources\n color?: IconColorsType\n size?: \"large\"\n overlayed?: boolean\n className?: string\n}\n\nexport const Pill = ({\n icon,\n color = \"base\",\n children,\n overlayed,\n className,\n size,\n}: PillPropsType) => {\n const iconMarkup = icon ? (\n <span className=\"cobalt-Pill__Icon\">\n <Icon\n source={icon}\n size={ICON_SIZE}\n color={overlayed ? \"white\" : color}\n />\n </span>\n ) : null\n\n return (\n <div\n className={cx(className, \"cobalt-Pill\", {\n \"cobalt-Pill--colorConnect\": color === \"connect\",\n \"cobalt-Pill--overlayed\": overlayed,\n \"cobalt-Pill--large\": size === \"large\",\n })}\n >\n {iconMarkup} {children}\n </div>\n )\n}\n\nexport interface PillGroupPropsType {\n children: React.ReactNode\n}\n\nexport const PillGroup = ({ children }: PillGroupPropsType) => {\n return (\n <div className=\"cobalt-PillGroup\">\n {Children.toArray(children).map((child, index) => (\n <div className=\"cobalt-PillGroup__Item\" key={index}>\n {child}\n </div>\n ))}\n </div>\n )\n}\n\nexport default Pill\n"],"names":[],"mappings":";;;;AAIA,MAAM,SAAS,GAAG,EAAE,CAAA;MAUP,IAAI,GAAG,CAAC,EACnB,IAAI,EACJ,KAAK,GAAG,MAAM,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,IAAI,GACU,KAAI;IAClB,MAAM,UAAU,GAAG,IAAI,IACrB,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,mBAAmB,EAAA;AACjC,QAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EACH,MAAM,EAAE,IAAI,EACZ,IAAI,EAAE,SAAS,EACf,KAAK,EAAE,SAAS,GAAG,OAAO,GAAG,KAAK,EAAA,CAClC,CACG,IACL,IAAI,CAAA;IAER,QACE,6BACE,SAAS,EAAE,EAAE,CAAC,SAAS,EAAE,aAAa,EAAE;YACtC,2BAA2B,EAAE,KAAK,KAAK,SAAS;AAChD,YAAA,wBAAwB,EAAE,SAAS;YACnC,oBAAoB,EAAE,IAAI,KAAK,OAAO;SACvC,CAAC,EAAA;QAED,UAAU;;QAAG,QAAQ,CAClB,EACP;AACH,EAAC;MAMY,SAAS,GAAG,CAAC,EAAE,QAAQ,EAAsB,KAAI;AAC5D,IAAA,QACE,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,kBAAkB,IAC9B,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,MAC3C,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,wBAAwB,EAAC,GAAG,EAAE,KAAK,IAC/C,KAAK,CACF,CACP,CAAC,CACE,EACP;AACH;;;;"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var evCable = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4.848 19v2h1.16v-2h1.743v2h1.16l.001-.968V19h.968v-4c0-.55-.45-1-1-1h-1V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-.968V3h-1.161v2h-1.742V3h-1.161l-.001 2h-.967v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v7h-1c-.55 0-1 .45-1 1v4h.968z\"/></svg>";
|
|
2
|
+
|
|
3
|
+
export { evCable as default };
|
|
4
|
+
//# sourceMappingURL=ev-cable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ev-cable.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M4.848 19v2h1.16v-2h1.743v2h1.16l.001-.968V19h.968v-4c0-.55-.45-1-1-1h-1V7c0-1.1.9-2 2-2s2 .9 2 2v10c0 2.21 1.79 4 4 4s4-1.79 4-4v-7h1c.55 0 1-.45 1-1V5h-.968V3h-1.161v2h-1.742V3h-1.161l-.001 2h-.967v4c0 .55.45 1 1 1h1v7c0 1.1-.9 2-2 2s-2-.9-2-2V7c0-2.21-1.79-4-4-4s-4 1.79-4 4v7h-1c-.55 0-1 .45-1 1v4h.968Z"/></svg>
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
var evCharger = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M8.444 18.32l2.05-3.32H9.258v-2.49l-2.026 3.32h1.21v2.49zm-2.725-8.016h6.264V4.897H5.72v5.407zm0 8.822h6.264v-7.399H5.72v7.4zM3.88 21V4.897c0-.522.18-.968.536-1.34A1.74 1.74 0 015.72 3h6.264c.513 0 .951.186 1.316.557.365.372.547.818.547 1.34v7.139h1.7c.342 0 .633.122.873.367.241.245.361.534.361.866v5.265a.97.97 0 00.373.782c.248.206.535.309.861.309.342 0 .66-.103.955-.309.295-.205.443-.466.443-.782v-9.32h-.257a.875.875 0 01-.652-.261.909.909 0 01-.256-.664V5.964h.466V4.708h.885v1.256h.908V4.708h.908v1.256h.466V8.29a.89.89 0 01-.268.664.886.886 0 01-.64.26h-.256v9.32a2.23 2.23 0 01-.815 1.767 2.81 2.81 0 01-1.887.7c-.698 0-1.3-.233-1.804-.7-.505-.466-.757-1.055-.757-1.766V13.27c0 .031.008.055.023.07.016.017.04.025.07.025h-1.7V21H3.88zm8.104-1.873H5.72h6.264z\"/></svg>";
|
|
2
|
+
|
|
3
|
+
export { evCharger as default };
|
|
4
|
+
//# sourceMappingURL=ev-charger.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ev-charger.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="m8.444 18.32 2.05-3.32H9.258v-2.49l-2.026 3.32h1.21v2.49Zm-2.725-8.016h6.264V4.897H5.72v5.407Zm0 8.822h6.264v-7.399H5.72v7.4ZM3.88 21V4.897c0-.522.18-.968.536-1.34A1.74 1.74 0 0 1 5.72 3h6.264c.513 0 .951.186 1.316.557.365.372.547.818.547 1.34v7.139h1.7c.342 0 .633.122.873.367.241.245.361.534.361.866v5.265c0 .316.124.577.373.782.248.206.535.309.861.309.342 0 .66-.103.955-.309.295-.205.443-.466.443-.782v-9.32h-.257a.875.875 0 0 1-.652-.261.909.909 0 0 1-.256-.664V5.964h.466V4.708h.885v1.256h.908V4.708h.908v1.256h.466V8.29c0 .268-.09.49-.268.664a.886.886 0 0 1-.64.26h-.256v9.32c0 .712-.272 1.301-.815 1.767a2.81 2.81 0 0 1-1.887.7c-.698 0-1.3-.233-1.804-.7-.505-.466-.757-1.055-.757-1.766v-5.265c0 .031.008.055.023.07.016.017.04.025.07.025h-1.7V21H3.88Zm8.104-1.873H5.72h6.264Z"/></svg>
|
package/icons/index.js
CHANGED
|
@@ -97,6 +97,8 @@ export { default as earth } from './earth.js';
|
|
|
97
97
|
export { default as edit } from './edit.js';
|
|
98
98
|
export { default as electric } from './electric.js';
|
|
99
99
|
export { default as evBattery } from './ev-battery.js';
|
|
100
|
+
export { default as evCable } from './ev-cable.js';
|
|
101
|
+
export { default as evCharger } from './ev-charger.js';
|
|
100
102
|
export { default as externalLink } from './external-link.js';
|
|
101
103
|
export { default as eyeClosed } from './eye-closed.js';
|
|
102
104
|
export { default as eyeOpened } from './eye-opened.js';
|
package/icons/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/index.js
CHANGED
|
@@ -142,6 +142,8 @@ export { default as EarthIcon } from './components/Icon/__generated__/EarthIcon.
|
|
|
142
142
|
export { default as EditIcon } from './components/Icon/__generated__/EditIcon.js';
|
|
143
143
|
export { default as ElectricIcon } from './components/Icon/__generated__/ElectricIcon.js';
|
|
144
144
|
export { default as EvBatteryIcon } from './components/Icon/__generated__/EvBatteryIcon.js';
|
|
145
|
+
export { default as EvCableIcon } from './components/Icon/__generated__/EvCableIcon.js';
|
|
146
|
+
export { default as EvChargerIcon } from './components/Icon/__generated__/EvChargerIcon.js';
|
|
145
147
|
export { default as ExternalLinkIcon } from './components/Icon/__generated__/ExternalLinkIcon.js';
|
|
146
148
|
export { default as EyeClosedIcon } from './components/Icon/__generated__/EyeClosedIcon.js';
|
|
147
149
|
export { default as EyeIcon } from './components/Icon/__generated__/EyeIcon.js';
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivy/cobalt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Opinionated design system for Drivy's projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"@reach/visually-hidden": "0.16.0",
|
|
28
28
|
"@react-spring/web": "9.3.0",
|
|
29
29
|
"@tippyjs/react": "4.2.6",
|
|
30
|
-
"classnames": "2.3.
|
|
31
|
-
"date-fns": "2.29.
|
|
30
|
+
"classnames": "2.3.2",
|
|
31
|
+
"date-fns": "2.29.3",
|
|
32
32
|
"lodash.throttle": "4.1.1",
|
|
33
33
|
"media-typer": "1.1.0",
|
|
34
34
|
"nanoid": "3.3.4",
|
|
@@ -41,19 +41,19 @@
|
|
|
41
41
|
"react-dom": "^17.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@getaround-eu/babel-preset-app": "0.5.
|
|
45
|
-
"@getaround-eu/eslint-config": "1.7.
|
|
44
|
+
"@getaround-eu/babel-preset-app": "0.5.3",
|
|
45
|
+
"@getaround-eu/eslint-config": "1.7.3",
|
|
46
46
|
"@getaround-eu/prettier-config": "1.2.0",
|
|
47
|
-
"@getaround-eu/stylelint-config": "1.2.
|
|
48
|
-
"@getaround-eu/ts-config": "2.
|
|
47
|
+
"@getaround-eu/stylelint-config": "1.2.3",
|
|
48
|
+
"@getaround-eu/ts-config": "2.2.0",
|
|
49
49
|
"@percy/storybook": "3.3.1",
|
|
50
50
|
"@rollup/plugin-json": "4.1.0",
|
|
51
|
-
"@rushstack/eslint-patch": "1.
|
|
52
|
-
"@storybook/addon-essentials": "6.5.
|
|
53
|
-
"@storybook/addons": "6.5.
|
|
54
|
-
"@storybook/builder-webpack5": "6.5.
|
|
55
|
-
"@storybook/manager-webpack5": "6.5.
|
|
56
|
-
"@storybook/react": "6.5.
|
|
51
|
+
"@rushstack/eslint-patch": "1.2.0",
|
|
52
|
+
"@storybook/addon-essentials": "6.5.12",
|
|
53
|
+
"@storybook/addons": "6.5.12",
|
|
54
|
+
"@storybook/builder-webpack5": "6.5.12",
|
|
55
|
+
"@storybook/manager-webpack5": "6.5.12",
|
|
56
|
+
"@storybook/react": "6.5.12",
|
|
57
57
|
"@svgr/cli": "6.3.1",
|
|
58
58
|
"@testing-library/jest-dom": "5.16.5",
|
|
59
59
|
"@testing-library/react": "12.1.5",
|
|
@@ -64,10 +64,10 @@
|
|
|
64
64
|
"@types/media-typer": "1.1.1",
|
|
65
65
|
"@types/react": "17.0.49",
|
|
66
66
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
67
|
-
"autoprefixer": "10.4.
|
|
67
|
+
"autoprefixer": "10.4.12",
|
|
68
68
|
"core-js": "3.24.1",
|
|
69
69
|
"css-loader": "6.7.1",
|
|
70
|
-
"eslint": "8.
|
|
70
|
+
"eslint": "8.24.0",
|
|
71
71
|
"jest": "27.5.1",
|
|
72
72
|
"nested-object-access": "^0.2.5",
|
|
73
73
|
"np": "7.6.2",
|
|
@@ -83,13 +83,13 @@
|
|
|
83
83
|
"rollup-plugin-copy": "3.4.0",
|
|
84
84
|
"rollup-plugin-postcss": "4.0.2",
|
|
85
85
|
"rollup-plugin-svgo": "1.1.0",
|
|
86
|
-
"rollup-plugin-typescript2": "0.
|
|
87
|
-
"sass": "1.54.
|
|
86
|
+
"rollup-plugin-typescript2": "0.34.0",
|
|
87
|
+
"sass": "1.54.9",
|
|
88
88
|
"sass-loader": "12.6.0",
|
|
89
|
-
"sharp": "0.
|
|
89
|
+
"sharp": "0.31.0",
|
|
90
90
|
"sharp-cli": "2.1.1",
|
|
91
91
|
"style-loader": "3.3.1",
|
|
92
|
-
"stylelint": "14.
|
|
92
|
+
"stylelint": "14.13.0",
|
|
93
93
|
"svg2vectordrawable": "2.9.1",
|
|
94
94
|
"svgo": "2.8.0",
|
|
95
95
|
"ts-jest": "27.1.5",
|
|
@@ -111,6 +111,7 @@
|
|
|
111
111
|
"storybook": "start-storybook -p 6006",
|
|
112
112
|
"storybook:build": "build-storybook",
|
|
113
113
|
"build:icons": "./scripts/buildIcons.sh",
|
|
114
|
+
"build:theme": "ts-node-esm ./scripts/buildThemeCSSVariables.ts",
|
|
114
115
|
"test": "jest",
|
|
115
116
|
"percy": "build-storybook && percy-storybook --widths=320,1280",
|
|
116
117
|
"typecheck": "tsc",
|
|
@@ -41,7 +41,7 @@ $group-item-spacing: spacing(tight);
|
|
|
41
41
|
align-items: center;
|
|
42
42
|
justify-content: center;
|
|
43
43
|
border-style: solid;
|
|
44
|
-
border-color: color(
|
|
44
|
+
border-color: color(grey);
|
|
45
45
|
|
|
46
46
|
color: color(indigo);
|
|
47
47
|
text-decoration: none;
|
|
@@ -74,11 +74,11 @@ $group-item-spacing: spacing(tight);
|
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
&:active {
|
|
77
|
-
border-color: color(
|
|
77
|
+
border-color: color(indigo, dark);
|
|
78
78
|
|
|
79
|
-
color: color(
|
|
79
|
+
color: color(indigo, dark);
|
|
80
80
|
|
|
81
|
-
fill: color(
|
|
81
|
+
fill: color(indigo, dark);
|
|
82
82
|
box-shadow: none;
|
|
83
83
|
|
|
84
84
|
transform: translateY(0);
|
|
@@ -124,14 +124,14 @@ $group-item-spacing: spacing(tight);
|
|
|
124
124
|
&[disabled][disabled],
|
|
125
125
|
&[data-disabled]:not([data-disabled="false"]),
|
|
126
126
|
&.cobalt-Button--disabled {
|
|
127
|
-
border-color: color(
|
|
127
|
+
border-color: color(grey);
|
|
128
128
|
|
|
129
129
|
color: color(graphite, light);
|
|
130
130
|
|
|
131
131
|
opacity: 0.7;
|
|
132
132
|
cursor: default;
|
|
133
|
-
background-color: color(
|
|
134
|
-
fill: color(
|
|
133
|
+
background-color: color(grey, lighter);
|
|
134
|
+
fill: color(grey);
|
|
135
135
|
box-shadow: none;
|
|
136
136
|
pointer-events: none;
|
|
137
137
|
}
|
|
@@ -186,7 +186,7 @@ $group-item-spacing: spacing(tight);
|
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
&--destructive {
|
|
189
|
-
$color: color(
|
|
189
|
+
$color: color(red);
|
|
190
190
|
color: $color;
|
|
191
191
|
|
|
192
192
|
fill: $color;
|
|
@@ -210,18 +210,14 @@ $group-item-spacing: spacing(tight);
|
|
|
210
210
|
}
|
|
211
211
|
|
|
212
212
|
&--primary {
|
|
213
|
-
@include button-filled(
|
|
214
|
-
color(asphalt, light),
|
|
215
|
-
color(indigo),
|
|
216
|
-
color(asphalt)
|
|
217
|
-
);
|
|
213
|
+
@include button-filled(color(purple), color(indigo), color(indigo, dark));
|
|
218
214
|
}
|
|
219
215
|
|
|
220
216
|
&--primary.cobalt-Button--destructive {
|
|
221
217
|
@include button-filled(
|
|
222
|
-
color(
|
|
223
|
-
darken(color(
|
|
224
|
-
darken(color(
|
|
218
|
+
color(red),
|
|
219
|
+
darken(color(red), 3),
|
|
220
|
+
darken(color(red), 6)
|
|
225
221
|
);
|
|
226
222
|
}
|
|
227
223
|
|
|
@@ -258,7 +254,7 @@ $group-item-spacing: spacing(tight);
|
|
|
258
254
|
|
|
259
255
|
&--ghost.cobalt-Button--destructive {
|
|
260
256
|
&:hover {
|
|
261
|
-
background-color: rgba(color(
|
|
257
|
+
background-color: rgba(color(red), 0.06);
|
|
262
258
|
}
|
|
263
259
|
}
|
|
264
260
|
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
&Callout--info {
|
|
17
|
-
@include card-strip(
|
|
17
|
+
@include card-strip(turquoise);
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&Callout--success {
|
|
21
|
-
@include card-strip(
|
|
21
|
+
@include card-strip(green);
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
&Callout--error {
|
|
25
|
-
@include card-strip(
|
|
25
|
+
@include card-strip(red);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
&Callout__Title {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
.cobalt-Autocomplete {
|
|
4
4
|
$border-color: color(indigo);
|
|
5
|
-
$border-separator-popover-color: color(
|
|
5
|
+
$border-separator-popover-color: color(grey, light);
|
|
6
6
|
$selected-item-color: color(purple);
|
|
7
7
|
$selected-item-background-color: color(grey, lighter);
|
|
8
8
|
$selected-item-background-darken-color: darken(
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
height: $height;
|
|
39
39
|
box-sizing: border-box;
|
|
40
40
|
padding: 0 spacing(base);
|
|
41
|
-
border: $border-width solid color(
|
|
41
|
+
border: $border-width solid color(grey);
|
|
42
42
|
|
|
43
43
|
line-height: $height - $border-width * 2;
|
|
44
44
|
color: $main-color-light;
|
|
@@ -72,16 +72,16 @@
|
|
|
72
72
|
&__Input:focus + #{ $self }__Label:after {
|
|
73
73
|
position: absolute;
|
|
74
74
|
|
|
75
|
-
box-shadow: 0 0 0 1px color(
|
|
75
|
+
box-shadow: 0 0 0 1px color(turquoise);
|
|
76
76
|
content: "";
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
&__Input:disabled + #{ $self }__Label {
|
|
80
|
-
border: $border-width solid color(
|
|
80
|
+
border: $border-width solid color(grey);
|
|
81
81
|
|
|
82
82
|
cursor: default;
|
|
83
83
|
box-shadow: none;
|
|
84
|
-
background-color: color(
|
|
84
|
+
background-color: color(grey, light);
|
|
85
85
|
opacity: 0.8;
|
|
86
86
|
|
|
87
87
|
transform: none;
|
|
@@ -111,7 +111,7 @@
|
|
|
111
111
|
|
|
112
112
|
&--error {
|
|
113
113
|
#{ $self }__Input + #{ $self }__Label {
|
|
114
|
-
border-color: color(
|
|
114
|
+
border-color: color(red);
|
|
115
115
|
|
|
116
116
|
color: $main-color-light;
|
|
117
117
|
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
|
|
124
124
|
color: color(white);
|
|
125
125
|
|
|
126
|
-
background-color: color(
|
|
126
|
+
background-color: color(red);
|
|
127
127
|
|
|
128
128
|
.cobalt-Icon {
|
|
129
129
|
fill: color(white);
|