@tamagui/demos 1.9.0 → 1.9.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/dist/cjs/ToastDemo.js +74 -33
  2. package/dist/cjs/ToastDemo.js.map +2 -2
  3. package/dist/cjs/ToastDuplicateDemo.js +77 -0
  4. package/dist/cjs/ToastDuplicateDemo.js.map +7 -0
  5. package/dist/cjs/index.js +3 -0
  6. package/dist/cjs/index.js.map +2 -2
  7. package/dist/esm/ToastDemo.js +85 -35
  8. package/dist/esm/ToastDemo.js.map +2 -2
  9. package/dist/esm/ToastDemo.mjs +85 -35
  10. package/dist/esm/ToastDemo.mjs.map +2 -2
  11. package/dist/esm/ToastDuplicateDemo.js +43 -0
  12. package/dist/esm/ToastDuplicateDemo.js.map +7 -0
  13. package/dist/esm/ToastDuplicateDemo.mjs +43 -0
  14. package/dist/esm/ToastDuplicateDemo.mjs.map +7 -0
  15. package/dist/esm/index.js +2 -0
  16. package/dist/esm/index.js.map +2 -2
  17. package/dist/esm/index.mjs +2 -0
  18. package/dist/esm/index.mjs.map +2 -2
  19. package/dist/jsx/ToastDemo.js +75 -29
  20. package/dist/jsx/ToastDemo.js.map +2 -2
  21. package/dist/jsx/ToastDemo.mjs +75 -29
  22. package/dist/jsx/ToastDemo.mjs.map +2 -2
  23. package/dist/jsx/ToastDuplicateDemo.js +34 -0
  24. package/dist/jsx/ToastDuplicateDemo.js.map +7 -0
  25. package/dist/jsx/ToastDuplicateDemo.mjs +34 -0
  26. package/dist/jsx/ToastDuplicateDemo.mjs.map +7 -0
  27. package/dist/jsx/index.js +2 -0
  28. package/dist/jsx/index.js.map +2 -2
  29. package/dist/jsx/index.mjs +2 -0
  30. package/dist/jsx/index.mjs.map +2 -2
  31. package/package.json +17 -17
  32. package/src/ToastDemo.tsx +99 -39
  33. package/src/ToastDuplicateDemo.tsx +43 -0
  34. package/src/index.tsx +1 -0
  35. package/types/ToastDemo.d.ts.map +1 -1
  36. package/types/ToastDuplicateDemo.d.ts +3 -0
  37. package/types/ToastDuplicateDemo.d.ts.map +1 -0
  38. package/types/index.d.ts +1 -0
  39. package/types/index.d.ts.map +1 -1
@@ -0,0 +1,43 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CheckCircle2 } from "@tamagui/lucide-icons";
3
+ import React from "react";
4
+ import { Button, Toast, XStack, YStack } from "tamagui";
5
+ const ToastDuplicateDemo = () => {
6
+ const [savedCount, setSavedCount] = React.useState(0);
7
+ return /* @__PURE__ */ jsxs(YStack, { ai: "center", children: [
8
+ /* @__PURE__ */ jsx(
9
+ Button,
10
+ {
11
+ onPress: () => {
12
+ setSavedCount((old) => old + 1);
13
+ },
14
+ children: "Show toast"
15
+ }
16
+ ),
17
+ [...Array(savedCount)].map((_, index) => /* @__PURE__ */ jsx(
18
+ Toast,
19
+ {
20
+ viewportName: "viewport-multiple",
21
+ duration: 4e3,
22
+ enterStyle: { opacity: 0, scale: 0.5, y: -25 },
23
+ exitStyle: { opacity: 0, scale: 1, y: -20 },
24
+ y: 0,
25
+ opacity: 1,
26
+ scale: 1,
27
+ animation: "100ms",
28
+ children: /* @__PURE__ */ jsxs(XStack, { space: true, ai: "center", children: [
29
+ /* @__PURE__ */ jsx(YStack, { children: /* @__PURE__ */ jsx(CheckCircle2, {}) }),
30
+ /* @__PURE__ */ jsxs(YStack, { children: [
31
+ /* @__PURE__ */ jsx(Toast.Title, { children: "Successfully saved!" }),
32
+ /* @__PURE__ */ jsx(Toast.Description, { children: "Don't worry... We've got your data." })
33
+ ] })
34
+ ] })
35
+ },
36
+ index
37
+ ))
38
+ ] });
39
+ };
40
+ export {
41
+ ToastDuplicateDemo
42
+ };
43
+ //# sourceMappingURL=ToastDuplicateDemo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ToastDuplicateDemo.tsx"],
4
+ "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDuplicateDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n viewportName=\"viewport-multiple\" // Sends to a viewport that supports multiple toasts with the `multipleToasts` prop\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack>\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title>Successfully saved!</Toast.Title>\n <Toast.Description>Don't worry... We've got your data.</Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
+ "mappings": "AASM,cAwBM,YAxBN;AATN,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,qBAAqB,MAAM;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,qBAAC,UAAO,IAAG,UACT;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AACb,wBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,QAChC;AAAA,QACD;AAAA;AAAA,IAED;AAAA,IACC,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B;AAAA,MAAC;AAAA;AAAA,QACC,cAAa;AAAA,QAEb,UAAU;AAAA,QACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,QAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,QAC1C,GAAG;AAAA,QACH,SAAS;AAAA,QACT,OAAO;AAAA,QACP,WAAU;AAAA,QAEV,+BAAC,UAAO,OAAK,MAAC,IAAG,UACf;AAAA,8BAAC,UACC,8BAAC,gBAAa,GAChB;AAAA,UAEA,qBAAC,UACC;AAAA,gCAAC,MAAM,OAAN,EAAY,iCAAmB;AAAA,YAChC,oBAAC,MAAM,aAAN,EAAkB,iDAAmC;AAAA,aACxD;AAAA,WACF;AAAA;AAAA,MAlBK;AAAA,IAmBP,CACD;AAAA,KACH;AAEJ;",
6
+ "names": []
7
+ }
@@ -0,0 +1,43 @@
1
+ import { jsx, jsxs } from "react/jsx-runtime";
2
+ import { CheckCircle2 } from "@tamagui/lucide-icons";
3
+ import React from "react";
4
+ import { Button, Toast, XStack, YStack } from "tamagui";
5
+ const ToastDuplicateDemo = () => {
6
+ const [savedCount, setSavedCount] = React.useState(0);
7
+ return /* @__PURE__ */ jsxs(YStack, { ai: "center", children: [
8
+ /* @__PURE__ */ jsx(
9
+ Button,
10
+ {
11
+ onPress: () => {
12
+ setSavedCount((old) => old + 1);
13
+ },
14
+ children: "Show toast"
15
+ }
16
+ ),
17
+ [...Array(savedCount)].map((_, index) => /* @__PURE__ */ jsx(
18
+ Toast,
19
+ {
20
+ viewportName: "viewport-multiple",
21
+ duration: 4e3,
22
+ enterStyle: { opacity: 0, scale: 0.5, y: -25 },
23
+ exitStyle: { opacity: 0, scale: 1, y: -20 },
24
+ y: 0,
25
+ opacity: 1,
26
+ scale: 1,
27
+ animation: "100ms",
28
+ children: /* @__PURE__ */ jsxs(XStack, { space: true, ai: "center", children: [
29
+ /* @__PURE__ */ jsx(YStack, { children: /* @__PURE__ */ jsx(CheckCircle2, {}) }),
30
+ /* @__PURE__ */ jsxs(YStack, { children: [
31
+ /* @__PURE__ */ jsx(Toast.Title, { children: "Successfully saved!" }),
32
+ /* @__PURE__ */ jsx(Toast.Description, { children: "Don't worry... We've got your data." })
33
+ ] })
34
+ ] })
35
+ },
36
+ index
37
+ ))
38
+ ] });
39
+ };
40
+ export {
41
+ ToastDuplicateDemo
42
+ };
43
+ //# sourceMappingURL=ToastDuplicateDemo.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ToastDuplicateDemo.tsx"],
4
+ "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDuplicateDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n viewportName=\"viewport-multiple\" // Sends to a viewport that supports multiple toasts with the `multipleToasts` prop\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack>\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title>Successfully saved!</Toast.Title>\n <Toast.Description>Don't worry... We've got your data.</Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
+ "mappings": "AASM,cAwBM,YAxBN;AATN,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,qBAAqB,MAAM;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,qBAAC,UAAO,IAAG,UACT;AAAA;AAAA,MAAC;AAAA;AAAA,QACC,SAAS,MAAM;AACb,wBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,QAChC;AAAA,QACD;AAAA;AAAA,IAED;AAAA,IACC,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B;AAAA,MAAC;AAAA;AAAA,QACC,cAAa;AAAA,QAEb,UAAU;AAAA,QACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,QAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,QAC1C,GAAG;AAAA,QACH,SAAS;AAAA,QACT,OAAO;AAAA,QACP,WAAU;AAAA,QAEV,+BAAC,UAAO,OAAK,MAAC,IAAG,UACf;AAAA,8BAAC,UACC,8BAAC,gBAAa,GAChB;AAAA,UAEA,qBAAC,UACC;AAAA,gCAAC,MAAM,OAAN,EAAY,iCAAmB;AAAA,YAChC,oBAAC,MAAM,aAAN,EAAkB,iDAAmC;AAAA,aACxD;AAAA,WACF;AAAA;AAAA,MAlBK;AAAA,IAmBP,CACD;AAAA,KACH;AAEJ;",
6
+ "names": []
7
+ }
package/dist/esm/index.js CHANGED
@@ -38,6 +38,7 @@ import { TooltipDemo } from "./TooltipDemo";
38
38
  import { ColorsDemo } from "./ColorsDemo";
39
39
  import { TokensDemo } from "./TokensDemo";
40
40
  import { ToastDemo } from "./ToastDemo";
41
+ import { ToastDuplicateDemo } from "./ToastDuplicateDemo";
41
42
  import { TabsDemo } from "./TabsDemo";
42
43
  import { TabsAdvancedDemo } from "./TabsAdvancedDemo";
43
44
  export * from "./useOnIntersecting";
@@ -81,6 +82,7 @@ export {
81
82
  TextDemo,
82
83
  ThemeInverseDemo,
83
84
  ToastDemo,
85
+ ToastDuplicateDemo,
84
86
  TokensDemo,
85
87
  TooltipDemo,
86
88
  UpdateThemeDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { ToastDuplicateDemo } from './ToastDuplicateDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
6
6
  "names": []
7
7
  }
@@ -38,6 +38,7 @@ import { TooltipDemo } from "./TooltipDemo";
38
38
  import { ColorsDemo } from "./ColorsDemo";
39
39
  import { TokensDemo } from "./TokensDemo";
40
40
  import { ToastDemo } from "./ToastDemo";
41
+ import { ToastDuplicateDemo } from "./ToastDuplicateDemo";
41
42
  import { TabsDemo } from "./TabsDemo";
42
43
  import { TabsAdvancedDemo } from "./TabsAdvancedDemo";
43
44
  export * from "./useOnIntersecting";
@@ -81,6 +82,7 @@ export {
81
82
  TextDemo,
82
83
  ThemeInverseDemo,
83
84
  ToastDemo,
85
+ ToastDuplicateDemo,
84
86
  TokensDemo,
85
87
  TooltipDemo,
86
88
  UpdateThemeDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { ToastDuplicateDemo } from './ToastDuplicateDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
6
6
  "names": []
7
7
  }
@@ -1,37 +1,83 @@
1
- import { CheckCircle2 } from "@tamagui/lucide-icons";
1
+ import { Check } from "@tamagui/lucide-icons";
2
2
  import React from "react";
3
- import { Button, Toast, XStack, YStack } from "tamagui";
3
+ import {
4
+ Button,
5
+ Checkbox,
6
+ Label,
7
+ Toast,
8
+ ToastImperativeProvider,
9
+ XStack,
10
+ YStack,
11
+ useToast
12
+ } from "tamagui";
4
13
  const ToastDemo = () => {
5
- const [savedCount, setSavedCount] = React.useState(0);
6
- return <YStack ai="center">
14
+ const [native, setNative] = React.useState([]);
15
+ return <YStack space="$5">
16
+ <ToastImperativeProvider options={{ native }}>
17
+ <ToastControl />
18
+ <CurrentToast />
19
+ </ToastImperativeProvider>
20
+ <NativeOptions native={native} setNative={setNative} />
21
+ </YStack>;
22
+ };
23
+ const CurrentToast = () => {
24
+ const { currentToast } = useToast();
25
+ if (!currentToast || currentToast.isHandledNatively)
26
+ return null;
27
+ return <Toast
28
+ key={currentToast.id}
29
+ duration={currentToast.duration}
30
+ enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
31
+ exitStyle={{ opacity: 0, scale: 1, y: -20 }}
32
+ y={0}
33
+ opacity={1}
34
+ scale={1}
35
+ animation="100ms"
36
+ ><YStack>
37
+ <Toast.Title>{currentToast.title}</Toast.Title>
38
+ {!!currentToast.message && <Toast.Description>{currentToast.message}</Toast.Description>}
39
+ </YStack></Toast>;
40
+ };
41
+ const ToastControl = () => {
42
+ const toast = useToast();
43
+ return <XStack space="$2" jc="center">
7
44
  <Button
8
45
  onPress={() => {
9
- setSavedCount((old) => old + 1);
46
+ toast.show("Successfully saved!", {
47
+ message: "Don't worry, we've got your data."
48
+ });
10
49
  }}
11
- >Show toast</Button>
12
- {[...Array(savedCount)].map((_, index) => <Toast
13
- key={index}
14
- duration={4e3}
15
- enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
16
- exitStyle={{ opacity: 0, scale: 1, y: -20 }}
17
- y={0}
18
- opacity={1}
19
- scale={1}
20
- animation="100ms"
21
- ><XStack space ai="center">
22
- <YStack
23
- animation="quick"
24
- enterStyle={{ scale: 0, rotate: "-100deg", x: 10 }}
25
- x={0}
26
- scale={1}
27
- rotate="0deg"
28
- ><CheckCircle2 /></YStack>
29
- <YStack>
30
- <Toast.Title enterStyle={{ x: 40 }} x={0} animation="quick">Successfully saved!</Toast.Title>
31
- <Toast.Description enterStyle={{ x: 20 }} x={0} animation="quick">Don't worry... We've got your data.</Toast.Description>
32
- </YStack>
33
- </XStack></Toast>)}
34
- </YStack>;
50
+ >Show</Button>
51
+ <Button
52
+ onPress={() => {
53
+ toast.hide();
54
+ }}
55
+ >Hide</Button>
56
+ </XStack>;
57
+ };
58
+ const NativeOptions = ({
59
+ native,
60
+ setNative
61
+ }) => {
62
+ const supportedNativePlatforms = ["web", "mobile"];
63
+ return <XStack space>{supportedNativePlatforms.map((platform) => <XStack ai="center" space="$2" key={platform}>
64
+ <Checkbox
65
+ id={platform}
66
+ checked={native?.includes(platform)}
67
+ onCheckedChange={(checked) => {
68
+ if (checked)
69
+ setNative([...native, platform]);
70
+ else
71
+ setNative(native.filter((val) => val !== platform));
72
+ }}
73
+ size="$3"
74
+ ><Checkbox.Indicator><Check /></Checkbox.Indicator></Checkbox>
75
+ <Label size="$3" htmlFor={platform}>
76
+ {"Native "}
77
+ {platform}
78
+ {" toast"}
79
+ </Label>
80
+ </XStack>)}</XStack>;
35
81
  };
36
82
  export {
37
83
  ToastDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ToastDemo.tsx"],
4
- "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack\n animation=\"quick\"\n enterStyle={{ scale: 0, rotate: '-100deg', x: 10 }}\n x={0}\n scale={1}\n rotate=\"0deg\"\n >\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title enterStyle={{ x: 40 }} x={0} animation=\"quick\">\n Successfully saved!\n </Toast.Title>\n <Toast.Description enterStyle={{ x: 20 }} x={0} animation=\"quick\">\n Don't worry... We've got your data.\n </Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
- "mappings": "AAAA,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,CAAC,OAAO,GAAG;AAAA,IACT,CAAC;AAAA,MACC,SAAS,MAAM;AACb,sBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,MAChC;AAAA,KACD,UAED,EANC;AAAA,KAOA,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B,CAAC;AAAA,MACC,KAAK;AAAA,MACL,UAAU;AAAA,MACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,MAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,MAC1C,GAAG;AAAA,MACH,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,KAEV,CAAC,OAAO,MAAM,GAAG;AAAA,MACf,CAAC;AAAA,QACC,UAAU;AAAA,QACV,YAAY,EAAE,OAAO,GAAG,QAAQ,WAAW,GAAG,GAAG;AAAA,QACjD,GAAG;AAAA,QACH,OAAO;AAAA,QACP,OAAO;AAAA,OAEP,CAAC,aAAa,EAChB,EARC;AAAA,MAUD,CAAC;AAAA,QACC,CAAC,MAAM,MAAM,YAAY,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU,QAAQ,mBAE5D,EAFC,MAAM;AAAA,QAGP,CAAC,MAAM,YAAY,YAAY,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU,QAAQ,mCAElE,EAFC,MAAM;AAAA,MAGT,EAPC;AAAA,IAQH,EAnBC,OAoBH,EA9BC,MA+BF;AAAA,EACH,EAzCC;AA2CL;",
4
+ "sourcesContent": ["import { Check } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport {\n Button,\n Checkbox,\n Label,\n Toast,\n ToastImperativeProvider,\n ToastNativePlatform,\n XStack,\n YStack,\n useToast,\n} from 'tamagui'\n\nexport const ToastDemo = () => {\n const [native, setNative] = React.useState<ToastNativePlatform[]>([])\n\n return (\n <YStack space=\"$5\">\n <ToastImperativeProvider options={{ native }}>\n <ToastControl />\n <CurrentToast />\n </ToastImperativeProvider>\n\n <NativeOptions native={native} setNative={setNative} />\n </YStack>\n )\n}\n\nconst CurrentToast = () => {\n const { currentToast } = useToast()\n\n if (!currentToast || currentToast.isHandledNatively) return null\n return (\n <Toast\n key={currentToast.id}\n duration={currentToast.duration}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <YStack>\n <Toast.Title>{currentToast.title}</Toast.Title>\n {!!currentToast.message && (\n <Toast.Description>{currentToast.message}</Toast.Description>\n )}\n </YStack>\n </Toast>\n )\n}\n\nconst ToastControl = () => {\n const toast = useToast()\n return (\n <XStack space=\"$2\" jc=\"center\">\n <Button\n onPress={() => {\n toast.show('Successfully saved!', {\n message: \"Don't worry, we've got your data.\",\n })\n }}\n >\n Show\n </Button>\n <Button\n onPress={() => {\n toast.hide()\n }}\n >\n Hide\n </Button>\n </XStack>\n )\n}\n\nconst NativeOptions = ({\n native,\n setNative,\n}: {\n native: ToastNativePlatform[]\n setNative: (native: ToastNativePlatform[]) => void\n}) => {\n const supportedNativePlatforms: ToastNativePlatform[] = ['web', 'mobile']\n\n return (\n <XStack space>\n {supportedNativePlatforms.map((platform) => (\n <XStack ai=\"center\" space=\"$2\" key={platform}>\n <Checkbox\n id={platform}\n checked={native?.includes(platform)}\n onCheckedChange={(checked) => {\n if (checked) setNative([...native, platform])\n else setNative(native.filter((val) => val !== platform))\n }}\n size=\"$3\"\n >\n <Checkbox.Indicator>\n <Check />\n </Checkbox.Indicator>\n </Checkbox>\n <Label size=\"$3\" htmlFor={platform}>\n Native {platform} toast\n </Label>\n </XStack>\n ))}\n </XStack>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,aAAa;AACtB,OAAO,WAAW;AAClB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,QAAQ,SAAS,IAAI,MAAM,SAAgC,CAAC,CAAC;AAEpE,SACE,CAAC,OAAO,MAAM;AAAA,IACZ,CAAC,wBAAwB,SAAS,EAAE,OAAO;AAAA,MACzC,CAAC,aAAa;AAAA,MACd,CAAC,aAAa;AAAA,IAChB,EAHC;AAAA,IAKD,CAAC,cAAc,QAAQ,QAAQ,WAAW,WAAW;AAAA,EACvD,EAPC;AASL;AAEA,MAAM,eAAe,MAAM;AACzB,QAAM,EAAE,aAAa,IAAI,SAAS;AAElC,MAAI,CAAC,gBAAgB,aAAa;AAAmB,WAAO;AAC5D,SACE,CAAC;AAAA,IACC,KAAK,aAAa;AAAA,IAClB,UAAU,aAAa;AAAA,IACvB,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,IAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,IAC1C,GAAG;AAAA,IACH,SAAS;AAAA,IACT,OAAO;AAAA,IACP,UAAU;AAAA,GAEV,CAAC;AAAA,IACC,CAAC,MAAM,OAAO,aAAa,MAAM,EAAhC,MAAM;AAAA,KACN,CAAC,CAAC,aAAa,WACd,CAAC,MAAM,aAAa,aAAa,QAAQ,EAAxC,MAAM;AAAA,EAEX,EALC,OAMH,EAhBC;AAkBL;AAEA,MAAM,eAAe,MAAM;AACzB,QAAM,QAAQ,SAAS;AACvB,SACE,CAAC,OAAO,MAAM,KAAK,GAAG;AAAA,IACpB,CAAC;AAAA,MACC,SAAS,MAAM;AACb,cAAM,KAAK,uBAAuB;AAAA,UAChC,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,KACD,IAED,EARC;AAAA,IASD,CAAC;AAAA,MACC,SAAS,MAAM;AACb,cAAM,KAAK;AAAA,MACb;AAAA,KACD,IAED,EANC;AAAA,EAOH,EAjBC;AAmBL;AAEA,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA;AACF,MAGM;AACJ,QAAM,2BAAkD,CAAC,OAAO,QAAQ;AAExE,SACE,CAAC,OAAO,OACL,yBAAyB,IAAI,CAAC,aAC7B,CAAC,OAAO,GAAG,SAAS,MAAM,KAAK,KAAK;AAAA,IAClC,CAAC;AAAA,MACC,IAAI;AAAA,MACJ,SAAS,QAAQ,SAAS,QAAQ;AAAA,MAClC,iBAAiB,CAAC,YAAY;AAC5B,YAAI;AAAS,oBAAU,CAAC,GAAG,QAAQ,QAAQ,CAAC;AAAA;AACvC,oBAAU,OAAO,OAAO,CAAC,QAAQ,QAAQ,QAAQ,CAAC;AAAA,MACzD;AAAA,MACA,KAAK;AAAA,KAEL,CAAC,SAAS,UACR,CAAC,MAAM,EACT,EAFC,SAAS,UAGZ,EAZC;AAAA,IAaD,CAAC,MAAM,KAAK,KAAK,SAAS;AAAA,OAAU;AAAA,OAC1B;AAAA,OAAS;AAAA,IACnB,EAFC;AAAA,EAGH,EAjBC,OAkBF,EACH,EArBC;AAuBL;",
6
6
  "names": []
7
7
  }
@@ -1,37 +1,83 @@
1
- import { CheckCircle2 } from "@tamagui/lucide-icons";
1
+ import { Check } from "@tamagui/lucide-icons";
2
2
  import React from "react";
3
- import { Button, Toast, XStack, YStack } from "tamagui";
3
+ import {
4
+ Button,
5
+ Checkbox,
6
+ Label,
7
+ Toast,
8
+ ToastImperativeProvider,
9
+ XStack,
10
+ YStack,
11
+ useToast
12
+ } from "tamagui";
4
13
  const ToastDemo = () => {
5
- const [savedCount, setSavedCount] = React.useState(0);
6
- return <YStack ai="center">
14
+ const [native, setNative] = React.useState([]);
15
+ return <YStack space="$5">
16
+ <ToastImperativeProvider options={{ native }}>
17
+ <ToastControl />
18
+ <CurrentToast />
19
+ </ToastImperativeProvider>
20
+ <NativeOptions native={native} setNative={setNative} />
21
+ </YStack>;
22
+ };
23
+ const CurrentToast = () => {
24
+ const { currentToast } = useToast();
25
+ if (!currentToast || currentToast.isHandledNatively)
26
+ return null;
27
+ return <Toast
28
+ key={currentToast.id}
29
+ duration={currentToast.duration}
30
+ enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
31
+ exitStyle={{ opacity: 0, scale: 1, y: -20 }}
32
+ y={0}
33
+ opacity={1}
34
+ scale={1}
35
+ animation="100ms"
36
+ ><YStack>
37
+ <Toast.Title>{currentToast.title}</Toast.Title>
38
+ {!!currentToast.message && <Toast.Description>{currentToast.message}</Toast.Description>}
39
+ </YStack></Toast>;
40
+ };
41
+ const ToastControl = () => {
42
+ const toast = useToast();
43
+ return <XStack space="$2" jc="center">
7
44
  <Button
8
45
  onPress={() => {
9
- setSavedCount((old) => old + 1);
46
+ toast.show("Successfully saved!", {
47
+ message: "Don't worry, we've got your data."
48
+ });
10
49
  }}
11
- >Show toast</Button>
12
- {[...Array(savedCount)].map((_, index) => <Toast
13
- key={index}
14
- duration={4e3}
15
- enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
16
- exitStyle={{ opacity: 0, scale: 1, y: -20 }}
17
- y={0}
18
- opacity={1}
19
- scale={1}
20
- animation="100ms"
21
- ><XStack space ai="center">
22
- <YStack
23
- animation="quick"
24
- enterStyle={{ scale: 0, rotate: "-100deg", x: 10 }}
25
- x={0}
26
- scale={1}
27
- rotate="0deg"
28
- ><CheckCircle2 /></YStack>
29
- <YStack>
30
- <Toast.Title enterStyle={{ x: 40 }} x={0} animation="quick">Successfully saved!</Toast.Title>
31
- <Toast.Description enterStyle={{ x: 20 }} x={0} animation="quick">Don't worry... We've got your data.</Toast.Description>
32
- </YStack>
33
- </XStack></Toast>)}
34
- </YStack>;
50
+ >Show</Button>
51
+ <Button
52
+ onPress={() => {
53
+ toast.hide();
54
+ }}
55
+ >Hide</Button>
56
+ </XStack>;
57
+ };
58
+ const NativeOptions = ({
59
+ native,
60
+ setNative
61
+ }) => {
62
+ const supportedNativePlatforms = ["web", "mobile"];
63
+ return <XStack space>{supportedNativePlatforms.map((platform) => <XStack ai="center" space="$2" key={platform}>
64
+ <Checkbox
65
+ id={platform}
66
+ checked={native?.includes(platform)}
67
+ onCheckedChange={(checked) => {
68
+ if (checked)
69
+ setNative([...native, platform]);
70
+ else
71
+ setNative(native.filter((val) => val !== platform));
72
+ }}
73
+ size="$3"
74
+ ><Checkbox.Indicator><Check /></Checkbox.Indicator></Checkbox>
75
+ <Label size="$3" htmlFor={platform}>
76
+ {"Native "}
77
+ {platform}
78
+ {" toast"}
79
+ </Label>
80
+ </XStack>)}</XStack>;
35
81
  };
36
82
  export {
37
83
  ToastDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/ToastDemo.tsx"],
4
- "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack\n animation=\"quick\"\n enterStyle={{ scale: 0, rotate: '-100deg', x: 10 }}\n x={0}\n scale={1}\n rotate=\"0deg\"\n >\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title enterStyle={{ x: 40 }} x={0} animation=\"quick\">\n Successfully saved!\n </Toast.Title>\n <Toast.Description enterStyle={{ x: 20 }} x={0} animation=\"quick\">\n Don't worry... We've got your data.\n </Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
- "mappings": "AAAA,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,CAAC,OAAO,GAAG;AAAA,IACT,CAAC;AAAA,MACC,SAAS,MAAM;AACb,sBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,MAChC;AAAA,KACD,UAED,EANC;AAAA,KAOA,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B,CAAC;AAAA,MACC,KAAK;AAAA,MACL,UAAU;AAAA,MACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,MAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,MAC1C,GAAG;AAAA,MACH,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,KAEV,CAAC,OAAO,MAAM,GAAG;AAAA,MACf,CAAC;AAAA,QACC,UAAU;AAAA,QACV,YAAY,EAAE,OAAO,GAAG,QAAQ,WAAW,GAAG,GAAG;AAAA,QACjD,GAAG;AAAA,QACH,OAAO;AAAA,QACP,OAAO;AAAA,OAEP,CAAC,aAAa,EAChB,EARC;AAAA,MAUD,CAAC;AAAA,QACC,CAAC,MAAM,MAAM,YAAY,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU,QAAQ,mBAE5D,EAFC,MAAM;AAAA,QAGP,CAAC,MAAM,YAAY,YAAY,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG,UAAU,QAAQ,mCAElE,EAFC,MAAM;AAAA,MAGT,EAPC;AAAA,IAQH,EAnBC,OAoBH,EA9BC,MA+BF;AAAA,EACH,EAzCC;AA2CL;",
4
+ "sourcesContent": ["import { Check } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport {\n Button,\n Checkbox,\n Label,\n Toast,\n ToastImperativeProvider,\n ToastNativePlatform,\n XStack,\n YStack,\n useToast,\n} from 'tamagui'\n\nexport const ToastDemo = () => {\n const [native, setNative] = React.useState<ToastNativePlatform[]>([])\n\n return (\n <YStack space=\"$5\">\n <ToastImperativeProvider options={{ native }}>\n <ToastControl />\n <CurrentToast />\n </ToastImperativeProvider>\n\n <NativeOptions native={native} setNative={setNative} />\n </YStack>\n )\n}\n\nconst CurrentToast = () => {\n const { currentToast } = useToast()\n\n if (!currentToast || currentToast.isHandledNatively) return null\n return (\n <Toast\n key={currentToast.id}\n duration={currentToast.duration}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <YStack>\n <Toast.Title>{currentToast.title}</Toast.Title>\n {!!currentToast.message && (\n <Toast.Description>{currentToast.message}</Toast.Description>\n )}\n </YStack>\n </Toast>\n )\n}\n\nconst ToastControl = () => {\n const toast = useToast()\n return (\n <XStack space=\"$2\" jc=\"center\">\n <Button\n onPress={() => {\n toast.show('Successfully saved!', {\n message: \"Don't worry, we've got your data.\",\n })\n }}\n >\n Show\n </Button>\n <Button\n onPress={() => {\n toast.hide()\n }}\n >\n Hide\n </Button>\n </XStack>\n )\n}\n\nconst NativeOptions = ({\n native,\n setNative,\n}: {\n native: ToastNativePlatform[]\n setNative: (native: ToastNativePlatform[]) => void\n}) => {\n const supportedNativePlatforms: ToastNativePlatform[] = ['web', 'mobile']\n\n return (\n <XStack space>\n {supportedNativePlatforms.map((platform) => (\n <XStack ai=\"center\" space=\"$2\" key={platform}>\n <Checkbox\n id={platform}\n checked={native?.includes(platform)}\n onCheckedChange={(checked) => {\n if (checked) setNative([...native, platform])\n else setNative(native.filter((val) => val !== platform))\n }}\n size=\"$3\"\n >\n <Checkbox.Indicator>\n <Check />\n </Checkbox.Indicator>\n </Checkbox>\n <Label size=\"$3\" htmlFor={platform}>\n Native {platform} toast\n </Label>\n </XStack>\n ))}\n </XStack>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,aAAa;AACtB,OAAO,WAAW;AAClB;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EAEA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAEA,MAAM,YAAY,MAAM;AAC7B,QAAM,CAAC,QAAQ,SAAS,IAAI,MAAM,SAAgC,CAAC,CAAC;AAEpE,SACE,CAAC,OAAO,MAAM;AAAA,IACZ,CAAC,wBAAwB,SAAS,EAAE,OAAO;AAAA,MACzC,CAAC,aAAa;AAAA,MACd,CAAC,aAAa;AAAA,IAChB,EAHC;AAAA,IAKD,CAAC,cAAc,QAAQ,QAAQ,WAAW,WAAW;AAAA,EACvD,EAPC;AASL;AAEA,MAAM,eAAe,MAAM;AACzB,QAAM,EAAE,aAAa,IAAI,SAAS;AAElC,MAAI,CAAC,gBAAgB,aAAa;AAAmB,WAAO;AAC5D,SACE,CAAC;AAAA,IACC,KAAK,aAAa;AAAA,IAClB,UAAU,aAAa;AAAA,IACvB,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,IAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,IAC1C,GAAG;AAAA,IACH,SAAS;AAAA,IACT,OAAO;AAAA,IACP,UAAU;AAAA,GAEV,CAAC;AAAA,IACC,CAAC,MAAM,OAAO,aAAa,MAAM,EAAhC,MAAM;AAAA,KACN,CAAC,CAAC,aAAa,WACd,CAAC,MAAM,aAAa,aAAa,QAAQ,EAAxC,MAAM;AAAA,EAEX,EALC,OAMH,EAhBC;AAkBL;AAEA,MAAM,eAAe,MAAM;AACzB,QAAM,QAAQ,SAAS;AACvB,SACE,CAAC,OAAO,MAAM,KAAK,GAAG;AAAA,IACpB,CAAC;AAAA,MACC,SAAS,MAAM;AACb,cAAM,KAAK,uBAAuB;AAAA,UAChC,SAAS;AAAA,QACX,CAAC;AAAA,MACH;AAAA,KACD,IAED,EARC;AAAA,IASD,CAAC;AAAA,MACC,SAAS,MAAM;AACb,cAAM,KAAK;AAAA,MACb;AAAA,KACD,IAED,EANC;AAAA,EAOH,EAjBC;AAmBL;AAEA,MAAM,gBAAgB,CAAC;AAAA,EACrB;AAAA,EACA;AACF,MAGM;AACJ,QAAM,2BAAkD,CAAC,OAAO,QAAQ;AAExE,SACE,CAAC,OAAO,OACL,yBAAyB,IAAI,CAAC,aAC7B,CAAC,OAAO,GAAG,SAAS,MAAM,KAAK,KAAK;AAAA,IAClC,CAAC;AAAA,MACC,IAAI;AAAA,MACJ,SAAS,QAAQ,SAAS,QAAQ;AAAA,MAClC,iBAAiB,CAAC,YAAY;AAC5B,YAAI;AAAS,oBAAU,CAAC,GAAG,QAAQ,QAAQ,CAAC;AAAA;AACvC,oBAAU,OAAO,OAAO,CAAC,QAAQ,QAAQ,QAAQ,CAAC;AAAA,MACzD;AAAA,MACA,KAAK;AAAA,KAEL,CAAC,SAAS,UACR,CAAC,MAAM,EACT,EAFC,SAAS,UAGZ,EAZC;AAAA,IAaD,CAAC,MAAM,KAAK,KAAK,SAAS;AAAA,OAAU;AAAA,OAC1B;AAAA,OAAS;AAAA,IACnB,EAFC;AAAA,EAGH,EAjBC,OAkBF,EACH,EArBC;AAuBL;",
6
6
  "names": []
7
7
  }
@@ -0,0 +1,34 @@
1
+ import { CheckCircle2 } from "@tamagui/lucide-icons";
2
+ import React from "react";
3
+ import { Button, Toast, XStack, YStack } from "tamagui";
4
+ const ToastDuplicateDemo = () => {
5
+ const [savedCount, setSavedCount] = React.useState(0);
6
+ return <YStack ai="center">
7
+ <Button
8
+ onPress={() => {
9
+ setSavedCount((old) => old + 1);
10
+ }}
11
+ >Show toast</Button>
12
+ {[...Array(savedCount)].map((_, index) => <Toast
13
+ viewportName="viewport-multiple"
14
+ key={index}
15
+ duration={4e3}
16
+ enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
17
+ exitStyle={{ opacity: 0, scale: 1, y: -20 }}
18
+ y={0}
19
+ opacity={1}
20
+ scale={1}
21
+ animation="100ms"
22
+ ><XStack space ai="center">
23
+ <YStack><CheckCircle2 /></YStack>
24
+ <YStack>
25
+ <Toast.Title>Successfully saved!</Toast.Title>
26
+ <Toast.Description>Don't worry... We've got your data.</Toast.Description>
27
+ </YStack>
28
+ </XStack></Toast>)}
29
+ </YStack>;
30
+ };
31
+ export {
32
+ ToastDuplicateDemo
33
+ };
34
+ //# sourceMappingURL=ToastDuplicateDemo.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ToastDuplicateDemo.tsx"],
4
+ "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDuplicateDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n viewportName=\"viewport-multiple\" // Sends to a viewport that supports multiple toasts with the `multipleToasts` prop\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack>\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title>Successfully saved!</Toast.Title>\n <Toast.Description>Don't worry... We've got your data.</Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,qBAAqB,MAAM;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,CAAC,OAAO,GAAG;AAAA,IACT,CAAC;AAAA,MACC,SAAS,MAAM;AACb,sBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,MAChC;AAAA,KACD,UAED,EANC;AAAA,KAOA,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B,CAAC;AAAA,MACC,aAAa;AAAA,MACb,KAAK;AAAA,MACL,UAAU;AAAA,MACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,MAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,MAC1C,GAAG;AAAA,MACH,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,KAEV,CAAC,OAAO,MAAM,GAAG;AAAA,MACf,CAAC,OACC,CAAC,aAAa,EAChB,EAFC;AAAA,MAID,CAAC;AAAA,QACC,CAAC,MAAM,MAAM,mBAAmB,EAA/B,MAAM;AAAA,QACP,CAAC,MAAM,YAAY,mCAAmC,EAArD,MAAM;AAAA,MACT,EAHC;AAAA,IAIH,EATC,OAUH,EArBC,MAsBF;AAAA,EACH,EAhCC;AAkCL;",
6
+ "names": []
7
+ }
@@ -0,0 +1,34 @@
1
+ import { CheckCircle2 } from "@tamagui/lucide-icons";
2
+ import React from "react";
3
+ import { Button, Toast, XStack, YStack } from "tamagui";
4
+ const ToastDuplicateDemo = () => {
5
+ const [savedCount, setSavedCount] = React.useState(0);
6
+ return <YStack ai="center">
7
+ <Button
8
+ onPress={() => {
9
+ setSavedCount((old) => old + 1);
10
+ }}
11
+ >Show toast</Button>
12
+ {[...Array(savedCount)].map((_, index) => <Toast
13
+ viewportName="viewport-multiple"
14
+ key={index}
15
+ duration={4e3}
16
+ enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}
17
+ exitStyle={{ opacity: 0, scale: 1, y: -20 }}
18
+ y={0}
19
+ opacity={1}
20
+ scale={1}
21
+ animation="100ms"
22
+ ><XStack space ai="center">
23
+ <YStack><CheckCircle2 /></YStack>
24
+ <YStack>
25
+ <Toast.Title>Successfully saved!</Toast.Title>
26
+ <Toast.Description>Don't worry... We've got your data.</Toast.Description>
27
+ </YStack>
28
+ </XStack></Toast>)}
29
+ </YStack>;
30
+ };
31
+ export {
32
+ ToastDuplicateDemo
33
+ };
34
+ //# sourceMappingURL=ToastDuplicateDemo.mjs.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/ToastDuplicateDemo.tsx"],
4
+ "sourcesContent": ["import { CheckCircle2 } from '@tamagui/lucide-icons'\nimport React from 'react'\nimport { Button, Toast, XStack, YStack } from 'tamagui'\n\nexport const ToastDuplicateDemo = () => {\n const [savedCount, setSavedCount] = React.useState(0)\n\n return (\n <YStack ai=\"center\">\n <Button\n onPress={() => {\n setSavedCount((old) => old + 1)\n }}\n >\n Show toast\n </Button>\n {[...Array(savedCount)].map((_, index) => (\n <Toast\n viewportName=\"viewport-multiple\" // Sends to a viewport that supports multiple toasts with the `multipleToasts` prop\n key={index}\n duration={4000}\n enterStyle={{ opacity: 0, scale: 0.5, y: -25 }}\n exitStyle={{ opacity: 0, scale: 1, y: -20 }}\n y={0}\n opacity={1}\n scale={1}\n animation=\"100ms\"\n >\n <XStack space ai=\"center\">\n <YStack>\n <CheckCircle2 />\n </YStack>\n\n <YStack>\n <Toast.Title>Successfully saved!</Toast.Title>\n <Toast.Description>Don't worry... We've got your data.</Toast.Description>\n </YStack>\n </XStack>\n </Toast>\n ))}\n </YStack>\n )\n}\n"],
5
+ "mappings": "AAAA,SAAS,oBAAoB;AAC7B,OAAO,WAAW;AAClB,SAAS,QAAQ,OAAO,QAAQ,cAAc;AAEvC,MAAM,qBAAqB,MAAM;AACtC,QAAM,CAAC,YAAY,aAAa,IAAI,MAAM,SAAS,CAAC;AAEpD,SACE,CAAC,OAAO,GAAG;AAAA,IACT,CAAC;AAAA,MACC,SAAS,MAAM;AACb,sBAAc,CAAC,QAAQ,MAAM,CAAC;AAAA,MAChC;AAAA,KACD,UAED,EANC;AAAA,KAOA,CAAC,GAAG,MAAM,UAAU,CAAC,EAAE,IAAI,CAAC,GAAG,UAC9B,CAAC;AAAA,MACC,aAAa;AAAA,MACb,KAAK;AAAA,MACL,UAAU;AAAA,MACV,YAAY,EAAE,SAAS,GAAG,OAAO,KAAK,GAAG,IAAI;AAAA,MAC7C,WAAW,EAAE,SAAS,GAAG,OAAO,GAAG,GAAG,IAAI;AAAA,MAC1C,GAAG;AAAA,MACH,SAAS;AAAA,MACT,OAAO;AAAA,MACP,UAAU;AAAA,KAEV,CAAC,OAAO,MAAM,GAAG;AAAA,MACf,CAAC,OACC,CAAC,aAAa,EAChB,EAFC;AAAA,MAID,CAAC;AAAA,QACC,CAAC,MAAM,MAAM,mBAAmB,EAA/B,MAAM;AAAA,QACP,CAAC,MAAM,YAAY,mCAAmC,EAArD,MAAM;AAAA,MACT,EAHC;AAAA,IAIH,EATC,OAUH,EArBC,MAsBF;AAAA,EACH,EAhCC;AAkCL;",
6
+ "names": []
7
+ }
package/dist/jsx/index.js CHANGED
@@ -38,6 +38,7 @@ import { TooltipDemo } from "./TooltipDemo";
38
38
  import { ColorsDemo } from "./ColorsDemo";
39
39
  import { TokensDemo } from "./TokensDemo";
40
40
  import { ToastDemo } from "./ToastDemo";
41
+ import { ToastDuplicateDemo } from "./ToastDuplicateDemo";
41
42
  import { TabsDemo } from "./TabsDemo";
42
43
  import { TabsAdvancedDemo } from "./TabsAdvancedDemo";
43
44
  export * from "./useOnIntersecting";
@@ -81,6 +82,7 @@ export {
81
82
  TextDemo,
82
83
  ThemeInverseDemo,
83
84
  ToastDemo,
85
+ ToastDuplicateDemo,
84
86
  TokensDemo,
85
87
  TooltipDemo,
86
88
  UpdateThemeDemo
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../src/index.tsx"],
4
- "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
- "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
4
+ "sourcesContent": ["export { AlertDialogDemo } from './AlertDialogDemo'\nexport { AnimationsDemo } from './AnimationsDemo'\nexport { AnimationsEnterDemo } from './AnimationsEnterDemo'\nexport { AnimationsHoverDemo } from './AnimationsHoverDemo'\nexport { AnimationsTimingDemo } from './AnimationsTimingDemo'\nexport { AnimationsPresenceDemo } from './AnimationsPresenceDemo'\nexport { AvatarDemo } from './AvatarDemo'\nexport { ButtonDemo } from './ButtonDemo'\nexport { CardDemo } from './CardDemo'\nexport { DialogDemo } from './DialogDemo'\nexport { AddThemeDemo } from './AddThemeDemo'\nexport { UpdateThemeDemo } from './UpdateThemeDemo'\nexport { FormsDemo } from './FormsDemo'\nexport { InputsDemo } from './InputsDemo'\nexport { GroupDemo } from './GroupDemo'\nexport { HeadingsDemo } from './HeadingsDemo'\nexport { ImageDemo } from './ImageDemo'\nexport { LabelDemo } from './LabelDemo'\nexport { LinearGradientDemo } from './LinearGradientDemo'\nexport { ListItemDemo } from './ListItemDemo'\nexport { LucideIconsDemo } from './LucideIconsDemo'\nexport { PopoverDemo } from './PopoverDemo'\nexport { ProgressDemo } from './ProgressDemo'\nexport { RadioGroupDemo } from './RadioGroupDemo'\nexport { SelectDemo } from './SelectDemo'\nexport { SeparatorDemo } from './SeparatorDemo'\nexport { ShapesDemo } from './ShapesDemo'\nexport { ScrollViewDemo } from './ScrollViewDemo'\nexport { SheetDemo } from './SheetDemo'\nexport { SliderDemo } from './SliderDemo'\nexport { SpinnerDemo } from './SpinnerDemo'\nexport { StacksDemo } from './StacksDemo'\nexport { SwitchDemo } from './SwitchDemo'\nexport { CheckboxDemo } from './CheckboxDemo'\nexport { TextDemo } from './TextDemo'\nexport { ThemeInverseDemo } from './ThemeInverseDemo'\nexport { TooltipDemo } from './TooltipDemo'\nexport { ColorsDemo } from './ColorsDemo'\nexport { TokensDemo } from './TokensDemo'\nexport { ToastDemo } from './ToastDemo'\nexport { ToastDuplicateDemo } from './ToastDuplicateDemo'\nexport { TabsDemo } from './TabsDemo'\nexport { TabsAdvancedDemo } from './TabsAdvancedDemo'\nexport * from './useOnIntersecting'\n"],
5
+ "mappings": "AAAA,SAAS,uBAAuB;AAChC,SAAS,sBAAsB;AAC/B,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AACpC,SAAS,4BAA4B;AACrC,SAAS,8BAA8B;AACvC,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,gBAAgB;AACzB,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,oBAAoB;AAC7B,SAAS,iBAAiB;AAC1B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,mBAAmB;AAC5B,SAAS,oBAAoB;AAC7B,SAAS,sBAAsB;AAC/B,SAAS,kBAAkB;AAC3B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,iBAAiB;AAC1B,SAAS,kBAAkB;AAC3B,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,oBAAoB;AAC7B,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,SAAS,mBAAmB;AAC5B,SAAS,kBAAkB;AAC3B,SAAS,kBAAkB;AAC3B,SAAS,iBAAiB;AAC1B,SAAS,0BAA0B;AACnC,SAAS,gBAAgB;AACzB,SAAS,wBAAwB;AACjC,cAAc;",
6
6
  "names": []
7
7
  }