@xelto.npm/xc2-lib 0.0.10 → 0.0.13
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/cjs/index.js +454 -45
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/appTile/AppTileComponent.d.ts +2 -1
- package/dist/cjs/types/components/index.d.ts +1 -1
- package/dist/cjs/types/components/typography/Typography.d.ts +8 -0
- package/dist/cjs/types/components/typography/index.d.ts +1 -0
- package/dist/esm/index.js +454 -45
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/appTile/AppTileComponent.d.ts +2 -1
- package/dist/esm/types/components/index.d.ts +1 -1
- package/dist/esm/types/components/typography/Typography.d.ts +8 -0
- package/dist/esm/types/components/typography/index.d.ts +1 -0
- package/dist/index.d.ts +7 -3
- package/package.json +114 -114
- package/dist/cjs/types/components/aTempComponent/ATempComponent.d.ts +0 -5
- package/dist/cjs/types/components/aTempComponent/index.d.ts +0 -1
- package/dist/esm/types/components/aTempComponent/ATempComponent.d.ts +0 -5
- package/dist/esm/types/components/aTempComponent/index.d.ts +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -6256,7 +6256,7 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
|
|
|
6256
6256
|
const styleFunctionSx = unstable_createStyleFunctionSx();
|
|
6257
6257
|
styleFunctionSx.filterProps = ['sx'];
|
|
6258
6258
|
|
|
6259
|
-
const _excluded$
|
|
6259
|
+
const _excluded$f = ["sx"];
|
|
6260
6260
|
const splitProps = props => {
|
|
6261
6261
|
const result = {
|
|
6262
6262
|
systemProps: {},
|
|
@@ -6275,7 +6275,7 @@ function extendSxProp(props) {
|
|
|
6275
6275
|
const {
|
|
6276
6276
|
sx: inSx
|
|
6277
6277
|
} = props,
|
|
6278
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6278
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$f);
|
|
6279
6279
|
const {
|
|
6280
6280
|
systemProps,
|
|
6281
6281
|
otherProps
|
|
@@ -6301,7 +6301,7 @@ function extendSxProp(props) {
|
|
|
6301
6301
|
|
|
6302
6302
|
function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
|
|
6303
6303
|
|
|
6304
|
-
const _excluded$
|
|
6304
|
+
const _excluded$e = ["values", "unit", "step"];
|
|
6305
6305
|
const sortBreakpointsValues = values => {
|
|
6306
6306
|
const breakpointsAsArray = Object.keys(values).map(key => ({
|
|
6307
6307
|
key,
|
|
@@ -6336,7 +6336,7 @@ function createBreakpoints(breakpoints) {
|
|
|
6336
6336
|
unit = 'px',
|
|
6337
6337
|
step = 5
|
|
6338
6338
|
} = breakpoints,
|
|
6339
|
-
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$
|
|
6339
|
+
other = _objectWithoutPropertiesLoose(breakpoints, _excluded$e);
|
|
6340
6340
|
const sortedValues = sortBreakpointsValues(values);
|
|
6341
6341
|
const keys = Object.keys(sortedValues);
|
|
6342
6342
|
function up(key) {
|
|
@@ -6414,7 +6414,7 @@ function createSpacing(spacingInput = 8) {
|
|
|
6414
6414
|
return spacing;
|
|
6415
6415
|
}
|
|
6416
6416
|
|
|
6417
|
-
const _excluded$
|
|
6417
|
+
const _excluded$d = ["breakpoints", "palette", "spacing", "shape"];
|
|
6418
6418
|
function createTheme$1(options = {}, ...args) {
|
|
6419
6419
|
const {
|
|
6420
6420
|
breakpoints: breakpointsInput = {},
|
|
@@ -6422,7 +6422,7 @@ function createTheme$1(options = {}, ...args) {
|
|
|
6422
6422
|
spacing: spacingInput,
|
|
6423
6423
|
shape: shapeInput = {}
|
|
6424
6424
|
} = options,
|
|
6425
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
6425
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$d);
|
|
6426
6426
|
const breakpoints = createBreakpoints(breakpointsInput);
|
|
6427
6427
|
const spacing = createSpacing(spacingInput);
|
|
6428
6428
|
let muiTheme = deepmerge({
|
|
@@ -6526,7 +6526,7 @@ function useTheme(defaultTheme = systemDefaultTheme$1) {
|
|
|
6526
6526
|
return useTheme$1(defaultTheme);
|
|
6527
6527
|
}
|
|
6528
6528
|
|
|
6529
|
-
const _excluded$
|
|
6529
|
+
const _excluded$c = ["className", "component"];
|
|
6530
6530
|
function createBox(options = {}) {
|
|
6531
6531
|
const {
|
|
6532
6532
|
defaultTheme,
|
|
@@ -6544,7 +6544,7 @@ function createBox(options = {}) {
|
|
|
6544
6544
|
className,
|
|
6545
6545
|
component = 'div'
|
|
6546
6546
|
} = _extendSxProp,
|
|
6547
|
-
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$
|
|
6547
|
+
other = _objectWithoutPropertiesLoose(_extendSxProp, _excluded$c);
|
|
6548
6548
|
return /*#__PURE__*/jsxRuntime.exports.jsx(BoxRoot, _extends$1({
|
|
6549
6549
|
as: component,
|
|
6550
6550
|
ref: ref,
|
|
@@ -6576,7 +6576,7 @@ process.env.NODE_ENV !== "production" ? Box$1.propTypes /* remove-proptypes */ =
|
|
|
6576
6576
|
sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object])
|
|
6577
6577
|
} : void 0;
|
|
6578
6578
|
|
|
6579
|
-
const _excluded$
|
|
6579
|
+
const _excluded$b = ["variant"];
|
|
6580
6580
|
function isEmpty$1(string) {
|
|
6581
6581
|
return string.length === 0;
|
|
6582
6582
|
}
|
|
@@ -6590,7 +6590,7 @@ function propsToClassKey(props) {
|
|
|
6590
6590
|
const {
|
|
6591
6591
|
variant
|
|
6592
6592
|
} = props,
|
|
6593
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6593
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$b);
|
|
6594
6594
|
let classKey = variant || '';
|
|
6595
6595
|
Object.keys(other).sort().forEach(key => {
|
|
6596
6596
|
if (key === 'color') {
|
|
@@ -6602,7 +6602,7 @@ function propsToClassKey(props) {
|
|
|
6602
6602
|
return classKey;
|
|
6603
6603
|
}
|
|
6604
6604
|
|
|
6605
|
-
const _excluded$
|
|
6605
|
+
const _excluded$a = ["name", "slot", "skipVariantsResolver", "skipSx", "overridesResolver"],
|
|
6606
6606
|
_excluded2$1 = ["theme"],
|
|
6607
6607
|
_excluded3 = ["theme"];
|
|
6608
6608
|
function isEmpty(obj) {
|
|
@@ -6690,7 +6690,7 @@ function createStyled(input = {}) {
|
|
|
6690
6690
|
skipSx: inputSkipSx,
|
|
6691
6691
|
overridesResolver
|
|
6692
6692
|
} = inputOptions,
|
|
6693
|
-
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$
|
|
6693
|
+
options = _objectWithoutPropertiesLoose(inputOptions, _excluded$a);
|
|
6694
6694
|
|
|
6695
6695
|
// if skipVariantsResolver option is defined, take the value, otherwise, true for root and false for other slots.
|
|
6696
6696
|
const skipVariantsResolver = inputSkipVariantsResolver !== undefined ? inputSkipVariantsResolver : componentSlot && componentSlot !== 'Root' || false;
|
|
@@ -6812,7 +6812,7 @@ function getThemeProps(params) {
|
|
|
6812
6812
|
return resolveProps(theme.components[name].defaultProps, props);
|
|
6813
6813
|
}
|
|
6814
6814
|
|
|
6815
|
-
function useThemeProps({
|
|
6815
|
+
function useThemeProps$1({
|
|
6816
6816
|
props,
|
|
6817
6817
|
name,
|
|
6818
6818
|
defaultTheme
|
|
@@ -7555,7 +7555,7 @@ function useCurrentColorScheme(options) {
|
|
|
7555
7555
|
});
|
|
7556
7556
|
}
|
|
7557
7557
|
|
|
7558
|
-
const _excluded$
|
|
7558
|
+
const _excluded$9 = ["colorSchemes", "components", "cssVarPrefix"];
|
|
7559
7559
|
const DISABLE_CSS_TRANSITION = '*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}';
|
|
7560
7560
|
function createCssVarsProvider(options) {
|
|
7561
7561
|
const {
|
|
@@ -7607,7 +7607,7 @@ function createCssVarsProvider(options) {
|
|
|
7607
7607
|
components = {},
|
|
7608
7608
|
cssVarPrefix
|
|
7609
7609
|
} = themeProp,
|
|
7610
|
-
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$
|
|
7610
|
+
restThemeProp = _objectWithoutPropertiesLoose(themeProp, _excluded$9);
|
|
7611
7611
|
const allColorSchemes = Object.keys(colorSchemes);
|
|
7612
7612
|
const defaultLightColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.light;
|
|
7613
7613
|
const defaultDarkColorScheme = typeof defaultColorScheme === 'string' ? defaultColorScheme : defaultColorScheme.dark;
|
|
@@ -7905,7 +7905,7 @@ function createGetCssVar$1(prefix = '') {
|
|
|
7905
7905
|
return getCssVar;
|
|
7906
7906
|
}
|
|
7907
7907
|
|
|
7908
|
-
const _excluded$
|
|
7908
|
+
const _excluded$8 = ["className", "component", "disableGutters", "fixed", "maxWidth", "classes"];
|
|
7909
7909
|
const defaultTheme$5 = createTheme$1();
|
|
7910
7910
|
const defaultCreateStyledComponent$2 = styled$1('div', {
|
|
7911
7911
|
name: 'MuiContainer',
|
|
@@ -7917,12 +7917,12 @@ const defaultCreateStyledComponent$2 = styled$1('div', {
|
|
|
7917
7917
|
return [styles.root, styles[`maxWidth${capitalize(String(ownerState.maxWidth))}`], ownerState.fixed && styles.fixed, ownerState.disableGutters && styles.disableGutters];
|
|
7918
7918
|
}
|
|
7919
7919
|
});
|
|
7920
|
-
const useThemePropsDefault$2 = inProps => useThemeProps({
|
|
7920
|
+
const useThemePropsDefault$2 = inProps => useThemeProps$1({
|
|
7921
7921
|
props: inProps,
|
|
7922
7922
|
name: 'MuiContainer',
|
|
7923
7923
|
defaultTheme: defaultTheme$5
|
|
7924
7924
|
});
|
|
7925
|
-
const useUtilityClasses = (ownerState, componentName) => {
|
|
7925
|
+
const useUtilityClasses$1 = (ownerState, componentName) => {
|
|
7926
7926
|
const getContainerUtilityClass = slot => {
|
|
7927
7927
|
return generateUtilityClass(componentName, slot);
|
|
7928
7928
|
};
|
|
@@ -8001,7 +8001,7 @@ function createContainer(options = {}) {
|
|
|
8001
8001
|
fixed = false,
|
|
8002
8002
|
maxWidth = 'lg'
|
|
8003
8003
|
} = props,
|
|
8004
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8004
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$8);
|
|
8005
8005
|
const ownerState = _extends$1({}, props, {
|
|
8006
8006
|
component,
|
|
8007
8007
|
disableGutters,
|
|
@@ -8010,7 +8010,7 @@ function createContainer(options = {}) {
|
|
|
8010
8010
|
});
|
|
8011
8011
|
|
|
8012
8012
|
// @ts-ignore module augmentation fails if custom breakpoints are used
|
|
8013
|
-
const classes = useUtilityClasses(ownerState, componentName);
|
|
8013
|
+
const classes = useUtilityClasses$1(ownerState, componentName);
|
|
8014
8014
|
return (
|
|
8015
8015
|
/*#__PURE__*/
|
|
8016
8016
|
// @ts-ignore theme is injected by the styled util
|
|
@@ -8324,7 +8324,7 @@ const generateDirectionClasses = direction => {
|
|
|
8324
8324
|
return [`direction-xs-${String(direction)}`];
|
|
8325
8325
|
};
|
|
8326
8326
|
|
|
8327
|
-
const _excluded$
|
|
8327
|
+
const _excluded$7 = ["className", "columns", "container", "component", "direction", "wrap", "spacing", "rowSpacing", "columnSpacing", "disableEqualOverflow"];
|
|
8328
8328
|
const defaultTheme$4 = createTheme$1();
|
|
8329
8329
|
|
|
8330
8330
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
@@ -8334,7 +8334,7 @@ const defaultCreateStyledComponent$1 = styled$1('div', {
|
|
|
8334
8334
|
overridesResolver: (props, styles) => styles.root
|
|
8335
8335
|
});
|
|
8336
8336
|
function useThemePropsDefault$1(props) {
|
|
8337
|
-
return useThemeProps({
|
|
8337
|
+
return useThemeProps$1({
|
|
8338
8338
|
props,
|
|
8339
8339
|
name: 'MuiGrid',
|
|
8340
8340
|
defaultTheme: defaultTheme$4
|
|
@@ -8382,7 +8382,7 @@ function createGrid(options = {}) {
|
|
|
8382
8382
|
columnSpacing: columnSpacingProp = spacingProp,
|
|
8383
8383
|
disableEqualOverflow: themeDisableEqualOverflow
|
|
8384
8384
|
} = props,
|
|
8385
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8385
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$7);
|
|
8386
8386
|
// Because `disableEqualOverflow` can be set from the theme's defaultProps, the **nested** grid should look at the instance props instead.
|
|
8387
8387
|
let disableEqualOverflow = themeDisableEqualOverflow;
|
|
8388
8388
|
if (nested && themeDisableEqualOverflow !== undefined) {
|
|
@@ -8635,7 +8635,7 @@ generateUtilityClasses('MuiGrid', ['root', 'container', 'item',
|
|
|
8635
8635
|
// grid sizes for all breakpoints
|
|
8636
8636
|
...GRID_SIZES.map(size => `grid-xs-${size}`), ...GRID_SIZES.map(size => `grid-sm-${size}`), ...GRID_SIZES.map(size => `grid-md-${size}`), ...GRID_SIZES.map(size => `grid-lg-${size}`), ...GRID_SIZES.map(size => `grid-xl-${size}`)]);
|
|
8637
8637
|
|
|
8638
|
-
const _excluded$
|
|
8638
|
+
const _excluded$6 = ["component", "direction", "spacing", "divider", "children", "className"];
|
|
8639
8639
|
const defaultTheme$3 = createTheme$1();
|
|
8640
8640
|
// widening Theme to any so that the consumer can own the theme structure.
|
|
8641
8641
|
const defaultCreateStyledComponent = styled$1('div', {
|
|
@@ -8644,7 +8644,7 @@ const defaultCreateStyledComponent = styled$1('div', {
|
|
|
8644
8644
|
overridesResolver: (props, styles) => styles.root
|
|
8645
8645
|
});
|
|
8646
8646
|
function useThemePropsDefault(props) {
|
|
8647
|
-
return useThemeProps({
|
|
8647
|
+
return useThemeProps$1({
|
|
8648
8648
|
props,
|
|
8649
8649
|
name: 'MuiStack',
|
|
8650
8650
|
defaultTheme: defaultTheme$3
|
|
@@ -8758,7 +8758,7 @@ function createStack(options = {}) {
|
|
|
8758
8758
|
children,
|
|
8759
8759
|
className
|
|
8760
8760
|
} = props,
|
|
8761
|
-
other = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8761
|
+
other = _objectWithoutPropertiesLoose(props, _excluded$6);
|
|
8762
8762
|
const ownerState = {
|
|
8763
8763
|
direction,
|
|
8764
8764
|
spacing
|
|
@@ -8967,7 +8967,7 @@ const green = {
|
|
|
8967
8967
|
A700: '#00c853'
|
|
8968
8968
|
};
|
|
8969
8969
|
|
|
8970
|
-
const _excluded$
|
|
8970
|
+
const _excluded$5 = ["mode", "contrastThreshold", "tonalOffset"];
|
|
8971
8971
|
const light = {
|
|
8972
8972
|
// The colors used to style the text.
|
|
8973
8973
|
text: {
|
|
@@ -9136,7 +9136,7 @@ function createPalette(palette) {
|
|
|
9136
9136
|
contrastThreshold = 3,
|
|
9137
9137
|
tonalOffset = 0.2
|
|
9138
9138
|
} = palette,
|
|
9139
|
-
other = _objectWithoutPropertiesLoose(palette, _excluded$
|
|
9139
|
+
other = _objectWithoutPropertiesLoose(palette, _excluded$5);
|
|
9140
9140
|
const primary = palette.primary || getDefaultPrimary(mode);
|
|
9141
9141
|
const secondary = palette.secondary || getDefaultSecondary(mode);
|
|
9142
9142
|
const error = palette.error || getDefaultError(mode);
|
|
@@ -9260,7 +9260,7 @@ const theme2 = createTheme({ palette: {
|
|
|
9260
9260
|
return paletteOutput;
|
|
9261
9261
|
}
|
|
9262
9262
|
|
|
9263
|
-
const _excluded$
|
|
9263
|
+
const _excluded$4 = ["fontFamily", "fontSize", "fontWeightLight", "fontWeightRegular", "fontWeightMedium", "fontWeightBold", "htmlFontSize", "allVariants", "pxToRem"];
|
|
9264
9264
|
function round(value) {
|
|
9265
9265
|
return Math.round(value * 1e5) / 1e5;
|
|
9266
9266
|
}
|
|
@@ -9291,7 +9291,7 @@ function createTypography(palette, typography) {
|
|
|
9291
9291
|
allVariants,
|
|
9292
9292
|
pxToRem: pxToRem2
|
|
9293
9293
|
} = _ref,
|
|
9294
|
-
other = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
9294
|
+
other = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
9295
9295
|
if (process.env.NODE_ENV !== 'production') {
|
|
9296
9296
|
if (typeof fontSize !== 'number') {
|
|
9297
9297
|
console.error('MUI: `fontSize` is required to be a number.');
|
|
@@ -9350,7 +9350,7 @@ function createShadow(...px) {
|
|
|
9350
9350
|
// Values from https://github.com/material-components/material-components-web/blob/be8747f94574669cb5e7add1a7c54fa41a89cec7/packages/mdc-elevation/_variables.scss
|
|
9351
9351
|
const shadows = ['none', createShadow(0, 2, 1, -1, 0, 1, 1, 0, 0, 1, 3, 0), createShadow(0, 3, 1, -2, 0, 2, 2, 0, 0, 1, 5, 0), createShadow(0, 3, 3, -2, 0, 3, 4, 0, 0, 1, 8, 0), createShadow(0, 2, 4, -1, 0, 4, 5, 0, 0, 1, 10, 0), createShadow(0, 3, 5, -1, 0, 5, 8, 0, 0, 1, 14, 0), createShadow(0, 3, 5, -1, 0, 6, 10, 0, 0, 1, 18, 0), createShadow(0, 4, 5, -2, 0, 7, 10, 1, 0, 2, 16, 1), createShadow(0, 5, 5, -3, 0, 8, 10, 1, 0, 3, 14, 2), createShadow(0, 5, 6, -3, 0, 9, 12, 1, 0, 3, 16, 2), createShadow(0, 6, 6, -3, 0, 10, 14, 1, 0, 4, 18, 3), createShadow(0, 6, 7, -4, 0, 11, 15, 1, 0, 4, 20, 3), createShadow(0, 7, 8, -4, 0, 12, 17, 2, 0, 5, 22, 4), createShadow(0, 7, 8, -4, 0, 13, 19, 2, 0, 5, 24, 4), createShadow(0, 7, 9, -4, 0, 14, 21, 2, 0, 5, 26, 4), createShadow(0, 8, 9, -5, 0, 15, 22, 2, 0, 6, 28, 5), createShadow(0, 8, 10, -5, 0, 16, 24, 2, 0, 6, 30, 5), createShadow(0, 8, 11, -5, 0, 17, 26, 2, 0, 6, 32, 5), createShadow(0, 9, 11, -5, 0, 18, 28, 2, 0, 7, 34, 6), createShadow(0, 9, 12, -6, 0, 19, 29, 2, 0, 7, 36, 6), createShadow(0, 10, 13, -6, 0, 20, 31, 3, 0, 8, 38, 7), createShadow(0, 10, 13, -6, 0, 21, 33, 3, 0, 8, 40, 7), createShadow(0, 10, 14, -6, 0, 22, 35, 3, 0, 8, 42, 7), createShadow(0, 11, 14, -7, 0, 23, 36, 3, 0, 9, 44, 8), createShadow(0, 11, 15, -7, 0, 24, 38, 3, 0, 9, 46, 8)];
|
|
9352
9352
|
|
|
9353
|
-
const _excluded$
|
|
9353
|
+
const _excluded$3 = ["duration", "easing", "delay"];
|
|
9354
9354
|
// Follow https://material.google.com/motion/duration-easing.html#duration-easing-natural-easing-curves
|
|
9355
9355
|
// to learn the context in which each easing should be used.
|
|
9356
9356
|
const easing = {
|
|
@@ -9401,7 +9401,7 @@ function createTransitions(inputTransitions) {
|
|
|
9401
9401
|
easing: easingOption = mergedEasing.easeInOut,
|
|
9402
9402
|
delay = 0
|
|
9403
9403
|
} = options,
|
|
9404
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
9404
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$3);
|
|
9405
9405
|
if (process.env.NODE_ENV !== 'production') {
|
|
9406
9406
|
const isString = value => typeof value === 'string';
|
|
9407
9407
|
// IE11 support, replace with Number.isNaN
|
|
@@ -9447,7 +9447,7 @@ const zIndex = {
|
|
|
9447
9447
|
tooltip: 1500
|
|
9448
9448
|
};
|
|
9449
9449
|
|
|
9450
|
-
const _excluded$
|
|
9450
|
+
const _excluded$2 = ["breakpoints", "mixins", "spacing", "palette", "transitions", "typography", "shape"];
|
|
9451
9451
|
function createTheme(options = {}, ...args) {
|
|
9452
9452
|
const {
|
|
9453
9453
|
mixins: mixinsInput = {},
|
|
@@ -9455,7 +9455,7 @@ function createTheme(options = {}, ...args) {
|
|
|
9455
9455
|
transitions: transitionsInput = {},
|
|
9456
9456
|
typography: typographyInput = {}
|
|
9457
9457
|
} = options,
|
|
9458
|
-
other = _objectWithoutPropertiesLoose(options, _excluded$
|
|
9458
|
+
other = _objectWithoutPropertiesLoose(options, _excluded$2);
|
|
9459
9459
|
if (options.vars) {
|
|
9460
9460
|
throw new Error(process.env.NODE_ENV !== "production" ? `MUI: \`vars\` is a private field used for CSS variables support.
|
|
9461
9461
|
Please use another name.` : formatMuiErrorMessage(18));
|
|
@@ -9507,6 +9507,17 @@ Please use another name.` : formatMuiErrorMessage(18));
|
|
|
9507
9507
|
|
|
9508
9508
|
const defaultTheme$2 = createTheme();
|
|
9509
9509
|
|
|
9510
|
+
function useThemeProps({
|
|
9511
|
+
props,
|
|
9512
|
+
name
|
|
9513
|
+
}) {
|
|
9514
|
+
return useThemeProps$1({
|
|
9515
|
+
props,
|
|
9516
|
+
name,
|
|
9517
|
+
defaultTheme: defaultTheme$2
|
|
9518
|
+
});
|
|
9519
|
+
}
|
|
9520
|
+
|
|
9510
9521
|
const rootShouldForwardProp = prop => shouldForwardProp(prop) && prop !== 'classes';
|
|
9511
9522
|
const styled = createStyled({
|
|
9512
9523
|
defaultTheme: defaultTheme$2,
|
|
@@ -9524,7 +9535,7 @@ const getOverlayAlpha = elevation => {
|
|
|
9524
9535
|
return (alphaValue / 100).toFixed(2);
|
|
9525
9536
|
};
|
|
9526
9537
|
|
|
9527
|
-
const _excluded = ["colorSchemes", "cssVarPrefix"],
|
|
9538
|
+
const _excluded$1 = ["colorSchemes", "cssVarPrefix"],
|
|
9528
9539
|
_excluded2 = ["palette"];
|
|
9529
9540
|
const defaultDarkOverlays = [...Array(25)].map((_, index) => {
|
|
9530
9541
|
if (index === 0) {
|
|
@@ -9560,7 +9571,7 @@ function extendTheme(options = {}, ...args) {
|
|
|
9560
9571
|
colorSchemes: colorSchemesInput = {},
|
|
9561
9572
|
cssVarPrefix = 'mui'
|
|
9562
9573
|
} = options,
|
|
9563
|
-
input = _objectWithoutPropertiesLoose(options, _excluded);
|
|
9574
|
+
input = _objectWithoutPropertiesLoose(options, _excluded$1);
|
|
9564
9575
|
const getCssVar = createGetCssVar(cssVarPrefix);
|
|
9565
9576
|
const _createThemeWithoutVa = createTheme(_extends$1({}, input, colorSchemesInput.light && {
|
|
9566
9577
|
palette: (_colorSchemesInput$li = colorSchemesInput.light) == null ? void 0 : _colorSchemesInput$li.palette
|
|
@@ -9835,6 +9846,410 @@ process.env.NODE_ENV !== "production" ? Box.propTypes /* remove-proptypes */ = {
|
|
|
9835
9846
|
sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object])
|
|
9836
9847
|
} : void 0;
|
|
9837
9848
|
|
|
9849
|
+
/******************************************************************************
|
|
9850
|
+
Copyright (c) Microsoft Corporation.
|
|
9851
|
+
|
|
9852
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
9853
|
+
purpose with or without fee is hereby granted.
|
|
9854
|
+
|
|
9855
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9856
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9857
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
9858
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
9859
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
9860
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
9861
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
9862
|
+
***************************************************************************** */
|
|
9863
|
+
|
|
9864
|
+
var __assign = function() {
|
|
9865
|
+
__assign = Object.assign || function __assign(t) {
|
|
9866
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
9867
|
+
s = arguments[i];
|
|
9868
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
9869
|
+
}
|
|
9870
|
+
return t;
|
|
9871
|
+
};
|
|
9872
|
+
return __assign.apply(this, arguments);
|
|
9873
|
+
};
|
|
9874
|
+
|
|
9875
|
+
function __rest(s, e) {
|
|
9876
|
+
var t = {};
|
|
9877
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
9878
|
+
t[p] = s[p];
|
|
9879
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
9880
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
9881
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9882
|
+
t[p[i]] = s[p[i]];
|
|
9883
|
+
}
|
|
9884
|
+
return t;
|
|
9885
|
+
}
|
|
9886
|
+
|
|
9887
|
+
function getTypographyUtilityClass(slot) {
|
|
9888
|
+
return generateUtilityClass('MuiTypography', slot);
|
|
9889
|
+
}
|
|
9890
|
+
generateUtilityClasses('MuiTypography', ['root', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'subtitle1', 'subtitle2', 'body1', 'body2', 'inherit', 'button', 'caption', 'overline', 'alignLeft', 'alignRight', 'alignCenter', 'alignJustify', 'noWrap', 'gutterBottom', 'paragraph']);
|
|
9891
|
+
|
|
9892
|
+
const _excluded = ["align", "className", "component", "gutterBottom", "noWrap", "paragraph", "variant", "variantMapping"];
|
|
9893
|
+
const useUtilityClasses = ownerState => {
|
|
9894
|
+
const {
|
|
9895
|
+
align,
|
|
9896
|
+
gutterBottom,
|
|
9897
|
+
noWrap,
|
|
9898
|
+
paragraph,
|
|
9899
|
+
variant,
|
|
9900
|
+
classes
|
|
9901
|
+
} = ownerState;
|
|
9902
|
+
const slots = {
|
|
9903
|
+
root: ['root', variant, ownerState.align !== 'inherit' && `align${capitalize(align)}`, gutterBottom && 'gutterBottom', noWrap && 'noWrap', paragraph && 'paragraph']
|
|
9904
|
+
};
|
|
9905
|
+
return composeClasses(slots, getTypographyUtilityClass, classes);
|
|
9906
|
+
};
|
|
9907
|
+
const TypographyRoot = styled('span', {
|
|
9908
|
+
name: 'MuiTypography',
|
|
9909
|
+
slot: 'Root',
|
|
9910
|
+
overridesResolver: (props, styles) => {
|
|
9911
|
+
const {
|
|
9912
|
+
ownerState
|
|
9913
|
+
} = props;
|
|
9914
|
+
return [styles.root, ownerState.variant && styles[ownerState.variant], ownerState.align !== 'inherit' && styles[`align${capitalize(ownerState.align)}`], ownerState.noWrap && styles.noWrap, ownerState.gutterBottom && styles.gutterBottom, ownerState.paragraph && styles.paragraph];
|
|
9915
|
+
}
|
|
9916
|
+
})(({
|
|
9917
|
+
theme,
|
|
9918
|
+
ownerState
|
|
9919
|
+
}) => _extends$1({
|
|
9920
|
+
margin: 0
|
|
9921
|
+
}, ownerState.variant && theme.typography[ownerState.variant], ownerState.align !== 'inherit' && {
|
|
9922
|
+
textAlign: ownerState.align
|
|
9923
|
+
}, ownerState.noWrap && {
|
|
9924
|
+
overflow: 'hidden',
|
|
9925
|
+
textOverflow: 'ellipsis',
|
|
9926
|
+
whiteSpace: 'nowrap'
|
|
9927
|
+
}, ownerState.gutterBottom && {
|
|
9928
|
+
marginBottom: '0.35em'
|
|
9929
|
+
}, ownerState.paragraph && {
|
|
9930
|
+
marginBottom: 16
|
|
9931
|
+
}));
|
|
9932
|
+
const defaultVariantMapping = {
|
|
9933
|
+
h1: 'h1',
|
|
9934
|
+
h2: 'h2',
|
|
9935
|
+
h3: 'h3',
|
|
9936
|
+
h4: 'h4',
|
|
9937
|
+
h5: 'h5',
|
|
9938
|
+
h6: 'h6',
|
|
9939
|
+
subtitle1: 'h6',
|
|
9940
|
+
subtitle2: 'h6',
|
|
9941
|
+
body1: 'p',
|
|
9942
|
+
body2: 'p',
|
|
9943
|
+
inherit: 'p'
|
|
9944
|
+
};
|
|
9945
|
+
|
|
9946
|
+
// TODO v6: deprecate these color values in v5.x and remove the transformation in v6
|
|
9947
|
+
const colorTransformations = {
|
|
9948
|
+
primary: 'primary.main',
|
|
9949
|
+
textPrimary: 'text.primary',
|
|
9950
|
+
secondary: 'secondary.main',
|
|
9951
|
+
textSecondary: 'text.secondary',
|
|
9952
|
+
error: 'error.main'
|
|
9953
|
+
};
|
|
9954
|
+
const transformDeprecatedColors = color => {
|
|
9955
|
+
return colorTransformations[color] || color;
|
|
9956
|
+
};
|
|
9957
|
+
const Typography = /*#__PURE__*/React__namespace.forwardRef(function Typography(inProps, ref) {
|
|
9958
|
+
const themeProps = useThemeProps({
|
|
9959
|
+
props: inProps,
|
|
9960
|
+
name: 'MuiTypography'
|
|
9961
|
+
});
|
|
9962
|
+
const color = transformDeprecatedColors(themeProps.color);
|
|
9963
|
+
const props = extendSxProp(_extends$1({}, themeProps, {
|
|
9964
|
+
color
|
|
9965
|
+
}));
|
|
9966
|
+
const {
|
|
9967
|
+
align = 'inherit',
|
|
9968
|
+
className,
|
|
9969
|
+
component,
|
|
9970
|
+
gutterBottom = false,
|
|
9971
|
+
noWrap = false,
|
|
9972
|
+
paragraph = false,
|
|
9973
|
+
variant = 'body1',
|
|
9974
|
+
variantMapping = defaultVariantMapping
|
|
9975
|
+
} = props,
|
|
9976
|
+
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
9977
|
+
const ownerState = _extends$1({}, props, {
|
|
9978
|
+
align,
|
|
9979
|
+
color,
|
|
9980
|
+
className,
|
|
9981
|
+
component,
|
|
9982
|
+
gutterBottom,
|
|
9983
|
+
noWrap,
|
|
9984
|
+
paragraph,
|
|
9985
|
+
variant,
|
|
9986
|
+
variantMapping
|
|
9987
|
+
});
|
|
9988
|
+
const Component = component || (paragraph ? 'p' : variantMapping[variant] || defaultVariantMapping[variant]) || 'span';
|
|
9989
|
+
const classes = useUtilityClasses(ownerState);
|
|
9990
|
+
return /*#__PURE__*/jsxRuntime.exports.jsx(TypographyRoot, _extends$1({
|
|
9991
|
+
as: Component,
|
|
9992
|
+
ref: ref,
|
|
9993
|
+
ownerState: ownerState,
|
|
9994
|
+
className: clsx(classes.root, className)
|
|
9995
|
+
}, other));
|
|
9996
|
+
});
|
|
9997
|
+
process.env.NODE_ENV !== "production" ? Typography.propTypes /* remove-proptypes */ = {
|
|
9998
|
+
// ----------------------------- Warning --------------------------------
|
|
9999
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
10000
|
+
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
10001
|
+
// ----------------------------------------------------------------------
|
|
10002
|
+
/**
|
|
10003
|
+
* Set the text-align on the component.
|
|
10004
|
+
* @default 'inherit'
|
|
10005
|
+
*/
|
|
10006
|
+
align: propTypes.exports.oneOf(['center', 'inherit', 'justify', 'left', 'right']),
|
|
10007
|
+
/**
|
|
10008
|
+
* The content of the component.
|
|
10009
|
+
*/
|
|
10010
|
+
children: propTypes.exports.node,
|
|
10011
|
+
/**
|
|
10012
|
+
* Override or extend the styles applied to the component.
|
|
10013
|
+
*/
|
|
10014
|
+
classes: propTypes.exports.object,
|
|
10015
|
+
/**
|
|
10016
|
+
* @ignore
|
|
10017
|
+
*/
|
|
10018
|
+
className: propTypes.exports.string,
|
|
10019
|
+
/**
|
|
10020
|
+
* The component used for the root node.
|
|
10021
|
+
* Either a string to use a HTML element or a component.
|
|
10022
|
+
*/
|
|
10023
|
+
component: propTypes.exports.elementType,
|
|
10024
|
+
/**
|
|
10025
|
+
* If `true`, the text will have a bottom margin.
|
|
10026
|
+
* @default false
|
|
10027
|
+
*/
|
|
10028
|
+
gutterBottom: propTypes.exports.bool,
|
|
10029
|
+
/**
|
|
10030
|
+
* If `true`, the text will not wrap, but instead will truncate with a text overflow ellipsis.
|
|
10031
|
+
*
|
|
10032
|
+
* Note that text overflow can only happen with block or inline-block level elements
|
|
10033
|
+
* (the element needs to have a width in order to overflow).
|
|
10034
|
+
* @default false
|
|
10035
|
+
*/
|
|
10036
|
+
noWrap: propTypes.exports.bool,
|
|
10037
|
+
/**
|
|
10038
|
+
* If `true`, the element will be a paragraph element.
|
|
10039
|
+
* @default false
|
|
10040
|
+
*/
|
|
10041
|
+
paragraph: propTypes.exports.bool,
|
|
10042
|
+
/**
|
|
10043
|
+
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
10044
|
+
*/
|
|
10045
|
+
sx: propTypes.exports.oneOfType([propTypes.exports.arrayOf(propTypes.exports.oneOfType([propTypes.exports.func, propTypes.exports.object, propTypes.exports.bool])), propTypes.exports.func, propTypes.exports.object]),
|
|
10046
|
+
/**
|
|
10047
|
+
* Applies the theme typography styles.
|
|
10048
|
+
* @default 'body1'
|
|
10049
|
+
*/
|
|
10050
|
+
variant: propTypes.exports /* @typescript-to-proptypes-ignore */.oneOfType([propTypes.exports.oneOf(['body1', 'body2', 'button', 'caption', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'inherit', 'overline', 'subtitle1', 'subtitle2']), propTypes.exports.string]),
|
|
10051
|
+
/**
|
|
10052
|
+
* The component maps the variant prop to a range of different HTML element types.
|
|
10053
|
+
* For instance, subtitle1 to `<h6>`.
|
|
10054
|
+
* If you wish to change that mapping, you can provide your own.
|
|
10055
|
+
* Alternatively, you can use the `component` prop.
|
|
10056
|
+
* @default {
|
|
10057
|
+
* h1: 'h1',
|
|
10058
|
+
* h2: 'h2',
|
|
10059
|
+
* h3: 'h3',
|
|
10060
|
+
* h4: 'h4',
|
|
10061
|
+
* h5: 'h5',
|
|
10062
|
+
* h6: 'h6',
|
|
10063
|
+
* subtitle1: 'h6',
|
|
10064
|
+
* subtitle2: 'h6',
|
|
10065
|
+
* body1: 'p',
|
|
10066
|
+
* body2: 'p',
|
|
10067
|
+
* inherit: 'p',
|
|
10068
|
+
* }
|
|
10069
|
+
*/
|
|
10070
|
+
variantMapping: propTypes.exports /* @typescript-to-proptypes-ignore */.object
|
|
10071
|
+
} : void 0;
|
|
10072
|
+
|
|
10073
|
+
const theme = createTheme({
|
|
10074
|
+
mainPallete: {
|
|
10075
|
+
primary: {
|
|
10076
|
+
blue: '#293072',
|
|
10077
|
+
grey: '#5D5D5C',
|
|
10078
|
+
red: '#E42127',
|
|
10079
|
+
white: '#FFFFFF',
|
|
10080
|
+
placeholderText: '#B0BAD8',
|
|
10081
|
+
tooltipBg: '#53598E',
|
|
10082
|
+
},
|
|
10083
|
+
secondary: {
|
|
10084
|
+
inputsValidation: '#FFF5F5',
|
|
10085
|
+
buttonBlack: '#000000',
|
|
10086
|
+
buttonBlue: '#3A44A7',
|
|
10087
|
+
buttonGreen: '#61CC61',
|
|
10088
|
+
},
|
|
10089
|
+
table: {
|
|
10090
|
+
header: '#E7EAF3',
|
|
10091
|
+
border: '#DBE0F2',
|
|
10092
|
+
tableCellDarker: '#F6F8FB',
|
|
10093
|
+
bodyTextColor: '#2A3D96',
|
|
10094
|
+
selected: 'rgba(176,186,216,0.5)',
|
|
10095
|
+
}
|
|
10096
|
+
},
|
|
10097
|
+
fontWeight: {
|
|
10098
|
+
thin: 100,
|
|
10099
|
+
extraLight: 200,
|
|
10100
|
+
light: 300,
|
|
10101
|
+
regular: 400,
|
|
10102
|
+
medium: 500,
|
|
10103
|
+
semiBold: 600,
|
|
10104
|
+
bold: 700,
|
|
10105
|
+
extraBold: 800,
|
|
10106
|
+
black: 900,
|
|
10107
|
+
},
|
|
10108
|
+
fontFamily: [
|
|
10109
|
+
'"Barlow", sans-serif',
|
|
10110
|
+
].join(','),
|
|
10111
|
+
});
|
|
10112
|
+
|
|
10113
|
+
var StyledTypography = styled(Typography)(function (_a) {
|
|
10114
|
+
return ({
|
|
10115
|
+
fontSize: '26px',
|
|
10116
|
+
lineHeight: '34px',
|
|
10117
|
+
letterSpacing: 0.1,
|
|
10118
|
+
color: theme.mainPallete.primary.blue,
|
|
10119
|
+
textAlign: 'left',
|
|
10120
|
+
marginBottom: '5px',
|
|
10121
|
+
fontFamily: theme.fontFamily,
|
|
10122
|
+
fontWeight: theme.fontWeight.medium,
|
|
10123
|
+
'&.main-header': {
|
|
10124
|
+
fontSize: '26px',
|
|
10125
|
+
lineHeight: '34px',
|
|
10126
|
+
letterSpacing: 0.1,
|
|
10127
|
+
color: theme.mainPallete.primary.blue,
|
|
10128
|
+
textAlign: 'left',
|
|
10129
|
+
marginBottom: '5px',
|
|
10130
|
+
fontWeight: theme.fontWeight.medium,
|
|
10131
|
+
'@media(min-width: 720px)': {
|
|
10132
|
+
fontSize: '44px',
|
|
10133
|
+
lineHeight: '58px',
|
|
10134
|
+
marginBottom: '10px',
|
|
10135
|
+
},
|
|
10136
|
+
'@media(min-width: 1024px)': {
|
|
10137
|
+
fontSize: '21px',
|
|
10138
|
+
lineHeight: '28px',
|
|
10139
|
+
fontWeight: theme.fontWeight.semiBold,
|
|
10140
|
+
margin: '16px 0 10px',
|
|
10141
|
+
}
|
|
10142
|
+
},
|
|
10143
|
+
'&.description': {
|
|
10144
|
+
fontSize: '18px',
|
|
10145
|
+
lineHeight: '24px',
|
|
10146
|
+
letterSpacing: 0.1,
|
|
10147
|
+
color: theme.mainPallete.primary.blue,
|
|
10148
|
+
textAlign: 'left',
|
|
10149
|
+
marginTop: '5px',
|
|
10150
|
+
fontWeight: theme.fontWeight.medium,
|
|
10151
|
+
},
|
|
10152
|
+
'&.modal-header': {
|
|
10153
|
+
fontSize: '26px',
|
|
10154
|
+
lineHeight: '34px',
|
|
10155
|
+
letterSpacing: 0.1,
|
|
10156
|
+
color: theme.mainPallete.primary.blue,
|
|
10157
|
+
textAlign: 'center',
|
|
10158
|
+
margin: '22px 0 14px',
|
|
10159
|
+
fontWeight: theme.fontWeight.medium,
|
|
10160
|
+
'@media(min-width: 720px)': {
|
|
10161
|
+
fontSize: '44px',
|
|
10162
|
+
lineHeight: '58px',
|
|
10163
|
+
margin: '34px 0 28px',
|
|
10164
|
+
},
|
|
10165
|
+
'@media(min-width: 1024px)': {
|
|
10166
|
+
fontSize: '21px',
|
|
10167
|
+
lineHeight: '28px',
|
|
10168
|
+
fontWeight: theme.fontWeight.semiBold,
|
|
10169
|
+
margin: '16px 0 10px',
|
|
10170
|
+
}
|
|
10171
|
+
},
|
|
10172
|
+
'&.modal-description': {
|
|
10173
|
+
fontSize: '18px',
|
|
10174
|
+
lineHeight: '24px',
|
|
10175
|
+
color: theme.mainPallete.primary.blue,
|
|
10176
|
+
textAlign: 'center',
|
|
10177
|
+
marginBottom: '45px',
|
|
10178
|
+
fontWeight: theme.fontWeight.medium,
|
|
10179
|
+
'@media(min-width: 720px)': {
|
|
10180
|
+
fontSize: '32px',
|
|
10181
|
+
lineHeight: '43px',
|
|
10182
|
+
marginBottom: '60px',
|
|
10183
|
+
},
|
|
10184
|
+
'@media(min-width: 1024px)': {
|
|
10185
|
+
fontSize: '16px',
|
|
10186
|
+
lineHeight: '21px',
|
|
10187
|
+
fontWeight: theme.fontWeight.regular,
|
|
10188
|
+
marginBottom: '30px',
|
|
10189
|
+
}
|
|
10190
|
+
},
|
|
10191
|
+
'&.app-tile-header': {
|
|
10192
|
+
fontSize: '26px',
|
|
10193
|
+
lineHeight: '34px',
|
|
10194
|
+
letterSpacing: 0.1,
|
|
10195
|
+
color: theme.mainPallete.primary.blue,
|
|
10196
|
+
textAlign: 'left',
|
|
10197
|
+
marginBottom: '5px',
|
|
10198
|
+
fontWeight: theme.fontWeight.medium,
|
|
10199
|
+
'@media(min-width: 720px)': {
|
|
10200
|
+
fontSize: '44px',
|
|
10201
|
+
lineHeight: '58px',
|
|
10202
|
+
marginBottom: '10px',
|
|
10203
|
+
},
|
|
10204
|
+
'@media(min-width: 1024px)': {
|
|
10205
|
+
fontSize: '21px',
|
|
10206
|
+
lineHeight: '28px',
|
|
10207
|
+
fontWeight: theme.fontWeight.semiBold,
|
|
10208
|
+
margin: '16px 0 10px',
|
|
10209
|
+
}
|
|
10210
|
+
},
|
|
10211
|
+
'&.app-tile-description': {
|
|
10212
|
+
fontSize: '16px',
|
|
10213
|
+
lineHeight: '21px',
|
|
10214
|
+
color: theme.mainPallete.primary.blue,
|
|
10215
|
+
textAlign: 'left',
|
|
10216
|
+
fontWeight: theme.fontWeight.medium,
|
|
10217
|
+
'@media(min-width: 720px)': {
|
|
10218
|
+
fontSize: '23px',
|
|
10219
|
+
lineHeight: '31px',
|
|
10220
|
+
},
|
|
10221
|
+
'@media(min-width: 1024px)': {
|
|
10222
|
+
fontSize: '16px',
|
|
10223
|
+
lineHeight: '21px',
|
|
10224
|
+
fontWeight: theme.fontWeight.regular,
|
|
10225
|
+
}
|
|
10226
|
+
},
|
|
10227
|
+
'&.module-tile-header': {
|
|
10228
|
+
fontSize: '18px',
|
|
10229
|
+
lineHeight: '24px',
|
|
10230
|
+
letterSpacing: 0.1,
|
|
10231
|
+
color: theme.mainPallete.primary.blue,
|
|
10232
|
+
textAlign: 'center',
|
|
10233
|
+
marginTop: '5px',
|
|
10234
|
+
fontFamily: [
|
|
10235
|
+
'"Barlow", sans-serif',
|
|
10236
|
+
],
|
|
10237
|
+
fontWeight: theme.fontWeight.medium,
|
|
10238
|
+
'@media(min-width: 720px)': {
|
|
10239
|
+
fontSize: '32px',
|
|
10240
|
+
lineHeight: '43px',
|
|
10241
|
+
marginTop: '10px',
|
|
10242
|
+
}
|
|
10243
|
+
},
|
|
10244
|
+
});
|
|
10245
|
+
});
|
|
10246
|
+
// @ts-ignore
|
|
10247
|
+
var TypographyComponent = function (_a) {
|
|
10248
|
+
var text = _a.text, type = _a.type, forwardedRef = _a.forwardedRef, props = __rest(_a, ["text", "type", "forwardedRef"]);
|
|
10249
|
+
var typeClassName = type || 'description';
|
|
10250
|
+
return (jsxRuntime.exports.jsx(StyledTypography, __assign({ ref: forwardedRef }, props, { className: typeClassName }, { children: text })));
|
|
10251
|
+
};
|
|
10252
|
+
|
|
9838
10253
|
// import Illustration from "../../components_old/foundations/illustration/Illustration";
|
|
9839
10254
|
// import TypographyComponent from "../typography/Typography";
|
|
9840
10255
|
var StyledAppTileWrapper = styled(Box)(function (_a) {
|
|
@@ -9879,16 +10294,10 @@ var StyledHeaderDescriptionWrapper = styled(Box)(function (_a) {
|
|
|
9879
10294
|
});
|
|
9880
10295
|
// @ts-ignore
|
|
9881
10296
|
var AppTileComponent = function (_a) {
|
|
9882
|
-
var header = _a.header;
|
|
9883
|
-
return (jsxRuntime.exports.jsx(StyledAppTileWrapper, { children: jsxRuntime.exports.jsx(StyledHeaderDescriptionWrapper, { children: jsxRuntime.exports.jsx(
|
|
9884
|
-
};
|
|
9885
|
-
|
|
9886
|
-
// @ts-ignore
|
|
9887
|
-
var ATempComponent = function (_a) {
|
|
9888
|
-
var text = _a.text;
|
|
9889
|
-
return (jsxRuntime.exports.jsx("button", { children: text }));
|
|
10297
|
+
var header = _a.header, forwardedRef = _a.forwardedRef;
|
|
10298
|
+
return (jsxRuntime.exports.jsx(StyledAppTileWrapper, { children: jsxRuntime.exports.jsx(StyledHeaderDescriptionWrapper, { children: jsxRuntime.exports.jsx(TypographyComponent, { text: header, type: 'app-tile-header', forwardedRef: forwardedRef }) }) }));
|
|
9890
10299
|
};
|
|
9891
10300
|
|
|
9892
10301
|
exports.AppTile = AppTileComponent;
|
|
9893
|
-
exports.
|
|
10302
|
+
exports.Typography = TypographyComponent;
|
|
9894
10303
|
//# sourceMappingURL=index.js.map
|