@gears-frontx/ui-kit 0.4.0-alpha.1 → 0.4.0-alpha.3

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 (64) hide show
  1. package/dist/alert.js +11 -11
  2. package/dist/attachment.js +45 -37
  3. package/dist/attachment.js.map +1 -1
  4. package/dist/avatar.js +39 -39
  5. package/dist/badge.js +15 -15
  6. package/dist/bubble.js +40 -39
  7. package/dist/bubble.js.map +1 -1
  8. package/dist/button.js +28 -28
  9. package/dist/chunks/alert.C5BedF7l.css +1 -0
  10. package/dist/chunks/attachment.GAZbWSyB.css +1 -0
  11. package/dist/chunks/avatar.DZUXl1ev.css +1 -0
  12. package/dist/chunks/badge.Bi22h20j.css +1 -0
  13. package/dist/chunks/bubble.DvN6QyQ1.css +1 -0
  14. package/dist/chunks/button.DvAxXxKj.css +1 -0
  15. package/dist/chunks/context-menu.DwGCD0vN.css +1 -0
  16. package/dist/chunks/data-table.CtZdVSAU.css +1 -0
  17. package/dist/chunks/dropdown-menu.C5TLD9JO.css +1 -0
  18. package/dist/chunks/empty.BlhsHrOz.css +1 -0
  19. package/dist/chunks/field.Ccqt897k.css +1 -0
  20. package/dist/chunks/item.BkcgydVc.css +1 -0
  21. package/dist/chunks/native-select.DF1QrNz4.css +1 -0
  22. package/dist/chunks/questionnaire.D-u_K3Co.css +1 -0
  23. package/dist/chunks/table.BpnQ6j85.css +1 -0
  24. package/dist/chunks/tabs.4MEFBvw-.css +1 -0
  25. package/dist/chunks/toast.uUtCEAiv.css +1 -0
  26. package/dist/components/attachment/attachment.d.ts.map +1 -1
  27. package/dist/components/bubble/bubble.d.ts.map +1 -1
  28. package/dist/components/marker/marker.d.ts.map +1 -1
  29. package/dist/context-menu.js +62 -62
  30. package/dist/data-table.js +26 -26
  31. package/dist/docs/badge.md +7 -8
  32. package/dist/docs/questionnaire.md +4 -4
  33. package/dist/docs/sidebar.md +2 -2
  34. package/dist/dropdown-menu.js +65 -65
  35. package/dist/empty.js +18 -18
  36. package/dist/field.js +10 -10
  37. package/dist/item.js +20 -20
  38. package/dist/marker.js +26 -25
  39. package/dist/marker.js.map +1 -1
  40. package/dist/native-select.js +21 -20
  41. package/dist/native-select.js.map +1 -1
  42. package/dist/questionnaire.js +77 -77
  43. package/dist/table.js +23 -23
  44. package/dist/tabs.js +17 -17
  45. package/dist/theme.css +359 -242
  46. package/dist/toast.js +50 -50
  47. package/package.json +1 -1
  48. package/dist/chunks/alert.BJLRcB65.css +0 -1
  49. package/dist/chunks/attachment.rknKEWlr.css +0 -1
  50. package/dist/chunks/avatar.CsQmQnay.css +0 -1
  51. package/dist/chunks/badge.DR0epAiZ.css +0 -1
  52. package/dist/chunks/bubble.BKcAopT7.css +0 -1
  53. package/dist/chunks/button.D69BdJF1.css +0 -1
  54. package/dist/chunks/context-menu.Bjib7_AL.css +0 -1
  55. package/dist/chunks/data-table.DECm3qI-.css +0 -1
  56. package/dist/chunks/dropdown-menu.CDaeWYDT.css +0 -1
  57. package/dist/chunks/empty.B334jSES.css +0 -1
  58. package/dist/chunks/field.yTrg1G90.css +0 -1
  59. package/dist/chunks/item.CLg1KaYF.css +0 -1
  60. package/dist/chunks/native-select.BdYLTCZv.css +0 -1
  61. package/dist/chunks/questionnaire.DYnuWKAQ.css +0 -1
  62. package/dist/chunks/table.CFAJfhd-.css +0 -1
  63. package/dist/chunks/tabs.C4jGj2Vg.css +0 -1
  64. package/dist/chunks/toast.DMUpK07T.css +0 -1
package/dist/alert.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
2
  import { cx as i, cva as n } from "class-variance-authority";
3
- import './chunks/alert.BJLRcB65.css';const c = "_alert_lk4yu_13", s = "_variantDefault_lk4yu_30", o = "_variantDestructive_lk4yu_35", u = "_alertTitle_lk4yu_72", v = "_alertDescription_lk4yu_80", _ = "_alertAction_lk4yu_95", e = {
4
- alert: c,
5
- variantDefault: s,
6
- variantDestructive: o,
7
- alertTitle: u,
8
- alertDescription: v,
9
- alertAction: _
10
- }, f = n(e.alert, {
3
+ import './chunks/alert.C5BedF7l.css';const o = "_alert_boklf_13", c = "_variantDefault_boklf_30", s = "_variantDestructive_boklf_35", v = "_alertTitle_boklf_77", u = "_alertDescription_boklf_85", f = "_alertAction_boklf_100", e = {
4
+ alert: o,
5
+ variantDefault: c,
6
+ variantDestructive: s,
7
+ alertTitle: v,
8
+ alertDescription: u,
9
+ alertAction: f
10
+ }, _ = n(e.alert, {
11
11
  variants: {
12
12
  variant: {
13
13
  default: e.variantDefault,
@@ -19,7 +19,7 @@ import './chunks/alert.BJLRcB65.css';const c = "_alert_lk4yu_13", s = "_variantD
19
19
  }
20
20
  });
21
21
  function d({ className: t, variant: a, ...l }) {
22
- return /* @__PURE__ */ r("div", { role: "alert", className: f({ variant: a, className: t }), ...l });
22
+ return /* @__PURE__ */ r("div", { role: "alert", className: _({ variant: a, className: t }), ...l });
23
23
  }
24
24
  function m({ className: t, ...a }) {
25
25
  return /* @__PURE__ */ r("div", { className: i(e.alertTitle, t), ...a });
@@ -27,12 +27,12 @@ function m({ className: t, ...a }) {
27
27
  function p({ className: t, ...a }) {
28
28
  return /* @__PURE__ */ r("div", { className: i(e.alertDescription, t), ...a });
29
29
  }
30
- function y({ className: t, ...a }) {
30
+ function b({ className: t, ...a }) {
31
31
  return /* @__PURE__ */ r("div", { className: i(e.alertAction, t), ...a });
32
32
  }
33
33
  export {
34
34
  d as Alert,
35
- y as AlertAction,
35
+ b as AlertAction,
36
36
  p as AlertDescription,
37
37
  m as AlertTitle
38
38
  };
@@ -1,28 +1,28 @@
1
1
  "use client";
2
- import { jsx as i } from "react/jsx-runtime";
2
+ import { jsx as o } from "react/jsx-runtime";
3
3
  import { mergeProps as h } from "@base-ui/react/merge-props";
4
4
  import { useRender as _ } from "@base-ui/react/use-render";
5
- import { cx as o, cva as r } from "class-variance-authority";
5
+ import { cx as c, cva as r } from "class-variance-authority";
6
6
  import { useContext as l, createContext as u } from "react";
7
7
  import { Button as d } from "./button.js";
8
- import './chunks/attachment.rknKEWlr.css';const f = "_attachment_1njaq_20", p = "_sizeDefault_1njaq_61", v = "_attachmentContent_1njaq_67", z = "_sizeSm_1njaq_75", g = "_sizeXs_1njaq_89", A = "_orientationHorizontal_1njaq_107", j = "_orientationVertical_1njaq_114", q = "_attachmentMedia_1njaq_124", T = "_variantIcon_1njaq_185", N = "_variantImage_1njaq_188", D = "_attachmentTitle_1njaq_209", x = "_attachmentDescription_1njaq_220", C = "_attachmentActions_1njaq_236", I = "_attachmentAction_1njaq_236", V = "_attachmentTrigger_1njaq_258", M = "_attachmentGroup_1njaq_265", n = {
8
+ import './chunks/attachment.GAZbWSyB.css';const f = "_attachment_1j371_20", v = "_sizeDefault_1j371_61", p = "_attachmentContent_1j371_67", z = "_sizeSm_1j371_75", g = "_sizeXs_1j371_89", A = "_orientationHorizontal_1j371_107", j = "_orientationVertical_1j371_114", T = "_attachmentMedia_1j371_124", N = "_variantIcon_1j371_188", D = "_variantImage_1j371_191", V = "_attachmentTitle_1j371_212", x = "_attachmentDescription_1j371_223", C = "_attachmentActions_1j371_248", I = "_attachmentAction_1j371_248", M = "_attachmentTrigger_1j371_270", G = "_attachmentGroup_1j371_277", n = {
9
9
  attachment: f,
10
- sizeDefault: p,
11
- attachmentContent: v,
10
+ sizeDefault: v,
11
+ attachmentContent: p,
12
12
  sizeSm: z,
13
13
  sizeXs: g,
14
14
  orientationHorizontal: A,
15
15
  orientationVertical: j,
16
- attachmentMedia: q,
17
- variantIcon: T,
18
- variantImage: N,
19
- attachmentTitle: D,
16
+ attachmentMedia: T,
17
+ variantIcon: N,
18
+ variantImage: D,
19
+ attachmentTitle: V,
20
20
  attachmentDescription: x,
21
21
  attachmentActions: C,
22
22
  attachmentAction: I,
23
- attachmentTrigger: V,
24
- attachmentGroup: M
25
- }, s = u("done"), G = r(n.attachment, {
23
+ attachmentTrigger: M,
24
+ attachmentGroup: G
25
+ }, s = u("done"), S = r(n.attachment, {
26
26
  variants: {
27
27
  size: {
28
28
  default: n.sizeDefault,
@@ -39,25 +39,25 @@ import './chunks/attachment.rknKEWlr.css';const f = "_attachment_1njaq_20", p =
39
39
  orientation: "horizontal"
40
40
  }
41
41
  });
42
- function R({
42
+ function k({
43
43
  className: a,
44
44
  state: t = "done",
45
45
  size: e = "default",
46
- orientation: c = "horizontal",
46
+ orientation: i = "horizontal",
47
47
  ...m
48
48
  }) {
49
- return /* @__PURE__ */ i(s.Provider, { value: t, children: /* @__PURE__ */ i(
49
+ return /* @__PURE__ */ o(s.Provider, { value: t, children: /* @__PURE__ */ o(
50
50
  "div",
51
51
  {
52
52
  "data-state": t,
53
53
  "data-size": e,
54
- "data-orientation": c,
55
- className: G({ size: e, orientation: c, className: a }),
54
+ "data-orientation": i,
55
+ className: S({ size: e, orientation: i, className: a }),
56
56
  ...m
57
57
  }
58
58
  ) });
59
59
  }
60
- const S = r(n.attachmentMedia, {
60
+ const H = r(n.attachmentMedia, {
61
61
  variants: {
62
62
  variant: {
63
63
  icon: n.variantIcon,
@@ -68,66 +68,74 @@ const S = r(n.attachmentMedia, {
68
68
  variant: "icon"
69
69
  }
70
70
  });
71
- function k({ className: a, variant: t = "icon", ...e }) {
72
- return /* @__PURE__ */ i("div", { "data-variant": t, className: S({ variant: t, className: a }), ...e });
71
+ function q({ className: a, variant: t, ...e }) {
72
+ const i = t ?? "icon";
73
+ return /* @__PURE__ */ o(
74
+ "div",
75
+ {
76
+ "data-variant": i,
77
+ className: H({ variant: i, className: a }),
78
+ ...e
79
+ }
80
+ );
73
81
  }
74
82
  function w({ className: a, ...t }) {
75
- return /* @__PURE__ */ i("div", { className: o(n.attachmentContent, a), ...t });
83
+ return /* @__PURE__ */ o("div", { className: c(n.attachmentContent, a), ...t });
76
84
  }
77
85
  function E({ className: a, ...t }) {
78
86
  const e = l(s);
79
- return /* @__PURE__ */ i(
87
+ return /* @__PURE__ */ o(
80
88
  "span",
81
89
  {
82
- className: o(n.attachmentTitle, (e === "uploading" || e === "processing") && "shimmer", a),
90
+ className: c(n.attachmentTitle, (e === "uploading" || e === "processing") && "shimmer", a),
83
91
  ...t
84
92
  }
85
93
  );
86
94
  }
87
95
  function F({ className: a, ...t }) {
88
- return /* @__PURE__ */ i("span", { className: o(n.attachmentDescription, a), ...t });
96
+ return /* @__PURE__ */ o("span", { className: c(n.attachmentDescription, a), ...t });
89
97
  }
90
98
  function J({ className: a, ...t }) {
91
- return /* @__PURE__ */ i("div", { className: o(n.attachmentActions, a), ...t });
99
+ return /* @__PURE__ */ o("div", { className: c(n.attachmentActions, a), ...t });
92
100
  }
93
- function K({ className: a, variant: t, size: e = "sm", ...c }) {
94
- return /* @__PURE__ */ i(
101
+ function K({ className: a, variant: t, size: e = "sm", ...i }) {
102
+ return /* @__PURE__ */ o(
95
103
  d,
96
104
  {
97
105
  variant: t ?? "ghost",
98
106
  size: e,
99
- className: o(n.attachmentAction, a),
100
- ...c
107
+ className: c(n.attachmentAction, a),
108
+ ...i
101
109
  }
102
110
  );
103
111
  }
104
- function L({ className: a, render: t, type: e, ...c }) {
112
+ function L({ className: a, render: t, type: e, ...i }) {
105
113
  return _({
106
114
  defaultTagName: "button",
107
115
  render: t,
108
116
  props: h(
109
117
  {
110
118
  type: t ? e : e ?? "button",
111
- className: o(n.attachmentTrigger, a)
119
+ className: c(n.attachmentTrigger, a)
112
120
  },
113
- c
121
+ i
114
122
  )
115
123
  });
116
124
  }
117
125
  function O({ className: a, ...t }) {
118
- return /* @__PURE__ */ i("div", { className: o(n.attachmentGroup, "scroll-fade-x", "no-scrollbar", a), ...t });
126
+ return /* @__PURE__ */ o("div", { className: c(n.attachmentGroup, "scroll-fade-x", "no-scrollbar", a), ...t });
119
127
  }
120
128
  export {
121
- R as Attachment,
129
+ k as Attachment,
122
130
  K as AttachmentAction,
123
131
  J as AttachmentActions,
124
132
  w as AttachmentContent,
125
133
  F as AttachmentDescription,
126
134
  O as AttachmentGroup,
127
- k as AttachmentMedia,
135
+ q as AttachmentMedia,
128
136
  E as AttachmentTitle,
129
137
  L as AttachmentTrigger,
130
- S as attachmentMediaVariants,
131
- G as attachmentVariants
138
+ H as attachmentMediaVariants,
139
+ S as attachmentVariants
132
140
  };
133
141
  //# sourceMappingURL=attachment.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.js","sources":["../src/components/attachment/attachment.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport { createContext, useContext, type ComponentProps } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button.js';\nimport styles from './attachment.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Attachment\n * (registry/bases/base/ui/attachment.tsx): a file/image attachment card\n * with media, metadata, upload state, and actions. No primitive to lean\n * on — the upload state machine (`state`) is plain data-attribute-driven\n * CSS, same shape as Message/Bubble, for every part EXCEPT the shimmer\n * below.\n *\n * Uses two utilities from this package's global stylesheet\n * (src/styles/utilities.css, imported alongside theme.css — see that\n * file's own header): `shimmer` on `AttachmentTitle` while uploading or\n * processing, and `scroll-fade-x` + `no-scrollbar` on `AttachmentGroup`'s\n * scroll track.\n *\n * Upstream drives the shimmer purely through a CSS ancestor selector\n * (`group-data-[state=processing]/attachment:shimmer`) with no extra prop\n * on `AttachmentTitle` at all. `shimmer` is a GLOBAL utility class, not a\n * CSS Modules class — there is no CSS-only way to conditionally attach an\n * unrelated global class name to a descendant based on an ancestor's data\n * attribute (a plain descendant selector can style `.attachmentTitle`\n * directly, but it cannot make that element also match every rule the\n * literal `.shimmer` class carries). Every other ancestor-state read\n * below (`AttachmentMedia`'s size/orientation/error styling,\n * `AttachmentDescription`'s error tint) stays pure CSS for exactly this\n * reason — only the shimmer needs it. React context carries the state\n * down to `AttachmentTitle` instead, so the API stays prop-free like\n * upstream — the consumer never re-passes `state` to a child part.\n */\nconst AttachmentStateContext = createContext<AttachmentProps['state']>('done');\n\nconst attachmentVariants = cva(styles.attachment, {\n variants: {\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n xs: styles.sizeXs,\n },\n orientation: {\n horizontal: styles.orientationHorizontal,\n vertical: styles.orientationVertical,\n },\n },\n defaultVariants: {\n size: 'default',\n orientation: 'horizontal',\n },\n});\n\nexport interface AttachmentProps extends ComponentProps<'div'>, VariantProps<typeof attachmentVariants> {\n /**\n * The upload state. Drives styling (idle's dashed border, error's\n * destructive tint on the media/description) and `AttachmentTitle`'s\n * shimmer.\n * @default 'done'\n */\n state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';\n}\n\n/** The root attachment container. */\nexport function Attachment({\n className,\n state = 'done',\n size = 'default',\n orientation = 'horizontal',\n ...props\n}: AttachmentProps) {\n return (\n <AttachmentStateContext.Provider value={state}>\n <div\n data-state={state}\n data-size={size}\n data-orientation={orientation}\n className={attachmentVariants({ size, orientation, className })}\n {...props}\n />\n </AttachmentStateContext.Provider>\n );\n}\n\nconst attachmentMediaVariants = cva(styles.attachmentMedia, {\n variants: {\n variant: {\n icon: styles.variantIcon,\n image: styles.variantImage,\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n});\n\nexport interface AttachmentMediaProps\n extends ComponentProps<'div'>, VariantProps<typeof attachmentMediaVariants> {}\n\n/** The media slot for an icon or image preview. Sizes and tints itself off\n * the ancestor `Attachment`'s `size`/`orientation`/`state` via CSS — no\n * extra props needed. */\nexport function AttachmentMedia({ className, variant = 'icon', ...props }: AttachmentMediaProps) {\n return <div data-variant={variant} className={attachmentMediaVariants({ variant, className })} {...props} />;\n}\n\nexport type AttachmentContentProps = ComponentProps<'div'>;\n\n/** Wraps the title and description. */\nexport function AttachmentContent({ className, ...props }: AttachmentContentProps) {\n return <div className={cx(styles.attachmentContent, className)} {...props} />;\n}\n\nexport type AttachmentTitleProps = ComponentProps<'span'>;\n\n/** The attachment name. Shimmers (via the global `shimmer` utility class —\n * see this file's own header) while the ancestor `Attachment`'s `state` is\n * `'uploading'` or `'processing'` — read from context, not a prop. */\nexport function AttachmentTitle({ className, ...props }: AttachmentTitleProps) {\n const state = useContext(AttachmentStateContext);\n return (\n <span\n className={cx(styles.attachmentTitle, (state === 'uploading' || state === 'processing') && 'shimmer', className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentDescriptionProps = ComponentProps<'span'>;\n\n/** Secondary metadata such as the file type, size, or upload status. Picks\n * up the ancestor `Attachment`'s `error` tint via a CSS descendant\n * selector — no extra prop needed. */\nexport function AttachmentDescription({ className, ...props }: AttachmentDescriptionProps) {\n return <span className={cx(styles.attachmentDescription, className)} {...props} />;\n}\n\nexport type AttachmentActionsProps = ComponentProps<'div'>;\n\n/** A container for one or more actions, aligned to the end of the\n * attachment. */\nexport function AttachmentActions({ className, ...props }: AttachmentActionsProps) {\n return <div className={cx(styles.attachmentActions, className)} {...props} />;\n}\n\nexport type AttachmentActionProps = ButtonProps;\n\n/**\n * An action button. Renders the kit `Button` and accepts all of its props.\n *\n * DRIFT from upstream: shadcn's `AttachmentAction` defaults to\n * `size=\"icon-xs\"` — a dedicated micro icon-only step this kit's `Button`\n * does not have.\n * `size=\"sm\"` is the smallest step available; icon-only squaring already\n * works at any size via Button's own `[data-icon-only]` rule\n * (button.module.css), so the visual result is a slightly larger action\n * button (32px) than upstream's (24px), not a broken one.\n */\nexport function AttachmentAction({ className, variant, size = 'sm', ...props }: AttachmentActionProps) {\n return (\n <Button\n variant={variant ?? 'ghost'}\n size={size}\n className={cx(styles.attachmentAction, className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentTriggerProps = useRender.ComponentProps<'button'>;\n\n/** A full-card overlay that activates the attachment — opens a link or\n * dialog while `AttachmentActions` stay independently clickable (it sits\n * behind them in the stacking order). Renders a `<button>` by default. */\nexport function AttachmentTrigger({ className, render, type, ...props }: AttachmentTriggerProps) {\n return useRender({\n defaultTagName: 'button',\n render,\n props: mergeProps<'button'>(\n {\n type: render ? type : (type ?? 'button'),\n className: cx(styles.attachmentTrigger, className),\n },\n props,\n ),\n });\n}\n\nexport type AttachmentGroupProps = ComponentProps<'div'>;\n\n/** Lays out attachments in a horizontally scrollable, snapping row with an\n * edge fade. Applies `scroll-fade-x` and `no-scrollbar` (this package's\n * global utilities — see this file's own header) directly, by class name,\n * alongside the module's own layout class. */\nexport function AttachmentGroup({ className, ...props }: AttachmentGroupProps) {\n return <div className={cx(styles.attachmentGroup, 'scroll-fade-x', 'no-scrollbar', className)} {...props} />;\n}\n\nexport { attachmentMediaVariants, attachmentVariants };\n"],"names":["AttachmentStateContext","createContext","attachmentVariants","cva","styles","Attachment","className","state","size","orientation","props","jsx","attachmentMediaVariants","AttachmentMedia","variant","AttachmentContent","cx","AttachmentTitle","useContext","AttachmentDescription","AttachmentActions","AttachmentAction","Button","AttachmentTrigger","render","type","useRender","mergeProps","AttachmentGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;GAsCMA,IAAyBC,EAAwC,MAAM,GAEvEC,IAAqBC,EAAIC,EAAO,YAAY;AAAA,EAChD,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,aAAa;AAAA,MACX,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,aAAa;AAAA,EAAA;AAEjB,CAAC;AAaM,SAASC,EAAW;AAAA,EACzB,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,GAAoB;AAClB,SACE,gBAAAC,EAACX,EAAuB,UAAvB,EAAgC,OAAOO,GACtC,UAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,cAAYJ;AAAA,MACZ,aAAWC;AAAA,MACX,oBAAkBC;AAAA,MAClB,WAAWP,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AAGI,GAAO;AAC7E;AAeO,SAASW,EAAiB,EAAE,WAAAf,GAAW,SAAAQ,GAAS,MAAAN,IAAO,MAAM,GAAGE,KAAgC;AACrG,SACE,gBAAAC;AAAA,IAACW;AAAA,IAAA;AAAA,MACC,SAASR,KAAW;AAAA,MACpB,MAAAN;AAAA,MACA,WAAWQ,EAAGZ,EAAO,kBAAkBE,CAAS;AAAA,MAC/C,GAAGI;AAAA,IAAA;AAAA,EAAA;AAGV;AAOO,SAASa,EAAkB,EAAE,WAAAjB,GAAW,QAAAkB,GAAQ,MAAAC,GAAM,GAAGf,KAAiC;AAC/F,SAAOgB,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA,IACA,OAAOG;AAAA,MACL;AAAA,QACE,MAAMH,IAASC,IAAQA,KAAQ;AAAA,QAC/B,WAAWT,EAAGZ,EAAO,mBAAmBE,CAAS;AAAA,MAAA;AAAA,MAEnDI;AAAA,IAAA;AAAA,EACF,CACD;AACH;AAQO,SAASkB,EAAgB,EAAE,WAAAtB,GAAW,GAAGI,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,OAAA,EAAI,WAAWK,EAAGZ,EAAO,iBAAiB,iBAAiB,gBAAgBE,CAAS,GAAI,GAAGI,EAAA,CAAO;AAC5G;"}
1
+ {"version":3,"file":"attachment.js","sources":["../src/components/attachment/attachment.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport { createContext, useContext, type ComponentProps } from 'react';\n\nimport { Button, type ButtonProps } from '../button/button.js';\nimport styles from './attachment.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Attachment\n * (registry/bases/base/ui/attachment.tsx): a file/image attachment card\n * with media, metadata, upload state, and actions. No primitive to lean\n * on — the upload state machine (`state`) is plain data-attribute-driven\n * CSS, same shape as Message/Bubble, for every part EXCEPT the shimmer\n * below.\n *\n * Uses two utilities from this package's global stylesheet\n * (src/styles/utilities.css, imported alongside theme.css — see that\n * file's own header): `shimmer` on `AttachmentTitle` while uploading or\n * processing, and `scroll-fade-x` + `no-scrollbar` on `AttachmentGroup`'s\n * scroll track.\n *\n * Upstream drives the shimmer purely through a CSS ancestor selector\n * (`group-data-[state=processing]/attachment:shimmer`) with no extra prop\n * on `AttachmentTitle` at all. `shimmer` is a GLOBAL utility class, not a\n * CSS Modules class — there is no CSS-only way to conditionally attach an\n * unrelated global class name to a descendant based on an ancestor's data\n * attribute (a plain descendant selector can style `.attachmentTitle`\n * directly, but it cannot make that element also match every rule the\n * literal `.shimmer` class carries). Every other ancestor-state read\n * below (`AttachmentMedia`'s size/orientation/error styling,\n * `AttachmentDescription`'s error tint) stays pure CSS for exactly this\n * reason — only the shimmer needs it. React context carries the state\n * down to `AttachmentTitle` instead, so the API stays prop-free like\n * upstream — the consumer never re-passes `state` to a child part.\n */\nconst AttachmentStateContext = createContext<AttachmentProps['state']>('done');\n\nconst attachmentVariants = cva(styles.attachment, {\n variants: {\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n xs: styles.sizeXs,\n },\n orientation: {\n horizontal: styles.orientationHorizontal,\n vertical: styles.orientationVertical,\n },\n },\n defaultVariants: {\n size: 'default',\n orientation: 'horizontal',\n },\n});\n\nexport interface AttachmentProps extends ComponentProps<'div'>, VariantProps<typeof attachmentVariants> {\n /**\n * The upload state. Drives styling (idle's dashed border, error's\n * destructive tint on the media/description) and `AttachmentTitle`'s\n * shimmer.\n * @default 'done'\n */\n state?: 'idle' | 'uploading' | 'processing' | 'error' | 'done';\n}\n\n/** The root attachment container. */\nexport function Attachment({\n className,\n state = 'done',\n size = 'default',\n orientation = 'horizontal',\n ...props\n}: AttachmentProps) {\n return (\n <AttachmentStateContext.Provider value={state}>\n <div\n data-state={state}\n data-size={size}\n data-orientation={orientation}\n className={attachmentVariants({ size, orientation, className })}\n {...props}\n />\n </AttachmentStateContext.Provider>\n );\n}\n\nconst attachmentMediaVariants = cva(styles.attachmentMedia, {\n variants: {\n variant: {\n icon: styles.variantIcon,\n image: styles.variantImage,\n },\n },\n defaultVariants: {\n variant: 'icon',\n },\n});\n\nexport interface AttachmentMediaProps\n extends ComponentProps<'div'>, VariantProps<typeof attachmentMediaVariants> {}\n\n/** The media slot for an icon or image preview. Sizes and tints itself off\n * the ancestor `Attachment`'s `size`/`orientation`/`state` via CSS — no\n * extra props needed. */\nexport function AttachmentMedia({ className, variant, ...props }: AttachmentMediaProps) {\n // cva's own VariantProps types this `| null` (a consumer can pass\n // `variant={null}` to explicitly reset to the default), which a default\n // parameter value alone doesn't absorb — only `undefined` does. cva reads\n // that null as \"emit no variant class at all\" while `data-variant` would\n // still be dropped by React, so the media slot would come out with neither\n // the default class nor the attribute. Resolved once here, same as\n // marker.tsx, so class and attribute always agree.\n const resolvedVariant = variant ?? 'icon';\n return (\n <div\n data-variant={resolvedVariant}\n className={attachmentMediaVariants({ variant: resolvedVariant, className })}\n {...props}\n />\n );\n}\n\nexport type AttachmentContentProps = ComponentProps<'div'>;\n\n/** Wraps the title and description. */\nexport function AttachmentContent({ className, ...props }: AttachmentContentProps) {\n return <div className={cx(styles.attachmentContent, className)} {...props} />;\n}\n\nexport type AttachmentTitleProps = ComponentProps<'span'>;\n\n/** The attachment name. Shimmers (via the global `shimmer` utility class —\n * see this file's own header) while the ancestor `Attachment`'s `state` is\n * `'uploading'` or `'processing'` — read from context, not a prop. */\nexport function AttachmentTitle({ className, ...props }: AttachmentTitleProps) {\n const state = useContext(AttachmentStateContext);\n return (\n <span\n className={cx(styles.attachmentTitle, (state === 'uploading' || state === 'processing') && 'shimmer', className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentDescriptionProps = ComponentProps<'span'>;\n\n/** Secondary metadata such as the file type, size, or upload status. Picks\n * up the ancestor `Attachment`'s `error` tint via a CSS descendant\n * selector — no extra prop needed. */\nexport function AttachmentDescription({ className, ...props }: AttachmentDescriptionProps) {\n return <span className={cx(styles.attachmentDescription, className)} {...props} />;\n}\n\nexport type AttachmentActionsProps = ComponentProps<'div'>;\n\n/** A container for one or more actions, aligned to the end of the\n * attachment. */\nexport function AttachmentActions({ className, ...props }: AttachmentActionsProps) {\n return <div className={cx(styles.attachmentActions, className)} {...props} />;\n}\n\nexport type AttachmentActionProps = ButtonProps;\n\n/**\n * An action button. Renders the kit `Button` and accepts all of its props.\n *\n * DRIFT from upstream: shadcn's `AttachmentAction` defaults to\n * `size=\"icon-xs\"` — a dedicated micro icon-only step this kit's `Button`\n * does not have.\n * `size=\"sm\"` is the smallest step available; icon-only squaring already\n * works at any size via Button's own `[data-icon-only]` rule\n * (button.module.css), so the visual result is a slightly larger action\n * button (32px) than upstream's (24px), not a broken one.\n */\nexport function AttachmentAction({ className, variant, size = 'sm', ...props }: AttachmentActionProps) {\n return (\n <Button\n variant={variant ?? 'ghost'}\n size={size}\n className={cx(styles.attachmentAction, className)}\n {...props}\n />\n );\n}\n\nexport type AttachmentTriggerProps = useRender.ComponentProps<'button'>;\n\n/** A full-card overlay that activates the attachment — opens a link or\n * dialog while `AttachmentActions` stay independently clickable (it sits\n * behind them in the stacking order). Renders a `<button>` by default. */\nexport function AttachmentTrigger({ className, render, type, ...props }: AttachmentTriggerProps) {\n return useRender({\n defaultTagName: 'button',\n render,\n props: mergeProps<'button'>(\n {\n type: render ? type : (type ?? 'button'),\n className: cx(styles.attachmentTrigger, className),\n },\n props,\n ),\n });\n}\n\nexport type AttachmentGroupProps = ComponentProps<'div'>;\n\n/** Lays out attachments in a horizontally scrollable, snapping row with an\n * edge fade. Applies `scroll-fade-x` and `no-scrollbar` (this package's\n * global utilities — see this file's own header) directly, by class name,\n * alongside the module's own layout class. */\nexport function AttachmentGroup({ className, ...props }: AttachmentGroupProps) {\n return <div className={cx(styles.attachmentGroup, 'scroll-fade-x', 'no-scrollbar', className)} {...props} />;\n}\n\nexport { attachmentMediaVariants, attachmentVariants };\n"],"names":["AttachmentStateContext","createContext","attachmentVariants","cva","styles","Attachment","className","state","size","orientation","props","jsx","attachmentMediaVariants","AttachmentMedia","variant","resolvedVariant","AttachmentContent","cx","AttachmentTitle","useContext","AttachmentDescription","AttachmentActions","AttachmentAction","Button","AttachmentTrigger","render","type","useRender","mergeProps","AttachmentGroup"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;GAsCMA,IAAyBC,EAAwC,MAAM,GAEvEC,IAAqBC,EAAIC,EAAO,YAAY;AAAA,EAChD,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,MACX,IAAIA,EAAO;AAAA,IAAA;AAAA,IAEb,aAAa;AAAA,MACX,YAAYA,EAAO;AAAA,MACnB,UAAUA,EAAO;AAAA,IAAA;AAAA,EACnB;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,aAAa;AAAA,EAAA;AAEjB,CAAC;AAaM,SAASC,EAAW;AAAA,EACzB,WAAAC;AAAA,EACA,OAAAC,IAAQ;AAAA,EACR,MAAAC,IAAO;AAAA,EACP,aAAAC,IAAc;AAAA,EACd,GAAGC;AACL,GAAoB;AAClB,SACE,gBAAAC,EAACX,EAAuB,UAAvB,EAAgC,OAAOO,GACtC,UAAA,gBAAAI;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,cAAYJ;AAAA,MACZ,aAAWC;AAAA,MACX,oBAAkBC;AAAA,MAClB,WAAWP,EAAmB,EAAE,MAAAM,GAAM,aAAAC,GAAa,WAAAH,GAAW;AAAA,MAC7D,GAAGI;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;AAEA,MAAME,IAA0BT,EAAIC,EAAO,iBAAiB;AAAA,EAC1D,UAAU;AAAA,IACR,SAAS;AAAA,MACP,MAAMA,EAAO;AAAA,MACb,OAAOA,EAAO;AAAA,IAAA;AAAA,EAChB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAQM,SAASS,EAAgB,EAAE,WAAA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EAAkB,EAAE,WAAAlB,GAAW,QAAAmB,GAAQ,MAAAC,GAAM,GAAGhB,KAAiC;AAC/F,SAAOiB,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA,IACA,OAAOG;AAAA,MACL;AAAA,QACE,MAAMH,IAASC,IAAQA,KAAQ;AAAA,QAC/B,WAAWT,EAAGb,EAAO,mBAAmBE,CAAS;AAAA,MAAA;AAAA,MAEnDI;AAAA,IAAA;AAAA,EACF,CACD;AACH;AAQO,SAASmB,EAAgB,EAAE,WAAAvB,GAAW,GAAGI,KAA+B;AAC7E,SAAO,gBAAAC,EAAC,OAAA,EAAI,WAAWM,EAAGb,EAAO,iBAAiB,iBAAiB,gBAAgBE,CAAS,GAAI,GAAGI,EAAA,CAAO;AAC5G;"}
package/dist/avatar.js CHANGED
@@ -1,25 +1,25 @@
1
1
  import { jsx as e } from "react/jsx-runtime";
2
- import { Avatar as s } from "@base-ui/react/avatar";
2
+ import { Avatar as r } from "@base-ui/react/avatar";
3
3
  import { cx as c, cva as i } from "class-variance-authority";
4
- import './chunks/avatar.CsQmQnay.css';const u = "_avatar_1nwmy_33", l = "_sizeSm_1nwmy_75", m = "_sizeDefault_1nwmy_80", f = "_sizeLg_1nwmy_85", g = "_image_1nwmy_24", v = "_fallback_1nwmy_24", d = "_variantSolid_1nwmy_143", w = "_toneNeutral_1nwmy_143", y = "_toneAccent_1nwmy_148", p = "_toneInfo_1nwmy_153", S = "_toneSuccess_1nwmy_158", z = "_toneWarning_1nwmy_163", A = "_toneDanger_1nwmy_168", b = "_variantSoft_1nwmy_173", N = "_badge_1nwmy_26", D = "_group_1nwmy_243", k = "_groupCount_1nwmy_255", a = {
4
+ import './chunks/avatar.DZUXl1ev.css';const u = "_avatar_1sqic_33", l = "_sizeSm_1sqic_75", f = "_sizeDefault_1sqic_80", g = "_sizeLg_1sqic_85", v = "_image_1sqic_24", m = "_fallback_1sqic_24", d = "_variantSolid_1sqic_153", q = "_toneNeutral_1sqic_153", p = "_toneAccent_1sqic_158", S = "_toneInfo_1sqic_163", z = "_toneSuccess_1sqic_168", A = "_toneWarning_1sqic_173", b = "_toneDanger_1sqic_178", N = "_variantSoft_1sqic_183", D = "_badge_1sqic_26", k = "_group_1sqic_253", C = "_groupCount_1sqic_265", a = {
5
5
  avatar: u,
6
6
  sizeSm: l,
7
- sizeDefault: m,
8
- sizeLg: f,
9
- image: g,
10
- fallback: v,
7
+ sizeDefault: f,
8
+ sizeLg: g,
9
+ image: v,
10
+ fallback: m,
11
11
  variantSolid: d,
12
- toneNeutral: w,
13
- toneAccent: y,
14
- toneInfo: p,
15
- toneSuccess: S,
16
- toneWarning: z,
17
- toneDanger: A,
18
- variantSoft: b,
19
- badge: N,
20
- group: D,
21
- groupCount: k
22
- }, C = i(a.avatar, {
12
+ toneNeutral: q,
13
+ toneAccent: p,
14
+ toneInfo: S,
15
+ toneSuccess: z,
16
+ toneWarning: A,
17
+ toneDanger: b,
18
+ variantSoft: N,
19
+ badge: D,
20
+ group: k,
21
+ groupCount: C
22
+ }, I = i(a.avatar, {
23
23
  variants: {
24
24
  size: {
25
25
  default: a.sizeDefault,
@@ -31,11 +31,11 @@ import './chunks/avatar.CsQmQnay.css';const u = "_avatar_1nwmy_33", l = "_sizeSm
31
31
  size: "default"
32
32
  }
33
33
  });
34
- function F({ className: n, size: t, ...o }) {
35
- return /* @__PURE__ */ e(s.Root, { className: C({ size: t, className: n }), ...o });
34
+ function G({ className: t, size: n, ...o }) {
35
+ return /* @__PURE__ */ e(r.Root, { className: I({ size: n, className: t }), ...o });
36
36
  }
37
- function G({ className: n, ...t }) {
38
- return /* @__PURE__ */ e(s.Image, { className: c(a.image, n), ...t });
37
+ function j({ className: t, ...n }) {
38
+ return /* @__PURE__ */ e(r.Image, { className: c(a.image, t), ...n });
39
39
  }
40
40
  const _ = {
41
41
  tone: {
@@ -50,38 +50,38 @@ const _ = {
50
50
  solid: a.variantSolid,
51
51
  soft: a.variantSoft
52
52
  }
53
- }, I = i(a.fallback, {
53
+ }, V = i(a.fallback, {
54
54
  variants: _,
55
55
  defaultVariants: { tone: "neutral", variant: "soft" }
56
56
  });
57
- function j({ className: n, tone: t, variant: o, ...r }) {
57
+ function w({ className: t, tone: n, variant: o, ...s }) {
58
58
  return /* @__PURE__ */ e(
59
- s.Fallback,
59
+ r.Fallback,
60
60
  {
61
- className: I({ tone: t, variant: o, className: n }),
62
- ...r
61
+ className: V({ tone: n, variant: o, className: t }),
62
+ ...s
63
63
  }
64
64
  );
65
65
  }
66
- function B({ className: n, ...t }) {
67
- return /* @__PURE__ */ e("span", { className: c(a.badge, n), ...t });
66
+ function y({ className: t, ...n }) {
67
+ return /* @__PURE__ */ e("span", { className: c(a.badge, t), ...n });
68
68
  }
69
- function R({ className: n, ...t }) {
70
- return /* @__PURE__ */ e("div", { className: c(a.group, n), ...t });
69
+ function B({ className: t, ...n }) {
70
+ return /* @__PURE__ */ e("div", { className: c(a.group, t), ...n });
71
71
  }
72
- const V = i(a.groupCount, {
72
+ const x = i(a.groupCount, {
73
73
  variants: _,
74
74
  defaultVariants: { tone: "neutral", variant: "soft" }
75
75
  });
76
- function $({ className: n, tone: t, variant: o, ...r }) {
77
- return /* @__PURE__ */ e("div", { className: V({ tone: t, variant: o, className: n }), ...r });
76
+ function R({ className: t, tone: n, variant: o, ...s }) {
77
+ return /* @__PURE__ */ e("div", { className: x({ tone: n, variant: o, className: t }), ...s });
78
78
  }
79
79
  export {
80
- F as Avatar,
81
- B as AvatarBadge,
82
- j as AvatarFallback,
83
- R as AvatarGroup,
84
- $ as AvatarGroupCount,
85
- G as AvatarImage
80
+ G as Avatar,
81
+ y as AvatarBadge,
82
+ w as AvatarFallback,
83
+ B as AvatarGroup,
84
+ R as AvatarGroupCount,
85
+ j as AvatarImage
86
86
  };
87
87
  //# sourceMappingURL=avatar.js.map
package/dist/badge.js CHANGED
@@ -1,21 +1,21 @@
1
1
  "use client";
2
2
  import { mergeProps as e } from "@base-ui/react/merge-props";
3
- import { useRender as v } from "@base-ui/react/use-render";
4
- import { cva as c } from "class-variance-authority";
5
- import './chunks/badge.DR0epAiZ.css';const s = "_badge_1lie6_35", o = "_variantDefault_1lie6_97", _ = "_variantSecondary_1lie6_13", l = "_variantDestructive_1lie6_115", u = "_variantOutline_1lie6_135", g = "_variantGhost_1lie6_145", d = "_variantLink_1lie6_154", f = "_variantSuccess_1lie6_186", D = "_variantWarning_1lie6_195", m = "_variantDanger_1lie6_204", p = "_variantInfo_1lie6_213", S = "_variantAccent_1lie6_222", a = {
3
+ import { useRender as c } from "@base-ui/react/use-render";
4
+ import { cva as v } from "class-variance-authority";
5
+ import './chunks/badge.Bi22h20j.css';const s = "_badge_18kcf_35", o = "_variantDefault_18kcf_109", _ = "_variantSecondary_18kcf_13", f = "_variantDestructive_18kcf_127", u = "_variantOutline_18kcf_150", g = "_variantGhost_18kcf_160", d = "_variantLink_18kcf_177", k = "_variantSuccess_18kcf_218", l = "_variantWarning_18kcf_227", D = "_variantDanger_18kcf_236", m = "_variantInfo_18kcf_245", p = "_variantAccent_18kcf_254", a = {
6
6
  badge: s,
7
7
  variantDefault: o,
8
8
  variantSecondary: _,
9
- variantDestructive: l,
9
+ variantDestructive: f,
10
10
  variantOutline: u,
11
11
  variantGhost: g,
12
12
  variantLink: d,
13
- variantSuccess: f,
14
- variantWarning: D,
15
- variantDanger: m,
16
- variantInfo: p,
17
- variantAccent: S
18
- }, y = c(a.badge, {
13
+ variantSuccess: k,
14
+ variantWarning: l,
15
+ variantDanger: D,
16
+ variantInfo: m,
17
+ variantAccent: p
18
+ }, S = v(a.badge, {
19
19
  variants: {
20
20
  variant: {
21
21
  default: a.variantDefault,
@@ -35,15 +35,15 @@ import './chunks/badge.DR0epAiZ.css';const s = "_badge_1lie6_35", o = "_variantD
35
35
  variant: "default"
36
36
  }
37
37
  });
38
- function A({ className: n, variant: t, render: i, ...r }) {
39
- return v({
38
+ function A({ className: n, variant: t, render: r, ...i }) {
39
+ return c({
40
40
  defaultTagName: "span",
41
- render: i,
42
- props: e({ className: y({ variant: t, className: n }) }, r)
41
+ render: r,
42
+ props: e({ className: S({ variant: t, className: n }) }, i)
43
43
  });
44
44
  }
45
45
  export {
46
46
  A as Badge,
47
- y as badgeVariants
47
+ S as badgeVariants
48
48
  };
49
49
  //# sourceMappingURL=badge.js.map
package/dist/bubble.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use client";
2
- import { jsx as s } from "react/jsx-runtime";
3
- import { mergeProps as b } from "@base-ui/react/merge-props";
4
- import { useRender as u } from "@base-ui/react/use-render";
5
- import { cx as o, cva as r } from "class-variance-authority";
6
- import './chunks/bubble.BKcAopT7.css';const l = "_bubbleGroup_ma2s7_13", d = "_bubble_ma2s7_13", c = "_bubbleContent_ma2s7_38", _ = "_variantDefault_ma2s7_120", v = "_variantSecondary_ma2s7_132", m = "_variantMuted_ma2s7_145", f = "_variantTinted_ma2s7_164", p = "_variantOutline_ma2s7_176", g = "_variantGhost_ma2s7_202", G = "_variantDestructive_ma2s7_235", T = "_bubbleReactions_ma2s7_262", B = "_sideTop_ma2s7_289", D = "_sideBottom_ma2s7_294", S = "_alignStart_ma2s7_299", R = "_alignEnd_ma2s7_303", t = {
7
- bubbleGroup: l,
8
- bubble: d,
9
- bubbleContent: c,
2
+ import { jsx as r } from "react/jsx-runtime";
3
+ import { mergeProps as u } from "@base-ui/react/merge-props";
4
+ import { useRender as l } from "@base-ui/react/use-render";
5
+ import { cx as s, cva as b } from "class-variance-authority";
6
+ import './chunks/bubble.DvN6QyQ1.css';const d = "_bubbleGroup_14wxz_13", c = "_bubble_14wxz_13", v = "_bubbleContent_14wxz_38", _ = "_variantDefault_14wxz_120", m = "_variantSecondary_14wxz_132", f = "_variantMuted_14wxz_145", p = "_variantTinted_14wxz_164", x = "_variantOutline_14wxz_176", w = "_variantGhost_14wxz_202", z = "_variantDestructive_14wxz_235", g = "_bubbleReactions_14wxz_266", G = "_sideTop_14wxz_293", T = "_sideBottom_14wxz_298", B = "_alignStart_14wxz_303", D = "_alignEnd_14wxz_307", t = {
7
+ bubbleGroup: d,
8
+ bubble: c,
9
+ bubbleContent: v,
10
10
  variantDefault: _,
11
- variantSecondary: v,
12
- variantMuted: m,
13
- variantTinted: f,
14
- variantOutline: p,
15
- variantGhost: g,
16
- variantDestructive: G,
17
- bubbleReactions: T,
18
- sideTop: B,
19
- sideBottom: D,
20
- alignStart: S,
21
- alignEnd: R
22
- }, y = r(t.bubble, {
11
+ variantSecondary: m,
12
+ variantMuted: f,
13
+ variantTinted: p,
14
+ variantOutline: x,
15
+ variantGhost: w,
16
+ variantDestructive: z,
17
+ bubbleReactions: g,
18
+ sideTop: G,
19
+ sideBottom: T,
20
+ alignStart: B,
21
+ alignEnd: D
22
+ }, S = b(t.bubble, {
23
23
  variants: {
24
24
  variant: {
25
25
  default: t.variantDefault,
@@ -35,28 +35,29 @@ import './chunks/bubble.BKcAopT7.css';const l = "_bubbleGroup_ma2s7_13", d = "_b
35
35
  variant: "default"
36
36
  }
37
37
  });
38
- function O({ className: n, ...a }) {
39
- return /* @__PURE__ */ s("div", { className: o(t.bubbleGroup, n), ...a });
38
+ function V({ className: n, ...a }) {
39
+ return /* @__PURE__ */ r("div", { className: s(t.bubbleGroup, n), ...a });
40
40
  }
41
- function V({ className: n, variant: a = "default", align: e = "start", ...i }) {
42
- return /* @__PURE__ */ s(
41
+ function E({ className: n, variant: a, align: e = "start", ...i }) {
42
+ const o = a ?? "default";
43
+ return /* @__PURE__ */ r(
43
44
  "div",
44
45
  {
45
- "data-variant": a,
46
+ "data-variant": o,
46
47
  "data-align": e,
47
- className: y({ variant: a, className: n }),
48
+ className: S({ variant: o, className: n }),
48
49
  ...i
49
50
  }
50
51
  );
51
52
  }
52
- function x({ className: n, render: a, ...e }) {
53
- return u({
53
+ function M({ className: n, render: a, ...e }) {
54
+ return l({
54
55
  defaultTagName: "div",
55
56
  render: a,
56
- props: b({ className: o(t.bubbleContent, n) }, e)
57
+ props: u({ className: s(t.bubbleContent, n) }, e)
57
58
  });
58
59
  }
59
- const h = r(t.bubbleReactions, {
60
+ const R = b(t.bubbleReactions, {
60
61
  variants: {
61
62
  side: {
62
63
  top: t.sideTop,
@@ -72,23 +73,23 @@ const h = r(t.bubbleReactions, {
72
73
  align: "end"
73
74
  }
74
75
  });
75
- function j({ className: n, side: a = "bottom", align: e = "end", ...i }) {
76
- return /* @__PURE__ */ s(
76
+ function O({ className: n, side: a = "bottom", align: e = "end", ...i }) {
77
+ return /* @__PURE__ */ r(
77
78
  "div",
78
79
  {
79
80
  "data-side": a,
80
81
  "data-align": e,
81
- className: h({ side: a, align: e, className: n }),
82
+ className: R({ side: a, align: e, className: n }),
82
83
  ...i
83
84
  }
84
85
  );
85
86
  }
86
87
  export {
87
- V as Bubble,
88
- x as BubbleContent,
89
- O as BubbleGroup,
90
- j as BubbleReactions,
91
- h as bubbleReactionsVariants,
92
- y as bubbleVariants
88
+ E as Bubble,
89
+ M as BubbleContent,
90
+ V as BubbleGroup,
91
+ O as BubbleReactions,
92
+ R as bubbleReactionsVariants,
93
+ S as bubbleVariants
93
94
  };
94
95
  //# sourceMappingURL=bubble.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"bubble.js","sources":["../src/components/bubble/bubble.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './bubble.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Bubble\n * (registry/bases/base/ui/bubble.tsx): framed conversational content —\n * chat text, short structured output, quoted replies, suggestions, and\n * reactions. Bubble is intentionally scoped to the bubble surface; avatars,\n * names, timestamps, and message-level actions belong on\n * [`Message`](message.tsx), not here. Bubble has no Base UI primitive, but\n * `BubbleContent` gets `render`-prop polymorphism from\n * `useRender`/`mergeProps` — the same utilities Base UI's own primitives\n * are built on, and the same pattern Badge uses — for a bubble that is\n * actually a link or button.\n *\n * `align` (like Message's own) is layout-only — a plain `data-align`\n * attribute, not a `cva` variant — since it only ever repositions the\n * bubble, with no color/geometry of its own per value. `variant` IS the\n * paint axis and drives real `cva` classes. BubbleReactions' `side`/`align`\n * are genuinely visual (they pick which edge/corner the pill anchors to),\n * so both are `cva` axes of their own, named after the prop the same way\n * `variant`/`size` are elsewhere in the kit.\n */\nconst bubbleVariants = cva(styles.bubble, {\n variants: {\n variant: {\n default: styles.variantDefault,\n secondary: styles.variantSecondary,\n muted: styles.variantMuted,\n tinted: styles.variantTinted,\n outline: styles.variantOutline,\n ghost: styles.variantGhost,\n destructive: styles.variantDestructive,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport type BubbleGroupProps = ComponentProps<'div'>;\n\n/** Stacks consecutive `Bubble`s from the same sender. Set `align` on each\n * `Bubble` itself — it does not belong on the group. */\nexport function BubbleGroup({ className, ...props }: BubbleGroupProps) {\n return <div className={cx(styles.bubbleGroup, className)} {...props} />;\n}\n\nexport interface BubbleProps extends ComponentProps<'div'>, VariantProps<typeof bubbleVariants> {\n /**\n * The inline alignment of the bubble within its row.\n * @default 'start'\n */\n align?: 'start' | 'end';\n}\n\n/** The root bubble wrapper. */\nexport function Bubble({ className, variant = 'default', align = 'start', ...props }: BubbleProps) {\n return (\n <div\n data-variant={variant}\n data-align={align}\n className={bubbleVariants({ variant, className })}\n {...props}\n />\n );\n}\n\nexport type BubbleContentProps = useRender.ComponentProps<'div'>;\n\n/** The bubble content wrapper — the visible framed surface. Render as a\n * link or button via `render` for a clickable bubble; the visible focus\n * ring and hover feedback only apply once actually rendered that way. */\nexport function BubbleContent({ className, render, ...props }: BubbleContentProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n props: mergeProps<'div'>({ className: cx(styles.bubbleContent, className) }, props),\n });\n}\n\nconst bubbleReactionsVariants = cva(styles.bubbleReactions, {\n variants: {\n side: {\n top: styles.sideTop,\n bottom: styles.sideBottom,\n },\n align: {\n start: styles.alignStart,\n end: styles.alignEnd,\n },\n },\n defaultVariants: {\n side: 'bottom',\n align: 'end',\n },\n});\n\nexport interface BubbleReactionsProps\n extends ComponentProps<'div'>, VariantProps<typeof bubbleReactionsVariants> {}\n\n/** Displays overlapped reactions anchored to a bubble edge. Reactions\n * overlap the bubble edge, so leave vertical space between bubble rows. */\nexport function BubbleReactions({ className, side = 'bottom', align = 'end', ...props }: BubbleReactionsProps) {\n return (\n <div\n data-side={side}\n data-align={align}\n className={bubbleReactionsVariants({ side, align, className })}\n {...props}\n />\n );\n}\n\nexport { bubbleReactionsVariants, bubbleVariants };\n"],"names":["bubbleVariants","cva","styles","BubbleGroup","className","props","jsx","cx","Bubble","variant","align","BubbleContent","render","useRender","mergeProps","bubbleReactionsVariants","BubbleReactions","side"],"mappings":";;;;;;;;;;;;;;;;;;;;;GA6BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,aAAaA,EAAO;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAMM,SAASC,EAAY,EAAE,WAAAC,GAAW,GAAGC,KAA2B;AACrE,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGL,EAAO,aAAaE,CAAS,GAAI,GAAGC,GAAO;AACvE;AAWO,SAASG,EAAO,EAAE,WAAAJ,GAAW,SAAAK,IAAU,WAAW,OAAAC,IAAQ,SAAS,GAAGL,KAAsB;AACjG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,gBAAcG;AAAA,MACd,cAAYC;AAAA,MACZ,WAAWV,EAAe,EAAE,SAAAS,GAAS,WAAAL,GAAW;AAAA,MAC/C,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;AAOO,SAASM,EAAc,EAAE,WAAAP,GAAW,QAAAQ,GAAQ,GAAGP,KAA6B;AACjF,SAAOQ,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAD;AAAA,IACA,OAAOE,EAAkB,EAAE,WAAWP,EAAGL,EAAO,eAAeE,CAAS,EAAA,GAAKC,CAAK;AAAA,EAAA,CACnF;AACH;AAEA,MAAMU,IAA0Bd,EAAIC,EAAO,iBAAiB;AAAA,EAC1D,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,KAAKA,EAAO;AAAA,MACZ,QAAQA,EAAO;AAAA,IAAA;AAAA,IAEjB,OAAO;AAAA,MACL,OAAOA,EAAO;AAAA,MACd,KAAKA,EAAO;AAAA,IAAA;AAAA,EACd;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,OAAO;AAAA,EAAA;AAEX,CAAC;AAOM,SAASc,EAAgB,EAAE,WAAAZ,GAAW,MAAAa,IAAO,UAAU,OAAAP,IAAQ,OAAO,GAAGL,KAA+B;AAC7G,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,aAAWW;AAAA,MACX,cAAYP;AAAA,MACZ,WAAWK,EAAwB,EAAE,MAAAE,GAAM,OAAAP,GAAO,WAAAN,GAAW;AAAA,MAC5D,GAAGC;AAAA,IAAA;AAAA,EAAA;AAGV;"}
1
+ {"version":3,"file":"bubble.js","sources":["../src/components/bubble/bubble.tsx"],"sourcesContent":["'use client';\n\nimport { mergeProps } from '@base-ui/react/merge-props';\nimport { useRender } from '@base-ui/react/use-render';\nimport { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './bubble.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Bubble\n * (registry/bases/base/ui/bubble.tsx): framed conversational content —\n * chat text, short structured output, quoted replies, suggestions, and\n * reactions. Bubble is intentionally scoped to the bubble surface; avatars,\n * names, timestamps, and message-level actions belong on\n * [`Message`](message.tsx), not here. Bubble has no Base UI primitive, but\n * `BubbleContent` gets `render`-prop polymorphism from\n * `useRender`/`mergeProps` — the same utilities Base UI's own primitives\n * are built on, and the same pattern Badge uses — for a bubble that is\n * actually a link or button.\n *\n * `align` (like Message's own) is layout-only — a plain `data-align`\n * attribute, not a `cva` variant — since it only ever repositions the\n * bubble, with no color/geometry of its own per value. `variant` IS the\n * paint axis and drives real `cva` classes. BubbleReactions' `side`/`align`\n * are genuinely visual (they pick which edge/corner the pill anchors to),\n * so both are `cva` axes of their own, named after the prop the same way\n * `variant`/`size` are elsewhere in the kit.\n */\nconst bubbleVariants = cva(styles.bubble, {\n variants: {\n variant: {\n default: styles.variantDefault,\n secondary: styles.variantSecondary,\n muted: styles.variantMuted,\n tinted: styles.variantTinted,\n outline: styles.variantOutline,\n ghost: styles.variantGhost,\n destructive: styles.variantDestructive,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport type BubbleGroupProps = ComponentProps<'div'>;\n\n/** Stacks consecutive `Bubble`s from the same sender. Set `align` on each\n * `Bubble` itself — it does not belong on the group. */\nexport function BubbleGroup({ className, ...props }: BubbleGroupProps) {\n return <div className={cx(styles.bubbleGroup, className)} {...props} />;\n}\n\nexport interface BubbleProps extends ComponentProps<'div'>, VariantProps<typeof bubbleVariants> {\n /**\n * The inline alignment of the bubble within its row.\n * @default 'start'\n */\n align?: 'start' | 'end';\n}\n\n/** The root bubble wrapper. */\nexport function Bubble({ className, variant, align = 'start', ...props }: BubbleProps) {\n // cva's own VariantProps types this `| null` (a consumer can pass\n // `variant={null}` to explicitly reset to the default), which a default\n // parameter value alone doesn't absorb — only `undefined` does. cva reads\n // that null as \"emit no variant class at all\" while `data-variant` would\n // still be dropped by React, so the bubble would come out with neither the\n // default class nor the attribute. Resolved once here, same as marker.tsx,\n // so class and attribute always agree.\n const resolvedVariant = variant ?? 'default';\n return (\n <div\n data-variant={resolvedVariant}\n data-align={align}\n className={bubbleVariants({ variant: resolvedVariant, className })}\n {...props}\n />\n );\n}\n\nexport type BubbleContentProps = useRender.ComponentProps<'div'>;\n\n/** The bubble content wrapper — the visible framed surface. Render as a\n * link or button via `render` for a clickable bubble; the visible focus\n * ring and hover feedback only apply once actually rendered that way. */\nexport function BubbleContent({ className, render, ...props }: BubbleContentProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n props: mergeProps<'div'>({ className: cx(styles.bubbleContent, className) }, props),\n });\n}\n\nconst bubbleReactionsVariants = cva(styles.bubbleReactions, {\n variants: {\n side: {\n top: styles.sideTop,\n bottom: styles.sideBottom,\n },\n align: {\n start: styles.alignStart,\n end: styles.alignEnd,\n },\n },\n defaultVariants: {\n side: 'bottom',\n align: 'end',\n },\n});\n\nexport interface BubbleReactionsProps\n extends ComponentProps<'div'>, VariantProps<typeof bubbleReactionsVariants> {}\n\n/** Displays overlapped reactions anchored to a bubble edge. Reactions\n * overlap the bubble edge, so leave vertical space between bubble rows. */\nexport function BubbleReactions({ className, side = 'bottom', align = 'end', ...props }: BubbleReactionsProps) {\n return (\n <div\n data-side={side}\n data-align={align}\n className={bubbleReactionsVariants({ side, align, className })}\n {...props}\n />\n );\n}\n\nexport { bubbleReactionsVariants, bubbleVariants };\n"],"names":["bubbleVariants","cva","styles","BubbleGroup","className","props","jsx","cx","Bubble","variant","align","resolvedVariant","BubbleContent","render","useRender","mergeProps","bubbleReactionsVariants","BubbleReactions","side"],"mappings":";;;;;;;;;;;;;;;;;;;;;GA6BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,OAAOA,EAAO;AAAA,MACd,QAAQA,EAAO;AAAA,MACf,SAASA,EAAO;AAAA,MAChB,OAAOA,EAAO;AAAA,MACd,aAAaA,EAAO;AAAA,IAAA;AAAA,EACtB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;A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