@g4rcez/components 3.0.0-0 → 3.0.0

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 (175) hide show
  1. package/dist/components/core/button.d.ts +2 -8
  2. package/dist/components/core/button.d.ts.map +1 -1
  3. package/dist/components/core/button.jsx +11 -18
  4. package/dist/components/core/polymorph.d.ts.map +1 -1
  5. package/dist/components/core/slot.d.ts +1 -1
  6. package/dist/components/core/slot.d.ts.map +1 -1
  7. package/dist/components/core/slot.jsx +28 -35
  8. package/dist/components/core/tag.d.ts +1 -1
  9. package/dist/components/core/tag.d.ts.map +1 -1
  10. package/dist/components/core/tag.jsx +3 -3
  11. package/dist/components/core/typography.d.ts.map +1 -1
  12. package/dist/components/core/typography.jsx +16 -20
  13. package/dist/components/display/alert.d.ts.map +1 -1
  14. package/dist/components/display/alert.jsx +19 -17
  15. package/dist/components/display/calendar.d.ts.map +1 -1
  16. package/dist/components/display/calendar.jsx +6 -8
  17. package/dist/components/display/card.d.ts.map +1 -1
  18. package/dist/components/display/card.jsx +6 -6
  19. package/dist/components/display/empty.jsx +1 -1
  20. package/dist/components/display/notifications.d.ts +2 -0
  21. package/dist/components/display/notifications.d.ts.map +1 -1
  22. package/dist/components/display/notifications.jsx +76 -48
  23. package/dist/components/display/progress.d.ts.map +1 -1
  24. package/dist/components/display/progress.jsx +7 -9
  25. package/dist/components/display/shortcut.jsx +1 -1
  26. package/dist/components/display/skeleton.d.ts.map +1 -1
  27. package/dist/components/display/skeleton.jsx +3 -5
  28. package/dist/components/display/step.d.ts.map +1 -1
  29. package/dist/components/display/step.jsx +27 -27
  30. package/dist/components/display/tabs.d.ts.map +1 -1
  31. package/dist/components/display/tabs.jsx +5 -7
  32. package/dist/components/display/timeline.jsx +1 -1
  33. package/dist/components/floating/command-palette.d.ts +1 -0
  34. package/dist/components/floating/command-palette.d.ts.map +1 -1
  35. package/dist/components/floating/command-palette.jsx +92 -70
  36. package/dist/components/floating/dropdown.d.ts.map +1 -1
  37. package/dist/components/floating/dropdown.jsx +15 -15
  38. package/dist/components/floating/menu.d.ts +2 -2
  39. package/dist/components/floating/menu.jsx +2 -2
  40. package/dist/components/floating/modal.d.ts +20 -53
  41. package/dist/components/floating/modal.d.ts.map +1 -1
  42. package/dist/components/floating/modal.jsx +109 -51
  43. package/dist/components/floating/tooltip.d.ts.map +1 -1
  44. package/dist/components/floating/tooltip.jsx +2 -8
  45. package/dist/components/floating/wizard.d.ts +1 -1
  46. package/dist/components/floating/wizard.d.ts.map +1 -1
  47. package/dist/components/floating/wizard.jsx +50 -53
  48. package/dist/components/form/autocomplete.d.ts.map +1 -1
  49. package/dist/components/form/autocomplete.jsx +42 -38
  50. package/dist/components/form/checkbox.jsx +3 -3
  51. package/dist/components/form/date-picker.d.ts.map +1 -1
  52. package/dist/components/form/date-picker.jsx +14 -14
  53. package/dist/components/form/file-upload.jsx +13 -13
  54. package/dist/components/form/free-text.d.ts.map +1 -1
  55. package/dist/components/form/free-text.jsx +3 -3
  56. package/dist/components/form/input-field.d.ts +3 -2
  57. package/dist/components/form/input-field.d.ts.map +1 -1
  58. package/dist/components/form/input-field.jsx +43 -41
  59. package/dist/components/form/multi-select.d.ts.map +1 -1
  60. package/dist/components/form/multi-select.jsx +56 -56
  61. package/dist/components/form/select.d.ts.map +1 -1
  62. package/dist/components/form/select.jsx +3 -3
  63. package/dist/components/form/slider.d.ts.map +1 -1
  64. package/dist/components/form/slider.jsx +10 -10
  65. package/dist/components/form/switch.jsx +2 -2
  66. package/dist/components/form/transfer-list.jsx +3 -3
  67. package/dist/components/index.d.ts +2 -0
  68. package/dist/components/index.d.ts.map +1 -1
  69. package/dist/components/index.js +2 -0
  70. package/dist/components/page-calendar/calendar-header.d.ts +16 -0
  71. package/dist/components/page-calendar/calendar-header.d.ts.map +1 -0
  72. package/dist/components/page-calendar/calendar-header.jsx +81 -0
  73. package/dist/components/page-calendar/day-view.d.ts +12 -0
  74. package/dist/components/page-calendar/day-view.d.ts.map +1 -0
  75. package/dist/components/page-calendar/day-view.jsx +87 -0
  76. package/dist/components/page-calendar/event-pill.d.ts +9 -0
  77. package/dist/components/page-calendar/event-pill.d.ts.map +1 -0
  78. package/dist/components/page-calendar/event-pill.jsx +25 -0
  79. package/dist/components/page-calendar/index.d.ts +4 -0
  80. package/dist/components/page-calendar/index.d.ts.map +1 -0
  81. package/dist/components/page-calendar/index.js +2 -0
  82. package/dist/components/page-calendar/month-view.d.ts +11 -0
  83. package/dist/components/page-calendar/month-view.d.ts.map +1 -0
  84. package/dist/components/page-calendar/month-view.jsx +47 -0
  85. package/dist/components/page-calendar/page-calendar.d.ts +18 -0
  86. package/dist/components/page-calendar/page-calendar.d.ts.map +1 -0
  87. package/dist/components/page-calendar/page-calendar.jsx +41 -0
  88. package/dist/components/page-calendar/page-calendar.types.d.ts +18 -0
  89. package/dist/components/page-calendar/page-calendar.types.d.ts.map +1 -0
  90. package/dist/components/page-calendar/page-calendar.types.js +1 -0
  91. package/dist/components/page-calendar/page-calendar.utils.d.ts +18 -0
  92. package/dist/components/page-calendar/page-calendar.utils.d.ts.map +1 -0
  93. package/dist/components/page-calendar/page-calendar.utils.js +71 -0
  94. package/dist/components/page-calendar/week-view.d.ts +11 -0
  95. package/dist/components/page-calendar/week-view.d.ts.map +1 -0
  96. package/dist/components/page-calendar/week-view.jsx +64 -0
  97. package/dist/components/table/filter.jsx +4 -4
  98. package/dist/components/table/index.d.ts.map +1 -1
  99. package/dist/components/table/index.jsx +10 -10
  100. package/dist/components/table/inner-table.d.ts.map +1 -1
  101. package/dist/components/table/inner-table.jsx +18 -18
  102. package/dist/components/table/metadata.d.ts.map +1 -1
  103. package/dist/components/table/metadata.jsx +29 -30
  104. package/dist/components/table/pagination.jsx +1 -1
  105. package/dist/components/table/row.d.ts.map +1 -1
  106. package/dist/components/table/row.jsx +17 -17
  107. package/dist/components/table/sort.jsx +1 -1
  108. package/dist/components/table/table-lib.d.ts.map +1 -1
  109. package/dist/components/table/table-lib.js +1 -2
  110. package/dist/components/table/thead.d.ts.map +1 -1
  111. package/dist/components/table/thead.jsx +6 -6
  112. package/dist/config/context.d.ts.map +1 -1
  113. package/dist/config/default-translations.d.ts +17 -0
  114. package/dist/config/default-translations.d.ts.map +1 -1
  115. package/dist/config/default-translations.jsx +18 -1
  116. package/dist/constants.d.ts.map +1 -1
  117. package/dist/hooks/use-components-provider.d.ts.map +1 -1
  118. package/dist/hooks/use-components-provider.jsx +4 -1
  119. package/dist/hooks/use-form.d.ts +11 -11
  120. package/dist/hooks/use-form.d.ts.map +1 -1
  121. package/dist/hooks/use-form.js +1 -0
  122. package/dist/hooks/use-input-id.d.ts.map +1 -1
  123. package/dist/hooks/use-is-coarse-device.js +1 -1
  124. package/dist/hooks/use-preferences.d.ts.map +1 -1
  125. package/dist/hooks/use-previous.d.ts.map +1 -1
  126. package/dist/hooks/use-previous.js +1 -0
  127. package/dist/hooks/use-reactive.d.ts.map +1 -1
  128. package/dist/hooks/use-reactive.js +1 -0
  129. package/dist/hooks/use-resize-observer.d.ts.map +1 -1
  130. package/dist/hooks/use-stable-ref.d.ts.map +1 -1
  131. package/dist/hooks/use-stable-ref.js +1 -0
  132. package/dist/hooks/use-swipe.d.ts.map +1 -1
  133. package/dist/hooks/use-swipe.js +1 -0
  134. package/dist/hooks/use-translations.d.ts +17 -0
  135. package/dist/hooks/use-translations.d.ts.map +1 -1
  136. package/dist/index.css +1 -0
  137. package/dist/index.d.ts.map +1 -1
  138. package/dist/index.js.map +1 -1
  139. package/dist/index.mjs +13689 -12344
  140. package/dist/index.mjs.map +1 -1
  141. package/dist/index.umd.js +24 -17
  142. package/dist/index.umd.js.map +1 -1
  143. package/dist/lib/dom.d.ts +1 -0
  144. package/dist/lib/dom.d.ts.map +1 -1
  145. package/dist/lib/dom.js +20 -2
  146. package/dist/lib/fns.d.ts.map +1 -1
  147. package/dist/lib/fns.js +2 -2
  148. package/dist/preset/plugin.tailwind.d.ts +9 -0
  149. package/dist/preset/plugin.tailwind.d.ts.map +1 -0
  150. package/dist/preset/plugin.tailwind.js +27 -0
  151. package/dist/preset/preset.tailwind.d.ts +8 -0
  152. package/dist/preset/preset.tailwind.d.ts.map +1 -0
  153. package/dist/preset/preset.tailwind.js +54 -0
  154. package/dist/preset/src/styles/common.d.ts +2 -14
  155. package/dist/preset/src/styles/common.d.ts.map +1 -1
  156. package/dist/preset/src/styles/common.js +1 -0
  157. package/dist/preset/src/styles/dark.d.ts.map +1 -1
  158. package/dist/preset/src/styles/dark.js +119 -114
  159. package/dist/preset/src/styles/light.d.ts.map +1 -1
  160. package/dist/preset/src/styles/light.js +111 -106
  161. package/dist/preset/src/styles/theme.types.d.ts +17 -8
  162. package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
  163. package/dist/styles/common.d.ts +2 -14
  164. package/dist/styles/common.d.ts.map +1 -1
  165. package/dist/styles/common.js +1 -0
  166. package/dist/styles/dark.d.ts.map +1 -1
  167. package/dist/styles/dark.js +119 -114
  168. package/dist/styles/light.d.ts.map +1 -1
  169. package/dist/styles/light.js +111 -106
  170. package/dist/styles/theme.types.d.ts +17 -8
  171. package/dist/styles/theme.types.d.ts.map +1 -1
  172. package/package.json +299 -301
  173. package/dist/preset/tailwindcssv4.d.ts +0 -3
  174. package/dist/preset/tailwindcssv4.d.ts.map +0 -1
  175. package/dist/preset/tailwindcssv4.js +0 -75
@@ -1,14 +1,15 @@
1
1
  "use client";
2
+ import { Toast as Base } from "@base-ui/react/toast";
2
3
  import { cva } from "class-variance-authority";
3
- import { XIcon } from "lucide-react";
4
+ import { XIcon, CheckCircleIcon, TriangleAlertIcon, InfoIcon, Loader2Icon } from "lucide-react";
4
5
  import { AnimatePresence, motion } from "motion/react";
5
- import { Toast as Base } from "@base-ui/react/toast";
6
6
  import { createContext, useCallback, useContext, useRef } from "react";
7
7
  import { useHover } from "../../hooks/use-hover";
8
- const variants = cva("relative isolate z-tooltip flex justify-between overflow-hidden whitespace-wrap rounded-lg border text-sm shadow-shadow-notification", {
8
+ import { css } from "../../lib/dom";
9
+ const variants = cva("relative isolate z-tooltip flex w-full flex-col overflow-hidden rounded-xl border bg-card-background backdrop-blur-md text-sm shadow-notification transition-all duration-300", {
9
10
  variants: {
10
11
  theme: {
11
- default: "border-card-border bg-card-background text-foreground",
12
+ default: "border-card-border text-foreground shadow-black/5",
12
13
  info: "bg-alert-info-bg text-alert-info-text border-alert-info-border",
13
14
  warn: "bg-alert-warn-bg text-alert-warn-text border-alert-warn-border",
14
15
  muted: "bg-alert-muted-bg text-alert-muted-text border-alert-muted-border",
@@ -19,53 +20,66 @@ const variants = cva("relative isolate z-tooltip flex justify-between overflow-h
19
20
  },
20
21
  defaultVariants: { theme: "default" },
21
22
  });
23
+ const themeIcons = {
24
+ default: InfoIcon,
25
+ info: InfoIcon,
26
+ warn: TriangleAlertIcon,
27
+ muted: InfoIcon,
28
+ danger: TriangleAlertIcon,
29
+ success: CheckCircleIcon,
30
+ secondary: InfoIcon,
31
+ };
22
32
  const NotificationContext = createContext(() => {
23
33
  throw new Error("Not implemented");
24
34
  });
25
35
  export const useNotification = () => useContext(NotificationContext);
26
- const animatedIndex = {
27
- 0: { opacity: 1, y: [10, 15], scale: [1, 0.98] },
28
- 1: { opacity: 1, y: [15, 20], scale: [1, 0.97] },
29
- 2: { opacity: 1, y: [20, 25], scale: [1, 0.96] },
30
- default: { opacity: 1, y: [25, 30], scale: [1, 0.95] },
31
- };
32
36
  function Notification(props) {
33
37
  const closable = props.toast.data?.closable ?? true;
34
- const variant = props.hover ? "hover" : props.isLast ? "isLast" : "other";
35
- const className = variants({ theme: props.toast.data?.theme || "default" });
36
- return (<Base.Root toast={props.toast} swipeDirection={["down", "right"]}>
37
- <motion.li layout layoutScroll animate={variant} data-index={props.index} initial={{ y: -100, zIndex: -1 }} className="absolute top-0 right-0 w-80 pointer-events-auto text-select" transition={{ type: "spring", mass: 1.2, damping: 30, stiffness: 200 }} exit={{ opacity: [0.9, 0], transition: { opacity: { bounce: 0.25, duration: 0.3 } } }} variants={{
38
- isLast: { y: 10, scale: 1, animationDuration: "300ms", opacity: 1 },
39
- hover: { y: 0, position: "static", scale: 1, opacity: 1 },
40
- other: animatedIndex[props.reversedIndex] || animatedIndex.default,
41
- }}>
42
- <Base.Content className={className}>
43
- <div className="flex flex-col p-4">
44
- {props.toast.title ? (<Base.Title className="text-lg font-medium leading-relaxed select-text"/>) : null}
45
- <Base.Description className="select-text"/>
46
- </div>
47
- {closable ? (<Base.Close className="absolute top-2 right-2 p-1 rounded-full transition text-foreground hover:bg-danger/10 hover:text-danger-hover">
48
- <XIcon className="size-5"/>
49
- </Base.Close>) : null}
50
- </Base.Content>
51
- </motion.li>
52
- </Base.Root>);
38
+ const loading = props.toast.data?.loading ?? false;
39
+ const theme = props.toast.data?.theme || "default";
40
+ const className = variants({ theme });
41
+ const Icon = loading ? Loader2Icon : themeIcons[theme] || InfoIcon;
42
+ return (<Base.Root toast={props.toast} swipeDirection="right">
43
+ <motion.li layout initial={{ opacity: 0, y: -20, scale: 0.95 }} animate={{ opacity: 1, y: 0, scale: 1 }} exit={{ opacity: 0, scale: 0.9, y: -20, transition: { duration: 0.2 } }} transition={{
44
+ type: "spring",
45
+ damping: 25,
46
+ stiffness: 300,
47
+ }} className="pointer-events-auto w-full list-none">
48
+ <Base.Content className={css(className, "shadow-lg")}>
49
+ <div className="flex items-start gap-3 p-4">
50
+ <div className={css("mt-0.5 shrink-0 opacity-80", loading && "animate-spin")}>
51
+ <Icon className="size-4"/>
52
+ </div>
53
+
54
+ <div className="flex flex-1 flex-col gap-1 overflow-hidden">
55
+ {props.toast.title ? <Base.Title className="select-text truncate font-semibold leading-tight tracking-tight"/> : null}
56
+ <Base.Description className="line-clamp-2 select-text text-xs font-medium leading-relaxed opacity-90"/>
57
+ </div>
58
+
59
+ {closable && !loading ? (<Base.Close className="-mr-1 -mt-1 shrink-0 rounded-lg p-1.5 text-foreground/40 transition hover:bg-foreground/10 hover:text-foreground">
60
+ <XIcon className="size-3.5"/>
61
+ </Base.Close>) : null}
62
+ </div>
63
+ </Base.Content>
64
+ </motion.li>
65
+ </Base.Root>);
53
66
  }
54
67
  function NotificationsViewport({ max = 5 }) {
55
68
  const ref = useRef(null);
56
69
  const hover = useHover(ref);
57
70
  const toastManager = Base.useToastManager();
58
- const toasts = toastManager.toasts.slice(-max);
59
- return (<Base.Viewport ref={ref} data-items={toasts.length} style={{
60
- justifyContent: "start",
61
- height: `${(hover ? toasts.length : Math.min(1, toasts.length)) * 7}rem`,
62
- }} className="fixed right-4 top-10 flex w-80 list-none flex-col-reverse items-end gap-4 overflow-y-clip overflow-x-visible data-[items=true]:pb-8 max-sm:top-20">
63
- <motion.ol className="flex flex-col gap-4">
64
- <AnimatePresence presenceAffectsLayout mode="popLayout">
65
- {toasts.reverse().map((toast, index, list) => (<Notification toast={toast} hover={hover} index={index} key={toast.id} isLast={list.length - 1 === index} reversedIndex={list.length - (index + 1)}/>))}
66
- </AnimatePresence>
67
- </motion.ol>
68
- </Base.Viewport>);
71
+ const allToasts = max ? toastManager.toasts.slice(0, max) : toastManager.toasts;
72
+ const visibleToasts = hover ? allToasts : allToasts.slice(0, 3);
73
+ const hiddenCount = allToasts.length - visibleToasts.length;
74
+ return (<Base.Viewport ref={ref} className="pointer-events-none fixed left-1/2 top-6 z-[100] flex w-full max-w-[380px] -translate-x-1/2 flex-col gap-3 overflow-visible outline-none">
75
+ <AnimatePresence mode="popLayout" initial={false}>
76
+ {visibleToasts.map((toast) => (<Notification key={toast.id} toast={toast}/>))}
77
+ </AnimatePresence>
78
+
79
+ {!hover && hiddenCount > 0 && (<motion.div layout initial={{ opacity: 0, y: -10 }} animate={{ opacity: 1, y: 0 }} exit={{ opacity: 0, y: -10 }} className="pointer-events-auto cursor-default self-center rounded-full border border-card-border bg-card-background/80 px-3 py-1 text-[10px] font-bold uppercase tracking-wider text-foreground/50 shadow-sm backdrop-blur transition-all hover:bg-card-background hover:text-foreground/80">
80
+ +{hiddenCount} more
81
+ </motion.div>)}
82
+ </Base.Viewport>);
69
83
  }
70
84
  function NotificationsInner({ children, max = 5 }) {
71
85
  const toastManager = Base.useToastManager();
@@ -73,11 +87,25 @@ function NotificationsInner({ children, max = 5 }) {
73
87
  toastManager.toasts.forEach((t) => toastManager.close(t.id));
74
88
  }, [toastManager]);
75
89
  const notify = useCallback((description, args) => {
90
+ const data = { theme: args?.theme, closable: args?.closable, loading: args?.loading };
91
+ if (args?.id) {
92
+ const existing = toastManager.toasts.find((t) => t.id === args.id);
93
+ if (existing) {
94
+ toastManager.update(args.id, {
95
+ description,
96
+ title: args.title,
97
+ timeout: args.timeout,
98
+ data,
99
+ });
100
+ return { close: () => toastManager.close(args.id), clear };
101
+ }
102
+ }
76
103
  const id = toastManager.add({
77
104
  description,
105
+ id: args?.id,
78
106
  title: args?.title,
79
107
  timeout: args?.timeout,
80
- data: { theme: args?.theme, closable: args?.closable },
108
+ data,
81
109
  });
82
110
  return {
83
111
  close: () => toastManager.close(id),
@@ -85,14 +113,14 @@ function NotificationsInner({ children, max = 5 }) {
85
113
  };
86
114
  }, [toastManager, clear]);
87
115
  return (<NotificationContext.Provider value={notify}>
88
- {children}
89
- <Base.Portal>
90
- <NotificationsViewport max={max}/>
91
- </Base.Portal>
92
- </NotificationContext.Provider>);
116
+ {children}
117
+ <Base.Portal>
118
+ <NotificationsViewport max={max}/>
119
+ </Base.Portal>
120
+ </NotificationContext.Provider>);
93
121
  }
94
122
  export function Notifications({ children, max = 5, timeout = 5000 }) {
95
123
  return (<Base.Provider limit={max} timeout={timeout}>
96
- <NotificationsInner max={max}>{children}</NotificationsInner>
97
- </Base.Provider>);
124
+ <NotificationsInner max={max}>{children}</NotificationsInner>
125
+ </Base.Provider>);
98
126
  }
@@ -1 +1 @@
1
- {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/display/progress.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,KAAK,aAAa,GAAG;IACnB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAA;AAED,eAAO,MAAM,QAAQ,GAAI,OAAO,eAAe,CAAC,aAAa,CAAC,gCAoB7D,CAAA"}
1
+ {"version":3,"file":"progress.d.ts","sourceRoot":"","sources":["../../../src/components/display/progress.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,KAAK,aAAa,GAAG;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,QAAQ,GAAI,OAAO,eAAe,CAAC,aAAa,CAAC,gCAwB7D,CAAC"}
@@ -1,13 +1,11 @@
1
1
  import { Is } from "sidekicker";
2
- import { Progress as ProgressBar } from "@base-ui/react/progress";
2
+ import { Progress as RadixProgress } from "@base-ui/react/progress";
3
3
  import { css } from "../../lib/dom";
4
4
  export const Progress = (props) => {
5
- return (<ProgressBar.Root max={props.max} value={props.percent ?? null} style={{ transform: "translateZ(0)", }} className={css("overflow-hidden relative w-full rounded-full h-6 bg-background", props.container)}>
6
- <ProgressBar.Indicator style={{ transform: Is.number(props.percent) ? `translateX(-${100 - props.percent}%)` : undefined }} className={css("bg-primary transition-transform ease-in-out size-full duration-500", props.className)}/>
7
- {Is.number(props.percent)
8
- ? <p className={css("flex absolute inset-0 justify-center items-center w-full font-semibold tabular-nums text-primary-foreground", props.textClassName)}>
9
- {props.label ? props.label : `${props.percent} %`}
10
- </p>
11
- : null}
12
- </ProgressBar.Root>);
5
+ return (<RadixProgress.Root max={props.max} value={props.percent ?? null} style={{ transform: "translateZ(0)" }} className={css("relative h-6 w-full overflow-hidden rounded-full bg-background", props.container)}>
6
+ <RadixProgress.Indicator style={{ transform: Is.number(props.percent) ? `translateX(-${100 - props.percent}%)` : undefined }} className={css("size-full bg-primary transition-transform duration-500 ease-in-out", props.className)}/>
7
+ {Is.number(props.percent) ? (<p className={css("absolute inset-0 flex w-full items-center justify-center font-semibold tabular-nums text-primary-foreground", props.textClassName)}>
8
+ {props.label ? props.label : `${props.percent} %`}
9
+ </p>) : null}
10
+ </RadixProgress.Root>);
13
11
  };
@@ -11,7 +11,7 @@ const remap = (x) => {
11
11
  };
12
12
  export const Shortcut = (props) => {
13
13
  const p = props.value.trim().split("+");
14
- return (<span className="flex text-sm items-center gap-1">
14
+ return (<span className="flex items-center gap-1 text-sm">
15
15
  {p.map((x, i) => {
16
16
  const isLast = p.length - 1 === i;
17
17
  return (<Fragment key={`${props.value}-${x}-key-${i}`}>
@@ -1 +1 @@
1
- {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/display/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAU,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAIvE,eAAO,MAAM,YAAY,mBAAoE,CAAC;AAE9F,eAAO,MAAM,QAAQ,GAAI,OAAO;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,sBAE9F,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sBAUvE,CAAA"}
1
+ {"version":3,"file":"skeleton.d.ts","sourceRoot":"","sources":["../../../src/components/display/skeleton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAU,KAAK,WAAW,EAAE,MAAM,OAAO,CAAC;AAIvE,eAAO,MAAM,YAAY,mBAAiE,CAAC;AAE3F,eAAO,MAAM,QAAQ,GAAI,OAAO;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,WAAW,CAAC;IAAC,KAAK,CAAC,EAAE,aAAa,CAAA;CAAE,sBAE9F,CAAC;AAEF,eAAO,MAAM,YAAY,GAAI,OAAO;IAAE,SAAS,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,sBAQvE,CAAC"}
@@ -1,14 +1,12 @@
1
1
  import React, { useRef } from "react";
2
2
  import { css } from "../../lib/dom";
3
3
  import { Polymorph } from "../core/polymorph";
4
- export const SkeletonCell = <div className="w-10/12 h-6 rounded-sm animate-pulse bg-muted"/>;
5
- export const Skeleton = (props) => (<Polymorph {...props} as={props.as || "span"} className={css("block rounded-sm h-8 w-32 animate-pulse bg-muted", props.className)}/>);
4
+ export const SkeletonCell = <div className="h-6 w-10/12 animate-pulse rounded bg-muted"/>;
5
+ export const Skeleton = (props) => (<Polymorph {...props} as={props.as || "span"} className={css("block h-8 w-32 animate-pulse rounded bg-muted", props.className)}/>);
6
6
  export const SkeletonList = (props) => {
7
7
  const items = useRef(Array.from({ length: props.rows }).map((_, i) => {
8
8
  const rand = Math.max(100, Math.random() * 99);
9
9
  return <Skeleton key={`skeleton-${rand}-${i}`} style={{ width: `${rand}%` }} as="li"/>;
10
10
  }));
11
- return (<ul className={css("flex flex-col gap-6", props.className)}>
12
- {items.current}
13
- </ul>);
11
+ return <ul className={css("flex flex-col gap-6", props.className)}>{items.current}</ul>;
14
12
  };
@@ -1 +1 @@
1
- {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../src/components/display/step.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA2C,iBAAiB,EAA2C,MAAM,OAAO,CAAC;AAEnI,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,KAAK,gBAAgB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AA+BlH,KAAK,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACvD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB,CAAC;AAiCF,eAAO,MAAM,cAAc,+BAAgC,CAAC;AAE5D,eAAO,MAAM,IAAI,GAAI,gEAAgE,SAAS,sBA0F7F,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,sBA0BrF,CAAC"}
1
+ {"version":3,"file":"step.d.ts","sourceRoot":"","sources":["../../../src/components/display/step.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAA2C,iBAAiB,EAA2C,MAAM,OAAO,CAAC;AAEnI,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAMpC,KAAK,gBAAgB,GAAG;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAC;IAAC,mBAAmB,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AA+BlH,KAAK,UAAU,GAAG,QAAQ,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;AAE/D,MAAM,MAAM,SAAS,GAAG,KAAK,CAAC,cAAc,CAAC,QAAQ,CAAC,GAAG;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;CAC3B,CAAC;AA2BF,eAAO,MAAM,cAAc,+BAAgC,CAAC;AAE5D,eAAO,MAAM,IAAI,GAAI,gEAAgE,SAAS,sBA6F7F,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,OAAO,iBAAiB,CAAC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,sBA0BrF,CAAC"}
@@ -11,17 +11,17 @@ const states = {
11
11
  animate: { pathLength: 1, opacity: 1 },
12
12
  };
13
13
  const ErrorIcon = (props) => (<svg {...props} viewBox="0 0 24 24" fill="currentColor" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
14
- <motion.path className="currentColor" initial={states.initial} animate={states.animate} transition={iconTransitions} d="M18 6 6 18"/>
15
- <motion.path className="currentColor" initial={states.initial} animate={states.animate} transition={iconTransitions} d="m6 6 12 12"/>
16
- </svg>);
14
+ <motion.path className="currentColor" initial={states.initial} animate={states.animate} transition={iconTransitions} d="M18 6 6 18"/>
15
+ <motion.path className="currentColor" initial={states.initial} animate={states.animate} transition={iconTransitions} d="m6 6 12 12"/>
16
+ </svg>);
17
17
  const CheckIcon = (props) => (<svg {...props} fill="none" viewBox="0 0 24 24" stroke="currentColor" strokeWidth={3}>
18
- <motion.path d="M5 13l4 4L19 7" strokeLinecap="round" strokeLinejoin="round" animate={states.animate} initial={states.initial} transition={iconTransitions}/>
19
- </svg>);
18
+ <motion.path d="M5 13l4 4L19 7" strokeLinecap="round" strokeLinejoin="round" animate={states.animate} initial={states.initial} transition={iconTransitions}/>
19
+ </svg>);
20
20
  const variants = {
21
21
  complete: { scale: 1.25 },
22
- active: { scale: 1, transition: { delay: 0, duration: 0.3 } }
22
+ active: { scale: 1, transition: { delay: 0, duration: 0.3 } },
23
23
  };
24
- const transitions = { duration: 0.6, delay: 0.2, type: "tween", ease: "circOut", };
24
+ const transitions = { duration: 0.6, delay: 0.2, type: "tween", ease: "circOut" };
25
25
  const getCurrentStatus = (step, currentStep, status) => {
26
26
  if (status === "error")
27
27
  return "error";
@@ -65,12 +65,12 @@ export const Step = ({ step, currentStep, status, title, titleClassName, ...prop
65
65
  return () => clearTimeout(timer);
66
66
  }, [currentStep, context, step]);
67
67
  const innerStatus = getCurrentStatus(step, visualCurrentStep, status);
68
- const widthPerStep = context?.steps ? 100 / (context?.steps) : undefined;
68
+ const widthPerStep = context?.steps ? 100 / context?.steps : undefined;
69
69
  return (<Fragment>
70
- <div className={`h-[2px] w-full xl:block bg-card-border hidden first:hidden ${innerStatus === "active" || innerStatus === "complete" ? "bg-success" : ""}`}/>
71
- <motion.button {...props} type="button" data-step={step} animate={innerStatus} className="flex relative justify-center items-center w-auto text-center">
72
- <motion.div variants={variants} transition={transitions} className={`hidden xl:block absolute inset-0 rounded-full text-center ${innerStatus === "error" ? "bg-danger" : ""}`}/>
73
- <motion.div initial={false} animate={innerStatus} transition={transition} className="flex relative justify-center items-center font-semibold rounded-full size-10 aspect-square" variants={{
70
+ <div className={`hidden h-[2px] w-full bg-card-border first:hidden xl:block ${innerStatus === "active" || innerStatus === "complete" ? "bg-success" : ""}`}/>
71
+ <motion.button {...props} type="button" data-step={step} animate={innerStatus} className="relative flex w-auto items-center justify-center text-center">
72
+ <motion.div variants={variants} transition={transitions} className={`absolute inset-0 hidden rounded-full text-center xl:block ${innerStatus === "error" ? "bg-danger" : ""}`}/>
73
+ <motion.div initial={false} animate={innerStatus} transition={transition} className="relative flex aspect-square size-10 items-center justify-center rounded-full font-semibold" variants={{
74
74
  error: {
75
75
  color: parser("var(--danger-foreground)"),
76
76
  borderColor: parser("var(--danger-hover)"),
@@ -95,17 +95,17 @@ export const Step = ({ step, currentStep, status, title, titleClassName, ...prop
95
95
  backgroundColor: parser("var(--success-DEFAULT)"),
96
96
  },
97
97
  }}>
98
- <div className="flex justify-center items-center">
99
- {innerStatus === "complete" ? (<CheckIcon className="size-6 text-primary-foreground"/>) : innerStatus === "error" ? (<ErrorIcon className="size-6 text-danger-foreground"/>) : (<Fragment>
100
- <span>{step}</span>
101
- </Fragment>)}
102
- </div>
103
- </motion.div>
104
- <header className="flex flex-col justify-start items-start px-2">
105
- <h3 className={`h-full whitespace-nowrap flex items-center ${titleClassName}`}>{title}</h3>
106
- </header>
107
- </motion.button>
108
- </Fragment>);
98
+ <div className="flex items-center justify-center">
99
+ {innerStatus === "complete" ? (<CheckIcon className="size-6 text-primary-foreground"/>) : innerStatus === "error" ? (<ErrorIcon className="size-6 text-danger-foreground"/>) : (<Fragment>
100
+ <span>{step}</span>
101
+ </Fragment>)}
102
+ </div>
103
+ </motion.div>
104
+ <header className="flex flex-col items-start justify-start px-2">
105
+ <h3 className={`flex h-full items-center whitespace-nowrap ${titleClassName}`}>{title}</h3>
106
+ </header>
107
+ </motion.button>
108
+ </Fragment>);
109
109
  };
110
110
  export const Steps = (props) => {
111
111
  const previousStepRef = useRef(props.currentStep);
@@ -124,8 +124,8 @@ export const Steps = (props) => {
124
124
  steps: React.Children.count(props.children),
125
125
  };
126
126
  return (<StepContext.Provider value={contextValue}>
127
- <div className="flex relative flex-col gap-4 justify-center items-start w-full lg:flex-row lg:justify-between lg:items-center">
128
- {props.children}
129
- </div>
130
- </StepContext.Provider>);
127
+ <div className="relative flex w-full flex-col items-start justify-center gap-4 lg:flex-row lg:items-center lg:justify-between">
128
+ {props.children}
129
+ </div>
130
+ </StepContext.Provider>);
131
131
  };
@@ -1 +1 @@
1
- {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/display/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2B,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAMzG,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAiCF,eAAO,MAAM,IAAI,GAAI,OAAO,iBAAiB,CAAC,SAAS,CAAC,sBAsFvD,CAAC;AAIF,KAAK,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,cAAc,GACjC,CACM;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACpC;IACE,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC9B,CACJ,CAAC;AAEN,eAAO,MAAM,GAAG,GAAI,OAAO,iBAAiB,CAAC,QAAQ,CAAC,sBAGrD,CAAC"}
1
+ {"version":3,"file":"tabs.d.ts","sourceRoot":"","sources":["../../../src/components/display/tabs.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAA2B,iBAAiB,EAAiC,MAAM,OAAO,CAAC;AAMzG,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEpC,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AAEzC,MAAM,MAAM,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,UAAU,CAAC,GAAG;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AA+BF,eAAO,MAAM,IAAI,GAAI,OAAO,iBAAiB,CAAC,SAAS,CAAC,sBAsFvD,CAAC;AAIF,KAAK,cAAc,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CAAC;AAEzD,MAAM,MAAM,QAAQ,GAAG,cAAc,GACjC,CACM;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,SAAS,CAAA;CAAE,GACpC;IACI,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;CAC9B,CACN,CAAC;AAEN,eAAO,MAAM,GAAG,GAAI,OAAO,iBAAiB,CAAC,QAAQ,CAAC,sBAGrD,CAAC"}
@@ -17,9 +17,7 @@ const getNElement = (elements, currentIndex, direction) => {
17
17
  if (!isElementDisabled(element))
18
18
  return element;
19
19
  }
20
- return direction === "backward"
21
- ? getNElement(elements, elements.length - 1, "backward")
22
- : getNElement(elements, -1, "forward");
20
+ return direction === "backward" ? getNElement(elements, elements.length - 1, "backward") : getNElement(elements, -1, "forward");
23
21
  };
24
22
  const moveOn = (ul, direction) => {
25
23
  const items = Array.from(ul.querySelectorAll("li"));
@@ -73,15 +71,15 @@ export const Tabs = (props) => {
73
71
  }
74
72
  };
75
73
  return (<Context.Provider value={active}>
76
- <Card className={props.className} container={css("pt-0 max-w-full w-full min-w-0", props.container)} header={<header className="overflow-x-auto relative mb-2">
77
- <div className="absolute bottom-0 w-full h-px bg-card-border"/>
74
+ <Card className={props.className} container={css("pt-0 max-w-full w-full min-w-0", props.container)} header={<header className="relative mb-2 overflow-x-auto">
75
+ <div className="absolute bottom-0 h-[1px] w-full bg-card-border"/>
78
76
  <nav className="min-w-0">
79
- <ul onKeyDown={onKeyDown} ref={ref} className="flex overflow-x-auto flex-1 justify-start w-0 min-w-full">
77
+ <ul onKeyDown={onKeyDown} ref={ref} className="flex w-0 min-w-full flex-1 justify-start overflow-x-auto">
80
78
  {items.map((x) => {
81
79
  const inner = x.props;
82
80
  const current = active === inner.id;
83
81
  return (<li data-id={inner.id} data-active={current} key={`tab-header-${inner.id}`} aria-disabled={inner.disabled} className={css("relative w-fit border-b border-transparent transition-all", current ? "border-primary font-medium text-primary" : "", inner.disabled ? "aria-disabled:text-disabled" : "")}>
84
- <Polymorph as="button" type="button" data-id={inner.id} aria-current="page" disabled={inner.disabled} onClick={inner.disabled ? undefined : onClick} className="block py-4 px-10 w-full whitespace-nowrap disabled:cursor-not-allowed">
82
+ <Polymorph as="button" type="button" data-id={inner.id} aria-current="page" disabled={inner.disabled} onClick={inner.disabled ? undefined : onClick} className="block w-full whitespace-nowrap px-10 py-4 disabled:cursor-not-allowed">
85
83
  {inner.title}
86
84
  </Polymorph>
87
85
  </li>);
@@ -6,7 +6,7 @@ export const TimelineItem = (props) => (<li data-component="timeline-item" class
6
6
  <div className="relative flex items-stretch justify-start space-x-3">{props.children}</div>
7
7
  </li>);
8
8
  TimelineItem.Icon = function TimelineIcon(props) {
9
- return (<header {...props} className={css("flex size-12 items-center justify-center rounded-full bg-primary p-2 text-primary-foreground", props.className)}>
9
+ return (<header {...props} className={css("flex size-12 items-center justify-center rounded-full bg-primary p-2 text-warn-foreground", props.className)}>
10
10
  {props.children}
11
11
  </header>);
12
12
  };
@@ -16,6 +16,7 @@ type CommandShortcutItem = CommandItem<"shortcut", {
16
16
  shortcut?: string;
17
17
  action: (args: {
18
18
  text: string;
19
+ setText: (state: string) => void;
19
20
  setOpen: (state: boolean) => void;
20
21
  event: KeyboardEvent | React.MouseEvent | React.KeyboardEvent;
21
22
  }) => void | Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"command-palette.d.ts","sourceRoot":"","sources":["../../../src/components/floating/command-palette.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,WAAW,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAmE,MAAM,OAAO,CAAC;AAQxF,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAKpC,KAAK,SAAS,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAElC,KAAK,WAAW,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,MAAM,IAAI,CAAC,GAAG;IACzD,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IACzB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC;IAC1B,OAAO,CAAC,EAAE,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,OAAO,CAAC,GAAG,OAAO,CAAC;CACrD,CAAC;AAEF,KAAK,IAAI,GAAG,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,SAAS,KAAK,MAAM,CAAC,CAAC;AAEpD,KAAK,mBAAmB,GAAG,WAAW,CACpC,UAAU,EACV;IACE,KAAK,EAAE,IAAI,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,CAAC,IAAI,EAAE;QACb,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,aAAa,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,aAAa,CAAC;KAC/D,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CAC5B,CACF,CAAC;AAEF,KAAK,gBAAgB,GAAG,WAAW,CA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