@vaneui/ui 0.2.1-alpha.20250810082253.4d2c8c2 → 0.2.1-alpha.20250810113755.26a118a

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.
@@ -18,8 +18,6 @@ import { LabelTheme } from './ui/theme/labelTheme';
18
18
  import { ImgTheme } from './ui/theme/imgTheme';
19
19
  import { BadgeProps, ButtonProps, CardProps, ChipProps, CodeProps, ColProps, ContainerProps, DividerProps, GridProps, ListProps, RowProps, SectionProps, StackProps, TypographyProps, CheckboxProps, LabelProps, ImgProps } from "./ui/props";
20
20
  import { DeepPartial } from "./utils/deepPartial";
21
- export declare const COMPONENT: readonly ["button", "badge", "chip", "code", "card", "divider", "container", "row", "col", "stack", "section", "grid3", "grid4", "pageTitle", "sectionTitle", "title", "text", "link", "list", "listItem", "checkbox", "label", "img"];
22
- export type ComponentKey = typeof COMPONENT[number];
23
21
  export interface ThemeProps {
24
22
  button: ComponentTheme<ButtonProps, ButtonTheme>;
25
23
  badge: ComponentTheme<BadgeProps, BadgeTheme>;
@@ -93,3 +93,6 @@ export declare const IMG_CATEGORIES: readonly ["size", "hide", "items", "justify
93
93
  export type CategoryProps = {
94
94
  [K in ComponentCategoryKey]?: (typeof ComponentKeys)[K][number];
95
95
  };
96
+ export declare const COMPONENT: readonly ["button", "badge", "chip", "code", "card", "divider", "container", "row", "col", "stack", "section", "grid3", "grid4", "pageTitle", "sectionTitle", "title", "text", "link", "list", "listItem", "checkbox", "label", "img"];
97
+ export type ComponentKey = typeof COMPONENT[number];
98
+ export declare const ComponentCategories: Record<ComponentKey, readonly string[]>;
package/dist/index.d.ts CHANGED
@@ -8,6 +8,6 @@ export { Label } from "./components/ui/label";
8
8
  export { Img } from "./components/ui/img";
9
9
  export { Section, Container, Col, Row, Stack, Grid3, Grid4, Card } from "./components/ui/layout";
10
10
  export { Text, Title, Link, List, ListItem, SectionTitle, PageTitle } from "./components/ui/typography";
11
- export { ComponentKeys } from "./components/ui/props/keys";
12
- export { ThemeProvider, useTheme, defaultTheme, COMPONENT, type ThemeProps, type ThemeDefaults, type ThemeExtraClasses, type ThemeProviderProps, type PartialTheme, type ComponentKey, } from './components/themeContext';
11
+ export { COMPONENT, ComponentKeys, ComponentCategories, type ComponentKey, } from "./components/ui/props/keys";
12
+ export { ThemeProvider, useTheme, defaultTheme, type ThemeProps, type ThemeDefaults, type ThemeExtraClasses, type ThemeProviderProps, type PartialTheme, } from './components/themeContext';
13
13
  export * from "./components/ui/props/index";
package/dist/index.esm.js CHANGED
@@ -91,6 +91,33 @@ const CHECKBOX_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATIO
91
91
  const LABEL_CATEGORIES = [...TYPOGRAPHY_FULL, ...LAYOUT_FULL, ...VISUAL_CORE];
92
92
  // Media component categories
93
93
  const IMG_CATEGORIES = [...LAYOUT_CORE, ...VISUAL_CORE, ...VISUAL_DECORATION, ...SHAPE];
94
+ const COMPONENT = ['button', 'badge', 'chip', 'code', 'card', 'divider', 'container', 'row', 'col', 'stack', 'section',
95
+ 'grid3', 'grid4', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img'];
96
+ const ComponentCategories = {
97
+ badge: BADGE_CATEGORIES,
98
+ button: BUTTON_CATEGORIES,
99
+ card: CARD_CATEGORIES,
100
+ checkbox: CHECKBOX_CATEGORIES,
101
+ chip: CHIP_CATEGORIES,
102
+ code: CODE_CATEGORIES,
103
+ col: COL_CATEGORIES,
104
+ container: CONTAINER_CATEGORIES,
105
+ divider: DIVIDER_CATEGORIES,
106
+ grid3: GRID_CATEGORIES,
107
+ grid4: GRID_CATEGORIES,
108
+ img: IMG_CATEGORIES,
109
+ label: LABEL_CATEGORIES,
110
+ link: TYPOGRAPHY_CATEGORIES,
111
+ list: LIST_CATEGORIES,
112
+ listItem: TYPOGRAPHY_CATEGORIES,
113
+ pageTitle: TYPOGRAPHY_CATEGORIES,
114
+ row: ROW_CATEGORIES,
115
+ section: SECTION_CATEGORIES,
116
+ sectionTitle: TYPOGRAPHY_CATEGORIES,
117
+ stack: STACK_CATEGORIES,
118
+ text: TYPOGRAPHY_CATEGORIES,
119
+ title: TYPOGRAPHY_CATEGORIES
120
+ };
94
121
 
95
122
  class HideTheme extends BaseTheme {
96
123
  constructor(initialConfig) {
@@ -4689,7 +4716,7 @@ const defaultCheckboxWrapperTheme = new ComponentTheme("span", "", {
4689
4716
  justifyCenter: true,
4690
4717
  }, CHECKBOX_CATEGORIES);
4691
4718
 
4692
- const defaultLabelTheme = new ComponentTheme("label", "cursor-pointer", {
4719
+ const defaultLabelTheme = new ComponentTheme("label", "has-[input]:cursor-pointer cursor-default", {
4693
4720
  size: {
4694
4721
  text: new SizeTheme(textSizeClasses),
4695
4722
  gap: new GapTheme({ xs: 'gap-1.5', sm: 'gap-2', md: 'gap-2.5', lg: 'gap-3', xl: 'gap-3' }),
@@ -4732,8 +4759,6 @@ const defaultImgTheme = new ComponentTheme("img", "object-cover", // Default to
4732
4759
  noRing: true,
4733
4760
  }, IMG_CATEGORIES);
4734
4761
 
4735
- const COMPONENT = ['button', 'badge', 'chip', 'code', 'card', 'divider', 'container', 'row', 'col', 'stack', 'section',
4736
- 'grid3', 'grid4', 'pageTitle', 'sectionTitle', 'title', 'text', 'link', 'list', 'listItem', 'checkbox', 'label', 'img'];
4737
4762
  const defaultTheme = {
4738
4763
  button: defaultButtonTheme,
4739
4764
  badge: defaultBadgeTheme,
@@ -4991,5 +5016,5 @@ const List = (props) => {
4991
5016
  return jsx(ThemedComponent, { theme: theme.list, ...props });
4992
5017
  };
4993
5018
 
4994
- export { BADGE_CATEGORIES, BREAKPOINT, BUTTON_CATEGORIES, Badge, Button, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COL_CATEGORIES, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, Card, Checkbox, Chip, Code, Col, ComponentKeys, Container, DIVIDER_CATEGORIES, Divider, GRID_CATEGORIES, Grid3, Grid4, IMG_CATEGORIES, INTERACTIVE_CATEGORIES, Img, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LINK, LIST_CATEGORIES, LIST_STYLE, Label, Link, List, ListItem, PADDING, PageTitle, ROW_CATEGORIES, Row, SECTION_CATEGORIES, SHAPE, STACK_CATEGORIES, Section, SectionTitle, Stack, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, Text, ThemeProvider, Title, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_FULL, defaultTheme, useTheme };
5019
+ export { BADGE_CATEGORIES, BREAKPOINT, BUTTON_CATEGORIES, Badge, Button, CARD_CATEGORIES, CHECKBOX_CATEGORIES, CHIP_CATEGORIES, CODE_CATEGORIES, COL_CATEGORIES, COMPONENT, COMPONENT_PROPS_CATEGORY, CONTAINER_CATEGORIES, Card, Checkbox, Chip, Code, Col, ComponentCategories, ComponentKeys, Container, DIVIDER_CATEGORIES, Divider, GRID_CATEGORIES, Grid3, Grid4, IMG_CATEGORIES, INTERACTIVE_CATEGORIES, Img, LABEL_CATEGORIES, LAYOUT_CORE, LAYOUT_FLEX, LAYOUT_FULL, LINK, LIST_CATEGORIES, LIST_STYLE, Label, Link, List, ListItem, PADDING, PageTitle, ROW_CATEGORIES, Row, SECTION_CATEGORIES, SHAPE, STACK_CATEGORIES, Section, SectionTitle, Stack, TYPOGRAPHY_CATEGORIES, TYPOGRAPHY_FULL, TYPOGRAPHY_STYLE, Text, ThemeProvider, Title, VARIANT, VISUAL_CORE, VISUAL_DECORATION, VISUAL_FULL, defaultTheme, useTheme };
4995
5020
  //# sourceMappingURL=index.esm.js.map