@gears-frontx/ui-kit 0.3.0-alpha.1

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 (181) hide show
  1. package/LICENSE +201 -0
  2. package/NOTICE +49 -0
  3. package/README.md +75 -0
  4. package/dist/badge.d.ts +1 -0
  5. package/dist/badge.js +42 -0
  6. package/dist/badge.js.map +1 -0
  7. package/dist/button.d.ts +1 -0
  8. package/dist/button.js +73 -0
  9. package/dist/button.js.map +1 -0
  10. package/dist/card.d.ts +1 -0
  11. package/dist/card.js +54 -0
  12. package/dist/card.js.map +1 -0
  13. package/dist/checkbox.d.ts +1 -0
  14. package/dist/checkbox.js +46 -0
  15. package/dist/checkbox.js.map +1 -0
  16. package/dist/chunks/badge.ej-3-Xs4.css +1 -0
  17. package/dist/chunks/button.CKfALaMe.css +1 -0
  18. package/dist/chunks/card.B0AcyAT1.css +1 -0
  19. package/dist/chunks/checkbox.Dd6YDr20.css +1 -0
  20. package/dist/chunks/dialog.D6LS2vnG.css +1 -0
  21. package/dist/chunks/dropdown-menu.DmDZc5gB.css +1 -0
  22. package/dist/chunks/field.BNZx8HfN.css +1 -0
  23. package/dist/chunks/input.CrRQ0OAn.css +1 -0
  24. package/dist/chunks/label.jrB9zD_G.css +1 -0
  25. package/dist/chunks/radio-group.1Y6B0lXt.css +1 -0
  26. package/dist/chunks/select.BmyP2S2q.css +1 -0
  27. package/dist/chunks/separator.DdRRkJW4.css +1 -0
  28. package/dist/chunks/skeleton.BhWSzPnI.css +1 -0
  29. package/dist/chunks/switch.B_ebMSxR.css +1 -0
  30. package/dist/chunks/table.r8ppNt1W.css +1 -0
  31. package/dist/chunks/tabs.DqJE9cX3.css +1 -0
  32. package/dist/chunks/textarea.BKWvs6fD.css +1 -0
  33. package/dist/chunks/toast.DMl31Mq4.css +1 -0
  34. package/dist/chunks/tooltip.apA3VWHJ.css +1 -0
  35. package/dist/components/badge/badge.d.ts +11 -0
  36. package/dist/components/badge/badge.d.ts.map +1 -0
  37. package/dist/components/badge/public.d.ts +2 -0
  38. package/dist/components/badge/public.d.ts.map +1 -0
  39. package/dist/components/button/button.d.ts +50 -0
  40. package/dist/components/button/button.d.ts.map +1 -0
  41. package/dist/components/button/public.d.ts +2 -0
  42. package/dist/components/button/public.d.ts.map +1 -0
  43. package/dist/components/card/card.d.ts +22 -0
  44. package/dist/components/card/card.d.ts.map +1 -0
  45. package/dist/components/card/public.d.ts +2 -0
  46. package/dist/components/card/public.d.ts.map +1 -0
  47. package/dist/components/checkbox/checkbox.d.ts +6 -0
  48. package/dist/components/checkbox/checkbox.d.ts.map +1 -0
  49. package/dist/components/checkbox/public.d.ts +2 -0
  50. package/dist/components/checkbox/public.d.ts.map +1 -0
  51. package/dist/components/dialog/dialog.d.ts +58 -0
  52. package/dist/components/dialog/dialog.d.ts.map +1 -0
  53. package/dist/components/dialog/public.d.ts +2 -0
  54. package/dist/components/dialog/public.d.ts.map +1 -0
  55. package/dist/components/dropdown-menu/dropdown-menu.d.ts +70 -0
  56. package/dist/components/dropdown-menu/dropdown-menu.d.ts.map +1 -0
  57. package/dist/components/dropdown-menu/public.d.ts +2 -0
  58. package/dist/components/dropdown-menu/public.d.ts.map +1 -0
  59. package/dist/components/field/field.d.ts +18 -0
  60. package/dist/components/field/field.d.ts.map +1 -0
  61. package/dist/components/field/public.d.ts +2 -0
  62. package/dist/components/field/public.d.ts.map +1 -0
  63. package/dist/components/input/input.d.ts +6 -0
  64. package/dist/components/input/input.d.ts.map +1 -0
  65. package/dist/components/input/public.d.ts +2 -0
  66. package/dist/components/input/public.d.ts.map +1 -0
  67. package/dist/components/label/label.d.ts +4 -0
  68. package/dist/components/label/label.d.ts.map +1 -0
  69. package/dist/components/label/public.d.ts +2 -0
  70. package/dist/components/label/public.d.ts.map +1 -0
  71. package/dist/components/radio-group/public.d.ts +2 -0
  72. package/dist/components/radio-group/public.d.ts.map +1 -0
  73. package/dist/components/radio-group/radio-group.d.ts +11 -0
  74. package/dist/components/radio-group/radio-group.d.ts.map +1 -0
  75. package/dist/components/select/public.d.ts +2 -0
  76. package/dist/components/select/public.d.ts.map +1 -0
  77. package/dist/components/select/select.d.ts +61 -0
  78. package/dist/components/select/select.d.ts.map +1 -0
  79. package/dist/components/separator/public.d.ts +2 -0
  80. package/dist/components/separator/public.d.ts.map +1 -0
  81. package/dist/components/separator/separator.d.ts +6 -0
  82. package/dist/components/separator/separator.d.ts.map +1 -0
  83. package/dist/components/skeleton/public.d.ts +2 -0
  84. package/dist/components/skeleton/public.d.ts.map +1 -0
  85. package/dist/components/skeleton/skeleton.d.ts +4 -0
  86. package/dist/components/skeleton/skeleton.d.ts.map +1 -0
  87. package/dist/components/switch/public.d.ts +2 -0
  88. package/dist/components/switch/public.d.ts.map +1 -0
  89. package/dist/components/switch/switch.d.ts +11 -0
  90. package/dist/components/switch/switch.d.ts.map +1 -0
  91. package/dist/components/table/public.d.ts +2 -0
  92. package/dist/components/table/public.d.ts.map +1 -0
  93. package/dist/components/table/table.d.ts +38 -0
  94. package/dist/components/table/table.d.ts.map +1 -0
  95. package/dist/components/tabs/public.d.ts +2 -0
  96. package/dist/components/tabs/public.d.ts.map +1 -0
  97. package/dist/components/tabs/tabs.d.ts +23 -0
  98. package/dist/components/tabs/tabs.d.ts.map +1 -0
  99. package/dist/components/textarea/public.d.ts +2 -0
  100. package/dist/components/textarea/public.d.ts.map +1 -0
  101. package/dist/components/textarea/textarea.d.ts +4 -0
  102. package/dist/components/textarea/textarea.d.ts.map +1 -0
  103. package/dist/components/toast/public.d.ts +2 -0
  104. package/dist/components/toast/public.d.ts.map +1 -0
  105. package/dist/components/toast/toast.d.ts +85 -0
  106. package/dist/components/toast/toast.d.ts.map +1 -0
  107. package/dist/components/tooltip/public.d.ts +2 -0
  108. package/dist/components/tooltip/public.d.ts.map +1 -0
  109. package/dist/components/tooltip/tooltip.d.ts +41 -0
  110. package/dist/components/tooltip/tooltip.d.ts.map +1 -0
  111. package/dist/dialog.d.ts +1 -0
  112. package/dist/dialog.js +84 -0
  113. package/dist/dialog.js.map +1 -0
  114. package/dist/docs/badge.md +82 -0
  115. package/dist/docs/button.md +102 -0
  116. package/dist/docs/card.md +131 -0
  117. package/dist/docs/checkbox.md +55 -0
  118. package/dist/docs/dialog.md +124 -0
  119. package/dist/docs/dropdown-menu.md +140 -0
  120. package/dist/docs/field.md +68 -0
  121. package/dist/docs/input.md +65 -0
  122. package/dist/docs/label.md +50 -0
  123. package/dist/docs/radio-group.md +59 -0
  124. package/dist/docs/select.md +99 -0
  125. package/dist/docs/separator.md +119 -0
  126. package/dist/docs/skeleton.md +143 -0
  127. package/dist/docs/switch.md +51 -0
  128. package/dist/docs/table.md +276 -0
  129. package/dist/docs/tabs.md +124 -0
  130. package/dist/docs/textarea.md +52 -0
  131. package/dist/docs/toast.md +153 -0
  132. package/dist/docs/tooltip.md +134 -0
  133. package/dist/dropdown-menu.d.ts +1 -0
  134. package/dist/dropdown-menu.js +183 -0
  135. package/dist/dropdown-menu.js.map +1 -0
  136. package/dist/field.d.ts +1 -0
  137. package/dist/field.js +28 -0
  138. package/dist/field.js.map +1 -0
  139. package/dist/index.d.ts +48 -0
  140. package/dist/index.d.ts.map +1 -0
  141. package/dist/index.js +96 -0
  142. package/dist/index.js.map +1 -0
  143. package/dist/input.d.ts +1 -0
  144. package/dist/input.js +30 -0
  145. package/dist/input.js.map +1 -0
  146. package/dist/label.d.ts +1 -0
  147. package/dist/label.js +12 -0
  148. package/dist/label.js.map +1 -0
  149. package/dist/radio-group.d.ts +1 -0
  150. package/dist/radio-group.js +21 -0
  151. package/dist/radio-group.js.map +1 -0
  152. package/dist/select.d.ts +1 -0
  153. package/dist/select.js +175 -0
  154. package/dist/select.js.map +1 -0
  155. package/dist/separator.d.ts +1 -0
  156. package/dist/separator.js +13 -0
  157. package/dist/separator.js.map +1 -0
  158. package/dist/skeleton.d.ts +1 -0
  159. package/dist/skeleton.js +12 -0
  160. package/dist/skeleton.js.map +1 -0
  161. package/dist/switch.d.ts +1 -0
  162. package/dist/switch.js +26 -0
  163. package/dist/switch.js.map +1 -0
  164. package/dist/table.d.ts +1 -0
  165. package/dist/table.js +64 -0
  166. package/dist/table.js.map +1 -0
  167. package/dist/tabs.d.ts +1 -0
  168. package/dist/tabs.js +41 -0
  169. package/dist/tabs.js.map +1 -0
  170. package/dist/textarea.d.ts +1 -0
  171. package/dist/textarea.js +13 -0
  172. package/dist/textarea.js.map +1 -0
  173. package/dist/theme.css +485 -0
  174. package/dist/toast.d.ts +1 -0
  175. package/dist/toast.js +193 -0
  176. package/dist/toast.js.map +1 -0
  177. package/dist/tooltip.d.ts +1 -0
  178. package/dist/tooltip.js +49 -0
  179. package/dist/tooltip.js.map +1 -0
  180. package/llms.txt +148 -0
  181. package/package.json +85 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"toast.js","sources":["../src/components/toast/toast.tsx"],"sourcesContent":["import { Toast as ToastPrimitive } from '@base-ui/react/toast';\nimport { cx } from 'class-variance-authority';\n\nimport { Button } from '../button/button';\nimport styles from './toast.module.css';\n\n/*\n * Inline lucide paths (ISC) — the kit carries no icon dependency. One icon\n * per toast `type`; an unset/unrecognized type renders no icon, matching\n * the base-vega source's <ToastIcon>.\n */\nfunction CheckCircleIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"m9 12 2 2 4-4\" />\n </svg>\n );\n}\n\nfunction InfoIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <circle cx=\"12\" cy=\"12\" r=\"10\" />\n <path d=\"M12 16v-4\" />\n <path d=\"M12 8h.01\" />\n </svg>\n );\n}\n\nfunction TriangleAlertIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" />\n <path d=\"M12 9v4\" />\n <path d=\"M12 17h.01\" />\n </svg>\n );\n}\n\nfunction OctagonXIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"m15 9-6 6\" />\n <path d=\"M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z\" />\n <path d=\"m9 9 6 6\" />\n </svg>\n );\n}\n\nfunction LoaderIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.icon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M21 12a9 9 0 1 1-6.219-8.56\" />\n </svg>\n );\n}\n\nfunction CloseIcon({ className }: { className?: string }) {\n return (\n <svg\n className={cx(styles.svgIcon, className)}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <path d=\"M18 6 6 18M6 6l12 12\" />\n </svg>\n );\n}\n\nfunction ToastTypeIcon({ type }: { type?: string }) {\n switch (type) {\n case 'success':\n return <CheckCircleIcon />;\n case 'info':\n return <InfoIcon />;\n case 'warning':\n return <TriangleAlertIcon />;\n case 'error':\n return <OctagonXIcon className={styles.iconDestructive} />;\n case 'loading':\n return <LoaderIcon className={styles.iconSpin} />;\n default:\n return null;\n }\n}\n\n/*\n * One rendered toast card. Not exported — a `Toast` type prop drives the\n * icon and (via CSS `data-type`) any future type-specific styling, but the\n * kit's usage model is imperative (`toast.add({...})`, see below), not\n * composing a `<Toast>` per notification the way `Dialog`/`DropdownMenu`\n * are composed. `ToastPrimitive.Title`/`Description`/`Action` all read\n * their content from the `toast` object via context and render nothing if\n * it's unset — no children needed here.\n */\nfunction ToastCard({\n toast: item,\n closeLabel,\n}: {\n toast: ToastPrimitive.Root.ToastObject;\n closeLabel: string;\n}) {\n return (\n <ToastPrimitive.Root toast={item} className={styles.toast}>\n <ToastPrimitive.Content className={styles.content}>\n <ToastTypeIcon type={item.type} />\n <div className={styles.body}>\n <ToastPrimitive.Title className={styles.title} />\n <ToastPrimitive.Description className={styles.description} />\n </div>\n <ToastPrimitive.Action className={styles.action} render={<Button variant=\"outline\" size=\"sm\" />} />\n <ToastPrimitive.Close\n aria-label={closeLabel}\n className={styles.close}\n render={<Button variant=\"ghost\" icon={<CloseIcon />} />}\n />\n </ToastPrimitive.Content>\n </ToastPrimitive.Root>\n );\n}\n\n/* Reads the live toast list from context and renders one ToastCard each. */\nfunction ToastList({ closeLabel }: { closeLabel: string }) {\n const { toasts } = ToastPrimitive.useToastManager();\n return toasts.map((item) => <ToastCard key={item.id} toast={item} closeLabel={closeLabel} />);\n}\n\n/**\n * Shared imperative toast manager: call `toast.add({ title, description })`\n * (or `.close()`, `.update()`, `.promise()`) from anywhere in the app —\n * no hook, and no ancestor `Toaster`/`ToastProvider`, required to fire\n * one. `Toaster` renders whatever this manager holds by default.\n *\n * A module-scope singleton is a deliberate choice, not the only shape Base\n * UI's Toast offers (see `createToastManager`/`useToastManager` below): it\n * keeps sonner's own call-anywhere `toast()` ergonomics (see\n * design-notes.md for why Base UI's Toast replaced sonner) without needing\n * a component to be inside a Provider's subtree or accept a manager prop.\n *\n * Three failure modes worth knowing about a singleton, all silent: it's\n * SSR-safe (the object above holds no toast state itself, only a listener\n * registered by whichever `Toaster` mounts), but `toast.add(...)` called\n * before any `Toaster` has mounted, or from code that resolved a\n * different copy of this module (e.g. a mixed CJS/ESM require graph),\n * drops the toast with no error — there is no queue and nothing to catch.\n * And the inverse: TWO mounted `Toaster`s on this shared manager render\n * every toast twice, once per viewport (plausible in a shell + MFE setup\n * where each fragment mounts its own) — a second viewport should get its\n * own `createToastManager()` instead.\n */\nexport const toast = ToastPrimitive.createToastManager();\n\n/**\n * Reads the live toast list and the `add`/`close`/`update`/`promise`\n * bound to whichever manager the nearest `Toaster` ancestor was given\n * (the shared `toast` singleton unless overridden) — from a component\n * nested under `Toaster`, this is how you react to the toast list itself\n * (e.g. an unread-count badge) or call that same manager without\n * importing it directly. Not a way to render toast cards in place of\n * `Toaster`: the kit exports no Root/Content/Title/etc. parts to build\n * one with.\n *\n * Whether a consumer's own `@base-ui/react` shares this context depends\n * on whether the installer resolved one copy or two. `@base-ui/react` is\n * a regular dependency of this package and stays external in the build\n * (nothing is bundled but the CSS class maps), so a consumer whose own\n * range is satisfied by the same version dedupes to a single copy and\n * shares context; a consumer pinned to an incompatible version gets a\n * nested second copy, and then Base UI's Toast context — like every\n * React context — does not cross between them.\n */\nexport const useToastManager = ToastPrimitive.useToastManager;\n\n/**\n * Creates an isolated toast manager, independent of the shared `toast`\n * singleton — e.g. to scope a second, differently-positioned `Toaster` to\n * one part of the app instead of sharing the app-wide instance. Pass the\n * result as `toastManager` to `Toaster`.\n */\nexport const createToastManager = ToastPrimitive.createToastManager;\n\nexport interface ToasterProps extends ToastPrimitive.Provider.Props {\n /**\n * Where to portal the toast viewport. Defaults to <body>. Pass a themed\n * container when the theme is scoped to a subtree (data-theme on a\n * container that isn't at document root) so toasts inherit its tokens\n * and font.\n */\n container?: ToastPrimitive.Portal.Props['container'];\n /**\n * Accessible name for each toast's close (X) button — one of the two\n * strings a non-English app needs to replace (`label` below is the\n * other). @default 'Close toast'\n */\n closeLabel?: string;\n /**\n * Accessible name for the toast region landmark. Base UI puts\n * `role=\"region\" aria-label=\"Notifications\"` on the viewport; without\n * this prop a screen-reader user hears that English landmark name no\n * matter what language the app is in. @default 'Notifications'\n */\n label?: string;\n}\n\n/**\n * Mount once, wrapping the app (or at least any subtree that calls\n * `useToastManager`) — pass the app as `children`. The toast list itself\n * portals to `<body>` (or `container`) regardless of where `Toaster` sits\n * in the tree, so wrapping vs. mounting as a leaf near the root both work\n * for the common case of firing toasts via the `toast` manager above.\n *\n * Defaults `toastManager` to this module's shared singleton — see `toast`.\n */\nexport function Toaster({\n container,\n children,\n closeLabel = 'Close toast',\n // Defaulted here rather than left to Base UI's own 'Notifications', so an\n // explicit undefined can never wipe the landmark name in the merge.\n label = 'Notifications',\n toastManager = toast,\n ...props\n}: ToasterProps) {\n return (\n <ToastPrimitive.Provider toastManager={toastManager} {...props}>\n {children}\n <ToastPrimitive.Portal container={container}>\n <ToastPrimitive.Viewport aria-label={label} className={styles.viewport}>\n <ToastList closeLabel={closeLabel} />\n </ToastPrimitive.Viewport>\n </ToastPrimitive.Portal>\n </ToastPrimitive.Provider>\n );\n}\n"],"names":["CheckCircleIcon","className","jsxs","cx","styles","jsx","InfoIcon","TriangleAlertIcon","OctagonXIcon","LoaderIcon","CloseIcon","ToastTypeIcon","type","ToastCard","item","closeLabel","ToastPrimitive","Button","ToastList","toasts","toast","useToastManager","createToastManager","Toaster","container","children","label","toastManager","props"],"mappings":";;;;;;;;;;;;;;;;;;AAWA,SAASA,EAAgB,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AAA,EAAO,SAAQ,SAAQ,MAAM,gBAAAZ,EAACK,KAAU,EAAA,CAAI;AAAA,MAAA;AAAA,IAAA;AAAA,EACvD,EAAA,CACF,EAAA,CACF;AAEJ;AAGA,SAASQ,EAAU,EAAE,YAAAH,KAAsC;AACzD,QAAM,EAAE,QAAAI,EAAA,IAAWH,EAAe,gBAAA;AAClC,SAAOG,EAAO,IAAI,CAACL,MAAS,gBAAAT,EAACQ,GAAA,EAAwB,OAAOC,GAAM,YAAAC,EAAA,GAAtBD,EAAK,EAAyC,CAAE;AAC9F;AAyBO,MAAMM,IAAQJ,EAAe,mBAAA,GAqBvBK,IAAkBL,EAAe,iBAQjCM,IAAqBN,EAAe;AAkC1C,SAASO,EAAQ;AAAA,EACtB,WAAAC;AAAA,EACA,UAAAC;AAAA,EACA,YAAAV,IAAa;AAAA;AAAA;AAAA,EAGb,OAAAW,IAAQ;AAAA,EACR,cAAAC,IAAeP;AAAA,EACf,GAAGQ;AACL,GAAiB;AACf,2BACGZ,EAAe,UAAf,EAAwB,cAAAW,GAA6B,GAAGC,GACtD,UAAA;AAAA,IAAAH;AAAA,sBACAT,EAAe,QAAf,EAAsB,WAAAQ,GACrB,UAAA,gBAAAnB,EAACW,EAAe,UAAf,EAAwB,cAAYU,GAAO,WAAWtB,EAAO,UAC5D,4BAACc,GAAA,EAAU,YAAAH,GAAwB,GACrC,EAAA,CACF;AAAA,EAAA,GACF;AAEJ;"}
@@ -0,0 +1 @@
1
+ export * from './components/tooltip/public.js'
@@ -0,0 +1,49 @@
1
+ import { jsx as r, jsxs as d } from "react/jsx-runtime";
2
+ import { Tooltip as o } from "@base-ui/react/tooltip";
3
+ import { cx as T } from "class-variance-authority";
4
+ import './chunks/tooltip.apA3VWHJ.css';const f = "_positioner_1kvzd_6", v = "_popup_1kvzd_18", w = "_arrow_1kvzd_113", i = {
5
+ positioner: f,
6
+ popup: v,
7
+ arrow: w
8
+ }, h = o.Root, k = o.Provider;
9
+ function z({ className: t, ...p }) {
10
+ return /* @__PURE__ */ r(o.Trigger, { className: t, ...p });
11
+ }
12
+ function N({
13
+ className: t,
14
+ children: p,
15
+ container: n,
16
+ side: s = "top",
17
+ sideOffset: e = 4,
18
+ align: c = "center",
19
+ alignOffset: l = 0,
20
+ positionMethod: a,
21
+ collisionBoundary: m,
22
+ collisionPadding: u,
23
+ ..._
24
+ }) {
25
+ return /* @__PURE__ */ r(o.Portal, { container: n, children: /* @__PURE__ */ r(
26
+ o.Positioner,
27
+ {
28
+ side: s,
29
+ sideOffset: e,
30
+ align: c,
31
+ alignOffset: l,
32
+ positionMethod: a,
33
+ collisionBoundary: m,
34
+ collisionPadding: u,
35
+ className: i.positioner,
36
+ children: /* @__PURE__ */ d(o.Popup, { className: T(i.popup, t), ..._, children: [
37
+ p,
38
+ /* @__PURE__ */ r(o.Arrow, { className: i.arrow })
39
+ ] })
40
+ }
41
+ ) });
42
+ }
43
+ export {
44
+ h as Tooltip,
45
+ N as TooltipContent,
46
+ k as TooltipProvider,
47
+ z as TooltipTrigger
48
+ };
49
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tooltip.js","sources":["../src/components/tooltip/tooltip.tsx"],"sourcesContent":["import { Tooltip as TooltipPrimitive } from '@base-ui/react/tooltip';\nimport { cx } from 'class-variance-authority';\n\nimport styles from './tooltip.module.css';\n\nexport const Tooltip = TooltipPrimitive.Root;\n/**\n * The root is a Base UI pass-through, but its props type is still exported:\n * a consumer writing a typed wrapper imports it from this kit — Base UI is\n * this package's dependency, not necessarily theirs. Same idiom as\n * TooltipProviderProps below.\n */\nexport type TooltipProps = TooltipPrimitive.Root.Props;\n\n/**\n * Optional. Mount once near the app root to share open/close delay and\n * grouping across many tooltips (hover one, and adjacent ones within\n * `timeout` reopen instantly — see Base UI Tooltip.Provider). Without it,\n * each `Tooltip` behaves standalone with Base UI's own per-trigger default\n * (600ms open delay, no grouping).\n *\n * Deliberately does not default `delay` to `0` the way base-vega's own\n * wrapper does: that default is coherent in a model where the Provider is\n * mounted once, globally, at the app root, but this kit ships it as\n * optional — silently defaulting to instant-open would mean identical\n * trigger markup opens at 600ms or 0ms depending on an invisible ancestor.\n * Pass `delay` explicitly (here, or per `TooltipTrigger`) to opt into\n * faster grouped tooltips.\n */\nexport const TooltipProvider = TooltipPrimitive.Provider;\nexport type TooltipProviderProps = TooltipPrimitive.Provider.Props;\n\nexport interface TooltipTriggerProps extends Omit<TooltipPrimitive.Trigger.Props, 'className'> {\n className?: string;\n}\n\nexport function TooltipTrigger({ className, ...props }: TooltipTriggerProps) {\n return <TooltipPrimitive.Trigger className={className} {...props} />;\n}\n\nexport interface TooltipContentProps\n extends Omit<TooltipPrimitive.Popup.Props, 'className'>,\n Pick<\n TooltipPrimitive.Positioner.Props,\n // positionMethod/collision*: see dropdown-menu.tsx — the escape hatch\n // for anchors inside a transform/filter container.\n | 'align'\n | 'alignOffset'\n | 'side'\n | 'sideOffset'\n | 'positionMethod'\n | 'collisionBoundary'\n | 'collisionPadding'\n > {\n className?: string;\n /**\n * Where to portal the popup. Defaults to <body>. Pass a themed container\n * when the theme is scoped to a subtree (data-theme on a container that\n * isn't at document root) so the popup inherits its tokens and font.\n */\n container?: TooltipPrimitive.Portal.Props['container'];\n}\n\nexport function TooltipContent({\n className,\n children,\n container,\n side = 'top',\n sideOffset = 4,\n align = 'center',\n alignOffset = 0,\n positionMethod,\n collisionBoundary,\n collisionPadding,\n ...props\n}: TooltipContentProps) {\n return (\n <TooltipPrimitive.Portal container={container}>\n <TooltipPrimitive.Positioner\n side={side}\n sideOffset={sideOffset}\n align={align}\n alignOffset={alignOffset}\n positionMethod={positionMethod}\n collisionBoundary={collisionBoundary}\n collisionPadding={collisionPadding}\n className={styles.positioner}\n >\n <TooltipPrimitive.Popup className={cx(styles.popup, className)} {...props}>\n {children}\n <TooltipPrimitive.Arrow className={styles.arrow} />\n </TooltipPrimitive.Popup>\n </TooltipPrimitive.Positioner>\n </TooltipPrimitive.Portal>\n );\n}\n"],"names":["Tooltip","TooltipPrimitive","TooltipProvider","TooltipTrigger","className","props","TooltipContent","children","container","side","sideOffset","align","alignOffset","positionMethod","collisionBoundary","collisionPadding","jsx","styles","jsxs","cx"],"mappings":";;;;;;;GAKaA,IAAUC,EAAiB,MAwB3BC,IAAkBD,EAAiB;AAOzC,SAASE,EAAe,EAAE,WAAAC,GAAW,GAAGC,KAA8B;AAC3E,2BAAQJ,EAAiB,SAAjB,EAAyB,WAAAG,GAAuB,GAAGC,GAAO;AACpE;AAyBO,SAASC,EAAe;AAAA,EAC7B,WAAAF;AAAA,EACA,UAAAG;AAAA,EACA,WAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,YAAAC,IAAa;AAAA,EACb,OAAAC,IAAQ;AAAA,EACR,aAAAC,IAAc;AAAA,EACd,gBAAAC;AAAA,EACA,mBAAAC;AAAA,EACA,kBAAAC;AAAA,EACA,GAAGV;AACL,GAAwB;AACtB,SACE,gBAAAW,EAACf,EAAiB,QAAjB,EAAwB,WAAAO,GACvB,UAAA,gBAAAQ;AAAA,IAACf,EAAiB;AAAA,IAAjB;AAAA,MACC,MAAAQ;AAAA,MACA,YAAAC;AAAA,MACA,OAAAC;AAAA,MACA,aAAAC;AAAA,MACA,gBAAAC;AAAA,MACA,mBAAAC;AAAA,MACA,kBAAAC;AAAA,MACA,WAAWE,EAAO;AAAA,MAElB,UAAA,gBAAAC,EAACjB,EAAiB,OAAjB,EAAuB,WAAWkB,EAAGF,EAAO,OAAOb,CAAS,GAAI,GAAGC,GACjE,UAAA;AAAA,QAAAE;AAAA,0BACAN,EAAiB,OAAjB,EAAuB,WAAWgB,EAAO,MAAA,CAAO;AAAA,MAAA,EAAA,CACnD;AAAA,IAAA;AAAA,EAAA,GAEJ;AAEJ;"}
package/llms.txt ADDED
@@ -0,0 +1,148 @@
1
+ # @gears-frontx/ui-kit
2
+
3
+ > Standard React component base for FrontX templates. Behavior comes from
4
+ > Base UI primitives, styling is compiled CSS on semantic design tokens,
5
+ > variants via cva-driven props — `variant` for the paint/kind axis and
6
+ > `size` for the scale one, plus the occasional extra axis where a component
7
+ > genuinely has one (Badge's `shape`, Table's `density`). Consumers need no
8
+ > CSS framework or build plugins.
9
+
10
+ Rules for generated code:
11
+
12
+ - Import the design tokens exactly once at the app entry:
13
+ `import '@gears-frontx/ui-kit/theme.css';`
14
+ - Import components from the package root: `import { Button } from '@gears-frontx/ui-kit';`
15
+ Each component ships its own CSS, pulled in automatically by importing the
16
+ component — there is no separate stylesheet import for component styles.
17
+ A component subpath also works (`import { Button } from '@gears-frontx/ui-kit/button';`)
18
+ and is the one to reach for on an esbuild-based build specifically: esbuild
19
+ tree-shakes unused components' JS from a root import already, but only
20
+ drops their CSS from a subpath import — Vite and webpack drop both either
21
+ way, so this only matters when esbuild is the actual bundler running.
22
+ - The kit paints the page itself from its tokens and sets `color-scheme`: with
23
+ no `data-theme` attribute anywhere, `prefers-color-scheme: dark` alone
24
+ yields a correct, legible dark page (background, text, and UA-owned
25
+ surfaces like the scrollbar) out of the box — no setup step required for
26
+ that case.
27
+ - Fonts come from the kit's own tokens: `--font-sans` (Inter, then system
28
+ fallbacks) is set on the page by theme.css, `--font-mono` (JetBrains
29
+ Mono) is for code-like text. The kit ships no font FILES — load Inter/
30
+ JetBrains Mono in the app for the true Studio look (the fallbacks stay
31
+ legible without them), or override the tokens to rebrand.
32
+ - Font overrides AND, for explicit control instead of following the OS
33
+ preference, `data-theme` go on `<html>`/`<body>`, not on an inner
34
+ container: overlay components (Select, Dialog, DropdownMenu, Tooltip,
35
+ Toaster) portal their popup to `<body>` and inherit theme tokens and
36
+ font from there. A
37
+ `data-theme` subtree (anywhere, not just `<html>`/`<body>`) paints its own
38
+ surface, not just its descendants' tokens, so it can be nested inside a
39
+ page carrying the opposite theme. If a subtree must carry its own theme,
40
+ pass that element as `container` to `SelectContent` / `DialogContent` /
41
+ `DropdownMenuContent` / `TooltipContent` / `Toaster`.
42
+ - Brand/appearance changes go through theme tokens (CSS variables in
43
+ `theme.css`, light/dark via `data-theme`), never through inline styles or
44
+ overriding kit class names.
45
+ - Rounding is a scale derived from `--radius` (`--radius-xs|sm|md|lg|xl`);
46
+ override `--radius` alone and every component follows.
47
+ - Page typography uses the Studio type ramp tokens:
48
+ `--text-<role>-size|line-height|weight|tracking` for roles
49
+ display|heading-1|heading-2|body|label|meta|mono (e.g. a page title is
50
+ `font-size: var(--text-heading-1-size)` etc.; medium-weight body text is
51
+ the body role at `font-weight: 500`). Use the ramp for template text
52
+ instead of inventing sizes — kit components already sit on it.
53
+ - Per-component docs below list the kit-level props; everything else is the
54
+ underlying native element's props.
55
+
56
+ ## Components
57
+
58
+ - [Badge](dist/docs/badge.md): status label, a colored dot + matching
59
+ caption; variants success|warning|info|danger|muted (semantic states ONLY
60
+ — pick by meaning, never by color; neutral/count/category = muted), shapes
61
+ pill|dot (pill adds a soft fill; dot is the bare pair for dense/inline
62
+ spots); no Base UI primitive; `render` (e.g. `<a>`) makes it a clickable
63
+ tag — hover feedback only appears once it is.
64
+ - [Button](dist/docs/button.md): action button; variants
65
+ default|destructive|outline|secondary|ghost|link, sizes default|sm|lg;
66
+ icons go in the `icon` slot prop, NEVER in children — `icon` with no
67
+ children makes a square icon-only button (always pass `aria-label`
68
+ then); `loading` spins, disables, and keeps the width and accessible
69
+ name; render prop for button-semantic actions over a real anchor (not
70
+ a link substitute).
71
+ - [Card](dist/docs/card.md): bounded content surface (Card/CardHeader/
72
+ CardTitle/CardDescription/CardAction/CardContent/CardFooter); header
73
+ becomes a two-column/two-row grid automatically when it contains a
74
+ CardAction/CardDescription; sizes default|sm.
75
+ - [Checkbox](dist/docs/checkbox.md): on/off tick box for independent
76
+ options; `checked`/`onCheckedChange`; nest inside Label for one click
77
+ target.
78
+ - [Dialog](dist/docs/dialog.md): modal overlay for a focused task or
79
+ confirmation (Dialog/DialogTrigger/DialogContent/DialogHeader/
80
+ DialogFooter/DialogTitle/DialogDescription/DialogClose); traps focus,
81
+ closes on Escape/outside click; `DialogContent` takes `container` and
82
+ `showCloseButton`.
83
+ - [DropdownMenu](dist/docs/dropdown-menu.md): actions/options anchored to
84
+ a trigger (DropdownMenu/DropdownMenuTrigger/DropdownMenuContent/
85
+ DropdownMenuItem/DropdownMenuCheckboxItem/DropdownMenuRadioGroup+
86
+ DropdownMenuRadioItem/DropdownMenuSeparator/DropdownMenuShortcut/
87
+ DropdownMenuSub+DropdownMenuSubTrigger+DropdownMenuSubContent); item
88
+ variants default|destructive; `DropdownMenuContent` takes `container`.
89
+ - [Field](dist/docs/field.md): labelled form field composition
90
+ (Field/FieldLabel/FieldDescription/FieldError); wires ids, htmlFor,
91
+ aria-describedby, and validation display automatically — the default
92
+ way to build forms.
93
+ - [Input](dist/docs/input.md): single-line text field; `onValueChange`
94
+ for the string value, `aria-invalid` for the error state;
95
+ `type="search"` renders the leading magnifier and announces as a
96
+ searchbox — no extra prop; wires into Field automatically.
97
+ - [Label](dist/docs/label.md): caption for a form control; native
98
+ `<label>` props; associate via `htmlFor` or by nesting the control.
99
+ - [RadioGroup](dist/docs/radio-group.md): mutually exclusive options
100
+ (RadioGroup + RadioGroupItem); `value`/`onValueChange` on the group;
101
+ arrow-key navigation built in.
102
+ - [Select](dist/docs/select.md): dropdown picking one value from a
103
+ list (Select/SelectTrigger/SelectValue/SelectContent/SelectGroup/
104
+ SelectItem); trigger sizes default|sm, trigger variants default|filter
105
+ (filter = compact toolbar filter chip, label stays muted); keyboard
106
+ and typeahead built in.
107
+ - [Separator](dist/docs/separator.md): thin visual divider between content
108
+ sections; orientation horizontal|vertical (default horizontal); no
109
+ `decorative` prop — pass `aria-hidden="true"` for a purely visual
110
+ divider; not for use inside DropdownMenu/Select popups, which have their
111
+ own separator styling; no portal.
112
+ - [Skeleton](dist/docs/skeleton.md): pulsing placeholder shape shown while
113
+ content loads; no Base UI primitive, no variants — size it yourself via
114
+ `className`/`style`; no ARIA of its own, put `role="status"`/`aria-busy`
115
+ on the surrounding container; pulse animation is removed under
116
+ `prefers-reduced-motion: reduce`; no portal.
117
+ - [Switch](dist/docs/switch.md): immediate on/off toggle;
118
+ `checked`/`onCheckedChange`, sizes default|sm; use checkbox for
119
+ submit-time options.
120
+ - [Table](dist/docs/table.md): styled native table markup
121
+ (Table/TableHeader/TableBody/TableFooter/TableRow/TableHead/TableCell/
122
+ TableCaption); no Base UI primitive, no sorting/filtering/pagination —
123
+ primitive markup only; `density` compact|default on Table; row-state
124
+ rings via `data-state="selected|stale|restricted"` on TableRow (your
125
+ logic sets the attribute, the kit paints it); Table's own wrapper
126
+ scrolls horizontally and is keyboard-reachable (`tabIndex`); size a
127
+ column via `className`/`style` width on TableHead/TableCell; no portal.
128
+ - [Tabs](dist/docs/tabs.md): switch between panels sharing the same
129
+ space (Tabs/TabsList/TabsTrigger/TabsContent); list variants
130
+ default|line; orientation horizontal|vertical (default horizontal);
131
+ inactive panels unmount unless `keepMounted`; no portal.
132
+ - [Textarea](dist/docs/textarea.md): multi-line text field; native
133
+ `<textarea>` props; grows with content; `aria-invalid` for the error
134
+ state.
135
+ - [Toast](dist/docs/toast.md): brief transient notification stacked
136
+ bottom-right; fired imperatively (`toast.add({...})`), not composed as
137
+ JSX; mount `Toaster` once; type-driven icon
138
+ success|info|warning|error|loading, optional action button; `Toaster`
139
+ takes `container`.
140
+ - [Tooltip](dist/docs/tooltip.md): visual-only hint on hover/focus of a
141
+ trigger (Tooltip/TooltipTrigger/TooltipContent); optional
142
+ `TooltipProvider` shares delay/grouping across many tooltips;
143
+ `TooltipContent` takes `container`; disabled on touch devices — never
144
+ the only carrier of essential information.
145
+
146
+ ## Optional
147
+
148
+ - [README](README.md): installation, setup, package layout.
package/package.json ADDED
@@ -0,0 +1,85 @@
1
+ {
2
+ "name": "@gears-frontx/ui-kit",
3
+ "version": "0.3.0-alpha.1",
4
+ "description": "Standard React component base for FrontX templates - Base UI behavior, CSS Modules styling on semantic tokens, CVA variants",
5
+ "type": "module",
6
+ "types": "./dist/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./dist/index.d.ts",
10
+ "import": "./dist/index.js"
11
+ },
12
+ "./components/*": null,
13
+ "./__test-utils__/*": null,
14
+ "./chunks/*": null,
15
+ "./package.json": "./package.json",
16
+ "./*": {
17
+ "types": "./dist/*.d.ts",
18
+ "import": "./dist/*.js"
19
+ },
20
+ "./theme.css": "./dist/theme.css"
21
+ },
22
+ "files": [
23
+ "dist",
24
+ "llms.txt",
25
+ "README.md",
26
+ "LICENSE",
27
+ "NOTICE"
28
+ ],
29
+ "scripts": {
30
+ "build": "vite build",
31
+ "type-check": "tsc --noEmit && npm run type-check:tools",
32
+ "type-check:tools": "tsc -p tsconfig.tools.json",
33
+ "type-check:test": "tsc -p tsconfig.test.json",
34
+ "test": "npm run test:unit",
35
+ "test:unit": "vitest --run --passWithNoTests=false",
36
+ "test:unit:watch": "vitest --watch",
37
+ "test:consumer": "bash scripts/verify-consumer.sh",
38
+ "type-check:demo": "tsc -p demo/tsconfig.json",
39
+ "predemo": "npm run build",
40
+ "demo": "vite demo"
41
+ },
42
+ "dependencies": {
43
+ "@base-ui/react": "1.6.0",
44
+ "class-variance-authority": "0.7.1"
45
+ },
46
+ "peerDependencies": {
47
+ "react": "^19.0.0",
48
+ "react-dom": "^19.0.0"
49
+ },
50
+ "devDependencies": {
51
+ "@testing-library/react": "16.3.2",
52
+ "@types/node": "^25.5.0",
53
+ "@types/react": "19.2.17",
54
+ "@types/react-dom": "19.2.3",
55
+ "@vitejs/plugin-react": "4.3.4",
56
+ "@vitest/coverage-v8": "4.1.4",
57
+ "esbuild": "0.25.12",
58
+ "jsdom": "26.1.0",
59
+ "react": "19.2.8",
60
+ "react-dom": "19.2.8",
61
+ "rollup-plugin-node-externals": "^9.0.1",
62
+ "typescript": "^5.4.2",
63
+ "vite": "^6.4.3",
64
+ "vite-plugin-dts": "^4.5.4",
65
+ "vite-plugin-lib-inject-css": "^2.2.2",
66
+ "vitest": "4.1.4"
67
+ },
68
+ "sideEffects": [
69
+ "**/*.css"
70
+ ],
71
+ "publishConfig": {
72
+ "access": "public"
73
+ },
74
+ "keywords": [
75
+ "frontx",
76
+ "ui",
77
+ "components",
78
+ "react",
79
+ "base-ui",
80
+ "css-modules",
81
+ "design-system"
82
+ ],
83
+ "author": "Cyber Fabric",
84
+ "license": "Apache-2.0"
85
+ }