@perses-dev/components 0.17.0 → 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.
Files changed (143) hide show
  1. package/dist/InfoTooltip/InfoTooltip.js +2 -2
  2. package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
  3. package/dist/JSONEditor.d.ts +1 -1
  4. package/dist/JSONEditor.d.ts.map +1 -1
  5. package/dist/JSONEditor.js +4 -1
  6. package/dist/JSONEditor.js.map +1 -1
  7. package/dist/Legend/CompactLegend.js +9 -2
  8. package/dist/Legend/CompactLegend.js.map +1 -1
  9. package/dist/Legend/ListLegendItem.d.ts.map +1 -1
  10. package/dist/Legend/ListLegendItem.js +0 -1
  11. package/dist/Legend/ListLegendItem.js.map +1 -1
  12. package/dist/LineChart/LineChart.d.ts.map +1 -1
  13. package/dist/LineChart/LineChart.js +3 -4
  14. package/dist/LineChart/LineChart.js.map +1 -1
  15. package/dist/cjs/InfoTooltip/InfoTooltip.js +2 -2
  16. package/dist/cjs/JSONEditor.js +4 -1
  17. package/dist/cjs/Legend/CompactLegend.js +9 -2
  18. package/dist/cjs/Legend/ListLegendItem.js +0 -1
  19. package/dist/cjs/LineChart/LineChart.js +3 -4
  20. package/dist/cjs/index.js +1 -0
  21. package/dist/cjs/model/graph.js +3 -3
  22. package/dist/cjs/theme/index.js +28 -0
  23. package/dist/cjs/theme/palette/background.js +40 -0
  24. package/dist/cjs/theme/palette/colors/blue.js +35 -0
  25. package/dist/cjs/theme/palette/colors/common.js +28 -0
  26. package/dist/cjs/theme/palette/colors/green.js +35 -0
  27. package/dist/cjs/theme/palette/colors/grey.js +35 -0
  28. package/dist/cjs/theme/palette/colors/index.js +35 -0
  29. package/dist/cjs/theme/palette/colors/orange.js +35 -0
  30. package/dist/cjs/theme/palette/colors/purple.js +35 -0
  31. package/dist/cjs/theme/palette/colors/red.js +35 -0
  32. package/dist/cjs/theme/palette/colors/types.js +16 -0
  33. package/dist/cjs/theme/palette/error.js +32 -0
  34. package/dist/cjs/theme/palette/grey.js +44 -0
  35. package/dist/cjs/theme/palette/index.js +28 -0
  36. package/dist/cjs/theme/palette/palette-options.js +59 -0
  37. package/dist/cjs/theme/palette/primary.js +32 -0
  38. package/dist/cjs/theme/palette/secondary.js +32 -0
  39. package/dist/cjs/theme/palette/success.js +32 -0
  40. package/dist/cjs/theme/palette/text.js +42 -0
  41. package/dist/cjs/theme/palette/warning.js +32 -0
  42. package/dist/cjs/theme/theme.js +45 -0
  43. package/dist/cjs/theme/types/ThemeExtension.d.js +17 -0
  44. package/dist/cjs/theme/typography.js +96 -0
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/index.js +1 -0
  48. package/dist/index.js.map +1 -1
  49. package/dist/model/graph.d.ts +1 -1
  50. package/dist/model/graph.d.ts.map +1 -1
  51. package/dist/model/graph.js +2 -1
  52. package/dist/model/graph.js.map +1 -1
  53. package/dist/theme/index.d.ts +37 -0
  54. package/dist/theme/index.d.ts.map +1 -0
  55. package/dist/theme/index.js +15 -0
  56. package/dist/theme/index.js.map +1 -0
  57. package/dist/theme/palette/background.d.ts +3 -0
  58. package/dist/theme/palette/background.d.ts.map +1 -0
  59. package/dist/theme/palette/background.js +34 -0
  60. package/dist/theme/palette/background.js.map +1 -0
  61. package/dist/theme/palette/colors/blue.d.ts +3 -0
  62. package/dist/theme/palette/colors/blue.d.ts.map +1 -0
  63. package/dist/theme/palette/colors/blue.js +29 -0
  64. package/dist/theme/palette/colors/blue.js.map +1 -0
  65. package/dist/theme/palette/colors/common.d.ts +3 -0
  66. package/dist/theme/palette/colors/common.d.ts.map +1 -0
  67. package/dist/theme/palette/colors/common.js +16 -0
  68. package/dist/theme/palette/colors/common.js.map +1 -0
  69. package/dist/theme/palette/colors/green.d.ts +3 -0
  70. package/dist/theme/palette/colors/green.d.ts.map +1 -0
  71. package/dist/theme/palette/colors/green.js +29 -0
  72. package/dist/theme/palette/colors/green.js.map +1 -0
  73. package/dist/theme/palette/colors/grey.d.ts +3 -0
  74. package/dist/theme/palette/colors/grey.d.ts.map +1 -0
  75. package/dist/theme/palette/colors/grey.js +29 -0
  76. package/dist/theme/palette/colors/grey.js.map +1 -0
  77. package/dist/theme/palette/colors/index.d.ts +9 -0
  78. package/dist/theme/palette/colors/index.d.ts.map +1 -0
  79. package/dist/theme/palette/colors/index.js +22 -0
  80. package/dist/theme/palette/colors/index.js.map +1 -0
  81. package/dist/theme/palette/colors/orange.d.ts +3 -0
  82. package/dist/theme/palette/colors/orange.d.ts.map +1 -0
  83. package/dist/theme/palette/colors/orange.js +29 -0
  84. package/dist/theme/palette/colors/orange.js.map +1 -0
  85. package/dist/theme/palette/colors/purple.d.ts +3 -0
  86. package/dist/theme/palette/colors/purple.d.ts.map +1 -0
  87. package/dist/theme/palette/colors/purple.js +29 -0
  88. package/dist/theme/palette/colors/purple.js.map +1 -0
  89. package/dist/theme/palette/colors/red.d.ts +3 -0
  90. package/dist/theme/palette/colors/red.d.ts.map +1 -0
  91. package/dist/theme/palette/colors/red.js +29 -0
  92. package/dist/theme/palette/colors/red.js.map +1 -0
  93. package/dist/theme/palette/colors/types.d.ts +17 -0
  94. package/dist/theme/palette/colors/types.d.ts.map +1 -0
  95. package/dist/theme/palette/colors/types.js +15 -0
  96. package/dist/theme/palette/colors/types.js.map +1 -0
  97. package/dist/theme/palette/error.d.ts +3 -0
  98. package/dist/theme/palette/error.d.ts.map +1 -0
  99. package/dist/theme/palette/error.js +26 -0
  100. package/dist/theme/palette/error.js.map +1 -0
  101. package/dist/theme/palette/grey.d.ts +3 -0
  102. package/dist/theme/palette/grey.d.ts.map +1 -0
  103. package/dist/theme/palette/grey.js +38 -0
  104. package/dist/theme/palette/grey.js.map +1 -0
  105. package/dist/theme/palette/index.d.ts +3 -0
  106. package/dist/theme/palette/index.d.ts.map +1 -0
  107. package/dist/theme/palette/index.js +15 -0
  108. package/dist/theme/palette/index.js.map +1 -0
  109. package/dist/theme/palette/palette-options.d.ts +6 -0
  110. package/dist/theme/palette/palette-options.d.ts.map +1 -0
  111. package/dist/theme/palette/palette-options.js +55 -0
  112. package/dist/theme/palette/palette-options.js.map +1 -0
  113. package/dist/theme/palette/primary.d.ts +3 -0
  114. package/dist/theme/palette/primary.d.ts.map +1 -0
  115. package/dist/theme/palette/primary.js +26 -0
  116. package/dist/theme/palette/primary.js.map +1 -0
  117. package/dist/theme/palette/secondary.d.ts +3 -0
  118. package/dist/theme/palette/secondary.d.ts.map +1 -0
  119. package/dist/theme/palette/secondary.js +26 -0
  120. package/dist/theme/palette/secondary.js.map +1 -0
  121. package/dist/theme/palette/success.d.ts +3 -0
  122. package/dist/theme/palette/success.d.ts.map +1 -0
  123. package/dist/theme/palette/success.js +26 -0
  124. package/dist/theme/palette/success.js.map +1 -0
  125. package/dist/theme/palette/text.d.ts +3 -0
  126. package/dist/theme/palette/text.d.ts.map +1 -0
  127. package/dist/theme/palette/text.js +36 -0
  128. package/dist/theme/palette/text.js.map +1 -0
  129. package/dist/theme/palette/warning.d.ts +3 -0
  130. package/dist/theme/palette/warning.d.ts.map +1 -0
  131. package/dist/theme/palette/warning.js +26 -0
  132. package/dist/theme/palette/warning.js.map +1 -0
  133. package/dist/theme/theme.d.ts +13 -0
  134. package/dist/theme/theme.d.ts.map +1 -0
  135. package/dist/theme/theme.js +48 -0
  136. package/dist/theme/theme.js.map +1 -0
  137. package/dist/theme/types/ThemeExtension.d.js +16 -0
  138. package/dist/theme/types/ThemeExtension.d.js.map +1 -0
  139. package/dist/theme/typography.d.ts +10 -0
  140. package/dist/theme/typography.d.ts.map +1 -0
  141. package/dist/theme/typography.js +92 -0
  142. package/dist/theme/typography.js.map +1 -0
  143. package/package.json +4 -3
@@ -0,0 +1,26 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { red } from './colors';
14
+ export const error = (mode)=>{
15
+ return mode === 'light' ? {
16
+ main: red[500],
17
+ dark: red[600],
18
+ light: red[50]
19
+ } : {
20
+ main: red[400],
21
+ dark: red[800],
22
+ light: red[300]
23
+ };
24
+ };
25
+
26
+ //# sourceMappingURL=error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/error.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteMode, SimplePaletteColorOptions } from '@mui/material';\nimport { red } from './colors';\n\nexport const error = (mode: PaletteMode): SimplePaletteColorOptions => {\n return mode === 'light'\n ? {\n main: red[500],\n dark: red[600],\n light: red[50],\n }\n : {\n main: red[400],\n dark: red[800],\n light: red[300],\n };\n};\n"],"names":["red","error","mode","main","dark","light"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,GAAG,QAAQ,UAAU,CAAC;AAE/B,OAAO,MAAMC,KAAK,GAAG,CAACC,IAAiB,GAAgC;IACrE,OAAOA,IAAI,KAAK,OAAO,GACnB;QACEC,IAAI,EAAEH,GAAG,CAAC,GAAG,CAAC;QACdI,IAAI,EAAEJ,GAAG,CAAC,GAAG,CAAC;QACdK,KAAK,EAAEL,GAAG,CAAC,EAAE,CAAC;KACf,GACD;QACEG,IAAI,EAAEH,GAAG,CAAC,GAAG,CAAC;QACdI,IAAI,EAAEJ,GAAG,CAAC,GAAG,CAAC;QACdK,KAAK,EAAEL,GAAG,CAAC,GAAG,CAAC;KAChB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteOptions, PaletteMode } from '@mui/material';
2
+ export declare const greyOption: (mode: PaletteMode) => PaletteOptions['grey'];
3
+ //# sourceMappingURL=grey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grey.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/grey.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5D,eAAO,MAAM,UAAU,SAAU,WAAW,KAAG,cAAc,CAAC,MAAM,CAyBnE,CAAC"}
@@ -0,0 +1,38 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { grey } from './colors/grey';
14
+ export const greyOption = (mode)=>{
15
+ return mode === 'light' ? {
16
+ 100: grey[100],
17
+ 200: grey[200],
18
+ 300: grey[300],
19
+ 400: grey[400],
20
+ 500: grey[500],
21
+ 600: grey[600],
22
+ 700: grey[700],
23
+ 800: grey[800],
24
+ 900: grey[900]
25
+ } : {
26
+ 100: grey[900],
27
+ 200: grey[800],
28
+ 300: grey[700],
29
+ 400: grey[600],
30
+ 500: grey[500],
31
+ 600: grey[400],
32
+ 700: grey[300],
33
+ 800: grey[200],
34
+ 900: grey[100]
35
+ };
36
+ };
37
+
38
+ //# sourceMappingURL=grey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/grey.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteOptions, PaletteMode } from '@mui/material';\nimport { grey } from './colors/grey';\n\nexport const greyOption = (mode: PaletteMode): PaletteOptions['grey'] => {\n return mode === 'light'\n ? {\n 100: grey[100],\n 200: grey[200],\n 300: grey[300],\n 400: grey[400],\n 500: grey[500],\n 600: grey[600],\n 700: grey[700],\n 800: grey[800],\n 900: grey[900],\n }\n : // Reverse greys from darkest to lightest for Dark mode\n {\n 100: grey[900],\n 200: grey[800],\n 300: grey[700],\n 400: grey[600],\n 500: grey[500],\n 600: grey[400],\n 700: grey[300],\n 800: grey[200],\n 900: grey[100],\n };\n};\n"],"names":["grey","greyOption","mode"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,IAAI,QAAQ,eAAe,CAAC;AAErC,OAAO,MAAMC,UAAU,GAAG,CAACC,IAAiB,GAA6B;IACvE,OAAOA,IAAI,KAAK,OAAO,GACnB;AACE,QAAA,GAAG,EAAEF,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;KACf,GAED;AACE,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;AACd,QAAA,GAAG,EAAEA,IAAI,CAAC,GAAG,CAAC;KACf,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export * from './palette-options';
2
+ export type { PersesColor, HexColor } from './colors';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/index.ts"],"names":[],"mappings":"AAaA,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,15 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ export * from './palette-options';
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/index.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nexport * from './palette-options';\nexport type { PersesColor, HexColor } from './colors';\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,cAAc,mBAAmB,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { PaletteMode, PaletteOptions } from '@mui/material';
2
+ /**
3
+ * Returns the MUI PaletteOptions for the given mode.
4
+ */
5
+ export declare function getPaletteOptions(mode: PaletteMode): PaletteOptions;
6
+ //# sourceMappingURL=palette-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"palette-options.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/palette-options.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAY5D;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,WAAW,GAAG,cAAc,CA6BnE"}
@@ -0,0 +1,55 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { text } from './text';
14
+ import { background } from './background';
15
+ import { greyOption } from './grey';
16
+ import { black, white } from './colors/common';
17
+ import { primary } from './primary';
18
+ import { secondary } from './secondary';
19
+ import { blue, green, grey, orange, purple, red } from './colors';
20
+ import { error } from './error';
21
+ import { success } from './success';
22
+ import { warning } from './warning';
23
+ /**
24
+ * Returns the MUI PaletteOptions for the given mode.
25
+ */ export function getPaletteOptions(mode) {
26
+ // Palette options should be split out into their own files with functions
27
+ // for creating the option values based on light/dark mode
28
+ return {
29
+ mode,
30
+ primary: primary(mode),
31
+ secondary: secondary(mode),
32
+ grey: greyOption(mode),
33
+ background: background(mode),
34
+ text: text(mode),
35
+ error: error(mode),
36
+ warning: warning(mode),
37
+ info: primary(mode),
38
+ success: success(mode),
39
+ common: {
40
+ white,
41
+ black
42
+ },
43
+ // custom colors
44
+ designSystem: {
45
+ blue,
46
+ green,
47
+ grey,
48
+ orange,
49
+ purple,
50
+ red
51
+ }
52
+ };
53
+ }
54
+
55
+ //# sourceMappingURL=palette-options.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/palette-options.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteMode, PaletteOptions } from '@mui/material';\nimport { text } from './text';\nimport { background } from './background';\nimport { greyOption } from './grey';\nimport { black, white } from './colors/common';\nimport { primary } from './primary';\nimport { secondary } from './secondary';\nimport { blue, green, grey, orange, purple, red } from './colors';\nimport { error } from './error';\nimport { success } from './success';\nimport { warning } from './warning';\n\n/**\n * Returns the MUI PaletteOptions for the given mode.\n */\nexport function getPaletteOptions(mode: PaletteMode): PaletteOptions {\n // Palette options should be split out into their own files with functions\n // for creating the option values based on light/dark mode\n return {\n mode,\n primary: primary(mode),\n secondary: secondary(mode),\n grey: greyOption(mode),\n background: background(mode),\n text: text(mode),\n error: error(mode),\n warning: warning(mode),\n info: primary(mode),\n success: success(mode),\n common: {\n white,\n black,\n },\n\n // custom colors\n designSystem: {\n blue,\n green,\n grey,\n orange,\n purple,\n red,\n },\n };\n}\n"],"names":["text","background","greyOption","black","white","primary","secondary","blue","green","grey","orange","purple","red","error","success","warning","getPaletteOptions","mode","info","common","designSystem"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,IAAI,QAAQ,QAAQ,CAAC;AAC9B,SAASC,UAAU,QAAQ,cAAc,CAAC;AAC1C,SAASC,UAAU,QAAQ,QAAQ,CAAC;AACpC,SAASC,KAAK,EAAEC,KAAK,QAAQ,iBAAiB,CAAC;AAC/C,SAASC,OAAO,QAAQ,WAAW,CAAC;AACpC,SAASC,SAAS,QAAQ,aAAa,CAAC;AACxC,SAASC,IAAI,EAAEC,KAAK,EAAEC,IAAI,EAAEC,MAAM,EAAEC,MAAM,EAAEC,GAAG,QAAQ,UAAU,CAAC;AAClE,SAASC,KAAK,QAAQ,SAAS,CAAC;AAChC,SAASC,OAAO,QAAQ,WAAW,CAAC;AACpC,SAASC,OAAO,QAAQ,WAAW,CAAC;AAEpC;;CAEC,GACD,OAAO,SAASC,iBAAiB,CAACC,IAAiB,EAAkB;IACnE,0EAA0E;IAC1E,0DAA0D;IAC1D,OAAO;QACLA,IAAI;QACJZ,OAAO,EAAEA,OAAO,CAACY,IAAI,CAAC;QACtBX,SAAS,EAAEA,SAAS,CAACW,IAAI,CAAC;QAC1BR,IAAI,EAAEP,UAAU,CAACe,IAAI,CAAC;QACtBhB,UAAU,EAAEA,UAAU,CAACgB,IAAI,CAAC;QAC5BjB,IAAI,EAAEA,IAAI,CAACiB,IAAI,CAAC;QAChBJ,KAAK,EAAEA,KAAK,CAACI,IAAI,CAAC;QAClBF,OAAO,EAAEA,OAAO,CAACE,IAAI,CAAC;QACtBC,IAAI,EAAEb,OAAO,CAACY,IAAI,CAAC;QACnBH,OAAO,EAAEA,OAAO,CAACG,IAAI,CAAC;QACtBE,MAAM,EAAE;YACNf,KAAK;YACLD,KAAK;SACN;QAED,gBAAgB;QAChBiB,YAAY,EAAE;YACZb,IAAI;YACJC,KAAK;YACLC,IAAI;YACJC,MAAM;YACNC,MAAM;YACNC,GAAG;SACJ;KACF,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteMode, SimplePaletteColorOptions } from '@mui/material';
2
+ export declare const primary: (mode: PaletteMode) => SimplePaletteColorOptions;
3
+ //# sourceMappingURL=primary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"primary.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/primary.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGvE,eAAO,MAAM,OAAO,SAAU,WAAW,KAAG,yBAY3C,CAAC"}
@@ -0,0 +1,26 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { blue } from './colors';
14
+ export const primary = (mode)=>{
15
+ return mode === 'light' ? {
16
+ main: blue[500],
17
+ dark: blue[600],
18
+ light: blue[50]
19
+ } : {
20
+ main: blue[400],
21
+ dark: blue[800],
22
+ light: blue[200]
23
+ };
24
+ };
25
+
26
+ //# sourceMappingURL=primary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/primary.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteMode, SimplePaletteColorOptions } from '@mui/material';\nimport { blue } from './colors';\n\nexport const primary = (mode: PaletteMode): SimplePaletteColorOptions => {\n return mode === 'light'\n ? {\n main: blue[500],\n dark: blue[600],\n light: blue[50],\n }\n : {\n main: blue[400],\n dark: blue[800],\n light: blue[200],\n };\n};\n"],"names":["blue","primary","mode","main","dark","light"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,IAAI,QAAQ,UAAU,CAAC;AAEhC,OAAO,MAAMC,OAAO,GAAG,CAACC,IAAiB,GAAgC;IACvE,OAAOA,IAAI,KAAK,OAAO,GACnB;QACEC,IAAI,EAAEH,IAAI,CAAC,GAAG,CAAC;QACfI,IAAI,EAAEJ,IAAI,CAAC,GAAG,CAAC;QACfK,KAAK,EAAEL,IAAI,CAAC,EAAE,CAAC;KAChB,GACD;QACEG,IAAI,EAAEH,IAAI,CAAC,GAAG,CAAC;QACfI,IAAI,EAAEJ,IAAI,CAAC,GAAG,CAAC;QACfK,KAAK,EAAEL,IAAI,CAAC,GAAG,CAAC;KACjB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { SimplePaletteColorOptions, PaletteMode } from '@mui/material';
2
+ export declare const secondary: (mode: PaletteMode) => SimplePaletteColorOptions;
3
+ //# sourceMappingURL=secondary.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"secondary.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/secondary.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAGvE,eAAO,MAAM,SAAS,SAAU,WAAW,KAAG,yBAY7C,CAAC"}
@@ -0,0 +1,26 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { grey, white } from './colors';
14
+ export const secondary = (mode)=>{
15
+ return mode === 'light' ? {
16
+ main: grey[600],
17
+ dark: grey[900],
18
+ light: grey[100]
19
+ } : {
20
+ main: white,
21
+ dark: white,
22
+ light: white
23
+ };
24
+ };
25
+
26
+ //# sourceMappingURL=secondary.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/secondary.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { SimplePaletteColorOptions, PaletteMode } from '@mui/material';\nimport { grey, white } from './colors';\n\nexport const secondary = (mode: PaletteMode): SimplePaletteColorOptions => {\n return mode === 'light'\n ? {\n main: grey[600],\n dark: grey[900],\n light: grey[100],\n }\n : {\n main: white,\n dark: white,\n light: white,\n };\n};\n"],"names":["grey","white","secondary","mode","main","dark","light"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,IAAI,EAAEC,KAAK,QAAQ,UAAU,CAAC;AAEvC,OAAO,MAAMC,SAAS,GAAG,CAACC,IAAiB,GAAgC;IACzE,OAAOA,IAAI,KAAK,OAAO,GACnB;QACEC,IAAI,EAAEJ,IAAI,CAAC,GAAG,CAAC;QACfK,IAAI,EAAEL,IAAI,CAAC,GAAG,CAAC;QACfM,KAAK,EAAEN,IAAI,CAAC,GAAG,CAAC;KACjB,GACD;QACEI,IAAI,EAAEH,KAAK;QACXI,IAAI,EAAEJ,KAAK;QACXK,KAAK,EAAEL,KAAK;KACb,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteMode, SimplePaletteColorOptions } from '@mui/material';
2
+ export declare const success: (mode: PaletteMode) => SimplePaletteColorOptions;
3
+ //# sourceMappingURL=success.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"success.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/success.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGvE,eAAO,MAAM,OAAO,SAAU,WAAW,KAAG,yBAY3C,CAAC"}
@@ -0,0 +1,26 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { green } from './colors';
14
+ export const success = (mode)=>{
15
+ return mode === 'light' ? {
16
+ main: green[500],
17
+ dark: green[700],
18
+ light: green[50]
19
+ } : {
20
+ main: green[400],
21
+ dark: green[800],
22
+ light: green[300]
23
+ };
24
+ };
25
+
26
+ //# sourceMappingURL=success.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/success.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteMode, SimplePaletteColorOptions } from '@mui/material';\nimport { green } from './colors';\n\nexport const success = (mode: PaletteMode): SimplePaletteColorOptions => {\n return mode === 'light'\n ? {\n main: green[500],\n dark: green[700],\n light: green[50],\n }\n : {\n main: green[400],\n dark: green[800],\n light: green[300],\n };\n};\n"],"names":["green","success","mode","main","dark","light"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,KAAK,QAAQ,UAAU,CAAC;AAEjC,OAAO,MAAMC,OAAO,GAAG,CAACC,IAAiB,GAAgC;IACvE,OAAOA,IAAI,KAAK,OAAO,GACnB;QACEC,IAAI,EAAEH,KAAK,CAAC,GAAG,CAAC;QAChBI,IAAI,EAAEJ,KAAK,CAAC,GAAG,CAAC;QAChBK,KAAK,EAAEL,KAAK,CAAC,EAAE,CAAC;KACjB,GACD;QACEG,IAAI,EAAEH,KAAK,CAAC,GAAG,CAAC;QAChBI,IAAI,EAAEJ,KAAK,CAAC,GAAG,CAAC;QAChBK,KAAK,EAAEL,KAAK,CAAC,GAAG,CAAC;KAClB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteOptions, PaletteMode } from '@mui/material';
2
+ export declare const text: (mode: PaletteMode) => PaletteOptions['text'];
3
+ //# sourceMappingURL=text.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/text.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5D,eAAO,MAAM,IAAI,SAAU,WAAW,KAAG,cAAc,CAAC,MAAM,CAsB7D,CAAC"}
@@ -0,0 +1,36 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { grey, white, blue } from './colors';
14
+ export const text = (mode)=>{
15
+ const navigation = grey[800];
16
+ const accent = grey[300];
17
+ return mode === 'light' ? {
18
+ navigation,
19
+ accent,
20
+ primary: grey[800],
21
+ secondary: grey[700],
22
+ disabled: grey[300],
23
+ link: blue[500],
24
+ linkHover: blue[600]
25
+ } : {
26
+ navigation,
27
+ accent,
28
+ primary: white,
29
+ secondary: grey[50],
30
+ disabled: grey[600],
31
+ link: blue[400],
32
+ linkHover: blue[500]
33
+ };
34
+ };
35
+
36
+ //# sourceMappingURL=text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/text.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteOptions, PaletteMode } from '@mui/material';\nimport { grey, white, blue } from './colors';\n\nexport const text = (mode: PaletteMode): PaletteOptions['text'] => {\n const navigation = grey[800];\n const accent = grey[300];\n return mode === 'light'\n ? {\n navigation,\n accent,\n primary: grey[800],\n secondary: grey[700],\n disabled: grey[300],\n link: blue[500],\n linkHover: blue[600],\n }\n : {\n navigation,\n accent,\n primary: white,\n secondary: grey[50],\n disabled: grey[600],\n link: blue[400],\n linkHover: blue[500],\n };\n};\n"],"names":["grey","white","blue","text","mode","navigation","accent","primary","secondary","disabled","link","linkHover"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,IAAI,EAAEC,KAAK,EAAEC,IAAI,QAAQ,UAAU,CAAC;AAE7C,OAAO,MAAMC,IAAI,GAAG,CAACC,IAAiB,GAA6B;IACjE,MAAMC,UAAU,GAAGL,IAAI,CAAC,GAAG,CAAC,AAAC;IAC7B,MAAMM,MAAM,GAAGN,IAAI,CAAC,GAAG,CAAC,AAAC;IACzB,OAAOI,IAAI,KAAK,OAAO,GACnB;QACEC,UAAU;QACVC,MAAM;QACNC,OAAO,EAAEP,IAAI,CAAC,GAAG,CAAC;QAClBQ,SAAS,EAAER,IAAI,CAAC,GAAG,CAAC;QACpBS,QAAQ,EAAET,IAAI,CAAC,GAAG,CAAC;QACnBU,IAAI,EAAER,IAAI,CAAC,GAAG,CAAC;QACfS,SAAS,EAAET,IAAI,CAAC,GAAG,CAAC;KACrB,GACD;QACEG,UAAU;QACVC,MAAM;QACNC,OAAO,EAAEN,KAAK;QACdO,SAAS,EAAER,IAAI,CAAC,EAAE,CAAC;QACnBS,QAAQ,EAAET,IAAI,CAAC,GAAG,CAAC;QACnBU,IAAI,EAAER,IAAI,CAAC,GAAG,CAAC;QACfS,SAAS,EAAET,IAAI,CAAC,GAAG,CAAC;KACrB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteMode, SimplePaletteColorOptions } from '@mui/material';
2
+ export declare const warning: (mode: PaletteMode) => SimplePaletteColorOptions;
3
+ //# sourceMappingURL=warning.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"warning.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/warning.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGvE,eAAO,MAAM,OAAO,SAAU,WAAW,KAAG,yBAY3C,CAAC"}
@@ -0,0 +1,26 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { orange } from './colors';
14
+ export const warning = (mode)=>{
15
+ return mode === 'light' ? {
16
+ main: orange[500],
17
+ dark: orange[700],
18
+ light: orange[50]
19
+ } : {
20
+ main: orange[400],
21
+ dark: orange[800],
22
+ light: orange[300]
23
+ };
24
+ };
25
+
26
+ //# sourceMappingURL=warning.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/warning.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { PaletteMode, SimplePaletteColorOptions } from '@mui/material';\nimport { orange } from './colors';\n\nexport const warning = (mode: PaletteMode): SimplePaletteColorOptions => {\n return mode === 'light'\n ? {\n main: orange[500],\n dark: orange[700],\n light: orange[50],\n }\n : {\n main: orange[400],\n dark: orange[800],\n light: orange[300],\n };\n};\n"],"names":["orange","warning","mode","main","dark","light"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAGjC,SAASA,MAAM,QAAQ,UAAU,CAAC;AAElC,OAAO,MAAMC,OAAO,GAAG,CAACC,IAAiB,GAAgC;IACvE,OAAOA,IAAI,KAAK,OAAO,GACnB;QACEC,IAAI,EAAEH,MAAM,CAAC,GAAG,CAAC;QACjBI,IAAI,EAAEJ,MAAM,CAAC,GAAG,CAAC;QACjBK,KAAK,EAAEL,MAAM,CAAC,EAAE,CAAC;KAClB,GACD;QACEG,IAAI,EAAEH,MAAM,CAAC,GAAG,CAAC;QACjBI,IAAI,EAAEJ,MAAM,CAAC,GAAG,CAAC;QACjBK,KAAK,EAAEL,MAAM,CAAC,GAAG,CAAC;KACnB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import { PaletteMode } from '@mui/material';
2
+ /**
3
+ * Gets theme used by all components for the provided mode. For more details, see:
4
+ * - Base colors, typography, sizing - go/chrono-ui-theme
5
+ * - Material UI defaults: https://material-ui.com/customization/default-theme/
6
+ * - Material UI variables: https://material-ui.com/customization/theming/#theme-configuration-variables
7
+ * - Material UI global overrides and default props: https://material-ui.com/customization/globals/#css
8
+ *
9
+ * Need to reinstantiate the theme everytime to support switching between light and dark themes
10
+ * https://github.com/mui-org/material-ui/issues/18831
11
+ */
12
+ export declare function getTheme(mode: PaletteMode): import("@mui/material").Theme;
13
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/theme/theme.ts"],"names":[],"mappings":"AAaA,OAAO,EAAe,WAAW,EAAgB,MAAM,eAAe,CAAC;AAIvE;;;;;;;;;GASG;AACH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,WAAW,iCAQzC"}
@@ -0,0 +1,48 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ import { createTheme } from '@mui/material';
14
+ import { getPaletteOptions } from './palette/palette-options';
15
+ import { typography } from './typography';
16
+ /**
17
+ * Gets theme used by all components for the provided mode. For more details, see:
18
+ * - Base colors, typography, sizing - go/chrono-ui-theme
19
+ * - Material UI defaults: https://material-ui.com/customization/default-theme/
20
+ * - Material UI variables: https://material-ui.com/customization/theming/#theme-configuration-variables
21
+ * - Material UI global overrides and default props: https://material-ui.com/customization/globals/#css
22
+ *
23
+ * Need to reinstantiate the theme everytime to support switching between light and dark themes
24
+ * https://github.com/mui-org/material-ui/issues/18831
25
+ */ export function getTheme(mode) {
26
+ const theme = createTheme({
27
+ palette: getPaletteOptions(mode),
28
+ typography,
29
+ mixins: {},
30
+ components
31
+ });
32
+ return theme;
33
+ }
34
+ // Overrides for component default prop values and styles go here
35
+ const components = {
36
+ MuiFormControl: {
37
+ defaultProps: {
38
+ size: 'small'
39
+ }
40
+ },
41
+ MuiTextField: {
42
+ defaultProps: {
43
+ size: 'small'
44
+ }
45
+ }
46
+ };
47
+
48
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/theme/theme.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\nimport { createTheme, PaletteMode, ThemeOptions } from '@mui/material';\nimport { getPaletteOptions } from './palette/palette-options';\nimport { typography } from './typography';\n\n/**\n * Gets theme used by all components for the provided mode. For more details, see:\n * - Base colors, typography, sizing - go/chrono-ui-theme\n * - Material UI defaults: https://material-ui.com/customization/default-theme/\n * - Material UI variables: https://material-ui.com/customization/theming/#theme-configuration-variables\n * - Material UI global overrides and default props: https://material-ui.com/customization/globals/#css\n *\n * Need to reinstantiate the theme everytime to support switching between light and dark themes\n * https://github.com/mui-org/material-ui/issues/18831\n */\nexport function getTheme(mode: PaletteMode) {\n const theme = createTheme({\n palette: getPaletteOptions(mode),\n typography,\n mixins: {},\n components,\n });\n return theme;\n}\n\n// Overrides for component default prop values and styles go here\nconst components: ThemeOptions['components'] = {\n MuiFormControl: {\n defaultProps: {\n size: 'small',\n },\n },\n MuiTextField: {\n defaultProps: {\n size: 'small',\n },\n },\n};\n"],"names":["createTheme","getPaletteOptions","typography","getTheme","mode","theme","palette","mixins","components","MuiFormControl","defaultProps","size","MuiTextField"],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,SAASA,WAAW,QAAmC,eAAe,CAAC;AACvE,SAASC,iBAAiB,QAAQ,2BAA2B,CAAC;AAC9D,SAASC,UAAU,QAAQ,cAAc,CAAC;AAE1C;;;;;;;;;CASC,GACD,OAAO,SAASC,QAAQ,CAACC,IAAiB,EAAE;IAC1C,MAAMC,KAAK,GAAGL,WAAW,CAAC;QACxBM,OAAO,EAAEL,iBAAiB,CAACG,IAAI,CAAC;QAChCF,UAAU;QACVK,MAAM,EAAE,EAAE;QACVC,UAAU;KACX,CAAC,AAAC;IACH,OAAOH,KAAK,CAAC;AACf,CAAC;AAED,iEAAiE;AACjE,MAAMG,UAAU,GAA+B;IAC7CC,cAAc,EAAE;QACdC,YAAY,EAAE;YACZC,IAAI,EAAE,OAAO;SACd;KACF;IACDC,YAAY,EAAE;QACZF,YAAY,EAAE;YACZC,IAAI,EAAE,OAAO;SACd;KACF;CACF,AAAC"}
@@ -0,0 +1,16 @@
1
+ // Copyright 2022 The Perses Authors
2
+ // Licensed under the Apache License, Version 2.0 (the "License");
3
+ // you may not use this file except in compliance with the License.
4
+ // You may obtain a copy of the License at
5
+ //
6
+ // http://www.apache.org/licenses/LICENSE-2.0
7
+ //
8
+ // Unless required by applicable law or agreed to in writing, software
9
+ // distributed under the License is distributed on an "AS IS" BASIS,
10
+ // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11
+ // See the License for the specific language governing permissions and
12
+ // limitations under the License.
13
+ // Allows extending Lab types/components also
14
+ export { };
15
+
16
+ //# sourceMappingURL=ThemeExtension.d.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/types/ThemeExtension.d.ts"],"sourcesContent":["// Copyright 2022 The Perses Authors\n// Licensed under the Apache License, Version 2.0 (the \"License\");\n// you may not use this file except in compliance with the License.\n// You may obtain a copy of the License at\n//\n// http://www.apache.org/licenses/LICENSE-2.0\n//\n// Unless required by applicable law or agreed to in writing, software\n// distributed under the License is distributed on an \"AS IS\" BASIS,\n// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n// See the License for the specific language governing permissions and\n// limitations under the License.\n\n// Allows extending Lab types/components also\nimport type {} from '@mui/lab/themeAugmentation';\n\n// Use Typescript interface augmentation to extend the MUI type definition\ndeclare module '@mui/material' {\n interface Color {\n 150: string;\n 250: string;\n 350: string;\n 450: string;\n 550: string;\n 650: string;\n 750: string;\n 850: string;\n 950: string;\n }\n}\n"],"names":[],"mappings":"AAAA,oCAAoC;AACpC,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,6CAA6C;AAC7C,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;AAEjC,6CAA6C;AAC7C,WAeC"}
@@ -0,0 +1,10 @@
1
+ import '@fontsource/lato/300.css';
2
+ import '@fontsource/lato/400.css';
3
+ import '@fontsource/lato/700.css';
4
+ import '@fontsource/lato/900.css';
5
+ import { ThemeOptions } from '@mui/material';
6
+ /**
7
+ * Theme typography options that are the same across both the dark and light themes.
8
+ */
9
+ export declare const typography: ThemeOptions['typography'];
10
+ //# sourceMappingURL=typography.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typography.d.ts","sourceRoot":"","sources":["../../src/theme/typography.ts"],"names":[],"mappings":"AAaA,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,0BAA0B,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAS7C;;GAEG;AACH,eAAO,MAAM,UAAU,EAAE,YAAY,CAAC,YAAY,CAqEjD,CAAC"}