@tamagui/demos 1.26.1 → 1.27.0-1684260142805

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 (71) hide show
  1. package/dist/cjs/ButtonHeadlessDemo.js +110 -0
  2. package/dist/cjs/ButtonHeadlessDemo.js.map +6 -0
  3. package/dist/cjs/ButtonSimpleDemo.js +49 -0
  4. package/dist/cjs/ButtonSimpleDemo.js.map +6 -0
  5. package/dist/cjs/SheetDemo.js.map +1 -1
  6. package/dist/esm/ButtonHeadlessDemo.js +93 -0
  7. package/dist/esm/ButtonHeadlessDemo.js.map +6 -0
  8. package/dist/esm/{ButtonDemo.mjs → ButtonSimpleDemo.js} +3 -3
  9. package/dist/esm/ButtonSimpleDemo.js.map +6 -0
  10. package/dist/esm/SheetDemo.js.map +1 -1
  11. package/dist/jsx/ButtonHeadlessDemo.js +92 -0
  12. package/dist/jsx/ButtonHeadlessDemo.js.map +6 -0
  13. package/dist/jsx/ButtonHeadlessDemo.mjs.map +6 -0
  14. package/dist/jsx/ButtonSimpleDemo.js +24 -0
  15. package/dist/jsx/ButtonSimpleDemo.js.map +6 -0
  16. package/dist/jsx/ButtonSimpleDemo.mjs.map +6 -0
  17. package/dist/jsx/SheetDemo.js.map +1 -1
  18. package/dist/jsx/SheetDemo.mjs.map +1 -1
  19. package/package.json +18 -18
  20. package/src/SheetDemo.tsx +1 -1
  21. package/types/ButtonHeadlessDemo.d.ts.map +1 -0
  22. package/types/ButtonSimpleDemo.d.ts.map +1 -0
  23. package/dist/esm/AddThemeDemo.mjs +0 -36
  24. package/dist/esm/AlertDialogDemo.mjs +0 -53
  25. package/dist/esm/AnimationsDemo.mjs +0 -89
  26. package/dist/esm/AnimationsEnterDemo.mjs +0 -40
  27. package/dist/esm/AnimationsHoverDemo.mjs +0 -27
  28. package/dist/esm/AnimationsPresenceDemo.mjs +0 -73
  29. package/dist/esm/AnimationsTimingDemo.mjs +0 -26
  30. package/dist/esm/AvatarDemo.mjs +0 -30
  31. package/dist/esm/ButtonNewDemo.mjs +0 -31
  32. package/dist/esm/CardDemo.mjs +0 -48
  33. package/dist/esm/CheckboxDemo.mjs +0 -22
  34. package/dist/esm/ColorsDemo.mjs +0 -98
  35. package/dist/esm/DialogDemo.mjs +0 -84
  36. package/dist/esm/FormsDemo.mjs +0 -36
  37. package/dist/esm/GroupDemo.mjs +0 -25
  38. package/dist/esm/HeadingsDemo.mjs +0 -16
  39. package/dist/esm/ImageDemo.mjs +0 -18
  40. package/dist/esm/InputsDemo.mjs +0 -31
  41. package/dist/esm/LabelDemo.mjs +0 -18
  42. package/dist/esm/LinearGradientDemo.mjs +0 -33
  43. package/dist/esm/ListItemDemo.mjs +0 -47
  44. package/dist/esm/LucideIconsDemo.mjs +0 -52
  45. package/dist/esm/PopoverDemo.mjs +0 -76
  46. package/dist/esm/ProgressDemo.mjs +0 -59
  47. package/dist/esm/RadioGroupDemo.mjs +0 -21
  48. package/dist/esm/ReplaceThemeDemo.mjs +0 -49
  49. package/dist/esm/ScrollViewDemo.mjs +0 -18
  50. package/dist/esm/SelectDemo.mjs +0 -137
  51. package/dist/esm/SeparatorDemo.mjs +0 -20
  52. package/dist/esm/ShapesDemo.mjs +0 -12
  53. package/dist/esm/SheetDemo.mjs +0 -91
  54. package/dist/esm/SliderDemo.mjs +0 -19
  55. package/dist/esm/SpinnerDemo.mjs +0 -12
  56. package/dist/esm/StacksDemo.mjs +0 -58
  57. package/dist/esm/SwitchDemo.mjs +0 -33
  58. package/dist/esm/TabsAdvancedDemo.mjs +0 -283
  59. package/dist/esm/TabsDemo.mjs +0 -141
  60. package/dist/esm/TextDemo.mjs +0 -16
  61. package/dist/esm/ThemeInverseDemo.mjs +0 -42
  62. package/dist/esm/ToastDemo.mjs +0 -101
  63. package/dist/esm/ToastDuplicateDemo.mjs +0 -44
  64. package/dist/esm/ToggleGroupDemo.mjs +0 -49
  65. package/dist/esm/TokensDemo.mjs +0 -87
  66. package/dist/esm/TooltipDemo.mjs +0 -68
  67. package/dist/esm/UpdateThemeDemo.mjs +0 -56
  68. package/dist/esm/conf.mjs +0 -5
  69. package/dist/esm/index.mjs +0 -48
  70. package/dist/esm/tamagui.config.mjs +0 -6
  71. package/dist/esm/useOnIntersecting.mjs +0 -68
@@ -1,18 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Circle, ScrollView, Square, XStack } from "tamagui";
3
- function ScrollViewDemo() {
4
- return /* @__PURE__ */ jsx(ScrollView, { maxHeight: 250, width: "75%", backgroundColor: "$background", padding: "$4", borderRadius: "$4", children: /* @__PURE__ */ jsxs(XStack, { flexWrap: "wrap", alignItems: "center", justifyContent: "center", children: [
5
- /* @__PURE__ */ jsx(Square, { margin: "$4", size: 120, backgroundColor: "$red9" }),
6
- /* @__PURE__ */ jsx(Circle, { margin: "$4", size: 120, backgroundColor: "$orange9" }),
7
- /* @__PURE__ */ jsx(Square, { margin: "$4", size: 120, backgroundColor: "$yellow9" }),
8
- /* @__PURE__ */ jsx(Circle, { margin: "$4", size: 120, backgroundColor: "$green9" }),
9
- /* @__PURE__ */ jsx(Square, { margin: "$4", size: 120, backgroundColor: "$blue9" }),
10
- /* @__PURE__ */ jsx(Circle, { margin: "$4", size: 120, backgroundColor: "$purple9" }),
11
- /* @__PURE__ */ jsx(Square, { margin: "$4", size: 120, backgroundColor: "$pink9" }),
12
- /* @__PURE__ */ jsx(Circle, { margin: "$4", size: 120, backgroundColor: "$red9" })
13
- ] }) });
14
- }
15
- export {
16
- ScrollViewDemo
17
- };
18
- //# sourceMappingURL=ScrollViewDemo.mjs.map
@@ -1,137 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Check, ChevronDown, ChevronUp } from "@tamagui/lucide-icons";
3
- import { useState } from "react";
4
- import {
5
- Adapt,
6
- Label,
7
- Select,
8
- Sheet,
9
- XStack,
10
- YStack,
11
- getFontSize
12
- } from "tamagui";
13
- import { LinearGradient } from "tamagui/linear-gradient";
14
- function SelectDemo() {
15
- return /* @__PURE__ */ jsxs(YStack, { space: true, children: [
16
- /* @__PURE__ */ jsxs(XStack, { ai: "center", space: true, children: [
17
- /* @__PURE__ */ jsx(Label, { f: 1, fb: 0, children: "Custom" }),
18
- /* @__PURE__ */ jsx(SelectDemoItem, {})
19
- ] }),
20
- /* @__PURE__ */ jsxs(XStack, { ai: "center", space: true, children: [
21
- /* @__PURE__ */ jsx(Label, { f: 1, fb: 0, children: "Native" }),
22
- /* @__PURE__ */ jsx(SelectDemoItem, { native: true })
23
- ] })
24
- ] });
25
- }
26
- function SelectDemoItem(props) {
27
- const [val, setVal] = useState("apple");
28
- return /* @__PURE__ */ jsxs(Select, { id: "food", value: val, onValueChange: setVal, ...props, children: [
29
- /* @__PURE__ */ jsx(Select.Trigger, { width: 180, iconAfter: ChevronDown, children: /* @__PURE__ */ jsx(Select.Value, { placeholder: "Something" }) }),
30
- /* @__PURE__ */ jsx(Adapt, { when: "sm", platform: "touch", children: /* @__PURE__ */ jsxs(Sheet, { native: true, modal: true, dismissOnSnapToBottom: true, children: [
31
- /* @__PURE__ */ jsx(Sheet.Frame, { children: /* @__PURE__ */ jsx(Sheet.ScrollView, { children: /* @__PURE__ */ jsx(Adapt.Contents, {}) }) }),
32
- /* @__PURE__ */ jsx(Sheet.Overlay, {})
33
- ] }) }),
34
- /* @__PURE__ */ jsxs(Select.Content, { zIndex: 2e5, children: [
35
- /* @__PURE__ */ jsxs(
36
- Select.ScrollUpButton,
37
- {
38
- alignItems: "center",
39
- justifyContent: "center",
40
- position: "relative",
41
- width: "100%",
42
- height: "$3",
43
- children: [
44
- /* @__PURE__ */ jsx(YStack, { zIndex: 10, children: /* @__PURE__ */ jsx(ChevronUp, { size: 20 }) }),
45
- /* @__PURE__ */ jsx(
46
- LinearGradient,
47
- {
48
- start: [0, 0],
49
- end: [0, 1],
50
- fullscreen: true,
51
- colors: ["$background", "$backgroundTransparent"],
52
- borderRadius: "$4"
53
- }
54
- )
55
- ]
56
- }
57
- ),
58
- /* @__PURE__ */ jsx(Select.Viewport, { minWidth: 200, children: /* @__PURE__ */ jsxs(XStack, { children: [
59
- /* @__PURE__ */ jsxs(Select.Group, { space: "$0", children: [
60
- /* @__PURE__ */ jsx(Select.Label, { children: "Fruits" }),
61
- items.map((item, i) => {
62
- return /* @__PURE__ */ jsxs(Select.Item, { index: i, value: item.name.toLowerCase(), children: [
63
- /* @__PURE__ */ jsx(Select.ItemText, { children: item.name }),
64
- /* @__PURE__ */ jsx(Select.ItemIndicator, { marginLeft: "auto", children: /* @__PURE__ */ jsx(Check, { size: 16 }) })
65
- ] }, item.name);
66
- })
67
- ] }),
68
- props.native && /* @__PURE__ */ jsx(
69
- YStack,
70
- {
71
- position: "absolute",
72
- right: 0,
73
- top: 0,
74
- bottom: 0,
75
- alignItems: "center",
76
- justifyContent: "center",
77
- width: "$4",
78
- pointerEvents: "none",
79
- children: /* @__PURE__ */ jsx(ChevronDown, { size: getFontSize(props.size ?? "$true") })
80
- }
81
- )
82
- ] }) }),
83
- /* @__PURE__ */ jsxs(
84
- Select.ScrollDownButton,
85
- {
86
- alignItems: "center",
87
- justifyContent: "center",
88
- position: "relative",
89
- width: "100%",
90
- height: "$3",
91
- children: [
92
- /* @__PURE__ */ jsx(YStack, { zIndex: 10, children: /* @__PURE__ */ jsx(ChevronDown, { size: 20 }) }),
93
- /* @__PURE__ */ jsx(
94
- LinearGradient,
95
- {
96
- start: [0, 0],
97
- end: [0, 1],
98
- fullscreen: true,
99
- colors: ["$backgroundTransparent", "$background"],
100
- borderRadius: "$4"
101
- }
102
- )
103
- ]
104
- }
105
- )
106
- ] })
107
- ] });
108
- }
109
- const items = [
110
- { name: "Apple" },
111
- { name: "Pear" },
112
- { name: "Blackberry" },
113
- { name: "Peach" },
114
- { name: "Apricot" },
115
- { name: "Melon" },
116
- { name: "Honeydew" },
117
- { name: "Starfruit" },
118
- { name: "Blueberry" },
119
- { name: "Raspberry" },
120
- { name: "Strawberry" },
121
- { name: "Mango" },
122
- { name: "Pineapple" },
123
- { name: "Lime" },
124
- { name: "Lemon" },
125
- { name: "Coconut" },
126
- { name: "Guava" },
127
- { name: "Papaya" },
128
- { name: "Orange" },
129
- { name: "Grape" },
130
- { name: "Jackfruit" },
131
- { name: "Durian" }
132
- ];
133
- export {
134
- SelectDemo,
135
- SelectDemoItem
136
- };
137
- //# sourceMappingURL=SelectDemo.mjs.map
@@ -1,20 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Paragraph, Separator, XStack, YStack } from "tamagui";
3
- function SeparatorDemo() {
4
- return /* @__PURE__ */ jsxs(YStack, { width: "100%", maxWidth: 300, marginHorizontal: 15, children: [
5
- /* @__PURE__ */ jsx(Paragraph, { fontWeight: "800", children: "Tamagui" }),
6
- /* @__PURE__ */ jsx(Paragraph, { children: "A cross-platform component library." }),
7
- /* @__PURE__ */ jsx(Separator, { marginVertical: 15 }),
8
- /* @__PURE__ */ jsxs(XStack, { height: 20, alignItems: "center", children: [
9
- /* @__PURE__ */ jsx(Paragraph, { children: "Blog" }),
10
- /* @__PURE__ */ jsx(Separator, { alignSelf: "stretch", vertical: true, marginHorizontal: 15 }),
11
- /* @__PURE__ */ jsx(Paragraph, { children: "Docs" }),
12
- /* @__PURE__ */ jsx(Separator, { alignSelf: "stretch", vertical: true, marginHorizontal: 15 }),
13
- /* @__PURE__ */ jsx(Paragraph, { children: "Source" })
14
- ] })
15
- ] });
16
- }
17
- export {
18
- SeparatorDemo
19
- };
20
- //# sourceMappingURL=SeparatorDemo.mjs.map
@@ -1,12 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Circle, Square, XStack } from "tamagui";
3
- function ShapesDemo() {
4
- return /* @__PURE__ */ jsxs(XStack, { padding: "$2", space: "$4", children: [
5
- /* @__PURE__ */ jsx(Square, { size: 100, backgroundColor: "$color", elevation: "$4" }),
6
- /* @__PURE__ */ jsx(Circle, { size: 100, backgroundColor: "$color", elevation: "$4" })
7
- ] });
8
- }
9
- export {
10
- ShapesDemo
11
- };
12
- //# sourceMappingURL=ShapesDemo.mjs.map
@@ -1,91 +0,0 @@
1
- import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
- import { ChevronDown, ChevronUp } from "@tamagui/lucide-icons";
3
- import { Sheet } from "@tamagui/sheet";
4
- import { useState } from "react";
5
- import { Button, H1, H2, Input, Paragraph, XStack } from "tamagui";
6
- const SheetDemo = () => {
7
- const [position, setPosition] = useState(0);
8
- const [open, setOpen] = useState(false);
9
- const [modal, setModal] = useState(false);
10
- const [innerOpen, setInnerOpen] = useState(false);
11
- return /* @__PURE__ */ jsxs(Fragment, { children: [
12
- /* @__PURE__ */ jsxs(XStack, { space: true, children: [
13
- /* @__PURE__ */ jsx(Button, { onPress: () => setOpen(true), children: "Open" }),
14
- /* @__PURE__ */ jsx(Button, { onPress: () => setModal((x) => !x), children: modal ? "Type: Modal" : "Type: Inline" })
15
- ] }),
16
- /* @__PURE__ */ jsxs(
17
- Sheet,
18
- {
19
- forceRemoveScrollEnabled: open,
20
- modal,
21
- open,
22
- onOpenChange: setOpen,
23
- snapPoints: [85, 50, 25],
24
- dismissOnSnapToBottom: true,
25
- position,
26
- onPositionChange: setPosition,
27
- zIndex: 1e5,
28
- animation: "bouncy",
29
- native: true,
30
- children: [
31
- /* @__PURE__ */ jsx(Sheet.Overlay, {}),
32
- /* @__PURE__ */ jsx(Sheet.Handle, {}),
33
- /* @__PURE__ */ jsxs(
34
- Sheet.Frame,
35
- {
36
- flex: 1,
37
- padding: "$4",
38
- justifyContent: "center",
39
- alignItems: "center",
40
- space: "$5",
41
- children: [
42
- /* @__PURE__ */ jsx(Button, { size: "$6", circular: true, icon: ChevronDown, onPress: () => setOpen(false) }),
43
- /* @__PURE__ */ jsx(Input, { width: 200 }),
44
- modal && /* @__PURE__ */ jsxs(Fragment, { children: [
45
- /* @__PURE__ */ jsx(InnerSheet, { open: innerOpen, onOpenChange: setInnerOpen }),
46
- /* @__PURE__ */ jsx(
47
- Button,
48
- {
49
- size: "$6",
50
- circular: true,
51
- icon: ChevronUp,
52
- onPress: () => setInnerOpen(true)
53
- }
54
- )
55
- ] })
56
- ]
57
- }
58
- )
59
- ]
60
- }
61
- )
62
- ] });
63
- };
64
- function InnerSheet(props) {
65
- return /* @__PURE__ */ jsxs(Sheet, { modal: true, snapPoints: [90], dismissOnSnapToBottom: true, ...props, children: [
66
- /* @__PURE__ */ jsx(Sheet.Overlay, {}),
67
- /* @__PURE__ */ jsx(Sheet.Handle, {}),
68
- /* @__PURE__ */ jsx(Sheet.Frame, { flex: 1, justifyContent: "center", alignItems: "center", space: "$5", children: /* @__PURE__ */ jsxs(Sheet.ScrollView, { padding: "$4", space: true, children: [
69
- /* @__PURE__ */ jsx(
70
- Button,
71
- {
72
- size: "$8",
73
- circular: true,
74
- alignSelf: "center",
75
- icon: ChevronDown,
76
- onPress: () => {
77
- var _a;
78
- return (_a = props.onOpenChange) == null ? void 0 : _a.call(props, false);
79
- }
80
- }
81
- ),
82
- /* @__PURE__ */ jsx(H1, { children: "Hello world" }),
83
- /* @__PURE__ */ jsx(H2, { children: "You can scroll me" }),
84
- [1, 2, 3].map((i) => /* @__PURE__ */ jsx(Paragraph, { size: "$10", children: "Eu officia sunt ipsum nisi dolore labore est laborum laborum in esse ad pariatur. Dolor excepteur esse deserunt voluptate labore ea. Exercitation ipsum deserunt occaecat cupidatat consequat est adipisicing velit cupidatat ullamco veniam aliquip reprehenderit officia. Officia labore culpa ullamco velit. In sit occaecat velit ipsum fugiat esse aliqua dolor sint." }, i))
85
- ] }) })
86
- ] });
87
- }
88
- export {
89
- SheetDemo
90
- };
91
- //# sourceMappingURL=SheetDemo.mjs.map
@@ -1,19 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Slider, XStack } from "tamagui";
3
- function SliderDemo() {
4
- return /* @__PURE__ */ jsxs(XStack, { height: 200, alignItems: "center", space: "$8", children: [
5
- /* @__PURE__ */ jsx(SimpleSlider, { height: 200, orientation: "vertical" }),
6
- /* @__PURE__ */ jsx(SimpleSlider, { width: 200 })
7
- ] });
8
- }
9
- function SimpleSlider({ children, ...props }) {
10
- return /* @__PURE__ */ jsxs(Slider, { defaultValue: [50], max: 100, step: 1, ...props, children: [
11
- /* @__PURE__ */ jsx(Slider.Track, { children: /* @__PURE__ */ jsx(Slider.TrackActive, {}) }),
12
- /* @__PURE__ */ jsx(Slider.Thumb, { index: 0, circular: true, elevate: true }),
13
- children
14
- ] });
15
- }
16
- export {
17
- SliderDemo
18
- };
19
- //# sourceMappingURL=SliderDemo.mjs.map
@@ -1,12 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Spinner, YStack } from "tamagui";
3
- function SpinnerDemo() {
4
- return /* @__PURE__ */ jsxs(YStack, { padding: "$3", space: "$4", alignItems: "center", children: [
5
- /* @__PURE__ */ jsx(Spinner, { size: "small", color: "$green10" }),
6
- /* @__PURE__ */ jsx(Spinner, { size: "large", color: "$orange10" })
7
- ] });
8
- }
9
- export {
10
- SpinnerDemo
11
- };
12
- //# sourceMappingURL=SpinnerDemo.mjs.map
@@ -1,58 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { XStack, YStack, ZStack } from "tamagui";
3
- function StacksDemo() {
4
- return /* @__PURE__ */ jsxs(XStack, { maxWidth: 250, padding: "$2", alignSelf: "center", space: true, children: [
5
- /* @__PURE__ */ jsxs(
6
- YStack,
7
- {
8
- flex: 1,
9
- space: "$2",
10
- borderWidth: 2,
11
- borderColor: "$color",
12
- borderRadius: "$4",
13
- padding: "$2",
14
- children: [
15
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" }),
16
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" }),
17
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" })
18
- ]
19
- }
20
- ),
21
- /* @__PURE__ */ jsxs(
22
- XStack,
23
- {
24
- flex: 1,
25
- space: "$2",
26
- borderWidth: 2,
27
- borderColor: "$color",
28
- borderRadius: "$4",
29
- padding: "$2",
30
- children: [
31
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" }),
32
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" }),
33
- /* @__PURE__ */ jsx(YStack, { backgroundColor: "$color", borderRadius: "$3", padding: "$2" })
34
- ]
35
- }
36
- ),
37
- /* @__PURE__ */ jsxs(ZStack, { maxWidth: 50, maxHeight: 85, width: 100, flex: 1, children: [
38
- /* @__PURE__ */ jsx(YStack, { fullscreen: true, borderWidth: 2, borderRadius: "$4", padding: "$2" }),
39
- /* @__PURE__ */ jsx(YStack, { fullscreen: true, y: 10, x: 10, borderWidth: 2, borderRadius: "$4", padding: "$2" }),
40
- /* @__PURE__ */ jsx(
41
- YStack,
42
- {
43
- fullscreen: true,
44
- y: 20,
45
- x: 20,
46
- borderWidth: 2,
47
- backgroundColor: "$color",
48
- borderRadius: "$4",
49
- padding: "$2"
50
- }
51
- )
52
- ] })
53
- ] });
54
- }
55
- export {
56
- StacksDemo
57
- };
58
- //# sourceMappingURL=StacksDemo.mjs.map
@@ -1,33 +0,0 @@
1
- import { jsx, jsxs } from "react/jsx-runtime";
2
- import { Label, Separator, Switch, XStack, YStack } from "tamagui";
3
- function SwitchDemo() {
4
- return /* @__PURE__ */ jsxs(YStack, { width: 200, alignItems: "center", space: "$3", children: [
5
- /* @__PURE__ */ jsx(SwitchWithLabel, { size: "$2" }),
6
- /* @__PURE__ */ jsx(SwitchWithLabel, { size: "$3" }),
7
- /* @__PURE__ */ jsx(SwitchWithLabel, { size: "$4" }),
8
- /* @__PURE__ */ jsx(SwitchWithLabel, { size: "$5" })
9
- ] });
10
- }
11
- function SwitchWithLabel(props) {
12
- const id = `switch-${props.size.toString().slice(1)}`;
13
- return /* @__PURE__ */ jsxs(XStack, { width: 200, alignItems: "center", space: "$4", children: [
14
- /* @__PURE__ */ jsx(
15
- Label,
16
- {
17
- paddingRight: "$0",
18
- minWidth: 90,
19
- justifyContent: "flex-end",
20
- size: props.size,
21
- htmlFor: id,
22
- children: "Dark mode"
23
- }
24
- ),
25
- /* @__PURE__ */ jsx(Separator, { minHeight: 20, vertical: true }),
26
- /* @__PURE__ */ jsx(Switch, { id, size: props.size, children: /* @__PURE__ */ jsx(Switch.Thumb, { animation: "quick" }) })
27
- ] });
28
- }
29
- export {
30
- SwitchDemo,
31
- SwitchWithLabel
32
- };
33
- //# sourceMappingURL=SwitchDemo.mjs.map