@loadsmart/miranda-react 3.0.0-beta.66 → 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 +25 -48
- package/dist/tokens.d.ts +8 -8
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -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,26 @@ 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
|
+
};
|
|
784
777
|
|
|
785
778
|
export { SelectionType }
|
|
786
779
|
|
|
@@ -799,7 +792,7 @@ declare interface SelectOptionProps extends Omit<ComponentProps<typeof WiredSele
|
|
|
799
792
|
trailing?: ReactNode;
|
|
800
793
|
}
|
|
801
794
|
|
|
802
|
-
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>;
|
|
803
796
|
|
|
804
797
|
export declare const Sidebar: ReactWebComponent<WCSidebar, {}> & {
|
|
805
798
|
Side: default_2.ForwardRefExoticComponent<Omit<SidebarSideProps, "ref"> & default_2.RefAttributes<WCBox>>;
|
|
@@ -812,22 +805,6 @@ export declare type SidebarProps = ComponentProps<typeof Sidebar>;
|
|
|
812
805
|
|
|
813
806
|
export declare type SidebarSideProps = Omit<BoxProps, 'slot'>;
|
|
814
807
|
|
|
815
|
-
declare interface SingleProps<
|
|
816
|
-
TComponent,
|
|
817
|
-
OptionValue extends string,
|
|
818
|
-
TValue = OptionValue | null,
|
|
819
|
-
> extends BaseProps<TComponent, TValue> {
|
|
820
|
-
type?: 'single';
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
declare interface SingleStrictProps<
|
|
824
|
-
TComponent,
|
|
825
|
-
OptionValue extends string,
|
|
826
|
-
TValue = OptionValue,
|
|
827
|
-
> extends BaseProps<TComponent, TValue> {
|
|
828
|
-
type?: 'single-strict';
|
|
829
|
-
}
|
|
830
|
-
|
|
831
808
|
export declare const SpinnerWheel: ReactWebComponent<WCSpinnerWheel, {}>;
|
|
832
809
|
|
|
833
810
|
export declare type SpinnerWheelProps = ComponentProps<typeof SpinnerWheel>;
|
|
@@ -1517,12 +1494,8 @@ export { }
|
|
|
1517
1494
|
|
|
1518
1495
|
declare module 'react' {
|
|
1519
1496
|
interface CSSProperties {
|
|
1520
|
-
'--m-
|
|
1521
|
-
'--m-
|
|
1522
|
-
'--m-card-border-left'?: string;
|
|
1523
|
-
'--m-card-border-bottom'?: string;
|
|
1524
|
-
'--m-card-border-right'?: string;
|
|
1525
|
-
'--m-card-border-radius'?: string;
|
|
1497
|
+
'--m-icon-size'?: string;
|
|
1498
|
+
'--m-icon-color'?: string;
|
|
1526
1499
|
}
|
|
1527
1500
|
}
|
|
1528
1501
|
|
|
@@ -1538,8 +1511,12 @@ declare module 'react' {
|
|
|
1538
1511
|
|
|
1539
1512
|
declare module 'react' {
|
|
1540
1513
|
interface CSSProperties {
|
|
1541
|
-
'--m-
|
|
1542
|
-
'--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;
|
|
1543
1520
|
}
|
|
1544
1521
|
}
|
|
1545
1522
|
|
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,8 +24,12 @@ 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
|
|
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": {
|