panelui-native 0.81.0 → 0.82.0
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/lib/module/components/bottom-sheet/index.js +90 -17
- package/lib/module/components/bottom-sheet/index.js.map +1 -1
- package/lib/module/components/button/index.js +13 -0
- package/lib/module/components/button/index.js.map +1 -1
- package/lib/module/components/button-group/index.js +3 -0
- package/lib/module/components/button-group/index.js.map +1 -1
- package/lib/module/components/image-generation/dot-field.js +210 -0
- package/lib/module/components/image-generation/dot-field.js.map +1 -0
- package/lib/module/components/image-generation/index.js +417 -0
- package/lib/module/components/image-generation/index.js.map +1 -0
- package/lib/module/components/kpi/index.js +2 -4
- package/lib/module/components/kpi/index.js.map +1 -1
- package/lib/module/components/menu/index.js +8 -16
- package/lib/module/components/menu/index.js.map +1 -1
- package/lib/module/components/panelside/index.js +340 -33
- package/lib/module/components/panelside/index.js.map +1 -1
- package/lib/module/components/select/index.js +127 -23
- package/lib/module/components/select/index.js.map +1 -1
- package/lib/module/components/slide-button/index.js +610 -0
- package/lib/module/components/slide-button/index.js.map +1 -0
- package/lib/module/components/slide-button/slide-button-track.js +98 -0
- package/lib/module/components/slide-button/slide-button-track.js.map +1 -0
- package/lib/module/icons/index.js +553 -1934
- package/lib/module/icons/index.js.map +1 -1
- package/lib/module/index.js +3 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/primitives/portal.js +15 -1
- package/lib/module/primitives/portal.js.map +1 -1
- package/lib/typescript/src/components/bottom-sheet/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button/index.d.ts +12 -0
- package/lib/typescript/src/components/button/index.d.ts.map +1 -1
- package/lib/typescript/src/components/button-group/index.d.ts +9 -0
- package/lib/typescript/src/components/button-group/index.d.ts.map +1 -1
- package/lib/typescript/src/components/image-generation/dot-field.d.ts +61 -0
- package/lib/typescript/src/components/image-generation/dot-field.d.ts.map +1 -0
- package/lib/typescript/src/components/image-generation/index.d.ts +126 -0
- package/lib/typescript/src/components/image-generation/index.d.ts.map +1 -0
- package/lib/typescript/src/components/kpi/index.d.ts.map +1 -1
- package/lib/typescript/src/components/menu/index.d.ts.map +1 -1
- package/lib/typescript/src/components/panelside/index.d.ts +194 -10
- package/lib/typescript/src/components/panelside/index.d.ts.map +1 -1
- package/lib/typescript/src/components/select/index.d.ts +75 -2
- package/lib/typescript/src/components/select/index.d.ts.map +1 -1
- package/lib/typescript/src/components/slide-button/index.d.ts +317 -0
- package/lib/typescript/src/components/slide-button/index.d.ts.map +1 -0
- package/lib/typescript/src/components/slide-button/slide-button-track.d.ts +70 -0
- package/lib/typescript/src/components/slide-button/slide-button-track.d.ts.map +1 -0
- package/lib/typescript/src/icons/index.d.ts +136 -189
- package/lib/typescript/src/icons/index.d.ts.map +1 -1
- package/lib/typescript/src/index.d.ts +4 -2
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/primitives/portal.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/components/bottom-sheet/index.tsx +97 -17
- package/src/components/button/index.tsx +10 -2
- package/src/components/button-group/index.tsx +1 -0
- package/src/components/image-generation/dot-field.ts +226 -0
- package/src/components/image-generation/index.tsx +488 -0
- package/src/components/kpi/index.tsx +2 -4
- package/src/components/menu/index.tsx +10 -15
- package/src/components/panelside/index.tsx +498 -33
- package/src/components/select/index.tsx +158 -31
- package/src/components/slide-button/index.tsx +681 -0
- package/src/components/slide-button/slide-button-track.ts +100 -0
- package/src/icons/index.tsx +338 -1327
- package/src/index.ts +28 -0
- package/src/primitives/portal.tsx +15 -1
package/src/index.ts
CHANGED
|
@@ -334,6 +334,7 @@ export {
|
|
|
334
334
|
} from './components/radar-chart';
|
|
335
335
|
export {
|
|
336
336
|
Select,
|
|
337
|
+
useSelectSearch,
|
|
337
338
|
type SelectProps,
|
|
338
339
|
type SelectItemProps,
|
|
339
340
|
type SelectGroupProps,
|
|
@@ -514,6 +515,12 @@ export {
|
|
|
514
515
|
type FormFieldRenderProps,
|
|
515
516
|
type UseFieldOptions,
|
|
516
517
|
} from './components/form';
|
|
518
|
+
export {
|
|
519
|
+
ImageGeneration,
|
|
520
|
+
type ImageGenerationProps,
|
|
521
|
+
type ImageGenerationFieldProps,
|
|
522
|
+
type ImageGenerationStatus,
|
|
523
|
+
} from './components/image-generation';
|
|
517
524
|
export { Input, type InputProps } from './components/input';
|
|
518
525
|
export {
|
|
519
526
|
InputGroup,
|
|
@@ -542,14 +549,26 @@ export {
|
|
|
542
549
|
type PanelsideItemLabelProps,
|
|
543
550
|
type PanelsideItemBadgeProps,
|
|
544
551
|
type PanelsideActionProps,
|
|
552
|
+
type PanelsideItemActionsProps,
|
|
545
553
|
type PanelsideFooterProps,
|
|
546
554
|
type PanelsideCtaProps,
|
|
547
555
|
type PanelsideSceneProps,
|
|
556
|
+
type PanelsidePagesProps,
|
|
557
|
+
type PanelsidePageProps,
|
|
548
558
|
type PanelsideTriggerProps,
|
|
559
|
+
type PanelsideSearchTriggerProps,
|
|
560
|
+
type PanelsideSearchSheetProps,
|
|
561
|
+
type PanelsideSearchTabsProps,
|
|
562
|
+
type PanelsideSearchTabProps,
|
|
563
|
+
type PanelsideSearchResultsProps,
|
|
564
|
+
type PanelsideSearchResultProps,
|
|
565
|
+
type PanelsideSearchFieldProps,
|
|
549
566
|
type PanelsideMode,
|
|
550
567
|
type PanelsideSwipeFrom,
|
|
551
568
|
type PanelsideItemSize,
|
|
552
569
|
type PanelsideCtaSize,
|
|
570
|
+
type PanelsideSurface,
|
|
571
|
+
type PanelsideControlVariant,
|
|
553
572
|
type UsePanelsideResult,
|
|
554
573
|
} from './components/panelside';
|
|
555
574
|
export {
|
|
@@ -1072,6 +1091,15 @@ export {
|
|
|
1072
1091
|
type ThinkingOrbState,
|
|
1073
1092
|
} from './components/thinking-orb';
|
|
1074
1093
|
export { Skeleton, type SkeletonProps } from './components/skeleton';
|
|
1094
|
+
export {
|
|
1095
|
+
SlideButton,
|
|
1096
|
+
useSlideButton,
|
|
1097
|
+
type SlideButtonProps,
|
|
1098
|
+
type SlideButtonLabelProps,
|
|
1099
|
+
type SlideButtonThumbProps,
|
|
1100
|
+
type SlideButtonVariant,
|
|
1101
|
+
type SlideButtonSize,
|
|
1102
|
+
} from './components/slide-button';
|
|
1075
1103
|
export { Slider, type SliderProps } from './components/slider';
|
|
1076
1104
|
export {
|
|
1077
1105
|
Sortable,
|
|
@@ -75,11 +75,25 @@ export function Portal({ children }: { children: ReactNode }) {
|
|
|
75
75
|
const store = usePortalStore('Portal');
|
|
76
76
|
const key = useId();
|
|
77
77
|
|
|
78
|
+
/*
|
|
79
|
+
* Two effects, because they answer to different things.
|
|
80
|
+
*
|
|
81
|
+
* `children` is a new element on every render of whatever owns the portal,
|
|
82
|
+
* so an effect that both mounted and unmounted on it ran `unmount` then
|
|
83
|
+
* `mount` for every one of those renders — deleting the key from the store
|
|
84
|
+
* and putting it straight back, twice through `emit`, twice through a new
|
|
85
|
+
* Map, and a full re-render of the host each time. An open sheet re-rendering
|
|
86
|
+
* as its content changes paid that on every frame it changed on.
|
|
87
|
+
*
|
|
88
|
+
* Split, the update is an update and the teardown happens once, when the
|
|
89
|
+
* portal actually goes away.
|
|
90
|
+
*/
|
|
78
91
|
useEffect(() => {
|
|
79
92
|
store.mount(key, children);
|
|
80
|
-
return () => store.unmount(key);
|
|
81
93
|
}, [store, key, children]);
|
|
82
94
|
|
|
95
|
+
useEffect(() => () => store.unmount(key), [store, key]);
|
|
96
|
+
|
|
83
97
|
return null;
|
|
84
98
|
}
|
|
85
99
|
|