@groupeactual/ui-kit 0.4.15 → 0.4.17
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/components/Accordion/Accordion.d.ts +3 -2
- package/dist/cjs/components/Icon/Icon.d.ts +12 -2
- package/dist/cjs/index.js +94 -42
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Accordion/Accordion.d.ts +3 -2
- package/dist/esm/components/Icon/Icon.d.ts +12 -2
- package/dist/esm/index.js +94 -42
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +15 -4
- package/package.json +1 -1
- package/src/components/Accordion/Accordion.tsx +19 -9
- package/src/components/Icon/Icon.tsx +40 -17
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
+
import { AccordionProps } from '@mui/material/Accordion';
|
|
2
3
|
interface Props {
|
|
3
4
|
icon: ReactNode;
|
|
4
5
|
title: ReactNode;
|
|
5
6
|
content: ReactNode;
|
|
6
7
|
summaryHeight?: number;
|
|
7
8
|
}
|
|
8
|
-
declare const
|
|
9
|
-
export default
|
|
9
|
+
declare const Accordion: ({ icon, title, content, summaryHeight, ...props }: Props & AccordionProps) => JSX.Element;
|
|
10
|
+
export default Accordion;
|
|
@@ -1,10 +1,20 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
import { BoxProps } from '@mui/material/Box';
|
|
4
|
+
declare const FontSizes: {
|
|
5
|
+
xs: number;
|
|
6
|
+
sm: number;
|
|
7
|
+
md: number;
|
|
8
|
+
lg: number;
|
|
9
|
+
xl: number;
|
|
10
|
+
xxl: number;
|
|
11
|
+
xxxl: number;
|
|
12
|
+
};
|
|
3
13
|
interface Props {
|
|
4
14
|
variant?: 'square' | 'none';
|
|
5
15
|
icon: IconDefinition;
|
|
6
16
|
color?: string;
|
|
7
|
-
|
|
17
|
+
size?: number | keyof typeof FontSizes;
|
|
8
18
|
}
|
|
9
|
-
declare const Icon: ({ variant, icon, color,
|
|
19
|
+
declare const Icon: ({ variant, icon, color, size, ...props }: Props & BoxProps) => JSX.Element;
|
|
10
20
|
export default Icon;
|
package/dist/cjs/index.js
CHANGED
|
@@ -41442,7 +41442,7 @@ const AccordionRoot = styled$1(Paper$1, {
|
|
|
41442
41442
|
margin: '16px 0'
|
|
41443
41443
|
}
|
|
41444
41444
|
}));
|
|
41445
|
-
const Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
|
|
41445
|
+
const Accordion$1 = /*#__PURE__*/React__namespace.forwardRef(function Accordion(inProps, ref) {
|
|
41446
41446
|
const props = useThemeProps({
|
|
41447
41447
|
props: inProps,
|
|
41448
41448
|
name: 'MuiAccordion'
|
|
@@ -41509,7 +41509,7 @@ const Accordion = /*#__PURE__*/React__namespace.forwardRef(function Accordion(in
|
|
|
41509
41509
|
}))]
|
|
41510
41510
|
}));
|
|
41511
41511
|
});
|
|
41512
|
-
process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes */ = {
|
|
41512
|
+
process.env.NODE_ENV !== "production" ? Accordion$1.propTypes /* remove-proptypes */ = {
|
|
41513
41513
|
// ----------------------------- Warning --------------------------------
|
|
41514
41514
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
41515
41515
|
// | To update them edit the d.ts file and run "yarn proptypes" |
|
|
@@ -41583,7 +41583,7 @@ process.env.NODE_ENV !== "production" ? Accordion.propTypes /* remove-proptypes
|
|
|
41583
41583
|
*/
|
|
41584
41584
|
TransitionProps: PropTypes.object
|
|
41585
41585
|
} : void 0;
|
|
41586
|
-
var
|
|
41586
|
+
var AccordionMui = Accordion$1;
|
|
41587
41587
|
|
|
41588
41588
|
function getAccordionDetailsUtilityClass(slot) {
|
|
41589
41589
|
return generateUtilityClass('MuiAccordionDetails', slot);
|
|
@@ -50502,17 +50502,29 @@ var Checkbox = function (_a) {
|
|
|
50502
50502
|
} }, { children: error })))] })));
|
|
50503
50503
|
};
|
|
50504
50504
|
|
|
50505
|
-
var
|
|
50506
|
-
var icon = _a.icon, title = _a.title, content = _a.content, summaryHeight = _a.summaryHeight;
|
|
50507
|
-
return (jsxRuntime.jsxs(
|
|
50505
|
+
var Accordion = function (_a) {
|
|
50506
|
+
var icon = _a.icon, title = _a.title, content = _a.content, summaryHeight = _a.summaryHeight, props = __rest(_a, ["icon", "title", "content", "summaryHeight"]);
|
|
50507
|
+
return (jsxRuntime.jsxs(AccordionMui, __assign$1({ sx: { border: "1px solid", borderColor: 'greyLightDefaultBorder' } }, props, { children: [jsxRuntime.jsx(AccordionSummary$1, __assign$1({ expandIcon: icon, sx: {
|
|
50508
|
+
fontWeight: 500,
|
|
50509
|
+
fontSize: 18,
|
|
50510
|
+
lineHeight: 21,
|
|
50508
50511
|
height: summaryHeight || 60
|
|
50509
50512
|
} }, { children: title })), jsxRuntime.jsx(AccordionDetails$1, __assign$1({ sx: {
|
|
50510
|
-
backgroundColor: '
|
|
50511
|
-
|
|
50512
|
-
|
|
50513
|
+
backgroundColor: 'greyXLight',
|
|
50514
|
+
borderTop: '1px solid',
|
|
50515
|
+
borderColor: 'greyLightDefaultBorder'
|
|
50513
50516
|
} }, { children: content }))] })));
|
|
50514
50517
|
};
|
|
50515
50518
|
|
|
50519
|
+
var FontSizes = {
|
|
50520
|
+
xs: 8,
|
|
50521
|
+
sm: 12,
|
|
50522
|
+
md: 16,
|
|
50523
|
+
lg: 24,
|
|
50524
|
+
xl: 32,
|
|
50525
|
+
xxl: 40,
|
|
50526
|
+
xxxl: 72
|
|
50527
|
+
};
|
|
50516
50528
|
// eslint-disable-next-line react/display-name
|
|
50517
50529
|
var FontAwesomeSvgIcon = React.forwardRef(function (_a, ref) {
|
|
50518
50530
|
var icon = _a.icon, fontSize = _a.fontSize;
|
|
@@ -50530,10 +50542,10 @@ var FontAwesomeSvgIcon = React.forwardRef(function (_a, ref) {
|
|
|
50530
50542
|
svgPathData.map(function (d, i) { return (jsxRuntime.jsx("path", { style: { opacity: i === 0 ? 0.4 : 1 }, d: d }, i)); })) })));
|
|
50531
50543
|
});
|
|
50532
50544
|
var Icon = function (_a) {
|
|
50533
|
-
var _b = _a.variant, variant = _b === void 0 ? 'none' : _b, icon = _a.icon, _c = _a.color, color = _c === void 0 ? '#136cac' : _c, _d = _a.
|
|
50545
|
+
var _b = _a.variant, variant = _b === void 0 ? 'none' : _b, icon = _a.icon, _c = _a.color, color = _c === void 0 ? '#136cac' : _c, _d = _a.size, size = _d === void 0 ? 16 : _d, props = __rest(_a, ["variant", "icon", "color", "size"]);
|
|
50534
50546
|
var getStyles = function () {
|
|
50535
50547
|
var theme = useTheme$1();
|
|
50536
|
-
var
|
|
50548
|
+
var usedColor = theme.palette[color]
|
|
50537
50549
|
? theme.palette[color]
|
|
50538
50550
|
: !color || (color === null || color === void 0 ? void 0 : color.length) === 0
|
|
50539
50551
|
? '#136cac'
|
|
@@ -50541,30 +50553,38 @@ var Icon = function (_a) {
|
|
|
50541
50553
|
switch (variant) {
|
|
50542
50554
|
case 'square':
|
|
50543
50555
|
return {
|
|
50544
|
-
color:
|
|
50545
|
-
backgroundColor: "".concat(
|
|
50556
|
+
color: usedColor,
|
|
50557
|
+
backgroundColor: "".concat(usedColor, "14"),
|
|
50546
50558
|
borderRadius: '4px',
|
|
50547
|
-
borderColor: '1px solid ' +
|
|
50559
|
+
borderColor: '1px solid ' + usedColor,
|
|
50548
50560
|
overflow: 'visible',
|
|
50549
|
-
padding: '
|
|
50550
|
-
width:
|
|
50551
|
-
height:
|
|
50561
|
+
padding: usedFontSize + 'px',
|
|
50562
|
+
width: usedFontSize,
|
|
50563
|
+
height: usedFontSize,
|
|
50552
50564
|
display: 'flex',
|
|
50553
50565
|
justifyContent: 'center',
|
|
50554
50566
|
alignItems: 'center'
|
|
50555
50567
|
};
|
|
50556
50568
|
default:
|
|
50557
50569
|
return {
|
|
50558
|
-
color:
|
|
50559
|
-
width:
|
|
50560
|
-
height:
|
|
50570
|
+
color: usedColor,
|
|
50571
|
+
width: usedFontSize,
|
|
50572
|
+
height: size,
|
|
50561
50573
|
display: 'inline-flex',
|
|
50562
50574
|
alignItems: 'center',
|
|
50563
50575
|
justifyContent: 'center'
|
|
50564
50576
|
};
|
|
50565
50577
|
}
|
|
50566
50578
|
};
|
|
50567
|
-
|
|
50579
|
+
var isKey = function (key) {
|
|
50580
|
+
return key in FontSizes;
|
|
50581
|
+
};
|
|
50582
|
+
var usedFontSize = isKey(size)
|
|
50583
|
+
? FontSizes[size]
|
|
50584
|
+
: size >= 0
|
|
50585
|
+
? size
|
|
50586
|
+
: 16;
|
|
50587
|
+
return (jsxRuntime.jsx(Box$1, __assign$1({ component: "span", sx: getStyles() }, props, { children: jsxRuntime.jsx(FontAwesomeSvgIcon, { icon: icon, fontSize: usedFontSize }) })));
|
|
50568
50588
|
};
|
|
50569
50589
|
|
|
50570
50590
|
/******************************************************************************
|
|
@@ -50934,6 +50954,9 @@ var TextFieldCss = function (muiTokens) {
|
|
|
50934
50954
|
return {
|
|
50935
50955
|
MuiFormHelperText: {
|
|
50936
50956
|
styleOverrides: {
|
|
50957
|
+
'@font-face': {
|
|
50958
|
+
fontFamily: 'Roboto'
|
|
50959
|
+
},
|
|
50937
50960
|
root: {
|
|
50938
50961
|
fontWeight: 400,
|
|
50939
50962
|
fontSize: '11px',
|
|
@@ -51102,10 +51125,34 @@ var ButtonCss = function (muiTokens) {
|
|
|
51102
51125
|
};
|
|
51103
51126
|
};
|
|
51104
51127
|
|
|
51128
|
+
var AccordionCss = function () {
|
|
51129
|
+
return {
|
|
51130
|
+
MuiAccordionSummary: {
|
|
51131
|
+
styleOverrides: {
|
|
51132
|
+
'@font-face': {
|
|
51133
|
+
fontFamily: 'Roboto'
|
|
51134
|
+
},
|
|
51135
|
+
content: {
|
|
51136
|
+
paddingLeft: '12px',
|
|
51137
|
+
fontWeight: 500,
|
|
51138
|
+
fontSize: '18px',
|
|
51139
|
+
lineHeight: '21px'
|
|
51140
|
+
}
|
|
51141
|
+
}
|
|
51142
|
+
}
|
|
51143
|
+
};
|
|
51144
|
+
};
|
|
51145
|
+
|
|
51105
51146
|
var useMaterialThemeCss = function (muiTokens) {
|
|
51106
51147
|
var muiCss = React.useMemo(function () {
|
|
51107
51148
|
return {
|
|
51108
|
-
components: __assign(__assign(__assign({}, TextFieldCss(muiTokens)), ButtonCss(muiTokens)), {
|
|
51149
|
+
components: __assign(__assign(__assign(__assign({}, TextFieldCss(muiTokens)), ButtonCss(muiTokens)), AccordionCss()), { MuiCssBaseline: {
|
|
51150
|
+
styleOverrides: {
|
|
51151
|
+
'@font-face': {
|
|
51152
|
+
fontFamily: 'Roboto'
|
|
51153
|
+
}
|
|
51154
|
+
}
|
|
51155
|
+
}, MuiSvgIcon: {
|
|
51109
51156
|
styleOverrides: {
|
|
51110
51157
|
colorSuccess: {
|
|
51111
51158
|
color: muiTokens.palette.success.main
|
|
@@ -51118,12 +51165,17 @@ var useMaterialThemeCss = function (muiTokens) {
|
|
|
51118
51165
|
};
|
|
51119
51166
|
|
|
51120
51167
|
var useMaterialThemeTokens = function (themeName) {
|
|
51168
|
+
var fontWeights = {
|
|
51169
|
+
RobotoBold: 700,
|
|
51170
|
+
RobotoMedium: 500,
|
|
51171
|
+
RobotoRegular: 400
|
|
51172
|
+
};
|
|
51121
51173
|
var designTokens = tokens;
|
|
51122
51174
|
var muiTokensObject = {
|
|
51123
51175
|
typography: {
|
|
51124
51176
|
fontFamily: getFontFamilies(themeName).join(','),
|
|
51125
51177
|
bigNumber: {
|
|
51126
|
-
fontWeight:
|
|
51178
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51127
51179
|
lineHeight: designTokens["".concat(themeName, "LineHeights49")] + 'px',
|
|
51128
51180
|
fontSize: designTokens["".concat(themeName, "FontSize42")] + 'px',
|
|
51129
51181
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51132,7 +51184,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51132
51184
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51133
51185
|
},
|
|
51134
51186
|
header1: {
|
|
51135
|
-
fontWeight:
|
|
51187
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51136
51188
|
lineHeight: designTokens["".concat(themeName, "LineHeights41")] + 'px',
|
|
51137
51189
|
fontSize: designTokens["".concat(themeName, "FontSize35")] + 'px',
|
|
51138
51190
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51141,7 +51193,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51141
51193
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51142
51194
|
},
|
|
51143
51195
|
header2: {
|
|
51144
|
-
fontWeight:
|
|
51196
|
+
fontWeight: fontWeights.RobotoMedium,
|
|
51145
51197
|
lineHeight: designTokens["".concat(themeName, "LineHeights34")] + 'px',
|
|
51146
51198
|
fontSize: designTokens["".concat(themeName, "FontSize29")] + 'px',
|
|
51147
51199
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51150,7 +51202,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51150
51202
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51151
51203
|
},
|
|
51152
51204
|
header3: {
|
|
51153
|
-
fontWeight:
|
|
51205
|
+
fontWeight: fontWeights.RobotoRegular,
|
|
51154
51206
|
lineHeight: designTokens["".concat(themeName, "LineHeights28")] + 'px',
|
|
51155
51207
|
fontSize: designTokens["".concat(themeName, "FontSize24")] + 'px',
|
|
51156
51208
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51159,7 +51211,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51159
51211
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51160
51212
|
},
|
|
51161
51213
|
header4: {
|
|
51162
|
-
fontWeight:
|
|
51214
|
+
fontWeight: fontWeights.RobotoMedium,
|
|
51163
51215
|
lineHeight: designTokens["".concat(themeName, "LineHeights21")] + 'px',
|
|
51164
51216
|
fontSize: designTokens["".concat(themeName, "FontSize18")] + 'px',
|
|
51165
51217
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51168,7 +51220,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51168
51220
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51169
51221
|
},
|
|
51170
51222
|
body1Regular: {
|
|
51171
|
-
fontWeight:
|
|
51223
|
+
fontWeight: fontWeights.RobotoRegular,
|
|
51172
51224
|
lineHeight: designTokens["".concat(themeName, "LineHeights18")] + 'px',
|
|
51173
51225
|
fontSize: designTokens["".concat(themeName, "FontSize14")] + 'px',
|
|
51174
51226
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51177,7 +51229,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51177
51229
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51178
51230
|
},
|
|
51179
51231
|
body1Medium: {
|
|
51180
|
-
fontWeight:
|
|
51232
|
+
fontWeight: fontWeights.RobotoMedium,
|
|
51181
51233
|
lineHeight: designTokens["".concat(themeName, "LineHeights18")] + 'px',
|
|
51182
51234
|
fontSize: designTokens["".concat(themeName, "FontSize14")] + 'px',
|
|
51183
51235
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51186,7 +51238,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51186
51238
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51187
51239
|
},
|
|
51188
51240
|
body1Bold: {
|
|
51189
|
-
fontWeight:
|
|
51241
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51190
51242
|
lineHeight: designTokens["".concat(themeName, "LineHeights18")] + 'px',
|
|
51191
51243
|
fontSize: designTokens["".concat(themeName, "FontSize14")] + 'px',
|
|
51192
51244
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51195,7 +51247,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51195
51247
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51196
51248
|
},
|
|
51197
51249
|
body2Regular: {
|
|
51198
|
-
fontWeight:
|
|
51250
|
+
fontWeight: fontWeights.RobotoRegular,
|
|
51199
51251
|
lineHeight: designTokens["".concat(themeName, "LineHeights16")] + 'px',
|
|
51200
51252
|
fontSize: designTokens["".concat(themeName, "FontSize13")] + 'px',
|
|
51201
51253
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51204,7 +51256,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51204
51256
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51205
51257
|
},
|
|
51206
51258
|
body2Medium: {
|
|
51207
|
-
fontWeight:
|
|
51259
|
+
fontWeight: fontWeights.RobotoMedium,
|
|
51208
51260
|
lineHeight: designTokens["".concat(themeName, "LineHeights16")] + 'px',
|
|
51209
51261
|
fontSize: designTokens["".concat(themeName, "FontSize13")] + 'px',
|
|
51210
51262
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51213,7 +51265,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51213
51265
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51214
51266
|
},
|
|
51215
51267
|
body2Bold: {
|
|
51216
|
-
fontWeight:
|
|
51268
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51217
51269
|
lineHeight: designTokens["".concat(themeName, "LineHeights16")] + 'px',
|
|
51218
51270
|
fontSize: designTokens["".concat(themeName, "FontSize13")] + 'px',
|
|
51219
51271
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51222,7 +51274,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51222
51274
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51223
51275
|
},
|
|
51224
51276
|
caption: {
|
|
51225
|
-
fontWeight:
|
|
51277
|
+
fontWeight: fontWeights.RobotoRegular,
|
|
51226
51278
|
lineHeight: designTokens["".concat(themeName, "LineHeights12")] + 'px',
|
|
51227
51279
|
fontSize: designTokens["".concat(themeName, "FontSize11")] + 'px',
|
|
51228
51280
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51231,7 +51283,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51231
51283
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51232
51284
|
},
|
|
51233
51285
|
buttonNotif: {
|
|
51234
|
-
fontWeight:
|
|
51286
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51235
51287
|
lineHeight: designTokens["".concat(themeName, "LineHeights18")] + 'px',
|
|
51236
51288
|
fontSize: designTokens["".concat(themeName, "FontSize14")] + 'px',
|
|
51237
51289
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51240,7 +51292,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51240
51292
|
textDecoration: designTokens["".concat(themeName, "TextDecorationNone")]
|
|
51241
51293
|
},
|
|
51242
51294
|
link1: {
|
|
51243
|
-
fontWeight:
|
|
51295
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51244
51296
|
lineHeight: designTokens["".concat(themeName, "LineHeights18")] + 'px',
|
|
51245
51297
|
fontSize: designTokens["".concat(themeName, "FontSize14")] + 'px',
|
|
51246
51298
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51249,7 +51301,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51249
51301
|
textDecoration: designTokens["".concat(themeName, "TextDecorationUnderline")]
|
|
51250
51302
|
},
|
|
51251
51303
|
link2: {
|
|
51252
|
-
fontWeight:
|
|
51304
|
+
fontWeight: fontWeights.RobotoBold,
|
|
51253
51305
|
lineHeight: designTokens["".concat(themeName, "LineHeights16")] + 'px',
|
|
51254
51306
|
fontSize: designTokens["".concat(themeName, "FontSize13")] + 'px',
|
|
51255
51307
|
letterSpacing: designTokens["".concat(themeName, "LetterSpacingNone")],
|
|
@@ -51257,9 +51309,9 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51257
51309
|
textCase: designTokens["".concat(themeName, "TextCaseNone")],
|
|
51258
51310
|
textDecoration: designTokens["".concat(themeName, "TextDecorationUnderline")]
|
|
51259
51311
|
},
|
|
51260
|
-
fontWeightRegular:
|
|
51261
|
-
fontWeightMedium:
|
|
51262
|
-
fontWeightBold:
|
|
51312
|
+
fontWeightRegular: fontWeights.RobotoBold,
|
|
51313
|
+
fontWeightMedium: fontWeights.RobotoMedium,
|
|
51314
|
+
fontWeightBold: fontWeights.RobotoRegular
|
|
51263
51315
|
},
|
|
51264
51316
|
breakpoints: {
|
|
51265
51317
|
values: {
|
|
@@ -51280,7 +51332,7 @@ var useMaterialThemeTokens = function (themeName) {
|
|
|
51280
51332
|
snackbar: 1400,
|
|
51281
51333
|
tooltip: 1500
|
|
51282
51334
|
},
|
|
51283
|
-
|
|
51335
|
+
spacing: Number(designTokens["".concat(themeName, "SpacingXxs")]),
|
|
51284
51336
|
palette: getMuiPalette(themeName)
|
|
51285
51337
|
};
|
|
51286
51338
|
var muiCss = useMaterialThemeCss(muiTokensObject).muiCss;
|
|
@@ -51311,7 +51363,7 @@ var DesignSystemProvider = function (_a) {
|
|
|
51311
51363
|
return (jsxRuntime.jsx(DesignSystemContext.Provider, __assign$1({ value: { isDarkTheme: isDarkTheme, themeName: themeName, toggleDarkTheme: toggleDarkTheme } }, { children: jsxRuntime.jsx(MaterialThemeProvider, { children: children }) })));
|
|
51312
51364
|
};
|
|
51313
51365
|
|
|
51314
|
-
exports.Accordion =
|
|
51366
|
+
exports.Accordion = Accordion;
|
|
51315
51367
|
exports.Button = Button;
|
|
51316
51368
|
exports.Checkbox = Checkbox;
|
|
51317
51369
|
exports.DesignSystemContext = DesignSystemContext;
|