@drivy/cobalt 0.42.18 → 0.43.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.
@@ -9,8 +9,7 @@ const purple = {
9
9
  "400": "#C04FB8",
10
10
  "500": "#B01AA7",
11
11
  "700": "#8D1586",
12
- "900": "#5F1159",
13
- "2000": "#D62929"
12
+ "900": "#5F1159"
14
13
  };
15
14
  const purpleDeep = {
16
15
  "100": "#F2A6EE",
@@ -107,6 +106,14 @@ const season = {
107
106
  "900": "#030",
108
107
  "1000": "#001900"
109
108
  };
109
+ const newPurple = {
110
+ "200": "#E46FEE",
111
+ "500": "#BC00CC"
112
+ };
113
+ const newViolet = {
114
+ "200": "#B86FFF",
115
+ "500": "#6C06B5"
116
+ };
110
117
  var _palette = {
111
118
  white: white,
112
119
  purple: purple,
@@ -121,7 +128,9 @@ var _palette = {
121
128
  grey: grey,
122
129
  blue: blue,
123
130
  turquoise: turquoise,
124
- season: season
131
+ season: season,
132
+ newPurple: newPurple,
133
+ newViolet: newViolet
125
134
  };
126
135
 
127
136
  exports.black = black;
@@ -130,6 +139,8 @@ exports["default"] = _palette;
130
139
  exports.green = green;
131
140
  exports.grey = grey;
132
141
  exports.navy = navy;
142
+ exports.newPurple = newPurple;
143
+ exports.newViolet = newViolet;
133
144
  exports.orange = orange;
134
145
  exports.purple = purple;
135
146
  exports.purpleDeep = purpleDeep;
@@ -1 +1 @@
1
- {"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"palette.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -12,8 +12,11 @@ const background = {
12
12
  errorAlt: "red.100/red.900",
13
13
  success: "green.700/green.700",
14
14
  successAlt: "green.100/green.1000",
15
- connect: "turquoise.500/turquoise.700",
15
+ connect: "newPurple.500/newPurple.200",
16
16
  connectAlt: "turquoise.50/turquoise.900",
17
+ keyExchange: "newViolet.500/newViolet.200",
18
+ picked: "green.700/green.500",
19
+ rideshare: "black.1000/black.1000",
17
20
  driver: "yellow.500/yellow.500",
18
21
  owner: "navy.700/navy.700",
19
22
  disabled: "navy.100/black.100",
@@ -25,7 +28,7 @@ const background = {
25
28
  seasonVeryhigh: "season.400/season.1000",
26
29
  rental: "turquoise.100/turquoise.1200",
27
30
  blocker: "navy.100/black.75",
28
- rideshare: "black.1000/black.1000",
31
+ base: "navy.900/navy.50",
29
32
  secondaryInteractive: {
30
33
  DEFAULT: "white/black.300",
31
34
  hover: "navy.50/black.300"
@@ -39,7 +42,7 @@ const background = {
39
42
  hover: "purpleLight.100/purpleDeep.900"
40
43
  },
41
44
  connectInteractive: {
42
- DEFAULT: "turquoise.500/turquoise.700",
45
+ DEFAULT: "newPurple.500/newPurple.200",
43
46
  hover: "turquoise.700/turquoise.700"
44
47
  },
45
48
  errorInteractive: {
@@ -53,23 +56,29 @@ const text = {
53
56
  accent: "purple.500/purpleDeep.400",
54
57
  accentAlt: "purple.500/grey.100",
55
58
  info: "yellow.900/yellow.300",
59
+ infoAlt: "yellow.700/yellow.700",
56
60
  error: "red.500/red.400",
57
61
  errorAlt: "red.500/red.500",
58
62
  success: "green.700/green.700",
59
63
  successAlt: "green.1000/green.100",
60
- connect: "turquoise.500/turquoise.700",
64
+ warning: "orange.500/orange.300",
65
+ connect: "newPurple.500/newPurple.200",
61
66
  connectAlt: "turquoise.900/white",
67
+ keyExchange: "newViolet.500/newViolet.200",
68
+ picked: "green.700/green.500",
69
+ rideshare: "black.1000/white",
62
70
  driver: "navy.700/navy.700",
63
71
  owner: "white/grey.100",
64
- warning: "orange.500/orange.300",
65
- infoAlt: "yellow.700/yellow.700",
66
- inversed: "white/white",
67
72
  disabled: "navy.200/black.50",
73
+ inversed: "white/white",
68
74
  onAccent: "white/grey.100",
69
75
  onRideshare: "white/white",
70
76
  onError: "white/white",
71
77
  onSuccess: "white/white",
72
- onConnect: "white/white",
78
+ onConnect: "white/navy.900",
79
+ onKeyExchange: "white/navy.900",
80
+ onPicked: "white/navy.900",
81
+ onBase: "white/navy.900",
73
82
  baseInteractive: {
74
83
  DEFAULT: "navy.700/grey.100",
75
84
  hover: "navy.900/grey.300"
@@ -93,24 +102,30 @@ const icon = {
93
102
  accent: "purple.500/purpleDeep.400",
94
103
  accentAlt: "purple.500/grey.100",
95
104
  info: "yellow.900/yellow.300",
105
+ infoAlt: "yellow.500/yellow.700",
96
106
  error: "red.500/red.400",
97
107
  errorAlt: "red.500/red.200",
98
108
  success: "green.700/green.700",
99
109
  successAlt: "green.1000/green.100",
100
- connect: "turquoise.500/turquoise.700",
110
+ warning: "orange.500/orange.300",
111
+ connect: "newPurple.500/newPurple.200",
101
112
  connectAlt: "turquoise.900/turquoise.50",
113
+ keyExchange: "newViolet.500/newViolet.200",
114
+ picked: "green.700/green.500",
115
+ rideshare: "black.1000/white",
102
116
  driver: "navy.700/navy.700",
103
117
  owner: "white/white",
104
- inversed: "white/white",
105
- disabled: "navy.100/black.50",
118
+ disabled: "navy.200/black.50",
106
119
  disabledAlt: "navy.300/grey.500",
107
- warning: "orange.500/orange.300",
108
- infoAlt: "yellow.500/yellow.700",
120
+ inversed: "white/white",
109
121
  onAccent: "white/white",
110
- rideshare: "black.1000/white",
111
122
  onRideshare: "white/white",
112
- onSuccess: "white/white",
113
123
  onError: "white/white",
124
+ onSuccess: "white/white",
125
+ onConnect: "white/navy.900",
126
+ onKeyExchange: "white/navy.900",
127
+ onPicked: "white/navy.900",
128
+ onBase: "white/navy.900",
114
129
  baseInteractive: {
115
130
  DEFAULT: "navy.500/grey.100",
116
131
  hover: "navy.700/grey.100"
@@ -131,18 +146,27 @@ const icon = {
131
146
  const stroke = {
132
147
  base: "navy.100/black.50",
133
148
  subdued: "navy.50/black.100",
149
+ strong: "navy.300/navy.200",
134
150
  accent: "purple.500/purpleDeep.500",
135
151
  accentAlt: "purple.300/purpleDeep.400",
136
- success: "green.500/green.700",
137
- successAlt: "green.500/green.700",
138
152
  error: "red.500/red.200",
139
153
  errorAlt: "red.500/red.200",
140
- strong: "navy.300/navy.200",
154
+ success: "green.500/green.700",
155
+ successAlt: "green.500/green.700",
156
+ connect: "newPurple.500/newPurple.200",
157
+ keyExchange: "newViolet.500/newViolet.200",
158
+ picked: "green.700/green.500",
159
+ rideshare: "black.1000/white",
160
+ rental: "turquoise.500/turquoise.500",
161
+ blocker: "navy.300/grey.300",
141
162
  onAccent: "white/grey.100",
142
- rentals: "turquoise.500/turquoise.500",
143
- blokers: "navy.300/grey.300",
144
163
  onError: "white/white",
145
164
  onSuccess: "white/white",
165
+ onConnect: "white/black.1000",
166
+ onPicked: "white/black.1000",
167
+ onKeyExchange: "white/black.1000",
168
+ onRideshare: "white/black.1000",
169
+ onBase: "white/black.1000",
146
170
  baseInteractive: {
147
171
  DEFAULT: "navy.100/black.50",
148
172
  hover: "navy.300/purpleDeep.400",
@@ -268,25 +292,25 @@ const buttonBackground = {
268
292
  }
269
293
  };
270
294
  const fill = {
271
- base: "navy.500/grey.300",
272
- accent: "purple.500/purpleDeep.400",
273
- secondary: "yellow.500/yellow.500",
295
+ base: "navy.500/grey.50",
274
296
  subdued: "navy.100/black.50",
275
- neutral: "navy.50/black.100",
276
- negative: "red.150/red.800",
297
+ secondary: "yellow.500/yellow.500",
298
+ accent: "purple.500/purpleDeep.400",
277
299
  accentAlt: "purple.100/purpleDeep.900",
278
- disabled: "navy.300/grey.300",
279
300
  error: "red.500/red.500",
280
301
  success: "green.500/green.700",
281
- rentals: "turquoise.100/turquoise.1200",
282
- blockers: "navy.120/black.75"
302
+ neutral: "navy.50/black.100",
303
+ negative: "red.150/red.800",
304
+ disabled: "navy.300/grey.300",
305
+ rental: "turquoise.100/turquoise.1200",
306
+ blocker: "navy.120/black.75",
307
+ primary: "white/black.1000"
283
308
  };
284
309
  const illustrations = {
285
310
  primary: "navy.500/white",
286
311
  secondary: "white/white",
287
- acccent1: "purple.500/white",
288
- accent2: "blue.500/white",
289
- foregroundDark: "white/white"
312
+ accent1: "purple.500/white",
313
+ accent2: "blue.500/white"
290
314
  };
291
315
  var _theme = {
292
316
  background: background,
@@ -1 +1 @@
1
- {"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"theme.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -2,9 +2,12 @@ import { nanoid } from 'nanoid';
2
2
  import React, { Children, cloneElement, isValidElement } from 'react';
3
3
  import cx from 'classnames';
4
4
 
5
- const LayoutStackItem = ({ children, isTable }) => {
5
+ const LayoutStackItem = ({ children, isTable, ...props }) => {
6
6
  const Comp = isTable ? "tr" : "div";
7
- return React.createElement(Comp, { className: "cobalt-layout-stack__item" }, children);
7
+ return (React.createElement(Comp, { className: "cobalt-layout-stack__item", ...props }, children));
8
+ };
9
+ const LayoutStackLinkItem = ({ children, ...hyperlinkProps }) => {
10
+ return (React.createElement("a", { className: "cobalt-layout-stack__item", ...hyperlinkProps }, children));
8
11
  };
9
12
  const isStackItem = (child) => {
10
13
  return isValidElement(child) && child.type === LayoutStackItem;
@@ -39,6 +42,7 @@ const LayoutStack = ({ children, isTable, isPageHeader, }) => {
39
42
  }
40
43
  };
41
44
  LayoutStack.Item = LayoutStackItem;
45
+ LayoutStack.LinkItem = LayoutStackLinkItem;
42
46
 
43
47
  export { LayoutStack as default };
44
48
  //# sourceMappingURL=LayoutStack.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LayoutStack.js","sources":["../../../../src/components/Layout/Components/LayoutStack.tsx"],"sourcesContent":["import { nanoid } from \"nanoid\"\nimport React, { Children, isValidElement, cloneElement } from \"react\"\nimport cx from \"classnames\"\n\ntype LayoutStackItemPropsType =\n | {\n children: React.ReactNode\n isTable: never\n isPageHeader: never\n }\n | {\n children: React.ReactNode\n isPageHeader?: boolean\n isTable?: boolean\n }\n\nconst LayoutStackItem = ({ children, isTable }: LayoutStackItemPropsType) => {\n const Comp = isTable ? \"tr\" : \"div\"\n return <Comp className=\"cobalt-layout-stack__item\">{children}</Comp>\n}\n\nconst isStackItem = (\n child: React.ReactNode\n): child is React.ReactElement<Omit<LayoutStackItemPropsType, \"children\">> => {\n return isValidElement(child) && child.type === LayoutStackItem\n}\n\nconst LayoutStack = ({\n children,\n isTable,\n isPageHeader,\n}: {\n children: React.ReactNode\n isTable?: boolean\n isPageHeader?: boolean\n}) => {\n const headerElements: React.ReactElement[] = []\n const bodyElements: React.ReactElement[] = []\n const content = Children.map(children, (child) => {\n if (isStackItem(child)) {\n const newChild = cloneElement(child, { isTable, key: nanoid() })\n if (newChild.props.isTable) {\n if (newChild.props.isPageHeader) {\n headerElements.push(newChild)\n } else {\n bodyElements.push(newChild)\n }\n }\n }\n return child\n })\n const className = cx(\"cobalt-layout-stack\", {\n \"cobalt-layout--isPageHeader\": isPageHeader,\n })\n if (isTable) {\n return (\n <table className={className}>\n {!!headerElements.length && <thead>{headerElements}</thead>}\n <tbody>{bodyElements}</tbody>\n </table>\n )\n } else {\n return <div className={className}>{content}</div>\n }\n}\n\nLayoutStack.Item = LayoutStackItem\n\nexport default LayoutStack\n"],"names":[],"mappings":";;;;AAgBA,MAAM,eAAe,GAAG,CAAC,EAAE,QAAQ,EAAE,OAAO,EAA4B,KAAI;IAC1E,MAAM,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;IACnC,OAAO,KAAA,CAAA,aAAA,CAAC,IAAI,EAAC,EAAA,SAAS,EAAC,2BAA2B,EAAA,EAAE,QAAQ,CAAQ,CAAA;AACtE,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAClB,KAAsB,KACqD;IAC3E,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe,CAAA;AAChE,CAAC,CAAA;AAEK,MAAA,WAAW,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,YAAY,GAKb,KAAI;IACH,MAAM,cAAc,GAAyB,EAAE,CAAA;IAC/C,MAAM,YAAY,GAAyB,EAAE,CAAA;IAC7C,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AAC/C,QAAA,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE;AACtB,YAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AAChE,YAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE;AAC1B,gBAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE;AAC/B,oBAAA,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBAC9B;qBAAM;AACL,oBAAA,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBAC5B;aACF;SACF;AACD,QAAA,OAAO,KAAK,CAAA;AACd,KAAC,CAAC,CAAA;AACF,IAAA,MAAM,SAAS,GAAG,EAAE,CAAC,qBAAqB,EAAE;AAC1C,QAAA,6BAA6B,EAAE,YAAY;AAC5C,KAAA,CAAC,CAAA;IACF,IAAI,OAAO,EAAE;AACX,QAAA,QACE,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAE,SAAS,EAAA;AACxB,YAAA,CAAC,CAAC,cAAc,CAAC,MAAM,IAAI,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,EAAQ,cAAc,CAAS;AAC3D,YAAA,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,EAAQ,YAAY,CAAS,CACvB,EACT;KACF;SAAM;AACL,QAAA,OAAO,6BAAK,SAAS,EAAE,SAAS,EAAG,EAAA,OAAO,CAAO,CAAA;KAClD;AACH,EAAC;AAED,WAAW,CAAC,IAAI,GAAG,eAAe;;;;"}
1
+ {"version":3,"file":"LayoutStack.js","sources":["../../../../src/components/Layout/Components/LayoutStack.tsx"],"sourcesContent":["import { nanoid } from \"nanoid\"\nimport React, { Children, isValidElement, cloneElement } from \"react\"\nimport cx from \"classnames\"\n\ntype LayoutStackItemPropsType =\n | (React.HTMLAttributes<HTMLElement> & {\n children: React.ReactNode\n isTable: never\n isPageHeader: never\n })\n | (React.HTMLAttributes<HTMLElement> & {\n children: React.ReactNode\n isPageHeader?: boolean\n isTable?: boolean\n })\n\ntype LayoutStackLinkItemPropsType =\n React.AnchorHTMLAttributes<HTMLAnchorElement> & {\n children: React.ReactNode\n isPageHeader?: boolean\n }\n\nconst LayoutStackItem = ({\n children,\n isTable,\n ...props\n}: LayoutStackItemPropsType) => {\n const Comp = isTable ? \"tr\" : \"div\"\n return (\n <Comp className=\"cobalt-layout-stack__item\" {...props}>\n {children}\n </Comp>\n )\n}\n\nconst LayoutStackLinkItem = ({\n children,\n ...hyperlinkProps\n}: LayoutStackLinkItemPropsType) => {\n return (\n <a className=\"cobalt-layout-stack__item\" {...hyperlinkProps}>\n {children}\n </a>\n )\n}\n\nconst isStackItem = (\n child: React.ReactNode\n): child is React.ReactElement<Omit<LayoutStackItemPropsType, \"children\">> => {\n return isValidElement(child) && child.type === LayoutStackItem\n}\n\nconst LayoutStack = ({\n children,\n isTable,\n isPageHeader,\n}: {\n children: React.ReactNode\n isTable?: boolean\n isPageHeader?: boolean\n}) => {\n const headerElements: React.ReactElement[] = []\n const bodyElements: React.ReactElement[] = []\n const content = Children.map(children, (child) => {\n if (isStackItem(child)) {\n const newChild = cloneElement(child, { isTable, key: nanoid() })\n if (newChild.props.isTable) {\n if (newChild.props.isPageHeader) {\n headerElements.push(newChild)\n } else {\n bodyElements.push(newChild)\n }\n }\n }\n return child\n })\n const className = cx(\"cobalt-layout-stack\", {\n \"cobalt-layout--isPageHeader\": isPageHeader,\n })\n if (isTable) {\n return (\n <table className={className}>\n {!!headerElements.length && <thead>{headerElements}</thead>}\n <tbody>{bodyElements}</tbody>\n </table>\n )\n } else {\n return <div className={className}>{content}</div>\n }\n}\n\nLayoutStack.Item = LayoutStackItem\n\nLayoutStack.LinkItem = LayoutStackLinkItem\n\nexport default LayoutStack\n"],"names":[],"mappings":";;;;AAsBA,MAAM,eAAe,GAAG,CAAC,EACvB,QAAQ,EACR,OAAO,EACP,GAAG,KAAK,EACiB,KAAI;IAC7B,MAAM,IAAI,GAAG,OAAO,GAAG,IAAI,GAAG,KAAK,CAAA;AACnC,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,2BAA2B,EAAA,GAAK,KAAK,EAAA,EAClD,QAAQ,CACJ,EACR;AACH,CAAC,CAAA;AAED,MAAM,mBAAmB,GAAG,CAAC,EAC3B,QAAQ,EACR,GAAG,cAAc,EACY,KAAI;IACjC,QACE,KAAG,CAAA,aAAA,CAAA,GAAA,EAAA,EAAA,SAAS,EAAC,2BAA2B,EAAK,GAAA,cAAc,EACxD,EAAA,QAAQ,CACP,EACL;AACH,CAAC,CAAA;AAED,MAAM,WAAW,GAAG,CAClB,KAAsB,KACqD;IAC3E,OAAO,cAAc,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,eAAe,CAAA;AAChE,CAAC,CAAA;AAEK,MAAA,WAAW,GAAG,CAAC,EACnB,QAAQ,EACR,OAAO,EACP,YAAY,GAKb,KAAI;IACH,MAAM,cAAc,GAAyB,EAAE,CAAA;IAC/C,MAAM,YAAY,GAAyB,EAAE,CAAA;IAC7C,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,KAAK,KAAI;AAC/C,QAAA,IAAI,WAAW,CAAC,KAAK,CAAC,EAAE;AACtB,YAAA,MAAM,QAAQ,GAAG,YAAY,CAAC,KAAK,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC,CAAA;AAChE,YAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,OAAO,EAAE;AAC1B,gBAAA,IAAI,QAAQ,CAAC,KAAK,CAAC,YAAY,EAAE;AAC/B,oBAAA,cAAc,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBAC9B;qBAAM;AACL,oBAAA,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;iBAC5B;aACF;SACF;AACD,QAAA,OAAO,KAAK,CAAA;AACd,KAAC,CAAC,CAAA;AACF,IAAA,MAAM,SAAS,GAAG,EAAE,CAAC,qBAAqB,EAAE;AAC1C,QAAA,6BAA6B,EAAE,YAAY;AAC5C,KAAA,CAAC,CAAA;IACF,IAAI,OAAO,EAAE;AACX,QAAA,QACE,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,EAAO,SAAS,EAAE,SAAS,EAAA;AACxB,YAAA,CAAC,CAAC,cAAc,CAAC,MAAM,IAAI,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,EAAQ,cAAc,CAAS;AAC3D,YAAA,KAAA,CAAA,aAAA,CAAA,OAAA,EAAA,IAAA,EAAQ,YAAY,CAAS,CACvB,EACT;KACF;SAAM;AACL,QAAA,OAAO,6BAAK,SAAS,EAAE,SAAS,EAAG,EAAA,OAAO,CAAO,CAAA;KAClD;AACH,EAAC;AAED,WAAW,CAAC,IAAI,GAAG,eAAe,CAAA;AAElC,WAAW,CAAC,QAAQ,GAAG,mBAAmB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@drivy/cobalt",
3
- "version": "0.42.18",
3
+ "version": "0.43.0",
4
4
  "description": "Opinionated design system for Drivy's projects.",
5
5
  "main": "src/index.js",
6
6
  "types": "types/src/index.d.ts",
@@ -22,6 +22,10 @@
22
22
  fill: var(--c-icon-info);
23
23
  }
24
24
 
25
+ .cobalt-Icon--colorInfoAlt {
26
+ fill: var(--c-icon-infoAlt);
27
+ }
28
+
25
29
  .cobalt-Icon--colorError {
26
30
  fill: var(--c-icon-error);
27
31
  }
@@ -38,6 +42,10 @@
38
42
  fill: var(--c-icon-successAlt);
39
43
  }
40
44
 
45
+ .cobalt-Icon--colorWarning {
46
+ fill: var(--c-icon-warning);
47
+ }
48
+
41
49
  .cobalt-Icon--colorConnect {
42
50
  fill: var(--c-icon-connect);
43
51
  }
@@ -46,6 +54,18 @@
46
54
  fill: var(--c-icon-connectAlt);
47
55
  }
48
56
 
57
+ .cobalt-Icon--colorKeyExchange {
58
+ fill: var(--c-icon-keyExchange);
59
+ }
60
+
61
+ .cobalt-Icon--colorPicked {
62
+ fill: var(--c-icon-picked);
63
+ }
64
+
65
+ .cobalt-Icon--colorRideshare {
66
+ fill: var(--c-icon-rideshare);
67
+ }
68
+
49
69
  .cobalt-Icon--colorDriver {
50
70
  fill: var(--c-icon-driver);
51
71
  }
@@ -54,10 +74,6 @@
54
74
  fill: var(--c-icon-owner);
55
75
  }
56
76
 
57
- .cobalt-Icon--colorInversed {
58
- fill: var(--c-icon-inversed);
59
- }
60
-
61
77
  .cobalt-Icon--colorDisabled {
62
78
  fill: var(--c-icon-disabled);
63
79
  }
@@ -66,32 +82,40 @@
66
82
  fill: var(--c-icon-disabledAlt);
67
83
  }
68
84
 
69
- .cobalt-Icon--colorWarning {
70
- fill: var(--c-icon-warning);
71
- }
72
-
73
- .cobalt-Icon--colorInfoAlt {
74
- fill: var(--c-icon-infoAlt);
85
+ .cobalt-Icon--colorInversed {
86
+ fill: var(--c-icon-inversed);
75
87
  }
76
88
 
77
89
  .cobalt-Icon--colorOnAccent {
78
90
  fill: var(--c-icon-onAccent);
79
91
  }
80
92
 
81
- .cobalt-Icon--colorRideshare {
82
- fill: var(--c-icon-rideshare);
83
- }
84
-
85
93
  .cobalt-Icon--colorOnRideshare {
86
94
  fill: var(--c-icon-onRideshare);
87
95
  }
88
96
 
97
+ .cobalt-Icon--colorOnError {
98
+ fill: var(--c-icon-onError);
99
+ }
100
+
89
101
  .cobalt-Icon--colorOnSuccess {
90
102
  fill: var(--c-icon-onSuccess);
91
103
  }
92
104
 
93
- .cobalt-Icon--colorOnError {
94
- fill: var(--c-icon-onError);
105
+ .cobalt-Icon--colorOnConnect {
106
+ fill: var(--c-icon-onConnect);
107
+ }
108
+
109
+ .cobalt-Icon--colorOnKeyExchange {
110
+ fill: var(--c-icon-onKeyExchange);
111
+ }
112
+
113
+ .cobalt-Icon--colorOnPicked {
114
+ fill: var(--c-icon-onPicked);
115
+ }
116
+
117
+ .cobalt-Icon--colorOnBase {
118
+ fill: var(--c-icon-onBase);
95
119
  }
96
120
 
97
121
  .cobalt-Icon--colorBaseInteractive {
@@ -42,12 +42,34 @@ div.cobalt-layout-stack {
42
42
 
43
43
  .cobalt-layout-stack__item {
44
44
  @include border-top(base);
45
+
46
+ display: block;
47
+
45
48
  padding: var(--cobalt-layout-item-spacing);
46
49
  }
47
50
 
48
- .cobalt-layout-stack__item:first-of-type {
51
+ .cobalt-layout-stack__item:first-child {
49
52
  border-top: 0;
50
53
  }
54
+
55
+ a.cobalt-layout-stack__item {
56
+ text-decoration: inherit;
57
+ font-weight: inherit;
58
+ }
59
+
60
+ a.cobalt-layout-stack__item[href]:hover {
61
+ @include bg-color(neutralAlt);
62
+ }
63
+
64
+ a.cobalt-layout-stack__item[href]:first-child {
65
+ border-radius: calc(border-radius(xl) - 1px) calc(border-radius(xl) - 1px) 0
66
+ 0;
67
+ }
68
+
69
+ a.cobalt-layout-stack__item[href]:last-child {
70
+ border-radius: 0 0 calc(border-radius(xl) - 1px)
71
+ calc(border-radius(xl) - 1px);
72
+ }
51
73
  }
52
74
 
53
75
  table.cobalt-layout-stack {
@@ -15,6 +15,9 @@ $theme-colors-map: (
15
15
  successAlt: var(--c-background-successAlt),
16
16
  connect: var(--c-background-connect),
17
17
  connectAlt: var(--c-background-connectAlt),
18
+ keyExchange: var(--c-background-keyExchange),
19
+ picked: var(--c-background-picked),
20
+ rideshare: var(--c-background-rideshare),
18
21
  driver: var(--c-background-driver),
19
22
  owner: var(--c-background-owner),
20
23
  disabled: var(--c-background-disabled),
@@ -26,7 +29,7 @@ $theme-colors-map: (
26
29
  seasonVeryhigh: var(--c-background-seasonVeryhigh),
27
30
  rental: var(--c-background-rental),
28
31
  blocker: var(--c-background-blocker),
29
- rideshare: var(--c-background-rideshare),
32
+ base: var(--c-background-base),
30
33
  secondaryInteractive: (
31
34
  DEFAULT: var(--c-background-secondaryInteractive),
32
35
  hover: var(--c-background-secondaryInteractive--hover)
@@ -54,23 +57,29 @@ $theme-colors-map: (
54
57
  accent: var(--c-text-accent),
55
58
  accentAlt: var(--c-text-accentAlt),
56
59
  info: var(--c-text-info),
60
+ infoAlt: var(--c-text-infoAlt),
57
61
  error: var(--c-text-error),
58
62
  errorAlt: var(--c-text-errorAlt),
59
63
  success: var(--c-text-success),
60
64
  successAlt: var(--c-text-successAlt),
65
+ warning: var(--c-text-warning),
61
66
  connect: var(--c-text-connect),
62
67
  connectAlt: var(--c-text-connectAlt),
68
+ keyExchange: var(--c-text-keyExchange),
69
+ picked: var(--c-text-picked),
70
+ rideshare: var(--c-text-rideshare),
63
71
  driver: var(--c-text-driver),
64
72
  owner: var(--c-text-owner),
65
- warning: var(--c-text-warning),
66
- infoAlt: var(--c-text-infoAlt),
67
- inversed: var(--c-text-inversed),
68
73
  disabled: var(--c-text-disabled),
74
+ inversed: var(--c-text-inversed),
69
75
  onAccent: var(--c-text-onAccent),
70
76
  onRideshare: var(--c-text-onRideshare),
71
77
  onError: var(--c-text-onError),
72
78
  onSuccess: var(--c-text-onSuccess),
73
79
  onConnect: var(--c-text-onConnect),
80
+ onKeyExchange: var(--c-text-onKeyExchange),
81
+ onPicked: var(--c-text-onPicked),
82
+ onBase: var(--c-text-onBase),
74
83
  baseInteractive: (
75
84
  DEFAULT: var(--c-text-baseInteractive),
76
85
  hover: var(--c-text-baseInteractive--hover)
@@ -94,24 +103,30 @@ $theme-colors-map: (
94
103
  accent: var(--c-icon-accent),
95
104
  accentAlt: var(--c-icon-accentAlt),
96
105
  info: var(--c-icon-info),
106
+ infoAlt: var(--c-icon-infoAlt),
97
107
  error: var(--c-icon-error),
98
108
  errorAlt: var(--c-icon-errorAlt),
99
109
  success: var(--c-icon-success),
100
110
  successAlt: var(--c-icon-successAlt),
111
+ warning: var(--c-icon-warning),
101
112
  connect: var(--c-icon-connect),
102
113
  connectAlt: var(--c-icon-connectAlt),
114
+ keyExchange: var(--c-icon-keyExchange),
115
+ picked: var(--c-icon-picked),
116
+ rideshare: var(--c-icon-rideshare),
103
117
  driver: var(--c-icon-driver),
104
118
  owner: var(--c-icon-owner),
105
- inversed: var(--c-icon-inversed),
106
119
  disabled: var(--c-icon-disabled),
107
120
  disabledAlt: var(--c-icon-disabledAlt),
108
- warning: var(--c-icon-warning),
109
- infoAlt: var(--c-icon-infoAlt),
121
+ inversed: var(--c-icon-inversed),
110
122
  onAccent: var(--c-icon-onAccent),
111
- rideshare: var(--c-icon-rideshare),
112
123
  onRideshare: var(--c-icon-onRideshare),
113
- onSuccess: var(--c-icon-onSuccess),
114
124
  onError: var(--c-icon-onError),
125
+ onSuccess: var(--c-icon-onSuccess),
126
+ onConnect: var(--c-icon-onConnect),
127
+ onKeyExchange: var(--c-icon-onKeyExchange),
128
+ onPicked: var(--c-icon-onPicked),
129
+ onBase: var(--c-icon-onBase),
115
130
  baseInteractive: (
116
131
  DEFAULT: var(--c-icon-baseInteractive),
117
132
  hover: var(--c-icon-baseInteractive--hover)
@@ -132,18 +147,27 @@ $theme-colors-map: (
132
147
  stroke: (
133
148
  base: var(--c-stroke-base),
134
149
  subdued: var(--c-stroke-subdued),
150
+ strong: var(--c-stroke-strong),
135
151
  accent: var(--c-stroke-accent),
136
152
  accentAlt: var(--c-stroke-accentAlt),
137
- success: var(--c-stroke-success),
138
- successAlt: var(--c-stroke-successAlt),
139
153
  error: var(--c-stroke-error),
140
154
  errorAlt: var(--c-stroke-errorAlt),
141
- strong: var(--c-stroke-strong),
155
+ success: var(--c-stroke-success),
156
+ successAlt: var(--c-stroke-successAlt),
157
+ connect: var(--c-stroke-connect),
158
+ keyExchange: var(--c-stroke-keyExchange),
159
+ picked: var(--c-stroke-picked),
160
+ rideshare: var(--c-stroke-rideshare),
161
+ rental: var(--c-stroke-rental),
162
+ blocker: var(--c-stroke-blocker),
142
163
  onAccent: var(--c-stroke-onAccent),
143
- rentals: var(--c-stroke-rentals),
144
- blokers: var(--c-stroke-blokers),
145
164
  onError: var(--c-stroke-onError),
146
165
  onSuccess: var(--c-stroke-onSuccess),
166
+ onConnect: var(--c-stroke-onConnect),
167
+ onPicked: var(--c-stroke-onPicked),
168
+ onKeyExchange: var(--c-stroke-onKeyExchange),
169
+ onRideshare: var(--c-stroke-onRideshare),
170
+ onBase: var(--c-stroke-onBase),
147
171
  baseInteractive: (
148
172
  DEFAULT: var(--c-stroke-baseInteractive),
149
173
  hover: var(--c-stroke-baseInteractive--hover),
@@ -270,23 +294,23 @@ $theme-colors-map: (
270
294
  ),
271
295
  fill: (
272
296
  base: var(--c-fill-base),
273
- accent: var(--c-fill-accent),
274
- secondary: var(--c-fill-secondary),
275
297
  subdued: var(--c-fill-subdued),
276
- neutral: var(--c-fill-neutral),
277
- negative: var(--c-fill-negative),
298
+ secondary: var(--c-fill-secondary),
299
+ accent: var(--c-fill-accent),
278
300
  accentAlt: var(--c-fill-accentAlt),
279
- disabled: var(--c-fill-disabled),
280
301
  error: var(--c-fill-error),
281
302
  success: var(--c-fill-success),
282
- rentals: var(--c-fill-rentals),
283
- blockers: var(--c-fill-blockers)
303
+ neutral: var(--c-fill-neutral),
304
+ negative: var(--c-fill-negative),
305
+ disabled: var(--c-fill-disabled),
306
+ rental: var(--c-fill-rental),
307
+ blocker: var(--c-fill-blocker),
308
+ primary: var(--c-fill-primary)
284
309
  ),
285
310
  illustrations: (
286
311
  primary: var(--c-illustrations-primary),
287
312
  secondary: var(--c-illustrations-secondary),
288
- acccent1: var(--c-illustrations-acccent1),
289
- accent2: var(--c-illustrations-accent2),
290
- foregroundDark: var(--c-illustrations-foregroundDark)
313
+ accent1: var(--c-illustrations-accent1),
314
+ accent2: var(--c-illustrations-accent2)
291
315
  )
292
316
  );