@loadsmart/miranda-react 3.0.0-beta.65 → 3.0.0-beta.67
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 +38 -57
- package/dist/tokens.d.ts +15 -15
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -45,7 +45,7 @@ import { ReactNode } from 'react';
|
|
|
45
45
|
import { ReactWebComponent } from '@lit/react';
|
|
46
46
|
import { RefAttributes } from 'react';
|
|
47
47
|
import { SelectionType } from '@loadsmart/miranda-wc';
|
|
48
|
-
import
|
|
48
|
+
import { SelectionValue } from '@loadsmart/miranda-wc';
|
|
49
49
|
import { StepChangeEventDetail } from '@loadsmart/miranda-wc';
|
|
50
50
|
import { StepNavigateEventDetail } from '@loadsmart/miranda-wc';
|
|
51
51
|
import { SwitchSize } from '@loadsmart/miranda-wc';
|
|
@@ -289,10 +289,9 @@ export declare type BannerProps = ComponentProps<typeof Banner>;
|
|
|
289
289
|
|
|
290
290
|
export { BannerVariant }
|
|
291
291
|
|
|
292
|
-
declare interface BaseProps<
|
|
292
|
+
declare interface BaseProps<TValue> {
|
|
293
293
|
type?: SelectionType;
|
|
294
294
|
value?: TValue;
|
|
295
|
-
onChange?: SelectionChangeEventHandler<TComponent, TValue>;
|
|
296
295
|
}
|
|
297
296
|
|
|
298
297
|
export declare const Box: ReactWebComponent<WCBox, {}>;
|
|
@@ -679,14 +678,6 @@ export declare type MirandaChangeEvent<T = Element> = ChangeEvent<T> & Event;
|
|
|
679
678
|
*/
|
|
680
679
|
declare type MirandaChangeEvent_2<T = Element> = ChangeEvent<T> & Event;
|
|
681
680
|
|
|
682
|
-
declare interface MultipleProps<
|
|
683
|
-
TComponent,
|
|
684
|
-
OptionValue extends string,
|
|
685
|
-
TValue = Array<OptionValue> | ReadonlyArray<OptionValue> | null,
|
|
686
|
-
> extends BaseProps<TComponent, Extract<TValue, ReadonlyArray<OptionValue>>> {
|
|
687
|
-
type?: 'multiple';
|
|
688
|
-
}
|
|
689
|
-
|
|
690
681
|
export declare const PageContent: ReactWebComponent<WCPageContent, {}> & {
|
|
691
682
|
Body: ReactWebComponent<Body_2, {}>;
|
|
692
683
|
};
|
|
@@ -747,7 +738,7 @@ declare type SectionTitleProps = Omit<ComponentProps<typeof WiredSectionTitle>,
|
|
|
747
738
|
leading?: ReactNode;
|
|
748
739
|
};
|
|
749
740
|
|
|
750
|
-
export declare function Select<TSelectionType extends SelectionType = 'single', OptionValue extends string = string>(props: SelectProps<TSelectionType, OptionValue>): default_2.JSX.Element;
|
|
741
|
+
export declare function Select<TSelectionType extends SelectionType = 'single', OptionValue extends string = string, TSelectionOption extends SelectOption<OptionValue> = SelectOption<OptionValue>, TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>>(props: SelectProps<TSelectionType, OptionValue, TSelectionOption, TOptions>): default_2.JSX.Element;
|
|
751
742
|
|
|
752
743
|
export declare namespace Select {
|
|
753
744
|
var Option: default_2.ForwardRefExoticComponent<Omit<SelectOptionProps, "ref"> & default_2.RefAttributes<WCSelectOption>>;
|
|
@@ -763,24 +754,30 @@ declare type SelectionOption<TValue extends string = string> = {
|
|
|
763
754
|
|
|
764
755
|
declare type SelectionProps<
|
|
765
756
|
TComponent,
|
|
766
|
-
TProps extends
|
|
767
|
-
BaseProps<TComponent, SelectionValue<string>>,
|
|
768
|
-
'onChange'
|
|
769
|
-
>,
|
|
757
|
+
TProps extends BaseProps<SelectionValue<string>>,
|
|
770
758
|
TSelectionType extends SelectionType = SelectionType,
|
|
771
759
|
OptionValue extends string = string,
|
|
772
760
|
TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>,
|
|
773
761
|
TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>,
|
|
774
|
-
> = Omit<TProps, 'type' | 'value' | 'onChange'> & {
|
|
762
|
+
> = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
|
|
775
763
|
type?: TSelectionType;
|
|
764
|
+
value?: TOptions[number]['value'] | Array<TOptions[number]['value']> | null; // Infer value type from options
|
|
776
765
|
options?: TOptions;
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
766
|
+
onChange?: SelectionChangeEventHandler<
|
|
767
|
+
TComponent,
|
|
768
|
+
TSelectionType extends 'single'
|
|
769
|
+
? TOptions[number]['value'] | null
|
|
770
|
+
: TSelectionType extends 'single-strict'
|
|
771
|
+
? TOptions[number]['value']
|
|
772
|
+
: TSelectionType extends 'multiple'
|
|
773
|
+
? Array<TOptions[number]['value']>
|
|
774
|
+
: SelectionValue<TOptions[number]['value']>
|
|
775
|
+
>;
|
|
776
|
+
};
|
|
777
|
+
|
|
778
|
+
export { SelectionType }
|
|
779
|
+
|
|
780
|
+
export { SelectionValue }
|
|
784
781
|
|
|
785
782
|
export declare interface SelectOption<TValue extends string = string> {
|
|
786
783
|
value: TValue;
|
|
@@ -795,7 +792,7 @@ declare interface SelectOptionProps extends Omit<ComponentProps<typeof WiredSele
|
|
|
795
792
|
trailing?: ReactNode;
|
|
796
793
|
}
|
|
797
794
|
|
|
798
|
-
export declare type SelectProps<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string> = SelectionProps<WCSelect, ComponentProps<typeof WiredSelect>, TSelectionType, OptionValue, SelectOption<OptionValue
|
|
795
|
+
export declare type SelectProps<TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string, TSelectionOption extends SelectOption<OptionValue> = SelectOption<OptionValue>, TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>> = SelectionProps<WCSelect, ComponentProps<typeof WiredSelect>, TSelectionType, OptionValue, SelectOption<OptionValue>, TOptions>;
|
|
799
796
|
|
|
800
797
|
export declare const Sidebar: ReactWebComponent<WCSidebar, {}> & {
|
|
801
798
|
Side: default_2.ForwardRefExoticComponent<Omit<SidebarSideProps, "ref"> & default_2.RefAttributes<WCBox>>;
|
|
@@ -808,22 +805,6 @@ export declare type SidebarProps = ComponentProps<typeof Sidebar>;
|
|
|
808
805
|
|
|
809
806
|
export declare type SidebarSideProps = Omit<BoxProps, 'slot'>;
|
|
810
807
|
|
|
811
|
-
declare interface SingleProps<
|
|
812
|
-
TComponent,
|
|
813
|
-
OptionValue extends string,
|
|
814
|
-
TValue = OptionValue | null,
|
|
815
|
-
> extends BaseProps<TComponent, TValue> {
|
|
816
|
-
type?: 'single';
|
|
817
|
-
}
|
|
818
|
-
|
|
819
|
-
declare interface SingleStrictProps<
|
|
820
|
-
TComponent,
|
|
821
|
-
OptionValue extends string,
|
|
822
|
-
TValue = OptionValue,
|
|
823
|
-
> extends BaseProps<TComponent, TValue> {
|
|
824
|
-
type?: 'single-strict';
|
|
825
|
-
}
|
|
826
|
-
|
|
827
808
|
export declare const SpinnerWheel: ReactWebComponent<WCSpinnerWheel, {}>;
|
|
828
809
|
|
|
829
810
|
export declare type SpinnerWheelProps = ComponentProps<typeof SpinnerWheel>;
|
|
@@ -1050,7 +1031,7 @@ export declare namespace ToggleGroup {
|
|
|
1050
1031
|
var Toggle: default_2.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & default_2.RefAttributes<WCToggle>>;
|
|
1051
1032
|
}
|
|
1052
1033
|
|
|
1053
|
-
declare type ToggleGroupOption<TValue extends string> = {
|
|
1034
|
+
export declare type ToggleGroupOption<TValue extends string> = {
|
|
1054
1035
|
value: TValue;
|
|
1055
1036
|
label?: string;
|
|
1056
1037
|
leading?: ReactNode;
|
|
@@ -1513,12 +1494,8 @@ export { }
|
|
|
1513
1494
|
|
|
1514
1495
|
declare module 'react' {
|
|
1515
1496
|
interface CSSProperties {
|
|
1516
|
-
'--m-
|
|
1517
|
-
'--m-
|
|
1518
|
-
'--m-card-border-left'?: string;
|
|
1519
|
-
'--m-card-border-bottom'?: string;
|
|
1520
|
-
'--m-card-border-right'?: string;
|
|
1521
|
-
'--m-card-border-radius'?: string;
|
|
1497
|
+
'--m-icon-size'?: string;
|
|
1498
|
+
'--m-icon-color'?: string;
|
|
1522
1499
|
}
|
|
1523
1500
|
}
|
|
1524
1501
|
|
|
@@ -1534,27 +1511,31 @@ declare module 'react' {
|
|
|
1534
1511
|
|
|
1535
1512
|
declare module 'react' {
|
|
1536
1513
|
interface CSSProperties {
|
|
1537
|
-
'--m-
|
|
1538
|
-
'--m-
|
|
1514
|
+
'--m-card-body-padding'?: string;
|
|
1515
|
+
'--m-card-border-top'?: string;
|
|
1516
|
+
'--m-card-border-left'?: string;
|
|
1517
|
+
'--m-card-border-bottom'?: string;
|
|
1518
|
+
'--m-card-border-right'?: string;
|
|
1519
|
+
'--m-card-border-radius'?: string;
|
|
1539
1520
|
}
|
|
1540
1521
|
}
|
|
1541
1522
|
|
|
1542
1523
|
|
|
1543
1524
|
declare module 'react' {
|
|
1544
1525
|
interface CSSProperties {
|
|
1545
|
-
'--m-
|
|
1546
|
-
'--m-
|
|
1547
|
-
'--m-table-border-top-right-radius'?: string;
|
|
1548
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
1549
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
1526
|
+
'--m-text-display'?: string;
|
|
1527
|
+
'--m-text-max-width'?: string;
|
|
1550
1528
|
}
|
|
1551
1529
|
}
|
|
1552
1530
|
|
|
1553
1531
|
|
|
1554
1532
|
declare module 'react' {
|
|
1555
1533
|
interface CSSProperties {
|
|
1556
|
-
'--m-
|
|
1557
|
-
'--m-
|
|
1534
|
+
'--m-table-border-radius'?: string;
|
|
1535
|
+
'--m-table-border-top-left-radius'?: string;
|
|
1536
|
+
'--m-table-border-top-right-radius'?: string;
|
|
1537
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
1538
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
1558
1539
|
}
|
|
1559
1540
|
}
|
|
1560
1541
|
|
package/dist/tokens.d.ts
CHANGED
|
@@ -7,12 +7,8 @@ export { }
|
|
|
7
7
|
|
|
8
8
|
declare module 'react' {
|
|
9
9
|
interface CSSProperties {
|
|
10
|
-
'--m-
|
|
11
|
-
'--m-
|
|
12
|
-
'--m-card-border-left'?: string;
|
|
13
|
-
'--m-card-border-bottom'?: string;
|
|
14
|
-
'--m-card-border-right'?: string;
|
|
15
|
-
'--m-card-border-radius'?: string;
|
|
10
|
+
'--m-icon-size'?: string;
|
|
11
|
+
'--m-icon-color'?: string;
|
|
16
12
|
}
|
|
17
13
|
}
|
|
18
14
|
|
|
@@ -28,27 +24,31 @@ declare module 'react' {
|
|
|
28
24
|
|
|
29
25
|
declare module 'react' {
|
|
30
26
|
interface CSSProperties {
|
|
31
|
-
'--m-
|
|
32
|
-
'--m-
|
|
27
|
+
'--m-card-body-padding'?: string;
|
|
28
|
+
'--m-card-border-top'?: string;
|
|
29
|
+
'--m-card-border-left'?: string;
|
|
30
|
+
'--m-card-border-bottom'?: string;
|
|
31
|
+
'--m-card-border-right'?: string;
|
|
32
|
+
'--m-card-border-radius'?: string;
|
|
33
33
|
}
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
declare module 'react' {
|
|
38
38
|
interface CSSProperties {
|
|
39
|
-
'--m-
|
|
40
|
-
'--m-
|
|
41
|
-
'--m-table-border-top-right-radius'?: string;
|
|
42
|
-
'--m-table-border-bottom-left-radius'?: string;
|
|
43
|
-
'--m-table-border-bottom-right-radius'?: string;
|
|
39
|
+
'--m-text-display'?: string;
|
|
40
|
+
'--m-text-max-width'?: string;
|
|
44
41
|
}
|
|
45
42
|
}
|
|
46
43
|
|
|
47
44
|
|
|
48
45
|
declare module 'react' {
|
|
49
46
|
interface CSSProperties {
|
|
50
|
-
'--m-
|
|
51
|
-
'--m-
|
|
47
|
+
'--m-table-border-radius'?: string;
|
|
48
|
+
'--m-table-border-top-left-radius'?: string;
|
|
49
|
+
'--m-table-border-top-right-radius'?: string;
|
|
50
|
+
'--m-table-border-bottom-left-radius'?: string;
|
|
51
|
+
'--m-table-border-bottom-right-radius'?: string;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.67",
|
|
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.
|
|
45
|
-
"@loadsmart/miranda-wc": "3.0.0-beta.
|
|
44
|
+
"@loadsmart/miranda-tokens": "4.0.0-beta.67",
|
|
45
|
+
"@loadsmart/miranda-wc": "3.0.0-beta.67",
|
|
46
46
|
"react-is": "^18.3.1"
|
|
47
47
|
},
|
|
48
48
|
"directories": {
|