@drivy/cobalt 0.18.1 → 0.19.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/theme.js +1 -1
- package/components/Modal/ModalHeader.js +1 -1
- package/components/Modal/ModalHeader.js.map +1 -1
- package/components/Pill/index.js +1 -1
- package/components/Pill/index.js.map +1 -1
- package/components/PriceTable/index.js +3 -2
- package/components/PriceTable/index.js.map +1 -1
- package/package.json +6 -6
- package/styles/components/Buttons/DefaultButton/index.scss +1 -1
- package/styles/components/Helper/index.scss +5 -1
- package/styles/components/Modal/index.scss +3 -8
- package/styles/components/Note/index.scss +3 -4
- package/styles/components/PhotoDropzone/index.scss +9 -11
- package/styles/components/Pill/index.scss +9 -10
- package/styles/components/PriceTable/index.scss +4 -4
- package/styles/components/ProgressBar/index.scss +10 -10
- package/styles/core/_colors-map.scss +1 -1
- package/styles/core/border.scss +2 -2
- package/styles/core/theme.scss +1 -1
- package/tokens/theme.js +1 -1
- package/types/components/PriceTable/index.d.ts +7 -4
- package/utilities.css +1 -1
package/cjs/tokens/theme.js
CHANGED
|
@@ -175,7 +175,7 @@ const stroke = {
|
|
|
175
175
|
hover: "indigo/purple.700/purpleDeep.400",
|
|
176
176
|
press: "indigo.dark/purple.900/purpleDeep.400"
|
|
177
177
|
},
|
|
178
|
-
accentAlt: "
|
|
178
|
+
accentAlt: "purple/purple.300/purpleDeep.700",
|
|
179
179
|
base: "grey/navy.100/black.50",
|
|
180
180
|
baseInteractive: {
|
|
181
181
|
DEFAULT: "grey/navy.100/black.50",
|
|
@@ -7,7 +7,7 @@ const ModalHeader = ({ title, close, }) => (React.createElement("div", { classNa
|
|
|
7
7
|
close && (React.createElement("button", { type: "button", className: "cobalt-modal-header__close-button", onClick: close },
|
|
8
8
|
React.createElement(VisuallyHidden, null, "Close"),
|
|
9
9
|
React.createElement("span", { "aria-hidden": true },
|
|
10
|
-
React.createElement(Icon, { source: "close", color: "
|
|
10
|
+
React.createElement(Icon, { source: "close", color: "subdued" }))))));
|
|
11
11
|
|
|
12
12
|
export { ModalHeader as default };
|
|
13
13
|
//# sourceMappingURL=ModalHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalHeader.js","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":["import React from \"react\"\nimport VisuallyHidden from \"@reach/visually-hidden\"\n\nimport { Icon } from \"../Icon\"\n\nconst ModalHeader = ({\n title,\n close,\n}: {\n title?: string\n close?: () => void\n}) => (\n <div className=\"cobalt-modal-header\">\n <h2 className=\"cobalt-modal-header__title\">{title}</h2>\n {close && (\n <button\n type=\"button\"\n className=\"cobalt-modal-header__close-button\"\n onClick={close}\n >\n <VisuallyHidden>Close</VisuallyHidden>\n <span aria-hidden>\n <Icon source=\"close\" color=\"
|
|
1
|
+
{"version":3,"file":"ModalHeader.js","sources":["../../../src/components/Modal/ModalHeader.tsx"],"sourcesContent":["import React from \"react\"\nimport VisuallyHidden from \"@reach/visually-hidden\"\n\nimport { Icon } from \"../Icon\"\n\nconst ModalHeader = ({\n title,\n close,\n}: {\n title?: string\n close?: () => void\n}) => (\n <div className=\"cobalt-modal-header\">\n <h2 className=\"cobalt-modal-header__title\">{title}</h2>\n {close && (\n <button\n type=\"button\"\n className=\"cobalt-modal-header__close-button\"\n onClick={close}\n >\n <VisuallyHidden>Close</VisuallyHidden>\n <span aria-hidden>\n <Icon source=\"close\" color=\"subdued\" />\n </span>\n </button>\n )}\n </div>\n)\n\nexport default ModalHeader\n"],"names":[],"mappings":";;;;AAKA,MAAM,WAAW,GAAG,CAAC,EACnB,KAAK,EACL,KAAK,GAIN,MACC,KAAK,CAAA,aAAA,CAAA,KAAA,EAAA,EAAA,SAAS,EAAC,qBAAqB,EAAA;AAClC,IAAA,KAAA,CAAA,aAAA,CAAA,IAAA,EAAA,EAAI,SAAS,EAAC,4BAA4B,EAAA,EAAE,KAAK,CAAM;AACtD,IAAA,KAAK,KACJ,KACE,CAAA,aAAA,CAAA,QAAA,EAAA,EAAA,IAAI,EAAC,QAAQ,EACb,SAAS,EAAC,mCAAmC,EAC7C,OAAO,EAAE,KAAK,EAAA;AAEd,QAAA,KAAA,CAAA,aAAA,CAAC,cAAc,EAAuB,IAAA,EAAA,OAAA,CAAA;AACtC,QAAA,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAA,aAAA,EAAA,IAAA,EAAA;AACE,YAAA,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,MAAM,EAAC,OAAO,EAAC,KAAK,EAAC,SAAS,GAAG,CAClC,CACA,CACV,CACG;;;;"}
|
package/components/Pill/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import cx from 'classnames';
|
|
|
3
3
|
import { Icon } from '../Icon/index.js';
|
|
4
4
|
|
|
5
5
|
const ICON_SIZE = 20;
|
|
6
|
-
const Pill = ({ icon, color = "
|
|
6
|
+
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", {
|
|
@@ -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 = \"
|
|
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--colorAller\": color === \"aller\",\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,yBAAyB,EAAE,KAAK,KAAK,OAAO;AAC5C,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;;;;"}
|
|
@@ -6,7 +6,8 @@ const PriceTableRow = ({ label, value, discounted = false, }) => (React.createEl
|
|
|
6
6
|
React.createElement("div", { className: "cobalt-PriceTable__Label" }, label),
|
|
7
7
|
React.createElement("div", { className: cx("cobalt-PriceTable__Value", {
|
|
8
8
|
"cobalt-PriceTable__Value--discount": discounted,
|
|
9
|
-
}) }, value)));
|
|
9
|
+
}) }, value)));
|
|
10
|
+
PriceTable.Row = PriceTableRow;
|
|
10
11
|
|
|
11
|
-
export { PriceTable, PriceTableRow };
|
|
12
|
+
export { PriceTable, PriceTableRow, PriceTable as default };
|
|
12
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/components/PriceTable/index.tsx"],"sourcesContent":["import React from \"react\"\nimport classNames from \"classnames\"\n\nexport const PriceTable = ({ children }: { children: React.ReactNode }) => (\n <div className=\"cobalt-PriceTable\">{children}</div>\n)\n\ninterface PriceTableRowProps {\n label: string\n value: string\n discounted?: boolean\n}\n\nexport const PriceTableRow = ({\n label,\n value,\n discounted = false,\n}: PriceTableRowProps) => (\n <div className=\"cobalt-PriceTable__Row\">\n <div className=\"cobalt-PriceTable__Label\">{label}</div>\n <div\n className={classNames(\"cobalt-PriceTable__Value\", {\n \"cobalt-PriceTable__Value--discount\": discounted,\n })}\n >\n {value}\n </div>\n </div>\n)\n"],"names":["classNames"],"mappings":";;;MAGa,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAiC,MACpE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,mBAAmB,IAAE,QAAQ,CAAO,EACpD;MAQY,aAAa,GAAG,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,UAAU,GAAG,KAAK,GACC,MACnB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,wBAAwB,EAAA;AACrC,IAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,0BAA0B,EAAA,EAAE,KAAK,CAAO;AACvD,IAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEA,EAAU,CAAC,0BAA0B,EAAE;AAChD,YAAA,oCAAoC,EAAE,UAAU;AACjD,SAAA,CAAC,EAED,EAAA,KAAK,CACF,CACF;;;;"}
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../src/components/PriceTable/index.tsx"],"sourcesContent":["import React from \"react\"\nimport classNames from \"classnames\"\n\nexport const PriceTable = ({ children }: { children: React.ReactNode }) => (\n <div className=\"cobalt-PriceTable\">{children}</div>\n)\n\ninterface PriceTableRowProps {\n label: string\n value: string\n discounted?: boolean\n}\n\nexport const PriceTableRow = ({\n label,\n value,\n discounted = false,\n}: PriceTableRowProps) => (\n <div className=\"cobalt-PriceTable__Row\">\n <div className=\"cobalt-PriceTable__Label\">{label}</div>\n <div\n className={classNames(\"cobalt-PriceTable__Value\", {\n \"cobalt-PriceTable__Value--discount\": discounted,\n })}\n >\n {value}\n </div>\n </div>\n)\n\nPriceTable.Row = PriceTableRow\n\nexport default PriceTable\n"],"names":["classNames"],"mappings":";;;MAGa,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAiC,MACpE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,mBAAmB,IAAE,QAAQ,CAAO,EACpD;MAQY,aAAa,GAAG,CAAC,EAC5B,KAAK,EACL,KAAK,EACL,UAAU,GAAG,KAAK,GACC,MACnB,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,wBAAwB,EAAA;AACrC,IAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAK,SAAS,EAAC,0BAA0B,EAAA,EAAE,KAAK,CAAO;AACvD,IAAA,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEA,EAAU,CAAC,0BAA0B,EAAE;AAChD,YAAA,oCAAoC,EAAE,UAAU;AACjD,SAAA,CAAC,EAED,EAAA,KAAK,CACF,CACF,EACP;AAED,UAAU,CAAC,GAAG,GAAG,aAAa;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@drivy/cobalt",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "Opinionated design system for Drivy's projects.",
|
|
5
5
|
"main": "src/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
@@ -62,12 +62,12 @@
|
|
|
62
62
|
"@types/jest": "27.5.2",
|
|
63
63
|
"@types/lodash.throttle": "4.1.7",
|
|
64
64
|
"@types/media-typer": "1.1.1",
|
|
65
|
-
"@types/react": "17.0.
|
|
65
|
+
"@types/react": "17.0.49",
|
|
66
66
|
"@whitespace/storybook-addon-html": "^5.0.0",
|
|
67
67
|
"autoprefixer": "10.4.8",
|
|
68
68
|
"core-js": "3.24.1",
|
|
69
69
|
"css-loader": "6.7.1",
|
|
70
|
-
"eslint": "8.
|
|
70
|
+
"eslint": "8.23.0",
|
|
71
71
|
"jest": "27.5.1",
|
|
72
72
|
"nested-object-access": "^0.2.5",
|
|
73
73
|
"np": "7.6.2",
|
|
@@ -79,12 +79,12 @@
|
|
|
79
79
|
"react-dom": "17.0.2",
|
|
80
80
|
"react-test-renderer": "17.0.2",
|
|
81
81
|
"regenerator-runtime": "0.13.9",
|
|
82
|
-
"rollup": "2.
|
|
82
|
+
"rollup": "2.79.0",
|
|
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
86
|
"rollup-plugin-typescript2": "0.33.0",
|
|
87
|
-
"sass": "1.54.
|
|
87
|
+
"sass": "1.54.8",
|
|
88
88
|
"sass-loader": "12.6.0",
|
|
89
89
|
"sharp": "0.30.7",
|
|
90
90
|
"sharp-cli": "2.1.1",
|
|
@@ -138,6 +138,6 @@
|
|
|
138
138
|
"access": "public"
|
|
139
139
|
},
|
|
140
140
|
"resolutions": {
|
|
141
|
-
"@types/react": "17.0.
|
|
141
|
+
"@types/react": "17.0.49"
|
|
142
142
|
}
|
|
143
143
|
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
.cobalt-helper {
|
|
2
|
+
@include border(base);
|
|
3
|
+
@include bg-color(secondary);
|
|
2
4
|
padding: spacing(sm);
|
|
3
5
|
|
|
6
|
+
// FIXME: remove when releasing semantics color
|
|
4
7
|
background-color: fade-out(color(purple), 0.92);
|
|
8
|
+
|
|
5
9
|
border-radius: border-radius(xl);
|
|
6
10
|
|
|
7
11
|
&__title {
|
|
8
12
|
@include text-style-title-small;
|
|
9
|
-
|
|
13
|
+
@include text-color(base);
|
|
10
14
|
}
|
|
11
15
|
|
|
12
16
|
&__content {
|
|
@@ -71,26 +71,21 @@ $reach-ui-dialog-margin-top: 10vh;
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
&-footer {
|
|
74
|
-
|
|
75
|
-
border-top: border(grey);
|
|
76
|
-
border-color: color(grey, light);
|
|
74
|
+
@include border-top(base);
|
|
77
75
|
padding: spacing(sm);
|
|
78
76
|
}
|
|
79
77
|
|
|
80
78
|
&-header {
|
|
79
|
+
@include border-bottom(base);
|
|
81
80
|
display: flex;
|
|
82
81
|
justify-content: space-between;
|
|
83
82
|
align-items: center;
|
|
84
83
|
padding: spacing(md);
|
|
85
|
-
/* FIXME border function doesn't handle color variant */
|
|
86
|
-
border-bottom: border(grey);
|
|
87
|
-
border-color: color(grey, light);
|
|
88
84
|
|
|
89
85
|
&__title {
|
|
90
86
|
@include c-text-title-md;
|
|
87
|
+
@include text-color(base);
|
|
91
88
|
margin: spacing(none);
|
|
92
|
-
|
|
93
|
-
color: color(indigo, dark);
|
|
94
89
|
}
|
|
95
90
|
|
|
96
91
|
&__close-button {
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
&Note {
|
|
3
3
|
@include text-style-body;
|
|
4
4
|
@include text-style--bodySubdued;
|
|
5
|
+
@include bg-color(info);
|
|
5
6
|
|
|
6
7
|
display: inline-block;
|
|
7
8
|
|
|
8
|
-
padding: spacing(
|
|
9
|
+
padding: spacing(sm);
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
border-radius: border-radius(x-large);
|
|
11
|
+
border-radius: border-radius(lg);
|
|
13
12
|
}
|
|
14
13
|
|
|
15
14
|
&Note--fullWidth {
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
.cobalt-photo-dropzone {
|
|
2
|
+
@include bg-color(neutralAlt);
|
|
3
|
+
@include border(accentAlt, default, dashed);
|
|
2
4
|
position: relative;
|
|
3
5
|
|
|
4
6
|
display: flex;
|
|
@@ -7,13 +9,11 @@
|
|
|
7
9
|
height: 100%;
|
|
8
10
|
width: 100%;
|
|
9
11
|
min-height: 14rem;
|
|
10
|
-
border: border(purple, default, dashed);
|
|
11
12
|
|
|
12
13
|
text-align: center;
|
|
13
14
|
|
|
14
15
|
border-radius: border-radius(xl);
|
|
15
16
|
cursor: pointer;
|
|
16
|
-
background-color: color(grey, lighter);
|
|
17
17
|
|
|
18
18
|
transition: background-color 0.25s;
|
|
19
19
|
}
|
|
@@ -31,6 +31,7 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.cobalt-photo-dropzone--dragging {
|
|
34
|
+
// FIXME NEW COLORS: this background doesn't match any semantic color
|
|
34
35
|
background-color: #f6e5f5;
|
|
35
36
|
|
|
36
37
|
transition: background-color 0.25s;
|
|
@@ -42,20 +43,17 @@
|
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
.cobalt-photo-dropzone--loading {
|
|
45
|
-
|
|
46
|
+
@include bg-color(neutral);
|
|
47
|
+
@include text-color(accent);
|
|
46
48
|
border-style: solid;
|
|
47
49
|
|
|
48
|
-
color: color(indigo, dark);
|
|
49
|
-
|
|
50
50
|
cursor: default;
|
|
51
|
-
background-color: color(grey, light);
|
|
52
51
|
}
|
|
53
52
|
|
|
54
53
|
.cobalt-photo-dropzone--errored {
|
|
55
|
-
|
|
54
|
+
@include bg-color(neutral);
|
|
55
|
+
@include border-color(error);
|
|
56
56
|
border-style: solid;
|
|
57
|
-
|
|
58
|
-
background-color: color(grey, light);
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
.cobalt-photo-dropzone__description {
|
|
@@ -66,7 +64,7 @@
|
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
.cobalt-photo-dropzone__description--strong {
|
|
69
|
-
|
|
67
|
+
@include text-color(accent);
|
|
70
68
|
font-weight: 700;
|
|
71
69
|
}
|
|
72
70
|
|
|
@@ -79,6 +77,7 @@
|
|
|
79
77
|
}
|
|
80
78
|
|
|
81
79
|
.cobalt-photo-dropzone__delete-button {
|
|
80
|
+
@include bg-color(neutralAlt);
|
|
82
81
|
position: absolute;
|
|
83
82
|
bottom: 1rem;
|
|
84
83
|
right: 1rem;
|
|
@@ -89,7 +88,6 @@
|
|
|
89
88
|
border: 0;
|
|
90
89
|
|
|
91
90
|
border-radius: border-radius(full);
|
|
92
|
-
background: color(white);
|
|
93
91
|
cursor: pointer;
|
|
94
92
|
opacity: 0;
|
|
95
93
|
|
|
@@ -1,44 +1,43 @@
|
|
|
1
1
|
$pill-height: 28px;
|
|
2
|
-
$group-item-spacing: spacing(
|
|
2
|
+
$group-item-spacing: spacing(xs);
|
|
3
3
|
|
|
4
4
|
.cobalt- {
|
|
5
5
|
&Pill {
|
|
6
|
+
@include bg-color(neutralAlt);
|
|
7
|
+
@include text-color(base);
|
|
6
8
|
display: inline-flex;
|
|
7
9
|
align-items: center;
|
|
8
10
|
|
|
9
11
|
height: $pill-height;
|
|
10
|
-
padding: spacing(
|
|
12
|
+
padding: spacing("2xs") spacing(sm);
|
|
11
13
|
|
|
12
14
|
font-size: 13px;
|
|
13
15
|
white-space: nowrap;
|
|
14
16
|
|
|
15
|
-
color: color(indigo);
|
|
16
|
-
|
|
17
17
|
border-radius: $pill-height;
|
|
18
|
-
|
|
19
|
-
background-color: color(acier, lighter);
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
&Pill--large {
|
|
23
21
|
$pill-height: 40px;
|
|
24
22
|
height: $pill-height;
|
|
25
|
-
padding: spacing(
|
|
23
|
+
padding: spacing(xs) spacing();
|
|
26
24
|
|
|
27
25
|
border-radius: $pill-height;
|
|
28
26
|
}
|
|
29
27
|
|
|
30
28
|
&Pill--colorAller {
|
|
31
|
-
|
|
29
|
+
@include text-color(connect);
|
|
32
30
|
}
|
|
33
31
|
|
|
34
32
|
&Pill--overlayed {
|
|
35
|
-
|
|
33
|
+
@include text-color(inversed);
|
|
36
34
|
|
|
35
|
+
// FIXME NEW COLORS: this background doesn't match any semantic color
|
|
37
36
|
background-color: rgba(color(graphite), 0.5);
|
|
38
37
|
}
|
|
39
38
|
|
|
40
39
|
&Pill__Icon {
|
|
41
|
-
margin-right: spacing(
|
|
40
|
+
margin-right: spacing("2xs");
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
&PillGroup {
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
justify-content: space-between;
|
|
7
7
|
|
|
8
8
|
&:not(:last-child) {
|
|
9
|
-
margin-bottom: spacing(
|
|
9
|
+
margin-bottom: spacing(sm);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&PriceTable__Label {
|
|
14
|
-
margin-right: spacing(
|
|
14
|
+
margin-right: spacing("2xs");
|
|
15
15
|
width: 100%;
|
|
16
16
|
}
|
|
17
17
|
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
white-space: nowrap;
|
|
21
21
|
|
|
22
22
|
&--discount {
|
|
23
|
-
|
|
23
|
+
@include text-color(success);
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&:empty:before {
|
|
27
|
-
|
|
27
|
+
@include text-color(subdued);
|
|
28
28
|
font-weight: normal;
|
|
29
29
|
|
|
30
30
|
content: "—";
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
|
|
8
8
|
&ProgressBar__Progression {
|
|
9
9
|
@include text-style-title;
|
|
10
|
-
|
|
10
|
+
@include text-color(infoAlt);
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
&ProgressBar__Title {
|
|
@@ -16,42 +16,42 @@
|
|
|
16
16
|
|
|
17
17
|
&ProgressBar__CompletedCheckbox {
|
|
18
18
|
path {
|
|
19
|
-
fill
|
|
19
|
+
@include fill-color(secondary);
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&ProgressBar__Container {
|
|
24
|
+
@include bg-color(neutral);
|
|
24
25
|
position: relative;
|
|
25
26
|
|
|
26
|
-
margin-top: spacing(
|
|
27
|
+
margin-top: spacing(sm);
|
|
27
28
|
|
|
28
|
-
height: spacing(
|
|
29
|
+
height: spacing("2xs");
|
|
29
30
|
width: 100%;
|
|
30
31
|
|
|
31
32
|
border-radius: 2px;
|
|
32
|
-
background-color: color(acier, light);
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
&ProgressBar__Foreground {
|
|
36
|
+
@include semantic-color(secondary, fill, background-color);
|
|
36
37
|
position: absolute;
|
|
37
38
|
left: 0;
|
|
38
39
|
top: 0;
|
|
39
40
|
|
|
40
|
-
height: spacing(
|
|
41
|
+
height: spacing("2xs");
|
|
41
42
|
|
|
42
43
|
border-radius: 2px;
|
|
43
|
-
background-color: color(aller);
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
&ProgressBar__Tick {
|
|
47
|
+
@include bg-color(neutral);
|
|
47
48
|
position: absolute;
|
|
48
49
|
top: -6px;
|
|
49
50
|
right: 0;
|
|
50
51
|
|
|
51
|
-
height: 4 * spacing(
|
|
52
|
-
width: spacing(
|
|
52
|
+
height: 4 * spacing("2xs");
|
|
53
|
+
width: spacing("2xs");
|
|
53
54
|
|
|
54
55
|
border-radius: 2px;
|
|
55
|
-
background-color: color(acier, light);
|
|
56
56
|
}
|
|
57
57
|
}
|
package/styles/core/border.scss
CHANGED
|
@@ -13,7 +13,7 @@ $border-style-data: (
|
|
|
13
13
|
dashed: dashed
|
|
14
14
|
);
|
|
15
15
|
|
|
16
|
-
@mixin border-style($style: solid, $position) {
|
|
16
|
+
@mixin border-style($style: solid, $position: "") {
|
|
17
17
|
$styleValue: map-get($border-style-data, $style);
|
|
18
18
|
@if type-of($styleValue) != string {
|
|
19
19
|
@error "Border style `#{$style}` not found.";
|
|
@@ -33,7 +33,7 @@ $border-style-data: (
|
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
@mixin border-width($size: default, $position) {
|
|
36
|
+
@mixin border-width($size: default, $position: "") {
|
|
37
37
|
$sizeValue: map-get($border-size-data, $size);
|
|
38
38
|
@if type-of($sizeValue) != number {
|
|
39
39
|
@error "Border size `#{$size}` not found.";
|
package/styles/core/theme.scss
CHANGED
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
--c-stroke-accentInteractive: var(--c-l-indigo);
|
|
114
114
|
--c-stroke-accentInteractive--hover: var(--c-l-indigo);
|
|
115
115
|
--c-stroke-accentInteractive--press: var(--c-l-indigo-dark);
|
|
116
|
-
--c-stroke-accentAlt: var(--c-l-
|
|
116
|
+
--c-stroke-accentAlt: var(--c-l-purple);
|
|
117
117
|
--c-stroke-base: var(--c-l-grey);
|
|
118
118
|
--c-stroke-baseInteractive: var(--c-l-grey);
|
|
119
119
|
--c-stroke-baseInteractive--hover: var(--c-l-graphite-light);
|
package/tokens/theme.js
CHANGED
|
@@ -171,7 +171,7 @@ const stroke = {
|
|
|
171
171
|
hover: "indigo/purple.700/purpleDeep.400",
|
|
172
172
|
press: "indigo.dark/purple.900/purpleDeep.400"
|
|
173
173
|
},
|
|
174
|
-
accentAlt: "
|
|
174
|
+
accentAlt: "purple/purple.300/purpleDeep.700",
|
|
175
175
|
base: "grey/navy.100/black.50",
|
|
176
176
|
baseInteractive: {
|
|
177
177
|
DEFAULT: "grey/navy.100/black.50",
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export declare const PriceTable:
|
|
3
|
-
children:
|
|
4
|
-
|
|
2
|
+
export declare const PriceTable: {
|
|
3
|
+
({ children }: {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
}): JSX.Element;
|
|
6
|
+
Row: ({ label, value, discounted, }: PriceTableRowProps) => JSX.Element;
|
|
7
|
+
};
|
|
5
8
|
interface PriceTableRowProps {
|
|
6
9
|
label: string;
|
|
7
10
|
value: string;
|
|
8
11
|
discounted?: boolean;
|
|
9
12
|
}
|
|
10
13
|
export declare const PriceTableRow: ({ label, value, discounted, }: PriceTableRowProps) => JSX.Element;
|
|
11
|
-
export
|
|
14
|
+
export default PriceTable;
|