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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,14 +1,14 @@
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.rknKEWlr.css';const f = "_attachment_1njaq_20", v = "_sizeDefault_1njaq_61", p = "_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", V = "_attachmentDescription_1njaq_220", x = "_attachmentActions_1njaq_236", C = "_attachmentAction_1njaq_236", I = "_attachmentTrigger_1njaq_258", M = "_attachmentGroup_1njaq_265", 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,
@@ -17,10 +17,10 @@ import './chunks/attachment.rknKEWlr.css';const f = "_attachment_1njaq_20", p =
17
17
  variantIcon: T,
18
18
  variantImage: N,
19
19
  attachmentTitle: D,
20
- attachmentDescription: x,
21
- attachmentActions: C,
22
- attachmentAction: I,
23
- attachmentTrigger: V,
20
+ attachmentDescription: V,
21
+ attachmentActions: x,
22
+ attachmentAction: C,
23
+ attachmentTrigger: I,
24
24
  attachmentGroup: M
25
25
  }, s = u("done"), G = r(n.attachment, {
26
26
  variants: {
@@ -43,16 +43,16 @@ function R({
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: G({ size: e, orientation: i, className: a }),
56
56
  ...m
57
57
  }
58
58
  ) });
@@ -68,54 +68,62 @@ 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 k({ className: a, variant: t, ...e }) {
72
+ const i = t ?? "icon";
73
+ return /* @__PURE__ */ o(
74
+ "div",
75
+ {
76
+ "data-variant": i,
77
+ className: S({ 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
129
  R as Attachment,
@@ -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,EAAmB,EAAE,MAAAM,GAAM,aAAAC,GAAa,WAAAH,GAAW;AAAA,MAC7D,GAAGI;AAAA,IAAA;AAAA,EAAA,GAER;AAEJ;AAEA,MAAME,IAA0BT,EAAIC,EAAO,iBAAiB;AAAA,EAC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AASR,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","Att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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/bubble.js CHANGED
@@ -1,25 +1,25 @@
1
1
  "use client";
2
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,
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 o, cva as b } from "class-variance-authority";
6
+ import './chunks/bubble.BKcAopT7.css';const d = "_bubbleGroup_ma2s7_13", c = "_bubble_ma2s7_13", v = "_bubbleContent_ma2s7_38", _ = "_variantDefault_ma2s7_120", m = "_variantSecondary_ma2s7_132", f = "_variantMuted_ma2s7_145", p = "_variantTinted_ma2s7_164", g = "_variantOutline_ma2s7_176", G = "_variantGhost_ma2s7_202", T = "_variantDestructive_ma2s7_235", B = "_bubbleReactions_ma2s7_262", D = "_sideTop_ma2s7_289", S = "_sideBottom_ma2s7_294", R = "_alignStart_ma2s7_299", y = "_alignEnd_ma2s7_303", 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: g,
15
+ variantGhost: G,
16
+ variantDestructive: T,
17
+ bubbleReactions: B,
18
+ sideTop: D,
19
+ sideBottom: S,
20
+ alignStart: R,
21
+ alignEnd: y
22
+ }, h = b(t.bubble, {
23
23
  variants: {
24
24
  variant: {
25
25
  default: t.variantDefault,
@@ -38,25 +38,26 @@ import './chunks/bubble.BKcAopT7.css';const l = "_bubbleGroup_ma2s7_13", d = "_b
38
38
  function O({ className: n, ...a }) {
39
39
  return /* @__PURE__ */ s("div", { className: o(t.bubbleGroup, n), ...a });
40
40
  }
41
- function V({ className: n, variant: a = "default", align: e = "start", ...i }) {
41
+ function x({ className: n, variant: a, align: e = "start", ...i }) {
42
+ const r = a ?? "default";
42
43
  return /* @__PURE__ */ s(
43
44
  "div",
44
45
  {
45
- "data-variant": a,
46
+ "data-variant": r,
46
47
  "data-align": e,
47
- className: y({ variant: a, className: n }),
48
+ className: h({ variant: r, className: n }),
48
49
  ...i
49
50
  }
50
51
  );
51
52
  }
52
- function x({ className: n, render: a, ...e }) {
53
- return u({
53
+ function j({ 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: o(t.bubbleContent, n) }, e)
57
58
  });
58
59
  }
59
- const h = r(t.bubbleReactions, {
60
+ const C = 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
+ function P({ className: n, side: a = "bottom", align: e = "end", ...i }) {
76
77
  return /* @__PURE__ */ s(
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: C({ 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,
88
+ x as Bubble,
89
+ j as BubbleContent,
89
90
  O as BubbleGroup,
90
- j as BubbleReactions,
91
- h as bubbleReactionsVariants,
92
- y as bubbleVariants
91
+ P as BubbleReactions,
92
+ C as bubbleReactionsVariants,
93
+ h 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;AAEb,CAAC;AAMM,SAASC,EAAY,EAAE,WAAA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IAAA;AAAA,EAAA;AAGV;"}
@@ -0,0 +1 @@
1
+ ._wrapper_1yxg6_12{position:relative;display:inline-flex;align-items:center}._wrapper_1yxg6_12[data-disabled]{opacity:.42}._select_1yxg6_45{box-sizing:border-box;display:flex;width:100%;align-items:center;height:var(--control-height-lg);padding:0 var(--space-8) 0 var(--space-3);border:var(--border-width) solid var(--input);border-radius:var(--radius-md);background-color:var(--surface-elevated);color:var(--foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-body-weight);letter-spacing:var(--text-label-tracking);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;transition:color .15s ease,border-color .15s ease,box-shadow .15s ease}._select_1yxg6_45:disabled{cursor:not-allowed}._select_1yxg6_45:focus-visible{border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._select_1yxg6_45:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._sizeSm_1yxg6_102 ._select_1yxg6_45{height:var(--control-height-sm);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);letter-spacing:var(--text-meta-tracking)}._option_1yxg6_119,._optgroup_1yxg6_130{background-color:Canvas;color:CanvasText}._icon_1yxg6_135{position:absolute;inset-inline-end:var(--space-3);width:var(--icon-size-sm);height:var(--icon-size-sm);pointer-events:none}
@@ -1 +1 @@
1
- {"version":3,"file":"attachment.d.ts","sourceRoot":"","sources":["../../../src/components/attachment/attachment.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAA6B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,EAAU,KAAK,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAiC/D,QAAA,MAAM,kBAAkB;;;8EAgBtB,CAAC;AAEH,MAAM,WAAW,eAAgB,SAAQ,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":"","sources":["../../../src/components/marker/marker.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAqB5C,QAAA,MAAM,cAAc;;8EAWlB,CAAC;AAEH,MAAM,WAAW,WAAY,SAAQ,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,cAAc,CAAC;CAAG;AAE5G,wBAAgB,MAAM,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,WAAW,8FAsB3E;AAED,OAAO,EAAE,cAAc,EAAE,CAAC;AAE1B,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAErD;;oCAEoC;AACpC,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AAED,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAExD,iCAAiC;AACjC,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE"}
package/dist/marker.js CHANGED
@@ -1,52 +1,53 @@
1
1
  "use client";
2
- import { jsx as e } from "react/jsx-runtime";
3
- import { mergeProps as s } from "@base-ui/react/merge-props";
4
- import { useRender as m } from "@base-ui/react/use-render";
5
- import { cx as n, cva as c } from "class-variance-authority";
6
- import './chunks/marker.DDxI_rZn.css';const d = "_marker_1dbba_11", u = "_variantDefault_1dbba_48", _ = "_variantBorder_1dbba_53", v = "_variantSeparator_1dbba_61", f = "_markerIcon_1dbba_78", k = "_markerContent_1dbba_91", r = {
7
- marker: d,
2
+ import { jsx as n } from "react/jsx-runtime";
3
+ import { mergeProps as m } from "@base-ui/react/merge-props";
4
+ import { useRender as c } from "@base-ui/react/use-render";
5
+ import { cx as o, cva as d } from "class-variance-authority";
6
+ import './chunks/marker.DDxI_rZn.css';const v = "_marker_1dbba_11", u = "_variantDefault_1dbba_48", _ = "_variantBorder_1dbba_53", f = "_variantSeparator_1dbba_61", k = "_markerIcon_1dbba_78", l = "_markerContent_1dbba_91", a = {
7
+ marker: v,
8
8
  variantDefault: u,
9
9
  variantBorder: _,
10
- variantSeparator: v,
11
- markerIcon: f,
12
- markerContent: k
13
- }, p = c(r.marker, {
10
+ variantSeparator: f,
11
+ markerIcon: k,
12
+ markerContent: l
13
+ }, p = d(a.marker, {
14
14
  variants: {
15
15
  variant: {
16
- default: r.variantDefault,
17
- separator: r.variantSeparator,
18
- border: r.variantBorder
16
+ default: a.variantDefault,
17
+ separator: a.variantSeparator,
18
+ border: a.variantBorder
19
19
  }
20
20
  },
21
21
  defaultVariants: {
22
22
  variant: "default"
23
23
  }
24
24
  });
25
- function B({ className: t, variant: a = "default", render: o, ...i }) {
26
- return m({
25
+ function D({ className: r, variant: t, render: i, ...s }) {
26
+ const e = t ?? "default";
27
+ return c({
27
28
  defaultTagName: "div",
28
- render: o,
29
+ render: i,
29
30
  // `data-variant` is layered on AFTER mergeProps, not passed through it:
30
31
  // mergeProps types its own object literal as the closed DOM attribute
31
32
  // set for the tag, which rejects a `data-*` key — the same
32
33
  // shadow-proofing needed anywhere a `data-*` prop must survive
33
34
  // mergeProps.
34
35
  props: {
35
- ...s({ className: p({ variant: a, className: t }) }, i),
36
- "data-variant": a
36
+ ...m({ className: p({ variant: e, className: r }) }, s),
37
+ "data-variant": e
37
38
  }
38
39
  });
39
40
  }
40
- function D({ className: t, ...a }) {
41
- return /* @__PURE__ */ e("span", { "aria-hidden": "true", className: n(r.markerIcon, t), ...a });
41
+ function N({ className: r, ...t }) {
42
+ return /* @__PURE__ */ n("span", { "aria-hidden": "true", className: o(a.markerIcon, r), ...t });
42
43
  }
43
- function N({ className: t, ...a }) {
44
- return /* @__PURE__ */ e("span", { className: n(r.markerContent, t), ...a });
44
+ function S({ className: r, ...t }) {
45
+ return /* @__PURE__ */ n("span", { className: o(a.markerContent, r), ...t });
45
46
  }
46
47
  export {
47
- B as Marker,
48
- N as MarkerContent,
49
- D as MarkerIcon,
48
+ D as Marker,
49
+ S as MarkerContent,
50
+ N as MarkerIcon,
50
51
  p as markerVariants
51
52
  };
52
53
  //# sourceMappingURL=marker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"marker.js","sources":["../src/components/marker/marker.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 './marker.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Marker\n * (registry/bases/base/ui/marker.tsx): an inline conversation marker for\n * status updates, system notes, bordered rows, and labeled separators.\n * Marker has no Base UI primitive, but gets `render`-prop polymorphism\n * from `useRender`/`mergeProps` — the same utilities Base UI's own\n * primitives are built on, and the same pattern Badge uses — for turning a\n * marker into a link or button.\n *\n * Pairs with the `shimmer` utility (src/styles/utilities.css, this\n * package's global CSS alongside theme.css — see that file's own header)\n * for a streaming-text effect: add the `shimmer` class to `MarkerContent`\n * directly, same as upstream (see marker.md's \"Shimmer\" section). Marker\n * does not apply it automatically — unlike Attachment's title\n * (attachment.tsx), which reacts to an upload `state` axis Marker has no\n * equivalent of.\n */\nconst markerVariants = cva(styles.marker, {\n variants: {\n variant: {\n default: styles.variantDefault,\n separator: styles.variantSeparator,\n border: styles.variantBorder,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface MarkerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof markerVariants> {}\n\nexport function Marker({ className, variant = 'default', render, ...props }: MarkerProps) {\n return useRender({\n defaultTagName: 'div',\n render,\n // `data-variant` is layered on AFTER mergeProps, not passed through it:\n // mergeProps types its own object literal as the closed DOM attribute\n // set for the tag, which rejects a `data-*` key — the same\n // shadow-proofing needed anywhere a `data-*` prop must survive\n // mergeProps.\n props: {\n ...mergeProps<'div'>({ className: markerVariants({ variant, className }) }, props),\n 'data-variant': variant,\n },\n });\n}\n\nexport { markerVariants };\n\nexport type MarkerIconProps = ComponentProps<'span'>;\n\n/** A decorative icon slot, hidden from assistive tech. For an icon-only\n * marker, give `Marker` itself an `aria-label` or visible text — an\n * icon alone announces as empty. */\nexport function MarkerIcon({ className, ...props }: MarkerIconProps) {\n return <span aria-hidden=\"true\" className={cx(styles.markerIcon, className)} {...props} />;\n}\n\nexport type MarkerContentProps = ComponentProps<'span'>;\n\n/** The marker's text content. */\nexport function MarkerContent({ className, ...props }: MarkerContentProps) {\n return <span className={cx(styles.markerContent, className)} {...props} />;\n}\n"],"names":["markerVariants","cva","styles","Marker","className","variant","render","props","useRender","mergeProps","MarkerIcon","jsx","cx","MarkerContent"],"mappings":";;;;;;;;;;;;GA0BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,QAAQA,EAAO;AAAA,IAAA;AAAA,EACjB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAIM,SAASC,EAAO,EAAE,WAAAC,GAAW,SAAAC,IAAU,WAAW,QAAAC,GAAQ,GAAGC,KAAsB;AACxF,SAAOC,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAF;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAO;AAAA,MACL,GAAGG,EAAkB,EAAE,WAAWT,EAAe,EAAE,SAAAK,GAAS,WAAAD,EAAA,CAAW,EAAA,GAAKG,CAAK;AAAA,MACjF,gBAAgBF;AAAA,IAAA;AAAA,EAClB,CACD;AACH;AASO,SAASK,EAAW,EAAE,WAAAN,GAAW,GAAGG,KAA0B;AACnE,SAAO,gBAAAI,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWC,EAAGV,EAAO,YAAYE,CAAS,GAAI,GAAGG,EAAA,CAAO;AAC1F;AAKO,SAASM,EAAc,EAAE,WAAAT,GAAW,GAAGG,KAA6B;AACzE,SAAO,gBAAAI,EAAC,UAAK,WAAWC,EAAGV,EAAO,eAAeE,CAAS,GAAI,GAAGG,GAAO;AAC1E;"}
1
+ {"version":3,"file":"marker.js","sources":["../src/components/marker/marker.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 './marker.module.css';\n\n/*\n * A faithful port of shadcn/ui's base Marker\n * (registry/bases/base/ui/marker.tsx): an inline conversation marker for\n * status updates, system notes, bordered rows, and labeled separators.\n * Marker has no Base UI primitive, but gets `render`-prop polymorphism\n * from `useRender`/`mergeProps` — the same utilities Base UI's own\n * primitives are built on, and the same pattern Badge uses — for turning a\n * marker into a link or button.\n *\n * Pairs with the `shimmer` utility (src/styles/utilities.css, this\n * package's global CSS alongside theme.css — see that file's own header)\n * for a streaming-text effect: add the `shimmer` class to `MarkerContent`\n * directly, same as upstream (see marker.md's \"Shimmer\" section). Marker\n * does not apply it automatically — unlike Attachment's title\n * (attachment.tsx), which reacts to an upload `state` axis Marker has no\n * equivalent of.\n */\nconst markerVariants = cva(styles.marker, {\n variants: {\n variant: {\n default: styles.variantDefault,\n separator: styles.variantSeparator,\n border: styles.variantBorder,\n },\n },\n defaultVariants: {\n variant: 'default',\n },\n});\n\nexport interface MarkerProps extends useRender.ComponentProps<'div'>, VariantProps<typeof markerVariants> {}\n\nexport function Marker({ className, variant, render, ...props }: MarkerProps) {\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 marker would come out with neither the\n // default class nor the attribute. Resolved once here, same as item.tsx,\n // so class and attribute always agree.\n const resolvedVariant = variant ?? 'default';\n return useRender({\n defaultTagName: 'div',\n render,\n // `data-variant` is layered on AFTER mergeProps, not passed through it:\n // mergeProps types its own object literal as the closed DOM attribute\n // set for the tag, which rejects a `data-*` key — the same\n // shadow-proofing needed anywhere a `data-*` prop must survive\n // mergeProps.\n props: {\n ...mergeProps<'div'>({ className: markerVariants({ variant: resolvedVariant, className }) }, props),\n 'data-variant': resolvedVariant,\n },\n });\n}\n\nexport { markerVariants };\n\nexport type MarkerIconProps = ComponentProps<'span'>;\n\n/** A decorative icon slot, hidden from assistive tech. For an icon-only\n * marker, give `Marker` itself an `aria-label` or visible text — an\n * icon alone announces as empty. */\nexport function MarkerIcon({ className, ...props }: MarkerIconProps) {\n return <span aria-hidden=\"true\" className={cx(styles.markerIcon, className)} {...props} />;\n}\n\nexport type MarkerContentProps = ComponentProps<'span'>;\n\n/** The marker's text content. */\nexport function MarkerContent({ className, ...props }: MarkerContentProps) {\n return <span className={cx(styles.markerContent, className)} {...props} />;\n}\n"],"names":["markerVariants","cva","styles","Marker","className","variant","render","props","resolvedVariant","useRender","mergeProps","MarkerIcon","jsx","cx","MarkerContent"],"mappings":";;;;;;;;;;;;GA0BMA,IAAiBC,EAAIC,EAAO,QAAQ;AAAA,EACxC,UAAU;AAAA,IACR,SAAS;AAAA,MACP,SAASA,EAAO;AAAA,MAChB,WAAWA,EAAO;AAAA,MAClB,QAAQA,EAAO;AAAA,IAAA;AAAA,EACjB;AAAA,EAEF,iBAAiB;AAAA,IACf,SAAS;AAAA,EAAA;AAEb,CAAC;AAIM,SAASC,EAAO,EAAE,WAAAC,GAAW,SAAAC,GAAS,QAAAC,GAAQ,GAAGC,KAAsB;AAQ5E,QAAMC,IAAkBH,KAAW;AACnC,SAAOI,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,IAMA,OAAO;AAAA,MACL,GAAGI,EAAkB,EAAE,WAAWV,EAAe,EAAE,SAASQ,GAAiB,WAAAJ,EAAA,CAAW,EAAA,GAAKG,CAAK;AAAA,MAClG,gBAAgBC;AAAA,IAAA;AAAA,EAClB,CACD;AACH;AASO,SAASG,EAAW,EAAE,WAAAP,GAAW,GAAGG,KAA0B;AACnE,SAAO,gBAAAK,EAAC,QAAA,EAAK,eAAY,QAAO,WAAWC,EAAGX,EAAO,YAAYE,CAAS,GAAI,GAAGG,EAAA,CAAO;AAC1F;AAKO,SAASO,EAAc,EAAE,WAAAV,GAAW,GAAGG,KAA6B;AACzE,SAAO,gBAAAK,EAAC,UAAK,WAAWC,EAAGX,EAAO,eAAeE,CAAS,GAAI,GAAGG,GAAO;AAC1E;"}
@@ -1,42 +1,43 @@
1
1
  import { jsxs as r, jsx as s } from "react/jsx-runtime";
2
- import { cx as n } from "class-variance-authority";
3
- import { ChevronDownIcon as p } from "lucide-react";
4
- import './chunks/native-select.BdYLTCZv.css';const a = "_wrapper_1vuz1_12", l = "_select_1vuz1_45", m = "_sizeSm_1vuz1_102", _ = "_option_1vuz1_119", u = "_icon_1vuz1_124", e = {
2
+ import { cx as c } from "class-variance-authority";
3
+ import { ChevronDownIcon as i } from "lucide-react";
4
+ import './chunks/native-select.DF1QrNz4.css';const a = "_wrapper_1yxg6_12", _ = "_select_1yxg6_45", l = "_sizeSm_1yxg6_102", m = "_option_1yxg6_119", u = "_optgroup_1yxg6_130", g = "_icon_1yxg6_135", o = {
5
5
  wrapper: a,
6
- select: l,
7
- sizeSm: m,
8
- option: _,
9
- icon: u
6
+ select: _,
7
+ sizeSm: l,
8
+ option: m,
9
+ optgroup: u,
10
+ icon: g
10
11
  };
11
- function f({ className: o, size: t = "default", disabled: c, ...i }) {
12
+ function y({ className: t, size: e = "default", disabled: n, ...p }) {
12
13
  return /* @__PURE__ */ r(
13
14
  "div",
14
15
  {
15
- className: n(e.wrapper, t === "sm" && e.sizeSm, o),
16
- "data-disabled": c || void 0,
16
+ className: c(o.wrapper, e === "sm" && o.sizeSm, t),
17
+ "data-disabled": n || void 0,
17
18
  children: [
18
19
  /* @__PURE__ */ s(
19
20
  "select",
20
21
  {
21
- className: e.select,
22
- disabled: c,
23
- ...i
22
+ className: o.select,
23
+ disabled: n,
24
+ ...p
24
25
  }
25
26
  ),
26
- /* @__PURE__ */ s(p, { className: e.icon })
27
+ /* @__PURE__ */ s(i, { className: o.icon })
27
28
  ]
28
29
  }
29
30
  );
30
31
  }
31
- function S({ className: o, ...t }) {
32
- return /* @__PURE__ */ s("option", { className: n(e.option, o), ...t });
32
+ function S({ className: t, ...e }) {
33
+ return /* @__PURE__ */ s("option", { className: c(o.option, t), ...e });
33
34
  }
34
- function d({ className: o, ...t }) {
35
- return /* @__PURE__ */ s("optgroup", { className: n(e.option, o), ...t });
35
+ function v({ className: t, ...e }) {
36
+ return /* @__PURE__ */ s("optgroup", { className: c(o.optgroup, t), ...e });
36
37
  }
37
38
  export {
38
- f as NativeSelect,
39
- d as NativeSelectOptGroup,
39
+ y as NativeSelect,
40
+ v as NativeSelectOptGroup,
40
41
  S as NativeSelectOption
41
42
  };
42
43
  //# sourceMappingURL=native-select.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"native-select.js","sources":["../src/components/native-select/native-select.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './native-select.module.css';\n\n/*\n * NativeSelect wraps a real <select> — the source-of-truth control\n * (Base UI ships no NativeSelect primitive; this is the same \"pure styling\n * translation over native markup\" shape as table.tsx, not a Base UI\n * wrapper). The wrapper div exists only because a <select> is a replaced\n * element with no ::before/::after to draw a chevron into — same reasoning\n * as Input's icon/end slots (input.tsx), forced here unconditionally since\n * a select without its dropdown indicator reads as broken, not as a valid\n * \"no slot\" state the way an unslotted Input does.\n */\nexport interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {\n className?: string;\n /** Matches the kit's two-step control scale used elsewhere for compact\n * chrome (Table's `density`, Select's `size`) — `lg` is not offered here,\n * mirroring upstream's own sm/default axis. */\n size?: 'sm' | 'default';\n}\n\nexport function NativeSelect({ className, size = 'default', disabled, ...props }: NativeSelectProps) {\n return (\n <div\n className={cx(styles.wrapper, size === 'sm' && styles.sizeSm, className)}\n data-disabled={disabled || undefined}\n >\n <select\n className={styles.select}\n disabled={disabled}\n {...props}\n />\n <ChevronDownIcon className={styles.icon} />\n </div>\n );\n}\n\nexport type NativeSelectOptionProps = ComponentProps<'option'>;\n\nexport function NativeSelectOption({ className, ...props }: NativeSelectOptionProps) {\n return <option className={cx(styles.option, className)} {...props} />;\n}\n\nexport type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;\n\nexport function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps) {\n return <optgroup className={cx(styles.option, className)} {...props} />;\n}\n"],"names":["NativeSelect","className","size","disabled","props","jsxs","cx","styles","jsx","ChevronDownIcon","NativeSelectOption","NativeSelectOptGroup"],"mappings":";;;;;;;;;;AAwBO,SAASA,EAAa,EAAE,WAAAC,GAAW,MAAAC,IAAO,WAAW,UAAAC,GAAU,GAAGC,KAA4B;AACnG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,SAASL,MAAS,QAAQK,EAAO,QAAQN,CAAS;AAAA,MACvE,iBAAeE,KAAY;AAAA,MAE3B,UAAA;AAAA,QAAA,gBAAAK;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,EAAO;AAAA,YAClB,UAAAJ;AAAA,YACC,GAAGC;AAAA,UAAA;AAAA,QAAA;AAAA,QAEN,gBAAAI,EAACC,GAAA,EAAgB,WAAWF,EAAO,KAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/C;AAIO,SAASG,EAAmB,EAAE,WAAAT,GAAW,GAAGG,KAAkC;AACnF,SAAO,gBAAAI,EAAC,YAAO,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACrE;AAIO,SAASO,EAAqB,EAAE,WAAAV,GAAW,GAAGG,KAAoC;AACvF,SAAO,gBAAAI,EAAC,cAAS,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACvE;"}
1
+ {"version":3,"file":"native-select.js","sources":["../src/components/native-select/native-select.tsx"],"sourcesContent":["import { cx } from 'class-variance-authority';\nimport { ChevronDownIcon } from 'lucide-react';\nimport type { ComponentProps } from 'react';\n\nimport styles from './native-select.module.css';\n\n/*\n * NativeSelect wraps a real <select> — the source-of-truth control\n * (Base UI ships no NativeSelect primitive; this is the same \"pure styling\n * translation over native markup\" shape as table.tsx, not a Base UI\n * wrapper). The wrapper div exists only because a <select> is a replaced\n * element with no ::before/::after to draw a chevron into — same reasoning\n * as Input's icon/end slots (input.tsx), forced here unconditionally since\n * a select without its dropdown indicator reads as broken, not as a valid\n * \"no slot\" state the way an unslotted Input does.\n */\nexport interface NativeSelectProps extends Omit<ComponentProps<'select'>, 'className' | 'size'> {\n className?: string;\n /** Matches the kit's two-step control scale used elsewhere for compact\n * chrome (Table's `density`, Select's `size`) — `lg` is not offered here,\n * mirroring upstream's own sm/default axis. */\n size?: 'sm' | 'default';\n}\n\nexport function NativeSelect({ className, size = 'default', disabled, ...props }: NativeSelectProps) {\n return (\n <div\n className={cx(styles.wrapper, size === 'sm' && styles.sizeSm, className)}\n data-disabled={disabled || undefined}\n >\n <select\n className={styles.select}\n disabled={disabled}\n {...props}\n />\n <ChevronDownIcon className={styles.icon} />\n </div>\n );\n}\n\nexport type NativeSelectOptionProps = ComponentProps<'option'>;\n\nexport function NativeSelectOption({ className, ...props }: NativeSelectOptionProps) {\n return <option className={cx(styles.option, className)} {...props} />;\n}\n\nexport type NativeSelectOptGroupProps = ComponentProps<'optgroup'>;\n\nexport function NativeSelectOptGroup({ className, ...props }: NativeSelectOptGroupProps) {\n return <optgroup className={cx(styles.optgroup, className)} {...props} />;\n}\n"],"names":["NativeSelect","className","size","disabled","props","jsxs","cx","styles","jsx","ChevronDownIcon","NativeSelectOption","NativeSelectOptGroup"],"mappings":";;;;;;;;;;;AAwBO,SAASA,EAAa,EAAE,WAAAC,GAAW,MAAAC,IAAO,WAAW,UAAAC,GAAU,GAAGC,KAA4B;AACnG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGC,EAAO,SAASL,MAAS,QAAQK,EAAO,QAAQN,CAAS;AAAA,MACvE,iBAAeE,KAAY;AAAA,MAE3B,UAAA;AAAA,QAAA,gBAAAK;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAWD,EAAO;AAAA,YAClB,UAAAJ;AAAA,YACC,GAAGC;AAAA,UAAA;AAAA,QAAA;AAAA,QAEN,gBAAAI,EAACC,GAAA,EAAgB,WAAWF,EAAO,KAAA,CAAM;AAAA,MAAA;AAAA,IAAA;AAAA,EAAA;AAG/C;AAIO,SAASG,EAAmB,EAAE,WAAAT,GAAW,GAAGG,KAAkC;AACnF,SAAO,gBAAAI,EAAC,YAAO,WAAWF,EAAGC,EAAO,QAAQN,CAAS,GAAI,GAAGG,GAAO;AACrE;AAIO,SAASO,EAAqB,EAAE,WAAAV,GAAW,GAAGG,KAAoC;AACvF,SAAO,gBAAAI,EAAC,cAAS,WAAWF,EAAGC,EAAO,UAAUN,CAAS,GAAI,GAAGG,GAAO;AACzE;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gears-frontx/ui-kit",
3
- "version": "0.4.0-alpha.1",
3
+ "version": "0.4.0-alpha.2",
4
4
  "description": "Standard React component base for FrontX templates - Base UI behavior, CSS Modules styling on semantic tokens, CVA variants",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",
@@ -1 +0,0 @@
1
- ._wrapper_1vuz1_12{position:relative;display:inline-flex;align-items:center}._wrapper_1vuz1_12[data-disabled]{opacity:.42}._select_1vuz1_45{box-sizing:border-box;display:flex;width:100%;align-items:center;height:var(--control-height-lg);padding:0 var(--space-8) 0 var(--space-3);border:var(--border-width) solid var(--input);border-radius:var(--radius-md);background-color:var(--surface-elevated);color:var(--foreground);font-family:inherit;font-size:var(--text-label-size);line-height:var(--text-label-line-height);font-weight:var(--text-body-weight);letter-spacing:var(--text-label-tracking);-webkit-appearance:none;-moz-appearance:none;appearance:none;cursor:pointer;outline:none;transition:color .15s ease,border-color .15s ease,box-shadow .15s ease}._select_1vuz1_45:disabled{cursor:not-allowed}._select_1vuz1_45:focus-visible{border-color:var(--ring);box-shadow:inset 0 0 0 var(--ring-inset) var(--ring)}@media(forced-colors:active){._select_1vuz1_45:focus-visible{outline:2px solid Highlight;outline-offset:2px}}._sizeSm_1vuz1_102 ._select_1vuz1_45{height:var(--control-height-sm);font-size:var(--text-meta-size);line-height:var(--text-meta-line-height);letter-spacing:var(--text-meta-tracking)}._option_1vuz1_119{background-color:Canvas;color:CanvasText}._icon_1vuz1_124{position:absolute;inset-inline-end:var(--space-3);width:var(--icon-size-sm);height:var(--icon-size-sm);pointer-events:none}