@gravitee/graphene-core 0.0.0-graphene-89.5c7c693

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 (294) hide show
  1. package/USAGE_GUIDE.md +252 -0
  2. package/dist/__stories__/fixtures/apim/api-catalog.fixture.d.ts +12 -0
  3. package/dist/__stories__/fixtures/apim/api-catalog.fixture.d.ts.map +1 -0
  4. package/dist/__stories__/fixtures/apim/page-layout-labels.fixture.d.ts +12 -0
  5. package/dist/__stories__/fixtures/apim/page-layout-labels.fixture.d.ts.map +1 -0
  6. package/dist/__stories__/fixtures/apim/plans.fixture.d.ts +18 -0
  7. package/dist/__stories__/fixtures/apim/plans.fixture.d.ts.map +1 -0
  8. package/dist/__stories__/fixtures/apis.fixture.d.ts +36 -0
  9. package/dist/__stories__/fixtures/apis.fixture.d.ts.map +1 -0
  10. package/dist/__stories__/fixtures/applications.fixture.d.ts +19 -0
  11. package/dist/__stories__/fixtures/applications.fixture.d.ts.map +1 -0
  12. package/dist/__stories__/fixtures/environments.fixture.d.ts +16 -0
  13. package/dist/__stories__/fixtures/environments.fixture.d.ts.map +1 -0
  14. package/dist/__stories__/fixtures/index.d.ts +13 -0
  15. package/dist/__stories__/fixtures/index.d.ts.map +1 -0
  16. package/dist/__stories__/fixtures/navigation.fixture.d.ts +18 -0
  17. package/dist/__stories__/fixtures/navigation.fixture.d.ts.map +1 -0
  18. package/dist/__stories__/fixtures/pagination.fixture.d.ts +12 -0
  19. package/dist/__stories__/fixtures/pagination.fixture.d.ts.map +1 -0
  20. package/dist/__stories__/fixtures/shell/app-switcher.fixture.d.ts +4 -0
  21. package/dist/__stories__/fixtures/shell/app-switcher.fixture.d.ts.map +1 -0
  22. package/dist/__stories__/fixtures/shell/environment-picker.fixture.d.ts +6 -0
  23. package/dist/__stories__/fixtures/shell/environment-picker.fixture.d.ts.map +1 -0
  24. package/dist/__stories__/fixtures/user.fixture.d.ts +5 -0
  25. package/dist/__stories__/fixtures/user.fixture.d.ts.map +1 -0
  26. package/dist/__stories__/fixtures/users.fixture.d.ts +3 -0
  27. package/dist/__stories__/fixtures/users.fixture.d.ts.map +1 -0
  28. package/dist/__stories__/helpers/storybook-components.d.ts +12 -0
  29. package/dist/__stories__/helpers/storybook-components.d.ts.map +1 -0
  30. package/dist/base/Accordion/Accordion.d.ts +8 -0
  31. package/dist/base/Accordion/Accordion.d.ts.map +1 -0
  32. package/dist/base/Accordion/index.d.ts +2 -0
  33. package/dist/base/Accordion/index.d.ts.map +1 -0
  34. package/dist/base/Alert/Alert.d.ts +12 -0
  35. package/dist/base/Alert/Alert.d.ts.map +1 -0
  36. package/dist/base/Alert/index.d.ts +3 -0
  37. package/dist/base/Alert/index.d.ts.map +1 -0
  38. package/dist/base/Avatar/Avatar.d.ts +12 -0
  39. package/dist/base/Avatar/Avatar.d.ts.map +1 -0
  40. package/dist/base/Avatar/index.d.ts +2 -0
  41. package/dist/base/Avatar/index.d.ts.map +1 -0
  42. package/dist/base/Badge/Badge.d.ts +10 -0
  43. package/dist/base/Badge/Badge.d.ts.map +1 -0
  44. package/dist/base/Badge/index.d.ts +2 -0
  45. package/dist/base/Badge/index.d.ts.map +1 -0
  46. package/dist/base/Breadcrumb/Breadcrumb.d.ts +12 -0
  47. package/dist/base/Breadcrumb/Breadcrumb.d.ts.map +1 -0
  48. package/dist/base/Breadcrumb/index.d.ts +2 -0
  49. package/dist/base/Breadcrumb/index.d.ts.map +1 -0
  50. package/dist/base/Button/Button.d.ts +12 -0
  51. package/dist/base/Button/Button.d.ts.map +1 -0
  52. package/dist/base/Button/index.d.ts +3 -0
  53. package/dist/base/Button/index.d.ts.map +1 -0
  54. package/dist/base/Calendar/Calendar.d.ts +9 -0
  55. package/dist/base/Calendar/Calendar.d.ts.map +1 -0
  56. package/dist/base/Calendar/index.d.ts +2 -0
  57. package/dist/base/Calendar/index.d.ts.map +1 -0
  58. package/dist/base/Card/Card.d.ts +12 -0
  59. package/dist/base/Card/Card.d.ts.map +1 -0
  60. package/dist/base/Card/index.d.ts +2 -0
  61. package/dist/base/Card/index.d.ts.map +1 -0
  62. package/dist/base/Checkbox/Checkbox.d.ts +5 -0
  63. package/dist/base/Checkbox/Checkbox.d.ts.map +1 -0
  64. package/dist/base/Checkbox/index.d.ts +2 -0
  65. package/dist/base/Checkbox/index.d.ts.map +1 -0
  66. package/dist/base/Collapsible/Collapsible.d.ts +7 -0
  67. package/dist/base/Collapsible/Collapsible.d.ts.map +1 -0
  68. package/dist/base/Collapsible/index.d.ts +2 -0
  69. package/dist/base/Collapsible/index.d.ts.map +1 -0
  70. package/dist/base/Command/Command.d.ts +19 -0
  71. package/dist/base/Command/Command.d.ts.map +1 -0
  72. package/dist/base/Command/index.d.ts +2 -0
  73. package/dist/base/Command/index.d.ts.map +1 -0
  74. package/dist/base/Dialog/Dialog.d.ts +18 -0
  75. package/dist/base/Dialog/Dialog.d.ts.map +1 -0
  76. package/dist/base/Dialog/index.d.ts +2 -0
  77. package/dist/base/Dialog/index.d.ts.map +1 -0
  78. package/dist/base/Drawer/Drawer.d.ts +14 -0
  79. package/dist/base/Drawer/Drawer.d.ts.map +1 -0
  80. package/dist/base/Drawer/index.d.ts +2 -0
  81. package/dist/base/Drawer/index.d.ts.map +1 -0
  82. package/dist/base/DropdownMenu/DropdownMenu.d.ts +30 -0
  83. package/dist/base/DropdownMenu/DropdownMenu.d.ts.map +1 -0
  84. package/dist/base/DropdownMenu/index.d.ts +2 -0
  85. package/dist/base/DropdownMenu/index.d.ts.map +1 -0
  86. package/dist/base/Empty/Empty.d.ts +12 -0
  87. package/dist/base/Empty/Empty.d.ts.map +1 -0
  88. package/dist/base/Empty/index.d.ts +2 -0
  89. package/dist/base/Empty/index.d.ts.map +1 -0
  90. package/dist/base/Field/Field.d.ts +25 -0
  91. package/dist/base/Field/Field.d.ts.map +1 -0
  92. package/dist/base/Field/index.d.ts +2 -0
  93. package/dist/base/Field/index.d.ts.map +1 -0
  94. package/dist/base/HoverCard/HoverCard.d.ts +10 -0
  95. package/dist/base/HoverCard/HoverCard.d.ts.map +1 -0
  96. package/dist/base/HoverCard/index.d.ts +2 -0
  97. package/dist/base/HoverCard/index.d.ts.map +1 -0
  98. package/dist/base/Input/Input.d.ts +4 -0
  99. package/dist/base/Input/Input.d.ts.map +1 -0
  100. package/dist/base/Input/index.d.ts +2 -0
  101. package/dist/base/Input/index.d.ts.map +1 -0
  102. package/dist/base/InputGroup/InputGroup.d.ts +17 -0
  103. package/dist/base/InputGroup/InputGroup.d.ts.map +1 -0
  104. package/dist/base/InputGroup/index.d.ts +2 -0
  105. package/dist/base/InputGroup/index.d.ts.map +1 -0
  106. package/dist/base/Item/Item.d.ts +24 -0
  107. package/dist/base/Item/Item.d.ts.map +1 -0
  108. package/dist/base/Item/index.d.ts +2 -0
  109. package/dist/base/Item/index.d.ts.map +1 -0
  110. package/dist/base/Kbd/Kbd.d.ts +4 -0
  111. package/dist/base/Kbd/Kbd.d.ts.map +1 -0
  112. package/dist/base/Kbd/index.d.ts +2 -0
  113. package/dist/base/Kbd/index.d.ts.map +1 -0
  114. package/dist/base/Label/Label.d.ts +5 -0
  115. package/dist/base/Label/Label.d.ts.map +1 -0
  116. package/dist/base/Label/index.d.ts +2 -0
  117. package/dist/base/Label/index.d.ts.map +1 -0
  118. package/dist/base/Pagination/Pagination.d.ts +18 -0
  119. package/dist/base/Pagination/Pagination.d.ts.map +1 -0
  120. package/dist/base/Pagination/index.d.ts +2 -0
  121. package/dist/base/Pagination/index.d.ts.map +1 -0
  122. package/dist/base/Popover/Popover.d.ts +11 -0
  123. package/dist/base/Popover/Popover.d.ts.map +1 -0
  124. package/dist/base/Popover/index.d.ts +2 -0
  125. package/dist/base/Popover/index.d.ts.map +1 -0
  126. package/dist/base/RadioGroup/RadioGroup.d.ts +6 -0
  127. package/dist/base/RadioGroup/RadioGroup.d.ts.map +1 -0
  128. package/dist/base/RadioGroup/index.d.ts +2 -0
  129. package/dist/base/RadioGroup/index.d.ts.map +1 -0
  130. package/dist/base/Resizable/Resizable.d.ts +8 -0
  131. package/dist/base/Resizable/Resizable.d.ts.map +1 -0
  132. package/dist/base/Resizable/index.d.ts +2 -0
  133. package/dist/base/Resizable/index.d.ts.map +1 -0
  134. package/dist/base/ScrollArea/ScrollArea.d.ts +6 -0
  135. package/dist/base/ScrollArea/ScrollArea.d.ts.map +1 -0
  136. package/dist/base/ScrollArea/index.d.ts +2 -0
  137. package/dist/base/ScrollArea/index.d.ts.map +1 -0
  138. package/dist/base/Select/Select.d.ts +16 -0
  139. package/dist/base/Select/Select.d.ts.map +1 -0
  140. package/dist/base/Select/index.d.ts +2 -0
  141. package/dist/base/Select/index.d.ts.map +1 -0
  142. package/dist/base/Separator/Separator.d.ts +5 -0
  143. package/dist/base/Separator/Separator.d.ts.map +1 -0
  144. package/dist/base/Separator/index.d.ts +2 -0
  145. package/dist/base/Separator/index.d.ts.map +1 -0
  146. package/dist/base/Sheet/Sheet.d.ts +15 -0
  147. package/dist/base/Sheet/Sheet.d.ts.map +1 -0
  148. package/dist/base/Sheet/index.d.ts +2 -0
  149. package/dist/base/Sheet/index.d.ts.map +1 -0
  150. package/dist/base/Sidebar/Sidebar.d.ts +70 -0
  151. package/dist/base/Sidebar/Sidebar.d.ts.map +1 -0
  152. package/dist/base/Sidebar/index.d.ts +2 -0
  153. package/dist/base/Sidebar/index.d.ts.map +1 -0
  154. package/dist/base/Skeleton/Skeleton.d.ts +4 -0
  155. package/dist/base/Skeleton/Skeleton.d.ts.map +1 -0
  156. package/dist/base/Skeleton/index.d.ts +2 -0
  157. package/dist/base/Skeleton/index.d.ts.map +1 -0
  158. package/dist/base/Sonner/Sonner.d.ts +4 -0
  159. package/dist/base/Sonner/Sonner.d.ts.map +1 -0
  160. package/dist/base/Sonner/index.d.ts +4 -0
  161. package/dist/base/Sonner/index.d.ts.map +1 -0
  162. package/dist/base/Spinner/Spinner.d.ts +3 -0
  163. package/dist/base/Spinner/Spinner.d.ts.map +1 -0
  164. package/dist/base/Spinner/index.d.ts +2 -0
  165. package/dist/base/Spinner/index.d.ts.map +1 -0
  166. package/dist/base/Switch/Switch.d.ts +7 -0
  167. package/dist/base/Switch/Switch.d.ts.map +1 -0
  168. package/dist/base/Switch/index.d.ts +2 -0
  169. package/dist/base/Switch/index.d.ts.map +1 -0
  170. package/dist/base/Table/Table.d.ts +11 -0
  171. package/dist/base/Table/Table.d.ts.map +1 -0
  172. package/dist/base/Table/index.d.ts +2 -0
  173. package/dist/base/Table/index.d.ts.map +1 -0
  174. package/dist/base/Textarea/Textarea.d.ts +4 -0
  175. package/dist/base/Textarea/Textarea.d.ts.map +1 -0
  176. package/dist/base/Textarea/index.d.ts +2 -0
  177. package/dist/base/Textarea/index.d.ts.map +1 -0
  178. package/dist/base/Toggle/Toggle.d.ts +10 -0
  179. package/dist/base/Toggle/Toggle.d.ts.map +1 -0
  180. package/dist/base/Toggle/index.d.ts +2 -0
  181. package/dist/base/Toggle/index.d.ts.map +1 -0
  182. package/dist/base/ToggleGroup/ToggleGroup.d.ts +11 -0
  183. package/dist/base/ToggleGroup/ToggleGroup.d.ts.map +1 -0
  184. package/dist/base/ToggleGroup/index.d.ts +2 -0
  185. package/dist/base/ToggleGroup/index.d.ts.map +1 -0
  186. package/dist/base/Tooltip/Tooltip.d.ts +8 -0
  187. package/dist/base/Tooltip/Tooltip.d.ts.map +1 -0
  188. package/dist/base/Tooltip/index.d.ts +2 -0
  189. package/dist/base/Tooltip/index.d.ts.map +1 -0
  190. package/dist/composed/AppLayout/AppLayout.d.ts +42 -0
  191. package/dist/composed/AppLayout/AppLayout.d.ts.map +1 -0
  192. package/dist/composed/AppLayout/index.d.ts +3 -0
  193. package/dist/composed/AppLayout/index.d.ts.map +1 -0
  194. package/dist/composed/AppSidebar/AppSidebar.d.ts +27 -0
  195. package/dist/composed/AppSidebar/AppSidebar.d.ts.map +1 -0
  196. package/dist/composed/AppSidebar/ContextSidebar.d.ts +20 -0
  197. package/dist/composed/AppSidebar/ContextSidebar.d.ts.map +1 -0
  198. package/dist/composed/AppSidebar/ContextToggleButton.d.ts +12 -0
  199. package/dist/composed/AppSidebar/ContextToggleButton.d.ts.map +1 -0
  200. package/dist/composed/AppSidebar/SidebarNavigation.d.ts +13 -0
  201. package/dist/composed/AppSidebar/SidebarNavigation.d.ts.map +1 -0
  202. package/dist/composed/AppSidebar/index.d.ts +10 -0
  203. package/dist/composed/AppSidebar/index.d.ts.map +1 -0
  204. package/dist/composed/AppSidebar/types.d.ts +12 -0
  205. package/dist/composed/AppSidebar/types.d.ts.map +1 -0
  206. package/dist/composed/AppSidebar/use-hover-expand.d.ts +18 -0
  207. package/dist/composed/AppSidebar/use-hover-expand.d.ts.map +1 -0
  208. package/dist/composed/AppSwitcher/AppSwitcher.d.ts +21 -0
  209. package/dist/composed/AppSwitcher/AppSwitcher.d.ts.map +1 -0
  210. package/dist/composed/AppSwitcher/index.d.ts +3 -0
  211. package/dist/composed/AppSwitcher/index.d.ts.map +1 -0
  212. package/dist/composed/Combobox/Combobox.d.ts +21 -0
  213. package/dist/composed/Combobox/Combobox.d.ts.map +1 -0
  214. package/dist/composed/Combobox/index.d.ts +3 -0
  215. package/dist/composed/Combobox/index.d.ts.map +1 -0
  216. package/dist/composed/ContentHeader/ContentHeader.d.ts +21 -0
  217. package/dist/composed/ContentHeader/ContentHeader.d.ts.map +1 -0
  218. package/dist/composed/ContentHeader/index.d.ts +3 -0
  219. package/dist/composed/ContentHeader/index.d.ts.map +1 -0
  220. package/dist/composed/DataTable/DataTable.d.ts +34 -0
  221. package/dist/composed/DataTable/DataTable.d.ts.map +1 -0
  222. package/dist/composed/DataTable/DataTableColumnHeader.d.ts +9 -0
  223. package/dist/composed/DataTable/DataTableColumnHeader.d.ts.map +1 -0
  224. package/dist/composed/DataTable/DataTableViewOptions.d.ts +7 -0
  225. package/dist/composed/DataTable/DataTableViewOptions.d.ts.map +1 -0
  226. package/dist/composed/DataTable/index.d.ts +6 -0
  227. package/dist/composed/DataTable/index.d.ts.map +1 -0
  228. package/dist/composed/DataTablePagination/DataTablePagination.d.ts +14 -0
  229. package/dist/composed/DataTablePagination/DataTablePagination.d.ts.map +1 -0
  230. package/dist/composed/DataTablePagination/index.d.ts +3 -0
  231. package/dist/composed/DataTablePagination/index.d.ts.map +1 -0
  232. package/dist/composed/DatePicker/DatePicker.d.ts +27 -0
  233. package/dist/composed/DatePicker/DatePicker.d.ts.map +1 -0
  234. package/dist/composed/DatePicker/DateRangePicker.d.ts +29 -0
  235. package/dist/composed/DatePicker/DateRangePicker.d.ts.map +1 -0
  236. package/dist/composed/DatePicker/DateTimePicker.d.ts +33 -0
  237. package/dist/composed/DatePicker/DateTimePicker.d.ts.map +1 -0
  238. package/dist/composed/DatePicker/DateTimeRangePicker.d.ts +39 -0
  239. package/dist/composed/DatePicker/DateTimeRangePicker.d.ts.map +1 -0
  240. package/dist/composed/DatePicker/date-time.d.ts +12 -0
  241. package/dist/composed/DatePicker/date-time.d.ts.map +1 -0
  242. package/dist/composed/DatePicker/index.d.ts +9 -0
  243. package/dist/composed/DatePicker/index.d.ts.map +1 -0
  244. package/dist/composed/FacetedFilter/FacetedFilter.d.ts +14 -0
  245. package/dist/composed/FacetedFilter/FacetedFilter.d.ts.map +1 -0
  246. package/dist/composed/FacetedFilter/index.d.ts +3 -0
  247. package/dist/composed/FacetedFilter/index.d.ts.map +1 -0
  248. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts +26 -0
  249. package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts.map +1 -0
  250. package/dist/composed/LayoutSlots/index.d.ts +4 -0
  251. package/dist/composed/LayoutSlots/index.d.ts.map +1 -0
  252. package/dist/composed/LayoutSlots/use-layout-config.d.ts +25 -0
  253. package/dist/composed/LayoutSlots/use-layout-config.d.ts.map +1 -0
  254. package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts +34 -0
  255. package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts.map +1 -0
  256. package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts +21 -0
  257. package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts.map +1 -0
  258. package/dist/composed/SelectorDropdown/index.d.ts +5 -0
  259. package/dist/composed/SelectorDropdown/index.d.ts.map +1 -0
  260. package/dist/composed/SidebarMode/SidebarModeContext.d.ts +15 -0
  261. package/dist/composed/SidebarMode/SidebarModeContext.d.ts.map +1 -0
  262. package/dist/composed/SidebarMode/SidebarModeControl.d.ts +10 -0
  263. package/dist/composed/SidebarMode/SidebarModeControl.d.ts.map +1 -0
  264. package/dist/composed/SidebarMode/index.d.ts +5 -0
  265. package/dist/composed/SidebarMode/index.d.ts.map +1 -0
  266. package/dist/composed/ThemeProvider/ThemeProvider.d.ts +17 -0
  267. package/dist/composed/ThemeProvider/ThemeProvider.d.ts.map +1 -0
  268. package/dist/composed/ThemeProvider/index.d.ts +3 -0
  269. package/dist/composed/ThemeProvider/index.d.ts.map +1 -0
  270. package/dist/composed/TopNavUser/TopNavUser.d.ts +15 -0
  271. package/dist/composed/TopNavUser/TopNavUser.d.ts.map +1 -0
  272. package/dist/composed/TopNavUser/index.d.ts +3 -0
  273. package/dist/composed/TopNavUser/index.d.ts.map +1 -0
  274. package/dist/fonts.js +5 -0
  275. package/dist/hooks/use-mobile.d.ts +2 -0
  276. package/dist/hooks/use-mobile.d.ts.map +1 -0
  277. package/dist/index.d.ts +56 -0
  278. package/dist/index.d.ts.map +1 -0
  279. package/dist/index.js +19926 -0
  280. package/dist/lib/use-sync-external-store-shim.d.ts +2 -0
  281. package/dist/lib/use-sync-external-store-shim.d.ts.map +1 -0
  282. package/dist/lib/utils.d.ts +3 -0
  283. package/dist/lib/utils.d.ts.map +1 -0
  284. package/dist/overview/ThemeShowcase.d.ts +2 -0
  285. package/dist/overview/ThemeShowcase.d.ts.map +1 -0
  286. package/dist/styles/custom-variants.css +25 -0
  287. package/dist/styles/globals.css +2 -0
  288. package/dist/styles/tailwind-theme.css +95 -0
  289. package/dist/tokens/component.css +30 -0
  290. package/dist/tokens/primitive.css +141 -0
  291. package/dist/tokens/semantic.css +108 -0
  292. package/eslint.config.shared.mjs +49 -0
  293. package/package.json +75 -0
  294. package/tsconfig.shared.json +15 -0
package/USAGE_GUIDE.md ADDED
@@ -0,0 +1,252 @@
1
+ # Using Graphene
2
+
3
+ > **Scope:** These rules only apply when working with `@gravitee/graphene-core` components and styles. Do not apply them to unrelated parts of the codebase.
4
+
5
+ Browse the live documentation and component catalog on [Storybook](https://alpha--69ca386269ab9fdfdf655309.chromatic.com/).
6
+
7
+ This project uses the Graphene design system (`@gravitee/graphene-core`). Follow these conventions when writing or generating code.
8
+
9
+ ## Package exports
10
+
11
+ | Export | What it is |
12
+ | --------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
13
+ | `@gravitee/graphene-core` | React components and utilities (`cn`, etc.) |
14
+ | `@gravitee/graphene-core/styles` | Pre-built CSS (tokens, utilities, base layer). No Tailwind pipeline required in the host to use library styling. |
15
+ | `@gravitee/graphene-core/fonts` | Loads DM Sans via `@fontsource/dm-sans`. Import once in the app entry. |
16
+ | `@gravitee/graphene-core/tailwind-theme` | Constrained Tailwind v4 theme: resets default palette/spacing/type and maps utilities to Graphene tokens. Use only if the app runs Tailwind for its own code. |
17
+ | `@gravitee/graphene-core/eslint` / `@gravitee/graphene-core/tsconfig` | Shared tooling configs |
18
+
19
+ ## Dependencies (what the host needs)
20
+
21
+ - **Required:** `react` and `react-dom` (^19).
22
+ - **Required:** `@fontsource/dm-sans` (>=5) — loaded by `import '@gravitee/graphene-core/fonts'`.
23
+ - **Optional:** `tailwindcss` (^4) — only needed if the app imports `@gravitee/graphene-core/tailwind-theme` and processes its own CSS with Tailwind.
24
+
25
+ Graphene ships pre-compiled `styles`; the host does **not** need PostCSS or `postcss-import` for Graphene’s CSS file itself. If the app uses Tailwind for local files, configure `@tailwindcss/postcss` (or the Vite plugin) for that entry only.
26
+
27
+ ## Integration tiers
28
+
29
+ Pick the smallest setup that matches how much Tailwind the app uses.
30
+
31
+ ### Tier 1 — Graphene only (no app Tailwind)
32
+
33
+ Use this when the screen is built only from Graphene components and plain markup.
34
+
35
+ ```ts
36
+ // main.ts (order as below)
37
+ import '@gravitee/graphene-core/fonts';
38
+ import '@gravitee/graphene-core/styles';
39
+ ```
40
+
41
+ ```tsx
42
+ import { Button, Card } from '@gravitee/graphene-core';
43
+ ```
44
+
45
+ No `@source` or Tailwind entry is required for Graphene’s own classes to work; `styles` is plain, compiled CSS.
46
+
47
+ ### Tier 2 — App uses Tailwind v4 for local code (recommended for new shells)
48
+
49
+ Use the constrained theme so utilities in app code map to Graphene tokens (reduces design drift).
50
+
51
+ **JavaScript entry** — load **app** Tailwind CSS **before** Graphene styles so Graphene’s `@layer base` rules (for example default `border-color`) win over Tailwind preflight.
52
+
53
+ ```ts
54
+ import '@gravitee/graphene-core/fonts';
55
+ import './styles.css'; // your Tailwind entry — first
56
+ import '@gravitee/graphene-core/styles'; // pre-built Graphene CSS — last
57
+ ```
58
+
59
+ **`styles.css` (example)**
60
+
61
+ ```css
62
+ @import 'tailwindcss';
63
+ @import '@gravitee/graphene-core/tailwind-theme';
64
+ @source './**/*.{ts,tsx}';
65
+ ```
66
+
67
+ Do not add `@source` pointing at Graphene’s package `dist` for styling; Graphene’s utilities are already in `import '@gravitee/graphene-core/styles'`.
68
+
69
+ ## Imports (components)
70
+
71
+ - All components are named exports from `@gravitee/graphene-core`:
72
+
73
+ ```tsx
74
+ import { Button, Badge, Card, Input } from '@gravitee/graphene-core';
75
+ ```
76
+
77
+ - Never import from internal paths like `@gravitee/graphene-core/base/Button` or `@gravitee/graphene-core/lib/utils`. These are private and may change without notice.
78
+
79
+ ## Token reference (Tailwind utilities)
80
+
81
+ When using **Tier 2**, the constrained theme exposes only these scales. Prefer them over arbitrary values (`bg-blue-500`, `p-[13px]`, etc.) so UI stays aligned with the system.
82
+
83
+ ### Colors (semantic)
84
+
85
+ Maps to CSS variables from Graphene themes. Use utilities like `bg-*`, `text-*`, `border-*`:
86
+
87
+ `background`, `foreground`, `card`, `card-foreground`, `popover`, `popover-foreground`, `primary`, `primary-foreground`, `secondary`, `secondary-foreground`, `muted`, `muted-foreground`, `accent`, `accent-foreground`, `destructive`, `destructive-foreground`, `success`, `success-foreground`, `warning`, `warning-foreground`, `border`, `input`, `ring`.
88
+
89
+ Also: `transparent`, `current`, `black`, `white` (mapped to Graphene neutrals where defined).
90
+
91
+ ### Sidebar
92
+
93
+ `sidebar`, `sidebar-foreground`, `sidebar-border`, `sidebar-accent`, `sidebar-accent-foreground`, `sidebar-primary`, `sidebar-primary-foreground`, `sidebar-ring`.
94
+
95
+ ### Spacing
96
+
97
+ Scale: `0`, `0.5`, `1`, `1.5`, `2`, `2.5`, `3`, `3.5`, `4`, `5`, `6`, `8`, `10`, `12`, `16`, `20`, `24`, `px`, plus layout tokens `content`, `topnav`, `sidebar-height` (e.g. `p-4`, `gap-2`, `h-topnav`).
98
+
99
+ ### Typography
100
+
101
+ - **Font:** `font-sans` (DM Sans stack when fonts are loaded).
102
+ - **Size:** `text-xs` through `text-3xl` (Graphene type scale).
103
+
104
+ ### Radius
105
+
106
+ `rounded-sm`, `rounded-md`, `rounded-lg`, `rounded-xl` (mapped to semantic `--radius`).
107
+
108
+ ### Layout
109
+
110
+ - Content max width is defined on the theme token `--container-content` (maps to `--content-max-width`). Use the max-width utility Tailwind emits for that token in your setup.
111
+
112
+ ## Styling
113
+
114
+ - Use semantic design tokens for colors, not raw Tailwind defaults:
115
+
116
+ ```tsx
117
+ /* Good */
118
+ <div className="bg-primary text-primary-foreground" />
119
+ <div className="border-border text-muted-foreground" />
120
+ <div className="bg-destructive text-destructive-foreground" />
121
+
122
+ /* Bad - unconstrained palette */
123
+ <div className="bg-blue-600 text-white" />
124
+ <div className="border-gray-200 text-gray-500" />
125
+ ```
126
+
127
+ - Use the `cn()` utility to merge Tailwind classes. Import it from `@gravitee/graphene-core`:
128
+
129
+ ```tsx
130
+ import { cn } from '@gravitee/graphene-core';
131
+
132
+ <div className={cn('rounded-lg p-4', isActive && 'bg-accent', className)} />;
133
+ ```
134
+
135
+ - Dark mode is driven by semantic tokens and the `dark` class on the root. Prefer tokens over ad hoc `dark:` utilities unless you need a one-off exception.
136
+
137
+ ## Layout composition
138
+
139
+ Graphene has two layers:
140
+
141
+ - **Base** components (Button, Input, Card, Badge…) are primitives. Use them directly.
142
+ - **Composed** components (`AppLayout`, `AppSidebar`, `ContentHeader`, …) encode shell layout: top navigation height, sidebar width, content padding, and main/column structure.
143
+
144
+ **Prefer composed layout components** for application shells instead of re-implementing the same grid/flex and spacing:
145
+
146
+ ```tsx
147
+ /* Good — use AppLayout pieces as in Storybook */
148
+ <AppLayout>
149
+ <AppSidebar>...</AppSidebar>
150
+ <AppLayout.Main>
151
+ <ContentHeader title="..." />
152
+ {/* page content */}
153
+ </AppLayout.Main>
154
+ </AppLayout>
155
+
156
+ /* Bad — one-off shell with random spacing and widths */
157
+ <div className="flex h-screen">
158
+ <aside className="w-64" />
159
+ <main className="p-6 flex-1" />
160
+ </div>
161
+ ```
162
+
163
+ Compose with **Card**, **Tabs**, and other primitives inside the regions the layout components provide. Keep page-level spacing on the Graphene scale (`p-4`, `gap-2`, …) from the token table above.
164
+
165
+ For content blocks, prefer Graphene’s primitives over reimplementing them:
166
+
167
+ ```tsx
168
+ /* Good */
169
+ <Card>
170
+ <CardHeader>
171
+ <CardTitle>Title</CardTitle>
172
+ <CardDescription>Description</CardDescription>
173
+ </CardHeader>
174
+ <CardContent>...</CardContent>
175
+ </Card>
176
+
177
+ /* Bad - reimplementing Card with raw divs */
178
+ <div className="rounded-lg border bg-card p-6 shadow-sm">
179
+ <h3 className="font-semibold">Title</h3>
180
+ <p className="text-muted-foreground">Description</p>
181
+ </div>
182
+ ```
183
+
184
+ ## Component variants
185
+
186
+ Components use `variant` and `size` props. Use the provided variants, don't recreate them with custom classes:
187
+
188
+ ```tsx
189
+ /* Good */
190
+ <Button variant="outline" size="sm">Cancel</Button>
191
+ <Button variant="destructive">Delete</Button>
192
+ <Badge variant="default">Active</Badge>
193
+
194
+ /* Bad - manually styling what a variant already does */
195
+ <Button className="border border-border bg-transparent">Cancel</Button>
196
+ ```
197
+
198
+ Common variant values:
199
+
200
+ - **Button**: `variant`: default, outline, secondary, ghost, destructive, link. `size`: default, xs, sm, lg, icon, icon-xs, icon-sm, icon-lg.
201
+ - **Badge**: `variant`: default, secondary, outline, destructive.
202
+
203
+ ## Accessibility
204
+
205
+ - Always pair inputs with a `<Label>` using `htmlFor`:
206
+
207
+ ```tsx
208
+ <Label htmlFor="email">Email</Label>
209
+ <Input id="email" type="email" />
210
+ ```
211
+
212
+ - Use `Button` for actions, not `<div onClick>` or `<a>` without href.
213
+ - Error states use `aria-invalid` and `aria-describedby`:
214
+
215
+ ```tsx
216
+ <Input id="email" aria-invalid={!!error} aria-describedby="email-error" />;
217
+ {
218
+ error && (
219
+ <p id="email-error" className="text-sm text-destructive">
220
+ {error}
221
+ </p>
222
+ );
223
+ }
224
+ ```
225
+
226
+ ## TypeScript
227
+
228
+ - Use strict TypeScript, no `any`.
229
+ - Component props are typed. Use them as-is, don't `as` cast.
230
+ - For extending components, spread remaining props:
231
+
232
+ ```tsx
233
+ interface MyButtonProps extends React.ComponentProps<typeof Button> {
234
+ loading?: boolean;
235
+ }
236
+
237
+ function MyButton({ loading, children, ...props }: MyButtonProps) {
238
+ return (
239
+ <Button disabled={loading} {...props}>
240
+ {loading ? 'Loading...' : children}
241
+ </Button>
242
+ );
243
+ }
244
+ ```
245
+
246
+ ## Common mistakes to avoid
247
+
248
+ - Importing `@gravitee/graphene-core/styles` **before** the app Tailwind entry when using Tier 2 (preflight can override Graphene base styles such as default border color).
249
+ - Overriding Graphene component internals with `!important` or deeply nested selectors.
250
+ - Creating wrapper components that only pass through all props without adding value.
251
+ - Hardcoding colors, spacing, or border-radius outside the exposed token scales.
252
+ - Using `default export` instead of named exports.
@@ -0,0 +1,12 @@
1
+ /** APIs listed in catalog / drill-down PageLayout demos. */
2
+ export declare const catalogApis: readonly [{
3
+ readonly name: "Payment Service";
4
+ readonly versionLabel: "v2.1 · Published";
5
+ }, {
6
+ readonly name: "User API";
7
+ readonly versionLabel: "v2.1 · Published";
8
+ }, {
9
+ readonly name: "Orders API";
10
+ readonly versionLabel: "v2.1 · Published";
11
+ }];
12
+ //# sourceMappingURL=api-catalog.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-catalog.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/apim/api-catalog.fixture.ts"],"names":[],"mappings":"AAAA,4DAA4D;AAC5D,eAAO,MAAM,WAAW;;;;;;;;;EAId,CAAC"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Example breadcrumbs for PageLayout playground — mirrors a typical APIM shell trail.
3
+ */
4
+ export declare const pageLayoutPlaygroundBreadcrumbs: readonly [{
5
+ readonly label: "API Management";
6
+ }, {
7
+ readonly label: "APIs & Events";
8
+ readonly href: "#apis-and-events";
9
+ }, {
10
+ readonly label: "API List";
11
+ }];
12
+ //# sourceMappingURL=page-layout-labels.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"page-layout-labels.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/apim/page-layout-labels.fixture.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;EAIlC,CAAC"}
@@ -0,0 +1,18 @@
1
+ /** Plans table for full-bleed / drill-down PageLayout demos. */
2
+ export declare const samplePlans: readonly [{
3
+ readonly id: "gold";
4
+ readonly name: "Gold Plan";
5
+ readonly status: "Published";
6
+ readonly rateLimit: "1 000 req/s";
7
+ }, {
8
+ readonly id: "silver";
9
+ readonly name: "Silver Plan";
10
+ readonly status: "Published";
11
+ readonly rateLimit: "100 req/s";
12
+ }, {
13
+ readonly id: "free";
14
+ readonly name: "Free Tier";
15
+ readonly status: "Staging";
16
+ readonly rateLimit: "10 req/s";
17
+ }];
18
+ //# sourceMappingURL=plans.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plans.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/apim/plans.fixture.ts"],"names":[],"mappings":"AAAA,gEAAgE;AAChE,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;EAId,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ import { PaginatedResponse } from './pagination.fixture';
3
+ export type ApiStatus = 'PUBLISHED' | 'DRAFT' | 'DEPRECATED';
4
+ export type ApiType = 'HTTP Proxy' | 'Message' | 'TCP Proxy' | 'Federated';
5
+ export type PortalStatus = 'PUBLISHED' | 'UNPUBLISHED';
6
+ export type PortalVisibility = 'PUBLIC' | 'PRIVATE';
7
+ export interface Api {
8
+ id: string;
9
+ name: string;
10
+ description: string;
11
+ icon: LucideIcon;
12
+ iconColor: string;
13
+ status: ApiStatus;
14
+ apiType: ApiType;
15
+ contextPath: string;
16
+ version: string;
17
+ plans: number;
18
+ owner: string;
19
+ portalStatus: PortalStatus;
20
+ portalVisibility: PortalVisibility;
21
+ createdAt: string;
22
+ }
23
+ export declare const apis: readonly Api[];
24
+ export declare const API_STATUS_BADGE_VARIANT: Record<ApiStatus, 'default' | 'secondary' | 'outline'>;
25
+ export declare const API_STATUS_LABEL: Record<ApiStatus, string>;
26
+ export interface FetchApisParams {
27
+ page: number;
28
+ perPage: number;
29
+ sortBy?: keyof Api;
30
+ sortOrder?: 'asc' | 'desc';
31
+ status?: ApiStatus[];
32
+ apiType?: ApiType[];
33
+ search?: string;
34
+ }
35
+ export declare function fetchApis(params: FetchApisParams): Promise<PaginatedResponse<Api>>;
36
+ //# sourceMappingURL=apis.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"apis.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/apis.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI9D,MAAM,MAAM,SAAS,GAAG,WAAW,GAAG,OAAO,GAAG,YAAY,CAAC;AAC7D,MAAM,MAAM,OAAO,GAAG,YAAY,GAAG,SAAS,GAAG,WAAW,GAAG,WAAW,CAAC;AAC3E,MAAM,MAAM,YAAY,GAAG,WAAW,GAAG,aAAa,CAAC;AACvD,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,SAAS,CAAC;AAEpD,MAAM,WAAW,GAAG;IAClB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,SAAS,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,YAAY,CAAC;IAC3B,gBAAgB,EAAE,gBAAgB,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC;CACnB;AAsPD,eAAO,MAAM,IAAI,EAAE,SAAS,GAAG,EAAU,CAAC;AAI1C,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,SAAS,EAAE,SAAS,GAAG,WAAW,GAAG,SAAS,CAI3F,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CAItD,CAAC;AAMF,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC;IACnB,SAAS,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAC3B,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,SAAS,CAAC,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,CA2ClF"}
@@ -0,0 +1,19 @@
1
+ import { LucideIcon } from 'lucide-react';
2
+ import { PaginatedResponse } from './pagination.fixture';
3
+ export type { Pagination, PaginatedResponse } from './pagination.fixture';
4
+ export type ApplicationStatus = 'ACTIVE' | 'STOPPED' | 'ARCHIVED';
5
+ export interface Application {
6
+ id: string;
7
+ name: string;
8
+ description: string;
9
+ icon: LucideIcon;
10
+ iconColor: string;
11
+ status: ApplicationStatus;
12
+ apiCount: number;
13
+ createdAt: string;
14
+ }
15
+ export declare const applications: Application[];
16
+ export declare const STATUS_BADGE_VARIANT: Record<ApplicationStatus, 'default' | 'destructive' | 'outline'>;
17
+ export declare const STATUS_LABEL: Record<ApplicationStatus, string>;
18
+ export declare function fetchApplications(page: number, perPage: number): Promise<PaginatedResponse<Application>>;
19
+ //# sourceMappingURL=applications.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/applications.fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AACtB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAE9D,YAAY,EAAE,UAAU,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAI1E,MAAM,MAAM,iBAAiB,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,CAAC;AAElE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;CACnB;AAID,eAAO,MAAM,YAAY,EAAE,WAAW,EA+GrC,CAAC;AAIF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,SAAS,GAAG,aAAa,GAAG,SAAS,CAIjG,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAI1D,CAAC;AAMF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,WAAW,CAAC,CAAC,CAiBxG"}
@@ -0,0 +1,16 @@
1
+ export type EnvironmentHealth = 'healthy' | 'warning' | 'critical';
2
+ export interface Environment {
3
+ id: string;
4
+ name: string;
5
+ health: EnvironmentHealth;
6
+ region: string;
7
+ gateways: number;
8
+ apis: number;
9
+ uptime: string;
10
+ lastDeploy: string;
11
+ }
12
+ export declare const environments: Environment[];
13
+ export declare const HEALTH_COLOR: Record<EnvironmentHealth, string>;
14
+ export declare const HEALTH_BADGE_VARIANT: Record<EnvironmentHealth, 'default' | 'outline' | 'destructive'>;
15
+ export declare function fetchEnvironments(): Promise<Environment[]>;
16
+ //# sourceMappingURL=environments.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environments.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/environments.fixture.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,SAAS,GAAG,UAAU,CAAC;AAEnE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,iBAAiB,CAAC;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,WAAW,EAyCrC,CAAC;AAEF,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAI1D,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,MAAM,CAAC,iBAAiB,EAAE,SAAS,GAAG,SAAS,GAAG,aAAa,CAIjG,CAAC;AAMF,wBAAgB,iBAAiB,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAI1D"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Storybook fixtures by feature area. Prefer importing from this barrel or from a
3
+ * specific module (e.g. `./apim/navigation.fixture`) in large stories.
4
+ */
5
+ export { sampleApps } from './shell/app-switcher.fixture';
6
+ export { sampleEnvironments, sampleEnvironmentsForSidebar } from './shell/environment-picker.fixture';
7
+ export { agentManagementApps, agentManagementNavGroups, sampleNavGroups, pageLayoutNavGroups, contextNavGroups, contextPageTabKeys, findNavLabel, findContextLabel, } from './navigation.fixture';
8
+ export { catalogApis } from './apim/api-catalog.fixture';
9
+ export { samplePlans } from './apim/plans.fixture';
10
+ export { pageLayoutPlaygroundBreadcrumbs } from './apim/page-layout-labels.fixture';
11
+ export { defaultUserName, defaultUserEmail } from './users.fixture';
12
+ export { GlobalSearchInput, DocSection, CodeBlock } from '../helpers/storybook-components';
13
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AAEtG,OAAO,EACL,mBAAmB,EACnB,wBAAwB,EACxB,eAAe,EACf,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,YAAY,EACZ,gBAAgB,GACjB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACnD,OAAO,EAAE,+BAA+B,EAAE,MAAM,mCAAmC,CAAC;AAEpF,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEpE,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,iCAAiC,CAAC"}
@@ -0,0 +1,18 @@
1
+ import { NavGroup } from '../../composed/AppSidebar';
2
+ import { SelectorOption } from '../../composed/SelectorDropdown';
3
+ /** Primary (global) sidebar groups for API Management–style shell stories. */
4
+ export declare const sampleNavGroups: NavGroup[];
5
+ /**
6
+ * Narrower nav set for {@link PageLayout} pattern stories (list + create + applications).
7
+ */
8
+ export declare const pageLayoutNavGroups: NavGroup[];
9
+ /** Context (resource) sidebar for a single API in drill-down stories. */
10
+ export declare const contextNavGroups: NavGroup[];
11
+ /** Keys used in tabbed page demos — aligned with {@link contextNavGroups}. */
12
+ export declare const contextPageTabKeys: readonly ["overview", "entrypoints", "endpoints", "plans"];
13
+ export declare function findNavLabel(groups: NavGroup[], key: string, fallback?: string): string;
14
+ export declare function findContextLabel(key: string): string;
15
+ /** Agent Management shell — sidebar nav + app switcher options for Empty List / agent stories. */
16
+ export declare const agentManagementNavGroups: NavGroup[];
17
+ export declare const agentManagementApps: SelectorOption[];
18
+ //# sourceMappingURL=navigation.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"navigation.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/navigation.fixture.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,6CAA6C,CAAC;AAC5E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAExF,8EAA8E;AAC9E,eAAO,MAAM,eAAe,EAAE,QAAQ,EAwBrC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAE,QAAQ,EAazC,CAAC;AAEF,yEAAyE;AACzE,eAAO,MAAM,gBAAgB,EAAE,QAAQ,EA8BtC,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,kBAAkB,4DAA6D,CAAC;AAE7F,wBAAgB,YAAY,CAAC,MAAM,EAAE,QAAQ,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,SAAS,GAAG,MAAM,CAOvF;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEpD;AAED,kGAAkG;AAClG,eAAO,MAAM,wBAAwB,EAAE,QAAQ,EA4B9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EAG/C,CAAC"}
@@ -0,0 +1,12 @@
1
+ export interface Pagination {
2
+ page: number;
3
+ perPage: number;
4
+ pageCount: number;
5
+ pageItemsCount: number;
6
+ totalCount: number;
7
+ }
8
+ export interface PaginatedResponse<T> {
9
+ data: T[];
10
+ pagination: Pagination;
11
+ }
12
+ //# sourceMappingURL=pagination.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagination.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/pagination.fixture.ts"],"names":[],"mappings":"AACA,MAAM,WAAW,UAAU;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,iBAAiB,CAAC,CAAC;IAClC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,UAAU,EAAE,UAAU,CAAC;CACxB"}
@@ -0,0 +1,4 @@
1
+ import { AppDefinition } from '../../../composed/AppSwitcher';
2
+ /** Apps shown in {@link AppSidebar} / {@link AppSwitcher} shell stories. */
3
+ export declare const sampleApps: AppDefinition[];
4
+ //# sourceMappingURL=app-switcher.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"app-switcher.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/shell/app-switcher.fixture.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8CAA8C,CAAC;AAElF,4EAA4E;AAC5E,eAAO,MAAM,UAAU,EAAE,aAAa,EAerC,CAAC"}
@@ -0,0 +1,6 @@
1
+ import { SelectorOption } from '../../../composed/SelectorDropdown';
2
+ /** Environment rows for default Storybook chrome (sidebar header picker). */
3
+ export declare const sampleEnvironments: SelectorOption[];
4
+ /** Same environments with icons tinted for primary sidebar header backgrounds. */
5
+ export declare const sampleEnvironmentsForSidebar: SelectorOption[];
6
+ //# sourceMappingURL=environment-picker.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"environment-picker.fixture.d.ts","sourceRoot":"","sources":["../../../../src/__stories__/fixtures/shell/environment-picker.fixture.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AAExF,6EAA6E;AAC7E,eAAO,MAAM,kBAAkB,EAAE,cAAc,EAI9C,CAAC;AAEF,kFAAkF;AAClF,eAAO,MAAM,4BAA4B,EAAE,cAAc,EAIxD,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const defaultUser: {
2
+ readonly name: "Jane Doe";
3
+ readonly email: "jane@gravitee.io";
4
+ };
5
+ //# sourceMappingURL=user.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/user.fixture.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW;;;CAA2D,CAAC"}
@@ -0,0 +1,3 @@
1
+ export declare const defaultUserName = "Jane Doe";
2
+ export declare const defaultUserEmail = "jane@gravitee.io";
3
+ //# sourceMappingURL=users.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.fixture.d.ts","sourceRoot":"","sources":["../../../src/__stories__/fixtures/users.fixture.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,aAAa,CAAC;AAC1C,eAAO,MAAM,gBAAgB,qBAAqB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { ReactNode } from 'react';
2
+ /** Global search control used in shell / federation documentation stories. */
3
+ declare function GlobalSearchInput(): import("react/jsx-runtime").JSX.Element;
4
+ declare function DocSection({ title, children }: {
5
+ readonly title: string;
6
+ readonly children: ReactNode;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ declare function CodeBlock({ children }: {
9
+ readonly children: string;
10
+ }): import("react/jsx-runtime").JSX.Element;
11
+ export { GlobalSearchInput, DocSection, CodeBlock };
12
+ //# sourceMappingURL=storybook-components.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"storybook-components.d.ts","sourceRoot":"","sources":["../../../src/__stories__/helpers/storybook-components.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,8EAA8E;AAC9E,iBAAS,iBAAiB,4CAazB;AAED,iBAAS,UAAU,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,QAAQ,EAAE,SAAS,CAAA;CAAE,2CAOhG;AAED,iBAAS,SAAS,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,2CAM7D;AAED,OAAO,EAAE,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAE,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { Accordion as AccordionPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function Accordion({ ...props }: React.ComponentProps<typeof AccordionPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
4
+ declare function AccordionItem({ className, ...props }: React.ComponentProps<typeof AccordionPrimitive.Item>): import("react/jsx-runtime").JSX.Element;
5
+ declare function AccordionTrigger({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
6
+ declare function AccordionContent({ className, children, ...props }: React.ComponentProps<typeof AccordionPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
7
+ export { Accordion, AccordionItem, AccordionTrigger, AccordionContent };
8
+ //# sourceMappingURL=Accordion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/base/Accordion/Accordion.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,IAAI,kBAAkB,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,SAAS,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAEpF;AAED,iBAAS,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,IAAI,CAAC,2CAQnG;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAgBnH;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,2CAUnH;AAED,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Accordion, AccordionContent, AccordionItem, AccordionTrigger } from './Accordion';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/Accordion/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const alertVariants: (props?: ({
4
+ variant?: "default" | "destructive" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Alert({ className, variant, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AlertTitle({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AlertDescription({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AlertAction({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ export type AlertProps = React.ComponentProps<typeof Alert>;
11
+ export { Alert, AlertTitle, AlertDescription, AlertAction, alertVariants };
12
+ //# sourceMappingURL=Alert.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Alert.d.ts","sourceRoot":"","sources":["../../../src/base/Alert/Alert.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,aAAa;;8EAclB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,2CAUlE;AAED,iBAAS,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWvE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7E;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAExE;AAED,MAAM,MAAM,UAAU,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,KAAK,CAAC,CAAC;AAE5D,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { Alert, AlertTitle, AlertDescription, AlertAction, alertVariants } from './Alert';
2
+ export type { AlertProps } from './Alert';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/Alert/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC1F,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Avatar as AvatarPrimitive } from 'radix-ui';
2
+ import * as React from 'react';
3
+ declare function Avatar({ className, size, ...props }: React.ComponentProps<typeof AvatarPrimitive.Root> & {
4
+ size?: 'default' | 'sm' | 'lg';
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ declare function AvatarImage({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Image>): import("react/jsx-runtime").JSX.Element;
7
+ declare function AvatarFallback({ className, ...props }: React.ComponentProps<typeof AvatarPrimitive.Fallback>): import("react/jsx-runtime").JSX.Element;
8
+ declare function AvatarBadge({ className, ...props }: React.ComponentProps<'span'>): import("react/jsx-runtime").JSX.Element;
9
+ declare function AvatarGroup({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
10
+ declare function AvatarGroupCount({ className, ...props }: React.ComponentProps<'div'>): import("react/jsx-runtime").JSX.Element;
11
+ export { Avatar, AvatarImage, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarBadge };
12
+ //# sourceMappingURL=Avatar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Avatar.d.ts","sourceRoot":"","sources":["../../../src/base/Avatar/Avatar.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,iBAAS,MAAM,CAAC,EACd,SAAS,EACT,IAAgB,EAChB,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,IAAI,CAAC,GAAG;IACrD,IAAI,CAAC,EAAE,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;CAChC,2CAYA;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,2CAQ/F;AAED,iBAAS,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,eAAe,CAAC,QAAQ,CAAC,2CAWrG;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,2CAczE;AAED,iBAAS,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAWxE;AAED,iBAAS,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,2CAW7E;AAED,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,WAAW,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Avatar, AvatarImage, AvatarFallback, AvatarBadge, AvatarGroup, AvatarGroupCount } from './Avatar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/Avatar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { VariantProps } from 'class-variance-authority';
2
+ import * as React from 'react';
3
+ declare const badgeVariants: (props?: ({
4
+ variant?: "default" | "destructive" | "secondary" | "outline" | null | undefined;
5
+ } & import('class-variance-authority/types').ClassProp) | undefined) => string;
6
+ declare function Badge({ className, variant, asChild, ...props }: React.ComponentProps<'span'> & VariantProps<typeof badgeVariants> & {
7
+ asChild?: boolean;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export { Badge, badgeVariants };
10
+ //# sourceMappingURL=Badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Badge.d.ts","sourceRoot":"","sources":["../../../src/base/Badge/Badge.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,QAAA,MAAM,aAAa;;8EAgBlB,CAAC;AAEF,iBAAS,KAAK,CAAC,EACb,SAAS,EACT,OAAmB,EACnB,OAAe,EACf,GAAG,KAAK,EACT,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,GAAG;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,2CAM3F;AAED,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Badge, badgeVariants } from './Badge';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/base/Badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC"}