@artsy/palette 38.13.3 → 38.13.4

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.
@@ -13,7 +13,7 @@ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(
13
13
  * Apps that use palette should mount this component at the root of their tree.
14
14
  */
15
15
  function injectGlobalStyles(additionalStyles) {
16
- var GlobalStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html {\n box-sizing: border-box;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n ::selection {\n background-color: ", ";\n color: ", ";\n }\n\n html,\n body,\n #root {\n -webkit-tap-highlight-color: transparent;\n height: 100%;\n }\n\n body {\n margin: 0;\n padding: 0;\n }\n\n html, body {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n background-color: ", ";\n color: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n\n a {\n cursor: pointer;\n color: inherit;\n transition: color 0.25s;\n text-decoration: underline;\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-style: inherit;\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n ol,\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ", ";\n "])), (0, _themeGet.themeGet)("colors.blue15"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("fonts.sans"), (0, _themeGet.themeGet)("textVariants.sm.fontSize"), (0, _themeGet.themeGet)("textVariants.sm.lineHeight"), (0, _themeGet.themeGet)("colors.white100"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black100"), additionalStyles);
16
+ var GlobalStyles = (0, _styledComponents.createGlobalStyle)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n html {\n box-sizing: border-box;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n &:focus {\n outline: 0;\n }\n\n &:focus-visible {\n outline: 1px solid ", ";\n }\n\n ::selection {\n background-color: ", ";\n color: ", ";\n }\n\n html,\n body,\n #root {\n -webkit-tap-highlight-color: transparent;\n height: 100%;\n }\n\n body {\n margin: 0;\n padding: 0;\n }\n\n html, body {\n font-family: ", ";\n font-size: ", ";\n line-height: ", ";\n background-color: ", ";\n color: ", ";\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n\n a {\n cursor: pointer;\n color: inherit;\n transition: color 0.25s;\n text-decoration: underline;\n\n &:hover {\n color: ", ";\n }\n\n &:active {\n color: ", ";\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-style: inherit;\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n ol,\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ", ";\n "])), (0, _themeGet.themeGet)("colors.blue100"), (0, _themeGet.themeGet)("colors.blue15"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("fonts.sans"), (0, _themeGet.themeGet)("textVariants.sm.fontSize"), (0, _themeGet.themeGet)("textVariants.sm.lineHeight"), (0, _themeGet.themeGet)("colors.white100"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black100"), (0, _themeGet.themeGet)("colors.black100"), additionalStyles);
17
17
  GlobalStyles.displayName = "GlobalStyles";
18
18
  return {
19
19
  GlobalStyles: GlobalStyles
@@ -1 +1 @@
1
- {"version":3,"file":"injectGlobalStyles.js","names":["_themeGet","require","_styledComponents","_templateObject","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","injectGlobalStyles","additionalStyles","GlobalStyles","createGlobalStyle","themeGet","displayName"],"sources":["../../src/helpers/injectGlobalStyles.tsx"],"sourcesContent":["import { themeGet } from \"@styled-system/theme-get\"\nimport { createGlobalStyle, css } from \"styled-components\"\n\n/**\n * Injects globally relevant styles, including helper classes for our Typography.\n * Apps that use palette should mount this component at the root of their tree.\n */\nexport function injectGlobalStyles<P>(\n additionalStyles?: string | ReturnType<typeof css>\n) {\n const GlobalStyles = createGlobalStyle<P>`\n html {\n box-sizing: border-box;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n ::selection {\n background-color: ${themeGet(\"colors.blue15\")};\n color: ${themeGet(\"colors.black100\")};\n }\n\n html,\n body,\n #root {\n -webkit-tap-highlight-color: transparent;\n height: 100%;\n }\n\n body {\n margin: 0;\n padding: 0;\n }\n\n html, body {\n font-family: ${themeGet(\"fonts.sans\")};\n font-size: ${themeGet(\"textVariants.sm.fontSize\")};\n line-height: ${themeGet(\"textVariants.sm.lineHeight\")};\n background-color: ${themeGet(\"colors.white100\")};\n color: ${themeGet(\"colors.black100\")};\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n\n a {\n cursor: pointer;\n color: inherit;\n transition: color 0.25s;\n text-decoration: underline;\n\n &:hover {\n color: ${themeGet(\"colors.black100\")};\n }\n\n &:active {\n color: ${themeGet(\"colors.black100\")};\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-style: inherit;\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n ol,\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ${additionalStyles};\n `\n\n GlobalStyles.displayName = \"GlobalStyles\"\n\n return {\n GlobalStyles,\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAA0D,IAAAE,eAAA;AAAA,SAAAC,uBAAAC,OAAA,EAAAC,GAAA,SAAAA,GAAA,IAAAA,GAAA,GAAAD,OAAA,CAAAE,KAAA,cAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,OAAA,IAAAC,GAAA,IAAAK,KAAA,EAAAH,MAAA,CAAAC,MAAA,CAAAH,GAAA;AAE1D;AACA;AACA;AACA;AACO,SAASM,kBAAkBA,CAChCC,gBAAkD,EAClD;EACA,IAAMC,YAAY,OAAGC,mCAAiB,EAAAZ,eAAA,KAAAA,eAAA,GAAAC,sBAAA,6uCAYd,IAAAY,kBAAQ,EAAC,eAAe,CAAC,EACpC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAgBrB,IAAAA,kBAAQ,EAAC,YAAY,CAAC,EACxB,IAAAA,kBAAQ,EAAC,0BAA0B,CAAC,EAClC,IAAAA,kBAAQ,EAAC,4BAA4B,CAAC,EACjC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EACtC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAazB,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAI3B,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EA8BtCH,gBAAgB,CACnB;EAEDC,YAAY,CAACG,WAAW,GAAG,cAAc;EAEzC,OAAO;IACLH,YAAY,EAAZA;EACF,CAAC;AACH"}
1
+ {"version":3,"file":"injectGlobalStyles.js","names":["_themeGet","require","_styledComponents","_templateObject","_taggedTemplateLiteral","strings","raw","slice","Object","freeze","defineProperties","value","injectGlobalStyles","additionalStyles","GlobalStyles","createGlobalStyle","themeGet","displayName"],"sources":["../../src/helpers/injectGlobalStyles.tsx"],"sourcesContent":["import { themeGet } from \"@styled-system/theme-get\"\nimport { createGlobalStyle, css } from \"styled-components\"\n\n/**\n * Injects globally relevant styles, including helper classes for our Typography.\n * Apps that use palette should mount this component at the root of their tree.\n */\nexport function injectGlobalStyles<P>(\n additionalStyles?: string | ReturnType<typeof css>\n) {\n const GlobalStyles = createGlobalStyle<P>`\n html {\n box-sizing: border-box;\n }\n\n *,\n *::before,\n *::after {\n box-sizing: inherit;\n }\n\n &:focus {\n outline: 0;\n }\n\n &:focus-visible {\n outline: 1px solid ${themeGet(\"colors.blue100\")};\n }\n\n ::selection {\n background-color: ${themeGet(\"colors.blue15\")};\n color: ${themeGet(\"colors.black100\")};\n }\n\n html,\n body,\n #root {\n -webkit-tap-highlight-color: transparent;\n height: 100%;\n }\n\n body {\n margin: 0;\n padding: 0;\n }\n\n html, body {\n font-family: ${themeGet(\"fonts.sans\")};\n font-size: ${themeGet(\"textVariants.sm.fontSize\")};\n line-height: ${themeGet(\"textVariants.sm.lineHeight\")};\n background-color: ${themeGet(\"colors.white100\")};\n color: ${themeGet(\"colors.black100\")};\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n\n a {\n cursor: pointer;\n color: inherit;\n transition: color 0.25s;\n text-decoration: underline;\n\n &:hover {\n color: ${themeGet(\"colors.black100\")};\n }\n\n &:active {\n color: ${themeGet(\"colors.black100\")};\n }\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n font-style: inherit;\n font-family: inherit;\n font-weight: inherit;\n font-size: inherit;\n margin: 0;\n }\n\n dl,\n dt,\n dd {\n margin: 0;\n }\n\n ol,\n ul {\n list-style: none;\n margin: 0;\n padding: 0;\n }\n\n ${additionalStyles};\n `\n\n GlobalStyles.displayName = \"GlobalStyles\"\n\n return {\n GlobalStyles,\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AAA0D,IAAAE,eAAA;AAAA,SAAAC,uBAAAC,OAAA,EAAAC,GAAA,SAAAA,GAAA,IAAAA,GAAA,GAAAD,OAAA,CAAAE,KAAA,cAAAC,MAAA,CAAAC,MAAA,CAAAD,MAAA,CAAAE,gBAAA,CAAAL,OAAA,IAAAC,GAAA,IAAAK,KAAA,EAAAH,MAAA,CAAAC,MAAA,CAAAH,GAAA;AAE1D;AACA;AACA;AACA;AACO,SAASM,kBAAkBA,CAChCC,gBAAkD,EAClD;EACA,IAAMC,YAAY,OAAGC,mCAAiB,EAAAZ,eAAA,KAAAA,eAAA,GAAAC,sBAAA,w1CAgBb,IAAAY,kBAAQ,EAAC,gBAAgB,CAAC,EAI3B,IAAAA,kBAAQ,EAAC,eAAe,CAAC,EACpC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAgBrB,IAAAA,kBAAQ,EAAC,YAAY,CAAC,EACxB,IAAAA,kBAAQ,EAAC,0BAA0B,CAAC,EAClC,IAAAA,kBAAQ,EAAC,4BAA4B,CAAC,EACjC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EACtC,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAazB,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EAI3B,IAAAA,kBAAQ,EAAC,iBAAiB,CAAC,EA8BtCH,gBAAgB,CACnB;EAEDC,YAAY,CAACG,WAAW,GAAG,cAAc;EAEzC,OAAO;IACLH,YAAY,EAAZA;EACF,CAAC;AACH"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@artsy/palette",
3
- "version": "38.13.3",
3
+ "version": "38.13.4",
4
4
  "description": "Design system library for react components",
5
5
  "main": "dist/index.js",
6
6
  "publishConfig": {
@@ -182,5 +182,5 @@
182
182
  "url": "http://localhost"
183
183
  }
184
184
  },
185
- "gitHead": "72edec6ad362425928ee8b9b7284e98f0e914391"
185
+ "gitHead": "b228d24029846f99840d208851dd2b30bf8be30a"
186
186
  }