react-magma-dom 4.11.0-next.6 → 4.11.0-next.7

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.
@@ -1182,22 +1182,22 @@
1182
1182
  "types": [
1183
1183
  {
1184
1184
  "type": "reference",
1185
- "id": 8738,
1185
+ "id": 8739,
1186
1186
  "name": "AccordionMultipleProps"
1187
1187
  },
1188
1188
  {
1189
1189
  "type": "reference",
1190
- "id": 9013,
1190
+ "id": 9014,
1191
1191
  "name": "AccordionSingleProps"
1192
1192
  },
1193
1193
  {
1194
1194
  "type": "reference",
1195
- "id": 9287,
1195
+ "id": 9288,
1196
1196
  "name": "AccordionMultipleControlledProps"
1197
1197
  },
1198
1198
  {
1199
1199
  "type": "reference",
1200
- "id": 9561,
1200
+ "id": 9562,
1201
1201
  "name": "AccordionSingleControlledProps"
1202
1202
  }
1203
1203
  ]
@@ -1502,7 +1502,7 @@
1502
1502
  "type": "query",
1503
1503
  "queryType": {
1504
1504
  "type": "reference",
1505
- "id": 8440,
1505
+ "id": 8441,
1506
1506
  "name": "useAccordion"
1507
1507
  }
1508
1508
  }
@@ -1549,7 +1549,7 @@
1549
1549
  "type": "query",
1550
1550
  "queryType": {
1551
1551
  "type": "reference",
1552
- "id": 10159,
1552
+ "id": 10160,
1553
1553
  "name": "useAccordionButton"
1554
1554
  }
1555
1555
  }
@@ -1652,7 +1652,7 @@
1652
1652
  "type": "query",
1653
1653
  "queryType": {
1654
1654
  "type": "reference",
1655
- "id": 9864,
1655
+ "id": 9865,
1656
1656
  "name": "useAccordionItem"
1657
1657
  }
1658
1658
  }
@@ -4776,7 +4776,7 @@
4776
4776
  },
4777
4777
  "indexSignature": [
4778
4778
  {
4779
- "id": 20837,
4779
+ "id": 20838,
4780
4780
  "name": "__index",
4781
4781
  "kind": 8192,
4782
4782
  "kindString": "Index signature",
@@ -4788,7 +4788,7 @@
4788
4788
  },
4789
4789
  "parameters": [
4790
4790
  {
4791
- "id": 20838,
4791
+ "id": 20839,
4792
4792
  "name": "key",
4793
4793
  "kind": 32768,
4794
4794
  "kindString": "Parameter",
@@ -4878,12 +4878,12 @@
4878
4878
  "types": [
4879
4879
  {
4880
4880
  "type": "reference",
4881
- "id": 20843,
4881
+ "id": 20844,
4882
4882
  "name": "BaseDatagridProps"
4883
4883
  },
4884
4884
  {
4885
4885
  "type": "reference",
4886
- "id": 21149,
4886
+ "id": 21150,
4887
4887
  "name": "DatagridSelectedRowsProps"
4888
4888
  }
4889
4889
  ]
@@ -5131,12 +5131,12 @@
5131
5131
  "typeArguments": [
5132
5132
  {
5133
5133
  "type": "reference",
5134
- "id": 21145,
5134
+ "id": 21146,
5135
5135
  "name": "ControlledSelectedRowsProps"
5136
5136
  },
5137
5137
  {
5138
5138
  "type": "reference",
5139
- "id": 21147,
5139
+ "id": 21148,
5140
5140
  "name": "UncontrolledSelectedRowsProps"
5141
5141
  }
5142
5142
  ],
@@ -5372,14 +5372,14 @@
5372
5372
  "type": {
5373
5373
  "type": "reflection",
5374
5374
  "declaration": {
5375
- "id": 21595,
5375
+ "id": 21596,
5376
5376
  "name": "__type",
5377
5377
  "kind": 65536,
5378
5378
  "kindString": "Type literal",
5379
5379
  "flags": {},
5380
5380
  "children": [
5381
5381
  {
5382
- "id": 21597,
5382
+ "id": 21598,
5383
5383
  "name": "disabled",
5384
5384
  "kind": 32,
5385
5385
  "kindString": "Variable",
@@ -5397,7 +5397,7 @@
5397
5397
  }
5398
5398
  },
5399
5399
  {
5400
- "id": 21596,
5400
+ "id": 21597,
5401
5401
  "name": "isChosen",
5402
5402
  "kind": 32,
5403
5403
  "kindString": "Variable",
@@ -5415,7 +5415,7 @@
5415
5415
  }
5416
5416
  },
5417
5417
  {
5418
- "id": 21598,
5418
+ "id": 21599,
5419
5419
  "name": "isDayInCurrentMonth",
5420
5420
  "kind": 32,
5421
5421
  "kindString": "Variable",
@@ -5433,7 +5433,7 @@
5433
5433
  }
5434
5434
  },
5435
5435
  {
5436
- "id": 21599,
5436
+ "id": 21600,
5437
5437
  "name": "isToday",
5438
5438
  "kind": 32,
5439
5439
  "kindString": "Variable",
@@ -5456,10 +5456,10 @@
5456
5456
  "title": "Variables",
5457
5457
  "kind": 32,
5458
5458
  "children": [
5459
- 21597,
5460
- 21596,
5461
5459
  21598,
5462
- 21599
5460
+ 21597,
5461
+ 21599,
5462
+ 21600
5463
5463
  ]
5464
5464
  }
5465
5465
  ],
@@ -6982,7 +6982,7 @@
6982
6982
  },
6983
6983
  "type": {
6984
6984
  "type": "reference",
6985
- "id": 10599,
6985
+ "id": 10600,
6986
6986
  "name": "AccordionPanelProps"
6987
6987
  },
6988
6988
  "id": "DropdownExpandableMenuPanelProps",
@@ -7233,6 +7233,15 @@
7233
7233
  "defaultValue": "false",
7234
7234
  "deprecated": false
7235
7235
  },
7236
+ "leadingIcon": {
7237
+ "name": "leadingIcon",
7238
+ "required": false,
7239
+ "type": {
7240
+ "name": "ReactElement"
7241
+ },
7242
+ "description": "Leading icon to display on the left side within the component",
7243
+ "deprecated": false
7244
+ },
7236
7245
  "onClick": {
7237
7246
  "name": "onClick",
7238
7247
  "required": false,
@@ -10910,12 +10919,12 @@
10910
10919
  "typeArguments": [
10911
10920
  {
10912
10921
  "type": "reference",
10913
- "id": 26016,
10922
+ "id": 26017,
10914
10923
  "name": "NavTabChildrenProps"
10915
10924
  },
10916
10925
  {
10917
10926
  "type": "reference",
10918
- "id": 26290,
10927
+ "id": 26291,
10919
10928
  "name": "NavTabComponentProps"
10920
10929
  }
10921
10930
  ],
@@ -11017,7 +11026,7 @@
11017
11026
  "typeArguments": [
11018
11027
  {
11019
11028
  "type": "reference",
11020
- "id": 24218,
11029
+ "id": 24219,
11021
11030
  "name": "TabsProps"
11022
11031
  },
11023
11032
  {
@@ -11372,12 +11381,12 @@
11372
11381
  "types": [
11373
11382
  {
11374
11383
  "type": "reference",
11375
- "id": 27211,
11384
+ "id": 27212,
11376
11385
  "name": "ControlledPaginationProps"
11377
11386
  },
11378
11387
  {
11379
11388
  "type": "reference",
11380
- "id": 27494,
11389
+ "id": 27495,
11381
11390
  "name": "UncontrolledPaginationProps"
11382
11391
  }
11383
11392
  ]
@@ -12402,12 +12411,12 @@
12402
12411
  "typeArguments": [
12403
12412
  {
12404
12413
  "type": "reference",
12405
- "id": 31796,
12414
+ "id": 31797,
12406
12415
  "name": "IconOnlyPopoverTriggerProps"
12407
12416
  },
12408
12417
  {
12409
12418
  "type": "reference",
12410
- "id": 31801,
12419
+ "id": 31802,
12411
12420
  "name": "IconTextPopoverTriggerProps"
12412
12421
  }
12413
12422
  ],
@@ -16309,12 +16318,12 @@
16309
16318
  "typeArguments": [
16310
16319
  {
16311
16320
  "type": "reference",
16312
- "id": 20139,
16321
+ "id": 20140,
16313
16322
  "name": "ControlledPageProps"
16314
16323
  },
16315
16324
  {
16316
16325
  "type": "reference",
16317
- "id": 20141,
16326
+ "id": 20142,
16318
16327
  "name": "UncontrolledPageProps"
16319
16328
  }
16320
16329
  ],
@@ -16336,12 +16345,12 @@
16336
16345
  "typeArguments": [
16337
16346
  {
16338
16347
  "type": "reference",
16339
- "id": 20143,
16348
+ "id": 20144,
16340
16349
  "name": "ControlledRowsPerPageProps"
16341
16350
  },
16342
16351
  {
16343
16352
  "type": "reference",
16344
- "id": 20145,
16353
+ "id": 20146,
16345
16354
  "name": "UncontrolledRowsPerPageProps"
16346
16355
  }
16347
16356
  ],
@@ -16363,17 +16372,17 @@
16363
16372
  "types": [
16364
16373
  {
16365
16374
  "type": "reference",
16366
- "id": 19859,
16375
+ "id": 19860,
16367
16376
  "name": "BaseTablePaginationProps"
16368
16377
  },
16369
16378
  {
16370
16379
  "type": "reference",
16371
- "id": 20155,
16380
+ "id": 20156,
16372
16381
  "name": "PagePaginationProps"
16373
16382
  },
16374
16383
  {
16375
16384
  "type": "reference",
16376
- "id": 20156,
16385
+ "id": 20157,
16377
16386
  "name": "RowsPaginationProps"
16378
16387
  }
16379
16388
  ]
@@ -16999,12 +17008,12 @@
16999
17008
  "types": [
17000
17009
  {
17001
17010
  "type": "reference",
17002
- "id": 24215,
17011
+ "id": 24216,
17003
17012
  "name": "HorizontalTabsProps"
17004
17013
  },
17005
17014
  {
17006
17015
  "type": "reference",
17007
- "id": 24212,
17016
+ "id": 24213,
17008
17017
  "name": "VerticalTabsProps"
17009
17018
  }
17010
17019
  ]
@@ -17482,12 +17491,12 @@
17482
17491
  "typeArguments": [
17483
17492
  {
17484
17493
  "type": "reference",
17485
- "id": 30405,
17494
+ "id": 30406,
17486
17495
  "name": "DeletableTagProps"
17487
17496
  },
17488
17497
  {
17489
17498
  "type": "reference",
17490
- "id": 30418,
17499
+ "id": 30419,
17491
17500
  "name": "ClickableTagProps"
17492
17501
  }
17493
17502
  ],
@@ -17740,7 +17749,7 @@
17740
17749
  "type": "query",
17741
17750
  "queryType": {
17742
17751
  "type": "reference",
17743
- "id": 22258,
17752
+ "id": 22259,
17744
17753
  "name": "useTimePicker"
17745
17754
  }
17746
17755
  }
@@ -18435,12 +18444,12 @@
18435
18444
  "typeArguments": [
18436
18445
  {
18437
18446
  "type": "reference",
18438
- "id": 36202,
18447
+ "id": 36203,
18439
18448
  "name": "ToggleButtonTextProps"
18440
18449
  },
18441
18450
  {
18442
18451
  "type": "reference",
18443
- "id": 36486,
18452
+ "id": 36487,
18444
18453
  "name": "ToggleButtonIconProps"
18445
18454
  }
18446
18455
  ],
@@ -19980,7 +19989,7 @@
19980
19989
  "type": "query",
19981
19990
  "queryType": {
19982
19991
  "type": "reference",
19983
- "id": 34937,
19992
+ "id": 34938,
19984
19993
  "name": "useTreeView"
19985
19994
  }
19986
19995
  }
@@ -20177,7 +20186,7 @@
20177
20186
  },
20178
20187
  "typeParameter": [
20179
20188
  {
20180
- "id": 17983,
20189
+ "id": 17984,
20181
20190
  "name": "PaginatedItem",
20182
20191
  "kind": 131072,
20183
20192
  "kindString": "Type parameter",
@@ -20237,7 +20246,7 @@
20237
20246
  },
20238
20247
  "typeParameter": [
20239
20248
  {
20240
- "id": 17992,
20249
+ "id": 17993,
20241
20250
  "name": "PaginatedItem",
20242
20251
  "kind": 131072,
20243
20252
  "kindString": "Type parameter",
@@ -9580,7 +9580,7 @@ var DropdownMenuNavItem = /*#__PURE__*/React.forwardRef(function (props, forward
9580
9580
  });
9581
9581
  DropdownMenuNavItem.displayName = 'DropdownMenuNavItem';
9582
9582
 
9583
- var _excluded$U = ["aria-label", "children", "id", "variant", "onClick"];
9583
+ var _excluded$U = ["aria-label", "children", "id", "variant", "onClick", "leadingIcon"];
9584
9584
  var DropdownSplitButton = /*#__PURE__*/React.forwardRef(function (props, forwardedRef) {
9585
9585
  var context = React.useContext(DropdownContext);
9586
9586
  var buttonGroupContext = React.useContext(ButtonGroupContext);
@@ -9593,6 +9593,7 @@ var DropdownSplitButton = /*#__PURE__*/React.forwardRef(function (props, forward
9593
9593
  _resolvedProps$varian = resolvedProps.variant,
9594
9594
  variant = _resolvedProps$varian === void 0 ? exports.ButtonVariant.solid : _resolvedProps$varian,
9595
9595
  onClick = resolvedProps.onClick,
9596
+ leadingIcon = resolvedProps.leadingIcon,
9596
9597
  other = _objectWithoutPropertiesLoose(resolvedProps, _excluded$U);
9597
9598
  var ref = useForkedRef(forwardedRef, resolvedContext.toggleRef);
9598
9599
  var splitButtonRef = React.useRef(null);
@@ -9628,21 +9629,26 @@ var DropdownSplitButton = /*#__PURE__*/React.forwardRef(function (props, forward
9628
9629
  }
9629
9630
  return theme.spaceScale.spacing01;
9630
9631
  }
9632
+ var sharedButtonProps = React.useMemo(function () {
9633
+ return _extends({}, other, {
9634
+ id: resolvedContext.dropdownButtonId.current,
9635
+ isInverse: resolvedContext.isInverse,
9636
+ onClick: handleButtonClick,
9637
+ shape: exports.ButtonShape.leftCap,
9638
+ style: {
9639
+ borderRight: 0,
9640
+ marginRight: 0
9641
+ },
9642
+ variant: variant,
9643
+ tabIndex: 0,
9644
+ ref: splitButtonRef
9645
+ });
9646
+ }, [props]);
9631
9647
  return React.createElement("div", {
9632
9648
  ref: context.setReference
9633
- }, React.createElement(Button, Object.assign({}, other, {
9634
- id: resolvedContext.dropdownButtonId.current,
9635
- isInverse: resolvedContext.isInverse,
9636
- onClick: handleButtonClick,
9637
- shape: exports.ButtonShape.leftCap,
9638
- style: {
9639
- borderRight: 0,
9640
- marginRight: 0
9641
- },
9642
- variant: variant,
9643
- tabIndex: 0,
9644
- ref: splitButtonRef
9645
- }), children), React.createElement(IconButton, Object.assign({}, other, {
9649
+ }, leadingIcon ? React.createElement(IconButton, Object.assign({}, sharedButtonProps, {
9650
+ icon: leadingIcon
9651
+ }), children) : React.createElement(Button, Object.assign({}, sharedButtonProps), children), React.createElement(IconButton, Object.assign({}, other, {
9646
9652
  "aria-expanded": resolvedContext.isOpen,
9647
9653
  "aria-label": ariaLabel || i18n.dropdown.toggleMenuAriaLabel,
9648
9654
  "aria-haspopup": "true",