@perses-dev/components 0.16.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 (149) 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 +3 -2
  13. package/dist/LineChart/LineChart.d.ts.map +1 -1
  14. package/dist/LineChart/LineChart.js +4 -15
  15. package/dist/LineChart/LineChart.js.map +1 -1
  16. package/dist/LineChart/utils.d.ts +18 -0
  17. package/dist/LineChart/utils.d.ts.map +1 -1
  18. package/dist/LineChart/utils.js +35 -9
  19. package/dist/LineChart/utils.js.map +1 -1
  20. package/dist/YAxisLabel.d.ts +8 -0
  21. package/dist/YAxisLabel.d.ts.map +1 -0
  22. package/dist/YAxisLabel.js +39 -0
  23. package/dist/YAxisLabel.js.map +1 -0
  24. package/dist/cjs/InfoTooltip/InfoTooltip.js +2 -2
  25. package/dist/cjs/JSONEditor.js +4 -1
  26. package/dist/cjs/Legend/CompactLegend.js +9 -2
  27. package/dist/cjs/Legend/ListLegendItem.js +0 -1
  28. package/dist/cjs/LineChart/LineChart.js +3 -14
  29. package/dist/cjs/LineChart/utils.js +23 -1
  30. package/dist/cjs/YAxisLabel.js +45 -0
  31. package/dist/cjs/index.js +2 -0
  32. package/dist/cjs/theme/index.js +28 -0
  33. package/dist/cjs/theme/palette/background.js +40 -0
  34. package/dist/cjs/theme/palette/colors/blue.js +35 -0
  35. package/dist/cjs/theme/palette/colors/common.js +28 -0
  36. package/dist/cjs/theme/palette/colors/green.js +35 -0
  37. package/dist/cjs/theme/palette/colors/grey.js +35 -0
  38. package/dist/cjs/theme/palette/colors/index.js +35 -0
  39. package/dist/cjs/theme/palette/colors/orange.js +35 -0
  40. package/dist/cjs/theme/palette/colors/purple.js +35 -0
  41. package/dist/cjs/theme/palette/colors/red.js +35 -0
  42. package/dist/cjs/theme/palette/colors/types.js +16 -0
  43. package/dist/cjs/theme/palette/error.js +32 -0
  44. package/dist/cjs/theme/palette/grey.js +44 -0
  45. package/dist/cjs/theme/palette/index.js +28 -0
  46. package/dist/cjs/theme/palette/palette-options.js +59 -0
  47. package/dist/cjs/theme/palette/primary.js +32 -0
  48. package/dist/cjs/theme/palette/secondary.js +32 -0
  49. package/dist/cjs/theme/palette/success.js +32 -0
  50. package/dist/cjs/theme/palette/text.js +42 -0
  51. package/dist/cjs/theme/palette/warning.js +32 -0
  52. package/dist/cjs/theme/theme.js +45 -0
  53. package/dist/cjs/theme/types/ThemeExtension.d.js +17 -0
  54. package/dist/cjs/theme/typography.js +96 -0
  55. package/dist/index.d.ts +2 -0
  56. package/dist/index.d.ts.map +1 -1
  57. package/dist/index.js +2 -0
  58. package/dist/index.js.map +1 -1
  59. package/dist/theme/index.d.ts +37 -0
  60. package/dist/theme/index.d.ts.map +1 -0
  61. package/dist/theme/index.js +15 -0
  62. package/dist/theme/index.js.map +1 -0
  63. package/dist/theme/palette/background.d.ts +3 -0
  64. package/dist/theme/palette/background.d.ts.map +1 -0
  65. package/dist/theme/palette/background.js +34 -0
  66. package/dist/theme/palette/background.js.map +1 -0
  67. package/dist/theme/palette/colors/blue.d.ts +3 -0
  68. package/dist/theme/palette/colors/blue.d.ts.map +1 -0
  69. package/dist/theme/palette/colors/blue.js +29 -0
  70. package/dist/theme/palette/colors/blue.js.map +1 -0
  71. package/dist/theme/palette/colors/common.d.ts +3 -0
  72. package/dist/theme/palette/colors/common.d.ts.map +1 -0
  73. package/dist/theme/palette/colors/common.js +16 -0
  74. package/dist/theme/palette/colors/common.js.map +1 -0
  75. package/dist/theme/palette/colors/green.d.ts +3 -0
  76. package/dist/theme/palette/colors/green.d.ts.map +1 -0
  77. package/dist/theme/palette/colors/green.js +29 -0
  78. package/dist/theme/palette/colors/green.js.map +1 -0
  79. package/dist/theme/palette/colors/grey.d.ts +3 -0
  80. package/dist/theme/palette/colors/grey.d.ts.map +1 -0
  81. package/dist/theme/palette/colors/grey.js +29 -0
  82. package/dist/theme/palette/colors/grey.js.map +1 -0
  83. package/dist/theme/palette/colors/index.d.ts +9 -0
  84. package/dist/theme/palette/colors/index.d.ts.map +1 -0
  85. package/dist/theme/palette/colors/index.js +22 -0
  86. package/dist/theme/palette/colors/index.js.map +1 -0
  87. package/dist/theme/palette/colors/orange.d.ts +3 -0
  88. package/dist/theme/palette/colors/orange.d.ts.map +1 -0
  89. package/dist/theme/palette/colors/orange.js +29 -0
  90. package/dist/theme/palette/colors/orange.js.map +1 -0
  91. package/dist/theme/palette/colors/purple.d.ts +3 -0
  92. package/dist/theme/palette/colors/purple.d.ts.map +1 -0
  93. package/dist/theme/palette/colors/purple.js +29 -0
  94. package/dist/theme/palette/colors/purple.js.map +1 -0
  95. package/dist/theme/palette/colors/red.d.ts +3 -0
  96. package/dist/theme/palette/colors/red.d.ts.map +1 -0
  97. package/dist/theme/palette/colors/red.js +29 -0
  98. package/dist/theme/palette/colors/red.js.map +1 -0
  99. package/dist/theme/palette/colors/types.d.ts +17 -0
  100. package/dist/theme/palette/colors/types.d.ts.map +1 -0
  101. package/dist/theme/palette/colors/types.js +15 -0
  102. package/dist/theme/palette/colors/types.js.map +1 -0
  103. package/dist/theme/palette/error.d.ts +3 -0
  104. package/dist/theme/palette/error.d.ts.map +1 -0
  105. package/dist/theme/palette/error.js +26 -0
  106. package/dist/theme/palette/error.js.map +1 -0
  107. package/dist/theme/palette/grey.d.ts +3 -0
  108. package/dist/theme/palette/grey.d.ts.map +1 -0
  109. package/dist/theme/palette/grey.js +38 -0
  110. package/dist/theme/palette/grey.js.map +1 -0
  111. package/dist/theme/palette/index.d.ts +3 -0
  112. package/dist/theme/palette/index.d.ts.map +1 -0
  113. package/dist/theme/palette/index.js +15 -0
  114. package/dist/theme/palette/index.js.map +1 -0
  115. package/dist/theme/palette/palette-options.d.ts +6 -0
  116. package/dist/theme/palette/palette-options.d.ts.map +1 -0
  117. package/dist/theme/palette/palette-options.js +55 -0
  118. package/dist/theme/palette/palette-options.js.map +1 -0
  119. package/dist/theme/palette/primary.d.ts +3 -0
  120. package/dist/theme/palette/primary.d.ts.map +1 -0
  121. package/dist/theme/palette/primary.js +26 -0
  122. package/dist/theme/palette/primary.js.map +1 -0
  123. package/dist/theme/palette/secondary.d.ts +3 -0
  124. package/dist/theme/palette/secondary.d.ts.map +1 -0
  125. package/dist/theme/palette/secondary.js +26 -0
  126. package/dist/theme/palette/secondary.js.map +1 -0
  127. package/dist/theme/palette/success.d.ts +3 -0
  128. package/dist/theme/palette/success.d.ts.map +1 -0
  129. package/dist/theme/palette/success.js +26 -0
  130. package/dist/theme/palette/success.js.map +1 -0
  131. package/dist/theme/palette/text.d.ts +3 -0
  132. package/dist/theme/palette/text.d.ts.map +1 -0
  133. package/dist/theme/palette/text.js +36 -0
  134. package/dist/theme/palette/text.js.map +1 -0
  135. package/dist/theme/palette/warning.d.ts +3 -0
  136. package/dist/theme/palette/warning.d.ts.map +1 -0
  137. package/dist/theme/palette/warning.js +26 -0
  138. package/dist/theme/palette/warning.js.map +1 -0
  139. package/dist/theme/theme.d.ts +13 -0
  140. package/dist/theme/theme.d.ts.map +1 -0
  141. package/dist/theme/theme.js +48 -0
  142. package/dist/theme/theme.js.map +1 -0
  143. package/dist/theme/types/ThemeExtension.d.js +16 -0
  144. package/dist/theme/types/ThemeExtension.d.js.map +1 -0
  145. package/dist/theme/typography.d.ts +10 -0
  146. package/dist/theme/typography.d.ts.map +1 -0
  147. package/dist/theme/typography.js +92 -0
  148. package/dist/theme/typography.js.map +1 -0
  149. package/package.json +4 -3
@@ -0,0 +1,59 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "getPaletteOptions", {
18
+ enumerable: true,
19
+ get: ()=>getPaletteOptions
20
+ });
21
+ const _text = require("./text");
22
+ const _background = require("./background");
23
+ const _grey = require("./grey");
24
+ const _common = require("./colors/common");
25
+ const _primary = require("./primary");
26
+ const _secondary = require("./secondary");
27
+ const _colors = require("./colors");
28
+ const _error = require("./error");
29
+ const _success = require("./success");
30
+ const _warning = require("./warning");
31
+ function getPaletteOptions(mode) {
32
+ // Palette options should be split out into their own files with functions
33
+ // for creating the option values based on light/dark mode
34
+ return {
35
+ mode,
36
+ primary: (0, _primary.primary)(mode),
37
+ secondary: (0, _secondary.secondary)(mode),
38
+ grey: (0, _grey.greyOption)(mode),
39
+ background: (0, _background.background)(mode),
40
+ text: (0, _text.text)(mode),
41
+ error: (0, _error.error)(mode),
42
+ warning: (0, _warning.warning)(mode),
43
+ info: (0, _primary.primary)(mode),
44
+ success: (0, _success.success)(mode),
45
+ common: {
46
+ white: _common.white,
47
+ black: _common.black
48
+ },
49
+ // custom colors
50
+ designSystem: {
51
+ blue: _colors.blue,
52
+ green: _colors.green,
53
+ grey: _colors.grey,
54
+ orange: _colors.orange,
55
+ purple: _colors.purple,
56
+ red: _colors.red
57
+ }
58
+ };
59
+ }
@@ -0,0 +1,32 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "primary", {
18
+ enumerable: true,
19
+ get: ()=>primary
20
+ });
21
+ const _colors = require("./colors");
22
+ const primary = (mode)=>{
23
+ return mode === 'light' ? {
24
+ main: _colors.blue[500],
25
+ dark: _colors.blue[600],
26
+ light: _colors.blue[50]
27
+ } : {
28
+ main: _colors.blue[400],
29
+ dark: _colors.blue[800],
30
+ light: _colors.blue[200]
31
+ };
32
+ };
@@ -0,0 +1,32 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "secondary", {
18
+ enumerable: true,
19
+ get: ()=>secondary
20
+ });
21
+ const _colors = require("./colors");
22
+ const secondary = (mode)=>{
23
+ return mode === 'light' ? {
24
+ main: _colors.grey[600],
25
+ dark: _colors.grey[900],
26
+ light: _colors.grey[100]
27
+ } : {
28
+ main: _colors.white,
29
+ dark: _colors.white,
30
+ light: _colors.white
31
+ };
32
+ };
@@ -0,0 +1,32 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "success", {
18
+ enumerable: true,
19
+ get: ()=>success
20
+ });
21
+ const _colors = require("./colors");
22
+ const success = (mode)=>{
23
+ return mode === 'light' ? {
24
+ main: _colors.green[500],
25
+ dark: _colors.green[700],
26
+ light: _colors.green[50]
27
+ } : {
28
+ main: _colors.green[400],
29
+ dark: _colors.green[800],
30
+ light: _colors.green[300]
31
+ };
32
+ };
@@ -0,0 +1,42 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "text", {
18
+ enumerable: true,
19
+ get: ()=>text
20
+ });
21
+ const _colors = require("./colors");
22
+ const text = (mode)=>{
23
+ const navigation = _colors.grey[800];
24
+ const accent = _colors.grey[300];
25
+ return mode === 'light' ? {
26
+ navigation,
27
+ accent,
28
+ primary: _colors.grey[800],
29
+ secondary: _colors.grey[700],
30
+ disabled: _colors.grey[300],
31
+ link: _colors.blue[500],
32
+ linkHover: _colors.blue[600]
33
+ } : {
34
+ navigation,
35
+ accent,
36
+ primary: _colors.white,
37
+ secondary: _colors.grey[50],
38
+ disabled: _colors.grey[600],
39
+ link: _colors.blue[400],
40
+ linkHover: _colors.blue[500]
41
+ };
42
+ };
@@ -0,0 +1,32 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "warning", {
18
+ enumerable: true,
19
+ get: ()=>warning
20
+ });
21
+ const _colors = require("./colors");
22
+ const warning = (mode)=>{
23
+ return mode === 'light' ? {
24
+ main: _colors.orange[500],
25
+ dark: _colors.orange[700],
26
+ light: _colors.orange[50]
27
+ } : {
28
+ main: _colors.orange[400],
29
+ dark: _colors.orange[800],
30
+ light: _colors.orange[300]
31
+ };
32
+ };
@@ -0,0 +1,45 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "getTheme", {
18
+ enumerable: true,
19
+ get: ()=>getTheme
20
+ });
21
+ const _material = require("@mui/material");
22
+ const _paletteOptions = require("./palette/palette-options");
23
+ const _typography = require("./typography");
24
+ function getTheme(mode) {
25
+ const theme = (0, _material.createTheme)({
26
+ palette: (0, _paletteOptions.getPaletteOptions)(mode),
27
+ typography: _typography.typography,
28
+ mixins: {},
29
+ components
30
+ });
31
+ return theme;
32
+ }
33
+ // Overrides for component default prop values and styles go here
34
+ const components = {
35
+ MuiFormControl: {
36
+ defaultProps: {
37
+ size: 'small'
38
+ }
39
+ },
40
+ MuiTextField: {
41
+ defaultProps: {
42
+ size: 'small'
43
+ }
44
+ }
45
+ };
@@ -0,0 +1,17 @@
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
+ "use strict";
15
+ Object.defineProperty(exports, "__esModule", {
16
+ value: true
17
+ });
@@ -0,0 +1,96 @@
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
+ "use strict";
14
+ Object.defineProperty(exports, "__esModule", {
15
+ value: true
16
+ });
17
+ Object.defineProperty(exports, "typography", {
18
+ enumerable: true,
19
+ get: ()=>typography
20
+ });
21
+ require("@fontsource/lato/300.css");
22
+ require("@fontsource/lato/400.css");
23
+ require("@fontsource/lato/700.css");
24
+ require("@fontsource/lato/900.css");
25
+ // Font weights need to correspond with the imports at the top of the file
26
+ // (Lato supports 100, 300, 400, 700, 900)
27
+ const fontWeightLight = 300;
28
+ const fontWeightRegular = 400;
29
+ const fontWeightMedium = 700;
30
+ const fontWeightBold = 900;
31
+ const typography = {
32
+ fontFamily: '"Lato", sans-serif',
33
+ fontWeightLight,
34
+ fontWeightRegular,
35
+ fontWeightMedium,
36
+ fontWeightBold,
37
+ h1: {
38
+ fontSize: '1.5rem',
39
+ fontWeight: fontWeightMedium,
40
+ lineHeight: '32px'
41
+ },
42
+ h2: {
43
+ fontSize: '1.25rem',
44
+ fontWeight: fontWeightMedium,
45
+ lineHeight: '28px'
46
+ },
47
+ h3: {
48
+ fontSize: '1rem',
49
+ fontWeight: fontWeightMedium,
50
+ lineHeight: '24px'
51
+ },
52
+ h4: {
53
+ fontSize: '0.875rem',
54
+ fontWeight: fontWeightMedium,
55
+ lineHeight: '22px'
56
+ },
57
+ h5: undefined,
58
+ h6: undefined,
59
+ body1: {
60
+ fontSize: '0.875rem',
61
+ fontWeight: fontWeightRegular,
62
+ lineHeight: '20px'
63
+ },
64
+ body2: {
65
+ fontSize: '0.75rem',
66
+ fontWeight: fontWeightRegular,
67
+ lineHeight: '18px'
68
+ },
69
+ subtitle1: {
70
+ fontSize: '1rem',
71
+ fontWeight: fontWeightRegular,
72
+ lineHeight: '24px',
73
+ letterSpacing: '0.02rem'
74
+ },
75
+ subtitle2: {
76
+ fontSize: '0.875rem',
77
+ fontWeight: fontWeightMedium,
78
+ lineHeight: '22px',
79
+ letterSpacing: '0.03rem',
80
+ textTransform: 'uppercase'
81
+ },
82
+ button: {
83
+ // 14px
84
+ fontSize: '0.875rem',
85
+ fontWeight: fontWeightMedium,
86
+ // 20 px
87
+ lineHeight: '1.25rem',
88
+ textTransform: 'none',
89
+ letterSpacing: '0.03rem'
90
+ },
91
+ caption: {
92
+ fontSize: '0.6875rem',
93
+ fontWeight: fontWeightRegular,
94
+ lineHeight: '16px'
95
+ }
96
+ };
package/dist/index.d.ts CHANGED
@@ -11,8 +11,10 @@ export * from './LineChart';
11
11
  export * from './OptionsEditorLayout';
12
12
  export * from './StatChart';
13
13
  export * from './UnitSelector';
14
+ export * from './YAxisLabel';
14
15
  export * from './context/ChartsThemeProvider';
15
16
  export * from './utils';
16
17
  export * from './model';
17
18
  export * from './test-utils';
19
+ export * from './theme';
18
20
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAaA,cAAc,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
package/dist/index.js CHANGED
@@ -23,9 +23,11 @@ export * from './LineChart';
23
23
  export * from './OptionsEditorLayout';
24
24
  export * from './StatChart';
25
25
  export * from './UnitSelector';
26
+ export * from './YAxisLabel';
26
27
  export * from './context/ChartsThemeProvider';
27
28
  export * from './utils';
28
29
  export * from './model';
29
30
  export * from './test-utils';
31
+ export * from './theme';
30
32
 
31
33
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/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 './DateTimeRangePicker';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './GaugeChart';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LineChart';\nexport * from './OptionsEditorLayout';\nexport * from './StatChart';\nexport * from './UnitSelector';\nexport * from './context/ChartsThemeProvider';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\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,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"sources":["../src/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 './DateTimeRangePicker';\nexport * from './Drawer';\nexport * from './EChart';\nexport * from './ErrorAlert';\nexport * from './ErrorBoundary';\nexport * from './GaugeChart';\nexport * from './InfoTooltip';\nexport * from './JSONEditor';\nexport * from './Legend';\nexport * from './LineChart';\nexport * from './OptionsEditorLayout';\nexport * from './StatChart';\nexport * from './UnitSelector';\nexport * from './YAxisLabel';\nexport * from './context/ChartsThemeProvider';\nexport * from './utils';\nexport * from './model';\nexport * from './test-utils';\nexport * from './theme';\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,uBAAuB,CAAC;AACtC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC"}
@@ -0,0 +1,37 @@
1
+ import { PersesColor } from './palette';
2
+ export * from './theme';
3
+ declare module '@mui/material/styles/createPalette' {
4
+ interface TypeBackground {
5
+ navigation: string;
6
+ tooltip: string;
7
+ overlay: string;
8
+ border: string;
9
+ }
10
+ interface TypeText {
11
+ navigation: string;
12
+ accent: string;
13
+ link: string;
14
+ linkHover: string;
15
+ }
16
+ }
17
+ declare module '@mui/material/styles' {
18
+ interface Palette {
19
+ /**
20
+ * The base colors from Perses design system. Use sparingly since
21
+ * this is meant as an escape hatch when the theme's other semantic colors
22
+ * won't get you what you need.
23
+ */
24
+ designSystem: {
25
+ blue: PersesColor;
26
+ green: PersesColor;
27
+ grey: PersesColor;
28
+ orange: PersesColor;
29
+ purple: PersesColor;
30
+ red: PersesColor;
31
+ };
32
+ }
33
+ interface PaletteOptions {
34
+ designSystem?: Palette['designSystem'];
35
+ }
36
+ }
37
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,cAAc,SAAS,CAAC;AAGxB,OAAO,QAAQ,oCAAoC,CAAC;IAClD,UAAU,cAAc;QACtB,UAAU,EAAE,MAAM,CAAC;QACnB,OAAO,EAAE,MAAM,CAAC;QAChB,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,EAAE,MAAM,CAAC;KAChB;IAED,UAAU,QAAQ;QAChB,UAAU,EAAE,MAAM,CAAC;QACnB,MAAM,EAAE,MAAM,CAAC;QACf,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,OAAO;QACf;;;;WAIG;QACH,YAAY,EAAE;YACZ,IAAI,EAAE,WAAW,CAAC;YAClB,KAAK,EAAE,WAAW,CAAC;YACnB,IAAI,EAAE,WAAW,CAAC;YAClB,MAAM,EAAE,WAAW,CAAC;YACpB,MAAM,EAAE,WAAW,CAAC;YACpB,GAAG,EAAE,WAAW,CAAC;SAClB,CAAC;KACH;IAED,UAAU,cAAc;QACtB,YAAY,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,CAAC;KACxC;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 * from './theme';
14
+
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../src/theme/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\nimport type {} from './types/ThemeExtension';\nimport { PersesColor } from './palette';\n\nexport * from './theme';\n\n//Use Typescript interface augmentation to extend the MUI type definition\ndeclare module '@mui/material/styles/createPalette' {\n interface TypeBackground {\n navigation: string;\n tooltip: string;\n overlay: string;\n border: string;\n }\n\n interface TypeText {\n navigation: string;\n accent: string;\n link: string;\n linkHover: string;\n }\n}\n\ndeclare module '@mui/material/styles' {\n interface Palette {\n /**\n * The base colors from Perses design system. Use sparingly since\n * this is meant as an escape hatch when the theme's other semantic colors\n * won't get you what you need.\n */\n designSystem: {\n blue: PersesColor;\n green: PersesColor;\n grey: PersesColor;\n orange: PersesColor;\n purple: PersesColor;\n red: PersesColor;\n };\n }\n\n interface PaletteOptions {\n designSystem?: Palette['designSystem'];\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;AAKjC,cAAc,SAAS,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PaletteMode, PaletteOptions } from '@mui/material';
2
+ export declare const background: (mode: PaletteMode) => PaletteOptions['background'];
3
+ //# sourceMappingURL=background.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"background.d.ts","sourceRoot":"","sources":["../../../src/theme/palette/background.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG5D,eAAO,MAAM,UAAU,SAAU,WAAW,KAAG,cAAc,CAAC,YAAY,CAoBzE,CAAC"}
@@ -0,0 +1,34 @@
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, grey, white } from './colors';
14
+ export const background = (mode)=>{
15
+ const navigation = blue[150];
16
+ const overlay = 'rgba(21, 23, 33, 0.75)'; // grey[900] with opacity 75%
17
+ return mode === 'light' ? {
18
+ navigation,
19
+ overlay,
20
+ default: grey[50],
21
+ paper: white,
22
+ tooltip: grey[100],
23
+ border: grey[100]
24
+ } : {
25
+ navigation,
26
+ overlay,
27
+ default: grey[900],
28
+ paper: grey[850],
29
+ tooltip: grey[700],
30
+ border: grey[600]
31
+ };
32
+ };
33
+
34
+ //# sourceMappingURL=background.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../src/theme/palette/background.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 { blue, grey, white } from './colors';\n\nexport const background = (mode: PaletteMode): PaletteOptions['background'] => {\n const navigation = blue[150];\n const overlay = 'rgba(21, 23, 33, 0.75)'; // grey[900] with opacity 75%\n return mode === 'light'\n ? {\n navigation,\n overlay,\n default: grey[50],\n paper: white,\n tooltip: grey[100],\n border: grey[100],\n }\n : {\n navigation,\n overlay,\n default: grey[900],\n paper: grey[850],\n tooltip: grey[700],\n border: grey[600],\n };\n};\n"],"names":["blue","grey","white","background","mode","navigation","overlay","default","paper","tooltip","border"],"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,IAAI,EAAEC,KAAK,QAAQ,UAAU,CAAC;AAE7C,OAAO,MAAMC,UAAU,GAAG,CAACC,IAAiB,GAAmC;IAC7E,MAAMC,UAAU,GAAGL,IAAI,CAAC,GAAG,CAAC,AAAC;IAC7B,MAAMM,OAAO,GAAG,wBAAwB,AAAC,EAAC,6BAA6B;IACvE,OAAOF,IAAI,KAAK,OAAO,GACnB;QACEC,UAAU;QACVC,OAAO;QACPC,OAAO,EAAEN,IAAI,CAAC,EAAE,CAAC;QACjBO,KAAK,EAAEN,KAAK;QACZO,OAAO,EAAER,IAAI,CAAC,GAAG,CAAC;QAClBS,MAAM,EAAET,IAAI,CAAC,GAAG,CAAC;KAClB,GACD;QACEI,UAAU;QACVC,OAAO;QACPC,OAAO,EAAEN,IAAI,CAAC,GAAG,CAAC;QAClBO,KAAK,EAAEP,IAAI,CAAC,GAAG,CAAC;QAChBQ,OAAO,EAAER,IAAI,CAAC,GAAG,CAAC;QAClBS,MAAM,EAAET,IAAI,CAAC,GAAG,CAAC;KAClB,CAAC;AACR,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { PersesColor } from './types';
2
+ export declare const blue: PersesColor;
3
+ //# sourceMappingURL=blue.d.ts.map
@@ -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"}