@galaxy-ds/core 2.0.1 → 2.0.2
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.
- package/dist/index.esm.js +64 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +107 -80
- package/dist/index.js.map +1 -1
- package/dist/package.json +15 -17
- package/package.json +15 -17
package/dist/index.js
CHANGED
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
var MuiCssBaseline = require('@mui/material/CssBaseline');
|
|
7
7
|
var material = require('@mui/material');
|
|
8
|
-
var tokens = require('@galaxy-ds/tokens/dist/leap/web/cjs/tokens');
|
|
9
8
|
var styles$1 = require('@mui/material/styles');
|
|
10
9
|
var React = require('react');
|
|
11
10
|
var SvgIcon = require('@mui/material/SvgIcon');
|
|
@@ -30,26 +29,7 @@ var Button$1 = require('@mui/material/Button');
|
|
|
30
29
|
|
|
31
30
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
32
31
|
|
|
33
|
-
function _interopNamespace(e) {
|
|
34
|
-
if (e && e.__esModule) return e;
|
|
35
|
-
var n = Object.create(null);
|
|
36
|
-
if (e) {
|
|
37
|
-
Object.keys(e).forEach(function (k) {
|
|
38
|
-
if (k !== 'default') {
|
|
39
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
40
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
41
|
-
enumerable: true,
|
|
42
|
-
get: function () { return e[k]; }
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
n["default"] = e;
|
|
48
|
-
return Object.freeze(n);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
32
|
var MuiCssBaseline__default = /*#__PURE__*/_interopDefaultLegacy(MuiCssBaseline);
|
|
52
|
-
var tokens__namespace = /*#__PURE__*/_interopNamespace(tokens);
|
|
53
33
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
54
34
|
var SvgIcon__default = /*#__PURE__*/_interopDefaultLegacy(SvgIcon);
|
|
55
35
|
var MuiTypography__default = /*#__PURE__*/_interopDefaultLegacy(MuiTypography$1);
|
|
@@ -74,6 +54,70 @@ var CssBaseline = function (props) {
|
|
|
74
54
|
return (jsxRuntime.jsx(MuiCssBaseline__default["default"], {}));
|
|
75
55
|
};
|
|
76
56
|
|
|
57
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
58
|
+
|
|
59
|
+
function getAugmentedNamespace(n) {
|
|
60
|
+
if (n.__esModule) return n;
|
|
61
|
+
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
62
|
+
Object.keys(n).forEach(function (k) {
|
|
63
|
+
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
64
|
+
Object.defineProperty(a, k, d.get ? d : {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return n[k];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
return a;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
var tokens = {
|
|
75
|
+
ColorDivider: "#d8d8d8",
|
|
76
|
+
ColorBackgroundDefault: "#eeeeee",
|
|
77
|
+
ColorBackgroundSecondary: "#ffffff",
|
|
78
|
+
ColorPrimaryMain: "#1c365f",
|
|
79
|
+
ColorPrimaryLight: "#0060ac",
|
|
80
|
+
ColorPrimaryDark: "#162845",
|
|
81
|
+
ColorPrimaryContrastText: "#ffffff",
|
|
82
|
+
ColorTextPrimary: "#444444",
|
|
83
|
+
ColorTextSecondary: "#6b6b6b",
|
|
84
|
+
ColorTextDisabled: "#6e7781",
|
|
85
|
+
ColorTextHint: "#0060aa",
|
|
86
|
+
ColorSecondaryMain: "#f89235",
|
|
87
|
+
ColorSecondaryLight: "#feefe2",
|
|
88
|
+
ColorSecondaryDark: "#da782d",
|
|
89
|
+
ColorSecondaryContrastText: "#ffffff",
|
|
90
|
+
ColorContextualSuccessContrastText: "#ffffff",
|
|
91
|
+
ColorContextualSuccessLight: "#d7e8d4",
|
|
92
|
+
ColorContextualSuccessDark: "#376b49",
|
|
93
|
+
ColorContextualSuccessMain: "#3faf2a",
|
|
94
|
+
ColorContextualDangerMain: "#c02e21",
|
|
95
|
+
ColorContextualDangerLight: "#ecd6d4",
|
|
96
|
+
ColorContextualDangerDark: "#631b16",
|
|
97
|
+
ColorContextualDangerContrastText: "#ffffff",
|
|
98
|
+
ColorContextualWarningMain: "#f59245",
|
|
99
|
+
ColorContextualWarningLight: "#feefe2",
|
|
100
|
+
ColorContextualWarningDark: "#8f6b32",
|
|
101
|
+
ColorContextualWarningContrastText: "#ffffff",
|
|
102
|
+
ColorContextualInfoMain: "#1c365f",
|
|
103
|
+
ColorContextualInfoLight: "#e0ecf5",
|
|
104
|
+
ColorContextualInfoDark: "#162845",
|
|
105
|
+
ColorContextualInfoContrastText: "#ffffff",
|
|
106
|
+
ColorContextualDefaultMain: "#889099",
|
|
107
|
+
ColorContextualDefaultLight: "#cacfd4",
|
|
108
|
+
ColorContextualDefaultDark: "#6e7781",
|
|
109
|
+
ColorContextualDefaultContrastText: "#ffffff",
|
|
110
|
+
ColorActionActive: "#444444",
|
|
111
|
+
ColorActionHover: "#0060ac",
|
|
112
|
+
ColorActionSelected: "#c2d8e7",
|
|
113
|
+
ColorActionDisabled: "#6e7781",
|
|
114
|
+
SpacingXxs: "6",
|
|
115
|
+
SpacingXs: "8",
|
|
116
|
+
SpacingSm: "12",
|
|
117
|
+
SpacingMd: "16",
|
|
118
|
+
SpacingLg: "24"
|
|
119
|
+
};
|
|
120
|
+
|
|
77
121
|
const grey$1 = {
|
|
78
122
|
900: "#1c2836",
|
|
79
123
|
800: "#263042",
|
|
@@ -97,7 +141,7 @@ const blue$3 = {
|
|
|
97
141
|
|
|
98
142
|
const extendedPalette = {
|
|
99
143
|
border: {
|
|
100
|
-
main:
|
|
144
|
+
main: tokens.ColorTextPrimary,
|
|
101
145
|
// light: tokens.ColorBorderLight,
|
|
102
146
|
// dark: tokens.ColorBorderDark,
|
|
103
147
|
// darker: tokens.ColorBorderDarker,
|
|
@@ -106,16 +150,16 @@ const extendedPalette = {
|
|
|
106
150
|
|
|
107
151
|
const palette$7 = {
|
|
108
152
|
primary: {
|
|
109
|
-
main:
|
|
110
|
-
light:
|
|
111
|
-
dark:
|
|
153
|
+
main: tokens.ColorPrimaryMain,
|
|
154
|
+
light: tokens.ColorPrimaryLight,
|
|
155
|
+
dark: tokens.ColorPrimaryDark,
|
|
112
156
|
transparent: 'rgba(0,96,172, 0.12)',
|
|
113
157
|
contrastText: '#fff',
|
|
114
158
|
},
|
|
115
159
|
secondary: {
|
|
116
|
-
main:
|
|
117
|
-
light:
|
|
118
|
-
dark:
|
|
160
|
+
main: tokens.ColorSecondaryMain,
|
|
161
|
+
light: tokens.ColorSecondaryLight,
|
|
162
|
+
dark: tokens.ColorSecondaryDark,
|
|
119
163
|
transparent: 'rgba(245,146,69, 0.12)',
|
|
120
164
|
contrastText: '#fff',
|
|
121
165
|
},
|
|
@@ -127,34 +171,34 @@ const palette$7 = {
|
|
|
127
171
|
contrastText: '#fff',
|
|
128
172
|
},
|
|
129
173
|
info: {
|
|
130
|
-
main:
|
|
131
|
-
light:
|
|
132
|
-
dark:
|
|
174
|
+
main: tokens.ColorContextualInfoLight,
|
|
175
|
+
light: tokens.ColorContextualInfodLight,
|
|
176
|
+
dark: tokens.ColorContextualInfoDark,
|
|
133
177
|
transparent: 'rgba(30,54,94, 0.15)',
|
|
134
178
|
contrastText: '#fff',
|
|
135
179
|
},
|
|
136
180
|
error: {
|
|
137
|
-
main:
|
|
138
|
-
light:
|
|
139
|
-
dark:
|
|
181
|
+
main: tokens.ColorContextualDangerMain,
|
|
182
|
+
light: tokens.ColorContextualDangerLight,
|
|
183
|
+
dark: tokens.ColorContextualDangerDark,
|
|
140
184
|
transparent: 'rgba(192,46,33, 0.12)',
|
|
141
185
|
},
|
|
142
186
|
warning: {
|
|
143
|
-
main:
|
|
144
|
-
light:
|
|
145
|
-
dark:
|
|
187
|
+
main: tokens.ColorContextualWarningMain,
|
|
188
|
+
light: tokens.ColorContextualWarningLight,
|
|
189
|
+
dark: tokens.ColorContextualWarningDark,
|
|
146
190
|
transparent: 'rgba(245,146,69, 0.12)',
|
|
147
191
|
},
|
|
148
192
|
success: {
|
|
149
|
-
main:
|
|
150
|
-
light:
|
|
151
|
-
dark:
|
|
193
|
+
main: tokens.ColorContextualSuccessMain,
|
|
194
|
+
light: tokens.ColorContextualSuccessLight,
|
|
195
|
+
dark: tokens.ColorContextualSuccessDark,
|
|
152
196
|
transparent: 'rgba(63,175,42, 0.12)',
|
|
153
197
|
},
|
|
154
198
|
text: {
|
|
155
|
-
primary:
|
|
156
|
-
secondary:
|
|
157
|
-
disabled:
|
|
199
|
+
primary: tokens.ColorTextPrimary,
|
|
200
|
+
secondary: tokens.ColorTextSecondary,
|
|
201
|
+
disabled: tokens.ColorTextDisabled,
|
|
158
202
|
link: '#0060AA',
|
|
159
203
|
active: '#1E365E',
|
|
160
204
|
light: '#AAB0B8',
|
|
@@ -373,16 +417,16 @@ const blue$2 = {
|
|
|
373
417
|
|
|
374
418
|
const palette$6 = {
|
|
375
419
|
primary: {
|
|
376
|
-
main:
|
|
377
|
-
light:
|
|
378
|
-
dark:
|
|
420
|
+
main: tokens.ColorPrimaryMain,
|
|
421
|
+
light: tokens.ColorPrimaryLight,
|
|
422
|
+
dark: tokens.ColorPrimaryDark,
|
|
379
423
|
transparent: 'rgba(0,96,172, 0.12)',
|
|
380
424
|
contrastText: '#fff',
|
|
381
425
|
},
|
|
382
426
|
secondary: {
|
|
383
|
-
main:
|
|
384
|
-
light:
|
|
385
|
-
dark:
|
|
427
|
+
main: tokens.ColorSecondaryMain,
|
|
428
|
+
light: tokens.ColorSecondaryLight,
|
|
429
|
+
dark: tokens.ColorSecondaryDark,
|
|
386
430
|
transparent: 'rgba(245,146,69, 0.12)',
|
|
387
431
|
contrastText: '#fff',
|
|
388
432
|
},
|
|
@@ -394,34 +438,34 @@ const palette$6 = {
|
|
|
394
438
|
contrastText: '#fff',
|
|
395
439
|
},
|
|
396
440
|
info: {
|
|
397
|
-
main:
|
|
398
|
-
light:
|
|
399
|
-
dark:
|
|
441
|
+
main: tokens.ColorContextualInfoLight,
|
|
442
|
+
light: tokens.ColorContextualInfodLight,
|
|
443
|
+
dark: tokens.ColorContextualInfoDark,
|
|
400
444
|
transparent: 'rgba(30,54,94, 0.15)',
|
|
401
445
|
contrastText: '#fff',
|
|
402
446
|
},
|
|
403
447
|
error: {
|
|
404
|
-
main:
|
|
405
|
-
light:
|
|
406
|
-
dark:
|
|
448
|
+
main: tokens.ColorContextualDangerMain,
|
|
449
|
+
light: tokens.ColorContextualDangerLight,
|
|
450
|
+
dark: tokens.ColorContextualDangerDark,
|
|
407
451
|
transparent: 'rgba(192,46,33, 0.12)',
|
|
408
452
|
},
|
|
409
453
|
warning: {
|
|
410
|
-
main:
|
|
411
|
-
light:
|
|
412
|
-
dark:
|
|
454
|
+
main: tokens.ColorContextualWarningMain,
|
|
455
|
+
light: tokens.ColorContextualWarningLight,
|
|
456
|
+
dark: tokens.ColorContextualWarningDark,
|
|
413
457
|
transparent: 'rgba(245,146,69, 0.12)',
|
|
414
458
|
},
|
|
415
459
|
success: {
|
|
416
|
-
main:
|
|
417
|
-
light:
|
|
418
|
-
dark:
|
|
460
|
+
main: tokens.ColorContextualSuccessMain,
|
|
461
|
+
light: tokens.ColorContextualSuccessLight,
|
|
462
|
+
dark: tokens.ColorContextualSuccessDark,
|
|
419
463
|
transparent: 'rgba(63,175,42, 0.12)',
|
|
420
464
|
},
|
|
421
465
|
text: {
|
|
422
|
-
primary:
|
|
423
|
-
secondary:
|
|
424
|
-
disabled:
|
|
466
|
+
primary: tokens.ColorTextPrimary,
|
|
467
|
+
secondary: tokens.ColorTextSecondary,
|
|
468
|
+
disabled: tokens.ColorTextDisabled,
|
|
425
469
|
link: '#0060AA',
|
|
426
470
|
active: '#1E365E',
|
|
427
471
|
light: '#AAB0B8',
|
|
@@ -4845,23 +4889,6 @@ var Checkbox = function (props) {
|
|
|
4845
4889
|
return (jsxRuntime.jsx(CustomFormControlLabel, { value: value, label: jsxRuntime.jsx(material.Typography, __assign({ variant: labelStyles }, { children: label })), control: jsxRuntime.jsx(material.Checkbox, __assign({}, rest, { value: value, disableRipple: true, color: "default", icon: jsxRuntime.jsx(Icon, { name: SvgCheckboxUncontrolled }), checkedIcon: jsxRuntime.jsx(Icon, { name: SvgCheckboxChecked }), indeterminateIcon: jsxRuntime.jsx(Icon, { name: SvgCheckboxIndeterminate }) })) }));
|
|
4846
4890
|
};
|
|
4847
4891
|
|
|
4848
|
-
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
4849
|
-
|
|
4850
|
-
function getAugmentedNamespace(n) {
|
|
4851
|
-
if (n.__esModule) return n;
|
|
4852
|
-
var a = Object.defineProperty({}, '__esModule', {value: true});
|
|
4853
|
-
Object.keys(n).forEach(function (k) {
|
|
4854
|
-
var d = Object.getOwnPropertyDescriptor(n, k);
|
|
4855
|
-
Object.defineProperty(a, k, d.get ? d : {
|
|
4856
|
-
enumerable: true,
|
|
4857
|
-
get: function () {
|
|
4858
|
-
return n[k];
|
|
4859
|
-
}
|
|
4860
|
-
});
|
|
4861
|
-
});
|
|
4862
|
-
return a;
|
|
4863
|
-
}
|
|
4864
|
-
|
|
4865
4892
|
var dist = {};
|
|
4866
4893
|
|
|
4867
4894
|
var DateRange$1 = {};
|