@loadsmart/miranda-react 3.0.0-beta.69 → 3.0.0-beta.70

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/index.d.ts CHANGED
@@ -761,7 +761,13 @@ declare type SelectionProps<
761
761
  TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>,
762
762
  > = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
763
763
  type?: TSelectionType;
764
- value?: TOptions[number]['value'] | Array<TOptions[number]['value']> | null; // Infer value type from options
764
+ value?: TSelectionType extends 'single'
765
+ ? TOptions[number]['value'] | null
766
+ : TSelectionType extends 'single-strict'
767
+ ? TOptions[number]['value']
768
+ : TSelectionType extends 'multiple'
769
+ ? ReadonlyArray<TOptions[number]['value']> | null
770
+ : SelectionValue<TOptions[number]['value']>; // Infer value type from options
765
771
  options?: TOptions;
766
772
  onChange?: SelectionChangeEventHandler<
767
773
  TComponent,
@@ -770,7 +776,7 @@ declare type SelectionProps<
770
776
  : TSelectionType extends 'single-strict'
771
777
  ? TOptions[number]['value']
772
778
  : TSelectionType extends 'multiple'
773
- ? Array<TOptions[number]['value']>
779
+ ? Array<TOptions[number]['value']> | null
774
780
  : SelectionValue<TOptions[number]['value']>
775
781
  >;
776
782
  };
@@ -1492,18 +1498,6 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
1492
1498
  export { }
1493
1499
 
1494
1500
 
1495
- declare module 'react' {
1496
- interface CSSProperties {
1497
- '--m-card-body-padding'?: string;
1498
- '--m-card-border-top'?: string;
1499
- '--m-card-border-left'?: string;
1500
- '--m-card-border-bottom'?: string;
1501
- '--m-card-border-right'?: string;
1502
- '--m-card-border-radius'?: string;
1503
- }
1504
- }
1505
-
1506
-
1507
1501
  declare module 'react' {
1508
1502
  interface CSSProperties {
1509
1503
  '--m-divider-margin-top'?: string;
@@ -1515,16 +1509,20 @@ declare module 'react' {
1515
1509
 
1516
1510
  declare module 'react' {
1517
1511
  interface CSSProperties {
1518
- '--m-icon-size'?: string;
1519
- '--m-icon-color'?: string;
1512
+ '--m-card-body-padding'?: string;
1513
+ '--m-card-border-top'?: string;
1514
+ '--m-card-border-left'?: string;
1515
+ '--m-card-border-bottom'?: string;
1516
+ '--m-card-border-right'?: string;
1517
+ '--m-card-border-radius'?: string;
1520
1518
  }
1521
1519
  }
1522
1520
 
1523
1521
 
1524
1522
  declare module 'react' {
1525
1523
  interface CSSProperties {
1526
- '--m-text-display'?: string;
1527
- '--m-text-max-width'?: string;
1524
+ '--m-icon-size'?: string;
1525
+ '--m-icon-color'?: string;
1528
1526
  }
1529
1527
  }
1530
1528
 
@@ -1540,6 +1538,14 @@ declare module 'react' {
1540
1538
  }
1541
1539
 
1542
1540
 
1541
+ declare module 'react' {
1542
+ interface CSSProperties {
1543
+ '--m-text-display'?: string;
1544
+ '--m-text-max-width'?: string;
1545
+ }
1546
+ }
1547
+
1548
+
1543
1549
  declare module 'react' {
1544
1550
  interface CSSProperties {
1545
1551
  '--m-table-border-radius'?: string;
package/dist/tokens.d.ts CHANGED
@@ -5,18 +5,6 @@ export * from "@loadsmart/miranda-tokens/dist/themes.js";
5
5
  export { }
6
6
 
7
7
 
8
- declare module 'react' {
9
- interface CSSProperties {
10
- '--m-card-body-padding'?: string;
11
- '--m-card-border-top'?: string;
12
- '--m-card-border-left'?: string;
13
- '--m-card-border-bottom'?: string;
14
- '--m-card-border-right'?: string;
15
- '--m-card-border-radius'?: string;
16
- }
17
- }
18
-
19
-
20
8
  declare module 'react' {
21
9
  interface CSSProperties {
22
10
  '--m-divider-margin-top'?: string;
@@ -28,16 +16,20 @@ declare module 'react' {
28
16
 
29
17
  declare module 'react' {
30
18
  interface CSSProperties {
31
- '--m-icon-size'?: string;
32
- '--m-icon-color'?: string;
19
+ '--m-card-body-padding'?: string;
20
+ '--m-card-border-top'?: string;
21
+ '--m-card-border-left'?: string;
22
+ '--m-card-border-bottom'?: string;
23
+ '--m-card-border-right'?: string;
24
+ '--m-card-border-radius'?: string;
33
25
  }
34
26
  }
35
27
 
36
28
 
37
29
  declare module 'react' {
38
30
  interface CSSProperties {
39
- '--m-text-display'?: string;
40
- '--m-text-max-width'?: string;
31
+ '--m-icon-size'?: string;
32
+ '--m-icon-color'?: string;
41
33
  }
42
34
  }
43
35
 
@@ -53,6 +45,14 @@ declare module 'react' {
53
45
  }
54
46
 
55
47
 
48
+ declare module 'react' {
49
+ interface CSSProperties {
50
+ '--m-text-display'?: string;
51
+ '--m-text-max-width'?: string;
52
+ }
53
+ }
54
+
55
+
56
56
  declare module 'react' {
57
57
  interface CSSProperties {
58
58
  '--m-table-border-radius'?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@loadsmart/miranda-react",
3
- "version": "3.0.0-beta.69",
3
+ "version": "3.0.0-beta.70",
4
4
  "description": "React component library based on Miranda Web Components",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@lit/react": "^1.0.5",
44
- "@loadsmart/miranda-tokens": "4.0.0-beta.69",
45
- "@loadsmart/miranda-wc": "3.0.0-beta.69",
44
+ "@loadsmart/miranda-tokens": "4.0.0-beta.70",
45
+ "@loadsmart/miranda-wc": "3.0.0-beta.70",
46
46
  "react-is": "^18.3.1"
47
47
  },
48
48
  "directories": {