@xelto.npm/xc-lib 1.1.0 → 1.1.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/components.js +2 -0
- package/dist/index.cjs.js +19 -7
- package/dist/index.esm.js +20 -8
- package/package.json +6 -3
- package/store.js +2 -0
- package/utils.js +2 -0
package/components.js
ADDED
package/dist/index.cjs.js
CHANGED
|
@@ -7146,7 +7146,7 @@ function getLuminance(color) {
|
|
|
7146
7146
|
|
|
7147
7147
|
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
|
7148
7148
|
}
|
|
7149
|
-
var warnedOnce$
|
|
7149
|
+
var warnedOnce$2 = false;
|
|
7150
7150
|
/**
|
|
7151
7151
|
* Set the absolute transparency of a color.
|
|
7152
7152
|
* Any existing alpha values are overwritten.
|
|
@@ -7161,8 +7161,8 @@ var warnedOnce$1 = false;
|
|
|
7161
7161
|
|
|
7162
7162
|
function fade(color, value) {
|
|
7163
7163
|
if (process.env.NODE_ENV !== 'production') {
|
|
7164
|
-
if (!warnedOnce$
|
|
7165
|
-
warnedOnce$
|
|
7164
|
+
if (!warnedOnce$2) {
|
|
7165
|
+
warnedOnce$2 = true;
|
|
7166
7166
|
console.error(['Material-UI: The `fade` color utility was renamed to `alpha` to better describe its functionality.', '', "You should use `import { alpha } from '@material-ui/core/styles'`"].join('\n'));
|
|
7167
7167
|
}
|
|
7168
7168
|
}
|
|
@@ -7456,13 +7456,13 @@ function round(value) {
|
|
|
7456
7456
|
return Math.round(value * 1e5) / 1e5;
|
|
7457
7457
|
}
|
|
7458
7458
|
|
|
7459
|
-
var warnedOnce = false;
|
|
7459
|
+
var warnedOnce$1 = false;
|
|
7460
7460
|
|
|
7461
7461
|
function roundWithDeprecationWarning(value) {
|
|
7462
7462
|
if (process.env.NODE_ENV !== 'production') {
|
|
7463
|
-
if (!warnedOnce) {
|
|
7463
|
+
if (!warnedOnce$1) {
|
|
7464
7464
|
console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://material-ui.com/r/migration-v4/#theme for a migration path.'].join('\n'));
|
|
7465
|
-
warnedOnce = true;
|
|
7465
|
+
warnedOnce$1 = true;
|
|
7466
7466
|
}
|
|
7467
7467
|
}
|
|
7468
7468
|
|
|
@@ -7919,6 +7919,18 @@ function createTheme() {
|
|
|
7919
7919
|
return muiTheme;
|
|
7920
7920
|
}
|
|
7921
7921
|
|
|
7922
|
+
var warnedOnce = false;
|
|
7923
|
+
function createMuiTheme() {
|
|
7924
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7925
|
+
if (!warnedOnce) {
|
|
7926
|
+
warnedOnce = true;
|
|
7927
|
+
console.error(['Material-UI: the createMuiTheme function was renamed to createTheme.', '', "You should use `import { createTheme } from '@material-ui/core/styles'`"].join('\n'));
|
|
7928
|
+
}
|
|
7929
|
+
}
|
|
7930
|
+
|
|
7931
|
+
return createTheme.apply(void 0, arguments);
|
|
7932
|
+
}
|
|
7933
|
+
|
|
7922
7934
|
var defaultTheme = createTheme();
|
|
7923
7935
|
var defaultTheme$1 = defaultTheme;
|
|
7924
7936
|
|
|
@@ -35691,7 +35703,7 @@ var Utils = {
|
|
|
35691
35703
|
}
|
|
35692
35704
|
};
|
|
35693
35705
|
|
|
35694
|
-
var theme =
|
|
35706
|
+
var theme = createMuiTheme({
|
|
35695
35707
|
props: {
|
|
35696
35708
|
MuiButtonBase: {
|
|
35697
35709
|
disableRipple: true
|
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as React$a from 'react';
|
|
|
2
2
|
import React__default, { Children, isValidElement, cloneElement, createContext, useMemo, createElement, useContext, useEffect, useLayoutEffect, Fragment, useRef, Component, useCallback, memo, forwardRef, useState, useDebugValue } from 'react';
|
|
3
3
|
import * as ReactDOM from 'react-dom';
|
|
4
4
|
import ReactDOM__default from 'react-dom';
|
|
5
|
-
import { Grid as Grid$2, Dialog as Dialog$3, Typography as Typography$2, SvgIcon as SvgIcon$2, Paper as Paper$2, FormControl as FormControl$2, RadioGroup, FormControlLabel, Radio
|
|
5
|
+
import { Grid as Grid$2, Dialog as Dialog$3, Typography as Typography$2, SvgIcon as SvgIcon$2, Paper as Paper$2, FormControl as FormControl$2, RadioGroup, FormControlLabel, Radio } from '@material-ui/core';
|
|
6
6
|
import require$$0$1 from 'crypto';
|
|
7
7
|
import { push } from 'connected-react-router';
|
|
8
8
|
import { create as create$1, CancelToken } from 'apisauce';
|
|
@@ -7126,7 +7126,7 @@ function getLuminance(color) {
|
|
|
7126
7126
|
|
|
7127
7127
|
return Number((0.2126 * rgb[0] + 0.7152 * rgb[1] + 0.0722 * rgb[2]).toFixed(3));
|
|
7128
7128
|
}
|
|
7129
|
-
var warnedOnce$
|
|
7129
|
+
var warnedOnce$2 = false;
|
|
7130
7130
|
/**
|
|
7131
7131
|
* Set the absolute transparency of a color.
|
|
7132
7132
|
* Any existing alpha values are overwritten.
|
|
@@ -7141,8 +7141,8 @@ var warnedOnce$1 = false;
|
|
|
7141
7141
|
|
|
7142
7142
|
function fade(color, value) {
|
|
7143
7143
|
if (process.env.NODE_ENV !== 'production') {
|
|
7144
|
-
if (!warnedOnce$
|
|
7145
|
-
warnedOnce$
|
|
7144
|
+
if (!warnedOnce$2) {
|
|
7145
|
+
warnedOnce$2 = true;
|
|
7146
7146
|
console.error(['Material-UI: The `fade` color utility was renamed to `alpha` to better describe its functionality.', '', "You should use `import { alpha } from '@material-ui/core/styles'`"].join('\n'));
|
|
7147
7147
|
}
|
|
7148
7148
|
}
|
|
@@ -7436,13 +7436,13 @@ function round(value) {
|
|
|
7436
7436
|
return Math.round(value * 1e5) / 1e5;
|
|
7437
7437
|
}
|
|
7438
7438
|
|
|
7439
|
-
var warnedOnce = false;
|
|
7439
|
+
var warnedOnce$1 = false;
|
|
7440
7440
|
|
|
7441
7441
|
function roundWithDeprecationWarning(value) {
|
|
7442
7442
|
if (process.env.NODE_ENV !== 'production') {
|
|
7443
|
-
if (!warnedOnce) {
|
|
7443
|
+
if (!warnedOnce$1) {
|
|
7444
7444
|
console.warn(['Material-UI: The `theme.typography.round` helper is deprecated.', 'Head to https://material-ui.com/r/migration-v4/#theme for a migration path.'].join('\n'));
|
|
7445
|
-
warnedOnce = true;
|
|
7445
|
+
warnedOnce$1 = true;
|
|
7446
7446
|
}
|
|
7447
7447
|
}
|
|
7448
7448
|
|
|
@@ -7899,6 +7899,18 @@ function createTheme() {
|
|
|
7899
7899
|
return muiTheme;
|
|
7900
7900
|
}
|
|
7901
7901
|
|
|
7902
|
+
var warnedOnce = false;
|
|
7903
|
+
function createMuiTheme() {
|
|
7904
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
7905
|
+
if (!warnedOnce) {
|
|
7906
|
+
warnedOnce = true;
|
|
7907
|
+
console.error(['Material-UI: the createMuiTheme function was renamed to createTheme.', '', "You should use `import { createTheme } from '@material-ui/core/styles'`"].join('\n'));
|
|
7908
|
+
}
|
|
7909
|
+
}
|
|
7910
|
+
|
|
7911
|
+
return createTheme.apply(void 0, arguments);
|
|
7912
|
+
}
|
|
7913
|
+
|
|
7902
7914
|
var defaultTheme = createTheme();
|
|
7903
7915
|
var defaultTheme$1 = defaultTheme;
|
|
7904
7916
|
|
|
@@ -35671,7 +35683,7 @@ var Utils = {
|
|
|
35671
35683
|
}
|
|
35672
35684
|
};
|
|
35673
35685
|
|
|
35674
|
-
var theme =
|
|
35686
|
+
var theme = createMuiTheme({
|
|
35675
35687
|
props: {
|
|
35676
35688
|
MuiButtonBase: {
|
|
35677
35689
|
disableRipple: true
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xelto.npm/xc-lib",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Xelcode Library containing components and utilities",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "MIT",
|
|
@@ -12,13 +12,16 @@
|
|
|
12
12
|
"node": ">=14"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"build": "rollup -c rollup.config.mjs"
|
|
15
|
+
"build": "rollup -c rollup.config.mjs && node scripts/write-subpath-reexports.cjs"
|
|
16
16
|
},
|
|
17
17
|
"main": "dist/index.cjs.js",
|
|
18
18
|
"module": "dist/index.esm.js",
|
|
19
19
|
"source": "src/index.js",
|
|
20
20
|
"files": [
|
|
21
|
-
"dist"
|
|
21
|
+
"dist",
|
|
22
|
+
"utils.js",
|
|
23
|
+
"components.js",
|
|
24
|
+
"store.js"
|
|
22
25
|
],
|
|
23
26
|
"keywords": [
|
|
24
27
|
"xelcode",
|
package/store.js
ADDED
package/utils.js
ADDED