@vireo-ai/trellis-ui 0.1.0

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.
Files changed (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/package.json +84 -0
  4. package/src/theme.css +536 -0
  5. package/trellis_ui/static/trellis_ui/css/styles.css +4382 -0
  6. package/trellis_ui/static/trellis_ui/js/esm/chunks/cally-TZl4LpyH.js +1134 -0
  7. package/trellis_ui/static/trellis_ui/js/esm/chunks/cally-TZl4LpyH.js.map +1 -0
  8. package/trellis_ui/static/trellis_ui/js/esm/chunks/dist-DMX3Q5Zu.js +551 -0
  9. package/trellis_ui/static/trellis_ui/js/esm/chunks/dist-DMX3Q5Zu.js.map +1 -0
  10. package/trellis_ui/static/trellis_ui/js/esm/index.js +14181 -0
  11. package/trellis_ui/static/trellis_ui/js/esm/index.js.map +1 -0
  12. package/trellis_ui/static/trellis_ui/js/index.js +10 -0
  13. package/types/bindings/disclosure.d.ts +3 -0
  14. package/types/bindings/index.d.ts +7 -0
  15. package/types/bindings/motion.d.ts +3 -0
  16. package/types/bindings/state.d.ts +3 -0
  17. package/types/bindings/types.d.ts +35 -0
  18. package/types/components/accordion/contract.d.ts +29 -0
  19. package/types/components/accordion/index.d.ts +44 -0
  20. package/types/components/action/contract.d.ts +14 -0
  21. package/types/components/action/index.d.ts +2 -0
  22. package/types/components/app/contract.d.ts +29 -0
  23. package/types/components/app/index.d.ts +2 -0
  24. package/types/components/badge/contract.d.ts +42 -0
  25. package/types/components/badge/index.d.ts +0 -0
  26. package/types/components/box/contract.d.ts +44 -0
  27. package/types/components/box/index.d.ts +2 -0
  28. package/types/components/brand/contract.d.ts +18 -0
  29. package/types/components/brand/index.d.ts +0 -0
  30. package/types/components/button/contract.d.ts +34 -0
  31. package/types/components/button/index.d.ts +3 -0
  32. package/types/components/card/contract.d.ts +56 -0
  33. package/types/components/card/index.d.ts +0 -0
  34. package/types/components/checkbox/contract.d.ts +85 -0
  35. package/types/components/checkbox/index.d.ts +34 -0
  36. package/types/components/combobox/contract.d.ts +57 -0
  37. package/types/components/combobox/index.d.ts +74 -0
  38. package/types/components/common.d.ts +61 -0
  39. package/types/components/date-picker/contract.d.ts +86 -0
  40. package/types/components/date-picker/index.d.ts +70 -0
  41. package/types/components/dropdown/contract.d.ts +18 -0
  42. package/types/components/dropdown/index.d.ts +53 -0
  43. package/types/components/field/contract.d.ts +67 -0
  44. package/types/components/field/index.d.ts +11 -0
  45. package/types/components/file-upload/contract.d.ts +60 -0
  46. package/types/components/file-upload/index.d.ts +35 -0
  47. package/types/components/frame/contract.d.ts +60 -0
  48. package/types/components/frame/index.d.ts +2 -0
  49. package/types/components/heading/contract.d.ts +8 -0
  50. package/types/components/heading/index.d.ts +0 -0
  51. package/types/components/image/contract.d.ts +19 -0
  52. package/types/components/image/index.d.ts +1 -0
  53. package/types/components/index.d.ts +1 -0
  54. package/types/components/input/contract.d.ts +49 -0
  55. package/types/components/input/index.d.ts +17 -0
  56. package/types/components/menu/contract.d.ts +34 -0
  57. package/types/components/menu/index.d.ts +0 -0
  58. package/types/components/modal/contract.d.ts +56 -0
  59. package/types/components/modal/index.d.ts +85 -0
  60. package/types/components/overlay/contract.d.ts +13 -0
  61. package/types/components/overlay/index.d.ts +0 -0
  62. package/types/components/radio/contract.d.ts +55 -0
  63. package/types/components/radio/index.d.ts +28 -0
  64. package/types/components/runtime.d.ts +35 -0
  65. package/types/components/scroll-area/contract.d.ts +23 -0
  66. package/types/components/scroll-area/index.d.ts +68 -0
  67. package/types/components/select/contract.d.ts +90 -0
  68. package/types/components/select/index.d.ts +92 -0
  69. package/types/components/separator/contract.d.ts +7 -0
  70. package/types/components/separator/index.d.ts +0 -0
  71. package/types/components/sidebar/contract.d.ts +66 -0
  72. package/types/components/sidebar/index.d.ts +106 -0
  73. package/types/components/slider/contract.d.ts +56 -0
  74. package/types/components/slider/index.d.ts +40 -0
  75. package/types/components/spacer/index.d.ts +0 -0
  76. package/types/components/stream/index.d.ts +0 -0
  77. package/types/components/switch/contract.d.ts +57 -0
  78. package/types/components/switch/index.d.ts +24 -0
  79. package/types/components/table/contract.d.ts +99 -0
  80. package/types/components/table/index.d.ts +2 -0
  81. package/types/components/tabs/contract.d.ts +25 -0
  82. package/types/components/tabs/index.d.ts +60 -0
  83. package/types/components/text/contract.d.ts +10 -0
  84. package/types/components/text/index.d.ts +0 -0
  85. package/types/components/textarea/contract.d.ts +22 -0
  86. package/types/components/textarea/index.d.ts +0 -0
  87. package/types/components/theme/contract.d.ts +6 -0
  88. package/types/components/theme/index.d.ts +0 -0
  89. package/types/components/toast/contract.d.ts +28 -0
  90. package/types/components/toast/index.d.ts +27 -0
  91. package/types/index.d.ts +46 -0
  92. package/types/motion/animate.d.ts +49 -0
  93. package/types/motion/index.d.ts +24 -0
  94. package/types/motion/presence.d.ts +34 -0
  95. package/types/motion/reduced-motion.d.ts +9 -0
  96. package/types/motion/stream.d.ts +18 -0
  97. package/types/motion/targets.d.ts +31 -0
  98. package/types/motion/view.d.ts +22 -0
  99. package/types/runtime/anchored-popover.d.ts +20 -0
  100. package/types/runtime/class-name.d.ts +9 -0
  101. package/types/runtime/codecs.d.ts +66 -0
  102. package/types/runtime/collection-navigation.d.ts +33 -0
  103. package/types/runtime/confirm.d.ts +18 -0
  104. package/types/runtime/create.d.ts +8 -0
  105. package/types/runtime/dismissable-layer.d.ts +8 -0
  106. package/types/runtime/dom.d.ts +39 -0
  107. package/types/runtime/form-control.d.ts +44 -0
  108. package/types/runtime/index.d.ts +85 -0
  109. package/types/runtime/manifest.d.ts +49 -0
  110. package/types/runtime/option-data.d.ts +5 -0
  111. package/types/runtime/props.d.ts +9 -0
  112. package/types/runtime/resizable.d.ts +36 -0
  113. package/types/runtime/scroll-lock.d.ts +3 -0
  114. package/types/runtime/stream.d.ts +47 -0
  115. package/types/runtime/styles.d.ts +28 -0
  116. package/types/runtime/theme.d.ts +17 -0
@@ -0,0 +1,3 @@
1
+ import type { AlpineLike } from './types';
2
+ declare const registerDisclosureBindings: (Alpine: AlpineLike) => void;
3
+ export { registerDisclosureBindings };
@@ -0,0 +1,7 @@
1
+ import type { AlpineLike } from './types';
2
+ import { registerDisclosureBindings } from './disclosure';
3
+ import { registerMotionBindings } from './motion';
4
+ import { registerStateBindings } from './state';
5
+ declare const registerCoreBindings: (Alpine: AlpineLike) => void;
6
+ export { registerCoreBindings, registerDisclosureBindings, registerMotionBindings, registerStateBindings };
7
+ export type { ActiveDescendantContext, AlpineLike, DisabledContext, DisclosureContext, InvalidContext, InteractiveContext, SelectedContext, } from './types';
@@ -0,0 +1,3 @@
1
+ import type { AlpineLike } from './types';
2
+ declare const registerMotionBindings: (Alpine: AlpineLike) => void;
3
+ export { registerMotionBindings };
@@ -0,0 +1,3 @@
1
+ import type { AlpineLike } from './types';
2
+ declare const registerStateBindings: (Alpine: AlpineLike) => void;
3
+ export { registerStateBindings };
@@ -0,0 +1,35 @@
1
+ import type Alpine from 'alpinejs';
2
+ type AlpineLike = typeof Alpine;
3
+ type DisclosureContext = {
4
+ isOpen: boolean;
5
+ triggerId?: string;
6
+ contentId: string;
7
+ toggle(event?: Event): void;
8
+ open(event?: Event): void;
9
+ close(event?: Event): void;
10
+ };
11
+ type DisabledContext = {
12
+ props: {
13
+ disabled?: boolean;
14
+ };
15
+ };
16
+ type InvalidContext = {
17
+ props: {
18
+ invalid?: boolean;
19
+ };
20
+ describedBy?: string;
21
+ };
22
+ type InteractiveContext = {
23
+ isInteractive?: boolean;
24
+ interactiveKind?: string;
25
+ props?: {
26
+ interactive?: boolean;
27
+ };
28
+ };
29
+ type SelectedContext = {
30
+ isSelected: boolean;
31
+ };
32
+ type ActiveDescendantContext = {
33
+ activeId: string | null;
34
+ };
35
+ export type { ActiveDescendantContext, AlpineLike, DisabledContext, DisclosureContext, InvalidContext, InteractiveContext, SelectedContext, };
@@ -0,0 +1,29 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { type HeadingLevel, type Orientation } from '../common';
3
+ declare const ACCORDION_MODES: readonly ["single", "multiple"];
4
+ declare const ACCORDION_ORIENTATIONS: readonly ["vertical", "horizontal"];
5
+ declare const ACCORDION_ICON_POSITIONS: readonly ["trailing", "leading"];
6
+ declare const ACCORDION_ITEM_ICON_POSITIONS: readonly ["inherit", "trailing", "leading"];
7
+ declare const ACCORDION_HEADING_AS: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
8
+ declare const ACCORDION_ITEM_HEADING_AS: readonly ["inherit", "h1", "h2", "h3", "h4", "h5", "h6"];
9
+ declare const accordionSchema: {
10
+ mode: import("../../runtime/codecs").OneOfCodec<"single" | "multiple">;
11
+ collapsible: import("../../runtime/codecs").BoolCodec;
12
+ disabled: import("../../runtime/codecs").BoolCodec;
13
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
14
+ defaultValue: import("../../runtime/codecs").StringCodec;
15
+ defaultValues: import("../../runtime/codecs").StringCodec;
16
+ loop: import("../../runtime/codecs").BoolCodec;
17
+ iconPosition: import("../../runtime/codecs").OneOfCodec<"leading" | "trailing">;
18
+ headingAs: import("../../runtime/codecs").OneOfCodec<"h1" | "h2" | "h3" | "h4" | "h5" | "h6">;
19
+ class: import("../../runtime/codecs").StringCodec;
20
+ };
21
+ type AccordionMode = typeof ACCORDION_MODES[number];
22
+ type AccordionOrientation = Orientation;
23
+ type AccordionIconPosition = typeof ACCORDION_ICON_POSITIONS[number];
24
+ type AccordionItemIconPosition = typeof ACCORDION_ITEM_ICON_POSITIONS[number];
25
+ type AccordionHeadingAs = HeadingLevel;
26
+ type AccordionItemHeadingAs = typeof ACCORDION_ITEM_HEADING_AS[number];
27
+ type AccordionProps = PropState<typeof accordionSchema>;
28
+ export { ACCORDION_HEADING_AS, ACCORDION_ICON_POSITIONS, ACCORDION_ITEM_HEADING_AS, ACCORDION_ITEM_ICON_POSITIONS, ACCORDION_ORIENTATIONS, ACCORDION_MODES, accordionSchema, };
29
+ export type { AccordionHeadingAs, AccordionIconPosition, AccordionItemHeadingAs, AccordionItemIconPosition, AccordionOrientation, AccordionProps, AccordionMode, };
@@ -0,0 +1,44 @@
1
+ import type Alpine from 'alpinejs';
2
+ import { type BindingObject, type CollectionNavigation, type TrellisAlpineComponent } from '../../runtime';
3
+ import { type AccordionProps, type AccordionMode } from './contract';
4
+ type AccordionItem = {
5
+ item: HTMLElement;
6
+ heading: HTMLElement | null;
7
+ trigger: HTMLButtonElement;
8
+ content: HTMLElement;
9
+ value: string;
10
+ isDisabled: boolean;
11
+ };
12
+ type AccordionData = {
13
+ props: AccordionProps;
14
+ openValues: Set<string>;
15
+ collection: CollectionNavigation | null;
16
+ cleanup: Array<() => void>;
17
+ root: BindingObject;
18
+ items(): AccordionItem[];
19
+ itemFromTrigger(trigger: HTMLElement): AccordionItem | null;
20
+ initialValues(): string[];
21
+ normalizeValues(values: string[]): string[];
22
+ isItemOpen(item: AccordionItem): boolean;
23
+ isItemDisabled(item: AccordionItem): boolean;
24
+ canCollapseOpenItem(item: AccordionItem): boolean;
25
+ toggleItem(item: AccordionItem, event?: Event): void;
26
+ setOpenValues(values: string[]): void;
27
+ syncAll(): void;
28
+ syncRoot(): void;
29
+ syncItem(item: AccordionItem): void;
30
+ syncContent(content: HTMLElement, open: boolean): void;
31
+ setupTriggers(): void;
32
+ teardown(): void;
33
+ collectionNav(): CollectionNavigation;
34
+ handleTriggerKeydown(trigger: HTMLButtonElement, event: KeyboardEvent): void;
35
+ focusNext(): void;
36
+ focusPrevious(): void;
37
+ focusFirst(): void;
38
+ focusLast(): void;
39
+ dispatchChange(): void;
40
+ };
41
+ declare const UiAccordion: () => TrellisAlpineComponent<AccordionData>;
42
+ declare const registerAccordion: (AlpineInstance: Alpine.Alpine) => void;
43
+ export { registerAccordion, UiAccordion, };
44
+ export type { AccordionData, AccordionItem, AccordionMode };
@@ -0,0 +1,14 @@
1
+ import { type PropState } from '../../runtime';
2
+ declare const ACTION_METHODS: readonly ["get", "post", "dialog"];
3
+ declare const actionSchema: {
4
+ action: import("../../runtime/codecs").StringCodec;
5
+ method: import("../../runtime/codecs").OneOfCodec<"get" | "dialog" | "post">;
6
+ enctype: import("../../runtime/codecs").StringCodec;
7
+ confirm: import("../../runtime/codecs").StringCodec;
8
+ role: import("../../runtime/codecs").StringCodec;
9
+ class: import("../../runtime/codecs").StringCodec;
10
+ };
11
+ type ActionMethod = typeof ACTION_METHODS[number];
12
+ type ActionProps = PropState<typeof actionSchema>;
13
+ export { ACTION_METHODS, actionSchema };
14
+ export type { ActionMethod, ActionProps };
@@ -0,0 +1,2 @@
1
+ export { ACTION_METHODS, actionSchema } from './contract';
2
+ export type { ActionMethod, ActionProps } from './contract';
@@ -0,0 +1,29 @@
1
+ import { type PropState } from '../../runtime';
2
+ declare const APP_HEIGHTS: readonly ["screen", "min"];
3
+ declare const APP_SIDEBARS: readonly ["left", "right", "both", "none"];
4
+ declare const APP_MAIN_SCROLLS: readonly ["auto", "none"];
5
+ declare const appSchema: {
6
+ id: import("../../runtime/codecs").StringCodec;
7
+ height: import("../../runtime/codecs").OneOfCodec<"min" | "screen">;
8
+ sidebar: import("../../runtime/codecs").OneOfCodec<"left" | "right" | "none" | "both">;
9
+ class: import("../../runtime/codecs").StringCodec;
10
+ };
11
+ declare const appHeaderSchema: {
12
+ sticky: import("../../runtime/codecs").BoolCodec;
13
+ class: import("../../runtime/codecs").StringCodec;
14
+ };
15
+ declare const appMainSchema: {
16
+ id: import("../../runtime/codecs").StringCodec;
17
+ container: import("../../runtime/codecs").BoolCodec;
18
+ scroll: import("../../runtime/codecs").OneOfCodec<"none" | "auto">;
19
+ class: import("../../runtime/codecs").StringCodec;
20
+ };
21
+ declare const appPanelSchema: {
22
+ class: import("../../runtime/codecs").StringCodec;
23
+ };
24
+ type AppHeight = typeof APP_HEIGHTS[number];
25
+ type AppMainScroll = typeof APP_MAIN_SCROLLS[number];
26
+ type AppSidebar = typeof APP_SIDEBARS[number];
27
+ type AppProps = PropState<typeof appSchema>;
28
+ export { APP_HEIGHTS, APP_MAIN_SCROLLS, APP_SIDEBARS, appHeaderSchema, appMainSchema, appPanelSchema, appSchema, };
29
+ export type { AppHeight, AppMainScroll, AppProps, AppSidebar };
@@ -0,0 +1,2 @@
1
+ export { APP_HEIGHTS, APP_MAIN_SCROLLS, APP_SIDEBARS, appHeaderSchema, appMainSchema, appPanelSchema, appSchema } from './contract';
2
+ export type { AppHeight, AppMainScroll, AppProps, AppSidebar } from './contract';
@@ -0,0 +1,42 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { type CommonButtonType, type ControlSize, type IconVariant } from '../common';
3
+ declare const BADGE_VARIANTS: readonly ["soft", "surface", "outline", "solid"];
4
+ declare const BADGE_COLORS: readonly ["neutral", "accent", "success", "warning", "danger"];
5
+ declare const BADGE_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
6
+ declare const BADGE_AS_VALUES: readonly ["span", "button"];
7
+ declare const BADGE_TYPES: readonly ["button", "submit", "reset"];
8
+ declare const BADGE_ICON_VARIANTS: readonly ["outline", "solid", "mini", "micro"];
9
+ declare const badgeSchema: {
10
+ variant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "surface" | "soft">;
11
+ color: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "success" | "warning" | "danger">;
12
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
13
+ rounded: import("../../runtime/codecs").BoolCodec;
14
+ href: import("../../runtime/codecs").StringCodec;
15
+ as: import("../../runtime/codecs").OneOfCodec<"button" | "span">;
16
+ type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
17
+ disabled: import("../../runtime/codecs").BoolCodec;
18
+ icon: import("../../runtime/codecs").StringCodec;
19
+ iconTrailing: import("../../runtime/codecs").StringCodec;
20
+ iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
21
+ inset: import("../../runtime/codecs").StringCodec;
22
+ class: import("../../runtime/codecs").StringCodec;
23
+ };
24
+ declare const badgeCloseSchema: {
25
+ type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
26
+ disabled: import("../../runtime/codecs").BoolCodec;
27
+ icon: import("../../runtime/codecs").StringCodec;
28
+ iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
29
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
30
+ label: import("../../runtime/codecs").StringCodec;
31
+ class: import("../../runtime/codecs").StringCodec;
32
+ };
33
+ type BadgeVariant = typeof BADGE_VARIANTS[number];
34
+ type BadgeColor = typeof BADGE_COLORS[number];
35
+ type BadgeSize = ControlSize;
36
+ type BadgeAs = typeof BADGE_AS_VALUES[number];
37
+ type BadgeType = CommonButtonType;
38
+ type BadgeIconVariant = IconVariant;
39
+ type BadgeProps = PropState<typeof badgeSchema>;
40
+ type BadgeCloseProps = PropState<typeof badgeCloseSchema>;
41
+ export { BADGE_AS_VALUES, BADGE_COLORS, BADGE_ICON_VARIANTS, BADGE_SIZES, BADGE_TYPES, BADGE_VARIANTS, badgeCloseSchema, badgeSchema, };
42
+ export type { BadgeAs, BadgeCloseProps, BadgeColor, BadgeIconVariant, BadgeProps, BadgeSize, BadgeType, BadgeVariant, };
File without changes
@@ -0,0 +1,44 @@
1
+ import { type PropState } from '../../runtime';
2
+ declare const BOX_AS_VALUES: readonly ["div", "section", "article", "aside", "header", "footer", "main", "nav", "form", "ul", "ol", "li", "span"];
3
+ declare const BOX_LAYOUTS: readonly ["block", "stack", "row", "cluster", "grid", "center"];
4
+ declare const BOX_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6"];
5
+ declare const BOX_COLUMNS: readonly ["none", "1", "2", "3", "4", "5", "6"];
6
+ declare const BOX_SURFACES: readonly ["none", "app", "subtle", "surface", "raised"];
7
+ declare const BOX_BORDERS: readonly ["none", "default"];
8
+ declare const BOX_RADII: readonly ["none", "sm", "md", "lg", "full"];
9
+ declare const BOX_SHADOWS: readonly ["none", "border", "sm", "md", "lg"];
10
+ declare const BOX_WIDTHS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
11
+ declare const BOX_HEIGHTS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
12
+ declare const BOX_ALIGNS: readonly ["start", "center", "end", "stretch"];
13
+ declare const BOX_JUSTIFIES: readonly ["start", "center", "end", "between"];
14
+ declare const boxSchema: {
15
+ as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "footer" | "form" | "header" | "li" | "main" | "nav" | "ol" | "section" | "span" | "ul">;
16
+ layout: import("../../runtime/codecs").OneOfCodec<"grid" | "center" | "stack" | "block" | "row" | "cluster">;
17
+ gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
18
+ columns: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
19
+ padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
20
+ surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "surface" | "app" | "raised">;
21
+ border: import("../../runtime/codecs").OneOfCodec<"default" | "none">;
22
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "sm" | "md" | "lg" | "full">;
23
+ shadow: import("../../runtime/codecs").OneOfCodec<"border" | "none" | "sm" | "md" | "lg">;
24
+ width: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "auto" | "xl" | "full" | "prose">;
25
+ height: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "auto" | "xl" | "full" | "prose">;
26
+ align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "stretch">;
27
+ justify: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "between">;
28
+ class: import("../../runtime/codecs").StringCodec;
29
+ };
30
+ type BoxAs = typeof BOX_AS_VALUES[number];
31
+ type BoxLayout = typeof BOX_LAYOUTS[number];
32
+ type BoxSpace = typeof BOX_SPACES[number];
33
+ type BoxColumns = typeof BOX_COLUMNS[number];
34
+ type BoxSurface = typeof BOX_SURFACES[number];
35
+ type BoxBorder = typeof BOX_BORDERS[number];
36
+ type BoxRadius = typeof BOX_RADII[number];
37
+ type BoxShadow = typeof BOX_SHADOWS[number];
38
+ type BoxWidth = typeof BOX_WIDTHS[number];
39
+ type BoxHeight = typeof BOX_HEIGHTS[number];
40
+ type BoxAlign = typeof BOX_ALIGNS[number];
41
+ type BoxJustify = typeof BOX_JUSTIFIES[number];
42
+ type BoxProps = PropState<typeof boxSchema>;
43
+ export { BOX_ALIGNS, BOX_AS_VALUES, BOX_BORDERS, BOX_COLUMNS, BOX_HEIGHTS, BOX_JUSTIFIES, BOX_LAYOUTS, BOX_RADII, BOX_SHADOWS, BOX_SPACES, BOX_SURFACES, BOX_WIDTHS, boxSchema, };
44
+ export type { BoxAlign, BoxAs, BoxBorder, BoxColumns, BoxHeight, BoxJustify, BoxLayout, BoxProps, BoxRadius, BoxShadow, BoxSpace, BoxSurface, BoxWidth, };
@@ -0,0 +1,2 @@
1
+ export { boxSchema } from './contract';
2
+ export type { BoxAlign, BoxAs, BoxBorder, BoxColumns, BoxHeight, BoxJustify, BoxLayout, BoxProps, BoxRadius, BoxShadow, BoxSpace, BoxSurface, BoxWidth, } from './contract';
@@ -0,0 +1,18 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { type ControlSize } from '../common';
3
+ declare const BRAND_DISPLAY_VALUES: readonly ["full", "logo", "text"];
4
+ declare const BRAND_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
5
+ declare const brandSchema: {
6
+ name: import("../../runtime/codecs").StringCodec;
7
+ logo: import("../../runtime/codecs").StringCodec;
8
+ alt: import("../../runtime/codecs").StringCodec;
9
+ href: import("../../runtime/codecs").StringCodec;
10
+ display: import("../../runtime/codecs").OneOfCodec<"text" | "full" | "logo">;
11
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
12
+ class: import("../../runtime/codecs").StringCodec;
13
+ };
14
+ type BrandDisplay = typeof BRAND_DISPLAY_VALUES[number];
15
+ type BrandSize = ControlSize;
16
+ type BrandProps = PropState<typeof brandSchema>;
17
+ export { BRAND_DISPLAY_VALUES, BRAND_SIZES, brandSchema, };
18
+ export type { BrandDisplay, BrandProps, BrandSize, };
File without changes
@@ -0,0 +1,34 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { BUTTON_TYPES, type Alignment, type CommonButtonType, type ControlSize, type IconVariant } from '../common';
3
+ declare const BUTTON_VARIANTS: readonly ["default", "outline", "subtle", "filled", "ghost", "link"];
4
+ declare const BUTTON_COLORS: readonly ["neutral", "accent", "success", "warning", "danger"];
5
+ declare const BUTTON_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
6
+ declare const BUTTON_ICON_VARIANTS: readonly ["outline", "solid", "mini", "micro"];
7
+ declare const BUTTON_ALIGNS: readonly ["start", "center", "end"];
8
+ declare const BUTTON_LOADING_MODES: readonly ["auto", "true", "false"];
9
+ declare const buttonSchema: {
10
+ variant: import("../../runtime/codecs").OneOfCodec<"outline" | "link" | "default" | "filled" | "subtle" | "ghost">;
11
+ color: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "success" | "warning" | "danger">;
12
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
13
+ type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
14
+ href: import("../../runtime/codecs").StringCodec;
15
+ disabled: import("../../runtime/codecs").BoolCodec;
16
+ loading: import("../../runtime/codecs").OneOfCodec<"true" | "false" | "auto">;
17
+ icon: import("../../runtime/codecs").StringCodec;
18
+ iconTrailing: import("../../runtime/codecs").StringCodec;
19
+ iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
20
+ square: import("../../runtime/codecs").BoolCodec;
21
+ align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
22
+ inset: import("../../runtime/codecs").StringCodec;
23
+ class: import("../../runtime/codecs").StringCodec;
24
+ };
25
+ type ButtonVariant = typeof BUTTON_VARIANTS[number];
26
+ type ButtonColor = typeof BUTTON_COLORS[number];
27
+ type ButtonSize = ControlSize;
28
+ type ButtonType = CommonButtonType;
29
+ type ButtonIconVariant = IconVariant;
30
+ type ButtonAlign = Alignment;
31
+ type ButtonLoadingMode = typeof BUTTON_LOADING_MODES[number];
32
+ type ButtonProps = PropState<typeof buttonSchema>;
33
+ export { BUTTON_ALIGNS, BUTTON_COLORS, BUTTON_ICON_VARIANTS, BUTTON_LOADING_MODES, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, buttonSchema, };
34
+ export type { ButtonAlign, ButtonColor, ButtonIconVariant, ButtonLoadingMode, ButtonProps, ButtonSize, ButtonType, ButtonVariant, };
@@ -0,0 +1,3 @@
1
+ declare const registerButton: () => void;
2
+ declare const unregisterButton: () => void;
3
+ export { registerButton, unregisterButton };
@@ -0,0 +1,56 @@
1
+ import { type PropState } from '../../runtime';
2
+ declare const CARD_AS_VALUES: readonly ["div", "section", "article", "aside"];
3
+ declare const CARD_VARIANTS: readonly ["surface", "outline", "none"];
4
+ declare const CARD_SIZES: readonly ["sm", "md"];
5
+ declare const CARD_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6"];
6
+ declare const CARD_TITLE_AS_VALUES: readonly ["h2", "h3", "h4", "div"];
7
+ declare const CARD_FOOTER_LAYOUTS: readonly ["row", "stack"];
8
+ declare const CARD_FOOTER_ALIGNS: readonly ["start", "end", "between", "stretch"];
9
+ declare const cardSchema: {
10
+ as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "section">;
11
+ href: import("../../runtime/codecs").StringCodec;
12
+ label: import("../../runtime/codecs").StringCodec;
13
+ interactive: import("../../runtime/codecs").BoolCodec;
14
+ variant: import("../../runtime/codecs").OneOfCodec<"outline" | "none" | "surface">;
15
+ size: import("../../runtime/codecs").OneOfCodec<"sm" | "md">;
16
+ padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
17
+ gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
18
+ class: import("../../runtime/codecs").StringCodec;
19
+ };
20
+ declare const cardHeaderSchema: {
21
+ class: import("../../runtime/codecs").StringCodec;
22
+ };
23
+ declare const cardTitleSchema: {
24
+ as: import("../../runtime/codecs").OneOfCodec<"div" | "h2" | "h3" | "h4">;
25
+ class: import("../../runtime/codecs").StringCodec;
26
+ };
27
+ declare const cardDescriptionSchema: {
28
+ class: import("../../runtime/codecs").StringCodec;
29
+ };
30
+ declare const cardActionSchema: {
31
+ class: import("../../runtime/codecs").StringCodec;
32
+ };
33
+ declare const cardContentSchema: {
34
+ class: import("../../runtime/codecs").StringCodec;
35
+ };
36
+ declare const cardFooterSchema: {
37
+ layout: import("../../runtime/codecs").OneOfCodec<"stack" | "row">;
38
+ align: import("../../runtime/codecs").OneOfCodec<"end" | "start" | "stretch" | "between">;
39
+ class: import("../../runtime/codecs").StringCodec;
40
+ };
41
+ type CardAs = typeof CARD_AS_VALUES[number];
42
+ type CardVariant = typeof CARD_VARIANTS[number];
43
+ type CardSize = typeof CARD_SIZES[number];
44
+ type CardSpace = typeof CARD_SPACES[number];
45
+ type CardTitleAs = typeof CARD_TITLE_AS_VALUES[number];
46
+ type CardFooterLayout = typeof CARD_FOOTER_LAYOUTS[number];
47
+ type CardFooterAlign = typeof CARD_FOOTER_ALIGNS[number];
48
+ type CardProps = PropState<typeof cardSchema>;
49
+ type CardHeaderProps = PropState<typeof cardHeaderSchema>;
50
+ type CardTitleProps = PropState<typeof cardTitleSchema>;
51
+ type CardDescriptionProps = PropState<typeof cardDescriptionSchema>;
52
+ type CardActionProps = PropState<typeof cardActionSchema>;
53
+ type CardContentProps = PropState<typeof cardContentSchema>;
54
+ type CardFooterProps = PropState<typeof cardFooterSchema>;
55
+ export { CARD_AS_VALUES, CARD_FOOTER_ALIGNS, CARD_FOOTER_LAYOUTS, CARD_SIZES, CARD_SPACES, CARD_TITLE_AS_VALUES, CARD_VARIANTS, cardActionSchema, cardContentSchema, cardDescriptionSchema, cardFooterSchema, cardHeaderSchema, cardSchema, cardTitleSchema, };
56
+ export type { CardActionProps, CardAs, CardContentProps, CardDescriptionProps, CardFooterAlign, CardFooterLayout, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSpace, CardTitleAs, CardTitleProps, CardVariant, };
File without changes
@@ -0,0 +1,85 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { type ControlSize, type DefaultVariant, type IndicatorPlacement, type Orientation } from '../common';
3
+ declare const CHECKBOX_GROUP_ORIENTATIONS: readonly ["vertical", "horizontal"];
4
+ declare const CHECKBOX_GROUP_VARIANTS: readonly ["default"];
5
+ declare const CHECKBOX_PLACEMENTS: readonly ["leading", "trailing", "center", "top-leading", "top-trailing", "bottom-leading", "bottom-trailing"];
6
+ declare const CHECKBOX_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
7
+ declare const CHECKBOX_VARIANTS: readonly ["default"];
8
+ type CheckboxGroupOrientation = Orientation;
9
+ type CheckboxGroupVariant = DefaultVariant;
10
+ type CheckboxPlacement = IndicatorPlacement;
11
+ type CheckboxSize = ControlSize;
12
+ type CheckboxVariant = DefaultVariant;
13
+ declare const checkboxControlSchema: {
14
+ value: import("../../runtime/codecs").StringCodec;
15
+ name: import("../../runtime/codecs").StringCodec;
16
+ label: import("../../runtime/codecs").StringCodec;
17
+ description: import("../../runtime/codecs").StringCodec;
18
+ checked: import("../../runtime/codecs").BoolCodec;
19
+ indeterminate: import("../../runtime/codecs").BoolCodec;
20
+ disabled: import("../../runtime/codecs").BoolCodec;
21
+ required: import("../../runtime/codecs").BoolCodec;
22
+ invalid: import("../../runtime/codecs").BoolCodec;
23
+ indicator: import("../../runtime/codecs").BoolCodec;
24
+ placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
25
+ icon: import("../../runtime/codecs").StringCodec;
26
+ variant: import("../../runtime/codecs").OneOfCodec<"default">;
27
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
28
+ inputClass: import("../../runtime/codecs").StringCodec;
29
+ indicatorClass: import("../../runtime/codecs").StringCodec;
30
+ indicatorIconClass: import("../../runtime/codecs").StringCodec;
31
+ iconClass: import("../../runtime/codecs").StringCodec;
32
+ contentClass: import("../../runtime/codecs").StringCodec;
33
+ labelClass: import("../../runtime/codecs").StringCodec;
34
+ descriptionClass: import("../../runtime/codecs").StringCodec;
35
+ class: import("../../runtime/codecs").StringCodec;
36
+ };
37
+ declare const checkboxSchema: {
38
+ label: import("../../runtime/codecs").StringCodec;
39
+ description: import("../../runtime/codecs").StringCodec;
40
+ descriptionTrailing: import("../../runtime/codecs").StringCodec;
41
+ error: import("../../runtime/codecs").StringCodec;
42
+ errors: import("../../runtime/codecs").StringCodec;
43
+ badge: import("../../runtime/codecs").StringCodec;
44
+ fieldClass: import("../../runtime/codecs").StringCodec;
45
+ value: import("../../runtime/codecs").StringCodec;
46
+ name: import("../../runtime/codecs").StringCodec;
47
+ checked: import("../../runtime/codecs").BoolCodec;
48
+ indeterminate: import("../../runtime/codecs").BoolCodec;
49
+ disabled: import("../../runtime/codecs").BoolCodec;
50
+ required: import("../../runtime/codecs").BoolCodec;
51
+ invalid: import("../../runtime/codecs").BoolCodec;
52
+ indicator: import("../../runtime/codecs").BoolCodec;
53
+ placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
54
+ icon: import("../../runtime/codecs").StringCodec;
55
+ variant: import("../../runtime/codecs").OneOfCodec<"default">;
56
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
57
+ inputClass: import("../../runtime/codecs").StringCodec;
58
+ indicatorClass: import("../../runtime/codecs").StringCodec;
59
+ indicatorIconClass: import("../../runtime/codecs").StringCodec;
60
+ iconClass: import("../../runtime/codecs").StringCodec;
61
+ contentClass: import("../../runtime/codecs").StringCodec;
62
+ labelClass: import("../../runtime/codecs").StringCodec;
63
+ descriptionClass: import("../../runtime/codecs").StringCodec;
64
+ class: import("../../runtime/codecs").StringCodec;
65
+ };
66
+ declare const checkboxGroupSchema: {
67
+ name: import("../../runtime/codecs").StringCodec;
68
+ orientation: import("../../runtime/codecs").OneOfCodec<"vertical" | "horizontal">;
69
+ variant: import("../../runtime/codecs").OneOfCodec<"default">;
70
+ indicator: import("../../runtime/codecs").BoolCodec;
71
+ placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
72
+ disabled: import("../../runtime/codecs").BoolCodec;
73
+ required: import("../../runtime/codecs").BoolCodec;
74
+ invalid: import("../../runtime/codecs").BoolCodec;
75
+ class: import("../../runtime/codecs").StringCodec;
76
+ };
77
+ declare const checkboxIndicatorSchema: {
78
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
79
+ class: import("../../runtime/codecs").StringCodec;
80
+ };
81
+ type CheckboxControlProps = PropState<typeof checkboxControlSchema>;
82
+ type CheckboxGroupProps = PropState<typeof checkboxGroupSchema>;
83
+ type CheckboxProps = PropState<typeof checkboxSchema>;
84
+ export { CHECKBOX_GROUP_ORIENTATIONS, CHECKBOX_GROUP_VARIANTS, CHECKBOX_PLACEMENTS, CHECKBOX_SIZES, CHECKBOX_VARIANTS, checkboxControlSchema, checkboxGroupSchema, checkboxIndicatorSchema, checkboxSchema, };
85
+ export type { CheckboxControlProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxGroupVariant, CheckboxPlacement, CheckboxProps, CheckboxSize, CheckboxVariant, };
@@ -0,0 +1,34 @@
1
+ import type Alpine from 'alpinejs';
2
+ import { type CleanupStack, type TrellisAlpineComponent } from '../../runtime';
3
+ import { type CheckboxControlProps, type CheckboxGroupProps } from './contract';
4
+ type CheckboxItem = {
5
+ root: HTMLElement;
6
+ input: HTMLInputElement;
7
+ indicator: HTMLElement | null;
8
+ checkedIcon: HTMLElement | null;
9
+ indeterminateIcon: HTMLElement | null;
10
+ name: string;
11
+ disabled: boolean;
12
+ required: boolean;
13
+ invalid: boolean;
14
+ };
15
+ type CheckboxData = {
16
+ props: CheckboxControlProps;
17
+ listeners: CleanupStack;
18
+ input(): HTMLInputElement;
19
+ item(): CheckboxItem;
20
+ sync(): void;
21
+ };
22
+ type CheckboxGroupData = {
23
+ props: CheckboxGroupProps;
24
+ listeners: CleanupStack;
25
+ observer: MutationObserver | null;
26
+ items(): CheckboxItem[];
27
+ sync(): void;
28
+ syncItem(item: CheckboxItem): void;
29
+ };
30
+ declare const UiCheckbox: () => TrellisAlpineComponent<CheckboxData>;
31
+ declare const UiCheckboxGroup: () => TrellisAlpineComponent<CheckboxGroupData>;
32
+ declare const registerCheckbox: (AlpineInstance: Alpine.Alpine) => void;
33
+ export { registerCheckbox, UiCheckbox, UiCheckboxGroup };
34
+ export type { CheckboxData, CheckboxGroupData, CheckboxItem };
@@ -0,0 +1,57 @@
1
+ import { type PropState } from '../../runtime';
2
+ import { type Alignment, type ControlSize, type ControlVariant, type IconVariant, type Position } from '../common';
3
+ declare const COMBOBOX_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
4
+ declare const COMBOBOX_VARIANTS: readonly ["outline", "filled"];
5
+ declare const COMBOBOX_SIDES: readonly ["bottom", "top", "left", "right"];
6
+ declare const COMBOBOX_ALIGNS: readonly ["start", "center", "end"];
7
+ declare const COMBOBOX_ICON_VARIANTS: readonly ["outline", "solid", "mini", "micro"];
8
+ type ComboboxSize = ControlSize;
9
+ type ComboboxVariant = ControlVariant;
10
+ type ComboboxSide = Position;
11
+ type ComboboxAlign = Alignment;
12
+ type ComboboxIconVariant = IconVariant;
13
+ declare const comboboxSchema: {
14
+ name: import("../../runtime/codecs").StringCodec;
15
+ value: import("../../runtime/codecs").StringCodec;
16
+ values: import("../../runtime/codecs").StringCodec;
17
+ placeholder: import("../../runtime/codecs").StringCodec;
18
+ multiple: import("../../runtime/codecs").BoolCodec;
19
+ open: import("../../runtime/codecs").BoolCodec;
20
+ disabled: import("../../runtime/codecs").BoolCodec;
21
+ readonly: import("../../runtime/codecs").BoolCodec;
22
+ required: import("../../runtime/codecs").BoolCodec;
23
+ invalid: import("../../runtime/codecs").BoolCodec;
24
+ clearable: import("../../runtime/codecs").BoolCodec;
25
+ autoHighlight: import("../../runtime/codecs").BoolCodec;
26
+ filter: import("../../runtime/codecs").BoolCodec;
27
+ path: import("../../runtime/codecs").StringCodec;
28
+ loop: import("../../runtime/codecs").BoolCodec;
29
+ size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
30
+ variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
31
+ side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
32
+ align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
33
+ offset: import("../../runtime/codecs").NumberCodec;
34
+ gap: import("../../runtime/codecs").NumberCodec;
35
+ icon: import("../../runtime/codecs").StringCodec;
36
+ iconTrailing: import("../../runtime/codecs").StringCodec;
37
+ iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
38
+ inputClass: import("../../runtime/codecs").StringCodec;
39
+ listboxClass: import("../../runtime/codecs").StringCodec;
40
+ chipClass: import("../../runtime/codecs").StringCodec;
41
+ class: import("../../runtime/codecs").StringCodec;
42
+ };
43
+ declare const comboboxOptionSchema: {
44
+ value: import("../../runtime/codecs").StringCodec;
45
+ disabled: import("../../runtime/codecs").BoolCodec;
46
+ selected: import("../../runtime/codecs").BoolCodec;
47
+ item: import("../../runtime/codecs").StringCodec;
48
+ icon: import("../../runtime/codecs").StringCodec;
49
+ iconTrailing: import("../../runtime/codecs").StringCodec;
50
+ iconVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "mini" | "micro">;
51
+ suffix: import("../../runtime/codecs").StringCodec;
52
+ class: import("../../runtime/codecs").StringCodec;
53
+ };
54
+ type ComboboxProps = PropState<typeof comboboxSchema>;
55
+ type ComboboxOptionProps = PropState<typeof comboboxOptionSchema>;
56
+ export { COMBOBOX_ALIGNS, COMBOBOX_ICON_VARIANTS, COMBOBOX_SIDES, COMBOBOX_SIZES, COMBOBOX_VARIANTS, comboboxOptionSchema, comboboxSchema, };
57
+ export type { ComboboxAlign, ComboboxIconVariant, ComboboxOptionProps, ComboboxSide, ComboboxProps, ComboboxSize, ComboboxVariant, };