@splenddev/kreativ-ui 0.3.5 → 0.3.7
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-6ZVPNLAW.cjs +31 -0
- package/dist/chunk-6ZVPNLAW.cjs.map +1 -0
- package/dist/{chunk-AQF6OJPA.cjs → chunk-KGNJ2KLQ.cjs} +7 -7
- package/dist/chunk-KGNJ2KLQ.cjs.map +1 -0
- package/dist/chunk-PW2S3ZJG.js +28 -0
- package/dist/chunk-PW2S3ZJG.js.map +1 -0
- package/dist/{chunk-SGRBIUJ7.js → chunk-WF6Y3BRR.js} +7 -7
- package/dist/chunk-WF6Y3BRR.js.map +1 -0
- package/dist/{chunk-OC5MESTQ.cjs → components.cjs} +14 -36
- package/dist/components.cjs.map +1 -0
- package/dist/{components/index.d.ts → components.d.cts} +1 -1
- package/dist/{components/index.d.cts → components.d.ts} +1 -1
- package/dist/{chunk-3TZ7F7KW.js → components.js} +6 -26
- package/dist/components.js.map +1 -0
- package/dist/{core/index.cjs → core.cjs} +19 -19
- package/dist/core.cjs.map +1 -0
- package/dist/{core/index.js → core.js} +4 -4
- package/dist/core.js.map +1 -0
- package/dist/{hooks/index.cjs → hooks.cjs} +4 -4
- package/dist/hooks.cjs.map +1 -0
- package/dist/{hooks/index.d.cts → hooks.d.cts} +1 -1
- package/dist/{hooks/index.d.ts → hooks.d.ts} +1 -1
- package/dist/{hooks/index.js → hooks.js} +4 -4
- package/dist/hooks.js.map +1 -0
- package/dist/index.cjs +4 -367
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -10
- package/dist/index.d.ts +1 -10
- package/dist/index.js +2 -7
- package/dist/index.js.map +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/types.cjs +4 -0
- package/dist/types.cjs.map +1 -0
- package/dist/types.js +3 -0
- package/dist/types.js.map +1 -0
- package/dist/{utils/index.cjs → utils.cjs} +4 -4
- package/dist/utils.cjs.map +1 -0
- package/dist/{utils/index.d.ts → utils.d.cts} +20 -4
- package/dist/{utils/index.d.cts → utils.d.ts} +20 -4
- package/dist/{utils/index.js → utils.js} +4 -4
- package/dist/utils.js.map +1 -0
- package/package.json +5 -4
- package/dist/chunk-2MCBBWEA.js +0 -3
- package/dist/chunk-2MCBBWEA.js.map +0 -1
- package/dist/chunk-3TZ7F7KW.js.map +0 -1
- package/dist/chunk-AQF6OJPA.cjs.map +0 -1
- package/dist/chunk-DHKRYKS7.cjs +0 -4
- package/dist/chunk-DHKRYKS7.cjs.map +0 -1
- package/dist/chunk-OC5MESTQ.cjs.map +0 -1
- package/dist/chunk-SGRBIUJ7.js.map +0 -1
- package/dist/color-C65EUdAl.d.cts +0 -20
- package/dist/color-C65EUdAl.d.ts +0 -20
- package/dist/components/index.cjs +0 -231
- package/dist/components/index.cjs.map +0 -1
- package/dist/components/index.js +0 -6
- package/dist/components/index.js.map +0 -1
- package/dist/core/index.cjs.map +0 -1
- package/dist/core/index.js.map +0 -1
- package/dist/hooks/index.cjs.map +0 -1
- package/dist/hooks/index.js.map +0 -1
- package/dist/types/index.cjs +0 -6
- package/dist/types/index.cjs.map +0 -1
- package/dist/types/index.js +0 -3
- package/dist/types/index.js.map +0 -1
- package/dist/utils/index.cjs.map +0 -1
- package/dist/utils/index.js.map +0 -1
- /package/dist/{core/index.d.cts → core.d.cts} +0 -0
- /package/dist/{core/index.d.ts → core.d.ts} +0 -0
- /package/dist/{types/index.d.cts → types.d.cts} +0 -0
- /package/dist/{types/index.d.ts → types.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { HTMLAttributes, ReactNode, ButtonHTMLAttributes, CSSProperties, ReactEl
|
|
|
3
3
|
import { BaseProps, ColorProps, BaseColor, VariantProps, BaseVariant, DisabledProps, LoadingProps, FullWidthProps, TypographyProps, SizeValue, SizeProps, OrientationProps, Orientation, ThemeTogglerTransition, ClearableProps, UndoRedoProps, ValueProps, StateProps, TrimProps, FormFieldStatus, ValidateOn, EmbeddedProps, ValidateProps, Styleable as Styleable$1, StatusProps, MotionGatedProps as MotionGatedProps$1, ControlledProps, Size, ResponsiveValue } from '@splenddev/kreativ-core/types';
|
|
4
4
|
import * as _splenddev_kreativ_core from '@splenddev/kreativ-core';
|
|
5
5
|
import { MotionGatedProps, BaseProps as BaseProps$1, SizeProps as SizeProps$1, ValueProps as ValueProps$1, VariantProps as VariantProps$1, DisabledProps as DisabledProps$1, ClearableProps as ClearableProps$1, StateProps as StateProps$1, Styleable, FormFieldStatus as FormFieldStatus$1 } from '@splenddev/kreativ-core';
|
|
6
|
-
import { ValuePropConvention, SingleFormControlComponent, SpaceValue, RadiusValue } from '
|
|
6
|
+
import { ValuePropConvention, SingleFormControlComponent, SpaceValue, RadiusValue } from './types.cjs';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
interface AdornmentProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -3,7 +3,7 @@ import { HTMLAttributes, ReactNode, ButtonHTMLAttributes, CSSProperties, ReactEl
|
|
|
3
3
|
import { BaseProps, ColorProps, BaseColor, VariantProps, BaseVariant, DisabledProps, LoadingProps, FullWidthProps, TypographyProps, SizeValue, SizeProps, OrientationProps, Orientation, ThemeTogglerTransition, ClearableProps, UndoRedoProps, ValueProps, StateProps, TrimProps, FormFieldStatus, ValidateOn, EmbeddedProps, ValidateProps, Styleable as Styleable$1, StatusProps, MotionGatedProps as MotionGatedProps$1, ControlledProps, Size, ResponsiveValue } from '@splenddev/kreativ-core/types';
|
|
4
4
|
import * as _splenddev_kreativ_core from '@splenddev/kreativ-core';
|
|
5
5
|
import { MotionGatedProps, BaseProps as BaseProps$1, SizeProps as SizeProps$1, ValueProps as ValueProps$1, VariantProps as VariantProps$1, DisabledProps as DisabledProps$1, ClearableProps as ClearableProps$1, StateProps as StateProps$1, Styleable, FormFieldStatus as FormFieldStatus$1 } from '@splenddev/kreativ-core';
|
|
6
|
-
import { ValuePropConvention, SingleFormControlComponent, SpaceValue, RadiusValue } from '
|
|
6
|
+
import { ValuePropConvention, SingleFormControlComponent, SpaceValue, RadiusValue } from './types.js';
|
|
7
7
|
import { z } from 'zod';
|
|
8
8
|
|
|
9
9
|
interface AdornmentProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { isDev } from './chunk-PW2S3ZJG.js';
|
|
1
2
|
import { useStatusTransition, useControllableState, useResponsiveStyles as useResponsiveStyles$1, useMergedResponsiveStyles, useClearableField, useKeyboardShortcuts, useFloatingSide } from './chunk-EZIFSNRD.js';
|
|
2
3
|
import { cn, isMotionGated as isMotionGated$1, composeRefs as composeRefs$1, resolveResponsiveValue, resolveSpace, isResponsiveValue, resolveColor, resolveRadius } from './chunk-TGYV2M2L.js';
|
|
3
4
|
import { __name, __export, __publicField } from './chunk-CXR2HHQQ.js';
|
|
@@ -961,6 +962,7 @@ function renderBaseInput({
|
|
|
961
962
|
embedded,
|
|
962
963
|
hasAdornment: Boolean(startIcon) || Boolean(endIcon) || clearable || isLoading || Boolean(extraEndAdornment)
|
|
963
964
|
}),
|
|
965
|
+
"h-[var(--kui-input-height)] px-[var(--kui-input-padding-x)]",
|
|
964
966
|
className
|
|
965
967
|
),
|
|
966
968
|
[
|
|
@@ -1238,29 +1240,6 @@ var FormFieldMessage = createComponent({
|
|
|
1238
1240
|
);
|
|
1239
1241
|
}, "render")
|
|
1240
1242
|
});
|
|
1241
|
-
|
|
1242
|
-
// src/utils/env.ts
|
|
1243
|
-
function readProcessEnv() {
|
|
1244
|
-
try {
|
|
1245
|
-
return typeof process !== "undefined" ? process.env?.NODE_ENV : void 0;
|
|
1246
|
-
} catch {
|
|
1247
|
-
return void 0;
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
__name(readProcessEnv, "readProcessEnv");
|
|
1251
|
-
function readImportMetaEnv() {
|
|
1252
|
-
try {
|
|
1253
|
-
return typeof import.meta !== "undefined" ? import.meta.env?.MODE : void 0;
|
|
1254
|
-
} catch {
|
|
1255
|
-
return void 0;
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
__name(readImportMetaEnv, "readImportMetaEnv");
|
|
1259
|
-
function isDev() {
|
|
1260
|
-
const mode = readProcessEnv() ?? readImportMetaEnv();
|
|
1261
|
-
return mode !== void 0 && mode !== "production";
|
|
1262
|
-
}
|
|
1263
|
-
__name(isDev, "isDev");
|
|
1264
1243
|
var FormContext = React2.createContext(null);
|
|
1265
1244
|
function useFormContext() {
|
|
1266
1245
|
return React2.useContext(FormContext);
|
|
@@ -16788,6 +16767,7 @@ var SelectTrigger = forwardRef(
|
|
|
16788
16767
|
disabled: ctx.disabled,
|
|
16789
16768
|
hasAdornment: true
|
|
16790
16769
|
}),
|
|
16770
|
+
"h-[var(--kui-select-height)] px-[var(--kui-select-padding-x)]",
|
|
16791
16771
|
className
|
|
16792
16772
|
);
|
|
16793
16773
|
const showClear = ctx.clearable && ctx.value !== void 0 && !ctx.disabled;
|
|
@@ -22300,6 +22280,6 @@ var Heading = forwardRef(
|
|
|
22300
22280
|
);
|
|
22301
22281
|
Heading.displayName = "Heading";
|
|
22302
22282
|
|
|
22303
|
-
export { Adornment, Box, Button, ButtonGroup, ButtonGroupContext, ButtonGroupItemContext, Card, CardOverlay, Checkbox, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, Container, Flex, Form, FormField, FormFieldControl, FormFieldDescription, FormFieldLabel, FormFieldMessage, FormResetButton, FormSubmitButton, Grid, Heading, Input, InputField, MarkdownEditor, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTrigger, Radio, RadioGroup, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectTrigger, SelectValue, Stack, Switch, Textarea, ThemeToggler, defineUIField,
|
|
22304
|
-
//# sourceMappingURL=
|
|
22305
|
-
//# sourceMappingURL=
|
|
22283
|
+
export { Adornment, Box, Button, ButtonGroup, ButtonGroupContext, ButtonGroupItemContext, Card, CardOverlay, Checkbox, Combobox, ComboboxContent, ComboboxInput, ComboboxItem, Container, Flex, Form, FormField, FormFieldControl, FormFieldDescription, FormFieldLabel, FormFieldMessage, FormResetButton, FormSubmitButton, Grid, Heading, Input, InputField, MarkdownEditor, MultiSelect, MultiSelectContent, MultiSelectItem, MultiSelectTrigger, Radio, RadioGroup, ScrollArea, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectTrigger, SelectValue, Stack, Switch, Textarea, ThemeToggler, defineUIField, useButtonGroupContext, useButtonGroupItemContext, useElementScrollProgress, useFormContext, useOptionalButtonGroupContext, useOptionalButtonGroupItemContext, useScrollProgress };
|
|
22284
|
+
//# sourceMappingURL=components.js.map
|
|
22285
|
+
//# sourceMappingURL=components.js.map
|