@perses-dev/components 0.17.0 → 0.18.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 (134) 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/cjs/InfoTooltip/InfoTooltip.js +2 -2
  13. package/dist/cjs/JSONEditor.js +4 -1
  14. package/dist/cjs/Legend/CompactLegend.js +9 -2
  15. package/dist/cjs/Legend/ListLegendItem.js +0 -1
  16. package/dist/cjs/index.js +1 -0
  17. package/dist/cjs/theme/index.js +28 -0
  18. package/dist/cjs/theme/palette/background.js +40 -0
  19. package/dist/cjs/theme/palette/colors/blue.js +35 -0
  20. package/dist/cjs/theme/palette/colors/common.js +28 -0
  21. package/dist/cjs/theme/palette/colors/green.js +35 -0
  22. package/dist/cjs/theme/palette/colors/grey.js +35 -0
  23. package/dist/cjs/theme/palette/colors/index.js +35 -0
  24. package/dist/cjs/theme/palette/colors/orange.js +35 -0
  25. package/dist/cjs/theme/palette/colors/purple.js +35 -0
  26. package/dist/cjs/theme/palette/colors/red.js +35 -0
  27. package/dist/cjs/theme/palette/colors/types.js +16 -0
  28. package/dist/cjs/theme/palette/error.js +32 -0
  29. package/dist/cjs/theme/palette/grey.js +44 -0
  30. package/dist/cjs/theme/palette/index.js +28 -0
  31. package/dist/cjs/theme/palette/palette-options.js +59 -0
  32. package/dist/cjs/theme/palette/primary.js +32 -0
  33. package/dist/cjs/theme/palette/secondary.js +32 -0
  34. package/dist/cjs/theme/palette/success.js +32 -0
  35. package/dist/cjs/theme/palette/text.js +42 -0
  36. package/dist/cjs/theme/palette/warning.js +32 -0
  37. package/dist/cjs/theme/theme.js +45 -0
  38. package/dist/cjs/theme/types/ThemeExtension.d.js +17 -0
  39. package/dist/cjs/theme/typography.js +96 -0
  40. package/dist/index.d.ts +1 -0
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +1 -0
  43. package/dist/index.js.map +1 -1
  44. package/dist/theme/index.d.ts +37 -0
  45. package/dist/theme/index.d.ts.map +1 -0
  46. package/dist/theme/index.js +15 -0
  47. package/dist/theme/index.js.map +1 -0
  48. package/dist/theme/palette/background.d.ts +3 -0
  49. package/dist/theme/palette/background.d.ts.map +1 -0
  50. package/dist/theme/palette/background.js +34 -0
  51. package/dist/theme/palette/background.js.map +1 -0
  52. package/dist/theme/palette/colors/blue.d.ts +3 -0
  53. package/dist/theme/palette/colors/blue.d.ts.map +1 -0
  54. package/dist/theme/palette/colors/blue.js +29 -0
  55. package/dist/theme/palette/colors/blue.js.map +1 -0
  56. package/dist/theme/palette/colors/common.d.ts +3 -0
  57. package/dist/theme/palette/colors/common.d.ts.map +1 -0
  58. package/dist/theme/palette/colors/common.js +16 -0
  59. package/dist/theme/palette/colors/common.js.map +1 -0
  60. package/dist/theme/palette/colors/green.d.ts +3 -0
  61. package/dist/theme/palette/colors/green.d.ts.map +1 -0
  62. package/dist/theme/palette/colors/green.js +29 -0
  63. package/dist/theme/palette/colors/green.js.map +1 -0
  64. package/dist/theme/palette/colors/grey.d.ts +3 -0
  65. package/dist/theme/palette/colors/grey.d.ts.map +1 -0
  66. package/dist/theme/palette/colors/grey.js +29 -0
  67. package/dist/theme/palette/colors/grey.js.map +1 -0
  68. package/dist/theme/palette/colors/index.d.ts +9 -0
  69. package/dist/theme/palette/colors/index.d.ts.map +1 -0
  70. package/dist/theme/palette/colors/index.js +22 -0
  71. package/dist/theme/palette/colors/index.js.map +1 -0
  72. package/dist/theme/palette/colors/orange.d.ts +3 -0
  73. package/dist/theme/palette/colors/orange.d.ts.map +1 -0
  74. package/dist/theme/palette/colors/orange.js +29 -0
  75. package/dist/theme/palette/colors/orange.js.map +1 -0
  76. package/dist/theme/palette/colors/purple.d.ts +3 -0
  77. package/dist/theme/palette/colors/purple.d.ts.map +1 -0
  78. package/dist/theme/palette/colors/purple.js +29 -0
  79. package/dist/theme/palette/colors/purple.js.map +1 -0
  80. package/dist/theme/palette/colors/red.d.ts +3 -0
  81. package/dist/theme/palette/colors/red.d.ts.map +1 -0
  82. package/dist/theme/palette/colors/red.js +29 -0
  83. package/dist/theme/palette/colors/red.js.map +1 -0
  84. package/dist/theme/palette/colors/types.d.ts +17 -0
  85. package/dist/theme/palette/colors/types.d.ts.map +1 -0
  86. package/dist/theme/palette/colors/types.js +15 -0
  87. package/dist/theme/palette/colors/types.js.map +1 -0
  88. package/dist/theme/palette/error.d.ts +3 -0
  89. package/dist/theme/palette/error.d.ts.map +1 -0
  90. package/dist/theme/palette/error.js +26 -0
  91. package/dist/theme/palette/error.js.map +1 -0
  92. package/dist/theme/palette/grey.d.ts +3 -0
  93. package/dist/theme/palette/grey.d.ts.map +1 -0
  94. package/dist/theme/palette/grey.js +38 -0
  95. package/dist/theme/palette/grey.js.map +1 -0
  96. package/dist/theme/palette/index.d.ts +3 -0
  97. package/dist/theme/palette/index.d.ts.map +1 -0
  98. package/dist/theme/palette/index.js +15 -0
  99. package/dist/theme/palette/index.js.map +1 -0
  100. package/dist/theme/palette/palette-options.d.ts +6 -0
  101. package/dist/theme/palette/palette-options.d.ts.map +1 -0
  102. package/dist/theme/palette/palette-options.js +55 -0
  103. package/dist/theme/palette/palette-options.js.map +1 -0
  104. package/dist/theme/palette/primary.d.ts +3 -0
  105. package/dist/theme/palette/primary.d.ts.map +1 -0
  106. package/dist/theme/palette/primary.js +26 -0
  107. package/dist/theme/palette/primary.js.map +1 -0
  108. package/dist/theme/palette/secondary.d.ts +3 -0
  109. package/dist/theme/palette/secondary.d.ts.map +1 -0
  110. package/dist/theme/palette/secondary.js +26 -0
  111. package/dist/theme/palette/secondary.js.map +1 -0
  112. package/dist/theme/palette/success.d.ts +3 -0
  113. package/dist/theme/palette/success.d.ts.map +1 -0
  114. package/dist/theme/palette/success.js +26 -0
  115. package/dist/theme/palette/success.js.map +1 -0
  116. package/dist/theme/palette/text.d.ts +3 -0
  117. package/dist/theme/palette/text.d.ts.map +1 -0
  118. package/dist/theme/palette/text.js +36 -0
  119. package/dist/theme/palette/text.js.map +1 -0
  120. package/dist/theme/palette/warning.d.ts +3 -0
  121. package/dist/theme/palette/warning.d.ts.map +1 -0
  122. package/dist/theme/palette/warning.js +26 -0
  123. package/dist/theme/palette/warning.js.map +1 -0
  124. package/dist/theme/theme.d.ts +13 -0
  125. package/dist/theme/theme.d.ts.map +1 -0
  126. package/dist/theme/theme.js +48 -0
  127. package/dist/theme/theme.js.map +1 -0
  128. package/dist/theme/types/ThemeExtension.d.js +16 -0
  129. package/dist/theme/types/ThemeExtension.d.js.map +1 -0
  130. package/dist/theme/typography.d.ts +10 -0
  131. package/dist/theme/typography.d.ts.map +1 -0
  132. package/dist/theme/typography.js +92 -0
  133. package/dist/theme/typography.js.map +1 -0
  134. package/package.json +4 -3
@@ -0,0 +1 @@
1
+ {"version":3,"file":"blue.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/blue.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,IAAI,EAAE,WAclB,CAAC"}
@@ -0,0 +1,29 @@
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 const blue = {
14
+ 50: '#E7F1FC',
15
+ 100: '#D0E3FA',
16
+ 150: '#B8D5F7',
17
+ 200: '#A1C7F5',
18
+ 300: '#72ABF0',
19
+ 400: '#438FEB',
20
+ 500: '#1473E6',
21
+ 600: '#105CB8',
22
+ 700: '#0C458A',
23
+ 800: '#082E5C',
24
+ 850: '#062345',
25
+ 900: '#04172E',
26
+ 950: '#020C17'
27
+ };
28
+
29
+ //# sourceMappingURL=blue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/blue.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 { PersesColor } from './types';\n\nexport const blue: PersesColor = {\n 50: '#E7F1FC',\n 100: '#D0E3FA',\n 150: '#B8D5F7',\n 200: '#A1C7F5',\n 300: '#72ABF0',\n 400: '#438FEB',\n 500: '#1473E6',\n 600: '#105CB8',\n 700: '#0C458A',\n 800: '#082E5C',\n 850: '#062345',\n 900: '#04172E',\n 950: '#020C17',\n};\n"],"names":["blue"],"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;AAIjC,OAAO,MAAMA,IAAI,GAAgB;AAC/B,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const white = "#FFFFFF";
2
+ export declare const black = "#000000";
3
+ //# sourceMappingURL=common.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/common.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,KAAK,YAAY,CAAC;AAC/B,eAAO,MAAM,KAAK,YAAY,CAAC"}
@@ -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
+ export const white = '#FFFFFF';
14
+ export const black = '#000000';
15
+
16
+ //# sourceMappingURL=common.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/common.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 const white = '#FFFFFF';\nexport const black = '#000000';\n"],"names":["white","black"],"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,OAAO,MAAMA,KAAK,GAAG,SAAS,CAAC;AAC/B,OAAO,MAAMC,KAAK,GAAG,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const green: PersesColor;
3
+ //# sourceMappingURL=green.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"green.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/green.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,KAAK,EAAE,WAcnB,CAAC"}
@@ -0,0 +1,29 @@
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 const green = {
14
+ 50: '#EAF9F1',
15
+ 100: '#D5F2E3',
16
+ 150: '#C1ECD4',
17
+ 200: '#ACE5C6',
18
+ 300: '#82D9AA',
19
+ 400: '#59CC8D',
20
+ 500: '#2FBF71',
21
+ 600: '#26995A',
22
+ 700: '#1C7344',
23
+ 800: '#134C2D',
24
+ 850: '#0E3922',
25
+ 900: '#092617',
26
+ 950: '#05130B'
27
+ };
28
+
29
+ //# sourceMappingURL=green.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/green.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 { PersesColor } from './types';\n\nexport const green: PersesColor = {\n 50: '#EAF9F1',\n 100: '#D5F2E3',\n 150: '#C1ECD4',\n 200: '#ACE5C6',\n 300: '#82D9AA',\n 400: '#59CC8D',\n 500: '#2FBF71',\n 600: '#26995A',\n 700: '#1C7344',\n 800: '#134C2D',\n 850: '#0E3922',\n 900: '#092617',\n 950: '#05130B',\n};\n"],"names":["green"],"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;AAIjC,OAAO,MAAMA,KAAK,GAAgB;AAChC,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const grey: PersesColor;
3
+ //# sourceMappingURL=grey.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"grey.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/grey.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,IAAI,EAAE,WAclB,CAAC"}
@@ -0,0 +1,29 @@
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 const grey = {
14
+ 50: '#F0F1F6',
15
+ 100: '#E1E3ED',
16
+ 150: '#D2D5E4',
17
+ 200: '#C3C7DB',
18
+ 300: '#A4ACC8',
19
+ 400: '#8690B6',
20
+ 500: '#717CA4',
21
+ 600: '#535D83',
22
+ 700: '#3E4662',
23
+ 800: '#2A2E42',
24
+ 850: '#1F2331',
25
+ 900: '#151721',
26
+ 950: '#0A0C10'
27
+ };
28
+
29
+ //# sourceMappingURL=grey.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/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 { PersesColor } from './types';\n\nexport const grey: PersesColor = {\n 50: '#F0F1F6',\n 100: '#E1E3ED',\n 150: '#D2D5E4',\n 200: '#C3C7DB',\n 300: '#A4ACC8',\n 400: '#8690B6',\n 500: '#717CA4',\n 600: '#535D83',\n 700: '#3E4662',\n 800: '#2A2E42',\n 850: '#1F2331',\n 900: '#151721',\n 950: '#0A0C10',\n};\n"],"names":["grey"],"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;AAIjC,OAAO,MAAMA,IAAI,GAAgB;AAC/B,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,9 @@
1
+ export * from './blue';
2
+ export * from './common';
3
+ export * from './green';
4
+ export * from './grey';
5
+ export * from './orange';
6
+ export * from './purple';
7
+ export * from './red';
8
+ export * from './types';
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/index.ts"],"names":[],"mappings":"AAaA,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,22 @@
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 './blue';
14
+ export * from './common';
15
+ export * from './green';
16
+ export * from './grey';
17
+ export * from './orange';
18
+ export * from './purple';
19
+ export * from './red';
20
+ export * from './types';
21
+
22
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/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 './blue';\nexport * from './common';\nexport * from './green';\nexport * from './grey';\nexport * from './orange';\nexport * from './purple';\nexport * from './red';\nexport * from './types';\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,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const orange: PersesColor;
3
+ //# sourceMappingURL=orange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orange.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/orange.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,MAAM,EAAE,WAcpB,CAAC"}
@@ -0,0 +1,29 @@
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 const orange = {
14
+ 50: '#FFF5E8',
15
+ 100: '#FFECD2',
16
+ 150: '#FFE2BB',
17
+ 200: '#FFD9A4',
18
+ 300: '#FFC577',
19
+ 400: '#FFB249',
20
+ 500: '#FF9F1C',
21
+ 600: '#CC7F16',
22
+ 700: '#995F11',
23
+ 800: '#66400B',
24
+ 850: '#4D3008',
25
+ 900: '#332006',
26
+ 950: '#1A1003'
27
+ };
28
+
29
+ //# sourceMappingURL=orange.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/orange.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 { PersesColor } from './types';\n\nexport const orange: PersesColor = {\n 50: '#FFF5E8',\n 100: '#FFECD2',\n 150: '#FFE2BB',\n 200: '#FFD9A4',\n 300: '#FFC577',\n 400: '#FFB249',\n 500: '#FF9F1C',\n 600: '#CC7F16',\n 700: '#995F11',\n 800: '#66400B',\n 850: '#4D3008',\n 900: '#332006',\n 950: '#1A1003',\n};\n"],"names":["orange"],"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;AAIjC,OAAO,MAAMA,MAAM,GAAgB;AACjC,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const purple: PersesColor;
3
+ //# sourceMappingURL=purple.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"purple.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/purple.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,MAAM,EAAE,WAcpB,CAAC"}
@@ -0,0 +1,29 @@
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 const purple = {
14
+ 50: '#EFE9FD',
15
+ 100: '#E0D2FC',
16
+ 150: '#D0BCFA',
17
+ 200: '#C1A6F8',
18
+ 300: '#A179F5',
19
+ 400: '#824DF1',
20
+ 500: '#6320EE',
21
+ 600: '#4F1ABE',
22
+ 700: '#3B138F',
23
+ 800: '#280D5F',
24
+ 850: '#1E0A47',
25
+ 900: '#140630',
26
+ 950: '#0A0318'
27
+ };
28
+
29
+ //# sourceMappingURL=purple.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/purple.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 { PersesColor } from './types';\n\nexport const purple: PersesColor = {\n 50: '#EFE9FD',\n 100: '#E0D2FC',\n 150: '#D0BCFA',\n 200: '#C1A6F8',\n 300: '#A179F5',\n 400: '#824DF1',\n 500: '#6320EE',\n 600: '#4F1ABE',\n 700: '#3B138F',\n 800: '#280D5F',\n 850: '#1E0A47',\n 900: '#140630',\n 950: '#0A0318',\n};\n"],"names":["purple"],"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;AAIjC,OAAO,MAAMA,MAAM,GAAgB;AACjC,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const red: PersesColor;
3
+ //# sourceMappingURL=red.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"red.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/red.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,eAAO,MAAM,GAAG,EAAE,WAcjB,CAAC"}
@@ -0,0 +1,29 @@
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 const red = {
14
+ 50: '#FDEDED',
15
+ 100: '#FBDADA',
16
+ 150: '#F9C8C8',
17
+ 200: '#F7B5B5',
18
+ 300: '#F29191',
19
+ 400: '#EE6C6C',
20
+ 500: '#EA4747',
21
+ 600: '#BD3939',
22
+ 700: '#902B2B',
23
+ 800: '#621D1D',
24
+ 850: '#4C1616',
25
+ 900: '#350F0F',
26
+ 950: '#1F0808'
27
+ };
28
+
29
+ //# sourceMappingURL=red.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/red.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 { PersesColor } from './types';\n\nexport const red: PersesColor = {\n 50: '#FDEDED',\n 100: '#FBDADA',\n 150: '#F9C8C8',\n 200: '#F7B5B5',\n 300: '#F29191',\n 400: '#EE6C6C',\n 500: '#EA4747',\n 600: '#BD3939',\n 700: '#902B2B',\n 800: '#621D1D',\n 850: '#4C1616',\n 900: '#350F0F',\n 950: '#1F0808',\n};\n"],"names":["red"],"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;AAIjC,OAAO,MAAMA,GAAG,GAAgB;AAC9B,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;AACd,IAAA,GAAG,EAAE,SAAS;CACf,CAAC"}
@@ -0,0 +1,17 @@
1
+ export declare type HexColor = `#${string}`;
2
+ export interface PersesColor {
3
+ 50: HexColor;
4
+ 100: HexColor;
5
+ 150: HexColor;
6
+ 200: HexColor;
7
+ 300: HexColor;
8
+ 400: HexColor;
9
+ 500: HexColor;
10
+ 600: HexColor;
11
+ 700: HexColor;
12
+ 800: HexColor;
13
+ 850: HexColor;
14
+ 900: HexColor;
15
+ 950: HexColor;
16
+ }
17
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/theme/palette/colors/types.ts"],"names":[],"mappings":"AAaA,oBAAY,QAAQ,GAAG,IAAI,MAAM,EAAE,CAAC;AAEpC,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,QAAQ,CAAC;IACb,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;IACd,GAAG,EAAE,QAAQ,CAAC;CACf"}
@@ -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 { };
14
+
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../src/theme/palette/colors/types.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 type HexColor = `#${string}`;\n\nexport interface PersesColor {\n 50: HexColor;\n 100: HexColor;\n 150: HexColor;\n 200: HexColor;\n 300: HexColor;\n 400: HexColor;\n 500: HexColor;\n 600: HexColor;\n 700: HexColor;\n 800: HexColor;\n 850: HexColor;\n 900: HexColor;\n 950: HexColor;\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,WAgBC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteMode, SimplePaletteColorOptions } from '@mui/material';
2
+ export declare const error: (mode: PaletteMode) => SimplePaletteColorOptions;
3
+ //# sourceMappingURL=error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/error.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAGvE,eAAO,MAAM,KAAK,SAAU,WAAW,KAAG,yBAYzC,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 { 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"}