@korsolutions/ui 0.0.26 → 0.0.27
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/components/index.d.mts +1 -1
- package/dist/components/index.mjs +6 -3
- package/dist/{index-j_OCsdsx.d.mts → index-_EJRToiG.d.mts} +9 -9
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +2 -2
- package/dist/primitives/index.d.mts +1 -1
- package/dist/primitives/index.mjs +1 -1
- package/dist/{primitives-CB1VBoeH.mjs → primitives-8eataXpJ.mjs} +1 -1
- package/dist/{toast-manager-Bn8NB8Ie.mjs → toast-manager-B5sELMqc.mjs} +1 -1
- package/package.json +1 -1
- package/src/components/popover/variants/default.tsx +1 -0
- package/src/primitives/popover/popover-trigger.tsx +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EmptyStyles, C as PopoverTriggerRef, Ct as ButtonStyles, D as DropdownMenuStyles, Et as InputPrimitiveBaseProps, I as TextareaStyles, J as AvatarStyles, Ot as InputStyles, P as TextareaPrimitiveBaseProps, U as ToastStyles, a as CalendarStyles, at as CardStyles, ft as SelectRootBaseProps, jt as FieldStyles, mt as SelectStyles, r as CalendarRootProps, xt as ButtonPrimitiveRootProps, y as PopoverStyles, z as BadgeStyles } from "../index-
|
|
1
|
+
import { $ as EmptyStyles, C as PopoverTriggerRef, Ct as ButtonStyles, D as DropdownMenuStyles, Et as InputPrimitiveBaseProps, I as TextareaStyles, J as AvatarStyles, Ot as InputStyles, P as TextareaPrimitiveBaseProps, U as ToastStyles, a as CalendarStyles, at as CardStyles, ft as SelectRootBaseProps, jt as FieldStyles, mt as SelectStyles, r as CalendarRootProps, xt as ButtonPrimitiveRootProps, y as PopoverStyles, z as BadgeStyles } from "../index-_EJRToiG.mjs";
|
|
2
2
|
import "../use-relative-position-DBzhrBU7.mjs";
|
|
3
3
|
import "../portal.constants-ClRV24_C.mjs";
|
|
4
4
|
import { t as NumericMaskFormat } from "../use-numeric-mask-D4zqPOnE.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as useThemedStyles, r as ToastComponent, t as ToastAPI } from "../toast-manager-
|
|
2
|
-
import { a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-
|
|
1
|
+
import { i as useThemedStyles, r as ToastComponent, t as ToastAPI } from "../toast-manager-B5sELMqc.mjs";
|
|
2
|
+
import { a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-8eataXpJ.mjs";
|
|
3
3
|
import "../use-relative-position-BTKEyT1F.mjs";
|
|
4
4
|
import { t as useNumericMask } from "../use-numeric-mask-BQlz1Pus.mjs";
|
|
5
5
|
import React, { forwardRef, useEffect, useState } from "react";
|
|
@@ -777,7 +777,10 @@ function DropdownMenu(props) {
|
|
|
777
777
|
//#region src/components/popover/variants/default.tsx
|
|
778
778
|
const usePopoverVariantDefault = () => {
|
|
779
779
|
return useThemedStyles(({ colors, radius }) => ({
|
|
780
|
-
overlay: {
|
|
780
|
+
overlay: {
|
|
781
|
+
backgroundColor: "rgba(0, 0, 0, 0.5)",
|
|
782
|
+
zIndex: 999
|
|
783
|
+
},
|
|
781
784
|
content: {
|
|
782
785
|
backgroundColor: colors.surface,
|
|
783
786
|
borderRadius: radius,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as LayoutPosition } from "./use-relative-position-DBzhrBU7.mjs";
|
|
2
2
|
import { n as PortalHostProps, r as PortalProps } from "./portal.constants-ClRV24_C.mjs";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react10 from "react";
|
|
4
4
|
import React$1, { Dispatch, RefAttributes } from "react";
|
|
5
5
|
import { ImageSource, ImageStyle, LayoutRectangle, PressableProps, StyleProp, TextInput, TextInputProps, TextProps, TextStyle, View, ViewProps, ViewStyle } from "react-native";
|
|
6
6
|
|
|
@@ -68,7 +68,7 @@ interface InputPrimitiveProps extends InputPrimitiveBaseProps {
|
|
|
68
68
|
render?: (props: InputPrimitiveProps) => React.ReactNode;
|
|
69
69
|
styles?: InputStyles;
|
|
70
70
|
}
|
|
71
|
-
declare const InputPrimitive:
|
|
71
|
+
declare const InputPrimitive: react10.ForwardRefExoticComponent<Omit<InputPrimitiveProps, "ref"> & react10.RefAttributes<TextInput>>;
|
|
72
72
|
//#endregion
|
|
73
73
|
//#region src/primitives/button/button-label.d.ts
|
|
74
74
|
interface ButtonPrimitiveLabelProps {
|
|
@@ -154,7 +154,7 @@ interface SelectOptionProps {
|
|
|
154
154
|
render?: (props: SelectOptionProps) => React.ReactElement;
|
|
155
155
|
style?: StyleProp<TextStyle>;
|
|
156
156
|
}
|
|
157
|
-
declare function SelectOption(props: SelectOptionProps):
|
|
157
|
+
declare function SelectOption(props: SelectOptionProps): react10.JSX.Element;
|
|
158
158
|
//#endregion
|
|
159
159
|
//#region src/primitives/select/types.d.ts
|
|
160
160
|
type SelectState = "default" | "disabled";
|
|
@@ -435,7 +435,7 @@ interface TextareaPrimitiveProps extends TextareaPrimitiveBaseProps {
|
|
|
435
435
|
render?: (props: TextareaPrimitiveProps) => React.ReactNode;
|
|
436
436
|
styles?: TextareaStyles;
|
|
437
437
|
}
|
|
438
|
-
declare function TextareaPrimitive(props: TextareaPrimitiveProps):
|
|
438
|
+
declare function TextareaPrimitive(props: TextareaPrimitiveProps): react10.JSX.Element;
|
|
439
439
|
//#endregion
|
|
440
440
|
//#region src/primitives/dropdown-menu/dropdown-menu-trigger.d.ts
|
|
441
441
|
interface DropdownMenuTriggerProps extends PressableProps {
|
|
@@ -506,7 +506,7 @@ declare function DropdownMenuPortal(props: DropdownMenuPortalProps): React$1.JSX
|
|
|
506
506
|
//#region src/primitives/dropdown-menu/index.d.ts
|
|
507
507
|
declare const DropdownMenuPrimitive: {
|
|
508
508
|
Root: typeof DropdownMenuRoot;
|
|
509
|
-
Trigger:
|
|
509
|
+
Trigger: react10.ForwardRefExoticComponent<DropdownMenuTriggerProps & react10.RefAttributes<DropdownMenuTriggerRef>>;
|
|
510
510
|
Portal: typeof DropdownMenuPortal;
|
|
511
511
|
Overlay: typeof DropdownMenuOverlay;
|
|
512
512
|
Content: typeof DropdownMenuContent;
|
|
@@ -580,13 +580,13 @@ interface PopoverContext {
|
|
|
580
580
|
setTriggerPosition: Dispatch<React.SetStateAction<LayoutPosition>>;
|
|
581
581
|
styles?: PopoverStyles;
|
|
582
582
|
}
|
|
583
|
-
declare const PopoverContext:
|
|
583
|
+
declare const PopoverContext: react10.Context<PopoverContext | undefined>;
|
|
584
584
|
declare const usePopover: () => PopoverContext;
|
|
585
585
|
//#endregion
|
|
586
586
|
//#region src/primitives/popover/index.d.ts
|
|
587
587
|
declare const PopoverPrimitive: {
|
|
588
588
|
Root: typeof PopoverRoot;
|
|
589
|
-
Trigger:
|
|
589
|
+
Trigger: react10.ForwardRefExoticComponent<PopoverTriggerProps & react10.RefAttributes<PopoverTriggerRef>>;
|
|
590
590
|
Portal: typeof PopoverPortal;
|
|
591
591
|
Overlay: typeof PopoverOverlay;
|
|
592
592
|
Content: typeof PopoverContent;
|
|
@@ -597,13 +597,13 @@ declare const PopoverPrimitive: {
|
|
|
597
597
|
declare function NativePortalHost({
|
|
598
598
|
name,
|
|
599
599
|
container
|
|
600
|
-
}: PortalHostProps):
|
|
600
|
+
}: PortalHostProps): react10.JSX.Element | null;
|
|
601
601
|
declare const PortalHost: typeof NativePortalHost;
|
|
602
602
|
declare function NativePortal({
|
|
603
603
|
name,
|
|
604
604
|
hostName,
|
|
605
605
|
children
|
|
606
|
-
}: PortalProps):
|
|
606
|
+
}: PortalProps): react10.JSX.Element;
|
|
607
607
|
declare const Portal: typeof NativePortal;
|
|
608
608
|
//#endregion
|
|
609
609
|
//#region src/primitives/calendar/calendar-weeks.d.ts
|
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as PortalHostProps } from "./portal.constants-ClRV24_C.mjs";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react7 from "react";
|
|
3
3
|
|
|
4
4
|
//#region src/themes/types.d.ts
|
|
5
5
|
type ThemeName = "default";
|
|
@@ -38,7 +38,7 @@ interface ThemeContext {
|
|
|
38
38
|
setTheme: (themeName: ThemeName) => void;
|
|
39
39
|
themeName: ThemeName;
|
|
40
40
|
}
|
|
41
|
-
declare const ThemeContext:
|
|
41
|
+
declare const ThemeContext: react7.Context<ThemeContext | null>;
|
|
42
42
|
declare const useTheme: () => ThemeContext;
|
|
43
43
|
//#endregion
|
|
44
44
|
//#region src/index.d.ts
|
|
@@ -49,6 +49,6 @@ interface ProviderProps {
|
|
|
49
49
|
declare const UniversalUIProvider: ({
|
|
50
50
|
children,
|
|
51
51
|
portalContainer
|
|
52
|
-
}: ProviderProps) =>
|
|
52
|
+
}: ProviderProps) => react7.JSX.Element;
|
|
53
53
|
//#endregion
|
|
54
54
|
export { ProviderProps, UniversalUIProvider, useTheme };
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as ThemeProvider, n as ToastContainer, o as useTheme } from "./toast-manager-
|
|
2
|
-
import { g as PortalHost } from "./primitives-
|
|
1
|
+
import { a as ThemeProvider, n as ToastContainer, o as useTheme } from "./toast-manager-B5sELMqc.mjs";
|
|
2
|
+
import { g as PortalHost } from "./primitives-8eataXpJ.mjs";
|
|
3
3
|
import "./use-relative-position-BTKEyT1F.mjs";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as EmptyStyles, A as DropdownMenuButtonProps, At as FieldPrimitiveRootProps, B as BadgeLabelProps, C as PopoverTriggerRef, Ct as ButtonStyles, D as DropdownMenuStyles, Dt as InputPrimitiveProps, E as DropdownMenuRootProps, Et as InputPrimitiveBaseProps, F as TextareaPrimitiveProps, G as ToastTitleProps, H as ToastRootProps, I as TextareaStyles, J as AvatarStyles, K as AvatarPrimitive, L as BadgePrimitive, M as DropdownMenuTriggerProps, Mt as FieldErrorProps, N as TextareaPrimitive, Nt as FieldDescriptionProps, O as DropdownMenuOverlayProps, Ot as InputStyles, P as TextareaPrimitiveBaseProps, Pt as FieldLabelProps, Q as EmptyRootProps, R as BadgeRootProps, S as PopoverTriggerProps, St as ButtonState, T as DropdownMenuPortalProps, Tt as InputPrimitive, U as ToastStyles, V as ToastPrimitive, W as ToastDescriptionProps, X as AvatarFallbackProps, Y as AvatarImageProps, Z as EmptyPrimitive, _ as PopoverPortalProps, _t as SelectOverlayProps, a as CalendarStyles, at as CardStyles, b as PopoverOverlayProps, bt as ButtonPrimitive, c as CalendarDayProps, ct as CardTitleProps, d as Portal, dt as SelectPortalProps, et as EmptyTitleProps, f as PortalHost, ft as SelectRootBaseProps, g as PopoverCloseProps, gt as SelectContentProps, h as usePopover, ht as SelectOptionProps, i as CalendarDayState, it as CardRootProps, j as DropdownMenuContentProps, jt as FieldStyles, k as DropdownMenuDividerProps, kt as FieldPrimitive, l as CalendarWeekLabelsProps, lt as CardHeaderProps, m as PopoverContext, mt as SelectStyles, n as CalendarNavButtonProps, nt as EmptyDescriptionProps, o as CalendarTitleProps, ot as CardFooterProps, p as PopoverPrimitive, pt as SelectRootProps, q as AvatarRootProps, r as CalendarRootProps, rt as CardPrimitive, s as CalendarHeaderProps, st as CardBodyProps, t as CalendarPrimitive, tt as EmptyMediaProps, u as CalendarWeeksProps, ut as SelectPrimitive, v as PopoverRootProps, vt as SelectValueProps, w as DropdownMenuPrimitive, wt as ButtonPrimitiveLabelProps, x as PopoverContentProps, xt as ButtonPrimitiveRootProps, yt as SelectTriggerProps, z as BadgeStyles } from "../index-
|
|
1
|
+
import { $ as EmptyStyles, A as DropdownMenuButtonProps, At as FieldPrimitiveRootProps, B as BadgeLabelProps, C as PopoverTriggerRef, Ct as ButtonStyles, D as DropdownMenuStyles, Dt as InputPrimitiveProps, E as DropdownMenuRootProps, Et as InputPrimitiveBaseProps, F as TextareaPrimitiveProps, G as ToastTitleProps, H as ToastRootProps, I as TextareaStyles, J as AvatarStyles, K as AvatarPrimitive, L as BadgePrimitive, M as DropdownMenuTriggerProps, Mt as FieldErrorProps, N as TextareaPrimitive, Nt as FieldDescriptionProps, O as DropdownMenuOverlayProps, Ot as InputStyles, P as TextareaPrimitiveBaseProps, Pt as FieldLabelProps, Q as EmptyRootProps, R as BadgeRootProps, S as PopoverTriggerProps, St as ButtonState, T as DropdownMenuPortalProps, Tt as InputPrimitive, U as ToastStyles, V as ToastPrimitive, W as ToastDescriptionProps, X as AvatarFallbackProps, Y as AvatarImageProps, Z as EmptyPrimitive, _ as PopoverPortalProps, _t as SelectOverlayProps, a as CalendarStyles, at as CardStyles, b as PopoverOverlayProps, bt as ButtonPrimitive, c as CalendarDayProps, ct as CardTitleProps, d as Portal, dt as SelectPortalProps, et as EmptyTitleProps, f as PortalHost, ft as SelectRootBaseProps, g as PopoverCloseProps, gt as SelectContentProps, h as usePopover, ht as SelectOptionProps, i as CalendarDayState, it as CardRootProps, j as DropdownMenuContentProps, jt as FieldStyles, k as DropdownMenuDividerProps, kt as FieldPrimitive, l as CalendarWeekLabelsProps, lt as CardHeaderProps, m as PopoverContext, mt as SelectStyles, n as CalendarNavButtonProps, nt as EmptyDescriptionProps, o as CalendarTitleProps, ot as CardFooterProps, p as PopoverPrimitive, pt as SelectRootProps, q as AvatarRootProps, r as CalendarRootProps, rt as CardPrimitive, s as CalendarHeaderProps, st as CardBodyProps, t as CalendarPrimitive, tt as EmptyMediaProps, u as CalendarWeeksProps, ut as SelectPrimitive, v as PopoverRootProps, vt as SelectValueProps, w as DropdownMenuPrimitive, wt as ButtonPrimitiveLabelProps, x as PopoverContentProps, xt as ButtonPrimitiveRootProps, yt as SelectTriggerProps, z as BadgeStyles } from "../index-_EJRToiG.mjs";
|
|
2
2
|
import "../use-relative-position-DBzhrBU7.mjs";
|
|
3
3
|
import { n as PortalHostProps, r as PortalProps, t as DEFAULT_PORTAL_HOST } from "../portal.constants-ClRV24_C.mjs";
|
|
4
4
|
export { AvatarFallbackProps, AvatarImageProps, AvatarPrimitive, AvatarRootProps, AvatarStyles, BadgeLabelProps, BadgePrimitive, BadgeRootProps, BadgeStyles, ButtonPrimitive, ButtonPrimitiveLabelProps, ButtonPrimitiveRootProps, ButtonState, ButtonStyles, CalendarDayProps, CalendarDayState, CalendarHeaderProps, CalendarNavButtonProps, CalendarPrimitive, CalendarRootProps, CalendarStyles, CalendarTitleProps, CalendarWeekLabelsProps, CalendarWeeksProps, CardBodyProps, CardFooterProps, CardHeaderProps, CardPrimitive, CardRootProps, CardStyles, CardTitleProps, DEFAULT_PORTAL_HOST, DropdownMenuButtonProps, DropdownMenuContentProps, DropdownMenuDividerProps, DropdownMenuOverlayProps, DropdownMenuPortalProps, DropdownMenuPrimitive, DropdownMenuRootProps, DropdownMenuStyles, DropdownMenuTriggerProps, EmptyDescriptionProps, EmptyMediaProps, EmptyPrimitive, EmptyRootProps, EmptyStyles, EmptyTitleProps, FieldDescriptionProps, FieldErrorProps, FieldLabelProps, FieldPrimitive, FieldPrimitiveRootProps, FieldStyles, InputPrimitive, InputPrimitiveBaseProps, InputPrimitiveProps, InputStyles, PopoverCloseProps, PopoverContentProps, PopoverContext, PopoverOverlayProps, PopoverPortalProps, PopoverPrimitive, PopoverRootProps, PopoverTriggerProps, PopoverTriggerRef, Portal, PortalHost, PortalHostProps, PortalProps, SelectContentProps, SelectOptionProps, SelectOverlayProps, SelectPortalProps, SelectPrimitive, SelectRootBaseProps, SelectRootProps, SelectStyles, SelectTriggerProps, SelectValueProps, TextareaPrimitive, TextareaPrimitiveBaseProps, TextareaPrimitiveProps, TextareaStyles, ToastDescriptionProps, ToastPrimitive, ToastRootProps, ToastStyles, ToastTitleProps, usePopover };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as DEFAULT_PORTAL_HOST, a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, g as PortalHost, h as Portal, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, s as ToastPrimitive, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-
|
|
1
|
+
import { _ as DEFAULT_PORTAL_HOST, a as TextareaPrimitive, c as AvatarPrimitive, d as SelectPrimitive, f as ButtonPrimitive, g as PortalHost, h as Portal, i as DropdownMenuPrimitive, l as EmptyPrimitive, m as FieldPrimitive, n as PopoverPrimitive, o as BadgePrimitive, p as InputPrimitive, r as usePopover, s as ToastPrimitive, t as CalendarPrimitive, u as CardPrimitive } from "../primitives-8eataXpJ.mjs";
|
|
2
2
|
import "../use-relative-position-BTKEyT1F.mjs";
|
|
3
3
|
|
|
4
4
|
export { AvatarPrimitive, BadgePrimitive, ButtonPrimitive, CalendarPrimitive, CardPrimitive, DEFAULT_PORTAL_HOST, DropdownMenuPrimitive, EmptyPrimitive, FieldPrimitive, InputPrimitive, PopoverPrimitive, Portal, PortalHost, SelectPrimitive, TextareaPrimitive, ToastPrimitive, usePopover };
|
|
@@ -1002,7 +1002,7 @@ const PopoverTrigger = forwardRef((props, ref) => {
|
|
|
1002
1002
|
const popover = usePopover();
|
|
1003
1003
|
const triggerRef = useRef(null);
|
|
1004
1004
|
const onTriggerPress = async () => {
|
|
1005
|
-
triggerRef.current?.
|
|
1005
|
+
triggerRef.current?.measureInWindow((pageX, pageY, width, height) => {
|
|
1006
1006
|
popover.setTriggerPosition({
|
|
1007
1007
|
height,
|
|
1008
1008
|
width,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { h as Portal, s as ToastPrimitive } from "./primitives-
|
|
1
|
+
import { h as Portal, s as ToastPrimitive } from "./primitives-8eataXpJ.mjs";
|
|
2
2
|
import React, { createContext, useContext, useEffect, useState, useSyncExternalStore } from "react";
|
|
3
3
|
import { StyleSheet, View, useColorScheme } from "react-native";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/package.json
CHANGED
|
@@ -16,7 +16,7 @@ export const PopoverTrigger = forwardRef<PopoverTriggerRef, PopoverTriggerProps>
|
|
|
16
16
|
const triggerRef = useRef<View>(null);
|
|
17
17
|
|
|
18
18
|
const onTriggerPress = async () => {
|
|
19
|
-
triggerRef.current?.
|
|
19
|
+
triggerRef.current?.measureInWindow((pageX, pageY, width, height) => {
|
|
20
20
|
popover.setTriggerPosition({
|
|
21
21
|
height,
|
|
22
22
|
width,
|