@splenddev/kreativ-ui 0.3.2 → 0.3.4
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 +14 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -4,7 +4,7 @@ import { BaseProps, ColorProps, BaseColor, VariantProps, BaseVariant, DisabledPr
|
|
|
4
4
|
export * from '@splenddev/kreativ-core/types';
|
|
5
5
|
import * as _splenddev_kreativ_core from '@splenddev/kreativ-core';
|
|
6
6
|
import { MotionGatedProps, KuiComponent, 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, ThemeOverride, ColorMode } from '@splenddev/kreativ-core';
|
|
7
|
-
export { PersistMode, PersistModeProps, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography } from '@splenddev/kreativ-core';
|
|
7
|
+
export { PersistMode, PersistModeProps, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography, useTheme, useValidateChildren } from '@splenddev/kreativ-core';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
export * from '@splenddev/kreativ-core/hooks';
|
|
10
10
|
import { ClassValue } from 'clsx';
|
package/dist/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { BaseProps, ColorProps, BaseColor, VariantProps, BaseVariant, DisabledPr
|
|
|
4
4
|
export * from '@splenddev/kreativ-core/types';
|
|
5
5
|
import * as _splenddev_kreativ_core from '@splenddev/kreativ-core';
|
|
6
6
|
import { MotionGatedProps, KuiComponent, 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, ThemeOverride, ColorMode } from '@splenddev/kreativ-core';
|
|
7
|
-
export { PersistMode, PersistModeProps, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography } from '@splenddev/kreativ-core';
|
|
7
|
+
export { PersistMode, PersistModeProps, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography, useTheme, useValidateChildren } from '@splenddev/kreativ-core';
|
|
8
8
|
import { z } from 'zod';
|
|
9
9
|
export * from '@splenddev/kreativ-core/hooks';
|
|
10
10
|
import { ClassValue } from 'clsx';
|
package/dist/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import { clsx } from 'clsx';
|
|
|
6
6
|
import { twMerge } from 'tailwind-merge';
|
|
7
7
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
8
8
|
import { useTheme, createComponent, hasKuiMeta, composeRefs, defineToken, defineSemanticToken, defineTypography, defineSizes, defineRecipe, defineTheme, resolveStyle, warnOnFlatCompoundConflict, useValidateChildren, resolveTypography, defineTokens, defineSemanticTokens, ThemeContext, PersistMode, isMotionGated as isMotionGated$1, deepMerge } from '@splenddev/kreativ-core';
|
|
9
|
-
export { PersistMode, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography } from '@splenddev/kreativ-core';
|
|
9
|
+
export { PersistMode, ThemeContext, defineRecipe, defineSemanticToken, defineSemanticTokens, defineTheme, defineToken, defineTokens, defineTypography, resolveTypography, useTheme, useValidateChildren } from '@splenddev/kreativ-core';
|
|
10
10
|
import * as hooks_star from '@splenddev/kreativ-core/hooks';
|
|
11
11
|
import { useSizeToken, useTypography, useSizeStyle, useResponsiveStyles } from '@splenddev/kreativ-core/hooks';
|
|
12
12
|
import { motion } from 'framer-motion';
|
|
@@ -116,7 +116,9 @@ __export(index_exports, {
|
|
|
116
116
|
useOptionalButtonGroupContext: () => useOptionalButtonGroupContext,
|
|
117
117
|
useOptionalButtonGroupItemContext: () => useOptionalButtonGroupItemContext,
|
|
118
118
|
useScrollProgress: () => useScrollProgress,
|
|
119
|
-
useStatusTransition: () => useStatusTransition
|
|
119
|
+
useStatusTransition: () => useStatusTransition,
|
|
120
|
+
useTheme: () => useTheme,
|
|
121
|
+
useValidateChildren: () => useValidateChildren
|
|
120
122
|
});
|
|
121
123
|
function cn(...inputs) {
|
|
122
124
|
return twMerge(clsx(inputs));
|
|
@@ -1028,7 +1030,9 @@ __export(hooks_exports, {
|
|
|
1028
1030
|
useClearableField: () => useClearableField,
|
|
1029
1031
|
useFloatingSide: () => useFloatingSide,
|
|
1030
1032
|
useKeyboardShortcuts: () => useKeyboardShortcuts,
|
|
1031
|
-
useStatusTransition: () => useStatusTransition
|
|
1033
|
+
useStatusTransition: () => useStatusTransition,
|
|
1034
|
+
useTheme: () => useTheme,
|
|
1035
|
+
useValidateChildren: () => useValidateChildren
|
|
1032
1036
|
});
|
|
1033
1037
|
var VIEWPORT_PADDING = 8;
|
|
1034
1038
|
function useFloatingSide(triggerRef, open) {
|
|
@@ -1818,7 +1822,6 @@ var FormSubmitButton = React2.forwardRef(/* @__PURE__ */ __name(function FormSub
|
|
|
1818
1822
|
"[kreativ-ui/Form.SubmitButton]: must be rendered inside <Form>."
|
|
1819
1823
|
);
|
|
1820
1824
|
}
|
|
1821
|
-
console.log(form.errors);
|
|
1822
1825
|
if (!React2.isValidElement(children)) {
|
|
1823
1826
|
throw new Error(
|
|
1824
1827
|
"[kreativ-ui/Form.SubmitButton]: requires exactly one React element child."
|
|
@@ -18233,7 +18236,6 @@ var NumberStepper = createComponent({
|
|
|
18233
18236
|
precision,
|
|
18234
18237
|
required: isRequired
|
|
18235
18238
|
});
|
|
18236
|
-
console.log("validate", { raw, min, max, step, precision, result });
|
|
18237
18239
|
onValidate?.(result);
|
|
18238
18240
|
reportToFormField(result);
|
|
18239
18241
|
return result;
|
|
@@ -23820,7 +23822,6 @@ __name(extendSizes, "extendSizes");
|
|
|
23820
23822
|
|
|
23821
23823
|
// src/theme/extendTheme.ts
|
|
23822
23824
|
function extendTheme(override) {
|
|
23823
|
-
console.log(override?.semanticTokens?.colors);
|
|
23824
23825
|
if (!override) {
|
|
23825
23826
|
return defaultTheme;
|
|
23826
23827
|
}
|