@artsy/palette 19.1.5 → 19.2.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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ # v19.2.0 (Thu Mar 31 2022)
2
+
3
+ #### 🚀 Enhancement
4
+
5
+ - GRO-836: Adding design update for gallery attributes, until further approval on designs met [#1149](https://github.com/artsy/palette/pull/1149) ([@The-Beez-Kneez](https://github.com/The-Beez-Kneez))
6
+
7
+ #### 🐛 Bug Fix
8
+
9
+ - Adding design update for badges, until further approval on designs met ([@The-Beez-Kneez](https://github.com/The-Beez-Kneez))
10
+
11
+ #### 🏠 Internal
12
+
13
+ - chore(deps): update dep typescript from 4.6.2 to v4.6.3 [#1148](https://github.com/artsy/palette/pull/1148) ([@renovate-bot](https://github.com/renovate-bot))
14
+
15
+ #### Authors: 2
16
+
17
+ - Ana Lisa Sutherland ([@The-Beez-Kneez](https://github.com/The-Beez-Kneez))
18
+ - WhiteSource Renovate ([@renovate-bot](https://github.com/renovate-bot))
19
+
20
+ ---
21
+
1
22
  # v19.1.5 (Thu Mar 24 2022)
2
23
 
3
24
  #### 🐛 Bug Fix
@@ -37,12 +37,12 @@ var VARIANTS = {
37
37
  color: "black100"
38
38
  },
39
39
  defaultDark: {
40
- backgroundColor: "black100",
41
- color: "white100"
40
+ backgroundColor: "black10",
41
+ color: "black100"
42
42
  },
43
43
  brand: {
44
- backgroundColor: "brand",
45
- color: "white100"
44
+ backgroundColor: "black10",
45
+ color: "black100"
46
46
  }
47
47
  };
48
48
 
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/elements/Badge/Badge.tsx"],"names":["VARIANTS","defaultLight","backgroundColor","color","defaultDark","brand","Badge","children","rest","defaultProps","variant","Container","Box","variants"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,GAAG;AACfC,EAAAA,YAAY,EAAE;AACZC,IAAAA,eAAe,EAAE,SADL;AAEZC,IAAAA,KAAK,EAAE;AAFK,GADC;AAKfC,EAAAA,WAAW,EAAE;AACXF,IAAAA,eAAe,EAAE,UADN;AAEXC,IAAAA,KAAK,EAAE;AAFI,GALE;AASfE,EAAAA,KAAK,EAAE;AACLH,IAAAA,eAAe,EAAE,OADZ;AAELC,IAAAA,KAAK,EAAE;AAFF;AATQ,CAAjB;;AAoBO,IAAMG,KAA2B,GAAG,SAA9BA,KAA8B,OAA2B;AAAA,MAAxBC,QAAwB,QAAxBA,QAAwB;AAAA,MAAXC,IAAW;;AACpE,sBACE,oBAAC,SAAD;AAAW,IAAA,OAAO,EAAC,aAAnB;AAAiC,IAAA,QAAQ,EAAC;AAA1C,KAAqDA,IAArD,gBACE,oBAAC,aAAD;AAAM,IAAA,OAAO,EAAC,IAAd;AAAmB,IAAA,EAAE,EAAE,GAAvB;AAA4B,IAAA,gBAAgB;AAA5C,KACGD,QADH,CADF,CADF;AAOD,CARM;;;AAAMD,K;AAUbA,KAAK,CAACG,YAAN,GAAqB;AACnBC,EAAAA,OAAO,EAAE;AADU,CAArB;AAIA,IAAMC,SAAS,GAAG,+BAAOC,QAAP,CAAH;AAAA;AAAA;AAAA,aACX,2BAAQ;AAAEC,EAAAA,QAAQ,EAAEb;AAAZ,CAAR,CADW,CAAf","sourcesContent":["import { Text } from \"@artsy/palette\"\nimport * as React from \"react\"\nimport styled from \"styled-components\"\nimport { variant } from \"styled-system\"\nimport { Box, BoxProps } from \"../Box\"\n\nconst VARIANTS = {\n defaultLight: {\n backgroundColor: \"black10\",\n color: \"black100\",\n },\n defaultDark: {\n backgroundColor: \"black100\",\n color: \"white100\",\n },\n brand: {\n backgroundColor: \"brand\",\n color: \"white100\",\n },\n}\n\nexport interface BadgeProps extends BoxProps {\n variant?: keyof typeof VARIANTS\n children: React.ReactNode\n}\n\nexport const Badge: React.FC<BadgeProps> = ({ children, ...rest }) => {\n return (\n <Container display=\"inline-flex\" maxWidth=\"100%\" {...rest}>\n <Text variant=\"xs\" px={0.5} overflowEllipsis>\n {children}\n </Text>\n </Container>\n )\n}\n\nBadge.defaultProps = {\n variant: \"defaultDark\",\n}\n\nconst Container = styled(Box)`\n ${variant({ variants: VARIANTS })}\n`\n"],"file":"Badge.js"}
1
+ {"version":3,"sources":["../../../src/elements/Badge/Badge.tsx"],"names":["VARIANTS","defaultLight","backgroundColor","color","defaultDark","brand","Badge","children","rest","defaultProps","variant","Container","Box","variants"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;;;;;;;AAEA,IAAMA,QAAQ,GAAG;AACfC,EAAAA,YAAY,EAAE;AACZC,IAAAA,eAAe,EAAE,SADL;AAEZC,IAAAA,KAAK,EAAE;AAFK,GADC;AAKfC,EAAAA,WAAW,EAAE;AACXF,IAAAA,eAAe,EAAE,SADN;AAEXC,IAAAA,KAAK,EAAE;AAFI,GALE;AASfE,EAAAA,KAAK,EAAE;AACLH,IAAAA,eAAe,EAAE,SADZ;AAELC,IAAAA,KAAK,EAAE;AAFF;AATQ,CAAjB;;AAoBO,IAAMG,KAA2B,GAAG,SAA9BA,KAA8B,OAA2B;AAAA,MAAxBC,QAAwB,QAAxBA,QAAwB;AAAA,MAAXC,IAAW;;AACpE,sBACE,oBAAC,SAAD;AAAW,IAAA,OAAO,EAAC,aAAnB;AAAiC,IAAA,QAAQ,EAAC;AAA1C,KAAqDA,IAArD,gBACE,oBAAC,aAAD;AAAM,IAAA,OAAO,EAAC,IAAd;AAAmB,IAAA,EAAE,EAAE,GAAvB;AAA4B,IAAA,gBAAgB;AAA5C,KACGD,QADH,CADF,CADF;AAOD,CARM;;;AAAMD,K;AAUbA,KAAK,CAACG,YAAN,GAAqB;AACnBC,EAAAA,OAAO,EAAE;AADU,CAArB;AAIA,IAAMC,SAAS,GAAG,+BAAOC,QAAP,CAAH;AAAA;AAAA;AAAA,aACX,2BAAQ;AAAEC,EAAAA,QAAQ,EAAEb;AAAZ,CAAR,CADW,CAAf","sourcesContent":["import { Text } from \"@artsy/palette\"\nimport * as React from \"react\"\nimport styled from \"styled-components\"\nimport { variant } from \"styled-system\"\nimport { Box, BoxProps } from \"../Box\"\n\nconst VARIANTS = {\n defaultLight: {\n backgroundColor: \"black10\",\n color: \"black100\",\n },\n defaultDark: {\n backgroundColor: \"black10\",\n color: \"black100\",\n },\n brand: {\n backgroundColor: \"black10\",\n color: \"black100\",\n },\n}\n\nexport interface BadgeProps extends BoxProps {\n variant?: keyof typeof VARIANTS\n children: React.ReactNode\n}\n\nexport const Badge: React.FC<BadgeProps> = ({ children, ...rest }) => {\n return (\n <Container display=\"inline-flex\" maxWidth=\"100%\" {...rest}>\n <Text variant=\"xs\" px={0.5} overflowEllipsis>\n {children}\n </Text>\n </Container>\n )\n}\n\nBadge.defaultProps = {\n variant: \"defaultDark\",\n}\n\nconst Container = styled(Box)`\n ${variant({ variants: VARIANTS })}\n`\n"],"file":"Badge.js"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette",
3
- "version": "19.1.5",
3
+ "version": "19.2.0",
4
4
  "description": "Design system library for react components",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -111,7 +111,7 @@
111
111
  "storybook-states": "1.2.0",
112
112
  "styled-components": "4.3.2",
113
113
  "ts-node": "8.1.0",
114
- "typescript": "4.6.2",
114
+ "typescript": "4.6.3",
115
115
  "typescript-styled-plugin": "0.10.0",
116
116
  "webpack": "5"
117
117
  },
@@ -178,5 +178,5 @@
178
178
  "<rootDir>/www/"
179
179
  ]
180
180
  },
181
- "gitHead": "a3b8a0d1d97ce05ad18f7d9fe83c27b2f640dc41"
181
+ "gitHead": "74dc238df626f38a49045b1067f0d6984f388afe"
182
182
  }