@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.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: tokens__namespace.ColorTextPrimary,
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: tokens__namespace.ColorPrimaryMain,
110
- light: tokens__namespace.ColorPrimaryLight,
111
- dark: tokens__namespace.ColorPrimaryDark,
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: tokens__namespace.ColorSecondaryMain,
117
- light: tokens__namespace.ColorSecondaryLight,
118
- dark: tokens__namespace.ColorSecondaryDark,
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: tokens__namespace.ColorContextualInfoLight,
131
- light: tokens__namespace.ColorContextualInfodLight,
132
- dark: tokens__namespace.ColorContextualInfoDark,
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: tokens__namespace.ColorContextualDangerMain,
138
- light: tokens__namespace.ColorContextualDangerLight,
139
- dark: tokens__namespace.ColorContextualDangerDark,
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: tokens__namespace.ColorContextualWarningMain,
144
- light: tokens__namespace.ColorContextualWarningLight,
145
- dark: tokens__namespace.ColorContextualWarningDark,
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: tokens__namespace.ColorContextualSuccessMain,
150
- light: tokens__namespace.ColorContextualSuccessLight,
151
- dark: tokens__namespace.ColorContextualSuccessDark,
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: tokens__namespace.ColorTextPrimary,
156
- secondary: tokens__namespace.ColorTextSecondary,
157
- disabled: tokens__namespace.ColorTextDisabled,
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: tokens__namespace.ColorPrimaryMain,
377
- light: tokens__namespace.ColorPrimaryLight,
378
- dark: tokens__namespace.ColorPrimaryDark,
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: tokens__namespace.ColorSecondaryMain,
384
- light: tokens__namespace.ColorSecondaryLight,
385
- dark: tokens__namespace.ColorSecondaryDark,
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: tokens__namespace.ColorContextualInfoLight,
398
- light: tokens__namespace.ColorContextualInfodLight,
399
- dark: tokens__namespace.ColorContextualInfoDark,
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: tokens__namespace.ColorContextualDangerMain,
405
- light: tokens__namespace.ColorContextualDangerLight,
406
- dark: tokens__namespace.ColorContextualDangerDark,
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: tokens__namespace.ColorContextualWarningMain,
411
- light: tokens__namespace.ColorContextualWarningLight,
412
- dark: tokens__namespace.ColorContextualWarningDark,
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: tokens__namespace.ColorContextualSuccessMain,
417
- light: tokens__namespace.ColorContextualSuccessLight,
418
- dark: tokens__namespace.ColorContextualSuccessDark,
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: tokens__namespace.ColorTextPrimary,
423
- secondary: tokens__namespace.ColorTextSecondary,
424
- disabled: tokens__namespace.ColorTextDisabled,
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 = {};