@loadsmart/miranda-react 3.24.1 → 3.24.3
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 +36 -17
- package/dist/tokens.d.ts +16 -16
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -46,7 +46,6 @@ import { ReactElement } from 'react';
|
|
|
46
46
|
import { ReactNode } from 'react';
|
|
47
47
|
import { ReactWebComponent } from '@lit/react';
|
|
48
48
|
import { RefAttributes } from 'react';
|
|
49
|
-
import { SelectionProps } from 'utils/SelectionProps';
|
|
50
49
|
import { SelectionType } from '@loadsmart/miranda-wc';
|
|
51
50
|
import { SelectionValue } from '@loadsmart/miranda-wc';
|
|
52
51
|
import { SideNavigationTrigger as SideNavigationTrigger_2 } from '@loadsmart/miranda-wc';
|
|
@@ -348,6 +347,11 @@ export declare type BannerProps = ComponentProps<typeof Banner>;
|
|
|
348
347
|
|
|
349
348
|
export { BannerVariant }
|
|
350
349
|
|
|
350
|
+
declare interface BaseProps<TValue> {
|
|
351
|
+
type?: SelectionType;
|
|
352
|
+
value?: TValue;
|
|
353
|
+
}
|
|
354
|
+
|
|
351
355
|
export declare const Box: ReactWebComponent<WCBox, {}>;
|
|
352
356
|
|
|
353
357
|
export declare type BoxProps = ComponentProps<typeof Box>;
|
|
@@ -824,6 +828,21 @@ export declare namespace Select {
|
|
|
824
828
|
var Option: default_2.ForwardRefExoticComponent<Omit<SelectOptionProps, "ref"> & default_2.RefAttributes<WCSelectOption>>;
|
|
825
829
|
}
|
|
826
830
|
|
|
831
|
+
declare type SelectionChangeEventHandler<TComponent, T> = (event: MirandaChangeEvent<Omit<TComponent, 'value'> & {
|
|
832
|
+
value: T;
|
|
833
|
+
}>) => void;
|
|
834
|
+
|
|
835
|
+
declare type SelectionOption<TValue extends string = string> = {
|
|
836
|
+
value: TValue;
|
|
837
|
+
};
|
|
838
|
+
|
|
839
|
+
declare type SelectionProps<TComponent, TProps extends BaseProps<SelectionValue<string>>, TSelectionType extends SelectionType = SelectionType, OptionValue extends string = string, TSelectionOption extends SelectionOption<OptionValue> = SelectionOption<OptionValue>, TOptions extends ReadonlyArray<TSelectionOption> = ReadonlyArray<TSelectionOption>> = Omit<TProps, 'type' | 'value' | 'options' | 'onChange'> & {
|
|
840
|
+
type?: TSelectionType;
|
|
841
|
+
value?: TSelectionType extends 'single' ? TOptions[number]['value'] | null : TSelectionType extends 'single-strict' ? TOptions[number]['value'] : TSelectionType extends 'multiple' ? ReadonlyArray<TOptions[number]['value']> | null : SelectionValue<TOptions[number]['value']>;
|
|
842
|
+
options?: TOptions;
|
|
843
|
+
onChange?: SelectionChangeEventHandler<TComponent, TSelectionType extends 'single' ? TOptions[number]['value'] | null : TSelectionType extends 'single-strict' ? TOptions[number]['value'] : TSelectionType extends 'multiple' ? Array<TOptions[number]['value']> | null : SelectionValue<TOptions[number]['value']>>;
|
|
844
|
+
};
|
|
845
|
+
|
|
827
846
|
export { SelectionType }
|
|
828
847
|
|
|
829
848
|
export { SelectionValue }
|
|
@@ -1766,6 +1785,18 @@ declare const WiredTooltip: ReactWebComponent<WCTooltip, {}>;
|
|
|
1766
1785
|
export { }
|
|
1767
1786
|
|
|
1768
1787
|
|
|
1788
|
+
declare module 'react' {
|
|
1789
|
+
interface CSSProperties {
|
|
1790
|
+
'--m-card-body-padding'?: string;
|
|
1791
|
+
'--m-card-border-top'?: string;
|
|
1792
|
+
'--m-card-border-left'?: string;
|
|
1793
|
+
'--m-card-border-bottom'?: string;
|
|
1794
|
+
'--m-card-border-right'?: string;
|
|
1795
|
+
'--m-card-border-radius'?: string;
|
|
1796
|
+
}
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
|
|
1769
1800
|
declare module 'react' {
|
|
1770
1801
|
interface CSSProperties {
|
|
1771
1802
|
'--m-divider-margin-top'?: string;
|
|
@@ -1777,20 +1808,16 @@ declare module 'react' {
|
|
|
1777
1808
|
|
|
1778
1809
|
declare module 'react' {
|
|
1779
1810
|
interface CSSProperties {
|
|
1780
|
-
'--m-
|
|
1781
|
-
'--m-
|
|
1782
|
-
'--m-card-border-left'?: string;
|
|
1783
|
-
'--m-card-border-bottom'?: string;
|
|
1784
|
-
'--m-card-border-right'?: string;
|
|
1785
|
-
'--m-card-border-radius'?: string;
|
|
1811
|
+
'--m-icon-size'?: string;
|
|
1812
|
+
'--m-icon-color'?: string;
|
|
1786
1813
|
}
|
|
1787
1814
|
}
|
|
1788
1815
|
|
|
1789
1816
|
|
|
1790
1817
|
declare module 'react' {
|
|
1791
1818
|
interface CSSProperties {
|
|
1792
|
-
'--m-
|
|
1793
|
-
'--m-
|
|
1819
|
+
'--m-text-display'?: string;
|
|
1820
|
+
'--m-text-max-width'?: string;
|
|
1794
1821
|
}
|
|
1795
1822
|
}
|
|
1796
1823
|
|
|
@@ -1827,11 +1854,3 @@ declare module 'react' {
|
|
|
1827
1854
|
'--m-table-border-width'?: string;
|
|
1828
1855
|
}
|
|
1829
1856
|
}
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
declare module 'react' {
|
|
1833
|
-
interface CSSProperties {
|
|
1834
|
-
'--m-text-display'?: string;
|
|
1835
|
-
'--m-text-max-width'?: string;
|
|
1836
|
-
}
|
|
1837
|
-
}
|
package/dist/tokens.d.ts
CHANGED
|
@@ -5,6 +5,18 @@ 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
|
+
|
|
8
20
|
declare module 'react' {
|
|
9
21
|
interface CSSProperties {
|
|
10
22
|
'--m-divider-margin-top'?: string;
|
|
@@ -16,20 +28,16 @@ declare module 'react' {
|
|
|
16
28
|
|
|
17
29
|
declare module 'react' {
|
|
18
30
|
interface CSSProperties {
|
|
19
|
-
'--m-
|
|
20
|
-
'--m-
|
|
21
|
-
'--m-card-border-left'?: string;
|
|
22
|
-
'--m-card-border-bottom'?: string;
|
|
23
|
-
'--m-card-border-right'?: string;
|
|
24
|
-
'--m-card-border-radius'?: string;
|
|
31
|
+
'--m-icon-size'?: string;
|
|
32
|
+
'--m-icon-color'?: string;
|
|
25
33
|
}
|
|
26
34
|
}
|
|
27
35
|
|
|
28
36
|
|
|
29
37
|
declare module 'react' {
|
|
30
38
|
interface CSSProperties {
|
|
31
|
-
'--m-
|
|
32
|
-
'--m-
|
|
39
|
+
'--m-text-display'?: string;
|
|
40
|
+
'--m-text-max-width'?: string;
|
|
33
41
|
}
|
|
34
42
|
}
|
|
35
43
|
|
|
@@ -66,11 +74,3 @@ declare module 'react' {
|
|
|
66
74
|
'--m-table-border-width'?: string;
|
|
67
75
|
}
|
|
68
76
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
declare module 'react' {
|
|
72
|
-
interface CSSProperties {
|
|
73
|
-
'--m-text-display'?: string;
|
|
74
|
-
'--m-text-max-width'?: string;
|
|
75
|
-
}
|
|
76
|
-
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loadsmart/miranda-react",
|
|
3
|
-
"version": "3.24.
|
|
3
|
+
"version": "3.24.3",
|
|
4
4
|
"description": "React component library based on Miranda Web Components",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react-dom": "^18.3.1",
|
|
37
37
|
"ts-loader": "^9.4.2",
|
|
38
38
|
"tsx": "^4.19.4",
|
|
39
|
-
"typescript": "~5.
|
|
39
|
+
"typescript": "~5.9.3",
|
|
40
40
|
"vite": "^6.3.2",
|
|
41
41
|
"vite-plugin-dts": "^4.5.3"
|
|
42
42
|
},
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@lit/react": "^1.0.5",
|
|
52
|
-
"@loadsmart/miranda-tokens": "4.24.
|
|
53
|
-
"@loadsmart/miranda-wc": "3.24.
|
|
52
|
+
"@loadsmart/miranda-tokens": "4.24.5",
|
|
53
|
+
"@loadsmart/miranda-wc": "3.24.3",
|
|
54
54
|
"react-is": "^18.3.1"
|
|
55
55
|
},
|
|
56
56
|
"directories": {
|