@vaneui/ui 1.4.0 → 1.4.1
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/CHANGELOG.md +43 -1
- package/dist/cjs/components/defaultTheme.cjs +2 -0
- package/dist/cjs/components/defaultTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/field/Field.cjs +103 -8
- package/dist/cjs/components/ui/field/Field.cjs.map +1 -1
- package/dist/cjs/components/ui/field/FieldCategories.cjs +2 -1
- package/dist/cjs/components/ui/field/FieldCategories.cjs.map +1 -1
- package/dist/cjs/components/ui/field/defaultFieldControlRowTheme.cjs +23 -0
- package/dist/cjs/components/ui/field/defaultFieldControlRowTheme.cjs.map +1 -0
- package/dist/cjs/components/ui/field/fieldControlRowDefaults.cjs +17 -0
- package/dist/cjs/components/ui/field/fieldControlRowDefaults.cjs.map +1 -0
- package/dist/cjs/components/ui/field/fieldControls.cjs +41 -0
- package/dist/cjs/components/ui/field/fieldControls.cjs.map +1 -0
- package/dist/cjs/components/ui/field/fieldDefaults.cjs.map +1 -1
- package/dist/cjs/components/ui/field/index.cjs +4 -0
- package/dist/cjs/components/ui/field/index.cjs.map +1 -1
- package/dist/cjs/components/ui/props/categoryBuilders.cjs +2 -0
- package/dist/cjs/components/ui/props/categoryBuilders.cjs.map +1 -1
- package/dist/cjs/components/ui/props/index.cjs +1 -0
- package/dist/cjs/components/ui/props/index.cjs.map +1 -1
- package/dist/cjs/components/ui/props/keys.cjs +5 -1
- package/dist/cjs/components/ui/props/keys.cjs.map +1 -1
- package/dist/cjs/components/ui/props/propDescriptions.cjs +24 -0
- package/dist/cjs/components/ui/props/propDescriptions.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/common/ComponentTheme.cjs +10 -0
- package/dist/cjs/components/ui/theme/common/ComponentTheme.cjs.map +1 -1
- package/dist/cjs/components/ui/theme/defaults.cjs +23 -5
- package/dist/cjs/components/ui/theme/defaults.cjs.map +1 -1
- package/dist/cjs/components/ui/typography/index.cjs +1 -0
- package/dist/cjs/components/ui/typography/index.cjs.map +1 -1
- package/dist/cjs/components/utils/componentUtils.cjs +5 -0
- package/dist/cjs/components/utils/componentUtils.cjs.map +1 -1
- package/dist/cjs/index.cjs +27 -20
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/defaultTheme.mjs +2 -0
- package/dist/esm/components/defaultTheme.mjs.map +1 -1
- package/dist/esm/components/ui/field/Field.mjs +106 -11
- package/dist/esm/components/ui/field/Field.mjs.map +1 -1
- package/dist/esm/components/ui/field/FieldCategories.mjs +3 -2
- package/dist/esm/components/ui/field/FieldCategories.mjs.map +1 -1
- package/dist/esm/components/ui/field/defaultFieldControlRowTheme.mjs +21 -0
- package/dist/esm/components/ui/field/defaultFieldControlRowTheme.mjs.map +1 -0
- package/dist/esm/components/ui/field/fieldControlRowDefaults.mjs +15 -0
- package/dist/esm/components/ui/field/fieldControlRowDefaults.mjs.map +1 -0
- package/dist/esm/components/ui/field/fieldControls.mjs +38 -0
- package/dist/esm/components/ui/field/fieldControls.mjs.map +1 -0
- package/dist/esm/components/ui/field/fieldDefaults.mjs.map +1 -1
- package/dist/esm/components/ui/field/index.mjs +2 -0
- package/dist/esm/components/ui/field/index.mjs.map +1 -1
- package/dist/esm/components/ui/props/categoryBuilders.mjs +2 -1
- package/dist/esm/components/ui/props/categoryBuilders.mjs.map +1 -1
- package/dist/esm/components/ui/props/index.mjs +1 -1
- package/dist/esm/components/ui/props/keys.mjs +6 -3
- package/dist/esm/components/ui/props/keys.mjs.map +1 -1
- package/dist/esm/components/ui/props/propDescriptions.mjs +24 -0
- package/dist/esm/components/ui/props/propDescriptions.mjs.map +1 -1
- package/dist/esm/components/ui/theme/common/ComponentTheme.mjs +11 -1
- package/dist/esm/components/ui/theme/common/ComponentTheme.mjs.map +1 -1
- package/dist/esm/components/ui/theme/defaults.mjs +23 -5
- package/dist/esm/components/ui/theme/defaults.mjs.map +1 -1
- package/dist/esm/components/ui/typography/index.mjs +1 -0
- package/dist/esm/components/ui/typography/index.mjs.map +1 -1
- package/dist/esm/components/utils/componentUtils.mjs +5 -1
- package/dist/esm/components/utils/componentUtils.mjs.map +1 -1
- package/dist/esm/index.mjs +17 -10
- package/dist/esm/index.mjs.map +1 -1
- package/dist/types/components/themeTypes.d.cts +1 -0
- package/dist/types/components/themeTypes.d.mts +1 -0
- package/dist/types/components/themeTypes.d.ts +1 -0
- package/dist/types/components/ui/field/Field.d.cts +418 -5
- package/dist/types/components/ui/field/Field.d.mts +418 -5
- package/dist/types/components/ui/field/Field.d.ts +418 -5
- package/dist/types/components/ui/field/FieldCategories.d.cts +1 -1
- package/dist/types/components/ui/field/FieldCategories.d.mts +1 -1
- package/dist/types/components/ui/field/FieldCategories.d.ts +1 -1
- package/dist/types/components/ui/field/FieldProps.d.cts +17 -1
- package/dist/types/components/ui/field/FieldProps.d.mts +17 -1
- package/dist/types/components/ui/field/FieldProps.d.ts +17 -1
- package/dist/types/components/ui/field/defaultFieldControlRowTheme.d.cts +4 -0
- package/dist/types/components/ui/field/defaultFieldControlRowTheme.d.mts +4 -0
- package/dist/types/components/ui/field/defaultFieldControlRowTheme.d.ts +4 -0
- package/dist/types/components/ui/field/fieldControlRowDefaults.d.cts +3 -0
- package/dist/types/components/ui/field/fieldControlRowDefaults.d.mts +3 -0
- package/dist/types/components/ui/field/fieldControlRowDefaults.d.ts +3 -0
- package/dist/types/components/ui/field/fieldControls.d.cts +14 -0
- package/dist/types/components/ui/field/fieldControls.d.mts +14 -0
- package/dist/types/components/ui/field/fieldControls.d.ts +14 -0
- package/dist/types/components/ui/field/fieldDefaults.d.cts +1 -1
- package/dist/types/components/ui/field/fieldDefaults.d.mts +1 -1
- package/dist/types/components/ui/field/fieldDefaults.d.ts +1 -1
- package/dist/types/components/ui/field/index.d.cts +3 -1
- package/dist/types/components/ui/field/index.d.mts +3 -1
- package/dist/types/components/ui/field/index.d.ts +3 -1
- package/dist/types/components/ui/props/categoryBuilders.d.cts +1 -0
- package/dist/types/components/ui/props/categoryBuilders.d.mts +1 -0
- package/dist/types/components/ui/props/categoryBuilders.d.ts +1 -0
- package/dist/types/components/ui/props/controlProps.d.cts +15 -0
- package/dist/types/components/ui/props/controlProps.d.mts +15 -0
- package/dist/types/components/ui/props/controlProps.d.ts +15 -0
- package/dist/types/components/ui/props/keys.d.cts +5 -3
- package/dist/types/components/ui/props/keys.d.mts +5 -3
- package/dist/types/components/ui/props/keys.d.ts +5 -3
- package/dist/types/components/ui/props/props.d.cts +1 -0
- package/dist/types/components/ui/props/props.d.mts +1 -0
- package/dist/types/components/ui/props/props.d.ts +1 -0
- package/dist/types/components/utils/componentUtils.d.cts +2 -0
- package/dist/types/components/utils/componentUtils.d.mts +2 -0
- package/dist/types/components/utils/componentUtils.d.ts +2 -0
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/ui.css +1 -1
- package/dist/vars.css +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { ComponentKeys } from "../props/index.mjs";
|
|
3
|
+
export type ControlKey = typeof ComponentKeys.control[number];
|
|
4
|
+
export type FieldControlDescriptor = {
|
|
5
|
+
Component: React.ElementType;
|
|
6
|
+
layout: 'stacked' | 'inline';
|
|
7
|
+
inputType?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const FIELD_CONTROLS: Record<ControlKey, FieldControlDescriptor>;
|
|
10
|
+
export declare function resolveControl(props: Record<string, unknown>, defaults: Record<string, unknown>): {
|
|
11
|
+
key: ControlKey;
|
|
12
|
+
descriptor: FieldControlDescriptor;
|
|
13
|
+
inputType?: string;
|
|
14
|
+
} | undefined;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { ComponentKeys } from "../props";
|
|
3
|
+
export type ControlKey = typeof ComponentKeys.control[number];
|
|
4
|
+
export type FieldControlDescriptor = {
|
|
5
|
+
Component: React.ElementType;
|
|
6
|
+
layout: 'stacked' | 'inline';
|
|
7
|
+
inputType?: string;
|
|
8
|
+
};
|
|
9
|
+
export declare const FIELD_CONTROLS: Record<ControlKey, FieldControlDescriptor>;
|
|
10
|
+
export declare function resolveControl(props: Record<string, unknown>, defaults: Record<string, unknown>): {
|
|
11
|
+
key: ControlKey;
|
|
12
|
+
descriptor: FieldControlDescriptor;
|
|
13
|
+
inputType?: string;
|
|
14
|
+
} | undefined;
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export { Field } from './Field.cjs';
|
|
2
|
-
export type { FieldProps } from './FieldProps.cjs';
|
|
2
|
+
export type { FieldProps, FieldControlType } from './FieldProps.cjs';
|
|
3
3
|
export { FIELD_CATEGORIES } from './FieldCategories.cjs';
|
|
4
4
|
export type { FieldTheme } from './FieldTheme.cjs';
|
|
5
5
|
export { fieldDefaults } from './fieldDefaults.cjs';
|
|
6
6
|
export { fieldLabelDefaults } from './fieldLabelDefaults.cjs';
|
|
7
|
+
export { fieldControlRowDefaults } from './fieldControlRowDefaults.cjs';
|
|
7
8
|
export { fieldDescriptionDefaults } from './fieldDescriptionDefaults.cjs';
|
|
8
9
|
export { fieldErrorDefaults } from './fieldErrorDefaults.cjs';
|
|
9
10
|
export { defaultFieldTheme } from './defaultFieldTheme.cjs';
|
|
10
11
|
export { defaultFieldLabelTheme } from './defaultFieldLabelTheme.cjs';
|
|
12
|
+
export { defaultFieldControlRowTheme } from './defaultFieldControlRowTheme.cjs';
|
|
11
13
|
export { defaultFieldDescriptionTheme } from './defaultFieldDescriptionTheme.cjs';
|
|
12
14
|
export { defaultFieldErrorTheme } from './defaultFieldErrorTheme.cjs';
|
|
13
15
|
export { FieldControlContext, useFieldControlProps, useFieldGroupProps } from './FieldContext.cjs';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export { Field } from './Field.mjs';
|
|
2
|
-
export type { FieldProps } from './FieldProps.mjs';
|
|
2
|
+
export type { FieldProps, FieldControlType } from './FieldProps.mjs';
|
|
3
3
|
export { FIELD_CATEGORIES } from './FieldCategories.mjs';
|
|
4
4
|
export type { FieldTheme } from './FieldTheme.mjs';
|
|
5
5
|
export { fieldDefaults } from './fieldDefaults.mjs';
|
|
6
6
|
export { fieldLabelDefaults } from './fieldLabelDefaults.mjs';
|
|
7
|
+
export { fieldControlRowDefaults } from './fieldControlRowDefaults.mjs';
|
|
7
8
|
export { fieldDescriptionDefaults } from './fieldDescriptionDefaults.mjs';
|
|
8
9
|
export { fieldErrorDefaults } from './fieldErrorDefaults.mjs';
|
|
9
10
|
export { defaultFieldTheme } from './defaultFieldTheme.mjs';
|
|
10
11
|
export { defaultFieldLabelTheme } from './defaultFieldLabelTheme.mjs';
|
|
12
|
+
export { defaultFieldControlRowTheme } from './defaultFieldControlRowTheme.mjs';
|
|
11
13
|
export { defaultFieldDescriptionTheme } from './defaultFieldDescriptionTheme.mjs';
|
|
12
14
|
export { defaultFieldErrorTheme } from './defaultFieldErrorTheme.mjs';
|
|
13
15
|
export { FieldControlContext, useFieldControlProps, useFieldGroupProps } from './FieldContext.mjs';
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
export { Field } from './Field';
|
|
2
|
-
export type { FieldProps } from './FieldProps';
|
|
2
|
+
export type { FieldProps, FieldControlType } from './FieldProps';
|
|
3
3
|
export { FIELD_CATEGORIES } from './FieldCategories';
|
|
4
4
|
export type { FieldTheme } from './FieldTheme';
|
|
5
5
|
export { fieldDefaults } from './fieldDefaults';
|
|
6
6
|
export { fieldLabelDefaults } from './fieldLabelDefaults';
|
|
7
|
+
export { fieldControlRowDefaults } from './fieldControlRowDefaults';
|
|
7
8
|
export { fieldDescriptionDefaults } from './fieldDescriptionDefaults';
|
|
8
9
|
export { fieldErrorDefaults } from './fieldErrorDefaults';
|
|
9
10
|
export { defaultFieldTheme } from './defaultFieldTheme';
|
|
10
11
|
export { defaultFieldLabelTheme } from './defaultFieldLabelTheme';
|
|
12
|
+
export { defaultFieldControlRowTheme } from './defaultFieldControlRowTheme';
|
|
11
13
|
export { defaultFieldDescriptionTheme } from './defaultFieldDescriptionTheme';
|
|
12
14
|
export { defaultFieldErrorTheme } from './defaultFieldErrorTheme';
|
|
13
15
|
export { FieldControlContext, useFieldControlProps, useFieldGroupProps } from './FieldContext';
|
|
@@ -38,6 +38,7 @@ export declare const INHERIT_SIZE: readonly ["inheritSize"];
|
|
|
38
38
|
export declare const INHERIT_COLOR: readonly ["inheritColor"];
|
|
39
39
|
export declare const INHERIT_BG: readonly ["inheritBg"];
|
|
40
40
|
export declare const INHERIT_BORDER: readonly ["inheritBorder"];
|
|
41
|
+
export declare const CONTROL: readonly ["control"];
|
|
41
42
|
export declare const LAYOUT_FULL: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "flex", "shrink"];
|
|
42
43
|
export declare const VISUAL_FULL: readonly ["appearance", "border", "shadow", "ring", "focusVisible", "shape"];
|
|
43
44
|
export declare const VISUAL_LAYOUT: readonly ["appearance", "border", "shadow", "ring", "shape"];
|
|
@@ -38,6 +38,7 @@ export declare const INHERIT_SIZE: readonly ["inheritSize"];
|
|
|
38
38
|
export declare const INHERIT_COLOR: readonly ["inheritColor"];
|
|
39
39
|
export declare const INHERIT_BG: readonly ["inheritBg"];
|
|
40
40
|
export declare const INHERIT_BORDER: readonly ["inheritBorder"];
|
|
41
|
+
export declare const CONTROL: readonly ["control"];
|
|
41
42
|
export declare const LAYOUT_FULL: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "flex", "shrink"];
|
|
42
43
|
export declare const VISUAL_FULL: readonly ["appearance", "border", "shadow", "ring", "focusVisible", "shape"];
|
|
43
44
|
export declare const VISUAL_LAYOUT: readonly ["appearance", "border", "shadow", "ring", "shape"];
|
|
@@ -38,6 +38,7 @@ export declare const INHERIT_SIZE: readonly ["inheritSize"];
|
|
|
38
38
|
export declare const INHERIT_COLOR: readonly ["inheritColor"];
|
|
39
39
|
export declare const INHERIT_BG: readonly ["inheritBg"];
|
|
40
40
|
export declare const INHERIT_BORDER: readonly ["inheritBorder"];
|
|
41
|
+
export declare const CONTROL: readonly ["control"];
|
|
41
42
|
export declare const LAYOUT_FULL: readonly ["size", "hide", "items", "justify", "position", "display", "overflow", "wrap", "gap", "flexDirection", "flex", "shrink"];
|
|
42
43
|
export declare const VISUAL_FULL: readonly ["appearance", "border", "shadow", "ring", "focusVisible", "shape"];
|
|
43
44
|
export declare const VISUAL_LAYOUT: readonly ["appearance", "border", "shadow", "ring", "shape"];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Which form control a Field renders itself; omit all of them to pass the control as a child. */
|
|
2
|
+
export interface ControlProps {
|
|
3
|
+
/** Render a text input (the default control kind); pair with `type` for a specific input type */
|
|
4
|
+
textInput?: boolean;
|
|
5
|
+
/** Render a multi-line textarea */
|
|
6
|
+
textarea?: boolean;
|
|
7
|
+
/** Render a select; pass the options as children */
|
|
8
|
+
select?: boolean;
|
|
9
|
+
/** Render a checkbox, laid out inline with its label */
|
|
10
|
+
checkbox?: boolean;
|
|
11
|
+
/** Render a switch, laid out inline with its label */
|
|
12
|
+
switch?: boolean;
|
|
13
|
+
/** Render a radio group; pass the radios as children */
|
|
14
|
+
radiogroup?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Which form control a Field renders itself; omit all of them to pass the control as a child. */
|
|
2
|
+
export interface ControlProps {
|
|
3
|
+
/** Render a text input (the default control kind); pair with `type` for a specific input type */
|
|
4
|
+
textInput?: boolean;
|
|
5
|
+
/** Render a multi-line textarea */
|
|
6
|
+
textarea?: boolean;
|
|
7
|
+
/** Render a select; pass the options as children */
|
|
8
|
+
select?: boolean;
|
|
9
|
+
/** Render a checkbox, laid out inline with its label */
|
|
10
|
+
checkbox?: boolean;
|
|
11
|
+
/** Render a switch, laid out inline with its label */
|
|
12
|
+
switch?: boolean;
|
|
13
|
+
/** Render a radio group; pass the radios as children */
|
|
14
|
+
radiogroup?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** Which form control a Field renders itself; omit all of them to pass the control as a child. */
|
|
2
|
+
export interface ControlProps {
|
|
3
|
+
/** Render a text input (the default control kind); pair with `type` for a specific input type */
|
|
4
|
+
textInput?: boolean;
|
|
5
|
+
/** Render a multi-line textarea */
|
|
6
|
+
textarea?: boolean;
|
|
7
|
+
/** Render a select; pass the options as children */
|
|
8
|
+
select?: boolean;
|
|
9
|
+
/** Render a checkbox, laid out inline with its label */
|
|
10
|
+
checkbox?: boolean;
|
|
11
|
+
/** Render a switch, laid out inline with its label */
|
|
12
|
+
switch?: boolean;
|
|
13
|
+
/** Render a radio group; pass the radios as children */
|
|
14
|
+
radiogroup?: boolean;
|
|
15
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER } from './categoryBuilders.cjs';
|
|
2
|
-
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, };
|
|
1
|
+
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL } from './categoryBuilders.cjs';
|
|
2
|
+
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL, };
|
|
3
3
|
import { BADGE_CATEGORIES, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, CONTAINER_CATEGORIES, GRID_CATEGORIES, ICON_CATEGORIES, ROW_CATEGORIES, STACK_CATEGORIES } from './categoryBuilders.cjs';
|
|
4
4
|
import { CARD_CATEGORIES } from '../card/CardCategories.cjs';
|
|
5
5
|
import { COL_CATEGORIES } from '../col/ColCategories.cjs';
|
|
@@ -81,7 +81,7 @@ export declare const HEIGHT: readonly ["height"];
|
|
|
81
81
|
/** Letter spacing property for text tracking */
|
|
82
82
|
export declare const LETTER_SPACING: readonly ["letterSpacing"];
|
|
83
83
|
/** All available component property categories combined */
|
|
84
|
-
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder"];
|
|
84
|
+
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder", "control"];
|
|
85
85
|
/**
|
|
86
86
|
* Describes category for which the appearance can be applied
|
|
87
87
|
* @see ComponentKeys.appearance
|
|
@@ -100,6 +100,8 @@ export declare const ComponentKeys: {
|
|
|
100
100
|
/** Breakpoint below which Row/Stack stacks into a column (desktop-first: that tier and below).
|
|
101
101
|
Widest-first so combining several resolves to the widest = their union (desktopStack ⊃ tabletStack ⊃ mobileStack). */
|
|
102
102
|
readonly breakpoint: readonly ["desktopStack", "tabletStack", "mobileStack"];
|
|
103
|
+
/** Which form control a Field renders itself; absent means the control is passed as a child */
|
|
104
|
+
readonly control: readonly ["textInput", "textarea", "select", "checkbox", "switch", "radiogroup"];
|
|
103
105
|
/** CSS display property values for element layout behavior */
|
|
104
106
|
readonly display: readonly ["inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden"];
|
|
105
107
|
/** Flex direction: row (horizontal), column (vertical), or reversed variants */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER } from './categoryBuilders.mjs';
|
|
2
|
-
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, };
|
|
1
|
+
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL } from './categoryBuilders.mjs';
|
|
2
|
+
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL, };
|
|
3
3
|
import { BADGE_CATEGORIES, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, CONTAINER_CATEGORIES, GRID_CATEGORIES, ICON_CATEGORIES, ROW_CATEGORIES, STACK_CATEGORIES } from './categoryBuilders.mjs';
|
|
4
4
|
import { CARD_CATEGORIES } from '../card/CardCategories.mjs';
|
|
5
5
|
import { COL_CATEGORIES } from '../col/ColCategories.mjs';
|
|
@@ -81,7 +81,7 @@ export declare const HEIGHT: readonly ["height"];
|
|
|
81
81
|
/** Letter spacing property for text tracking */
|
|
82
82
|
export declare const LETTER_SPACING: readonly ["letterSpacing"];
|
|
83
83
|
/** All available component property categories combined */
|
|
84
|
-
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder"];
|
|
84
|
+
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder", "control"];
|
|
85
85
|
/**
|
|
86
86
|
* Describes category for which the appearance can be applied
|
|
87
87
|
* @see ComponentKeys.appearance
|
|
@@ -100,6 +100,8 @@ export declare const ComponentKeys: {
|
|
|
100
100
|
/** Breakpoint below which Row/Stack stacks into a column (desktop-first: that tier and below).
|
|
101
101
|
Widest-first so combining several resolves to the widest = their union (desktopStack ⊃ tabletStack ⊃ mobileStack). */
|
|
102
102
|
readonly breakpoint: readonly ["desktopStack", "tabletStack", "mobileStack"];
|
|
103
|
+
/** Which form control a Field renders itself; absent means the control is passed as a child */
|
|
104
|
+
readonly control: readonly ["textInput", "textarea", "select", "checkbox", "switch", "radiogroup"];
|
|
103
105
|
/** CSS display property values for element layout behavior */
|
|
104
106
|
readonly display: readonly ["inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden"];
|
|
105
107
|
/** Flex direction: row (horizontal), column (vertical), or reversed variants */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER } from './categoryBuilders';
|
|
2
|
-
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, };
|
|
1
|
+
import { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL } from './categoryBuilders';
|
|
2
|
+
export { LAYOUT_CORE, LAYOUT_FLEX, PADDING, MARGIN, BREAKPOINT, VISUAL_CORE, BORDER, VISUAL_DECORATION, VISUAL_DECORATION_LAYOUT, SHAPE, TEXT_ALIGN, TRUNCATE, TYPOGRAPHY_STYLE_CORE, TYPOGRAPHY_STYLE, LIST_STYLE, LIST_POSITION, VARIANT, TRANSPARENT, RESPONSIVE, WIDTH, COMMON_MODIFIERS, LAYOUT_FULL, VISUAL_FULL, VISUAL_LAYOUT, TYPOGRAPHY_FULL, PLACEMENT, DISABLED, READONLY, MIN_WIDTH, MAX_HEIGHT, INHERIT_SIZE, INHERIT_COLOR, INHERIT_BG, INHERIT_BORDER, CONTROL, };
|
|
3
3
|
import { BADGE_CATEGORIES, BUTTON_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, CONTAINER_CATEGORIES, GRID_CATEGORIES, ICON_CATEGORIES, ROW_CATEGORIES, STACK_CATEGORIES } from './categoryBuilders';
|
|
4
4
|
import { CARD_CATEGORIES } from '../card/CardCategories';
|
|
5
5
|
import { COL_CATEGORIES } from '../col/ColCategories';
|
|
@@ -81,7 +81,7 @@ export declare const HEIGHT: readonly ["height"];
|
|
|
81
81
|
/** Letter spacing property for text tracking */
|
|
82
82
|
export declare const LETTER_SPACING: readonly ["letterSpacing"];
|
|
83
83
|
/** All available component property categories combined */
|
|
84
|
-
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder"];
|
|
84
|
+
export declare const COMPONENT_PROPS_CATEGORY: readonly ["appearance", "wrap", "gap", "flexDirection", "flex", "shrink", "fontWeight", "fontStyle", "textDecoration", "textTransform", "fontFamily", "textAlign", "truncate", "listStyle", "listPosition", "size", "hide", "items", "justify", "position", "display", "overflow", "alignSelf", "justifySelf", "breakpoint", "padding", "margin", "border", "shadow", "ring", "focusVisible", "shape", "variant", "transparent", "responsiveSizing", "blur", "pointerEvents", "cursor", "transition", "whitespace", "wordBreak", "objectFit", "width", "height", "truncate", "validity", "orientation", "letterSpacing", "placement", "disabled", "readOnly", "constrainWidth", "clampHeight", "inheritSize", "inheritColor", "inheritBg", "inheritBorder", "control"];
|
|
85
85
|
/**
|
|
86
86
|
* Describes category for which the appearance can be applied
|
|
87
87
|
* @see ComponentKeys.appearance
|
|
@@ -100,6 +100,8 @@ export declare const ComponentKeys: {
|
|
|
100
100
|
/** Breakpoint below which Row/Stack stacks into a column (desktop-first: that tier and below).
|
|
101
101
|
Widest-first so combining several resolves to the widest = their union (desktopStack ⊃ tabletStack ⊃ mobileStack). */
|
|
102
102
|
readonly breakpoint: readonly ["desktopStack", "tabletStack", "mobileStack"];
|
|
103
|
+
/** Which form control a Field renders itself; absent means the control is passed as a child */
|
|
104
|
+
readonly control: readonly ["textInput", "textarea", "select", "checkbox", "switch", "radiogroup"];
|
|
103
105
|
/** CSS display property values for element layout behavior */
|
|
104
106
|
readonly display: readonly ["inline", "block", "inlineBlock", "flex", "inlineFlex", "grid", "inlineGrid", "contents", "table", "tableCell", "hidden"];
|
|
105
107
|
/** Flex direction: row (horizontal), column (vertical), or reversed variants */
|
|
@@ -8,3 +8,5 @@ export declare const MULTI_VALUE_CATEGORIES: Set<string>;
|
|
|
8
8
|
* the selection overrides all side toggles.
|
|
9
9
|
*/
|
|
10
10
|
export declare function collectTruthyKeysByCategory<T extends ComponentCategoryKey>(props: Record<string, unknown>, defaults: Record<string, unknown>, category: T): string[];
|
|
11
|
+
/** Reset key that wins when a multi-value category's truthy keys mix a `no*` reset with side toggles. */
|
|
12
|
+
export declare function resetConflictKey(truthyKeys: readonly string[]): string | undefined;
|
|
@@ -8,3 +8,5 @@ export declare const MULTI_VALUE_CATEGORIES: Set<string>;
|
|
|
8
8
|
* the selection overrides all side toggles.
|
|
9
9
|
*/
|
|
10
10
|
export declare function collectTruthyKeysByCategory<T extends ComponentCategoryKey>(props: Record<string, unknown>, defaults: Record<string, unknown>, category: T): string[];
|
|
11
|
+
/** Reset key that wins when a multi-value category's truthy keys mix a `no*` reset with side toggles. */
|
|
12
|
+
export declare function resetConflictKey(truthyKeys: readonly string[]): string | undefined;
|
|
@@ -8,3 +8,5 @@ export declare const MULTI_VALUE_CATEGORIES: Set<string>;
|
|
|
8
8
|
* the selection overrides all side toggles.
|
|
9
9
|
*/
|
|
10
10
|
export declare function collectTruthyKeysByCategory<T extends ComponentCategoryKey>(props: Record<string, unknown>, defaults: Record<string, unknown>, category: T): string[];
|
|
11
|
+
/** Reset key that wins when a multi-value category's truthy keys mix a `no*` reset with side toggles. */
|
|
12
|
+
export declare function resetConflictKey(truthyKeys: readonly string[]): string | undefined;
|
package/dist/types/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ export { Kbd, type KbdProps } from "./components/ui/kbd/index.cjs";
|
|
|
9
9
|
export { Mark, type MarkProps } from "./components/ui/mark/index.cjs";
|
|
10
10
|
export { Checkbox, type CheckboxProps } from "./components/ui/checkbox/index.cjs";
|
|
11
11
|
export { Label, type LabelProps } from "./components/ui/label/index.cjs";
|
|
12
|
-
export { Field, type FieldProps } from "./components/ui/field/index.cjs";
|
|
12
|
+
export { Field, type FieldProps, type FieldControlType } from "./components/ui/field/index.cjs";
|
|
13
13
|
export { Alert, type AlertProps } from "./components/ui/alert/index.cjs";
|
|
14
14
|
export { Spinner, type SpinnerProps } from "./components/ui/spinner/index.cjs";
|
|
15
15
|
export { Tooltip, type TooltipProps } from "./components/ui/tooltip/index.cjs";
|
|
@@ -46,4 +46,4 @@ export { ThemeProvider } from './components/ThemeProvider.cjs';
|
|
|
46
46
|
export { defaultTheme } from './components/defaultTheme.cjs';
|
|
47
47
|
export { useTheme, type ThemeProps, type ThemeDefaults, type ThemeExtraClasses, type ThemeProviderProps, type PartialTheme, } from './components/themeContext.cjs';
|
|
48
48
|
export { themeDefaults } from './components/ui/theme/defaults.cjs';
|
|
49
|
-
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, } from "./components/ui/props/props.cjs";
|
|
49
|
+
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, ControlProps, } from "./components/ui/props/props.cjs";
|
package/dist/types/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ export { Kbd, type KbdProps } from "./components/ui/kbd/index.mjs";
|
|
|
9
9
|
export { Mark, type MarkProps } from "./components/ui/mark/index.mjs";
|
|
10
10
|
export { Checkbox, type CheckboxProps } from "./components/ui/checkbox/index.mjs";
|
|
11
11
|
export { Label, type LabelProps } from "./components/ui/label/index.mjs";
|
|
12
|
-
export { Field, type FieldProps } from "./components/ui/field/index.mjs";
|
|
12
|
+
export { Field, type FieldProps, type FieldControlType } from "./components/ui/field/index.mjs";
|
|
13
13
|
export { Alert, type AlertProps } from "./components/ui/alert/index.mjs";
|
|
14
14
|
export { Spinner, type SpinnerProps } from "./components/ui/spinner/index.mjs";
|
|
15
15
|
export { Tooltip, type TooltipProps } from "./components/ui/tooltip/index.mjs";
|
|
@@ -46,4 +46,4 @@ export { ThemeProvider } from './components/ThemeProvider.mjs';
|
|
|
46
46
|
export { defaultTheme } from './components/defaultTheme.mjs';
|
|
47
47
|
export { useTheme, type ThemeProps, type ThemeDefaults, type ThemeExtraClasses, type ThemeProviderProps, type PartialTheme, } from './components/themeContext.mjs';
|
|
48
48
|
export { themeDefaults } from './components/ui/theme/defaults.mjs';
|
|
49
|
-
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, } from "./components/ui/props/props.mjs";
|
|
49
|
+
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, ControlProps, } from "./components/ui/props/props.mjs";
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export { Kbd, type KbdProps } from "./components/ui/kbd";
|
|
|
9
9
|
export { Mark, type MarkProps } from "./components/ui/mark";
|
|
10
10
|
export { Checkbox, type CheckboxProps } from "./components/ui/checkbox";
|
|
11
11
|
export { Label, type LabelProps } from "./components/ui/label";
|
|
12
|
-
export { Field, type FieldProps } from "./components/ui/field";
|
|
12
|
+
export { Field, type FieldProps, type FieldControlType } from "./components/ui/field";
|
|
13
13
|
export { Alert, type AlertProps } from "./components/ui/alert";
|
|
14
14
|
export { Spinner, type SpinnerProps } from "./components/ui/spinner";
|
|
15
15
|
export { Tooltip, type TooltipProps } from "./components/ui/tooltip";
|
|
@@ -46,4 +46,4 @@ export { ThemeProvider } from './components/ThemeProvider';
|
|
|
46
46
|
export { defaultTheme } from './components/defaultTheme';
|
|
47
47
|
export { useTheme, type ThemeProps, type ThemeDefaults, type ThemeExtraClasses, type ThemeProviderProps, type PartialTheme, } from './components/themeContext';
|
|
48
48
|
export { themeDefaults } from './components/ui/theme/defaults';
|
|
49
|
-
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, } from "./components/ui/props/props";
|
|
49
|
+
export type { BaseProps, SizeProps, AppearanceProps, VariantProps, ShapeProps, FontFamilyProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, TextAlignProps, PaddingProps, GapProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ItemsProps, JustifyProps, FlexDirectionProps, WrapProps, DisplayProps, PositionProps, OverflowProps, BreakpointProps, HideProps, ResponsiveProps, TransparentProps, BlurProps, PointerEventsProps, CursorProps, TransitionProps, WhitespaceProps, ObjectFitProps, ListStyleProps, WidthProps, TruncateProps, StatusProps, OrientationProps, HeightProps, LetterSpacingProps, PlacementProps, DisabledProps, MinWidthProps, MaxHeightProps, MarginProps, ReadOnlyProps, AlignSelfProps, JustifySelfProps, FlexProps, ShrinkProps, ListPositionProps, InheritSizeProps, InheritColorProps, InheritBgProps, InheritBorderProps, InheritProps, ControlProps, } from "./components/ui/props/props";
|