@oaiz/app-kit 0.1.4254 → 0.1.4256

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oaiz/app-kit",
3
- "version": "0.1.4254",
3
+ "version": "0.1.4256",
4
4
  "description": "Source components, hooks and theme for apps built on OAIZ, to copy and change",
5
5
  "keywords": [
6
6
  "oaiz",
@@ -115,7 +115,7 @@ const ToastDescription = React.forwardRef<
115
115
  asChild
116
116
  size="sm"
117
117
  className={cn(
118
- 'opacity-90 group-[.destructive]:text-destructive-foreground group-[.destructive]:opacity-100',
118
+ 'whitespace-pre-line opacity-90 group-[.destructive]:text-destructive-foreground group-[.destructive]:opacity-100',
119
119
  className,
120
120
  )}
121
121
  >
@@ -94,21 +94,18 @@ export function Toaster({ labels }: { labels?: ToasterLabels } = {}) {
94
94
  aria-keyshortcuts={keyshortcuts}
95
95
  {...props}
96
96
  >
97
- <div className="flex min-w-0 flex-col gap-2">
97
+ <div className="flex min-w-0 flex-1 flex-col gap-stack">
98
98
  <ToastText title={title} description={description} />
99
99
  {action ? (
100
100
  <div
101
- className="flex flex-wrap items-center gap-inline"
101
+ className="flex flex-wrap items-center justify-end gap-inline"
102
102
  data-testid="toast-actions"
103
103
  >
104
104
  {action}
105
105
  </div>
106
106
  ) : null}
107
107
  </div>
108
- <ToastClose
109
- className="top-1/2 -translate-y-1/2"
110
- aria-label={closeLabel}
111
- />
108
+ <ToastClose aria-label={closeLabel} />
112
109
  </Toast>
113
110
  );
114
111
  }
@@ -12,8 +12,8 @@ type ToasterToast = ToastProps & {
12
12
  description?: React.ReactNode;
13
13
  action?: ToastActionElement;
14
14
  /**
15
- * `stacked` puts the actions in a row under the title, for toasts with more
16
- * than one action.
15
+ * `stacked` puts the actions in a right-aligned row under the text, for
16
+ * toasts with more than one action or a long description.
17
17
  */
18
18
  layout?: 'inline' | 'stacked';
19
19
  /** Runs when the person presses Cmd+Z or Ctrl+Z while the toast is open. */