@vireo-ai/trellis-ui 0.1.1 → 0.1.2

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 (46) hide show
  1. package/package.json +1 -1
  2. package/src/components/button/styles.css +47 -26
  3. package/src/components/date-picker/styles.css +23 -1
  4. package/src/components/file-upload/styles.css +28 -0
  5. package/src/components/radio/styles.css +33 -21
  6. package/src/components/select/styles.css +44 -3
  7. package/src/components.css +1 -2
  8. package/src/theme.css +332 -46
  9. package/trellis_ui/static/trellis_ui/css/styles.css +955 -214
  10. package/trellis_ui/static/trellis_ui/js/esm/index.js +1149 -910
  11. package/trellis_ui/static/trellis_ui/js/esm/index.js.map +1 -1
  12. package/trellis_ui/static/trellis_ui/js/index.js +7 -7
  13. package/types/components/app/contract.d.ts +7 -2
  14. package/types/components/badge/contract.d.ts +8 -6
  15. package/types/components/box/contract.d.ts +29 -21
  16. package/types/components/box/index.d.ts +1 -1
  17. package/types/components/button/contract.d.ts +10 -7
  18. package/types/components/card/contract.d.ts +25 -11
  19. package/types/components/combobox/contract.d.ts +6 -3
  20. package/types/components/common.d.ts +239 -2
  21. package/types/components/date-picker/contract.d.ts +7 -4
  22. package/types/components/file-upload/index.d.ts +1 -0
  23. package/types/components/frame/contract.d.ts +43 -18
  24. package/types/components/frame/index.d.ts +2 -2
  25. package/types/components/heading/contract.d.ts +3 -2
  26. package/types/components/input/contract.d.ts +7 -3
  27. package/types/components/menu/contract.d.ts +1 -1
  28. package/types/components/modal/contract.d.ts +12 -6
  29. package/types/components/select/contract.d.ts +10 -7
  30. package/types/components/sidebar/contract.d.ts +1 -1
  31. package/types/components/table/contract.d.ts +1 -1
  32. package/types/components/tabs/index.d.ts +1 -0
  33. package/types/components/text/contract.d.ts +3 -2
  34. package/types/components/textarea/contract.d.ts +1 -0
  35. package/types/components/toast/contract.d.ts +11 -5
  36. package/types/components/toast/index.d.ts +2 -1
  37. package/types/index.d.ts +4 -4
  38. package/types/motion/animate.d.ts +4 -0
  39. package/types/motion/presence.d.ts +1 -1
  40. package/types/runtime/index.d.ts +4 -4
  41. package/types/runtime/manifest.d.ts +5 -1
  42. package/types/runtime/merge-bindings.d.ts +9 -0
  43. package/types/runtime/theme.d.ts +8 -3
  44. package/src/components/image/styles.css +0 -10
  45. package/src/components/theme/styles.css +0 -13
  46. package/types/runtime/props.d.ts +0 -9
@@ -1,14 +1,16 @@
1
1
  import { type PropState } from '../../runtime';
2
+ import { type ComponentRadius, type Elevation, type LayoutSpace, type Surface, type SurfaceTone } from '../common';
2
3
  declare const FRAME_AS_VALUES: readonly ["div", "section", "article", "aside", "main", "nav", "form"];
3
4
  declare const FRAME_REGION_AS_VALUES: readonly ["div", "header", "footer", "section", "nav", "form"];
4
5
  declare const FRAME_BODY_AS_VALUES: readonly ["div", "section", "main", "form"];
5
6
  declare const FRAME_LAYOUTS: readonly ["regions", "stack"];
6
7
  declare const FRAME_REGION_LAYOUTS: readonly ["block", "row", "stack", "cluster"];
7
- declare const FRAME_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6"];
8
- declare const FRAME_SURFACES: readonly ["none", "app", "subtle", "surface", "raised"];
8
+ declare const FRAME_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
9
+ declare const FRAME_SURFACES: readonly ["none", "app", "chrome", "subtle", "panel", "raised", "overlay", "accent", "inverse"];
10
+ declare const FRAME_TONES: readonly ["solid", "alpha"];
9
11
  declare const FRAME_BORDERS: readonly ["none", "default"];
10
- declare const FRAME_RADII: readonly ["none", "sm", "md", "lg"];
11
- declare const FRAME_SHADOWS: readonly ["none", "border", "sm", "md", "lg"];
12
+ declare const FRAME_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
13
+ declare const FRAME_ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
12
14
  declare const FRAME_WIDTHS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
13
15
  declare const FRAME_HEIGHTS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
14
16
  declare const FRAME_ALIGNS: readonly ["start", "center", "end", "stretch"];
@@ -16,18 +18,35 @@ declare const FRAME_JUSTIFIES: readonly ["start", "center", "end", "between"];
16
18
  declare const frameSchema: {
17
19
  as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "form" | "main" | "nav" | "section">;
18
20
  layout: import("../../runtime/codecs").OneOfCodec<"stack" | "regions">;
19
- gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
20
- surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "surface" | "app" | "raised">;
21
+ gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
22
+ gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
23
+ gapY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
24
+ padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
25
+ paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
26
+ paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
27
+ margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
28
+ marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
29
+ marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
30
+ surface: import("../../runtime/codecs").OneOfCodec<"none" | "subtle" | "accent" | "app" | "chrome" | "panel" | "raised" | "overlay" | "inverse">;
31
+ tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
21
32
  border: import("../../runtime/codecs").OneOfCodec<"default" | "none">;
22
- radius: import("../../runtime/codecs").OneOfCodec<"none" | "sm" | "md" | "lg">;
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">;
33
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
34
+ elevation: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
35
+ width: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
36
+ height: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
26
37
  class: import("../../runtime/codecs").StringCodec;
27
38
  };
28
39
  declare const frameRegionSchema: {
29
40
  as: import("../../runtime/codecs").OneOfCodec<"div" | "footer" | "form" | "header" | "nav" | "section">;
30
- padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
41
+ padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
42
+ paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
43
+ paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
44
+ gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
45
+ gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
46
+ gapY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
47
+ margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
48
+ marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
49
+ marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
31
50
  layout: import("../../runtime/codecs").OneOfCodec<"stack" | "block" | "row" | "cluster">;
32
51
  align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "stretch">;
33
52
  justify: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start" | "between">;
@@ -35,7 +54,12 @@ declare const frameRegionSchema: {
35
54
  };
36
55
  declare const frameBodySchema: {
37
56
  as: import("../../runtime/codecs").OneOfCodec<"div" | "form" | "main" | "section">;
38
- padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6">;
57
+ padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
58
+ paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
59
+ paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
60
+ margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
61
+ marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
62
+ marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
39
63
  scroll: import("../../runtime/codecs").BoolCodec;
40
64
  class: import("../../runtime/codecs").StringCodec;
41
65
  };
@@ -44,11 +68,12 @@ type FrameRegionAs = typeof FRAME_REGION_AS_VALUES[number];
44
68
  type FrameBodyAs = typeof FRAME_BODY_AS_VALUES[number];
45
69
  type FrameLayout = typeof FRAME_LAYOUTS[number];
46
70
  type FrameRegionLayout = typeof FRAME_REGION_LAYOUTS[number];
47
- type FrameSpace = typeof FRAME_SPACES[number];
48
- type FrameSurface = typeof FRAME_SURFACES[number];
71
+ type FrameSpace = LayoutSpace;
72
+ type FrameSurface = Surface;
73
+ type FrameTone = SurfaceTone;
49
74
  type FrameBorder = typeof FRAME_BORDERS[number];
50
- type FrameRadius = typeof FRAME_RADII[number];
51
- type FrameShadow = typeof FRAME_SHADOWS[number];
75
+ type FrameRadius = ComponentRadius;
76
+ type FrameElevation = Elevation;
52
77
  type FrameWidth = typeof FRAME_WIDTHS[number];
53
78
  type FrameHeight = typeof FRAME_HEIGHTS[number];
54
79
  type FrameAlign = typeof FRAME_ALIGNS[number];
@@ -56,5 +81,5 @@ type FrameJustify = typeof FRAME_JUSTIFIES[number];
56
81
  type FrameProps = PropState<typeof frameSchema>;
57
82
  type FrameRegionProps = PropState<typeof frameRegionSchema>;
58
83
  type FrameBodyProps = PropState<typeof frameBodySchema>;
59
- export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, FRAME_BORDERS, FRAME_HEIGHTS, FRAME_JUSTIFIES, FRAME_LAYOUTS, FRAME_RADII, FRAME_REGION_AS_VALUES, FRAME_REGION_LAYOUTS, FRAME_SHADOWS, FRAME_SPACES, FRAME_SURFACES, FRAME_WIDTHS, frameBodySchema, frameRegionSchema, frameSchema, };
60
- export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps, FrameBorder, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameShadow, FrameSpace, FrameSurface, FrameWidth, };
84
+ export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, FRAME_BORDERS, FRAME_ELEVATIONS, FRAME_HEIGHTS, FRAME_JUSTIFIES, FRAME_LAYOUTS, FRAME_RADII, FRAME_REGION_AS_VALUES, FRAME_REGION_LAYOUTS, FRAME_SPACES, FRAME_SURFACES, FRAME_TONES, FRAME_WIDTHS, frameBodySchema, frameRegionSchema, frameSchema, };
85
+ export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps, FrameBorder, FrameElevation, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameSpace, FrameSurface, FrameTone, FrameWidth, };
@@ -1,2 +1,2 @@
1
- export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, FRAME_BORDERS, FRAME_HEIGHTS, FRAME_JUSTIFIES, FRAME_LAYOUTS, FRAME_RADII, FRAME_REGION_AS_VALUES, FRAME_REGION_LAYOUTS, FRAME_SHADOWS, FRAME_SPACES, FRAME_SURFACES, FRAME_WIDTHS, frameBodySchema, frameRegionSchema, frameSchema, } from './contract';
2
- export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps, FrameBorder, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameShadow, FrameSpace, FrameSurface, FrameWidth, } from './contract';
1
+ export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, FRAME_BORDERS, FRAME_ELEVATIONS, FRAME_HEIGHTS, FRAME_JUSTIFIES, FRAME_LAYOUTS, FRAME_RADII, FRAME_REGION_AS_VALUES, FRAME_REGION_LAYOUTS, FRAME_SPACES, FRAME_SURFACES, FRAME_WIDTHS, frameBodySchema, frameRegionSchema, frameSchema, } from './contract';
2
+ export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps, FrameBorder, FrameElevation, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameSpace, FrameSurface, FrameWidth, } from './contract';
@@ -1,8 +1,9 @@
1
+ import { type TypographyColor } from '../common';
1
2
  declare const HEADING_AS_VALUES: readonly ["div", "h1", "h2", "h3", "h4", "h5", "h6"];
2
3
  declare const HEADING_SIZE_VALUES: readonly ["base", "lg", "xl"];
3
- declare const HEADING_COLOR_VALUES: readonly ["default", "muted", "accent", "inherit"];
4
+ declare const HEADING_COLOR_VALUES: readonly ["inherit", "muted", "subtle", "accent", "danger"];
4
5
  type HeadingAs = typeof HEADING_AS_VALUES[number];
5
6
  type HeadingSize = typeof HEADING_SIZE_VALUES[number];
6
- type HeadingColor = typeof HEADING_COLOR_VALUES[number];
7
+ type HeadingColor = TypographyColor;
7
8
  export { HEADING_AS_VALUES, HEADING_COLOR_VALUES, HEADING_SIZE_VALUES, };
8
9
  export type { HeadingAs, HeadingColor, HeadingSize };
@@ -1,10 +1,12 @@
1
1
  import { type PropState } from '../../runtime';
2
- import { type ControlSize, type ControlVariant, type IconVariant } from '../common';
2
+ import { type ComponentRadius, type ControlSize, type ControlVariant, type IconVariant } from '../common';
3
3
  declare const INPUT_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
4
4
  declare const INPUT_VARIANTS: readonly ["outline", "filled"];
5
+ declare const INPUT_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
5
6
  declare const INPUT_ICON_VARIANTS: readonly ["outline", "solid", "mini", "micro"];
6
7
  type InputSize = ControlSize;
7
8
  type InputVariant = ControlVariant;
9
+ type InputRadius = ComponentRadius;
8
10
  type InputIconVariant = IconVariant;
9
11
  declare const inputSchema: {
10
12
  type: import("../../runtime/codecs").StringCodec;
@@ -13,6 +15,7 @@ declare const inputSchema: {
13
15
  placeholder: import("../../runtime/codecs").StringCodec;
14
16
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
15
17
  variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
18
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
16
19
  disabled: import("../../runtime/codecs").BoolCodec;
17
20
  readonly: import("../../runtime/codecs").BoolCodec;
18
21
  required: import("../../runtime/codecs").BoolCodec;
@@ -32,6 +35,7 @@ declare const inputSchema: {
32
35
  declare const inputGroupSchema: {
33
36
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
34
37
  variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
38
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
35
39
  label: import("../../runtime/codecs").StringCodec;
36
40
  description: import("../../runtime/codecs").StringCodec;
37
41
  descriptionTrailing: import("../../runtime/codecs").StringCodec;
@@ -45,5 +49,5 @@ declare const inputAffixSchema: {
45
49
  class: import("../../runtime/codecs").StringCodec;
46
50
  };
47
51
  type InputProps = PropState<typeof inputSchema>;
48
- export { INPUT_ICON_VARIANTS, INPUT_SIZES, INPUT_VARIANTS, inputAffixSchema, inputGroupSchema, inputSchema };
49
- export type { InputIconVariant, InputProps, InputSize, InputVariant };
52
+ export { INPUT_ICON_VARIANTS, INPUT_RADII, INPUT_SIZES, INPUT_VARIANTS, inputAffixSchema, inputGroupSchema, inputSchema };
53
+ export type { InputIconVariant, InputProps, InputRadius, InputSize, InputVariant };
@@ -12,7 +12,7 @@ declare const menuSchema: {
12
12
  declare const menuItemSchema: {
13
13
  as: import("../../runtime/codecs").OneOfCodec<"button" | "a">;
14
14
  variant: import("../../runtime/codecs").OneOfCodec<"default" | "filled" | "subtle" | "ghost">;
15
- color: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "success" | "warning" | "danger">;
15
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
16
16
  type: import("../../runtime/codecs").OneOfCodec<"reset" | "submit" | "button">;
17
17
  disabled: import("../../runtime/codecs").BoolCodec;
18
18
  keepOpen: import("../../runtime/codecs").BoolCodec;
@@ -1,19 +1,25 @@
1
1
  import { type PropState } from '../../runtime';
2
- import { type EdgePosition, type HeadingLevel } from '../common';
3
- declare const MODAL_MODES: readonly ["modal", "sheet", "drawer", "flyout", "floating"];
2
+ import { type EdgePosition, type HeadingLevel, type SurfaceTone } from '../common';
3
+ declare const MODAL_MODES: readonly ["modal", "sheet"];
4
4
  declare const MODAL_SIDES: readonly ["top", "right", "bottom", "left"];
5
5
  declare const MODAL_SIZES: readonly ["sm", "md", "lg", "xl", "full"];
6
+ declare const MODAL_SURFACES: readonly ["overlay", "panel", "inverse"];
7
+ declare const MODAL_TONES: readonly ["solid", "alpha"];
6
8
  declare const MODAL_TITLE_AS_VALUES: readonly ["h1", "h2", "h3", "h4", "h5", "h6"];
7
9
  type ModalMode = typeof MODAL_MODES[number];
8
10
  type ModalSide = EdgePosition;
9
11
  type ModalSize = typeof MODAL_SIZES[number];
12
+ type ModalSurface = typeof MODAL_SURFACES[number];
13
+ type ModalTone = SurfaceTone;
10
14
  type ModalTitleAs = HeadingLevel;
11
15
  declare const modalSchema: {
12
16
  name: import("../../runtime/codecs").StringCodec;
13
17
  open: import("../../runtime/codecs").BoolCodec;
14
- mode: import("../../runtime/codecs").OneOfCodec<"modal" | "floating" | "sheet" | "drawer" | "flyout">;
18
+ mode: import("../../runtime/codecs").OneOfCodec<"modal" | "sheet">;
15
19
  side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
16
- size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "xl" | "full">;
20
+ size: import("../../runtime/codecs").OneOfCodec<"sm" | "md" | "lg" | "full" | "xl">;
21
+ surface: import("../../runtime/codecs").OneOfCodec<"panel" | "overlay" | "inverse">;
22
+ tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
17
23
  dismissible: import("../../runtime/codecs").BoolCodec;
18
24
  closable: import("../../runtime/codecs").BoolCodec;
19
25
  disabled: import("../../runtime/codecs").BoolCodec;
@@ -52,5 +58,5 @@ declare const modalCloseSchema: {
52
58
  };
53
59
  type ModalProps = PropState<typeof modalSchema>;
54
60
  type ModalTriggerProps = PropState<typeof modalTriggerSchema>;
55
- export { MODAL_SIDES, MODAL_SIZES, MODAL_TITLE_AS_VALUES, MODAL_MODES, modalBodySchema, modalCloseSchema, modalDescriptionSchema, modalFooterSchema, modalOutletSchema, modalSchema, modalTitleSchema, modalTriggerSchema, };
56
- export type { ModalSide, ModalProps, ModalSize, ModalTitleAs, ModalTriggerProps, ModalMode, };
61
+ export { MODAL_SIDES, MODAL_SIZES, MODAL_SURFACES, MODAL_TONES, MODAL_TITLE_AS_VALUES, MODAL_MODES, modalBodySchema, modalCloseSchema, modalDescriptionSchema, modalFooterSchema, modalOutletSchema, modalSchema, modalTitleSchema, modalTriggerSchema, };
62
+ export type { ModalSide, ModalProps, ModalSize, ModalSurface, ModalTone, ModalTitleAs, ModalTriggerProps, ModalMode, };
@@ -1,17 +1,19 @@
1
1
  import { type PropState } from '../../runtime';
2
- import { type Alignment, type ControlSize, type ControlVariant, type IconVariant, type Position } from '../common';
2
+ import { type Alignment, type ComponentRadius, type ControlSize, type ControlVariant, type IconVariant, type Position } from '../common';
3
3
  import { BADGE_COLORS, BADGE_VARIANTS, type BadgeColor, type BadgeVariant } from '../badge/contract';
4
4
  declare const SELECT_MODES: readonly ["listbox", "combobox", "pillbox", "native"];
5
5
  declare const SELECT_VARIANTS: readonly ["outline", "filled"];
6
6
  declare const SELECT_SIZES: readonly ["xs", "sm", "md", "lg", "xlg"];
7
+ declare const SELECT_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
7
8
  declare const SELECT_SIDES: readonly ["bottom", "top", "left", "right"];
8
9
  declare const SELECT_ALIGNS: readonly ["start", "center", "end"];
9
10
  declare const SELECT_ICON_VARIANTS: readonly ["outline", "solid", "mini", "micro"];
10
11
  declare const SELECT_CLEARS: readonly ["stay", "close"];
11
- declare const SELECT_MARKS: readonly ["check", "checkbox"];
12
+ declare const SELECT_MARKS: readonly ["check", "checkbox", "none"];
12
13
  type SelectMode = typeof SELECT_MODES[number];
13
14
  type SelectVariant = ControlVariant;
14
15
  type SelectSize = ControlSize;
16
+ type SelectRadius = ComponentRadius;
15
17
  type SelectSide = Position;
16
18
  type SelectAlign = Alignment;
17
19
  type SelectIconVariant = IconVariant;
@@ -31,7 +33,7 @@ declare const selectSchema: {
31
33
  clearable: import("../../runtime/codecs").BoolCodec;
32
34
  clear: import("../../runtime/codecs").OneOfCodec<"close" | "stay">;
33
35
  suffix: import("../../runtime/codecs").StringCodec;
34
- mark: import("../../runtime/codecs").OneOfCodec<"checkbox" | "check">;
36
+ mark: import("../../runtime/codecs").OneOfCodec<"none" | "checkbox" | "check">;
35
37
  open: import("../../runtime/codecs").BoolCodec;
36
38
  disabled: import("../../runtime/codecs").BoolCodec;
37
39
  readonly: import("../../runtime/codecs").BoolCodec;
@@ -42,6 +44,7 @@ declare const selectSchema: {
42
44
  path: import("../../runtime/codecs").StringCodec;
43
45
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
44
46
  variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
47
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
45
48
  side: import("../../runtime/codecs").OneOfCodec<"bottom" | "left" | "right" | "top">;
46
49
  align: import("../../runtime/codecs").OneOfCodec<"end" | "center" | "start">;
47
50
  offset: import("../../runtime/codecs").NumberCodec;
@@ -57,8 +60,8 @@ declare const selectSchema: {
57
60
  searchClass: import("../../runtime/codecs").StringCodec;
58
61
  listboxClass: import("../../runtime/codecs").StringCodec;
59
62
  optionClass: import("../../runtime/codecs").StringCodec;
60
- chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "surface" | "soft">;
61
- chipColor: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent" | "success" | "warning" | "danger">;
63
+ chipVariant: import("../../runtime/codecs").OneOfCodec<"outline" | "solid" | "soft" | "surface">;
64
+ chipColor: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning">;
62
65
  chipClass: import("../../runtime/codecs").StringCodec;
63
66
  class: import("../../runtime/codecs").StringCodec;
64
67
  };
@@ -86,5 +89,5 @@ declare const selectCreateOptionSchema: {
86
89
  type SelectProps = PropState<typeof selectSchema>;
87
90
  type SelectOptionProps = PropState<typeof selectOptionSchema>;
88
91
  type SelectCreateOptionProps = PropState<typeof selectCreateOptionSchema>;
89
- export { SELECT_ALIGNS, SELECT_CLEARS, BADGE_COLORS as SELECT_CHIP_COLORS, BADGE_VARIANTS as SELECT_CHIP_VARIANTS, SELECT_ICON_VARIANTS, SELECT_MARKS, SELECT_MODES, SELECT_SIDES, SELECT_SIZES, SELECT_VARIANTS, selectCreateOptionSchema, selectOptionSchema, selectSchema, };
90
- export type { SelectAlign, SelectClear, SelectChipColor, SelectChipVariant, SelectCreateOptionProps, SelectIconVariant, SelectMark, SelectOptionProps, SelectSide, SelectProps, SelectSize, SelectMode, SelectVariant, };
92
+ export { SELECT_ALIGNS, SELECT_CLEARS, BADGE_COLORS as SELECT_CHIP_COLORS, BADGE_VARIANTS as SELECT_CHIP_VARIANTS, SELECT_ICON_VARIANTS, SELECT_MARKS, SELECT_MODES, SELECT_RADII, SELECT_SIDES, SELECT_SIZES, SELECT_VARIANTS, selectCreateOptionSchema, selectOptionSchema, selectSchema, };
93
+ export type { SelectAlign, SelectClear, SelectChipColor, SelectChipVariant, SelectCreateOptionProps, SelectIconVariant, SelectMark, SelectOptionProps, SelectSide, SelectProps, SelectRadius, SelectSize, SelectMode, SelectVariant, };
@@ -25,7 +25,7 @@ declare const sidebarSchema: {
25
25
  declare const sidebarItemSchema: {
26
26
  as: import("../../runtime/codecs").OneOfCodec<"button" | "a">;
27
27
  variant: import("../../runtime/codecs").OneOfCodec<"ghost" | "surface">;
28
- color: import("../../runtime/codecs").OneOfCodec<"neutral" | "accent">;
28
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "neutral">;
29
29
  href: import("../../runtime/codecs").StringCodec;
30
30
  current: import("../../runtime/codecs").BoolCodec;
31
31
  disabled: import("../../runtime/codecs").BoolCodec;
@@ -19,7 +19,7 @@ declare const tableSchema: {
19
19
  hover: import("../../runtime/codecs").BoolCodec;
20
20
  stickyHeader: import("../../runtime/codecs").BoolCodec;
21
21
  nowrap: import("../../runtime/codecs").BoolCodec;
22
- width: import("../../runtime/codecs").OneOfCodec<"auto" | "full">;
22
+ width: import("../../runtime/codecs").OneOfCodec<"full" | "auto">;
23
23
  class: import("../../runtime/codecs").StringCodec;
24
24
  tableClass: import("../../runtime/codecs").StringCodec;
25
25
  };
@@ -22,6 +22,7 @@ type TabsData = {
22
22
  cleanup: Array<() => void>;
23
23
  root: BindingObject;
24
24
  owner(): string;
25
+ ownsElement(element: Element): boolean;
25
26
  lists(): HTMLElement[];
26
27
  primaryList(): HTMLElement | null;
27
28
  listVariant(): TabsVariant;
@@ -1,10 +1,11 @@
1
+ import { type TypographyColor } from '../common';
1
2
  declare const TEXT_AS_VALUES: readonly ["span", "p", "div", "label", "kbd", "code", "strong"];
2
3
  declare const TEXT_SIZE_VALUES: readonly ["xs", "sm", "base", "lg", "xl", "2xl"];
3
4
  declare const TEXT_WEIGHT_VALUES: readonly ["normal", "medium", "semibold", "bold"];
4
- declare const TEXT_COLOR_VALUES: readonly ["default", "muted", "subtle", "danger", "inherit"];
5
+ declare const TEXT_COLOR_VALUES: readonly ["inherit", "muted", "subtle", "accent", "danger"];
5
6
  type TextAs = typeof TEXT_AS_VALUES[number];
6
7
  type TextSize = typeof TEXT_SIZE_VALUES[number];
7
8
  type TextWeight = typeof TEXT_WEIGHT_VALUES[number];
8
- type TextColor = typeof TEXT_COLOR_VALUES[number];
9
+ type TextColor = TypographyColor;
9
10
  export { TEXT_AS_VALUES, TEXT_COLOR_VALUES, TEXT_SIZE_VALUES, TEXT_WEIGHT_VALUES, };
10
11
  export type { TextAs, TextColor, TextSize, TextWeight };
@@ -7,6 +7,7 @@ declare const textareaSchema: {
7
7
  placeholder: import("../../runtime/codecs").StringCodec;
8
8
  size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
9
9
  variant: import("../../runtime/codecs").OneOfCodec<"outline" | "filled">;
10
+ radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
10
11
  rows: import("../../runtime/codecs").NumberCodec;
11
12
  resize: import("../../runtime/codecs").OneOfCodec<"none" | "vertical" | "horizontal" | "both">;
12
13
  disabled: import("../../runtime/codecs").BoolCodec;
@@ -1,11 +1,15 @@
1
1
  import { type PropState } from '../../runtime';
2
2
  declare const TOAST_LEVELS: readonly ["info", "success", "warning", "danger", "debug"];
3
- declare const TOAST_VARIANTS: readonly ["default", "info", "success", "warning", "danger", "debug"];
3
+ declare const TOAST_COLORS: readonly ["auto", "neutral", "accent", "success", "warning", "danger"];
4
+ declare const TOAST_RESOLVED_COLORS: readonly ["neutral", "accent", "success", "warning", "danger"];
5
+ declare const TOAST_VARIANTS: readonly ["default", "soft", "surface", "solid", "outline"];
4
6
  declare const TOAST_POSITIONS: readonly ["top-right", "top-left", "top-center", "bottom-right", "bottom-left", "bottom-center"];
5
7
  declare const toastSchema: {
6
- level: import("../../runtime/codecs").OneOfCodec<"success" | "warning" | "danger" | "info" | "debug">;
7
- variant: import("../../runtime/codecs").OneOfCodec<"default" | "success" | "warning" | "danger" | "info" | "debug">;
8
+ level: import("../../runtime/codecs").OneOfCodec<"danger" | "success" | "warning" | "info" | "debug">;
9
+ color: import("../../runtime/codecs").OneOfCodec<"accent" | "danger" | "neutral" | "success" | "warning" | "auto">;
10
+ variant: import("../../runtime/codecs").OneOfCodec<"outline" | "default" | "solid" | "soft" | "surface">;
8
11
  title: import("../../runtime/codecs").StringCodec;
12
+ description: import("../../runtime/codecs").StringCodec;
9
13
  duration: import("../../runtime/codecs").NumberCodec;
10
14
  dismissible: import("../../runtime/codecs").BoolCodec;
11
15
  class: import("../../runtime/codecs").StringCodec;
@@ -20,9 +24,11 @@ declare const toastOutletSchema: {
20
24
  class: import("../../runtime/codecs").StringCodec;
21
25
  };
22
26
  type ToastLevel = typeof TOAST_LEVELS[number];
27
+ type ToastColor = typeof TOAST_COLORS[number];
28
+ type ToastResolvedColor = typeof TOAST_RESOLVED_COLORS[number];
23
29
  type ToastVariant = typeof TOAST_VARIANTS[number];
24
30
  type ToastPosition = typeof TOAST_POSITIONS[number];
25
31
  type ToastProps = PropState<typeof toastSchema>;
26
32
  type ToastOutletProps = PropState<typeof toastOutletSchema>;
27
- export { TOAST_LEVELS, TOAST_POSITIONS, TOAST_VARIANTS, toastOutletSchema, toastSchema };
28
- export type { ToastLevel, ToastOutletProps, ToastPosition, ToastProps, ToastVariant };
33
+ export { TOAST_COLORS, TOAST_LEVELS, TOAST_POSITIONS, TOAST_RESOLVED_COLORS, TOAST_VARIANTS, toastOutletSchema, toastSchema };
34
+ export type { ToastColor, ToastLevel, ToastOutletProps, ToastPosition, ToastProps, ToastResolvedColor, ToastVariant };
@@ -2,8 +2,9 @@ import type Alpine from 'alpinejs';
2
2
  import { type CleanupStack, type TrellisAlpineComponent } from '../../runtime';
3
3
  import { type ToastOutletProps, type ToastProps } from './contract';
4
4
  type ToastDetail = {
5
- message?: unknown;
5
+ description?: unknown;
6
6
  title?: unknown;
7
+ color?: unknown;
7
8
  level?: unknown;
8
9
  variant?: unknown;
9
10
  duration?: unknown;
package/types/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Alpine as AlpineType } from 'alpinejs';
2
2
  import { motion } from './motion';
3
- import { bool, className, create, createResizable, cx, defineManifest, defineProps, defineStyles, json, number, oneOf, props, propsFromSchema, resolveStyle, string } from './runtime';
3
+ import { bool, className, create, createResizable, cx, defineManifest, defineProps, defineStyles, json, mergeBindings, number, oneOf, propsFromSchema, resolveStyle, string } from './runtime';
4
4
  type TrellisUIPlugin = (AlpineInstance: AlpineType) => void;
5
5
  declare const ui: {
6
6
  readonly bool: import("./runtime/codecs").BoolCodec;
@@ -12,6 +12,7 @@ declare const ui: {
12
12
  readonly defineProps: <T extends Record<string, import("./runtime").CodecFn<unknown>>>({ el, schema, }: import("./runtime/codecs").DefinePropsOptions<T>) => import("./runtime").PropState<T>;
13
13
  readonly defineStyles: <const T extends import("./runtime").StyleDefinition>({ definition }: import("./runtime").DefineStylesOptions<T>) => Readonly<T>;
14
14
  readonly json: import("./runtime/codecs").JsonCodecFactory;
15
+ readonly mergeBindings: ({ inputs }: import("./runtime").MergeBindingsOptions) => import("./runtime").BindingObject;
15
16
  readonly motion: {
16
17
  readonly createAnimator: <T extends string | number>(value: import("motion").MotionValue<T> | T, defaultOptions?: import("motion").ValueAnimationTransition<T>) => import("./motion").Animator<T>;
17
18
  readonly parallel: (...handles: import("./motion").MotionHandle[]) => import("./motion").MotionHandle;
@@ -31,7 +32,6 @@ declare const ui: {
31
32
  };
32
33
  readonly number: import("./runtime/codecs").NumberCodec;
33
34
  readonly oneOf: <T extends string>(allowed: readonly T[], fallback: T) => import("./runtime/codecs").OneOfCodec<T>;
34
- readonly props: ({ inputs }: import("./runtime").PropsOptions) => import("./runtime").BindingObject;
35
35
  readonly propsFromSchema: <const T extends Record<string, import("./runtime").CodecFn<unknown>>>({ schema, details, }: import("./runtime").PropsFromSchemaOptions<T>) => Record<string, import("./runtime").ManifestProp>;
36
36
  readonly resolveStyle: ({ part, props, className: override, }: import("./runtime").ResolveStyleOptions) => string;
37
37
  readonly string: import("./runtime/codecs").StringCodec;
@@ -41,6 +41,6 @@ export { trellisUi, ui };
41
41
  export default trellisUi;
42
42
  export type { TrellisUIPlugin };
43
43
  export { motion };
44
- export { bool, className, create, createResizable, cx, defineManifest, defineProps, defineStyles, json, number, oneOf, props, propsFromSchema, resolveStyle, string, };
45
- export type { ClassArray, ClassDictionary, ClassNameOptions, ClassValue, CodecFn, ComponentManifest, CreateOptions, DefineManifestOptions, DefineStylesOptions, ManifestPart, ManifestProp, ManifestPropDetails, ManifestToken, PropInput, PropState, PropsFromSchemaOptions, PropsOptions, ResizableOptions, ResizeAxis, ResizeEvent, ResizeMode, ResizePhase, ResolveStyleOptions, SchemaPropDetails, SchemaToProps, StyleDefinition, StylePart, StyleProps, StyleTree, TrellisAlpineComponent, } from './runtime';
44
+ export { bool, className, create, createResizable, cx, defineManifest, defineProps, defineStyles, json, mergeBindings, number, oneOf, propsFromSchema, resolveStyle, string, };
45
+ export type { ClassArray, ClassDictionary, ClassNameOptions, ClassValue, CodecFn, ComponentManifest, CreateOptions, DefineManifestOptions, DefineStylesOptions, ManifestPart, ManifestProp, ManifestPropDetails, ManifestToken, BindingInput, PropState, PropsFromSchemaOptions, MergeBindingsOptions, ResizableOptions, ResizeAxis, ResizeEvent, ResizeMode, ResizePhase, ResolveStyleOptions, SchemaPropDetails, SchemaToProps, StyleDefinition, StylePart, StyleProps, StyleTree, TrellisAlpineComponent, } from './runtime';
46
46
  export type { AnimateStreamPatchOptions, AnimateViewOptions, Animator, MotionHandle, MotionPreference, MotionTarget, PresenceDefinition, PresenceLifecycle, PresenceLifecycleCallbacks, PresenceLifecycleOptions, PresenceOptions, PresencePhase, PresencePreset, ResolvedViewTarget, TransformComposer, TransformContext, ViewPreset, ViewScope, } from './motion';
@@ -44,6 +44,10 @@ declare const presenceOptions: {
44
44
  duration: 0.24;
45
45
  ease: readonly [0.23, 1, 0.32, 1];
46
46
  };
47
+ sheet: {
48
+ duration: 0.24;
49
+ ease: readonly [0.23, 1, 0.32, 1];
50
+ };
47
51
  };
48
52
  export { bindStyle, bindTransform, createAnimator, motionDurations, motionEasings, noopHandle, parallel, presenceOptions, sequential, toMotionHandle, };
49
53
  export type { Animator, MotionHandle, TransformComposer, TransformContext };
@@ -2,7 +2,7 @@ import { type AnimationOptions, type DOMKeyframesDefinition } from 'motion';
2
2
  import { type MotionHandle } from './animate';
3
3
  import { type MotionPreference } from './reduced-motion';
4
4
  type PresencePhase = 'enter' | 'exit';
5
- type PresencePreset = 'popover' | 'menu' | 'modal' | 'toast' | 'sidebar' | 'fade';
5
+ type PresencePreset = 'popover' | 'menu' | 'modal' | 'toast' | 'sidebar' | 'sheet' | 'fade';
6
6
  type PresenceDefinition = PresencePreset | DOMKeyframesDefinition;
7
7
  type PresenceOptions = AnimationOptions & {
8
8
  reducedMotion?: MotionPreference;
@@ -4,7 +4,7 @@ export { className, cx, type ClassArray, type ClassDictionary, type ClassNameOpt
4
4
  export { createCollectionNavigation, type CollectionElementOptions, type CollectionItemsOptions, type CollectionKeydownOptions, type CollectionNavigation, type CollectionNavigationOptions, } from './collection-navigation';
5
5
  export { registerConfirm, unregisterConfirm, type ConfirmEventDetail, type ConfirmRuntimeOptions } from './confirm';
6
6
  export { create, type CreateOptions, type StyleTree } from './create';
7
- export { props, type BindingObject, type PropInput, type PropsOptions } from './props';
7
+ export { mergeBindings, type BindingInput, type BindingObject, type MergeBindingsOptions } from './merge-bindings';
8
8
  export { defineProps, string, number, bool, json, oneOf, type CodecFn, type PropState, type SchemaToProps } from './codecs';
9
9
  export { addListener, asBool, dispatch, isRtl, removeAttribute, setAttribute, setPresence, type AddListenerOptions, type AttributeOptions, type BoolOptions, type CleanupStack, type DispatchOptions, type ElementOptions, type PresenceOptions, } from './dom';
10
10
  export { addDismissableLayer, type DismissableLayerOptions } from './dismissable-layer';
@@ -14,7 +14,7 @@ export { createResizable, registerResizable, type ResizableOptions, type ResizeA
14
14
  export { defineManifest, propsFromSchema, type ComponentManifest, type DefineManifestOptions, type ManifestPart, type ManifestProp, type ManifestPropDetails, type ManifestToken, type PropsFromSchemaOptions, type SchemaPropDetails, } from './manifest';
15
15
  export { defineStyles, resolveStyle, type DefineStylesOptions, type ResolveStyleOptions, type StyleDefinition, type StylePart, type StyleProps, } from './styles';
16
16
  export { applyStreamPatch, applyStreamPatches, applyUiEffect, applyUiEffects, connectStream, dispatchStreamEvent, registerStream, type PatchMode, type StreamEventPayload, type StreamPatchPayload, type UiEffectPayload, } from './stream';
17
- export { applyThemeMode, createDarkModeStore, registerThemeStore, type DarkModeStore, type ThemeChangeDetail, type ThemeMode, } from './theme';
17
+ export { applyThemeMode, createThemeStore, registerThemeStore, type ResolvedThemeMode, type ThemeChangeDetail, type ThemeStore, type ThemeMode, } from './theme';
18
18
  export { lockDocumentScroll, unlockDocumentScroll } from './scroll-lock';
19
19
  type TrellisAlpineComponent<T> = Alpine.AlpineComponent<T> & {
20
20
  init(): void;
@@ -42,7 +42,7 @@ declare const ui: {
42
42
  readonly parseItemData: (raw: string | undefined) => unknown;
43
43
  readonly splitControlValues: (value: string) => string[];
44
44
  readonly createResizable: ({ element, handle, axis, min, max, step, mode, hitArea, coarseHitArea, disabled, onStart, onResize, onEnd, }: import("./resizable").ResizableOptions) => (() => void);
45
- readonly props: ({ inputs }: import("./props").PropsOptions) => import("./props").BindingObject;
45
+ readonly mergeBindings: ({ inputs }: import("./merge-bindings").MergeBindingsOptions) => import("./merge-bindings").BindingObject;
46
46
  readonly propsFromSchema: <const T extends Record<string, import("./codecs").CodecFn<unknown>>>({ schema, details, }: import("./manifest").PropsFromSchemaOptions<T>) => Record<string, import("./manifest").ManifestProp>;
47
47
  readonly resolveStyle: ({ part, props, className: override, }: import("./styles").ResolveStyleOptions) => string;
48
48
  readonly className: ({ values }: import("./class-name").ClassNameOptions) => string;
@@ -73,7 +73,7 @@ declare const ui: {
73
73
  }>;
74
74
  readonly dispatchStreamEvent: (payload: import("./stream").StreamEventPayload) => void;
75
75
  readonly applyThemeMode: (mode: import("./theme").ThemeMode) => import("./theme").ThemeChangeDetail;
76
- readonly createDarkModeStore: () => import("./theme").DarkModeStore;
76
+ readonly createThemeStore: () => import("./theme").ThemeStore;
77
77
  readonly lockDocumentScroll: () => void;
78
78
  readonly registerConfirm: ({ root }?: import("./confirm").ConfirmRuntimeOptions) => void;
79
79
  readonly registerResizable: (AlpineInstance: Alpine.Alpine) => void;
@@ -18,10 +18,14 @@ type ManifestAcceptedEvent = {
18
18
  description: string;
19
19
  detail?: Record<string, string>;
20
20
  };
21
+ type ComponentManifestMeta = {
22
+ group?: string;
23
+ };
21
24
  type ComponentManifest = {
22
25
  name: string;
23
26
  title: string;
24
27
  description: string;
28
+ meta?: ComponentManifestMeta;
25
29
  props?: Record<string, ManifestProp>;
26
30
  propSchema?: Record<string, CodecFn<unknown>>;
27
31
  slots?: Record<string, string>;
@@ -46,4 +50,4 @@ type PropsFromSchemaOptions<T extends Record<string, CodecFn<unknown>>> = {
46
50
  declare const defineManifest: <const T extends ComponentManifest>({ manifest }: DefineManifestOptions<T>) => Readonly<T>;
47
51
  declare const propsFromSchema: <const T extends Record<string, CodecFn<unknown>>>({ schema, details, }: PropsFromSchemaOptions<T>) => Record<string, ManifestProp>;
48
52
  export { defineManifest, propsFromSchema };
49
- export type { ComponentManifest, DefineManifestOptions, ManifestPart, ManifestProp, ManifestPropDetails, ManifestAcceptedEvent, ManifestToken, PropsFromSchemaOptions, PropKind, SchemaPropDetails, };
53
+ export type { ComponentManifest, DefineManifestOptions, ManifestPart, ManifestProp, ManifestPropDetails, ManifestAcceptedEvent, ComponentManifestMeta, ManifestToken, PropsFromSchemaOptions, PropKind, SchemaPropDetails, };
@@ -0,0 +1,9 @@
1
+ import { type ClassValue } from './class-name';
2
+ type AttributeValue = unknown;
3
+ export type BindingObject = Record<string, AttributeValue>;
4
+ export type BindingInput = ClassValue | BindingObject;
5
+ export type MergeBindingsOptions = {
6
+ inputs: readonly BindingInput[];
7
+ };
8
+ export declare const mergeBindings: ({ inputs }: MergeBindingsOptions) => BindingObject;
9
+ export {};
@@ -1,17 +1,22 @@
1
1
  import type { Alpine as AlpineType } from 'alpinejs';
2
2
  declare const THEME_VALUES: readonly ["light", "dark", "system"];
3
3
  type ThemeMode = typeof THEME_VALUES[number];
4
+ type ResolvedThemeMode = Exclude<ThemeMode, 'system'>;
4
5
  type ThemeChangeDetail = {
5
6
  mode: ThemeMode;
7
+ resolved: ResolvedThemeMode;
8
+ dark: boolean;
6
9
  on: boolean;
7
10
  };
8
- type DarkModeStore = {
11
+ type ThemeStore = {
9
12
  mode: ThemeMode;
13
+ resolved: ResolvedThemeMode;
14
+ dark: boolean;
10
15
  on: boolean;
11
16
  set: (mode: ThemeMode) => void;
12
17
  toggle: () => void;
13
18
  };
14
19
  declare const applyThemeMode: (mode: ThemeMode) => ThemeChangeDetail;
15
- declare const createDarkModeStore: () => DarkModeStore;
20
+ declare const createThemeStore: () => ThemeStore;
16
21
  declare const registerThemeStore: (AlpineInstance: AlpineType) => void;
17
- export { applyThemeMode, createDarkModeStore, registerThemeStore, type DarkModeStore, type ThemeChangeDetail, type ThemeMode, };
22
+ export { applyThemeMode, createThemeStore, registerThemeStore, type ResolvedThemeMode, type ThemeChangeDetail, type ThemeStore, type ThemeMode, };
@@ -1,10 +0,0 @@
1
- @layer components {
2
- .ui-image-outline {
3
- outline: 1px solid rgba(0, 0, 0, 0.1);
4
- outline-offset: -1px;
5
- }
6
-
7
- .dark .ui-image-outline {
8
- outline-color: rgba(255, 255, 255, 0.1);
9
- }
10
- }
@@ -1,13 +0,0 @@
1
- @layer components {
2
- [data-ui-theme-icon] [data-ui-theme-icon-when],
3
- [data-ui-theme-text] [data-ui-theme-text-when] {
4
- display: none;
5
- }
6
-
7
- html:not(.dark) [data-ui-theme-icon] [data-ui-theme-icon-when="light"],
8
- html.dark [data-ui-theme-icon] [data-ui-theme-icon-when="dark"],
9
- html:not(.dark) [data-ui-theme-text] [data-ui-theme-text-when="light"],
10
- html.dark [data-ui-theme-text] [data-ui-theme-text-when="dark"] {
11
- display: block;
12
- }
13
- }
@@ -1,9 +0,0 @@
1
- import { type ClassValue } from './class-name';
2
- type AttributeValue = unknown;
3
- export type BindingObject = Record<string, AttributeValue>;
4
- export type PropInput = ClassValue | BindingObject;
5
- export type PropsOptions = {
6
- inputs: readonly PropInput[];
7
- };
8
- export declare const props: ({ inputs }: PropsOptions) => BindingObject;
9
- export {};