@vireo-ai/trellis-ui 0.1.8 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -4
- package/packages/client/src/components/app/styles.css +1 -30
- package/packages/client/src/components/button/styles.css +1 -122
- package/packages/client/src/components/date-picker/styles.css +47 -77
- package/packages/client/src/components/field/styles.css +10 -0
- package/packages/client/src/components/file-upload/styles.css +0 -28
- package/packages/client/src/components/panels/styles.css +43 -0
- package/packages/client/src/components/radio/styles.css +26 -21
- package/packages/client/src/components/scroll-area/styles.css +0 -4
- package/packages/client/src/components/select/styles.css +0 -30
- package/packages/client/src/components/sidebar/styles.css +8 -0
- package/packages/client/src/components/toast/styles.css +14 -7
- package/packages/client/src/styles/components.css +1 -0
- package/packages/client/src/styles/generated/theme-fonts.css +5 -0
- package/packages/client/src/styles/generated/theme-palette.css +2656 -0
- package/packages/client/src/styles/generated/theme-runtime.css +2966 -0
- package/packages/client/src/styles/generated-sources.css +1 -1
- package/packages/client/src/styles/static.css +1 -0
- package/packages/client/src/styles/theme.css +777 -738
- package/packages/client/types/cdn.d.ts +1 -4
- package/packages/client/types/component-api.d.ts +21 -0
- package/packages/client/types/components/accordion/contract.d.ts +3 -2
- package/packages/client/types/components/accordion/index.d.ts +28 -42
- package/packages/client/types/components/accordion/machine.d.ts +131 -0
- package/packages/client/types/components/accordion/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/action/contract.d.ts +3 -3
- package/packages/client/types/components/app/contract.d.ts +25 -12
- package/packages/client/types/components/app/index.d.ts +2 -2
- package/packages/client/types/components/badge/contract.d.ts +5 -5
- package/packages/client/types/components/box/contract.d.ts +25 -28
- package/packages/client/types/components/brand/contract.d.ts +2 -2
- package/packages/client/types/components/button/contract.d.ts +5 -5
- package/packages/client/types/components/card/contract.d.ts +28 -31
- package/packages/client/types/components/checkbox/contract.d.ts +17 -17
- package/packages/client/types/components/checkbox/index.d.ts +20 -26
- package/packages/client/types/components/checkbox/machine.d.ts +41 -0
- package/packages/client/types/components/checkbox/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/common.d.ts +53 -235
- package/packages/client/types/components/container/contract.d.ts +11 -12
- package/packages/client/types/components/date-picker/contract.d.ts +21 -16
- package/packages/client/types/components/date-picker/index.d.ts +38 -60
- package/packages/client/types/components/date-picker/machine.d.ts +529 -0
- package/packages/client/types/components/date-picker/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/date-picker/value.d.ts +28 -0
- package/packages/client/types/components/dropdown/contract.d.ts +4 -4
- package/packages/client/types/components/dropdown/index.d.ts +20 -45
- package/packages/client/types/components/dropdown/machine.d.ts +93 -0
- package/packages/client/types/components/dropdown/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/field/contract.d.ts +10 -6
- package/packages/client/types/components/field/index.d.ts +6 -6
- package/packages/client/types/components/field/machine.d.ts +13 -0
- package/packages/client/types/components/field/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/file-upload/contract.d.ts +7 -4
- package/packages/client/types/components/file-upload/index.d.ts +34 -31
- package/packages/client/types/components/file-upload/machine.d.ts +127 -0
- package/packages/client/types/components/file-upload/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/flex/contract.d.ts +16 -17
- package/packages/client/types/components/frame/contract.d.ts +41 -47
- package/packages/client/types/components/frame/index.d.ts +2 -2
- package/packages/client/types/components/grid/contract.d.ts +20 -21
- package/packages/client/types/components/heading/contract.d.ts +1 -1
- package/packages/client/types/components/image/contract.d.ts +3 -3
- package/packages/client/types/components/input/contract.d.ts +2 -2
- package/packages/client/types/components/input/index.d.ts +15 -12
- package/packages/client/types/components/input/machine.d.ts +20 -0
- package/packages/client/types/components/layout.d.ts +44 -225
- package/packages/client/types/components/menu/contract.d.ts +14 -8
- package/packages/client/types/components/modal/contract.d.ts +12 -12
- package/packages/client/types/components/modal/index.d.ts +41 -75
- package/packages/client/types/components/modal/machine.d.ts +129 -0
- package/packages/client/types/components/modal/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/overlay/contract.d.ts +3 -3
- package/packages/client/types/components/panels/contract.d.ts +39 -0
- package/packages/client/types/components/panels/index.d.ts +54 -0
- package/packages/client/types/components/panels/machine.d.ts +151 -0
- package/packages/client/types/components/panels/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/radio/contract.d.ts +11 -11
- package/packages/client/types/components/radio/index.d.ts +19 -23
- package/packages/client/types/components/radio/machine.d.ts +40 -0
- package/packages/client/types/components/radio/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/runtime.d.ts +16 -19
- package/packages/client/types/components/scroll-area/contract.d.ts +4 -7
- package/packages/client/types/components/scroll-area/index.d.ts +23 -49
- package/packages/client/types/components/scroll-area/machine.d.ts +21 -0
- package/packages/client/types/components/scroll-area/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/section/contract.d.ts +12 -13
- package/packages/client/types/components/select/contract.d.ts +19 -15
- package/packages/client/types/components/select/index.d.ts +42 -89
- package/packages/client/types/components/select/machine.d.ts +476 -0
- package/packages/client/types/components/select/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/shared/controlled-open.d.ts +11 -0
- package/packages/client/types/components/sidebar/contract.d.ts +19 -12
- package/packages/client/types/components/sidebar/index.d.ts +51 -88
- package/packages/client/types/components/sidebar/machine.d.ts +100 -0
- package/packages/client/types/components/sidebar/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/slider/contract.d.ts +3 -3
- package/packages/client/types/components/slider/index.d.ts +17 -21
- package/packages/client/types/components/slider/machine.d.ts +37 -0
- package/packages/client/types/components/slider/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/stack/contract.d.ts +16 -17
- package/packages/client/types/components/surface-manifest.d.ts +9 -0
- package/packages/client/types/components/switch/contract.d.ts +11 -11
- package/packages/client/types/components/switch/index.d.ts +13 -18
- package/packages/client/types/components/switch/machine.d.ts +19 -0
- package/packages/client/types/components/switch/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/table/contract.d.ts +18 -18
- package/packages/client/types/components/tabs/contract.d.ts +10 -5
- package/packages/client/types/components/tabs/index.d.ts +33 -51
- package/packages/client/types/components/tabs/machine.d.ts +84 -0
- package/packages/client/types/components/tabs/runtime-docs.d.ts +2 -0
- package/packages/client/types/components/text/contract.d.ts +1 -1
- package/packages/client/types/components/textarea/contract.d.ts +2 -2
- package/packages/client/types/components/toast/contract.d.ts +5 -4
- package/packages/client/types/components/toast/index.d.ts +38 -12
- package/packages/client/types/components/toast/machine.d.ts +115 -0
- package/packages/client/types/components/toast/runtime-docs.d.ts +2 -0
- package/packages/client/types/directives/index.d.ts +3 -1
- package/packages/client/types/directives/layout.d.ts +3 -0
- package/packages/client/types/directives/request.d.ts +1 -2
- package/packages/client/types/directives/transition.d.ts +3 -0
- package/packages/client/types/docs/transition-docs.d.ts +30 -0
- package/packages/client/types/index.d.ts +8 -40
- package/packages/client/types/motion/animate.d.ts +5 -44
- package/packages/client/types/motion/controller.d.ts +33 -0
- package/packages/client/types/motion/index.d.ts +43 -20
- package/packages/client/types/motion/owned.d.ts +5 -0
- package/packages/client/types/motion/plan.d.ts +46 -0
- package/packages/client/types/motion/recipe.d.ts +56 -0
- package/packages/client/types/motion/registry.d.ts +12 -0
- package/packages/client/types/motion/resize.d.ts +15 -0
- package/packages/client/types/motion/subject.d.ts +10 -0
- package/packages/client/types/motion/targets.d.ts +2 -5
- package/packages/client/types/motion/view.d.ts +7 -2
- package/packages/client/types/runtime/alpine-machine.d.ts +68 -0
- package/packages/client/types/runtime/anchored-popover.d.ts +10 -2
- package/packages/client/types/runtime/codecs.d.ts +16 -2
- package/packages/client/types/runtime/{resizable.d.ts → drag-and-drop/index.d.ts} +4 -2
- package/packages/client/types/runtime/engine/request.d.ts +2 -2
- package/packages/client/types/runtime/engine/stream.d.ts +11 -5
- package/packages/client/types/runtime/focus-scope.d.ts +7 -0
- package/packages/client/types/runtime/identity.d.ts +3 -0
- package/packages/client/types/runtime/index.d.ts +9 -75
- package/packages/client/types/runtime/merge-bindings.d.ts +1 -1
- package/packages/client/types/runtime/semantic-observer.d.ts +10 -0
- package/packages/client/types/runtime/state-machine/index.d.ts +4 -0
- package/packages/client/types/runtime/state-machine/machine.d.ts +83 -0
- package/packages/client/types/runtime/state-machine/props-change.d.ts +12 -0
- package/packages/client/types/runtime/transition-coordinator.d.ts +52 -0
- package/packages/client/types/runtime/ui.d.ts +15 -0
- package/packages/client/types/utils/index.d.ts +2 -1
- package/packages/client/types/utils/number.d.ts +2 -0
- package/packages/client/types/utils/object.d.ts +4 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.css +9097 -2595
- package/packages/server/trellis_ui/static/trellis_ui/assets/css/trellis.min.css +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js +17313 -13281
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/index.js.map +1 -1
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.js +8 -15
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/trellis.min.js +8 -15
- package/packages/client/types/bindings/disclosure.d.ts +0 -3
- package/packages/client/types/bindings/index.d.ts +0 -7
- package/packages/client/types/bindings/motion.d.ts +0 -3
- package/packages/client/types/bindings/state.d.ts +0 -3
- package/packages/client/types/bindings/types.d.ts +0 -33
- package/packages/client/types/components/combobox/contract.d.ts +0 -60
- package/packages/client/types/components/combobox/index.d.ts +0 -80
- package/packages/client/types/components/textarea/index.d.ts +0 -13
- package/packages/client/types/motion/presence.d.ts +0 -34
- package/packages/client/types/runtime/class-name.d.ts +0 -9
- package/packages/client/types/runtime/create.d.ts +0 -8
- package/packages/client/types/runtime/machine.d.ts +0 -55
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js +0 -1134
- package/packages/server/trellis_ui/static/trellis_ui/assets/js/esm/chunks/cally-TZl4LpyH.js.map +0 -1
|
@@ -1,16 +1,14 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type ComponentRadius, type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
|
+
import { type ComponentRadius, type ElevationReference, type LayoutSpace, type SurfaceReference } from '../common';
|
|
3
3
|
declare const FRAME_AS_VALUES: readonly ["div", "section", "article", "aside", "main", "nav", "form"];
|
|
4
4
|
declare const FRAME_REGION_AS_VALUES: readonly ["div", "header", "footer", "section", "nav", "form"];
|
|
5
5
|
declare const FRAME_BODY_AS_VALUES: readonly ["div", "section", "main", "form"];
|
|
6
6
|
declare const FRAME_LAYOUTS: readonly ["regions", "stack"];
|
|
7
7
|
declare const FRAME_REGION_LAYOUTS: readonly ["block", "row", "stack", "cluster"];
|
|
8
|
-
declare const FRAME_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
9
|
-
declare const FRAME_SURFACES: readonly ["
|
|
10
|
-
declare const FRAME_TONES: readonly ["solid", "alpha"];
|
|
11
|
-
declare const FRAME_BORDERS: readonly ["none", "default"];
|
|
8
|
+
declare const FRAME_SPACES: readonly ["0", "0.5", "1", "1.5", "2", "2.5", "3", "3.5", "4", "4.5", "5", "5.5", "6", "6.5", "7", "7.5", "8", "8.5", "9", "9.5", "10", "10.5", "11", "11.5", "12"];
|
|
9
|
+
declare const FRAME_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
|
|
12
10
|
declare const FRAME_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
|
|
13
|
-
declare const FRAME_ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
|
|
11
|
+
declare const FRAME_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|
14
12
|
declare const FRAME_WIDTHS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
|
|
15
13
|
declare const FRAME_HEIGHTS: readonly ["auto", "full", "xs", "sm", "md", "lg", "xl", "prose"];
|
|
16
14
|
declare const FRAME_ALIGNS: readonly ["start", "center", "end", "stretch"];
|
|
@@ -18,48 +16,46 @@ declare const FRAME_JUSTIFIES: readonly ["start", "center", "end", "between"];
|
|
|
18
16
|
declare const frameSchema: {
|
|
19
17
|
as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "form" | "main" | "nav" | "section">;
|
|
20
18
|
layout: import("../../runtime/codecs").OneOfCodec<"stack" | "regions">;
|
|
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<"
|
|
31
|
-
tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
|
|
32
|
-
border: import("../../runtime/codecs").OneOfCodec<"default" | "none">;
|
|
19
|
+
gap: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
20
|
+
gapX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
21
|
+
gapY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
22
|
+
padding: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
23
|
+
paddingX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
24
|
+
paddingY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
25
|
+
margin: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
26
|
+
marginX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
27
|
+
marginY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
28
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
33
29
|
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
34
|
-
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "
|
|
30
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
35
31
|
width: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
|
|
36
32
|
height: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
|
|
37
33
|
class: import("../../runtime/codecs").StringCodec;
|
|
38
34
|
};
|
|
39
35
|
declare const frameRegionSchema: {
|
|
40
36
|
as: import("../../runtime/codecs").OneOfCodec<"div" | "footer" | "form" | "header" | "nav" | "section">;
|
|
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">;
|
|
50
|
-
layout: import("../../runtime/codecs").OneOfCodec<"stack" | "
|
|
51
|
-
align: import("../../runtime/codecs").OneOfCodec<"
|
|
52
|
-
justify: import("../../runtime/codecs").OneOfCodec<"
|
|
37
|
+
padding: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
38
|
+
paddingX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
39
|
+
paddingY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
40
|
+
gap: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
41
|
+
gapX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
42
|
+
gapY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
43
|
+
margin: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
44
|
+
marginX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
45
|
+
marginY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
46
|
+
layout: import("../../runtime/codecs").OneOfCodec<"stack" | "row" | "block" | "cluster">;
|
|
47
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "stretch">;
|
|
48
|
+
justify: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "between">;
|
|
53
49
|
class: import("../../runtime/codecs").StringCodec;
|
|
54
50
|
};
|
|
55
51
|
declare const frameBodySchema: {
|
|
56
52
|
as: import("../../runtime/codecs").OneOfCodec<"div" | "form" | "main" | "section">;
|
|
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">;
|
|
53
|
+
padding: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
54
|
+
paddingX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
55
|
+
paddingY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
56
|
+
margin: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
57
|
+
marginX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
58
|
+
marginY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
63
59
|
scroll: import("../../runtime/codecs").BoolCodec;
|
|
64
60
|
class: import("../../runtime/codecs").StringCodec;
|
|
65
61
|
};
|
|
@@ -69,17 +65,15 @@ type FrameBodyAs = typeof FRAME_BODY_AS_VALUES[number];
|
|
|
69
65
|
type FrameLayout = typeof FRAME_LAYOUTS[number];
|
|
70
66
|
type FrameRegionLayout = typeof FRAME_REGION_LAYOUTS[number];
|
|
71
67
|
type FrameSpace = LayoutSpace;
|
|
72
|
-
type FrameSurface =
|
|
73
|
-
type FrameTone = SurfaceTone;
|
|
74
|
-
type FrameBorder = typeof FRAME_BORDERS[number];
|
|
68
|
+
type FrameSurface = SurfaceReference;
|
|
75
69
|
type FrameRadius = ComponentRadius;
|
|
76
|
-
type FrameElevation =
|
|
70
|
+
type FrameElevation = ElevationReference;
|
|
77
71
|
type FrameWidth = typeof FRAME_WIDTHS[number];
|
|
78
72
|
type FrameHeight = typeof FRAME_HEIGHTS[number];
|
|
79
73
|
type FrameAlign = typeof FRAME_ALIGNS[number];
|
|
80
74
|
type FrameJustify = typeof FRAME_JUSTIFIES[number];
|
|
81
|
-
type FrameProps =
|
|
82
|
-
type FrameRegionProps =
|
|
83
|
-
type FrameBodyProps =
|
|
84
|
-
export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES,
|
|
85
|
-
export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps,
|
|
75
|
+
type FrameProps = SchemaToProps<typeof frameSchema>;
|
|
76
|
+
type FrameRegionProps = SchemaToProps<typeof frameRegionSchema>;
|
|
77
|
+
type FrameBodyProps = SchemaToProps<typeof frameBodySchema>;
|
|
78
|
+
export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, 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, };
|
|
79
|
+
export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps, FrameElevation, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameSpace, FrameSurface, FrameWidth, };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES,
|
|
2
|
-
export type { FrameAlign, FrameAs, FrameBodyAs, FrameBodyProps,
|
|
1
|
+
export { FRAME_ALIGNS, FRAME_AS_VALUES, FRAME_BODY_AS_VALUES, 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, FrameElevation, FrameHeight, FrameJustify, FrameLayout, FrameProps, FrameRadius, FrameRegionAs, FrameRegionLayout, FrameRegionProps, FrameSpace, FrameSurface, FrameWidth, } from './contract';
|
|
@@ -1,40 +1,39 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
2
|
import { type LayoutAlign, type LayoutAs, type LayoutColumns, type LayoutJustify, type LayoutRows, type LayoutSpace } from '../layout';
|
|
3
3
|
declare const GRID_DISPLAYS: readonly ["grid", "inline-grid", "none"];
|
|
4
4
|
declare const GRID_FLOWS: readonly ["row", "column", "dense", "row-dense", "column-dense"];
|
|
5
5
|
declare const GRID_CONTENT_ALIGNS: readonly ["start", "center", "end", "between", "stretch"];
|
|
6
6
|
declare const GRID_ITEM_JUSTIFIES: readonly ["start", "center", "end", "stretch"];
|
|
7
7
|
declare const gridSchema: {
|
|
8
|
-
padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
9
|
-
paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
10
|
-
paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
11
|
-
margin: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
12
|
-
marginX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
13
|
-
marginY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
14
|
-
surface: import("../../runtime/codecs").OneOfCodec<"
|
|
15
|
-
tone: import("../../runtime/codecs").OneOfCodec<"solid" | "alpha">;
|
|
8
|
+
padding: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
9
|
+
paddingX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
10
|
+
paddingY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
11
|
+
margin: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
12
|
+
marginX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
13
|
+
marginY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
14
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
16
15
|
radius: import("../../runtime/codecs").OneOfCodec<"none" | "xs" | "sm" | "md" | "lg" | "full">;
|
|
17
|
-
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "
|
|
16
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
18
17
|
width: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl" | "prose">;
|
|
19
18
|
height: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "full" | "auto" | "xl">;
|
|
20
19
|
class: import("../../runtime/codecs").StringCodec;
|
|
21
|
-
align: import("../../runtime/codecs").OneOfCodec<"
|
|
22
|
-
justify: import("../../runtime/codecs").OneOfCodec<"
|
|
23
|
-
gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
24
|
-
gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
25
|
-
gapY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
20
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "stretch" | "baseline">;
|
|
21
|
+
justify: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "between">;
|
|
22
|
+
gap: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
23
|
+
gapX: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
24
|
+
gapY: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "10" | "11" | "12" | "0.5" | "1.5" | "2.5" | "3.5" | "4.5" | "5.5" | "6.5" | "7.5" | "8.5" | "9.5" | "10.5" | "11.5">;
|
|
26
25
|
as: import("../../runtime/codecs").OneOfCodec<"article" | "aside" | "div" | "footer" | "form" | "header" | "li" | "main" | "nav" | "ol" | "section" | "span" | "ul">;
|
|
27
|
-
display: import("../../runtime/codecs").OneOfCodec<"
|
|
28
|
-
columns: import("../../runtime/codecs").OneOfCodec<"1" | "
|
|
29
|
-
rows: import("../../runtime/codecs").OneOfCodec<"1" | "
|
|
26
|
+
display: import("../../runtime/codecs").OneOfCodec<"none" | "grid" | "inline-grid">;
|
|
27
|
+
columns: import("../../runtime/codecs").OneOfCodec<"1" | "2" | "none" | "3" | "4" | "5" | "6">;
|
|
28
|
+
rows: import("../../runtime/codecs").OneOfCodec<"1" | "2" | "none" | "3" | "4" | "5" | "6">;
|
|
30
29
|
flow: import("../../runtime/codecs").OneOfCodec<"row" | "column" | "dense" | "row-dense" | "column-dense">;
|
|
31
|
-
alignContent: import("../../runtime/codecs").OneOfCodec<"
|
|
32
|
-
justifyItems: import("../../runtime/codecs").OneOfCodec<"
|
|
30
|
+
alignContent: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "stretch" | "between">;
|
|
31
|
+
justifyItems: import("../../runtime/codecs").OneOfCodec<"start" | "center" | "end" | "stretch">;
|
|
33
32
|
};
|
|
34
33
|
type GridDisplay = typeof GRID_DISPLAYS[number];
|
|
35
34
|
type GridFlow = typeof GRID_FLOWS[number];
|
|
36
35
|
type GridContentAlign = typeof GRID_CONTENT_ALIGNS[number];
|
|
37
36
|
type GridJustifyItems = typeof GRID_ITEM_JUSTIFIES[number];
|
|
38
|
-
type GridProps =
|
|
37
|
+
type GridProps = SchemaToProps<typeof gridSchema>;
|
|
39
38
|
export { GRID_CONTENT_ALIGNS, GRID_DISPLAYS, GRID_FLOWS, GRID_ITEM_JUSTIFIES, gridSchema, };
|
|
40
39
|
export type { GridContentAlign, GridDisplay, GridFlow, GridJustifyItems, GridProps, LayoutAlign as GridAlign, LayoutAs as GridAs, LayoutColumns as GridColumns, LayoutJustify as GridJustify, LayoutRows as GridRows, LayoutSpace as GridSpace, };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TypographyColor } from '../common';
|
|
2
2
|
declare const HEADING_AS_VALUES: readonly ["div", "h1", "h2", "h3", "h4", "h5", "h6"];
|
|
3
|
-
declare const HEADING_SIZE_VALUES: readonly ["
|
|
3
|
+
declare const HEADING_SIZE_VALUES: readonly ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13"];
|
|
4
4
|
declare const HEADING_COLOR_VALUES: readonly ["inherit", "muted", "subtle", "accent", "danger"];
|
|
5
5
|
type HeadingAs = typeof HEADING_AS_VALUES[number];
|
|
6
6
|
type HeadingSize = typeof HEADING_SIZE_VALUES[number];
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
2
|
declare const IMAGE_FITS: readonly ["cover", "contain", "fill", "none", "scale-down"];
|
|
3
3
|
declare const IMAGE_LOADINGS: readonly ["lazy", "eager"];
|
|
4
4
|
declare const IMAGE_DECODINGS: readonly ["async", "sync", "auto"];
|
|
5
5
|
declare const imageSchema: {
|
|
6
6
|
src: import("../../runtime/codecs").StringCodec;
|
|
7
7
|
alt: import("../../runtime/codecs").StringCodec;
|
|
8
|
-
fit: import("../../runtime/codecs").OneOfCodec<"
|
|
8
|
+
fit: import("../../runtime/codecs").OneOfCodec<"fill" | "none" | "contain" | "cover" | "scale-down">;
|
|
9
9
|
loading: import("../../runtime/codecs").OneOfCodec<"eager" | "lazy">;
|
|
10
10
|
decoding: import("../../runtime/codecs").OneOfCodec<"sync" | "auto" | "async">;
|
|
11
11
|
class: import("../../runtime/codecs").StringCodec;
|
|
@@ -14,6 +14,6 @@ declare const imageSchema: {
|
|
|
14
14
|
type ImageFit = typeof IMAGE_FITS[number];
|
|
15
15
|
type ImageLoading = typeof IMAGE_LOADINGS[number];
|
|
16
16
|
type ImageDecoding = typeof IMAGE_DECODINGS[number];
|
|
17
|
-
type ImageProps =
|
|
17
|
+
type ImageProps = SchemaToProps<typeof imageSchema>;
|
|
18
18
|
export { IMAGE_DECODINGS, IMAGE_FITS, IMAGE_LOADINGS, imageSchema, };
|
|
19
19
|
export type { ImageDecoding, ImageFit, ImageLoading, ImageProps, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
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"];
|
|
@@ -48,6 +48,6 @@ declare const inputGroupSchema: {
|
|
|
48
48
|
declare const inputAffixSchema: {
|
|
49
49
|
class: import("../../runtime/codecs").StringCodec;
|
|
50
50
|
};
|
|
51
|
-
type InputProps =
|
|
51
|
+
type InputProps = SchemaToProps<typeof inputSchema>;
|
|
52
52
|
export { INPUT_ICON_VARIANTS, INPUT_RADII, INPUT_SIZES, INPUT_VARIANTS, inputAffixSchema, inputGroupSchema, inputSchema };
|
|
53
53
|
export type { InputIconVariant, InputProps, InputRadius, InputSize, InputVariant };
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import type Alpine from 'alpinejs';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
|
|
3
3
|
import { type InputProps } from './contract';
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { inputHooks, type InputContext } from './machine';
|
|
5
|
+
/** Public Alpine API for `ui.input` and `ui.input.control`. @public */
|
|
6
|
+
interface UiInputApi {
|
|
7
|
+
/** Current native input value. */
|
|
8
|
+
readonly value: string;
|
|
9
|
+
/** Clear the input, emit native input/change events, and restore focus. */
|
|
10
|
+
clear(): void;
|
|
11
|
+
/** Copy the current value to the clipboard. */
|
|
12
|
+
copy(): void;
|
|
13
|
+
}
|
|
14
|
+
type InputData = AlpineMachine<InputContext, InputProps, typeof inputHooks> & UiInputApi & {
|
|
15
|
+
init(): void;
|
|
16
|
+
destroy(): void;
|
|
14
17
|
};
|
|
15
18
|
declare const UiInput: () => TrellisAlpineComponent<InputData>;
|
|
16
19
|
declare const registerInput: (AlpineInstance: Alpine.Alpine) => void;
|
|
17
20
|
export { registerInput, UiInput };
|
|
18
|
-
export type { InputData };
|
|
21
|
+
export type { InputData, UiInputApi };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type Machine, type MachineScope } from '../../runtime/state-machine';
|
|
2
|
+
import type { InputProps } from './contract';
|
|
3
|
+
type InputContext = {
|
|
4
|
+
value: string;
|
|
5
|
+
};
|
|
6
|
+
type InputEffects = {
|
|
7
|
+
sync(scope: MachineScope<InputContext, InputProps>): void;
|
|
8
|
+
copy(scope: MachineScope<InputContext, InputProps>): void;
|
|
9
|
+
emitInput(scope: MachineScope<InputContext, InputProps>): void;
|
|
10
|
+
emitChange(scope: MachineScope<InputContext, InputProps>): void;
|
|
11
|
+
focus(scope: MachineScope<InputContext, InputProps>): void;
|
|
12
|
+
startCopiedTimer(scope: MachineScope<InputContext, InputProps>): void;
|
|
13
|
+
};
|
|
14
|
+
declare const inputHooks: readonly [];
|
|
15
|
+
declare const createInputMachine: ({ props, effects }: {
|
|
16
|
+
props: InputProps;
|
|
17
|
+
effects: InputEffects;
|
|
18
|
+
}) => Machine<InputContext, InputProps>;
|
|
19
|
+
export { createInputMachine, inputHooks };
|
|
20
|
+
export type { InputContext, InputEffects };
|