@splenddev/kreativ-ui 0.3.16 → 0.3.18
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/{chunk-K47M7SWS.js → chunk-3SX7MFC4.js} +27303 -26702
- package/dist/chunk-3SX7MFC4.js.map +1 -0
- package/dist/{chunk-UCZ22R5N.js → chunk-6GN2Y3X4.js} +62 -4
- package/dist/chunk-6GN2Y3X4.js.map +1 -0
- package/dist/{chunk-YOHCWN65.cjs → chunk-HHSP6YJA.cjs} +62 -4
- package/dist/chunk-HHSP6YJA.cjs.map +1 -0
- package/dist/{chunk-ZQUTXKFO.cjs → chunk-L3YGJX72.cjs} +27374 -26771
- package/dist/chunk-L3YGJX72.cjs.map +1 -0
- package/dist/components.cjs +95 -87
- package/dist/components.d.cts +96 -1
- package/dist/components.d.ts +96 -1
- package/dist/components.js +1 -1
- package/dist/core.cjs +17 -17
- package/dist/core.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +2 -2
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
- package/dist/chunk-K47M7SWS.js.map +0 -1
- package/dist/chunk-UCZ22R5N.js.map +0 -1
- package/dist/chunk-YOHCWN65.cjs.map +0 -1
- package/dist/chunk-ZQUTXKFO.cjs.map +0 -1
package/dist/components.d.ts
CHANGED
|
@@ -516,6 +516,101 @@ declare function useDialogState(id: string): {
|
|
|
516
516
|
isSuspended: boolean;
|
|
517
517
|
};
|
|
518
518
|
|
|
519
|
+
interface CarouselNavButtonProps extends Omit<ButtonProps, "children"> {
|
|
520
|
+
asChild?: boolean;
|
|
521
|
+
children?: React$1.ReactNode;
|
|
522
|
+
placement?: "overlay" | "inline";
|
|
523
|
+
recipeProps?: Record<string, string>;
|
|
524
|
+
}
|
|
525
|
+
interface CarouselIndicatorsInfo {
|
|
526
|
+
index: number;
|
|
527
|
+
/** Number of reachable positions (maxIndex + 1). */
|
|
528
|
+
count: number;
|
|
529
|
+
goTo: (index: number) => void;
|
|
530
|
+
}
|
|
531
|
+
interface CarouselIndicatorsProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children"> {
|
|
532
|
+
children?: React$1.ReactNode | ((info: CarouselIndicatorsInfo) => React$1.ReactNode);
|
|
533
|
+
placement?: "below" | "overlay";
|
|
534
|
+
recipeProps?: Record<string, string>;
|
|
535
|
+
}
|
|
536
|
+
interface CarouselPlayPauseProps extends Omit<ButtonProps, "children"> {
|
|
537
|
+
asChild?: boolean;
|
|
538
|
+
children?: React$1.ReactNode;
|
|
539
|
+
placement?: "overlay" | "inline";
|
|
540
|
+
recipeProps?: Record<string, string>;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
type CarouselSlideProps = React$1.HTMLAttributes<HTMLDivElement>;
|
|
544
|
+
interface CarouselViewportProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "children" | "onScroll" | "onScrollEnd"> {
|
|
545
|
+
/** Slides must be direct children (arrays are fine). */
|
|
546
|
+
children?: React$1.ReactNode;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
interface CarouselRootProps extends Omit<React$1.HTMLAttributes<HTMLDivElement>, "onChange"> {
|
|
550
|
+
/** Leading visible slide (0-based). Controlled. */
|
|
551
|
+
index?: number;
|
|
552
|
+
defaultIndex?: number;
|
|
553
|
+
onIndexChange?: (index: number) => void;
|
|
554
|
+
/** Wrap-around navigation (rewind): Next on the last position goes to the first, and vice versa. */
|
|
555
|
+
loop?: boolean;
|
|
556
|
+
/** Auto-advance. Never runs under prefers-reduced-motion. */
|
|
557
|
+
autoplay?: boolean;
|
|
558
|
+
/** User play/pause state (Carousel.PlayPause). Controlled. Default true. */
|
|
559
|
+
playing?: boolean;
|
|
560
|
+
defaultPlaying?: boolean;
|
|
561
|
+
onPlayingChange?: (playing: boolean) => void;
|
|
562
|
+
/** ms between auto-advances. Default 5000. */
|
|
563
|
+
autoplayInterval?: number;
|
|
564
|
+
/** Pause while the pointer is over the carousel. Default true. */
|
|
565
|
+
pauseOnHover?: boolean;
|
|
566
|
+
/** Pause while focus is inside the carousel. Default true. */
|
|
567
|
+
pauseOnFocus?: boolean;
|
|
568
|
+
/** Slides visible at once. Default 1. */
|
|
569
|
+
slidesPerView?: number;
|
|
570
|
+
/** Space between slides (number = px, or any CSS length). Default 0. */
|
|
571
|
+
gap?: number | string;
|
|
572
|
+
/** Extra recipe variant groups (e.g. from extendRecipe). Typed props win on collision. */
|
|
573
|
+
recipeProps?: Record<string, string>;
|
|
574
|
+
}
|
|
575
|
+
|
|
576
|
+
interface CarouselProps extends CarouselRootProps {
|
|
577
|
+
/** Render Previous/Next. Default true. */
|
|
578
|
+
controls?: boolean;
|
|
579
|
+
/** Render Indicators. Default true. */
|
|
580
|
+
indicators?: boolean;
|
|
581
|
+
/** Render the play/pause control (only appears when `autoplay` is on). Default true. */
|
|
582
|
+
playPause?: boolean;
|
|
583
|
+
/** Where Previous/Next/PlayPause sit. Default "overlay". */
|
|
584
|
+
controlsPlacement?: "overlay" | "inline";
|
|
585
|
+
/** Where the dots sit. Default "below". */
|
|
586
|
+
indicatorsPlacement?: "below" | "overlay";
|
|
587
|
+
}
|
|
588
|
+
declare const Carousel: React$1.ForwardRefExoticComponent<CarouselProps & React$1.RefAttributes<HTMLDivElement>> & {
|
|
589
|
+
Root: _splenddev_kreativ_core.KuiComponent<CarouselRootProps, HTMLDivElement>;
|
|
590
|
+
Viewport: _splenddev_kreativ_core.KuiComponent<CarouselViewportProps, HTMLElement>;
|
|
591
|
+
Slide: _splenddev_kreativ_core.KuiComponent<CarouselSlideProps, HTMLDivElement>;
|
|
592
|
+
Previous: _splenddev_kreativ_core.KuiComponent<CarouselNavButtonProps, HTMLButtonElement>;
|
|
593
|
+
Next: _splenddev_kreativ_core.KuiComponent<CarouselNavButtonProps, HTMLButtonElement>;
|
|
594
|
+
PlayPause: _splenddev_kreativ_core.KuiComponent<CarouselPlayPauseProps, HTMLButtonElement>;
|
|
595
|
+
Indicators: _splenddev_kreativ_core.KuiComponent<CarouselIndicatorsProps, HTMLDivElement>;
|
|
596
|
+
};
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* SEAM for ScrollArea's PLANNED scroll-snap extension (container `snap` / `snapAlign` / `snapStop`
|
|
600
|
+
* + a `ScrollArea.Item` part). The uploaded ScrollArea does not have it yet, so Carousel applies the
|
|
601
|
+
* equivalent CSS itself, through this one file. When ScrollArea ships snap, replace the bodies below
|
|
602
|
+
* with `<ScrollArea.Root snap snapAlign snapStop>` / `<ScrollArea.Item>` and nothing else changes.
|
|
603
|
+
*/
|
|
604
|
+
|
|
605
|
+
interface CarouselSnapOptions {
|
|
606
|
+
snapAlign?: "start" | "center" | "end";
|
|
607
|
+
snapStop?: "normal" | "always";
|
|
608
|
+
}
|
|
609
|
+
declare function useCarouselSnap({ snapAlign, snapStop }?: CarouselSnapOptions): {
|
|
610
|
+
viewportStyle: React$1.CSSProperties;
|
|
611
|
+
slideStyle: React$1.CSSProperties;
|
|
612
|
+
};
|
|
613
|
+
|
|
519
614
|
type ActionGuardReaction = "tooltip" | "toast" | "confirm";
|
|
520
615
|
interface ActionGuardProps {
|
|
521
616
|
/**
|
|
@@ -2107,4 +2202,4 @@ interface HeadingProps extends Omit<TextProps, "as" | "typography"> {
|
|
|
2107
2202
|
|
|
2108
2203
|
declare const Heading: React$1.ForwardRefExoticComponent<HeadingProps & React$1.RefAttributes<HTMLElement>>;
|
|
2109
2204
|
|
|
2110
|
-
export { ActionGuard, type ActionGuardProps, type ActionGuardReaction, type BaseInputExtraAdornmentContext, type BaseInputProps, Box, type BoxProps, Button, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, ButtonGroupItemContext, type ButtonGroupItemContextValue, type ButtonGroupItemProps, type ButtonGroupLabelProps, type ButtonGroupProps, type ButtonGroupSeparatorProps, type ButtonGroupSpacing, type ButtonGroupTextProps, type ButtonProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaBlend, type CardMediaFit, type CardMediaProps, CardOverlay, type CardOverlayGradient, type CardOverlayGradientEdge, type CardOverlayProps, type CardOverlayRadialGradient, type CardProps, type CardSize, type CardVariant, Checkbox, type CheckboxProps, Combobox, ComboboxContent, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, type ComponentKey, type ComponentPropsMap, type ConfirmActionFn, ConfirmConflictError, ConfirmDialog, type ConfirmDialogProps, ConfirmHost, type ConfirmHostProps, type ConfirmOptions, ConfirmRequestManager, Container, type ContainerProps, type CustomFieldRenderer, DialogProvider, DialogStack, type FadeEdgesConfig, Flex, type FlexProps, Form, type FormContextValue, type FormControlProps, type FormErrors, FormField, FormFieldControl, FormFieldDescription, type FormFieldDescriptionProps, FormFieldLabel, type FormFieldLabelProps, FormFieldMessage, type FormFieldMessageProps, type FormFieldProps$1 as FormFieldProps, type FormFieldRootProps, FormResetButton, type FormResetButtonProps, type FormRootProps, FormSubmitButton, type FormSubmitButtonProps, type FormValues, Grid, type GridProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputKind, type InputKindDefaults, type InputProps, type InputSize, type InputVariant, type KuiFormControlComponent, type ManualValidator, MarkdownEditor, type MarkdownEditorProps, type MarkdownEditorTabs, Menu, type MenuCheckboxItemProps, type MenuContentProps, type MenuItemProps, type MenuRadioGroupProps, type MenuRadioItemProps, type MenuRootProps, type MenuSubProps, type MenuSubTriggerProps, type MenuTriggerProps, MultiSelect, MultiSelectContent, MultiSelectItem, type MultiSelectItemProps, type MultiSelectProps, MultiSelectTrigger, NumberStepper, type NumberStepperButtonLayout, type NumberStepperClampOn, type NumberStepperProps, type NumberStepperValidationResult, OverlayPortal, type PasswordInputKindDefaults, type PasswordInputProps, type PasswordKind, type ProgressStore, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RadioSize, Repeater, type SceneRange, type SchemaLike, ScrollArea, type ScrollAreaHandle, type ScrollAreaProps, type ScrollAreaSceneProps, type ScrollAreaStickyProps, type ScrollDirection, type ScrollEdge, type ScrollProgress, type ScrollSnap, type ScrollSnapAlign, type ScrollStepOptions, type ScrollbarVariant, type ScrollbarVisibility, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, type SelectProps, SelectRoot, type SelectRootProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Stack, type StackProps, Switch, type SwitchProps, type SwitchSize, type TextProps, Textarea, type TextareaCoreProps, type TextareaProps, type TextareaResize, ThemeToggler, type ThemeTogglerColor, type ThemeTogglerDisplay, type ThemeTogglerProps, type ThemeTogglerVariant, Toast, ToastAction, type ToastActionOptions, type ToastActionProps, ToastClose, ToastContent, ToastDescription, type ToastEntry, ToastIcon, type ToastOptions, type ToastPlacement, type ToastPromiseMessages, ToastProvider, type ToastProviderProps, ToastRoot, type ToastRootProps, type ToastStatus, ToastTitle, type ToastUpdateOptions, ToastViewport, type ToastViewportProps, Tooltip, type TooltipArrowProps, type TooltipContentProps, type TooltipDelay, TooltipProvider, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, type UIArraySchema, type UIArraySchemaFor, type UIFieldSchema, type UIFieldSchemaFor, type UIFieldSchemaRender, type UIObjectSchema, type UIObjectSchemaFor, type UIObjectSchemaForShape, type UISchema, confirmAction, createConfirmAction, createConfirmRequestManager, defaultConfirmManager, defineUIField, toast, useButtonGroupContext, useButtonGroupItemContext, useConfirmAction, useDialogStack, useDialogState, useElementScrollProgress, useFormContext, useOptionalButtonGroupContext, useOptionalButtonGroupItemContext, useOverlayRoot, useScrollProgress, useToasts };
|
|
2205
|
+
export { ActionGuard, type ActionGuardProps, type ActionGuardReaction, type BaseInputExtraAdornmentContext, type BaseInputProps, Box, type BoxProps, Button, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, ButtonGroupItemContext, type ButtonGroupItemContextValue, type ButtonGroupItemProps, type ButtonGroupLabelProps, type ButtonGroupProps, type ButtonGroupSeparatorProps, type ButtonGroupSpacing, type ButtonGroupTextProps, type ButtonProps, Card, type CardBodyProps, type CardFooterProps, type CardHeaderProps, type CardMediaBlend, type CardMediaFit, type CardMediaProps, CardOverlay, type CardOverlayGradient, type CardOverlayGradientEdge, type CardOverlayProps, type CardOverlayRadialGradient, type CardProps, type CardSize, type CardVariant, Carousel, type CarouselIndicatorsInfo, type CarouselPlayPauseProps, type CarouselProps, type CarouselRootProps, Checkbox, type CheckboxProps, Combobox, ComboboxContent, ComboboxInput, type ComboboxInputProps, ComboboxItem, type ComboboxItemProps, type ComboboxProps, type ComponentKey, type ComponentPropsMap, type ConfirmActionFn, ConfirmConflictError, ConfirmDialog, type ConfirmDialogProps, ConfirmHost, type ConfirmHostProps, type ConfirmOptions, ConfirmRequestManager, Container, type ContainerProps, type CustomFieldRenderer, DialogProvider, DialogStack, type FadeEdgesConfig, Flex, type FlexProps, Form, type FormContextValue, type FormControlProps, type FormErrors, FormField, FormFieldControl, FormFieldDescription, type FormFieldDescriptionProps, FormFieldLabel, type FormFieldLabelProps, FormFieldMessage, type FormFieldMessageProps, type FormFieldProps$1 as FormFieldProps, type FormFieldRootProps, FormResetButton, type FormResetButtonProps, type FormRootProps, FormSubmitButton, type FormSubmitButtonProps, type FormValues, Grid, type GridProps, Heading, type HeadingLevel, type HeadingProps, Input, type InputKind, type InputKindDefaults, type InputProps, type InputSize, type InputVariant, type KuiFormControlComponent, type ManualValidator, MarkdownEditor, type MarkdownEditorProps, type MarkdownEditorTabs, Menu, type MenuCheckboxItemProps, type MenuContentProps, type MenuItemProps, type MenuRadioGroupProps, type MenuRadioItemProps, type MenuRootProps, type MenuSubProps, type MenuSubTriggerProps, type MenuTriggerProps, MultiSelect, MultiSelectContent, MultiSelectItem, type MultiSelectItemProps, type MultiSelectProps, MultiSelectTrigger, NumberStepper, type NumberStepperButtonLayout, type NumberStepperClampOn, type NumberStepperProps, type NumberStepperValidationResult, OverlayPortal, type PasswordInputKindDefaults, type PasswordInputProps, type PasswordKind, type ProgressStore, Radio, RadioGroup, type RadioGroupProps, type RadioProps, type RadioSize, Repeater, type SceneRange, type SchemaLike, ScrollArea, type ScrollAreaHandle, type ScrollAreaProps, type ScrollAreaSceneProps, type ScrollAreaStickyProps, type ScrollDirection, type ScrollEdge, type ScrollProgress, type ScrollSnap, type ScrollSnapAlign, type ScrollStepOptions, type ScrollbarVariant, type ScrollbarVisibility, Select, SelectContent, type SelectContentProps, SelectGroup, type SelectGroupProps, SelectItem, type SelectItemProps, SelectLabel, type SelectLabelProps, type SelectProps, SelectRoot, type SelectRootProps, SelectTrigger, type SelectTriggerProps, SelectValue, type SelectValueProps, Stack, type StackProps, Switch, type SwitchProps, type SwitchSize, type TextProps, Textarea, type TextareaCoreProps, type TextareaProps, type TextareaResize, ThemeToggler, type ThemeTogglerColor, type ThemeTogglerDisplay, type ThemeTogglerProps, type ThemeTogglerVariant, Toast, ToastAction, type ToastActionOptions, type ToastActionProps, ToastClose, ToastContent, ToastDescription, type ToastEntry, ToastIcon, type ToastOptions, type ToastPlacement, type ToastPromiseMessages, ToastProvider, type ToastProviderProps, ToastRoot, type ToastRootProps, type ToastStatus, ToastTitle, type ToastUpdateOptions, ToastViewport, type ToastViewportProps, Tooltip, type TooltipArrowProps, type TooltipContentProps, type TooltipDelay, TooltipProvider, type TooltipProviderProps, type TooltipRootProps, type TooltipTriggerProps, type UIArraySchema, type UIArraySchemaFor, type UIFieldSchema, type UIFieldSchemaFor, type UIFieldSchemaRender, type UIObjectSchema, type UIObjectSchemaFor, type UIObjectSchemaForShape, type UISchema, confirmAction, createConfirmAction, createConfirmRequestManager, defaultConfirmManager, defineUIField, toast, useButtonGroupContext, useButtonGroupItemContext, useCarouselSnap, useConfirmAction, useDialogStack, useDialogState, useElementScrollProgress, useFormContext, useOptionalButtonGroupContext, useOptionalButtonGroupItemContext, useOverlayRoot, useScrollProgress, useToasts };
|
package/dist/components.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ActionGuard, Box, Button, ButtonGroup, ButtonGroupContext, ButtonGroupItemContext, Card, CardOverlay, Checkbox, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ConfirmConflictError, ConfirmDialog, ConfirmHost, ConfirmRequestManager, Container, DialogProvider, DialogStack, Flex, Form, FormField, FormFieldControl, FormFieldDescription, FormFieldLabel, FormFieldMessage, FormResetButton, FormSubmitButton, Grid, Heading, Input, MarkdownEditor, Menu, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTrigger, NumberStepper, OverlayPortal, Radio, RadioGroup, Repeater, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectTrigger, SelectValue, Stack, Switch, Textarea, ThemeToggler, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastIcon, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Tooltip, TooltipProvider, confirmAction, createConfirmAction, createConfirmRequestManager, defaultConfirmManager, defineUIField, toast, useButtonGroupContext, useButtonGroupItemContext, useConfirmAction, useDialogStack, useDialogState, useElementScrollProgress, useFormContext, useOptionalButtonGroupContext, useOptionalButtonGroupItemContext, useOverlayRoot, useScrollProgress, useToasts } from './chunk-
|
|
1
|
+
export { ActionGuard, Box, Button, ButtonGroup, ButtonGroupContext, ButtonGroupItemContext, Card, CardOverlay, Carousel, Checkbox, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, ConfirmConflictError, ConfirmDialog, ConfirmHost, ConfirmRequestManager, Container, DialogProvider, DialogStack, Flex, Form, FormField, FormFieldControl, FormFieldDescription, FormFieldLabel, FormFieldMessage, FormResetButton, FormSubmitButton, Grid, Heading, Input, MarkdownEditor, Menu, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTrigger, NumberStepper, OverlayPortal, Radio, RadioGroup, Repeater, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectTrigger, SelectValue, Stack, Switch, Textarea, ThemeToggler, Toast, ToastAction, ToastClose, ToastContent, ToastDescription, ToastIcon, ToastProvider, ToastRoot, ToastTitle, ToastViewport, Tooltip, TooltipProvider, confirmAction, createConfirmAction, createConfirmRequestManager, defaultConfirmManager, defineUIField, toast, useButtonGroupContext, useButtonGroupItemContext, useCarouselSnap, useConfirmAction, useDialogStack, useDialogState, useElementScrollProgress, useFormContext, useOptionalButtonGroupContext, useOptionalButtonGroupItemContext, useOverlayRoot, useScrollProgress, useToasts } from './chunk-3SX7MFC4.js';
|
|
2
2
|
import './chunk-EZIFSNRD.js';
|
|
3
3
|
import './chunk-TGYV2M2L.js';
|
|
4
4
|
import './chunk-CXR2HHQQ.js';
|
package/dist/core.cjs
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkHHSP6YJA_cjs = require('./chunk-HHSP6YJA.cjs');
|
|
4
4
|
require('./chunk-MAUKS2DZ.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
Object.defineProperty(exports, "composeRefs", {
|
|
9
9
|
enumerable: true,
|
|
10
|
-
get: function () { return
|
|
10
|
+
get: function () { return chunkHHSP6YJA_cjs.composeRefs; }
|
|
11
11
|
});
|
|
12
12
|
Object.defineProperty(exports, "defineRecipe", {
|
|
13
13
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
14
|
+
get: function () { return chunkHHSP6YJA_cjs.defineRecipe; }
|
|
15
15
|
});
|
|
16
16
|
Object.defineProperty(exports, "defineSemanticToken", {
|
|
17
17
|
enumerable: true,
|
|
18
|
-
get: function () { return
|
|
18
|
+
get: function () { return chunkHHSP6YJA_cjs.defineSemanticToken; }
|
|
19
19
|
});
|
|
20
20
|
Object.defineProperty(exports, "defineSemanticTokens", {
|
|
21
21
|
enumerable: true,
|
|
22
|
-
get: function () { return
|
|
22
|
+
get: function () { return chunkHHSP6YJA_cjs.defineSemanticTokens; }
|
|
23
23
|
});
|
|
24
24
|
Object.defineProperty(exports, "defineTheme", {
|
|
25
25
|
enumerable: true,
|
|
26
|
-
get: function () { return
|
|
26
|
+
get: function () { return chunkHHSP6YJA_cjs.defineTheme; }
|
|
27
27
|
});
|
|
28
28
|
Object.defineProperty(exports, "defineToken", {
|
|
29
29
|
enumerable: true,
|
|
30
|
-
get: function () { return
|
|
30
|
+
get: function () { return chunkHHSP6YJA_cjs.defineToken; }
|
|
31
31
|
});
|
|
32
32
|
Object.defineProperty(exports, "defineTokens", {
|
|
33
33
|
enumerable: true,
|
|
34
|
-
get: function () { return
|
|
34
|
+
get: function () { return chunkHHSP6YJA_cjs.defineTokens; }
|
|
35
35
|
});
|
|
36
36
|
Object.defineProperty(exports, "defineTypography", {
|
|
37
37
|
enumerable: true,
|
|
38
|
-
get: function () { return
|
|
38
|
+
get: function () { return chunkHHSP6YJA_cjs.defineTypography; }
|
|
39
39
|
});
|
|
40
40
|
Object.defineProperty(exports, "extendRecipe", {
|
|
41
41
|
enumerable: true,
|
|
42
|
-
get: function () { return
|
|
42
|
+
get: function () { return chunkHHSP6YJA_cjs.extendRecipe; }
|
|
43
43
|
});
|
|
44
44
|
Object.defineProperty(exports, "extendRecipes", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkHHSP6YJA_cjs.extendRecipes; }
|
|
47
47
|
});
|
|
48
48
|
Object.defineProperty(exports, "extendSemanticTokens", {
|
|
49
49
|
enumerable: true,
|
|
50
|
-
get: function () { return
|
|
50
|
+
get: function () { return chunkHHSP6YJA_cjs.extendSemanticTokens; }
|
|
51
51
|
});
|
|
52
52
|
Object.defineProperty(exports, "extendTheme", {
|
|
53
53
|
enumerable: true,
|
|
54
|
-
get: function () { return
|
|
54
|
+
get: function () { return chunkHHSP6YJA_cjs.extendTheme; }
|
|
55
55
|
});
|
|
56
56
|
Object.defineProperty(exports, "extendTokens", {
|
|
57
57
|
enumerable: true,
|
|
58
|
-
get: function () { return
|
|
58
|
+
get: function () { return chunkHHSP6YJA_cjs.extendTokens; }
|
|
59
59
|
});
|
|
60
60
|
Object.defineProperty(exports, "extendTypography", {
|
|
61
61
|
enumerable: true,
|
|
62
|
-
get: function () { return
|
|
62
|
+
get: function () { return chunkHHSP6YJA_cjs.extendTypography; }
|
|
63
63
|
});
|
|
64
64
|
Object.defineProperty(exports, "getRecipeNames", {
|
|
65
65
|
enumerable: true,
|
|
66
|
-
get: function () { return
|
|
66
|
+
get: function () { return chunkHHSP6YJA_cjs.getRecipeNames; }
|
|
67
67
|
});
|
|
68
68
|
Object.defineProperty(exports, "resolveTypography", {
|
|
69
69
|
enumerable: true,
|
|
70
|
-
get: function () { return
|
|
70
|
+
get: function () { return chunkHHSP6YJA_cjs.resolveTypography; }
|
|
71
71
|
});
|
|
72
72
|
//# sourceMappingURL=core.cjs.map
|
|
73
73
|
//# sourceMappingURL=core.cjs.map
|
package/dist/core.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { composeRefs, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, extendRecipe, extendRecipes, extendSemanticTokens, extendTheme, extendTokens, extendTypography, getRecipeNames, resolveTypography } from './chunk-
|
|
1
|
+
export { composeRefs, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, extendRecipe, extendRecipes, extendSemanticTokens, extendTheme, extendTokens, extendTypography, getRecipeNames, resolveTypography } from './chunk-6GN2Y3X4.js';
|
|
2
2
|
import './chunk-CXR2HHQQ.js';
|
|
3
3
|
//# sourceMappingURL=core.js.map
|
|
4
4
|
//# sourceMappingURL=core.js.map
|
package/dist/index.cjs
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
'use strict';
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var chunkL3YGJX72_cjs = require('./chunk-L3YGJX72.cjs');
|
|
6
6
|
require('./chunk-52AQLHWM.cjs');
|
|
7
7
|
require('./chunk-4KNQFZZT.cjs');
|
|
8
|
-
var
|
|
8
|
+
var chunkHHSP6YJA_cjs = require('./chunk-HHSP6YJA.cjs');
|
|
9
9
|
var chunkMAUKS2DZ_cjs = require('./chunk-MAUKS2DZ.cjs');
|
|
10
10
|
var react = require('react');
|
|
11
11
|
var kreativCore = require('@splenddev/kreativ-core');
|
|
@@ -43,7 +43,7 @@ function KreativUIProvider({
|
|
|
43
43
|
hooks.useThemeModePersistence(mode, setMode, storageKey, persistMode);
|
|
44
44
|
const systemPrefersDark = useSystemPrefersDark();
|
|
45
45
|
const resolvedMode = mode === "system" ? systemPrefersDark ? "dark" : "light" : mode;
|
|
46
|
-
const theme = react.useMemo(() =>
|
|
46
|
+
const theme = react.useMemo(() => chunkHHSP6YJA_cjs.extendTheme(themeOverride), [themeOverride]);
|
|
47
47
|
const resolvedTokens = react.useMemo(
|
|
48
48
|
() => utils.resolveTokens(theme.tokens, theme.semanticTokens, resolvedMode),
|
|
49
49
|
[theme.tokens, theme.semanticTokens, resolvedMode]
|
|
@@ -53,7 +53,7 @@ function KreativUIProvider({
|
|
|
53
53
|
[resolvedTokens, resolvedMode, theme.intensity]
|
|
54
54
|
);
|
|
55
55
|
react.useEffect(() => {
|
|
56
|
-
if (
|
|
56
|
+
if (chunkL3YGJX72_cjs.isDev() && !theme.sizes[fallbackSize]) {
|
|
57
57
|
console.error(
|
|
58
58
|
`[kreativ-ui] fallbackSize="${fallbackSize}" is not a registered size in theme.sizes.`
|
|
59
59
|
);
|
|
@@ -71,7 +71,7 @@ function KreativUIProvider({
|
|
|
71
71
|
[theme, mode, resolvedMode, fallbackSize, resolvedTokens]
|
|
72
72
|
);
|
|
73
73
|
const Tag = as ?? "div";
|
|
74
|
-
return /* @__PURE__ */ jsxRuntime.jsx(kreativCore.ThemeContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
74
|
+
return /* @__PURE__ */ jsxRuntime.jsx(kreativCore.ThemeContext.Provider, { value: contextValue, children: /* @__PURE__ */ jsxRuntime.jsx(chunkL3YGJX72_cjs.OverlayRootContext.Provider, { value: overlayRoot, children: /* @__PURE__ */ jsxRuntime.jsx(chunkL3YGJX72_cjs.DialogProvider, { children: /* @__PURE__ */ jsxRuntime.jsx(chunkL3YGJX72_cjs.ToastProvider, { children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
75
75
|
Tag,
|
|
76
76
|
{
|
|
77
77
|
ref: setOverlayRoot,
|
|
@@ -88,8 +88,8 @@ function KreativUIProvider({
|
|
|
88
88
|
},
|
|
89
89
|
children: [
|
|
90
90
|
children,
|
|
91
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
92
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
91
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL3YGJX72_cjs.ConfirmHost, {}),
|
|
92
|
+
/* @__PURE__ */ jsxRuntime.jsx(chunkL3YGJX72_cjs.ToastViewport, { placement: "bottom-end", container: overlayRoot })
|
|
93
93
|
]
|
|
94
94
|
}
|
|
95
95
|
) }) }) }) });
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { isDev, OverlayRootContext, DialogProvider, ToastProvider, ConfirmHost, ToastViewport } from './chunk-
|
|
3
|
+
import { isDev, OverlayRootContext, DialogProvider, ToastProvider, ConfirmHost, ToastViewport } from './chunk-3SX7MFC4.js';
|
|
4
4
|
import './chunk-EZIFSNRD.js';
|
|
5
5
|
import './chunk-TGYV2M2L.js';
|
|
6
|
-
import { extendTheme } from './chunk-
|
|
6
|
+
import { extendTheme } from './chunk-6GN2Y3X4.js';
|
|
7
7
|
import { __name } from './chunk-CXR2HHQQ.js';
|
|
8
8
|
import { useState, useEffect, useMemo } from 'react';
|
|
9
9
|
import { ThemeContext } from '@splenddev/kreativ-core';
|