@artsy/palette 45.14.0-canary.1497.33065.0 → 45.14.0-canary.1497.33075.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.
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import { Theme as TTheme } from "./themes";
3
3
  export * from "@artsy/palette-tokens/dist/themes/v3";
4
- export { TextVariant } from "@artsy/palette-tokens/dist/typography/v3";
4
+ export type { TextVariant } from "@artsy/palette-tokens/dist/typography/v3";
5
5
  export declare const THEMES: {
6
6
  light: {
7
7
  id: string;
package/dist/cjs/Theme.js CHANGED
@@ -7,17 +7,9 @@ Object.defineProperty(exports, "__esModule", {
7
7
  var _exportNames = {
8
8
  THEMES: true,
9
9
  Theme: true,
10
- useTheme: true,
11
- TextVariant: true
10
+ useTheme: true
12
11
  };
13
- exports.THEMES = void 0;
14
- Object.defineProperty(exports, "TextVariant", {
15
- enumerable: true,
16
- get: function get() {
17
- return _v2.TextVariant;
18
- }
19
- });
20
- exports.useTheme = exports.Theme = void 0;
12
+ exports.useTheme = exports.Theme = exports.THEMES = void 0;
21
13
  var _react = _interopRequireWildcard(require("react"));
22
14
  var _styledComponents = require("styled-components");
23
15
  var _themes = require("./themes");
@@ -34,7 +26,6 @@ Object.keys(_v).forEach(function (key) {
34
26
  });
35
27
  });
36
28
  var _v3Dark = require("@artsy/palette-tokens/dist/themes/v3Dark");
37
- var _v2 = require("@artsy/palette-tokens/dist/typography/v3");
38
29
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
39
30
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
40
31
  var THEMES = exports.THEMES = {
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_themes","_v","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_v3Dark","_v2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","THEMES","light","THEME","dark","THEME_DARK","DEFAULT_THEME","Theme","_ref","children","_ref$theme","theme","selectedTheme","createElement","ThemeProvider","displayName","useTheme","useContext","ThemeContext"],"sources":["../../src/Theme.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { ThemeContext, ThemeProvider } from \"styled-components\"\nimport { THEME, Theme as TTheme } from \"./themes\"\n\nexport * from \"@artsy/palette-tokens/dist/themes/v3\"\nimport { THEME_DARK } from \"@artsy/palette-tokens/dist/themes/v3Dark\"\nexport { TextVariant } from \"@artsy/palette-tokens/dist/typography/v3\"\n\nexport const THEMES = {\n light: THEME,\n dark: THEME_DARK,\n}\n\nconst DEFAULT_THEME = THEME\n\ninterface ThemeProps {\n children?: React.ReactNode\n theme?: \"light\" | \"dark\"\n}\n\n/**\n * A wrapper component for passing down the Artsy theme context\n */\nexport const Theme: React.FC<React.PropsWithChildren<ThemeProps>> = ({\n children,\n theme = \"light\",\n}) => {\n const selectedTheme = THEMES[theme]\n return <ThemeProvider theme={selectedTheme}>{children}</ThemeProvider>\n}\n\n/** Returns the current theme */\nexport const useTheme = <T extends TTheme>() => {\n const theme: T = (useContext(ThemeContext) || DEFAULT_THEME) as T\n return { theme }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,EAAA,GAAAH,OAAA;AAAAI,MAAA,CAAAC,IAAA,CAAAF,EAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,EAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,EAAA,CAAAI,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,OAAA,GAAAhB,OAAA;AACA,IAAAiB,GAAA,GAAAjB,OAAA;AAAsE,SAAAkB,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAApB,wBAAAwB,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,4BAAAG,OAAA,EAAAH,GAAA,UAAAI,KAAA,GAAAT,wBAAA,CAAAC,WAAA,OAAAQ,KAAA,IAA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c,GAAEH,QAAQ,CAAiB;AACxE,CAAC;AANYF,KAAoD,CAAAQ,WAAA;AAQjE;AACO,IAAMC,QAAQ,GAAArC,OAAA,CAAAqC,QAAA,GAAG,SAAXA,QAAQA,CAAA,EAA2B;EAC9C,IAAML,KAAQ,GAAI,IAAAM,iBAAU,EAACC,8BAAY,CAAC,IAAIZ,aAAmB;EACjE,OAAO;IAAEK,KAAK,EAALA;EAAM,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"Theme.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_themes","_v","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_v3Dark","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","newObj","hasPropertyDescriptor","getOwnPropertyDescriptor","desc","set","THEMES","light","THEME","dark","THEME_DARK","DEFAULT_THEME","Theme","_ref","children","_ref$theme","theme","selectedTheme","createElement","ThemeProvider","displayName","useTheme","useContext","ThemeContext"],"sources":["../../src/Theme.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { ThemeContext, ThemeProvider } from \"styled-components\"\nimport { THEME, Theme as TTheme } from \"./themes\"\n\nexport * from \"@artsy/palette-tokens/dist/themes/v3\"\nimport { THEME_DARK } from \"@artsy/palette-tokens/dist/themes/v3Dark\"\nexport type { TextVariant } from \"@artsy/palette-tokens/dist/typography/v3\"\n\nexport const THEMES = {\n light: THEME,\n dark: THEME_DARK,\n}\n\nconst DEFAULT_THEME = THEME\n\ninterface ThemeProps {\n children?: React.ReactNode\n theme?: \"light\" | \"dark\"\n}\n\n/**\n * A wrapper component for passing down the Artsy theme context\n */\nexport const Theme: React.FC<React.PropsWithChildren<ThemeProps>> = ({\n children,\n theme = \"light\",\n}) => {\n const selectedTheme = THEMES[theme]\n return <ThemeProvider theme={selectedTheme}>{children}</ThemeProvider>\n}\n\n/** Returns the current theme */\nexport const useTheme = <T extends TTheme>()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,QAAQA,CAAA,EAA2B;EAC9C,IAAML,KAAQ,GAAI,IAAAM,iBAAU,EAACC,8BAAY,CAAC,IAAIZ,aAAmB;EACjE,OAAO;IAAEK,KAAK,EAALA;EAAM,CAAC;AAClB,CAAC"}
@@ -1,2 +1,2 @@
1
1
  export * from "./BorderBox";
2
- export { BorderBoxProps } from "./BorderBoxBase";
2
+ export type { BorderBoxProps } from "./BorderBoxBase";
@@ -3,19 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- BorderBoxProps: true
8
- };
9
- Object.defineProperty(exports, "BorderBoxProps", {
10
- enumerable: true,
11
- get: function get() {
12
- return _BorderBoxBase.BorderBoxProps;
13
- }
14
- });
15
6
  var _BorderBox = require("./BorderBox");
16
7
  Object.keys(_BorderBox).forEach(function (key) {
17
8
  if (key === "default" || key === "__esModule") return;
18
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
19
9
  if (key in exports && exports[key] === _BorderBox[key]) return;
20
10
  Object.defineProperty(exports, key, {
21
11
  enumerable: true,
@@ -24,5 +14,4 @@ Object.keys(_BorderBox).forEach(function (key) {
24
14
  }
25
15
  });
26
16
  });
27
- var _BorderBoxBase = require("./BorderBoxBase");
28
17
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_BorderBox","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_BorderBoxBase"],"sources":["../../../../src/elements/BorderBox/index.tsx"],"sourcesContent":["export * from \"./BorderBox\"\nexport { BorderBoxProps } from \"./BorderBoxBase\"\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAb,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,cAAA,GAAAb,OAAA"}
1
+ {"version":3,"file":"index.js","names":["_BorderBox","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/elements/BorderBox/index.tsx"],"sourcesContent":["export * from \"./BorderBox\"\nexport type { BorderBoxProps } from \"./BorderBoxBase\"\n"],"mappings":";;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,UAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,UAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,UAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- export { FilterSelectChangeState, Items as FilterSelectItems, } from "./Components/FilterSelectContext";
1
+ export type { FilterSelectChangeState, Item as FilterSelectItem, Items as FilterSelectItems, } from "./Components/FilterSelectContext";
2
2
  export * from "./FilterSelect";
@@ -3,27 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- FilterSelectChangeState: true,
8
- FilterSelectItems: true
9
- };
10
- Object.defineProperty(exports, "FilterSelectChangeState", {
11
- enumerable: true,
12
- get: function get() {
13
- return _FilterSelectContext.FilterSelectChangeState;
14
- }
15
- });
16
- Object.defineProperty(exports, "FilterSelectItems", {
17
- enumerable: true,
18
- get: function get() {
19
- return _FilterSelectContext.Items;
20
- }
21
- });
22
- var _FilterSelectContext = require("./Components/FilterSelectContext");
23
6
  var _FilterSelect = require("./FilterSelect");
24
7
  Object.keys(_FilterSelect).forEach(function (key) {
25
8
  if (key === "default" || key === "__esModule") return;
26
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
27
9
  if (key in exports && exports[key] === _FilterSelect[key]) return;
28
10
  Object.defineProperty(exports, key, {
29
11
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_FilterSelectContext","require","_FilterSelect","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../../../../src/elements/FilterSelect/index.tsx"],"sourcesContent":["export {\n FilterSelectChangeState,\n Items as FilterSelectItems,\n} from \"./Components/FilterSelectContext\"\nexport * from \"./FilterSelect\"\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AAIA,IAAAC,aAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,aAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,aAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,aAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_FilterSelect","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/elements/FilterSelect/index.tsx"],"sourcesContent":["export type {\n FilterSelectChangeState,\n Item as FilterSelectItem,\n Items as FilterSelectItems,\n} from \"./Components/FilterSelectContext\"\nexport * from \"./FilterSelect\"\n"],"mappings":";;;;;AAKA,IAAAA,aAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,aAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,aAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,aAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
@@ -1,2 +1,2 @@
1
- export { ColumnSpan, ColumnStart } from "./calculateGridColumn";
1
+ export type { ColumnSpan, ColumnStart } from "./calculateGridColumn";
2
2
  export * from "./GridColumns";
@@ -3,27 +3,9 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- ColumnSpan: true,
8
- ColumnStart: true
9
- };
10
- Object.defineProperty(exports, "ColumnSpan", {
11
- enumerable: true,
12
- get: function get() {
13
- return _calculateGridColumn.ColumnSpan;
14
- }
15
- });
16
- Object.defineProperty(exports, "ColumnStart", {
17
- enumerable: true,
18
- get: function get() {
19
- return _calculateGridColumn.ColumnStart;
20
- }
21
- });
22
- var _calculateGridColumn = require("./calculateGridColumn");
23
6
  var _GridColumns = require("./GridColumns");
24
7
  Object.keys(_GridColumns).forEach(function (key) {
25
8
  if (key === "default" || key === "__esModule") return;
26
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
27
9
  if (key in exports && exports[key] === _GridColumns[key]) return;
28
10
  Object.defineProperty(exports, key, {
29
11
  enumerable: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_calculateGridColumn","require","_GridColumns","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get"],"sources":["../../../../src/elements/GridColumns/index.ts"],"sourcesContent":["export { ColumnSpan, ColumnStart } from \"./calculateGridColumn\"\nexport * from \"./GridColumns\"\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,oBAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAAAE,MAAA,CAAAC,IAAA,CAAAF,YAAA,EAAAG,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAJ,YAAA,CAAAI,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAZ,YAAA,CAAAI,GAAA;IAAA;EAAA;AAAA"}
1
+ {"version":3,"file":"index.js","names":["_GridColumns","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get"],"sources":["../../../../src/elements/GridColumns/index.ts"],"sourcesContent":["export type { ColumnSpan, ColumnStart } from \"./calculateGridColumn\"\nexport * from \"./GridColumns\"\n"],"mappings":";;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,YAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAA,GAAA,IAAAC,OAAA,IAAAA,OAAA,CAAAD,GAAA,MAAAL,YAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAK,cAAA,CAAAD,OAAA,EAAAD,GAAA;IAAAG,UAAA;IAAAC,GAAA,WAAAA,IAAA;MAAA,OAAAT,YAAA,CAAAK,GAAA;IAAA;EAAA;AAAA"}
package/dist/esm/Theme.js CHANGED
@@ -3,7 +3,6 @@ import { ThemeContext, ThemeProvider } from "styled-components";
3
3
  import { THEME } from "./themes";
4
4
  export * from "@artsy/palette-tokens/dist/themes/v3";
5
5
  import { THEME_DARK } from "@artsy/palette-tokens/dist/themes/v3Dark";
6
- export { TextVariant } from "@artsy/palette-tokens/dist/typography/v3";
7
6
  export var THEMES = {
8
7
  light: THEME,
9
8
  dark: THEME_DARK
@@ -1 +1 @@
1
- {"version":3,"file":"Theme.js","names":["React","useContext","ThemeContext","ThemeProvider","THEME","THEME_DARK","TextVariant","THEMES","light","dark","DEFAULT_THEME","Theme","_ref","children","_ref$theme","theme","selectedTheme","createElement","displayName","useTheme"],"sources":["../../src/Theme.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { ThemeContext, ThemeProvider } from \"styled-components\"\nimport { THEME, Theme as TTheme } from \"./themes\"\n\nexport * from \"@artsy/palette-tokens/dist/themes/v3\"\nimport { THEME_DARK } from \"@artsy/palette-tokens/dist/themes/v3Dark\"\nexport { TextVariant } from \"@artsy/palette-tokens/dist/typography/v3\"\n\nexport const THEMES = {\n light: THEME,\n dark: THEME_DARK,\n}\n\nconst DEFAULT_THEME = THEME\n\ninterface ThemeProps {\n children?: React.ReactNode\n theme?: \"light\" | \"dark\"\n}\n\n/**\n * A wrapper component for passing down the Artsy theme context\n */\nexport const Theme: React.FC<React.PropsWithChildren<ThemeProps>> = ({\n children,\n theme = \"light\",\n}) => {\n const selectedTheme = THEMES[theme]\n return <ThemeProvider theme={selectedTheme}>{children}</ThemeProvider>\n}\n\n/** Returns the current theme */\nexport const useTheme = <T extends TTheme>() => {\n const theme: T = (useContext(ThemeContext) || DEFAULT_THEME) as T\n return { theme }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,YAAY,EAAEC,aAAa,QAAQ,mBAAmB;AAC/D,SAASC,KAAK;AAEd,cAAc,sCAAsC;AACpD,SAASC,UAAU,QAAQ,0CAA0C;AACrE,SAASC,WAAW,QAAQ,0CAA0C;AAEtE,OAAO,IAAMC,MAAM,GAAG;EACpBC,KAAK,EAAEJ,KAAK;EACZK,IAAI,EAAEJ;AACR,CAAC;AAED,IAAMK,aAAa,GAAGN,KAAK;AAO3B;AACA;AACA;AACA,OAAO,IAAMO,KAAoD,GAAG,SAAvDA,KAAoDA,CAAAC,IAAA,EAG3D;EAAA,IAFJC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CACRG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,OAAO,GAAAA,UAAA;EAEf,IAAME,aAAa,GAAGT,MAAM,CAACQ,KAAK,CAAC;EACnC,oBAAOf,KAAA,CAAAiB,aAAA,CAACd,aAAa;IAACY,KAAK,EAAEC;EAAc,GAAEH,QAAQ,CAAiB;AACxE,CAAC;AANYF,KAAoD,CAAAO,WAAA;AAQjE;AACA,OAAO,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAA2B;EAC9C,IAAMJ,KAAQ,GAAId,UAAU,CAACC,YAAY,CAAC,IAAIQ,aAAmB;EACjE,OAAO;IAAEK,KAAK,EAALA;EAAM,CAAC;AAClB,CAAC"}
1
+ {"version":3,"file":"Theme.js","names":["React","useContext","ThemeContext","ThemeProvider","THEME","THEME_DARK","THEMES","light","dark","DEFAULT_THEME","Theme","_ref","children","_ref$theme","theme","selectedTheme","createElement","displayName","useTheme"],"sources":["../../src/Theme.tsx"],"sourcesContent":["import React, { useContext } from \"react\"\nimport { ThemeContext, ThemeProvider } from \"styled-components\"\nimport { THEME, Theme as TTheme } from \"./themes\"\n\nexport * from \"@artsy/palette-tokens/dist/themes/v3\"\nimport { THEME_DARK } from \"@artsy/palette-tokens/dist/themes/v3Dark\"\nexport type { TextVariant } from \"@artsy/palette-tokens/dist/typography/v3\"\n\nexport const THEMES = {\n light: THEME,\n dark: THEME_DARK,\n}\n\nconst DEFAULT_THEME = THEME\n\ninterface ThemeProps {\n children?: React.ReactNode\n theme?: \"light\" | \"dark\"\n}\n\n/**\n * A wrapper component for passing down the Artsy theme context\n */\nexport const Theme: React.FC<React.PropsWithChildren<ThemeProps>> = ({\n children,\n theme = \"light\",\n}) => {\n const selectedTheme = THEMES[theme]\n return <ThemeProvider theme={selectedTheme}>{children}</ThemeProvider>\n}\n\n/** Returns the current theme */\nexport const useTheme = <T extends TTheme>() => {\n const theme: T = (useContext(ThemeContext) || DEFAULT_THEME) as T\n return { theme }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,IAAIC,UAAU,QAAQ,OAAO;AACzC,SAASC,YAAY,EAAEC,aAAa,QAAQ,mBAAmB;AAC/D,SAASC,KAAK;AAEd,cAAc,sCAAsC;AACpD,SAASC,UAAU,QAAQ,0CAA0C;AAGrE,OAAO,IAAMC,MAAM,GAAG;EACpBC,KAAK,EAAEH,KAAK;EACZI,IAAI,EAAEH;AACR,CAAC;AAED,IAAMI,aAAa,GAAGL,KAAK;AAO3B;AACA;AACA;AACA,OAAO,IAAMM,KAAoD,GAAG,SAAvDA,KAAoDA,CAAAC,IAAA,EAG3D;EAAA,IAFJC,QAAQ,GAAAD,IAAA,CAARC,QAAQ;IAAAC,UAAA,GAAAF,IAAA,CACRG,KAAK;IAALA,KAAK,GAAAD,UAAA,cAAG,OAAO,GAAAA,UAAA;EAEf,IAAME,aAAa,GAAGT,MAAM,CAACQ,KAAK,CAAC;EACnC,oBAAOd,KAAA,CAAAgB,aAAA,CAACb,aAAa;IAACW,KAAK,EAAEC;EAAc,GAAEH,QAAQ,CAAiB;AACxE,CAAC;AANYF,KAAoD,CAAAO,WAAA;AAQjE;AACA,OAAO,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAA,EAA2B;EAC9C,IAAMJ,KAAQ,GAAIb,UAAU,CAACC,YAAY,CAAC,IAAIO,aAAmB;EACjE,OAAO;IAAEK,KAAK,EAALA;EAAM,CAAC;AAClB,CAAC"}
@@ -1,3 +1,3 @@
1
1
  export * from "./BorderBox";
2
- export { BorderBoxProps } from "./BorderBoxBase";
2
+ export {};
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["BorderBoxProps"],"sources":["../../../../src/elements/BorderBox/index.tsx"],"sourcesContent":["export * from \"./BorderBox\"\nexport { BorderBoxProps } from \"./BorderBoxBase\"\n"],"mappings":"AAAA;AACA,SAASA,cAAc"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/elements/BorderBox/index.tsx"],"sourcesContent":["export * from \"./BorderBox\"\nexport type { BorderBoxProps } from \"./BorderBoxBase\"\n"],"mappings":"AAAA;AAA2B"}
@@ -1,3 +1,3 @@
1
- export { FilterSelectChangeState, Items as FilterSelectItems } from "./Components/FilterSelectContext";
2
1
  export * from "./FilterSelect";
2
+ export {};
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["FilterSelectChangeState","Items","FilterSelectItems"],"sources":["../../../../src/elements/FilterSelect/index.tsx"],"sourcesContent":["export {\n FilterSelectChangeState,\n Items as FilterSelectItems,\n} from \"./Components/FilterSelectContext\"\nexport * from \"./FilterSelect\"\n"],"mappings":"AAAA,SACEA,uBAAuB,EACvBC,KAAK,IAAIC,iBAAiB;AAE5B"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/elements/FilterSelect/index.tsx"],"sourcesContent":["export type {\n FilterSelectChangeState,\n Item as FilterSelectItem,\n Items as FilterSelectItems,\n} from \"./Components/FilterSelectContext\"\nexport * from \"./FilterSelect\"\n"],"mappings":"AAKA;AAA8B"}
@@ -1,3 +1,3 @@
1
- export { ColumnSpan, ColumnStart } from "./calculateGridColumn";
2
1
  export * from "./GridColumns";
2
+ export {};
3
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["ColumnSpan","ColumnStart"],"sources":["../../../../src/elements/GridColumns/index.ts"],"sourcesContent":["export { ColumnSpan, ColumnStart } from \"./calculateGridColumn\"\nexport * from \"./GridColumns\"\n"],"mappings":"AAAA,SAASA,UAAU,EAAEC,WAAW;AAChC"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../../../../src/elements/GridColumns/index.ts"],"sourcesContent":["export type { ColumnSpan, ColumnStart } from \"./calculateGridColumn\"\nexport * from \"./GridColumns\"\n"],"mappings":"AACA;AAA6B"}