@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,11 +1,10 @@
|
|
|
1
|
-
import { type
|
|
2
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
|
+
import { type ElevationReference, type LayoutSpace, type SurfaceReference } from '../common';
|
|
3
3
|
declare const CARD_AS_VALUES: readonly ["div", "section", "article", "aside", "label"];
|
|
4
|
-
declare const CARD_SURFACES: readonly ["
|
|
5
|
-
declare const
|
|
6
|
-
declare const CARD_ELEVATIONS: readonly ["none", "1", "2", "3", "4", "5", "6"];
|
|
4
|
+
declare const CARD_SURFACES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
|
|
5
|
+
declare const CARD_ELEVATIONS: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|
7
6
|
declare const CARD_SIZES: readonly ["sm", "md"];
|
|
8
|
-
declare const CARD_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
7
|
+
declare const CARD_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
8
|
declare const CARD_TITLE_AS_VALUES: readonly ["h2", "h3", "h4", "div"];
|
|
10
9
|
declare const CARD_FOOTER_LAYOUTS: readonly ["row", "stack"];
|
|
11
10
|
declare const CARD_FOOTER_ALIGNS: readonly ["start", "end", "between", "stretch"];
|
|
@@ -14,19 +13,18 @@ declare const cardSchema: {
|
|
|
14
13
|
href: import("../../runtime/codecs").StringCodec;
|
|
15
14
|
label: import("../../runtime/codecs").StringCodec;
|
|
16
15
|
interactive: import("../../runtime/codecs").BoolCodec;
|
|
17
|
-
surface: import("../../runtime/codecs").OneOfCodec<"
|
|
18
|
-
|
|
19
|
-
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "none" | "2" | "3" | "4" | "5" | "6">;
|
|
16
|
+
surface: import("../../runtime/codecs").OneOfCodec<"1" | "0" | "2" | "inherit" | "3" | "4" | "5" | "6" | "7" | "8" | "+1" | "+2" | "+3" | "+4" | "+5" | "+6" | "+7" | "+8">;
|
|
17
|
+
elevation: import("../../runtime/codecs").OneOfCodec<"1" | "match" | "2" | "none" | "3" | "4" | "5" | "6" | "7" | "8">;
|
|
20
18
|
size: import("../../runtime/codecs").OneOfCodec<"sm" | "md">;
|
|
21
|
-
padding: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
22
|
-
paddingX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
23
|
-
paddingY: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
24
|
-
gap: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
25
|
-
gapX: import("../../runtime/codecs").OneOfCodec<"0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9">;
|
|
26
|
-
gapY: 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">;
|
|
19
|
+
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">;
|
|
20
|
+
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">;
|
|
21
|
+
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">;
|
|
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">;
|
|
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">;
|
|
30
28
|
class: import("../../runtime/codecs").StringCodec;
|
|
31
29
|
};
|
|
32
30
|
declare const cardHeaderSchema: {
|
|
@@ -47,24 +45,23 @@ declare const cardContentSchema: {
|
|
|
47
45
|
};
|
|
48
46
|
declare const cardFooterSchema: {
|
|
49
47
|
layout: import("../../runtime/codecs").OneOfCodec<"stack" | "row">;
|
|
50
|
-
align: import("../../runtime/codecs").OneOfCodec<"
|
|
48
|
+
align: import("../../runtime/codecs").OneOfCodec<"start" | "end" | "stretch" | "between">;
|
|
51
49
|
class: import("../../runtime/codecs").StringCodec;
|
|
52
50
|
};
|
|
53
51
|
type CardAs = typeof CARD_AS_VALUES[number];
|
|
54
|
-
type CardSurface =
|
|
55
|
-
type
|
|
56
|
-
type CardElevation = Elevation;
|
|
52
|
+
type CardSurface = SurfaceReference;
|
|
53
|
+
type CardElevation = ElevationReference;
|
|
57
54
|
type CardSize = typeof CARD_SIZES[number];
|
|
58
55
|
type CardSpace = LayoutSpace;
|
|
59
56
|
type CardTitleAs = typeof CARD_TITLE_AS_VALUES[number];
|
|
60
57
|
type CardFooterLayout = typeof CARD_FOOTER_LAYOUTS[number];
|
|
61
58
|
type CardFooterAlign = typeof CARD_FOOTER_ALIGNS[number];
|
|
62
|
-
type CardProps =
|
|
63
|
-
type CardHeaderProps =
|
|
64
|
-
type CardTitleProps =
|
|
65
|
-
type CardDescriptionProps =
|
|
66
|
-
type CardActionProps =
|
|
67
|
-
type CardContentProps =
|
|
68
|
-
type CardFooterProps =
|
|
69
|
-
export { CARD_AS_VALUES, CARD_ELEVATIONS, CARD_FOOTER_ALIGNS, CARD_FOOTER_LAYOUTS, CARD_SIZES, CARD_SPACES, CARD_SURFACES,
|
|
70
|
-
export type { CardActionProps, CardAs, CardContentProps, CardDescriptionProps, CardElevation, CardFooterAlign, CardFooterLayout, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSpace, CardSurface, CardTitleAs, CardTitleProps,
|
|
59
|
+
type CardProps = SchemaToProps<typeof cardSchema>;
|
|
60
|
+
type CardHeaderProps = SchemaToProps<typeof cardHeaderSchema>;
|
|
61
|
+
type CardTitleProps = SchemaToProps<typeof cardTitleSchema>;
|
|
62
|
+
type CardDescriptionProps = SchemaToProps<typeof cardDescriptionSchema>;
|
|
63
|
+
type CardActionProps = SchemaToProps<typeof cardActionSchema>;
|
|
64
|
+
type CardContentProps = SchemaToProps<typeof cardContentSchema>;
|
|
65
|
+
type CardFooterProps = SchemaToProps<typeof cardFooterSchema>;
|
|
66
|
+
export { CARD_AS_VALUES, CARD_ELEVATIONS, CARD_FOOTER_ALIGNS, CARD_FOOTER_LAYOUTS, CARD_SIZES, CARD_SPACES, CARD_SURFACES, CARD_TITLE_AS_VALUES, cardActionSchema, cardContentSchema, cardDescriptionSchema, cardFooterSchema, cardHeaderSchema, cardSchema, cardTitleSchema, };
|
|
67
|
+
export type { CardActionProps, CardAs, CardContentProps, CardDescriptionProps, CardElevation, CardFooterAlign, CardFooterLayout, CardFooterProps, CardHeaderProps, CardProps, CardSize, CardSpace, CardSurface, CardTitleAs, CardTitleProps, };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type
|
|
1
|
+
import { type SchemaToProps } from '../../runtime';
|
|
2
2
|
import { type ControlSize, type DefaultVariant, type IndicatorPlacement, type Orientation } from '../common';
|
|
3
3
|
declare const CHECKBOX_GROUP_ORIENTATIONS: readonly ["vertical", "horizontal"];
|
|
4
4
|
declare const CHECKBOX_GROUP_VARIANTS: readonly ["default"];
|
|
@@ -15,11 +15,11 @@ declare const checkboxControlSchema: {
|
|
|
15
15
|
name: import("../../runtime/codecs").StringCodec;
|
|
16
16
|
label: import("../../runtime/codecs").StringCodec;
|
|
17
17
|
description: import("../../runtime/codecs").StringCodec;
|
|
18
|
-
checked: import("
|
|
19
|
-
indeterminate: import("
|
|
20
|
-
disabled: import("
|
|
21
|
-
required: import("
|
|
22
|
-
invalid: import("
|
|
18
|
+
checked: import("../..").CodecFn<boolean>;
|
|
19
|
+
indeterminate: import("../..").CodecFn<boolean>;
|
|
20
|
+
disabled: import("../..").CodecFn<boolean>;
|
|
21
|
+
required: import("../..").CodecFn<boolean>;
|
|
22
|
+
invalid: import("../..").CodecFn<boolean>;
|
|
23
23
|
indicator: import("../../runtime/codecs").BoolCodec;
|
|
24
24
|
placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
|
|
25
25
|
icon: import("../../runtime/codecs").StringCodec;
|
|
@@ -44,11 +44,11 @@ declare const checkboxSchema: {
|
|
|
44
44
|
fieldClass: import("../../runtime/codecs").StringCodec;
|
|
45
45
|
value: import("../../runtime/codecs").StringCodec;
|
|
46
46
|
name: import("../../runtime/codecs").StringCodec;
|
|
47
|
-
checked: import("
|
|
48
|
-
indeterminate: import("
|
|
49
|
-
disabled: import("
|
|
50
|
-
required: import("
|
|
51
|
-
invalid: import("
|
|
47
|
+
checked: import("../..").CodecFn<boolean>;
|
|
48
|
+
indeterminate: import("../..").CodecFn<boolean>;
|
|
49
|
+
disabled: import("../..").CodecFn<boolean>;
|
|
50
|
+
required: import("../..").CodecFn<boolean>;
|
|
51
|
+
invalid: import("../..").CodecFn<boolean>;
|
|
52
52
|
indicator: import("../../runtime/codecs").BoolCodec;
|
|
53
53
|
placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
|
|
54
54
|
icon: import("../../runtime/codecs").StringCodec;
|
|
@@ -69,17 +69,17 @@ declare const checkboxGroupSchema: {
|
|
|
69
69
|
variant: import("../../runtime/codecs").OneOfCodec<"default">;
|
|
70
70
|
indicator: import("../../runtime/codecs").BoolCodec;
|
|
71
71
|
placement: import("../../runtime/codecs").OneOfCodec<"center" | "leading" | "trailing" | "top-leading" | "top-trailing" | "bottom-leading" | "bottom-trailing">;
|
|
72
|
-
disabled: import("
|
|
73
|
-
required: import("
|
|
74
|
-
invalid: import("
|
|
72
|
+
disabled: import("../..").CodecFn<boolean>;
|
|
73
|
+
required: import("../..").CodecFn<boolean>;
|
|
74
|
+
invalid: import("../..").CodecFn<boolean>;
|
|
75
75
|
class: import("../../runtime/codecs").StringCodec;
|
|
76
76
|
};
|
|
77
77
|
declare const checkboxIndicatorSchema: {
|
|
78
78
|
size: import("../../runtime/codecs").OneOfCodec<"xs" | "sm" | "md" | "lg" | "xlg">;
|
|
79
79
|
class: import("../../runtime/codecs").StringCodec;
|
|
80
80
|
};
|
|
81
|
-
type CheckboxControlProps =
|
|
82
|
-
type CheckboxGroupProps =
|
|
83
|
-
type CheckboxProps =
|
|
81
|
+
type CheckboxControlProps = SchemaToProps<typeof checkboxControlSchema>;
|
|
82
|
+
type CheckboxGroupProps = SchemaToProps<typeof checkboxGroupSchema>;
|
|
83
|
+
type CheckboxProps = SchemaToProps<typeof checkboxSchema>;
|
|
84
84
|
export { CHECKBOX_GROUP_ORIENTATIONS, CHECKBOX_GROUP_VARIANTS, CHECKBOX_PLACEMENTS, CHECKBOX_SIZES, CHECKBOX_VARIANTS, checkboxControlSchema, checkboxGroupSchema, checkboxIndicatorSchema, checkboxSchema, };
|
|
85
85
|
export type { CheckboxControlProps, CheckboxGroupOrientation, CheckboxGroupProps, CheckboxGroupVariant, CheckboxPlacement, CheckboxProps, CheckboxSize, CheckboxVariant, };
|
|
@@ -1,34 +1,28 @@
|
|
|
1
1
|
import type Alpine from 'alpinejs';
|
|
2
|
-
import { type
|
|
2
|
+
import { type AlpineMachine, type TrellisAlpineComponent } from '../../runtime';
|
|
3
3
|
import { type CheckboxControlProps, type CheckboxGroupProps } from './contract';
|
|
4
|
-
type
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
4
|
+
import { checkboxGroupHooks, checkboxHooks, type CheckboxContext, type CheckboxGroupContext, type CheckboxState } from './machine';
|
|
5
|
+
/**
|
|
6
|
+
* Public Alpine API for `ui.checkbox` and `ui.checkbox.control`.
|
|
7
|
+
*
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
interface UiCheckboxApi {
|
|
11
|
+
/** Current semantic checkbox state. */
|
|
12
|
+
readonly state: CheckboxState;
|
|
13
|
+
/** Set and commit the semantic checkbox state. */
|
|
14
|
+
setState(state: CheckboxState): void;
|
|
15
|
+
}
|
|
16
|
+
type CheckboxData = AlpineMachine<CheckboxContext, CheckboxControlProps, typeof checkboxHooks> & UiCheckboxApi & {
|
|
17
|
+
init(): void;
|
|
18
|
+
destroy(): void;
|
|
14
19
|
};
|
|
15
|
-
type
|
|
16
|
-
|
|
17
|
-
|
|
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;
|
|
20
|
+
type CheckboxGroupData = AlpineMachine<CheckboxGroupContext, CheckboxGroupProps, typeof checkboxGroupHooks> & {
|
|
21
|
+
init(): void;
|
|
22
|
+
destroy(): void;
|
|
29
23
|
};
|
|
30
24
|
declare const UiCheckbox: () => TrellisAlpineComponent<CheckboxData>;
|
|
31
25
|
declare const UiCheckboxGroup: () => TrellisAlpineComponent<CheckboxGroupData>;
|
|
32
26
|
declare const registerCheckbox: (AlpineInstance: Alpine.Alpine) => void;
|
|
33
27
|
export { registerCheckbox, UiCheckbox, UiCheckboxGroup };
|
|
34
|
-
export type { CheckboxData, CheckboxGroupData,
|
|
28
|
+
export type { CheckboxData, CheckboxGroupData, CheckboxState, UiCheckboxApi };
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { type Machine, type MachineScope } from '../../runtime/state-machine';
|
|
2
|
+
import type { CheckboxControlProps, CheckboxGroupProps } from './contract';
|
|
3
|
+
type CheckboxState = 'unchecked' | 'checked' | 'indeterminate';
|
|
4
|
+
type CheckboxInheritance = {
|
|
5
|
+
name: string;
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
required: boolean;
|
|
8
|
+
invalid: boolean;
|
|
9
|
+
};
|
|
10
|
+
type CheckboxContext = {
|
|
11
|
+
selection: {
|
|
12
|
+
state: CheckboxState;
|
|
13
|
+
};
|
|
14
|
+
inherited: CheckboxInheritance;
|
|
15
|
+
};
|
|
16
|
+
type CheckboxGroupContext = {
|
|
17
|
+
inherited: CheckboxInheritance;
|
|
18
|
+
};
|
|
19
|
+
type CheckboxMachineEffects = {
|
|
20
|
+
sync(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
|
|
21
|
+
emitInput(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
|
|
22
|
+
emitChange(scope: MachineScope<CheckboxContext, CheckboxControlProps>): void;
|
|
23
|
+
};
|
|
24
|
+
type CheckboxGroupMachineEffects = {
|
|
25
|
+
sync(scope: MachineScope<CheckboxGroupContext, CheckboxGroupProps>): void;
|
|
26
|
+
};
|
|
27
|
+
declare const checkboxHooks: readonly [];
|
|
28
|
+
declare const checkboxGroupHooks: readonly [];
|
|
29
|
+
declare const EMPTY_INHERITANCE: CheckboxInheritance;
|
|
30
|
+
declare const checkboxStateFromProps: (props: CheckboxControlProps) => CheckboxState;
|
|
31
|
+
declare const createCheckboxMachine: ({ props, inherited, effects, }: {
|
|
32
|
+
props: CheckboxControlProps;
|
|
33
|
+
inherited?: CheckboxInheritance;
|
|
34
|
+
effects: CheckboxMachineEffects;
|
|
35
|
+
}) => Machine<CheckboxContext, CheckboxControlProps>;
|
|
36
|
+
declare const createCheckboxGroupMachine: ({ props, effects, }: {
|
|
37
|
+
props: CheckboxGroupProps;
|
|
38
|
+
effects: CheckboxGroupMachineEffects;
|
|
39
|
+
}) => Machine<CheckboxGroupContext, CheckboxGroupProps>;
|
|
40
|
+
export { checkboxGroupHooks, checkboxHooks, checkboxStateFromProps, createCheckboxGroupMachine, createCheckboxMachine, EMPTY_INHERITANCE, };
|
|
41
|
+
export type { CheckboxContext, CheckboxGroupContext, CheckboxGroupMachineEffects, CheckboxInheritance, CheckboxMachineEffects, CheckboxState, };
|
|
@@ -15,239 +15,60 @@ type TypographyColor = typeof TYPOGRAPHY_COLORS[number];
|
|
|
15
15
|
type IconColor = typeof ICON_COLORS[number];
|
|
16
16
|
declare const TYPOGRAPHY_COLOR_CLASSES: {
|
|
17
17
|
readonly inherit: "text-inherit";
|
|
18
|
-
readonly muted: "text-
|
|
19
|
-
readonly subtle: "text-
|
|
20
|
-
readonly accent: "text-accent-text";
|
|
21
|
-
readonly danger: "text-danger-text";
|
|
18
|
+
readonly muted: "text-surface-ink-muted";
|
|
19
|
+
readonly subtle: "text-surface-ink-muted";
|
|
20
|
+
readonly accent: "text-intent-accent-text";
|
|
21
|
+
readonly danger: "text-intent-danger-text";
|
|
22
22
|
};
|
|
23
23
|
declare const ICON_COLOR_CLASSES: {
|
|
24
24
|
readonly inherit: "text-current";
|
|
25
|
-
readonly muted: "text-
|
|
26
|
-
readonly subtle: "text-
|
|
27
|
-
readonly accent: "text-accent-text";
|
|
28
|
-
readonly danger: "text-danger-text";
|
|
25
|
+
readonly muted: "text-surface-ink-muted";
|
|
26
|
+
readonly subtle: "text-surface-ink-muted";
|
|
27
|
+
readonly accent: "text-intent-accent-text";
|
|
28
|
+
readonly danger: "text-intent-danger-text";
|
|
29
29
|
};
|
|
30
|
-
declare const LAYOUT_SPACES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
30
|
+
declare const LAYOUT_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"];
|
|
31
31
|
type LayoutSpace = typeof LAYOUT_SPACES[number];
|
|
32
|
-
declare const LAYOUT_GAP_CLASSES:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
readonly '8': "gap-8";
|
|
42
|
-
readonly '9': "gap-9";
|
|
43
|
-
};
|
|
44
|
-
declare const LAYOUT_GAP_X_CLASSES: {
|
|
45
|
-
readonly '0': "";
|
|
46
|
-
readonly '1': "gap-x-1";
|
|
47
|
-
readonly '2': "gap-x-2";
|
|
48
|
-
readonly '3': "gap-x-3";
|
|
49
|
-
readonly '4': "gap-x-4";
|
|
50
|
-
readonly '5': "gap-x-5";
|
|
51
|
-
readonly '6': "gap-x-6";
|
|
52
|
-
readonly '7': "gap-x-7";
|
|
53
|
-
readonly '8': "gap-x-8";
|
|
54
|
-
readonly '9': "gap-x-9";
|
|
55
|
-
};
|
|
56
|
-
declare const LAYOUT_GAP_Y_CLASSES: {
|
|
57
|
-
readonly '0': "";
|
|
58
|
-
readonly '1': "gap-y-1";
|
|
59
|
-
readonly '2': "gap-y-2";
|
|
60
|
-
readonly '3': "gap-y-3";
|
|
61
|
-
readonly '4': "gap-y-4";
|
|
62
|
-
readonly '5': "gap-y-5";
|
|
63
|
-
readonly '6': "gap-y-6";
|
|
64
|
-
readonly '7': "gap-y-7";
|
|
65
|
-
readonly '8': "gap-y-8";
|
|
66
|
-
readonly '9': "gap-y-9";
|
|
67
|
-
};
|
|
68
|
-
declare const LAYOUT_PADDING_CLASSES: {
|
|
69
|
-
readonly '0': "";
|
|
70
|
-
readonly '1': "p-1";
|
|
71
|
-
readonly '2': "p-2";
|
|
72
|
-
readonly '3': "p-3";
|
|
73
|
-
readonly '4': "p-4";
|
|
74
|
-
readonly '5': "p-5";
|
|
75
|
-
readonly '6': "p-6";
|
|
76
|
-
readonly '7': "p-7";
|
|
77
|
-
readonly '8': "p-8";
|
|
78
|
-
readonly '9': "p-9";
|
|
79
|
-
};
|
|
80
|
-
declare const LAYOUT_PADDING_X_CLASSES: {
|
|
81
|
-
readonly '0': "";
|
|
82
|
-
readonly '1': "px-1";
|
|
83
|
-
readonly '2': "px-2";
|
|
84
|
-
readonly '3': "px-3";
|
|
85
|
-
readonly '4': "px-4";
|
|
86
|
-
readonly '5': "px-5";
|
|
87
|
-
readonly '6': "px-6";
|
|
88
|
-
readonly '7': "px-7";
|
|
89
|
-
readonly '8': "px-8";
|
|
90
|
-
readonly '9': "px-9";
|
|
91
|
-
};
|
|
92
|
-
declare const LAYOUT_PADDING_Y_CLASSES: {
|
|
93
|
-
readonly '0': "";
|
|
94
|
-
readonly '1': "py-1";
|
|
95
|
-
readonly '2': "py-2";
|
|
96
|
-
readonly '3': "py-3";
|
|
97
|
-
readonly '4': "py-4";
|
|
98
|
-
readonly '5': "py-5";
|
|
99
|
-
readonly '6': "py-6";
|
|
100
|
-
readonly '7': "py-7";
|
|
101
|
-
readonly '8': "py-8";
|
|
102
|
-
readonly '9': "py-9";
|
|
103
|
-
};
|
|
104
|
-
declare const LAYOUT_MARGIN_CLASSES: {
|
|
105
|
-
readonly '0': "";
|
|
106
|
-
readonly '1': "m-1";
|
|
107
|
-
readonly '2': "m-2";
|
|
108
|
-
readonly '3': "m-3";
|
|
109
|
-
readonly '4': "m-4";
|
|
110
|
-
readonly '5': "m-5";
|
|
111
|
-
readonly '6': "m-6";
|
|
112
|
-
readonly '7': "m-7";
|
|
113
|
-
readonly '8': "m-8";
|
|
114
|
-
readonly '9': "m-9";
|
|
115
|
-
};
|
|
116
|
-
declare const LAYOUT_MARGIN_X_CLASSES: {
|
|
117
|
-
readonly '0': "";
|
|
118
|
-
readonly '1': "mx-1";
|
|
119
|
-
readonly '2': "mx-2";
|
|
120
|
-
readonly '3': "mx-3";
|
|
121
|
-
readonly '4': "mx-4";
|
|
122
|
-
readonly '5': "mx-5";
|
|
123
|
-
readonly '6': "mx-6";
|
|
124
|
-
readonly '7': "mx-7";
|
|
125
|
-
readonly '8': "mx-8";
|
|
126
|
-
readonly '9': "mx-9";
|
|
127
|
-
};
|
|
128
|
-
declare const LAYOUT_MARGIN_Y_CLASSES: {
|
|
129
|
-
readonly '0': "";
|
|
130
|
-
readonly '1': "my-1";
|
|
131
|
-
readonly '2': "my-2";
|
|
132
|
-
readonly '3': "my-3";
|
|
133
|
-
readonly '4': "my-4";
|
|
134
|
-
readonly '5': "my-5";
|
|
135
|
-
readonly '6': "my-6";
|
|
136
|
-
readonly '7': "my-7";
|
|
137
|
-
readonly '8': "my-8";
|
|
138
|
-
readonly '9': "my-9";
|
|
139
|
-
};
|
|
32
|
+
declare const LAYOUT_GAP_CLASSES: Record<"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", string>;
|
|
33
|
+
declare const LAYOUT_GAP_X_CLASSES: Record<"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", string>;
|
|
34
|
+
declare const LAYOUT_GAP_Y_CLASSES: Record<"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", string>;
|
|
35
|
+
declare const LAYOUT_PADDING_CLASSES: Record<"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", string>;
|
|
36
|
+
declare const LAYOUT_PADDING_X_CLASSES: Record<"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", string>;
|
|
37
|
+
declare const LAYOUT_PADDING_Y_CLASSES: Record<"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", string>;
|
|
38
|
+
declare const LAYOUT_MARGIN_CLASSES: Record<"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", string>;
|
|
39
|
+
declare const LAYOUT_MARGIN_X_CLASSES: Record<"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", string>;
|
|
40
|
+
declare const LAYOUT_MARGIN_Y_CLASSES: Record<"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", string>;
|
|
140
41
|
declare const COMPONENT_RADII: readonly ["none", "xs", "sm", "md", "lg", "full"];
|
|
141
|
-
declare const
|
|
142
|
-
declare const
|
|
143
|
-
declare const
|
|
144
|
-
type
|
|
145
|
-
type
|
|
146
|
-
type
|
|
147
|
-
declare const
|
|
148
|
-
readonly none: "bg-transparent text-inherit";
|
|
149
|
-
readonly app: "bg-app text-foreground";
|
|
150
|
-
readonly chrome: "bg-chrome text-foreground";
|
|
151
|
-
readonly subtle: "bg-surface-subtle text-foreground";
|
|
152
|
-
readonly panel: "bg-surface-panel text-foreground";
|
|
153
|
-
readonly raised: "bg-surface-raised text-foreground";
|
|
154
|
-
readonly overlay: "bg-surface-overlay text-foreground";
|
|
155
|
-
readonly accent: "bg-surface-accent text-surface-accent-fg";
|
|
156
|
-
readonly inverse: "bg-surface-inverse text-surface-inverse-fg";
|
|
157
|
-
};
|
|
158
|
-
declare const SURFACE_TONE_CLASSES: {
|
|
159
|
-
readonly solid: "";
|
|
160
|
-
readonly alpha: "";
|
|
161
|
-
};
|
|
162
|
-
declare const SURFACE_ALPHA_COMPOUNDS: readonly [{
|
|
163
|
-
readonly when: {
|
|
164
|
-
readonly surface: "chrome";
|
|
165
|
-
readonly tone: "alpha";
|
|
166
|
-
};
|
|
167
|
-
readonly class: "bg-chrome-alpha";
|
|
168
|
-
}, {
|
|
169
|
-
readonly when: {
|
|
170
|
-
readonly surface: "panel";
|
|
171
|
-
readonly tone: "alpha";
|
|
172
|
-
};
|
|
173
|
-
readonly class: "bg-surface-panel-alpha";
|
|
174
|
-
}, {
|
|
175
|
-
readonly when: {
|
|
176
|
-
readonly surface: "overlay";
|
|
177
|
-
readonly tone: "alpha";
|
|
178
|
-
};
|
|
179
|
-
readonly class: "bg-surface-overlay-alpha";
|
|
180
|
-
}];
|
|
42
|
+
declare const ABSOLUTE_SURFACE_REFERENCES: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|
43
|
+
declare const SURFACE_REFERENCES: readonly ["inherit", "0", "1", "2", "3", "4", "5", "6", "7", "8", "+1", "+2", "+3", "+4", "+5", "+6", "+7", "+8"];
|
|
44
|
+
declare const ELEVATION_REFERENCES: readonly ["none", "match", "1", "2", "3", "4", "5", "6", "7", "8"];
|
|
45
|
+
type SurfaceReference = typeof SURFACE_REFERENCES[number];
|
|
46
|
+
type AbsoluteSurfaceReference = typeof ABSOLUTE_SURFACE_REFERENCES[number];
|
|
47
|
+
type ElevationReference = typeof ELEVATION_REFERENCES[number];
|
|
48
|
+
declare const elevationReferenceClasses: (property: `--${string}`) => Record<ElevationReference, string>;
|
|
181
49
|
declare const SURFACE_RADIUS_CLASSES: {
|
|
182
50
|
readonly none: "";
|
|
183
|
-
readonly xs: "rounded-
|
|
184
|
-
readonly sm: "rounded-
|
|
185
|
-
readonly md: "rounded-
|
|
186
|
-
readonly lg: "rounded-
|
|
187
|
-
readonly full: "rounded-
|
|
188
|
-
};
|
|
189
|
-
declare const ELEVATION_CLASSES: {
|
|
190
|
-
readonly none: "shadow-none";
|
|
191
|
-
readonly '1': "shadow-1";
|
|
192
|
-
readonly '2': "shadow-2";
|
|
193
|
-
readonly '3': "shadow-3";
|
|
194
|
-
readonly '4': "shadow-4";
|
|
195
|
-
readonly '5': "shadow-5";
|
|
196
|
-
readonly '6': "shadow-6";
|
|
51
|
+
readonly xs: "rounded-surface-xs";
|
|
52
|
+
readonly sm: "rounded-surface-sm";
|
|
53
|
+
readonly md: "rounded-surface-md";
|
|
54
|
+
readonly lg: "rounded-surface-lg";
|
|
55
|
+
readonly full: "rounded-full";
|
|
197
56
|
};
|
|
198
|
-
declare const
|
|
199
|
-
readonly
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
readonly
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
readonly lg: "rounded-3";
|
|
213
|
-
readonly full: "rounded-full";
|
|
214
|
-
};
|
|
215
|
-
readonly md: {
|
|
216
|
-
readonly none: "";
|
|
217
|
-
readonly xs: "rounded-1";
|
|
218
|
-
readonly sm: "rounded-2";
|
|
219
|
-
readonly md: "rounded-3";
|
|
220
|
-
readonly lg: "rounded-4";
|
|
221
|
-
readonly full: "rounded-full";
|
|
222
|
-
};
|
|
223
|
-
readonly lg: {
|
|
224
|
-
readonly none: "";
|
|
225
|
-
readonly xs: "rounded-2";
|
|
226
|
-
readonly sm: "rounded-3";
|
|
227
|
-
readonly md: "rounded-4";
|
|
228
|
-
readonly lg: "rounded-5";
|
|
229
|
-
readonly full: "rounded-full";
|
|
230
|
-
};
|
|
231
|
-
readonly xlg: {
|
|
232
|
-
readonly none: "";
|
|
233
|
-
readonly xs: "rounded-2";
|
|
234
|
-
readonly sm: "rounded-3";
|
|
235
|
-
readonly md: "rounded-4";
|
|
236
|
-
readonly lg: "rounded-5";
|
|
237
|
-
readonly full: "rounded-full";
|
|
238
|
-
};
|
|
239
|
-
};
|
|
240
|
-
type ControlRadiusCompound = {
|
|
241
|
-
when: {
|
|
242
|
-
size: typeof CONTROL_SIZES[number];
|
|
243
|
-
radius: typeof COMPONENT_RADII[number];
|
|
244
|
-
};
|
|
245
|
-
class: string;
|
|
57
|
+
declare const CONTROL_RADIUS_CLASSES: {
|
|
58
|
+
readonly none: "";
|
|
59
|
+
readonly xs: "rounded-control-xs";
|
|
60
|
+
readonly sm: "rounded-control-sm";
|
|
61
|
+
readonly md: "rounded-control-md";
|
|
62
|
+
readonly lg: "rounded-control-lg";
|
|
63
|
+
readonly full: "rounded-full";
|
|
64
|
+
};
|
|
65
|
+
declare const CONTROL_TYPOGRAPHY_CLASSES: {
|
|
66
|
+
readonly xs: "font-control text-control-xs [font-weight:var(--font-weight-control-xs)]";
|
|
67
|
+
readonly sm: "font-control text-control-sm [font-weight:var(--font-weight-control-sm)]";
|
|
68
|
+
readonly md: "font-control text-control-md [font-weight:var(--font-weight-control-md)]";
|
|
69
|
+
readonly lg: "font-control text-control-lg [font-weight:var(--font-weight-control-lg)]";
|
|
70
|
+
readonly xlg: "font-control text-control-xlg [font-weight:var(--font-weight-control-xlg)]";
|
|
246
71
|
};
|
|
247
|
-
declare const CONTROL_RADIUS_COMPOUNDS: ControlRadiusCompound[];
|
|
248
|
-
declare const CONTROL_ROOT_CLASSES: string[];
|
|
249
|
-
declare const CONTROL_MULTILINE_ROOT_CLASSES: string[];
|
|
250
|
-
declare const CONTROL_OPEN_CLASSES: string[];
|
|
251
72
|
declare const CONTROL_SIZE_CLASSES: {
|
|
252
73
|
xs: string;
|
|
253
74
|
sm: string;
|
|
@@ -269,17 +90,14 @@ declare const CONTROL_MULTILINE_SIZE_CLASSES: {
|
|
|
269
90
|
lg: string;
|
|
270
91
|
xlg: string;
|
|
271
92
|
};
|
|
272
|
-
declare const
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
declare const
|
|
277
|
-
declare const
|
|
278
|
-
declare const CONTROL_NATIVE_CLASSES: string[];
|
|
279
|
-
declare const POPOVER_SURFACE_CLASSES: string[];
|
|
93
|
+
declare const FIELD_CONTROL_ROOT_CLASSES: string[];
|
|
94
|
+
declare const FIELD_CONTROL_MULTILINE_ROOT_CLASSES: string[];
|
|
95
|
+
declare const FIELD_CONTROL_INPUT_CLASSES: string[];
|
|
96
|
+
declare const FIELD_CONTROL_ACTION_CLASSES: string[];
|
|
97
|
+
declare const FIELD_CONTROL_NATIVE_CLASSES: string[];
|
|
98
|
+
declare const POPOVER_GEOMETRY_CLASSES: string[];
|
|
280
99
|
declare const INTERACTIVE_ITEM_CLASSES: string[];
|
|
281
|
-
declare const
|
|
282
|
-
declare const OPTION_ITEM_CLASSES: (string | string[])[];
|
|
100
|
+
declare const OPTION_ITEM_CLASSES: string[];
|
|
283
101
|
declare const OPTION_ICON_CLASSES = "size-icon shrink-0 fill-current text-current opacity-70";
|
|
284
102
|
declare const OPTION_INDICATOR_CLASSES = "ml-auto size-icon shrink-0 fill-current text-current opacity-0 data-selected:opacity-100";
|
|
285
103
|
type ControlSize = typeof CONTROL_SIZES[number];
|
|
@@ -294,5 +112,5 @@ type IndicatorPlacement = typeof INDICATOR_PLACEMENTS[number];
|
|
|
294
112
|
type DefaultVariant = typeof DEFAULT_VARIANTS[number];
|
|
295
113
|
type HeadingLevel = typeof HEADING_LEVELS[number];
|
|
296
114
|
type ComponentRadius = typeof COMPONENT_RADII[number];
|
|
297
|
-
export { ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII,
|
|
298
|
-
export type { Alignment, CommonButtonType, ComponentRadius, ControlSize, ControlVariant, DefaultVariant, EdgePosition, HeadingLevel, IconColor, IconVariant, IndicatorPlacement, LayoutSpace, Orientation, Position,
|
|
115
|
+
export { ABSOLUTE_SURFACE_REFERENCES, ALIGNMENTS, BUTTON_TYPES, COMPONENT_RADII, CONTROL_RADIUS_CLASSES, CONTROL_MIN_SIZE_CLASSES, CONTROL_MULTILINE_SIZE_CLASSES, CONTROL_SIZES, CONTROL_SIZE_CLASSES, CONTROL_TYPOGRAPHY_CLASSES, CONTROL_VARIANTS, DEFAULT_VARIANTS, EDGE_POSITIONS, ELEVATION_REFERENCES, FIELD_CONTROL_ACTION_CLASSES, FIELD_CONTROL_INPUT_CLASSES, FIELD_CONTROL_MULTILINE_ROOT_CLASSES, FIELD_CONTROL_NATIVE_CLASSES, FIELD_CONTROL_ROOT_CLASSES, elevationReferenceClasses, HEADING_LEVELS, ICON_COLORS, ICON_COLOR_CLASSES, ICON_VARIANTS, INDICATOR_PLACEMENTS, INTERACTIVE_ITEM_CLASSES, LAYOUT_GAP_CLASSES, LAYOUT_GAP_X_CLASSES, LAYOUT_GAP_Y_CLASSES, LAYOUT_MARGIN_CLASSES, LAYOUT_MARGIN_X_CLASSES, LAYOUT_MARGIN_Y_CLASSES, LAYOUT_PADDING_CLASSES, LAYOUT_PADDING_X_CLASSES, LAYOUT_PADDING_Y_CLASSES, LAYOUT_SPACES, OPTION_ICON_CLASSES, OPTION_INDICATOR_CLASSES, OPTION_ITEM_CLASSES, ORIENTATIONS, POPOVER_GEOMETRY_CLASSES, POSITIONS, SURFACE_RADIUS_CLASSES, SURFACE_REFERENCES, TYPOGRAPHY_COLOR_CLASSES, TYPOGRAPHY_COLORS, };
|
|
116
|
+
export type { AbsoluteSurfaceReference, Alignment, CommonButtonType, ComponentRadius, ControlSize, ControlVariant, DefaultVariant, EdgePosition, ElevationReference, HeadingLevel, IconColor, IconVariant, IndicatorPlacement, LayoutSpace, Orientation, Position, SurfaceReference, TypographyColor, };
|