@nice2dev/ui-mobile 1.2.1 → 1.2.2
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.cjs +12 -12
- package/dist/index.d.ts +10 -0
- package/dist/index.mjs +4041 -3888
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -2578,6 +2578,11 @@ export declare const SwipeActionPresets: {
|
|
|
2578
2578
|
export declare interface SwipeActionsAction {
|
|
2579
2579
|
id: string;
|
|
2580
2580
|
label: string;
|
|
2581
|
+
/**
|
|
2582
|
+
* Translation key for `label`: the button shows `t(labelKey, label)`, so `label` is the
|
|
2583
|
+
* English default. The presets set it (`swipeActions.<id>`).
|
|
2584
|
+
*/
|
|
2585
|
+
labelKey?: string;
|
|
2581
2586
|
icon?: ReactNode;
|
|
2582
2587
|
color?: string;
|
|
2583
2588
|
background?: string;
|
|
@@ -2637,6 +2642,11 @@ export declare interface TabItem {
|
|
|
2637
2642
|
id: string;
|
|
2638
2643
|
/** Tab label */
|
|
2639
2644
|
label: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* Translation key for `label`: the tab shows `t(labelKey, label)`, so `label` is the English
|
|
2647
|
+
* default. The presets set it (`mobileTabs.preset.<id>`).
|
|
2648
|
+
*/
|
|
2649
|
+
labelKey?: string;
|
|
2640
2650
|
/** Tab icon (active state uses same if no activeIcon) */
|
|
2641
2651
|
icon: ReactNode;
|
|
2642
2652
|
/** Icon when tab is active (optional) */
|