@gears-frontx/ui-kit 0.4.1 → 0.4.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 (159) hide show
  1. package/README.md +6 -5
  2. package/dist/alert.js +35 -24
  3. package/dist/alert.js.map +1 -1
  4. package/dist/attachment.js +117 -76
  5. package/dist/attachment.js.map +1 -1
  6. package/dist/avatar.js +43 -43
  7. package/dist/badge.js +14 -14
  8. package/dist/card.js +81 -44
  9. package/dist/card.js.map +1 -1
  10. package/dist/chart.js +50 -50
  11. package/dist/chunks/alert.Csv2-ccF.css +1 -0
  12. package/dist/chunks/attachment.BRyIQq3F.css +1 -0
  13. package/dist/chunks/avatar.7EUG65-M.css +1 -0
  14. package/dist/chunks/badge.BwUxa9PB.css +1 -0
  15. package/dist/chunks/card.DSiUMxGK.css +1 -0
  16. package/dist/chunks/chart.B9cGEno8.css +1 -0
  17. package/dist/chunks/code-block.r7Cm0ncj.css +1 -0
  18. package/dist/chunks/description-list.Cx-vFGJL.css +1 -0
  19. package/dist/chunks/empty.DWqLrSfF.css +1 -0
  20. package/dist/chunks/heading.DQxQs5po.css +1 -0
  21. package/dist/chunks/item.BQ70Khqj.css +1 -0
  22. package/dist/chunks/link.BOE4f-aB.css +1 -0
  23. package/dist/chunks/message-scroller.CBjPcz8Y.css +1 -0
  24. package/dist/chunks/page-header.72nfJNkg.css +1 -0
  25. package/dist/chunks/sheet.BkZyzAbA.css +1 -0
  26. package/dist/chunks/sidebar.CIuN--7U.css +1 -0
  27. package/dist/chunks/slider.DY1XDCPw.css +1 -0
  28. package/dist/chunks/status-dot.39NKkKQF.css +1 -0
  29. package/dist/chunks/text.7frjnkUr.css +1 -0
  30. package/dist/chunks/visually-hidden.Bd2oAR5D.css +1 -0
  31. package/dist/code-block.d.ts +1 -0
  32. package/dist/code-block.js +152 -0
  33. package/dist/code-block.js.map +1 -0
  34. package/dist/command.js +63 -48
  35. package/dist/command.js.map +1 -1
  36. package/dist/components/alert/alert.d.ts +3 -2
  37. package/dist/components/alert/alert.d.ts.map +1 -1
  38. package/dist/components/attachment/attachment.d.ts +10 -3
  39. package/dist/components/attachment/attachment.d.ts.map +1 -1
  40. package/dist/components/card/card.d.ts +6 -4
  41. package/dist/components/card/card.d.ts.map +1 -1
  42. package/dist/components/code-block/code-block.d.ts +57 -0
  43. package/dist/components/code-block/code-block.d.ts.map +1 -0
  44. package/dist/components/code-block/public.d.ts +2 -0
  45. package/dist/components/code-block/public.d.ts.map +1 -0
  46. package/dist/components/command/command.d.ts +1 -1
  47. package/dist/components/command/command.d.ts.map +1 -1
  48. package/dist/components/description-list/description-list.d.ts +21 -0
  49. package/dist/components/description-list/description-list.d.ts.map +1 -0
  50. package/dist/components/description-list/public.d.ts +2 -0
  51. package/dist/components/description-list/public.d.ts.map +1 -0
  52. package/dist/components/empty/empty.d.ts +3 -2
  53. package/dist/components/empty/empty.d.ts.map +1 -1
  54. package/dist/components/heading/heading.d.ts +10 -0
  55. package/dist/components/heading/heading.d.ts.map +1 -0
  56. package/dist/components/heading/public.d.ts +2 -0
  57. package/dist/components/heading/public.d.ts.map +1 -0
  58. package/dist/components/input-otp/input-otp.d.ts +1 -1
  59. package/dist/components/input-otp/input-otp.d.ts.map +1 -1
  60. package/dist/components/item/item.d.ts +15 -6
  61. package/dist/components/item/item.d.ts.map +1 -1
  62. package/dist/components/link/link.d.ts +18 -0
  63. package/dist/components/link/link.d.ts.map +1 -0
  64. package/dist/components/link/public.d.ts +2 -0
  65. package/dist/components/link/public.d.ts.map +1 -0
  66. package/dist/components/page-header/page-header.d.ts +50 -0
  67. package/dist/components/page-header/page-header.d.ts.map +1 -0
  68. package/dist/components/page-header/public.d.ts +2 -0
  69. package/dist/components/page-header/public.d.ts.map +1 -0
  70. package/dist/components/sidebar/sidebar.d.ts +13 -3
  71. package/dist/components/sidebar/sidebar.d.ts.map +1 -1
  72. package/dist/components/slider/slider.d.ts +1 -1
  73. package/dist/components/slider/slider.d.ts.map +1 -1
  74. package/dist/components/table/table.d.ts.map +1 -1
  75. package/dist/components/text/public.d.ts +2 -0
  76. package/dist/components/text/public.d.ts.map +1 -0
  77. package/dist/components/text/text.d.ts +11 -0
  78. package/dist/components/text/text.d.ts.map +1 -0
  79. package/dist/components/visually-hidden/public.d.ts +2 -0
  80. package/dist/components/visually-hidden/public.d.ts.map +1 -0
  81. package/dist/components/visually-hidden/visually-hidden.d.ts +4 -0
  82. package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
  83. package/dist/description-list.d.ts +1 -0
  84. package/dist/description-list.js +78 -0
  85. package/dist/description-list.js.map +1 -0
  86. package/dist/docs/alert.md +8 -2
  87. package/dist/docs/attachment.md +20 -8
  88. package/dist/docs/avatar.md +8 -2
  89. package/dist/docs/badge.md +12 -11
  90. package/dist/docs/button.md +16 -4
  91. package/dist/docs/calendar.md +6 -0
  92. package/dist/docs/card.md +38 -6
  93. package/dist/docs/carousel.md +4 -2
  94. package/dist/docs/chart.md +23 -0
  95. package/dist/docs/code-block.md +114 -0
  96. package/dist/docs/description-list.md +53 -0
  97. package/dist/docs/empty.md +9 -3
  98. package/dist/docs/heading.md +60 -0
  99. package/dist/docs/item.md +70 -3
  100. package/dist/docs/link.md +48 -0
  101. package/dist/docs/message-scroller.md +5 -0
  102. package/dist/docs/page-header.md +266 -0
  103. package/dist/docs/sheet.md +20 -3
  104. package/dist/docs/sidebar.md +27 -0
  105. package/dist/docs/status-dot.md +2 -2
  106. package/dist/docs/switch.md +10 -4
  107. package/dist/docs/text.md +51 -0
  108. package/dist/docs/visually-hidden.md +44 -0
  109. package/dist/empty.js +47 -36
  110. package/dist/empty.js.map +1 -1
  111. package/dist/heading.d.ts +1 -0
  112. package/dist/heading.js +36 -0
  113. package/dist/heading.js.map +1 -0
  114. package/dist/index.d.ts +7 -0
  115. package/dist/index.d.ts.map +1 -1
  116. package/dist/index.js +437 -402
  117. package/dist/index.js.map +1 -1
  118. package/dist/input-otp.js +34 -20
  119. package/dist/input-otp.js.map +1 -1
  120. package/dist/item.js +119 -71
  121. package/dist/item.js.map +1 -1
  122. package/dist/link.d.ts +1 -0
  123. package/dist/link.js +55 -0
  124. package/dist/link.js.map +1 -0
  125. package/dist/message-scroller.js +24 -24
  126. package/dist/page-header.d.ts +1 -0
  127. package/dist/page-header.js +88 -0
  128. package/dist/page-header.js.map +1 -0
  129. package/dist/sheet.js +41 -41
  130. package/dist/sidebar.js +220 -206
  131. package/dist/sidebar.js.map +1 -1
  132. package/dist/slider.js +34 -21
  133. package/dist/slider.js.map +1 -1
  134. package/dist/status-dot.js +25 -25
  135. package/dist/table.js +172 -157
  136. package/dist/table.js.map +1 -1
  137. package/dist/text.d.ts +1 -0
  138. package/dist/text.js +53 -0
  139. package/dist/text.js.map +1 -0
  140. package/dist/theme.css +29 -6
  141. package/dist/utilities.css +25 -2
  142. package/dist/visually-hidden.d.ts +1 -0
  143. package/dist/visually-hidden.js +18 -0
  144. package/dist/visually-hidden.js.map +1 -0
  145. package/llms.txt +82 -15
  146. package/package.json +1 -1
  147. package/dist/chunks/alert.DsgRIXLn.css +0 -1
  148. package/dist/chunks/attachment.CZuZdlXC.css +0 -1
  149. package/dist/chunks/avatar.BMm-Z9l5.css +0 -1
  150. package/dist/chunks/badge.BCreEn3O.css +0 -1
  151. package/dist/chunks/card.DdBl-usf.css +0 -1
  152. package/dist/chunks/chart.CeyctrXQ.css +0 -1
  153. package/dist/chunks/empty.DnAKlw2g.css +0 -1
  154. package/dist/chunks/item.BkcgydVc.css +0 -1
  155. package/dist/chunks/message-scroller.CbLooS7Q.css +0 -1
  156. package/dist/chunks/sheet.BWvXXyXk.css +0 -1
  157. package/dist/chunks/sidebar.DdEvMURX.css +0 -1
  158. package/dist/chunks/slider.inyNxx4y.css +0 -1
  159. package/dist/chunks/status-dot.DWa2qGKe.css +0 -1
@@ -0,0 +1,88 @@
1
+ "use client";
2
+ import { jsx as t } from "react/jsx-runtime";
3
+ import { mergeProps as p } from "@base-ui/react/merge-props";
4
+ import { useRender as g } from "@base-ui/react/use-render";
5
+ import { cx as n, cva as s } from "class-variance-authority";
6
+ import './chunks/page-header.72nfJNkg.css';const o = "_pageHeader_xfw9e_15", H = "_sizeSm_xfw9e_33", c = "_sizeDefault_xfw9e_37", _ = "_sizeLg_xfw9e_41", f = "_borderHidden_xfw9e_47", l = "_pageHeaderLeading_xfw9e_51", y = "_pageHeaderContent_xfw9e_58", u = "_pageHeaderEyebrow_xfw9e_67", m = "_pageHeaderTitle_xfw9e_97", w = "_typographyHeading_xfw9e_106", x = "_typographyDisplay_xfw9e_113", h = "_pageHeaderMeta_xfw9e_120", z = "_pageHeaderDescription_xfw9e_129", D = "_pageHeaderActions_xfw9e_140", r = {
7
+ pageHeader: o,
8
+ sizeSm: H,
9
+ sizeDefault: c,
10
+ sizeLg: _,
11
+ borderHidden: f,
12
+ pageHeaderLeading: l,
13
+ pageHeaderContent: y,
14
+ pageHeaderEyebrow: u,
15
+ pageHeaderTitle: m,
16
+ typographyHeading: w,
17
+ typographyDisplay: x,
18
+ pageHeaderMeta: h,
19
+ pageHeaderDescription: z,
20
+ pageHeaderActions: D
21
+ }, b = s(r.pageHeader, {
22
+ variants: {
23
+ size: {
24
+ sm: r.sizeSm,
25
+ default: r.sizeDefault,
26
+ lg: r.sizeLg
27
+ }
28
+ },
29
+ defaultVariants: {
30
+ size: "default"
31
+ }
32
+ });
33
+ function A({ className: e, size: a, border: i = !0, ...d }) {
34
+ return /* @__PURE__ */ t(
35
+ "header",
36
+ {
37
+ className: n(b({ size: a }), !i && r.borderHidden, e),
38
+ ...d
39
+ }
40
+ );
41
+ }
42
+ function C({ className: e, ...a }) {
43
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderLeading, e), ...a });
44
+ }
45
+ function E({ className: e, ...a }) {
46
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderContent, e), ...a });
47
+ }
48
+ function M({ className: e, ...a }) {
49
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderEyebrow, e), ...a });
50
+ }
51
+ const v = s(r.pageHeaderTitle, {
52
+ variants: {
53
+ typography: {
54
+ heading: r.typographyHeading,
55
+ display: r.typographyDisplay
56
+ }
57
+ },
58
+ defaultVariants: {
59
+ typography: "heading"
60
+ }
61
+ });
62
+ function S({ className: e, typography: a, render: i, ...d }) {
63
+ return g({
64
+ defaultTagName: "h1",
65
+ render: i,
66
+ props: p({ className: v({ typography: a, className: e }) }, d)
67
+ });
68
+ }
69
+ function V({ className: e, ...a }) {
70
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderMeta, e), ...a });
71
+ }
72
+ function j({ className: e, ...a }) {
73
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderDescription, e), ...a });
74
+ }
75
+ function R({ className: e, ...a }) {
76
+ return /* @__PURE__ */ t("div", { className: n(r.pageHeaderActions, e), ...a });
77
+ }
78
+ export {
79
+ A as PageHeader,
80
+ R as PageHeaderActions,
81
+ E as PageHeaderContent,
82
+ j as PageHeaderDescription,
83
+ M as PageHeaderEyebrow,
84
+ C as PageHeaderLeading,
85
+ V as PageHeaderMeta,
86
+ S as PageHeaderTitle
87
+ };
88
+ //# sourceMappingURL=page-header.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-header.js","sources":["../src/components/page-header/page-header.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 './page-header.module.css';\n\n/*\n * PageHeader has no Base UI primitive and no shadcn/ui counterpart: it is\n * the kit's own layout frame for the header of a page or a section - a\n * control before the text, a line above the title, content beside it, a\n * description under it and actions at the end. The frame lays out what the\n * application puts in those slots and renders no other kit component.\n * Plain styled elements, the same shape as Card and Empty (see card.tsx).\n * No `data-slot` attributes, per the kit-wide convention.\n *\n * The title is the one part that calls a hook - useRender, for its heading\n * level, the same idiom Badge and BreadcrumbLink use - and that is what\n * puts the 'use client' banner on this file.\n */\n\nconst pageHeaderVariants = cva(styles.pageHeader, {\n variants: {\n size: {\n sm: styles.sizeSm,\n default: styles.sizeDefault,\n lg: styles.sizeLg,\n },\n },\n defaultVariants: {\n size: 'default',\n },\n});\n\nexport interface PageHeaderProps\n extends ComponentProps<'header'>, VariantProps<typeof pageHeaderVariants> {\n /** Draws the rule under the header. `false` paints it transparent rather\n * than dropping it, so a header without the rule keeps the height and\n * the text position of one with it. A flag, not a variant value: it is\n * anatomy, the way Badge's `dot` is. */\n border?: boolean;\n}\n\n/** `size` is the drawn minimum height: `sm` 56, `default` 64, `lg` 80. */\nexport function PageHeader({ className, size, border = true, ...props }: PageHeaderProps) {\n return (\n <header\n className={cx(pageHeaderVariants({ size }), !border && styles.borderHidden, className)}\n {...props}\n />\n );\n}\n\nexport type PageHeaderLeadingProps = ComponentProps<'div'>;\n\n/** A control before the text: a back link, a view switch. */\nexport function PageHeaderLeading({ className, ...props }: PageHeaderLeadingProps) {\n return <div className={cx(styles.pageHeaderLeading, className)} {...props} />;\n}\n\nexport type PageHeaderContentProps = ComponentProps<'div'>;\n\n/** The text block: eyebrow, title, the content beside the title and the\n * description. Each part takes its own grid area, so where it lands does\n * not depend on which of the others are present. */\nexport function PageHeaderContent({ className, ...props }: PageHeaderContentProps) {\n return <div className={cx(styles.pageHeaderContent, className)} {...props} />;\n}\n\nexport type PageHeaderEyebrowProps = ComponentProps<'div'>;\n\n/** A line above the title - typically a link to the parent the page\n * belongs to. */\nexport function PageHeaderEyebrow({ className, ...props }: PageHeaderEyebrowProps) {\n return <div className={cx(styles.pageHeaderEyebrow, className)} {...props} />;\n}\n\nconst pageHeaderTitleVariants = cva(styles.pageHeaderTitle, {\n variants: {\n typography: {\n heading: styles.typographyHeading,\n display: styles.typographyDisplay,\n },\n },\n defaultVariants: {\n typography: 'heading',\n },\n});\n\nexport interface PageHeaderTitleProps\n extends useRender.ComponentProps<'h1'>, VariantProps<typeof pageHeaderTitleVariants> {}\n\n/** The page's heading: an `h1` unless `render` names another level, such\n * as `render={<h2 />}` for a section under the page's own header.\n * `typography` picks the ramp role - `heading` (20/28) or `display`\n * (26/32), independent of the header's height. */\nexport function PageHeaderTitle({ className, typography, render, ...props }: PageHeaderTitleProps) {\n return useRender({\n defaultTagName: 'h1',\n render,\n props: mergeProps<'h1'>({ className: pageHeaderTitleVariants({ typography, className }) }, props),\n });\n}\n\nexport type PageHeaderMetaProps = ComponentProps<'div'>;\n\n/** Content beside the title: a badge, a status, section navigation, a\n * small action. */\nexport function PageHeaderMeta({ className, ...props }: PageHeaderMetaProps) {\n return <div className={cx(styles.pageHeaderMeta, className)} {...props} />;\n}\n\nexport type PageHeaderDescriptionProps = ComponentProps<'div'>;\n\n/** A short line under the title. */\nexport function PageHeaderDescription({ className, ...props }: PageHeaderDescriptionProps) {\n return <div className={cx(styles.pageHeaderDescription, className)} {...props} />;\n}\n\nexport type PageHeaderActionsProps = ComponentProps<'div'>;\n\n/** The row at the end of the header: buttons, menus, anything the page\n * acts with. */\nexport function PageHeaderActions({ className, ...props }: PageHeaderActionsProps) {\n return <div className={cx(styles.pageHeaderActions, className)} {...props} />;\n}\n"],"names":["pageHeaderVariants","cva","styles","PageHeader","className","size","border","props","jsx","cx","PageHeaderLeading","PageHeaderContent","PageHeaderEyebrow","pageHeaderTitleVariants","PageHeaderTitle","typography","render","useRender","mergeProps","PageHeaderMeta","PageHeaderDescription","PageHeaderActions"],"mappings":";;;;;;;;;;;;;;;;;;;;GAuBMA,IAAqBC,EAAIC,EAAO,YAAY;AAAA,EAChD,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAIA,EAAO;AAAA,MACX,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,MAAM;AAAA,EAAA;AAEV,CAAC;AAYM,SAASC,EAAW,EAAE,WAAAC,GAAW,MAAAC,GAAM,QAAAC,IAAS,IAAM,GAAGC,KAA0B;AACxF,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWC,EAAGT,EAAmB,EAAE,MAAAK,EAAA,CAAM,GAAG,CAACC,KAAUJ,EAAO,cAAcE,CAAS;AAAA,MACpF,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;AAKO,SAASG,EAAkB,EAAE,WAAAN,GAAW,GAAGG,KAAiC;AACjF,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,mBAAmBE,CAAS,GAAI,GAAGG,GAAO;AAC7E;AAOO,SAASI,EAAkB,EAAE,WAAAP,GAAW,GAAGG,KAAiC;AACjF,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,mBAAmBE,CAAS,GAAI,GAAGG,GAAO;AAC7E;AAMO,SAASK,EAAkB,EAAE,WAAAR,GAAW,GAAGG,KAAiC;AACjF,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,mBAAmBE,CAAS,GAAI,GAAGG,GAAO;AAC7E;AAEA,MAAMM,IAA0BZ,EAAIC,EAAO,iBAAiB;AAAA,EAC1D,UAAU;AAAA,IACR,YAAY;AAAA,MACV,SAASA,EAAO;AAAA,MAChB,SAASA,EAAO;AAAA,IAAA;AAAA,EAClB;AAAA,EAEF,iBAAiB;AAAA,IACf,YAAY;AAAA,EAAA;AAEhB,CAAC;AASM,SAASY,EAAgB,EAAE,WAAAV,GAAW,YAAAW,GAAY,QAAAC,GAAQ,GAAGT,KAA+B;AACjG,SAAOU,EAAU;AAAA,IACf,gBAAgB;AAAA,IAChB,QAAAD;AAAA,IACA,OAAOE,EAAiB,EAAE,WAAWL,EAAwB,EAAE,YAAAE,GAAY,WAAAX,GAAW,EAAA,GAAKG,CAAK;AAAA,EAAA,CACjG;AACH;AAMO,SAASY,EAAe,EAAE,WAAAf,GAAW,GAAGG,KAA8B;AAC3E,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,gBAAgBE,CAAS,GAAI,GAAGG,GAAO;AAC1E;AAKO,SAASa,EAAsB,EAAE,WAAAhB,GAAW,GAAGG,KAAqC;AACzF,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,uBAAuBE,CAAS,GAAI,GAAGG,GAAO;AACjF;AAMO,SAASc,EAAkB,EAAE,WAAAjB,GAAW,GAAGG,KAAiC;AACjF,SAAO,gBAAAC,EAAC,SAAI,WAAWC,EAAGP,EAAO,mBAAmBE,CAAS,GAAI,GAAGG,GAAO;AAC7E;"}
package/dist/sheet.js CHANGED
@@ -1,29 +1,29 @@
1
- import { jsx as s, jsxs as n } from "react/jsx-runtime";
2
- import { Dialog as i } from "@base-ui/react/dialog";
3
- import { cx as c, cva as u } from "class-variance-authority";
1
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
2
+ import { Dialog as n } from "@base-ui/react/dialog";
3
+ import { cx as i, cva as u } from "class-variance-authority";
4
4
  import { XIcon as h } from "lucide-react";
5
5
  import { Button as m } from "./button.js";
6
- import './chunks/sheet.BWvXXyXk.css';const f = "_backdrop_1yjck_10", g = "_popup_1yjck_34", k = "_sideTop_1yjck_88", j = "_sideBottom_1yjck_89", y = "_sideRight_1yjck_106", B = "_sideLeft_1yjck_107", v = "_closeButton_1yjck_171", N = "_header_1yjck_196", S = "_footer_1yjck_241", T = "_title_1yjck_254", b = "_description_1yjck_262", C = "_svgIcon_1yjck_269", o = {
6
+ import './chunks/sheet.BkZyzAbA.css';const f = "_backdrop_1n1wd_10", g = "_popup_1n1wd_34", w = "_sideTop_1n1wd_88", B = "_sideBottom_1n1wd_89", v = "_sideRight_1n1wd_106", N = "_sideLeft_1n1wd_107", S = "_closeButton_1n1wd_176", T = "_header_1n1wd_201", b = "_footer_1n1wd_246", C = "_title_1n1wd_259", k = "_description_1n1wd_267", I = "_svgIcon_1n1wd_274", o = {
7
7
  backdrop: f,
8
8
  popup: g,
9
- sideTop: k,
10
- sideBottom: j,
11
- sideRight: y,
12
- sideLeft: B,
13
- closeButton: v,
14
- header: N,
15
- footer: S,
16
- title: T,
17
- description: b,
18
- svgIcon: C
19
- }, V = i.Root;
20
- function F({ className: t, ...e }) {
21
- return /* @__PURE__ */ s(i.Trigger, { className: t, ...e });
9
+ sideTop: w,
10
+ sideBottom: B,
11
+ sideRight: v,
12
+ sideLeft: N,
13
+ closeButton: S,
14
+ header: T,
15
+ footer: b,
16
+ title: C,
17
+ description: k,
18
+ svgIcon: I
19
+ }, V = n.Root;
20
+ function y({ className: t, ...e }) {
21
+ return /* @__PURE__ */ s(n.Trigger, { className: t, ...e });
22
22
  }
23
- function H({ className: t, ...e }) {
24
- return /* @__PURE__ */ s(i.Close, { className: t, ...e });
23
+ function F({ className: t, ...e }) {
24
+ return /* @__PURE__ */ s(n.Close, { className: t, ...e });
25
25
  }
26
- const I = u(o.popup, {
26
+ const R = u(o.popup, {
27
27
  variants: {
28
28
  side: {
29
29
  top: o.sideTop,
@@ -36,28 +36,28 @@ const I = u(o.popup, {
36
36
  side: "right"
37
37
  }
38
38
  });
39
- function X({
39
+ function H({
40
40
  className: t,
41
41
  children: e,
42
- container: a,
42
+ container: d,
43
43
  side: r = "right",
44
- showCloseButton: d = !0,
44
+ showCloseButton: a = !0,
45
45
  showBackdrop: p = !0,
46
46
  closeLabel: _ = "Close",
47
47
  ...l
48
48
  }) {
49
- return /* @__PURE__ */ n(i.Portal, { container: a, children: [
50
- p && /* @__PURE__ */ s(i.Backdrop, { className: o.backdrop }),
51
- /* @__PURE__ */ n(
52
- i.Popup,
49
+ return /* @__PURE__ */ c(n.Portal, { container: d, children: [
50
+ p && /* @__PURE__ */ s(n.Backdrop, { className: o.backdrop }),
51
+ /* @__PURE__ */ c(
52
+ n.Popup,
53
53
  {
54
- className: I({ side: r, className: t }),
54
+ className: R({ side: r, className: t }),
55
55
  "data-side": r,
56
56
  ...l,
57
57
  children: [
58
58
  e,
59
- d && /* @__PURE__ */ s(
60
- i.Close,
59
+ a && /* @__PURE__ */ s(
60
+ n.Close,
61
61
  {
62
62
  "aria-label": _,
63
63
  className: o.closeButton,
@@ -69,26 +69,26 @@ function X({
69
69
  )
70
70
  ] });
71
71
  }
72
- function q({ className: t, ...e }) {
73
- return /* @__PURE__ */ s("div", { className: c(o.header, t), ...e });
72
+ function X({ className: t, ...e }) {
73
+ return /* @__PURE__ */ s("div", { className: i(o.header, t), ...e });
74
74
  }
75
- function w({ className: t, ...e }) {
76
- return /* @__PURE__ */ s("div", { className: c(o.footer, t), ...e });
75
+ function q({ className: t, ...e }) {
76
+ return /* @__PURE__ */ s("div", { className: i(o.footer, t), ...e });
77
77
  }
78
78
  function z({ className: t, ...e }) {
79
- return /* @__PURE__ */ s(i.Title, { className: c(o.title, t), ...e });
79
+ return /* @__PURE__ */ s(n.Title, { className: i(o.title, t), ...e });
80
80
  }
81
81
  function A({ className: t, ...e }) {
82
- return /* @__PURE__ */ s(i.Description, { className: c(o.description, t), ...e });
82
+ return /* @__PURE__ */ s(n.Description, { className: i(o.description, t), ...e });
83
83
  }
84
84
  export {
85
85
  V as Sheet,
86
- H as SheetClose,
87
- X as SheetContent,
86
+ F as SheetClose,
87
+ H as SheetContent,
88
88
  A as SheetDescription,
89
- w as SheetFooter,
90
- q as SheetHeader,
89
+ q as SheetFooter,
90
+ X as SheetHeader,
91
91
  z as SheetTitle,
92
- F as SheetTrigger
92
+ y as SheetTrigger
93
93
  };
94
94
  //# sourceMappingURL=sheet.js.map