@kjaniec-dev/ui 0.9.2 → 0.9.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.cjs +1979 -1157
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +10 -9
- package/dist/index.d.ts +10 -9
- package/dist/index.js +1979 -1157
- package/dist/index.js.map +1 -1
- package/dist/ui.css +34 -9
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -271,7 +271,7 @@ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps
|
|
|
271
271
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
272
272
|
declare const AccordionContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
273
273
|
|
|
274
|
-
declare function DropdownMenu({ children, className }: {
|
|
274
|
+
declare function DropdownMenu({ children, className, }: {
|
|
275
275
|
children: React.ReactNode;
|
|
276
276
|
className?: string;
|
|
277
277
|
}): React.JSX.Element;
|
|
@@ -362,7 +362,7 @@ interface ModalProps {
|
|
|
362
362
|
showClose?: boolean;
|
|
363
363
|
}
|
|
364
364
|
/** Centered overlay dialog. Closes on backdrop click and Escape. Includes focus trap and restore. */
|
|
365
|
-
declare function Modal({ open, onClose, children, width, className, showClose }: ModalProps): React.JSX.Element;
|
|
365
|
+
declare function Modal({ open, onClose, children, width, className, showClose, }: ModalProps): React.JSX.Element;
|
|
366
366
|
declare function ModalTitle({ className, id, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): React.JSX.Element;
|
|
367
367
|
declare function ModalDescription({ className, id, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
|
|
368
368
|
declare function ModalActions({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
@@ -486,6 +486,7 @@ declare const ErrorState: React.ForwardRefExoticComponent<ErrorStateProps & Reac
|
|
|
486
486
|
|
|
487
487
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
488
488
|
variant?: "text" | "circular" | "rectangular";
|
|
489
|
+
animation?: "shimmer" | "pulse" | "none";
|
|
489
490
|
width?: string | number;
|
|
490
491
|
height?: string | number;
|
|
491
492
|
}
|
|
@@ -576,7 +577,7 @@ interface CommandPaletteProps {
|
|
|
576
577
|
items: CommandPaletteItem[];
|
|
577
578
|
placeholder?: string;
|
|
578
579
|
}
|
|
579
|
-
declare function CommandPalette({ open, onClose, items, placeholder }: CommandPaletteProps): React.JSX.Element | null;
|
|
580
|
+
declare function CommandPalette({ open, onClose, items, placeholder, }: CommandPaletteProps): React.JSX.Element | null;
|
|
580
581
|
declare namespace CommandPalette {
|
|
581
582
|
var displayName: string;
|
|
582
583
|
}
|
|
@@ -665,7 +666,7 @@ interface SeparatorProps {
|
|
|
665
666
|
className?: string;
|
|
666
667
|
}
|
|
667
668
|
/** Thin layout divider. Decorative by default; pass decorative={false} for a semantic role="separator". */
|
|
668
|
-
declare function Separator({ orientation, decorative, className }: SeparatorProps): React.JSX.Element;
|
|
669
|
+
declare function Separator({ orientation, decorative, className, }: SeparatorProps): React.JSX.Element;
|
|
669
670
|
|
|
670
671
|
interface PopoverProps {
|
|
671
672
|
/** Trigger and content elements. */
|
|
@@ -1292,7 +1293,7 @@ interface InPostGeowidgetProps {
|
|
|
1292
1293
|
declare global {
|
|
1293
1294
|
namespace JSX {
|
|
1294
1295
|
interface IntrinsicElements {
|
|
1295
|
-
|
|
1296
|
+
"inpost-geowidget": React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLElement> & {
|
|
1296
1297
|
token?: string;
|
|
1297
1298
|
language?: string;
|
|
1298
1299
|
config?: string;
|
|
@@ -1325,9 +1326,9 @@ interface InPostGeowidgetModalProps {
|
|
|
1325
1326
|
/** Outer container CSS class name. */
|
|
1326
1327
|
className?: string;
|
|
1327
1328
|
/** Trigger button style variant ('primary', 'secondary', 'outline', 'ghost', 'danger'). Default 'outline'. */
|
|
1328
|
-
buttonVariant?:
|
|
1329
|
+
buttonVariant?: "primary" | "secondary" | "outline" | "ghost" | "danger";
|
|
1329
1330
|
/** Trigger button size ('sm', 'md', 'lg'). Default 'md'. */
|
|
1330
|
-
buttonSize?:
|
|
1331
|
+
buttonSize?: "sm" | "md" | "lg";
|
|
1331
1332
|
/** InPost API Token (optional for sandbox). */
|
|
1332
1333
|
token?: string;
|
|
1333
1334
|
/** Widget language ('pl', 'en', 'uk', 'de', 'it', 'fr'). Default 'pl'. */
|
|
@@ -1370,8 +1371,8 @@ interface InPostPoint {
|
|
|
1370
1371
|
functions?: string[];
|
|
1371
1372
|
[key: string]: unknown;
|
|
1372
1373
|
}
|
|
1373
|
-
type InPostLanguage =
|
|
1374
|
-
type InPostConfigType =
|
|
1374
|
+
type InPostLanguage = "pl" | "en" | "uk" | "de" | "it" | "fr";
|
|
1375
|
+
type InPostConfigType = "parcelCollect" | "parcelCollectPayment" | "international" | "postBuy" | string;
|
|
1375
1376
|
interface UseInPostScriptOptions {
|
|
1376
1377
|
sandbox?: boolean;
|
|
1377
1378
|
customScriptUrl?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -271,7 +271,7 @@ declare const AccordionItem: React.ForwardRefExoticComponent<AccordionItemProps
|
|
|
271
271
|
declare const AccordionTrigger: React.ForwardRefExoticComponent<React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
272
272
|
declare const AccordionContent: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & React.RefAttributes<HTMLDivElement>>;
|
|
273
273
|
|
|
274
|
-
declare function DropdownMenu({ children, className }: {
|
|
274
|
+
declare function DropdownMenu({ children, className, }: {
|
|
275
275
|
children: React.ReactNode;
|
|
276
276
|
className?: string;
|
|
277
277
|
}): React.JSX.Element;
|
|
@@ -362,7 +362,7 @@ interface ModalProps {
|
|
|
362
362
|
showClose?: boolean;
|
|
363
363
|
}
|
|
364
364
|
/** Centered overlay dialog. Closes on backdrop click and Escape. Includes focus trap and restore. */
|
|
365
|
-
declare function Modal({ open, onClose, children, width, className, showClose }: ModalProps): React.JSX.Element;
|
|
365
|
+
declare function Modal({ open, onClose, children, width, className, showClose, }: ModalProps): React.JSX.Element;
|
|
366
366
|
declare function ModalTitle({ className, id, children, ...props }: React.HTMLAttributes<HTMLHeadingElement>): React.JSX.Element;
|
|
367
367
|
declare function ModalDescription({ className, id, ...props }: React.HTMLAttributes<HTMLParagraphElement>): React.JSX.Element;
|
|
368
368
|
declare function ModalActions({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): React.JSX.Element;
|
|
@@ -486,6 +486,7 @@ declare const ErrorState: React.ForwardRefExoticComponent<ErrorStateProps & Reac
|
|
|
486
486
|
|
|
487
487
|
interface SkeletonProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
488
488
|
variant?: "text" | "circular" | "rectangular";
|
|
489
|
+
animation?: "shimmer" | "pulse" | "none";
|
|
489
490
|
width?: string | number;
|
|
490
491
|
height?: string | number;
|
|
491
492
|
}
|
|
@@ -576,7 +577,7 @@ interface CommandPaletteProps {
|
|
|
576
577
|
items: CommandPaletteItem[];
|
|
577
578
|
placeholder?: string;
|
|
578
579
|
}
|
|
579
|
-
declare function CommandPalette({ open, onClose, items, placeholder }: CommandPaletteProps): React.JSX.Element | null;
|
|
580
|
+
declare function CommandPalette({ open, onClose, items, placeholder, }: CommandPaletteProps): React.JSX.Element | null;
|
|
580
581
|
declare namespace CommandPalette {
|
|
581
582
|
var displayName: string;
|
|
582
583
|
}
|
|
@@ -665,7 +666,7 @@ interface SeparatorProps {
|
|
|
665
666
|
className?: string;
|
|
666
667
|
}
|
|
667
668
|
/** Thin layout divider. Decorative by default; pass decorative={false} for a semantic role="separator". */
|
|
668
|
-
declare function Separator({ orientation, decorative, className }: SeparatorProps): React.JSX.Element;
|
|
669
|
+
declare function Separator({ orientation, decorative, className, }: SeparatorProps): React.JSX.Element;
|
|
669
670
|
|
|
670
671
|
interface PopoverProps {
|
|
671
672
|
/** Trigger and content elements. */
|
|
@@ -1292,7 +1293,7 @@ interface InPostGeowidgetProps {
|
|
|
1292
1293
|
declare global {
|
|
1293
1294
|
namespace JSX {
|
|
1294
1295
|
interface IntrinsicElements {
|
|
1295
|
-
|
|
1296
|
+
"inpost-geowidget": React__default.DetailedHTMLProps<React__default.HTMLAttributes<HTMLElement> & {
|
|
1296
1297
|
token?: string;
|
|
1297
1298
|
language?: string;
|
|
1298
1299
|
config?: string;
|
|
@@ -1325,9 +1326,9 @@ interface InPostGeowidgetModalProps {
|
|
|
1325
1326
|
/** Outer container CSS class name. */
|
|
1326
1327
|
className?: string;
|
|
1327
1328
|
/** Trigger button style variant ('primary', 'secondary', 'outline', 'ghost', 'danger'). Default 'outline'. */
|
|
1328
|
-
buttonVariant?:
|
|
1329
|
+
buttonVariant?: "primary" | "secondary" | "outline" | "ghost" | "danger";
|
|
1329
1330
|
/** Trigger button size ('sm', 'md', 'lg'). Default 'md'. */
|
|
1330
|
-
buttonSize?:
|
|
1331
|
+
buttonSize?: "sm" | "md" | "lg";
|
|
1331
1332
|
/** InPost API Token (optional for sandbox). */
|
|
1332
1333
|
token?: string;
|
|
1333
1334
|
/** Widget language ('pl', 'en', 'uk', 'de', 'it', 'fr'). Default 'pl'. */
|
|
@@ -1370,8 +1371,8 @@ interface InPostPoint {
|
|
|
1370
1371
|
functions?: string[];
|
|
1371
1372
|
[key: string]: unknown;
|
|
1372
1373
|
}
|
|
1373
|
-
type InPostLanguage =
|
|
1374
|
-
type InPostConfigType =
|
|
1374
|
+
type InPostLanguage = "pl" | "en" | "uk" | "de" | "it" | "fr";
|
|
1375
|
+
type InPostConfigType = "parcelCollect" | "parcelCollectPayment" | "international" | "postBuy" | string;
|
|
1375
1376
|
interface UseInPostScriptOptions {
|
|
1376
1377
|
sandbox?: boolean;
|
|
1377
1378
|
customScriptUrl?: string;
|