@groupeactual/ui-kit 0.4.0 → 0.4.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/cjs/index.js CHANGED
@@ -528,7 +528,7 @@ function combine (array, callback) {
528
528
  var line = 1;
529
529
  var column = 1;
530
530
  var length = 0;
531
- var position$1 = 0;
531
+ var position = 0;
532
532
  var character = 0;
533
533
  var characters = '';
534
534
 
@@ -565,7 +565,7 @@ function char () {
565
565
  * @return {number}
566
566
  */
567
567
  function prev () {
568
- character = position$1 > 0 ? charat(characters, --position$1) : 0;
568
+ character = position > 0 ? charat(characters, --position) : 0;
569
569
 
570
570
  if (column--, character === 10)
571
571
  column = 1, line--;
@@ -577,7 +577,7 @@ function prev () {
577
577
  * @return {number}
578
578
  */
579
579
  function next () {
580
- character = position$1 < length ? charat(characters, position$1++) : 0;
580
+ character = position < length ? charat(characters, position++) : 0;
581
581
 
582
582
  if (column++, character === 10)
583
583
  column = 1, line++;
@@ -589,14 +589,14 @@ function next () {
589
589
  * @return {number}
590
590
  */
591
591
  function peek () {
592
- return charat(characters, position$1)
592
+ return charat(characters, position)
593
593
  }
594
594
 
595
595
  /**
596
596
  * @return {number}
597
597
  */
598
598
  function caret () {
599
- return position$1
599
+ return position
600
600
  }
601
601
 
602
602
  /**
@@ -641,7 +641,7 @@ function token (type) {
641
641
  * @return {any[]}
642
642
  */
643
643
  function alloc (value) {
644
- return line = column = 1, length = strlen(characters = value), position$1 = 0, []
644
+ return line = column = 1, length = strlen(characters = value), position = 0, []
645
645
  }
646
646
 
647
647
  /**
@@ -657,7 +657,7 @@ function dealloc (value) {
657
657
  * @return {string}
658
658
  */
659
659
  function delimit (type) {
660
- return trim(slice(position$1 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
660
+ return trim(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
661
661
  }
662
662
 
663
663
  /**
@@ -697,7 +697,7 @@ function delimiter (type) {
697
697
  switch (character) {
698
698
  // ] ) " '
699
699
  case type:
700
- return position$1
700
+ return position
701
701
  // " '
702
702
  case 34: case 39:
703
703
  if (type !== 34 && type !== 39)
@@ -714,7 +714,7 @@ function delimiter (type) {
714
714
  break
715
715
  }
716
716
 
717
- return position$1
717
+ return position
718
718
  }
719
719
 
720
720
  /**
@@ -731,7 +731,7 @@ function commenter (type, index) {
731
731
  else if (type + character === 42 + 42 && peek() === 47)
732
732
  break
733
733
 
734
- return '/*' + slice(index, position$1 - 1) + '*' + from(type === 47 ? type : next())
734
+ return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
735
735
  }
736
736
 
737
737
  /**
@@ -742,7 +742,7 @@ function identifier (index) {
742
742
  while (!token(peek()))
743
743
  next();
744
744
 
745
- return slice(index, position$1)
745
+ return slice(index, position)
746
746
  }
747
747
 
748
748
  /**
@@ -1029,7 +1029,7 @@ var identifierWithPointTracking = function identifierWithPointTracking(begin, po
1029
1029
  next();
1030
1030
  }
1031
1031
 
1032
- return slice(begin, position$1);
1032
+ return slice(begin, position);
1033
1033
  };
1034
1034
 
1035
1035
  var toRules = function toRules(parsed, points) {
@@ -1049,7 +1049,7 @@ var toRules = function toRules(parsed, points) {
1049
1049
  points[index] = 1;
1050
1050
  }
1051
1051
 
1052
- parsed[index] += identifierWithPointTracking(position$1 - 1, points, index);
1052
+ parsed[index] += identifierWithPointTracking(position - 1, points, index);
1053
1053
  break;
1054
1054
 
1055
1055
  case 2:
@@ -4025,7 +4025,7 @@ process.env.NODE_ENV !== "production" ? GlobalStyles$1.propTypes = {
4025
4025
  styles: PropTypes.oneOfType([PropTypes.string, PropTypes.object, PropTypes.func])
4026
4026
  } : void 0;
4027
4027
 
4028
- /** @license MUI v5.10.16
4028
+ /** @license MUI v5.11.0
4029
4029
  *
4030
4030
  * This source code is licensed under the MIT license found in the
4031
4031
  * LICENSE file in the root directory of this source tree.
@@ -5103,7 +5103,7 @@ function getStyleValue$1(themeMapping, transform, propValueFinal, userValue = pr
5103
5103
  value = getPath(themeMapping, propValueFinal) || userValue;
5104
5104
  }
5105
5105
  if (transform) {
5106
- value = transform(value, userValue);
5106
+ value = transform(value, userValue, themeMapping);
5107
5107
  }
5108
5108
  return value;
5109
5109
  }
@@ -5114,6 +5114,9 @@ function style$1(options) {
5114
5114
  themeKey,
5115
5115
  transform
5116
5116
  } = options;
5117
+
5118
+ // false positive
5119
+ // eslint-disable-next-line react/function-component-definition
5117
5120
  const fn = props => {
5118
5121
  if (props[prop] == null) {
5119
5122
  return null;
@@ -5150,6 +5153,9 @@ function compose(...styles) {
5150
5153
  });
5151
5154
  return acc;
5152
5155
  }, {});
5156
+
5157
+ // false positive
5158
+ // eslint-disable-next-line react/function-component-definition
5153
5159
  const fn = props => {
5154
5160
  return Object.keys(props).reduce((acc, prop) => {
5155
5161
  if (handlers[prop]) {
@@ -5289,24 +5295,28 @@ function style(props, keys) {
5289
5295
  const transformer = createUnarySpacing(props.theme);
5290
5296
  return Object.keys(props).map(prop => resolveCssProperty(props, keys, prop, transformer)).reduce(merge, {});
5291
5297
  }
5292
- process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
5298
+ function margin(props) {
5299
+ return style(props, marginKeys);
5300
+ }
5301
+ margin.propTypes = process.env.NODE_ENV !== 'production' ? marginKeys.reduce((obj, key) => {
5293
5302
  obj[key] = responsivePropType$1;
5294
5303
  return obj;
5295
5304
  }, {}) : {};
5296
- process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
5305
+ margin.filterProps = marginKeys;
5306
+ function padding(props) {
5307
+ return style(props, paddingKeys);
5308
+ }
5309
+ padding.propTypes = process.env.NODE_ENV !== 'production' ? paddingKeys.reduce((obj, key) => {
5297
5310
  obj[key] = responsivePropType$1;
5298
5311
  return obj;
5299
5312
  }, {}) : {};
5300
- function spacing(props) {
5301
- return style(props, spacingKeys);
5302
- }
5303
- spacing.propTypes = process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
5313
+ padding.filterProps = paddingKeys;
5314
+ process.env.NODE_ENV !== 'production' ? spacingKeys.reduce((obj, key) => {
5304
5315
  obj[key] = responsivePropType$1;
5305
5316
  return obj;
5306
5317
  }, {}) : {};
5307
- spacing.filterProps = spacingKeys;
5308
5318
 
5309
- function getBorder(value) {
5319
+ function borderTransform(value) {
5310
5320
  if (typeof value !== 'number') {
5311
5321
  return value;
5312
5322
  }
@@ -5315,27 +5325,27 @@ function getBorder(value) {
5315
5325
  const border = style$1({
5316
5326
  prop: 'border',
5317
5327
  themeKey: 'borders',
5318
- transform: getBorder
5328
+ transform: borderTransform
5319
5329
  });
5320
5330
  const borderTop = style$1({
5321
5331
  prop: 'borderTop',
5322
5332
  themeKey: 'borders',
5323
- transform: getBorder
5333
+ transform: borderTransform
5324
5334
  });
5325
5335
  const borderRight = style$1({
5326
5336
  prop: 'borderRight',
5327
5337
  themeKey: 'borders',
5328
- transform: getBorder
5338
+ transform: borderTransform
5329
5339
  });
5330
5340
  const borderBottom = style$1({
5331
5341
  prop: 'borderBottom',
5332
5342
  themeKey: 'borders',
5333
- transform: getBorder
5343
+ transform: borderTransform
5334
5344
  });
5335
5345
  const borderLeft = style$1({
5336
5346
  prop: 'borderLeft',
5337
5347
  themeKey: 'borders',
5338
- transform: getBorder
5348
+ transform: borderTransform
5339
5349
  });
5340
5350
  const borderColor = style$1({
5341
5351
  prop: 'borderColor',
@@ -5357,6 +5367,9 @@ const borderLeftColor = style$1({
5357
5367
  prop: 'borderLeftColor',
5358
5368
  themeKey: 'palette'
5359
5369
  });
5370
+
5371
+ // false positive
5372
+ // eslint-disable-next-line react/function-component-definition
5360
5373
  const borderRadius = props => {
5361
5374
  if (props.borderRadius !== undefined && props.borderRadius !== null) {
5362
5375
  const transformer = createUnaryUnit(props.theme, 'shape.borderRadius', 4, 'borderRadius');
@@ -5371,77 +5384,10 @@ borderRadius.propTypes = process.env.NODE_ENV !== 'production' ? {
5371
5384
  borderRadius: responsivePropType$1
5372
5385
  } : {};
5373
5386
  borderRadius.filterProps = ['borderRadius'];
5374
- const borders = compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
5375
- var borders$1 = borders;
5376
-
5377
- const displayPrint = style$1({
5378
- prop: 'displayPrint',
5379
- cssProperty: false,
5380
- transform: value => ({
5381
- '@media print': {
5382
- display: value
5383
- }
5384
- })
5385
- });
5386
- const displayRaw = style$1({
5387
- prop: 'display'
5388
- });
5389
- const overflow = style$1({
5390
- prop: 'overflow'
5391
- });
5392
- const textOverflow = style$1({
5393
- prop: 'textOverflow'
5394
- });
5395
- const visibility = style$1({
5396
- prop: 'visibility'
5397
- });
5398
- const whiteSpace = style$1({
5399
- prop: 'whiteSpace'
5400
- });
5401
- var display = compose(displayPrint, displayRaw, overflow, textOverflow, visibility, whiteSpace);
5402
-
5403
- const flexBasis = style$1({
5404
- prop: 'flexBasis'
5405
- });
5406
- const flexDirection = style$1({
5407
- prop: 'flexDirection'
5408
- });
5409
- const flexWrap = style$1({
5410
- prop: 'flexWrap'
5411
- });
5412
- const justifyContent = style$1({
5413
- prop: 'justifyContent'
5414
- });
5415
- const alignItems = style$1({
5416
- prop: 'alignItems'
5417
- });
5418
- const alignContent = style$1({
5419
- prop: 'alignContent'
5420
- });
5421
- const order = style$1({
5422
- prop: 'order'
5423
- });
5424
- const flex = style$1({
5425
- prop: 'flex'
5426
- });
5427
- const flexGrow = style$1({
5428
- prop: 'flexGrow'
5429
- });
5430
- const flexShrink = style$1({
5431
- prop: 'flexShrink'
5432
- });
5433
- const alignSelf = style$1({
5434
- prop: 'alignSelf'
5435
- });
5436
- const justifyItems = style$1({
5437
- prop: 'justifyItems'
5438
- });
5439
- const justifySelf = style$1({
5440
- prop: 'justifySelf'
5441
- });
5442
- const flexbox = compose(flexBasis, flexDirection, flexWrap, justifyContent, alignItems, alignContent, order, flex, flexGrow, flexShrink, alignSelf, justifyItems, justifySelf);
5443
- var flexbox$1 = flexbox;
5387
+ compose(border, borderTop, borderRight, borderBottom, borderLeft, borderColor, borderTopColor, borderRightColor, borderBottomColor, borderLeftColor, borderRadius);
5444
5388
 
5389
+ // false positive
5390
+ // eslint-disable-next-line react/function-component-definition
5445
5391
  const gap = props => {
5446
5392
  if (props.gap !== undefined && props.gap !== null) {
5447
5393
  const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'gap');
@@ -5456,6 +5402,9 @@ gap.propTypes = process.env.NODE_ENV !== 'production' ? {
5456
5402
  gap: responsivePropType$1
5457
5403
  } : {};
5458
5404
  gap.filterProps = ['gap'];
5405
+
5406
+ // false positive
5407
+ // eslint-disable-next-line react/function-component-definition
5459
5408
  const columnGap = props => {
5460
5409
  if (props.columnGap !== undefined && props.columnGap !== null) {
5461
5410
  const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'columnGap');
@@ -5470,6 +5419,9 @@ columnGap.propTypes = process.env.NODE_ENV !== 'production' ? {
5470
5419
  columnGap: responsivePropType$1
5471
5420
  } : {};
5472
5421
  columnGap.filterProps = ['columnGap'];
5422
+
5423
+ // false positive
5424
+ // eslint-disable-next-line react/function-component-definition
5473
5425
  const rowGap = props => {
5474
5426
  if (props.rowGap !== undefined && props.rowGap !== null) {
5475
5427
  const transformer = createUnaryUnit(props.theme, 'spacing', 8, 'rowGap');
@@ -5511,10 +5463,9 @@ const gridTemplateAreas = style$1({
5511
5463
  const gridArea = style$1({
5512
5464
  prop: 'gridArea'
5513
5465
  });
5514
- const grid = compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
5515
- var grid$1 = grid;
5466
+ compose(gap, columnGap, rowGap, gridColumn, gridRow, gridAutoFlow, gridAutoColumns, gridAutoRows, gridTemplateColumns, gridTemplateRows, gridTemplateAreas, gridArea);
5516
5467
 
5517
- function transform$1(value, userValue) {
5468
+ function paletteTransform(value, userValue) {
5518
5469
  if (userValue === 'grey') {
5519
5470
  return userValue;
5520
5471
  }
@@ -5523,55 +5474,27 @@ function transform$1(value, userValue) {
5523
5474
  const color = style$1({
5524
5475
  prop: 'color',
5525
5476
  themeKey: 'palette',
5526
- transform: transform$1
5477
+ transform: paletteTransform
5527
5478
  });
5528
5479
  const bgcolor = style$1({
5529
5480
  prop: 'bgcolor',
5530
5481
  cssProperty: 'backgroundColor',
5531
5482
  themeKey: 'palette',
5532
- transform: transform$1
5483
+ transform: paletteTransform
5533
5484
  });
5534
5485
  const backgroundColor = style$1({
5535
5486
  prop: 'backgroundColor',
5536
5487
  themeKey: 'palette',
5537
- transform: transform$1
5538
- });
5539
- const palette = compose(color, bgcolor, backgroundColor);
5540
- var palette$1 = palette;
5541
-
5542
- const position = style$1({
5543
- prop: 'position'
5544
- });
5545
- const zIndex$2 = style$1({
5546
- prop: 'zIndex',
5547
- themeKey: 'zIndex'
5548
- });
5549
- const top = style$1({
5550
- prop: 'top'
5551
- });
5552
- const right = style$1({
5553
- prop: 'right'
5554
- });
5555
- const bottom = style$1({
5556
- prop: 'bottom'
5557
- });
5558
- const left = style$1({
5559
- prop: 'left'
5560
- });
5561
- var positions = compose(position, zIndex$2, top, right, bottom, left);
5562
-
5563
- const boxShadow = style$1({
5564
- prop: 'boxShadow',
5565
- themeKey: 'shadows'
5488
+ transform: paletteTransform
5566
5489
  });
5567
- var shadows$2 = boxShadow;
5490
+ compose(color, bgcolor, backgroundColor);
5568
5491
 
5569
- function transform(value) {
5492
+ function sizingTransform(value) {
5570
5493
  return value <= 1 && value !== 0 ? `${value * 100}%` : value;
5571
5494
  }
5572
5495
  const width = style$1({
5573
5496
  prop: 'width',
5574
- transform
5497
+ transform: sizingTransform
5575
5498
  });
5576
5499
  const maxWidth = props => {
5577
5500
  if (props.maxWidth !== undefined && props.maxWidth !== null) {
@@ -5579,7 +5502,7 @@ const maxWidth = props => {
5579
5502
  var _props$theme, _props$theme$breakpoi, _props$theme$breakpoi2;
5580
5503
  const breakpoint = ((_props$theme = props.theme) == null ? void 0 : (_props$theme$breakpoi = _props$theme.breakpoints) == null ? void 0 : (_props$theme$breakpoi2 = _props$theme$breakpoi.values) == null ? void 0 : _props$theme$breakpoi2[propValue]) || values$1[propValue];
5581
5504
  return {
5582
- maxWidth: breakpoint || transform(propValue)
5505
+ maxWidth: breakpoint || sizingTransform(propValue)
5583
5506
  };
5584
5507
  };
5585
5508
  return handleBreakpoints(props, props.maxWidth, styleFromPropValue);
@@ -5589,102 +5512,314 @@ const maxWidth = props => {
5589
5512
  maxWidth.filterProps = ['maxWidth'];
5590
5513
  const minWidth = style$1({
5591
5514
  prop: 'minWidth',
5592
- transform
5515
+ transform: sizingTransform
5593
5516
  });
5594
5517
  const height = style$1({
5595
5518
  prop: 'height',
5596
- transform
5519
+ transform: sizingTransform
5597
5520
  });
5598
5521
  const maxHeight = style$1({
5599
5522
  prop: 'maxHeight',
5600
- transform
5523
+ transform: sizingTransform
5601
5524
  });
5602
5525
  const minHeight = style$1({
5603
5526
  prop: 'minHeight',
5604
- transform
5527
+ transform: sizingTransform
5605
5528
  });
5606
5529
  style$1({
5607
5530
  prop: 'size',
5608
5531
  cssProperty: 'width',
5609
- transform
5532
+ transform: sizingTransform
5610
5533
  });
5611
5534
  style$1({
5612
5535
  prop: 'size',
5613
5536
  cssProperty: 'height',
5614
- transform
5537
+ transform: sizingTransform
5615
5538
  });
5616
5539
  const boxSizing = style$1({
5617
5540
  prop: 'boxSizing'
5618
5541
  });
5619
- const sizing = compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
5620
- var sizing$1 = sizing;
5542
+ compose(width, maxWidth, minWidth, height, maxHeight, minHeight, boxSizing);
5621
5543
 
5622
- const fontFamily = style$1({
5623
- prop: 'fontFamily',
5624
- themeKey: 'typography'
5625
- });
5626
- const fontSize = style$1({
5627
- prop: 'fontSize',
5628
- themeKey: 'typography'
5629
- });
5630
- const fontStyle = style$1({
5631
- prop: 'fontStyle',
5632
- themeKey: 'typography'
5633
- });
5634
- const fontWeight = style$1({
5635
- prop: 'fontWeight',
5636
- themeKey: 'typography'
5637
- });
5638
- const letterSpacing = style$1({
5639
- prop: 'letterSpacing'
5640
- });
5641
- const textTransform = style$1({
5642
- prop: 'textTransform'
5643
- });
5644
- const lineHeight = style$1({
5645
- prop: 'lineHeight'
5646
- });
5647
- const textAlign = style$1({
5648
- prop: 'textAlign'
5649
- });
5650
- const typographyVariant = style$1({
5651
- prop: 'typography',
5652
- cssProperty: false,
5653
- themeKey: 'typography'
5654
- });
5655
- const typography = compose(typographyVariant, fontFamily, fontSize, fontStyle, fontWeight, letterSpacing, lineHeight, textAlign, textTransform);
5656
- var typography$1 = typography;
5657
-
5658
- const filterPropsMapping = {
5659
- borders: borders$1.filterProps,
5660
- display: display.filterProps,
5661
- flexbox: flexbox$1.filterProps,
5662
- grid: grid$1.filterProps,
5663
- positions: positions.filterProps,
5664
- palette: palette$1.filterProps,
5665
- shadows: shadows$2.filterProps,
5666
- sizing: sizing$1.filterProps,
5667
- spacing: spacing.filterProps,
5668
- typography: typography$1.filterProps
5669
- };
5670
- const styleFunctionMapping = {
5671
- borders: borders$1,
5672
- display,
5673
- flexbox: flexbox$1,
5674
- grid: grid$1,
5675
- positions,
5676
- palette: palette$1,
5677
- shadows: shadows$2,
5678
- sizing: sizing$1,
5679
- spacing,
5680
- typography: typography$1
5544
+ const defaultSxConfig = {
5545
+ // borders
5546
+ border: {
5547
+ themeKey: 'borders',
5548
+ transform: borderTransform
5549
+ },
5550
+ borderTop: {
5551
+ themeKey: 'borders',
5552
+ transform: borderTransform
5553
+ },
5554
+ borderRight: {
5555
+ themeKey: 'borders',
5556
+ transform: borderTransform
5557
+ },
5558
+ borderBottom: {
5559
+ themeKey: 'borders',
5560
+ transform: borderTransform
5561
+ },
5562
+ borderLeft: {
5563
+ themeKey: 'borders',
5564
+ transform: borderTransform
5565
+ },
5566
+ borderColor: {
5567
+ themeKey: 'palette'
5568
+ },
5569
+ borderTopColor: {
5570
+ themeKey: 'palette'
5571
+ },
5572
+ borderRightColor: {
5573
+ themeKey: 'palette'
5574
+ },
5575
+ borderBottomColor: {
5576
+ themeKey: 'palette'
5577
+ },
5578
+ borderLeftColor: {
5579
+ themeKey: 'palette'
5580
+ },
5581
+ borderRadius: {
5582
+ themeKey: 'shape.borderRadius',
5583
+ style: borderRadius
5584
+ },
5585
+ // palette
5586
+ color: {
5587
+ themeKey: 'palette',
5588
+ transform: paletteTransform
5589
+ },
5590
+ bgcolor: {
5591
+ themeKey: 'palette',
5592
+ cssProperty: 'backgroundColor',
5593
+ transform: paletteTransform
5594
+ },
5595
+ backgroundColor: {
5596
+ themeKey: 'palette',
5597
+ transform: paletteTransform
5598
+ },
5599
+ // spacing
5600
+ p: {
5601
+ style: padding
5602
+ },
5603
+ pt: {
5604
+ style: padding
5605
+ },
5606
+ pr: {
5607
+ style: padding
5608
+ },
5609
+ pb: {
5610
+ style: padding
5611
+ },
5612
+ pl: {
5613
+ style: padding
5614
+ },
5615
+ px: {
5616
+ style: padding
5617
+ },
5618
+ py: {
5619
+ style: padding
5620
+ },
5621
+ padding: {
5622
+ style: padding
5623
+ },
5624
+ paddingTop: {
5625
+ style: padding
5626
+ },
5627
+ paddingRight: {
5628
+ style: padding
5629
+ },
5630
+ paddingBottom: {
5631
+ style: padding
5632
+ },
5633
+ paddingLeft: {
5634
+ style: padding
5635
+ },
5636
+ paddingX: {
5637
+ style: padding
5638
+ },
5639
+ paddingY: {
5640
+ style: padding
5641
+ },
5642
+ paddingInline: {
5643
+ style: padding
5644
+ },
5645
+ paddingInlineStart: {
5646
+ style: padding
5647
+ },
5648
+ paddingInlineEnd: {
5649
+ style: padding
5650
+ },
5651
+ paddingBlock: {
5652
+ style: padding
5653
+ },
5654
+ paddingBlockStart: {
5655
+ style: padding
5656
+ },
5657
+ paddingBlockEnd: {
5658
+ style: padding
5659
+ },
5660
+ m: {
5661
+ style: margin
5662
+ },
5663
+ mt: {
5664
+ style: margin
5665
+ },
5666
+ mr: {
5667
+ style: margin
5668
+ },
5669
+ mb: {
5670
+ style: margin
5671
+ },
5672
+ ml: {
5673
+ style: margin
5674
+ },
5675
+ mx: {
5676
+ style: margin
5677
+ },
5678
+ my: {
5679
+ style: margin
5680
+ },
5681
+ margin: {
5682
+ style: margin
5683
+ },
5684
+ marginTop: {
5685
+ style: margin
5686
+ },
5687
+ marginRight: {
5688
+ style: margin
5689
+ },
5690
+ marginBottom: {
5691
+ style: margin
5692
+ },
5693
+ marginLeft: {
5694
+ style: margin
5695
+ },
5696
+ marginX: {
5697
+ style: margin
5698
+ },
5699
+ marginY: {
5700
+ style: margin
5701
+ },
5702
+ marginInline: {
5703
+ style: margin
5704
+ },
5705
+ marginInlineStart: {
5706
+ style: margin
5707
+ },
5708
+ marginInlineEnd: {
5709
+ style: margin
5710
+ },
5711
+ marginBlock: {
5712
+ style: margin
5713
+ },
5714
+ marginBlockStart: {
5715
+ style: margin
5716
+ },
5717
+ marginBlockEnd: {
5718
+ style: margin
5719
+ },
5720
+ // display
5721
+ displayPrint: {
5722
+ cssProperty: false,
5723
+ transform: value => ({
5724
+ '@media print': {
5725
+ display: value
5726
+ }
5727
+ })
5728
+ },
5729
+ display: {},
5730
+ overflow: {},
5731
+ textOverflow: {},
5732
+ visibility: {},
5733
+ whiteSpace: {},
5734
+ // flexbox
5735
+ flexBasis: {},
5736
+ flexDirection: {},
5737
+ flexWrap: {},
5738
+ justifyContent: {},
5739
+ alignItems: {},
5740
+ alignContent: {},
5741
+ order: {},
5742
+ flex: {},
5743
+ flexGrow: {},
5744
+ flexShrink: {},
5745
+ alignSelf: {},
5746
+ justifyItems: {},
5747
+ justifySelf: {},
5748
+ // grid
5749
+ gap: {
5750
+ style: gap
5751
+ },
5752
+ rowGap: {
5753
+ style: rowGap
5754
+ },
5755
+ columnGap: {
5756
+ style: columnGap
5757
+ },
5758
+ gridColumn: {},
5759
+ gridRow: {},
5760
+ gridAutoFlow: {},
5761
+ gridAutoColumns: {},
5762
+ gridAutoRows: {},
5763
+ gridTemplateColumns: {},
5764
+ gridTemplateRows: {},
5765
+ gridTemplateAreas: {},
5766
+ gridArea: {},
5767
+ // positions
5768
+ position: {},
5769
+ zIndex: {
5770
+ themeKey: 'zIndex'
5771
+ },
5772
+ top: {},
5773
+ right: {},
5774
+ bottom: {},
5775
+ left: {},
5776
+ // shadows
5777
+ boxShadow: {
5778
+ themeKey: 'shadows'
5779
+ },
5780
+ // sizing
5781
+ width: {
5782
+ transform: sizingTransform
5783
+ },
5784
+ maxWidth: {
5785
+ style: maxWidth
5786
+ },
5787
+ minWidth: {
5788
+ transform: sizingTransform
5789
+ },
5790
+ height: {
5791
+ transform: sizingTransform
5792
+ },
5793
+ maxHeight: {
5794
+ transform: sizingTransform
5795
+ },
5796
+ minHeight: {
5797
+ transform: sizingTransform
5798
+ },
5799
+ boxSizing: {},
5800
+ // typography
5801
+ fontFamily: {
5802
+ themeKey: 'typography'
5803
+ },
5804
+ fontSize: {
5805
+ themeKey: 'typography'
5806
+ },
5807
+ fontStyle: {
5808
+ themeKey: 'typography'
5809
+ },
5810
+ fontWeight: {
5811
+ themeKey: 'typography'
5812
+ },
5813
+ letterSpacing: {},
5814
+ textTransform: {},
5815
+ lineHeight: {},
5816
+ textAlign: {},
5817
+ typography: {
5818
+ cssProperty: false,
5819
+ themeKey: 'typography'
5820
+ }
5681
5821
  };
5682
- const propToStyleFunction = Object.keys(filterPropsMapping).reduce((acc, styleFnName) => {
5683
- filterPropsMapping[styleFnName].forEach(propName => {
5684
- acc[propName] = styleFunctionMapping[styleFnName];
5685
- });
5686
- return acc;
5687
- }, {});
5822
+ var defaultSxConfig$1 = defaultSxConfig;
5688
5823
 
5689
5824
  function objectsHaveSameKeys(...objects) {
5690
5825
  const allKeys = objects.reduce((keys, object) => keys.concat(Object.keys(object)), []);
@@ -5696,24 +5831,48 @@ function callIfFn(maybeFn, arg) {
5696
5831
  }
5697
5832
 
5698
5833
  // eslint-disable-next-line @typescript-eslint/naming-convention
5699
- function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMapping) {
5700
- const propToStyleFunction = Object.keys(styleFunctionMapping$1).reduce((acc, styleFnName) => {
5701
- styleFunctionMapping$1[styleFnName].filterProps.forEach(propName => {
5702
- acc[propName] = styleFunctionMapping$1[styleFnName];
5703
- });
5704
- return acc;
5705
- }, {});
5706
- function getThemeValue(prop, value, theme) {
5707
- const inputProps = {
5708
- [prop]: value,
5834
+ function unstable_createStyleFunctionSx() {
5835
+ function getThemeValue(prop, val, theme, config) {
5836
+ const props = {
5837
+ [prop]: val,
5709
5838
  theme
5710
5839
  };
5711
- const styleFunction = propToStyleFunction[prop];
5712
- return styleFunction ? styleFunction(inputProps) : {
5713
- [prop]: value
5840
+ const options = config[prop];
5841
+ if (!options) {
5842
+ return {
5843
+ [prop]: val
5844
+ };
5845
+ }
5846
+ const {
5847
+ cssProperty = prop,
5848
+ themeKey,
5849
+ transform,
5850
+ style
5851
+ } = options;
5852
+ if (val == null) {
5853
+ return null;
5854
+ }
5855
+ const themeMapping = getPath(theme, themeKey) || {};
5856
+ if (style) {
5857
+ return style(props);
5858
+ }
5859
+ const styleFromPropValue = propValueFinal => {
5860
+ let value = getStyleValue$1(themeMapping, transform, propValueFinal);
5861
+ if (propValueFinal === value && typeof propValueFinal === 'string') {
5862
+ // Haven't found value
5863
+ value = getStyleValue$1(themeMapping, transform, `${prop}${propValueFinal === 'default' ? '' : capitalize(propValueFinal)}`, propValueFinal);
5864
+ }
5865
+ if (cssProperty === false) {
5866
+ return value;
5867
+ }
5868
+ return {
5869
+ [cssProperty]: value
5870
+ };
5714
5871
  };
5872
+ return handleBreakpoints(props, val, styleFromPropValue);
5715
5873
  }
5716
5874
  function styleFunctionSx(props) {
5875
+ var _theme$unstable_sxCon;
5717
5876
  const {
5718
5877
  sx,
5719
5878
  theme = {}
@@ -5722,6 +5881,8 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
5722
5881
  return null; // Emotion & styled-components will neglect null
5723
5882
  }
5724
5883
 
5884
+ const config = (_theme$unstable_sxCon = theme.unstable_sxConfig) != null ? _theme$unstable_sxCon : defaultSxConfig$1;
5885
+
5725
5886
  /*
5726
5887
  * Receive `sxInput` as object or callback
5727
5888
  * and then recursively check keys & values to create media query object styles.
@@ -5745,8 +5906,8 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
5745
5906
  const value = callIfFn(sxObject[styleKey], theme);
5746
5907
  if (value !== null && value !== undefined) {
5747
5908
  if (typeof value === 'object') {
5748
- if (propToStyleFunction[styleKey]) {
5749
- css = merge(css, getThemeValue(styleKey, value, theme));
5909
+ if (config[styleKey]) {
5910
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
5750
5911
  } else {
5751
5912
  const breakpointsValues = handleBreakpoints({
5752
5913
  theme
@@ -5763,7 +5924,7 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
5763
5924
  }
5764
5925
  }
5765
5926
  } else {
5766
- css = merge(css, getThemeValue(styleKey, value, theme));
5927
+ css = merge(css, getThemeValue(styleKey, value, theme, config));
5767
5928
  }
5768
5929
  }
5769
5930
  });
@@ -5775,16 +5936,18 @@ function unstable_createStyleFunctionSx(styleFunctionMapping$1 = styleFunctionMa
5775
5936
  }
5776
5937
  const styleFunctionSx = unstable_createStyleFunctionSx();
5777
5938
  styleFunctionSx.filterProps = ['sx'];
5778
- var defaultStyleFunctionSx = styleFunctionSx;
5939
+ var styleFunctionSx$1 = styleFunctionSx;
5779
5940
 
5780
5941
  const _excluded$L = ["sx"];
5781
5942
  const splitProps = props => {
5943
+ var _props$theme$unstable, _props$theme;
5782
5944
  const result = {
5783
5945
  systemProps: {},
5784
5946
  otherProps: {}
5785
5947
  };
5948
+ const config = (_props$theme$unstable = props == null ? void 0 : (_props$theme = props.theme) == null ? void 0 : _props$theme.unstable_sxConfig) != null ? _props$theme$unstable : defaultSxConfig$1;
5786
5949
  Object.keys(props).forEach(prop => {
5787
- if (propToStyleFunction[prop]) {
5950
+ if (config[prop]) {
5788
5951
  result.systemProps[prop] = props[prop];
5789
5952
  } else {
5790
5953
  result.otherProps[prop] = props[prop];
@@ -5959,6 +6122,13 @@ function createTheme$1(options = {}, ...args) {
5959
6122
  shape: _extends({}, shape$1, shapeInput)
5960
6123
  }, other);
5961
6124
  muiTheme = args.reduce((acc, argument) => deepmerge(acc, argument), muiTheme);
6125
+ muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
6126
+ muiTheme.unstable_sx = function sx(props) {
6127
+ return styleFunctionSx$1({
6128
+ sx: props,
6129
+ theme: this
6130
+ });
6131
+ };
5962
6132
  return muiTheme;
5963
6133
  }
5964
6134
 
@@ -6053,12 +6223,11 @@ function createBox(options = {}) {
6053
6223
  const {
6054
6224
  defaultTheme,
6055
6225
  defaultClassName = 'MuiBox-root',
6056
- generateClassName,
6057
- styleFunctionSx = defaultStyleFunctionSx
6226
+ generateClassName
6058
6227
  } = options;
6059
6228
  const BoxRoot = styled$2('div', {
6060
6229
  shouldForwardProp: prop => prop !== 'theme' && prop !== 'sx' && prop !== 'as'
6061
- })(styleFunctionSx);
6230
+ })(styleFunctionSx$1);
6062
6231
  const Box = /*#__PURE__*/React__namespace.forwardRef(function Box(inProps, ref) {
6063
6232
  const theme = useTheme$1(defaultTheme);
6064
6233
  const _extendSxProp = extendSxProp(inProps),
@@ -6193,12 +6362,11 @@ function createStyled(input = {}) {
6193
6362
  const {
6194
6363
  defaultTheme = systemDefaultTheme,
6195
6364
  rootShouldForwardProp = shouldForwardProp,
6196
- slotShouldForwardProp = shouldForwardProp,
6197
- styleFunctionSx = defaultStyleFunctionSx
6365
+ slotShouldForwardProp = shouldForwardProp
6198
6366
  } = input;
6199
6367
  const systemSx = props => {
6200
6368
  const theme = isEmpty$2(props.theme) ? defaultTheme : props.theme;
6201
- return styleFunctionSx(_extends({}, props, {
6369
+ return styleFunctionSx$1(_extends({}, props, {
6202
6370
  theme
6203
6371
  }));
6204
6372
  };
@@ -7182,6 +7350,13 @@ Please use another name.` : formatMuiErrorMessage(18));
7182
7350
  }
7183
7351
  });
7184
7352
  }
7353
+ muiTheme.unstable_sxConfig = _extends({}, defaultSxConfig$1, other == null ? void 0 : other.unstable_sxConfig);
7354
+ muiTheme.unstable_sx = function sx(props) {
7355
+ return styleFunctionSx$1({
7356
+ sx: props,
7357
+ theme: this
7358
+ });
7359
+ };
7185
7360
  return muiTheme;
7186
7361
  }
7187
7362
 
@@ -38925,7 +39100,7 @@ const ModalUnstyled = /*#__PURE__*/React__namespace.forwardRef(function ModalUns
38925
39100
  slots = {}
38926
39101
  } = props,
38927
39102
  other = _objectWithoutPropertiesLoose(props, _excluded$A);
38928
- const [exited, setExited] = React__namespace.useState(true);
39103
+ const [exited, setExited] = React__namespace.useState(!open);
38929
39104
  const modal = React__namespace.useRef({});
38930
39105
  const mountNodeRef = React__namespace.useRef(null);
38931
39106
  const modalRef = React__namespace.useRef(null);
@@ -45520,7 +45695,7 @@ const FormControlRoot = styled$1('div', {
45520
45695
  * </FormControl>
45521
45696
  * ```
45522
45697
  *
45523
- * ⚠️ Only one `InputBase` can be used within a FormControl because it create visual inconsistencies.
45698
+ * ⚠️ Only one `InputBase` can be used within a FormControl because it creates visual inconsistencies.
45524
45699
  * For instance, only one input can be focused at the same time, the state shouldn't be shared.
45525
45700
  */
45526
45701
  const FormControl = /*#__PURE__*/React__namespace.forwardRef(function FormControl(inProps, ref) {
@@ -48235,7 +48410,6 @@ const Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref
48235
48410
  }
48236
48411
  });
48237
48412
  return /*#__PURE__*/jsxRuntime.jsx(MenuRoot, _extends({
48238
- classes: PopoverClasses,
48239
48413
  onClose: onClose,
48240
48414
  anchorOrigin: {
48241
48415
  vertical: 'bottom',
@@ -48258,6 +48432,7 @@ const Menu = /*#__PURE__*/React__namespace.forwardRef(function Menu(inProps, ref
48258
48432
  }, TransitionProps),
48259
48433
  ownerState: ownerState
48260
48434
  }, other, {
48435
+ classes: PopoverClasses,
48261
48436
  children: /*#__PURE__*/jsxRuntime.jsx(MenuMenuList, _extends({
48262
48437
  onKeyDown: handleListKeyDown,
48263
48438
  actions: menuListActionsRef,
@@ -50455,7 +50630,7 @@ var __assign = function() {
50455
50630
 
50456
50631
  /**
50457
50632
  * Do not edit directly
50458
- * Generated on Tue, 29 Nov 2022 10:20:00 GMT
50633
+ * Generated on Thu, 08 Dec 2022 17:56:08 GMT
50459
50634
  */
50460
50635
  var DefaultWebShadowAllContent = { "color": "#2727271f", "type": "dropShadow", "x": "0", "y": "2", "blur": "10", "spread": "0" };
50461
50636
  var DefaultSpacingXxs = "4";
@@ -50837,7 +51012,7 @@ var useMaterialThemeCss = function (muiTokens) {
50837
51012
  MuiInputLabel: {
50838
51013
  styleOverrides: {
50839
51014
  root: {
50840
- fontSize: '16px',
51015
+ fontSize: '17.33px',
50841
51016
  lineHeight: '16px',
50842
51017
  fontWeight: 500,
50843
51018
  color: muiTokens.palette.greyXDark,