@fragment-build/ui 2.2.1 → 3.0.4

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 (229) hide show
  1. package/README.md +19 -29
  2. package/components/grid/Grid.js +1 -22
  3. package/components/grid/Grid.js.map +1 -1
  4. package/components/grid/Grid.styles.d.ts +43 -0
  5. package/components/grid/Grid.styles.js +17 -0
  6. package/components/grid/Grid.styles.js.map +1 -0
  7. package/components/multi-switch/MultiSwitch.d.ts +3 -6
  8. package/components/multi-switch/MultiSwitch.js +4 -29
  9. package/components/multi-switch/MultiSwitch.js.map +1 -1
  10. package/components/multi-switch/MultiSwitch.styles.d.ts +43 -0
  11. package/components/multi-switch/MultiSwitch.styles.js +14 -0
  12. package/components/multi-switch/MultiSwitch.styles.js.map +1 -0
  13. package/components/theme-switch/ThemeSwitch.d.ts +1 -1
  14. package/components/theme-switch/ThemeSwitch.js +2 -2
  15. package/components/theme-switch/ThemeSwitch.js.map +1 -1
  16. package/context.d.ts +6 -105
  17. package/context.js +5 -466
  18. package/context.js.map +1 -1
  19. package/fragments/form/Form.js +5 -11
  20. package/fragments/form/Form.js.map +1 -1
  21. package/fragments/form/Form.styles.d.ts +25 -0
  22. package/fragments/form/Form.styles.js +7 -0
  23. package/fragments/form/Form.styles.js.map +1 -0
  24. package/fragments/form/FormSection.js +3 -34
  25. package/fragments/form/FormSection.js.map +1 -1
  26. package/fragments/form/FormSection.styles.d.ts +61 -0
  27. package/fragments/form/FormSection.styles.js +24 -0
  28. package/fragments/form/FormSection.styles.js.map +1 -0
  29. package/fragments/navbar/Navbar.d.ts +30 -0
  30. package/fragments/navbar/Navbar.js +26 -0
  31. package/fragments/navbar/Navbar.js.map +1 -0
  32. package/fragments/navbar/Navbar.styles.d.ts +55 -0
  33. package/fragments/navbar/Navbar.styles.js +12 -0
  34. package/fragments/navbar/Navbar.styles.js.map +1 -0
  35. package/fragments/page/PageHeader.js +1 -8
  36. package/fragments/page/PageHeader.js.map +1 -1
  37. package/fragments/page/PageHeader.styles.d.ts +37 -0
  38. package/fragments/page/PageHeader.styles.js +9 -0
  39. package/fragments/page/PageHeader.styles.js.map +1 -0
  40. package/fragments/shell/Shell.d.ts +10 -1
  41. package/fragments/shell/Shell.js +8 -2
  42. package/fragments/shell/Shell.js.map +1 -1
  43. package/fragments/shell/Shell.styles.d.ts +37 -0
  44. package/fragments/shell/Shell.styles.js +18 -0
  45. package/fragments/shell/Shell.styles.js.map +1 -0
  46. package/fragments/sidebar/Sidebar.d.ts +5 -15
  47. package/fragments/sidebar/Sidebar.js +39 -49
  48. package/fragments/sidebar/Sidebar.js.map +1 -1
  49. package/fragments/sidebar/Sidebar.styles.d.ts +9 -48
  50. package/fragments/sidebar/Sidebar.styles.js +16 -35
  51. package/fragments/sidebar/Sidebar.styles.js.map +1 -1
  52. package/fragments/sidebar/SidebarNavigation.d.ts +19 -0
  53. package/fragments/sidebar/SidebarNavigation.js +51 -0
  54. package/fragments/sidebar/SidebarNavigation.js.map +1 -0
  55. package/fragments/widget/Widget.d.ts +2 -2
  56. package/fragments/widget/Widget.js +5 -304
  57. package/fragments/widget/Widget.js.map +1 -1
  58. package/fragments/widget/Widget.styles.d.ts +52 -0
  59. package/fragments/widget/Widget.styles.js +20 -0
  60. package/fragments/widget/Widget.styles.js.map +1 -0
  61. package/index.d.ts +1 -54
  62. package/index.js +2 -55
  63. package/index.js.map +1 -1
  64. package/package.json +44 -40
  65. package/provider.d.ts +4 -4
  66. package/provider.js +3 -13
  67. package/provider.js.map +1 -1
  68. package/components/base/Accordion.d.ts +0 -2
  69. package/components/base/Accordion.js +0 -5
  70. package/components/base/Accordion.js.map +0 -1
  71. package/components/base/Alert.d.ts +0 -1
  72. package/components/base/Alert.js +0 -4
  73. package/components/base/Alert.js.map +0 -1
  74. package/components/base/Autocomplete.d.ts +0 -3
  75. package/components/base/Autocomplete.js +0 -6
  76. package/components/base/Autocomplete.js.map +0 -1
  77. package/components/base/Avatar.d.ts +0 -2
  78. package/components/base/Avatar.js +0 -5
  79. package/components/base/Avatar.js.map +0 -1
  80. package/components/base/Badge.d.ts +0 -1
  81. package/components/base/Badge.js +0 -4
  82. package/components/base/Badge.js.map +0 -1
  83. package/components/base/Breadcrumbs.d.ts +0 -2
  84. package/components/base/Breadcrumbs.js +0 -5
  85. package/components/base/Breadcrumbs.js.map +0 -1
  86. package/components/base/Button.d.ts +0 -2
  87. package/components/base/Button.js +0 -5
  88. package/components/base/Button.js.map +0 -1
  89. package/components/base/Calendar.d.ts +0 -1
  90. package/components/base/Calendar.js +0 -4
  91. package/components/base/Calendar.js.map +0 -1
  92. package/components/base/Card.d.ts +0 -2
  93. package/components/base/Card.js +0 -5
  94. package/components/base/Card.js.map +0 -1
  95. package/components/base/Checkbox.d.ts +0 -2
  96. package/components/base/Checkbox.js +0 -5
  97. package/components/base/Checkbox.js.map +0 -1
  98. package/components/base/Chip.d.ts +0 -1
  99. package/components/base/Chip.js +0 -4
  100. package/components/base/Chip.js.map +0 -1
  101. package/components/base/CircularProgress.d.ts +0 -1
  102. package/components/base/CircularProgress.js +0 -4
  103. package/components/base/CircularProgress.js.map +0 -1
  104. package/components/base/Code.d.ts +0 -1
  105. package/components/base/Code.js +0 -4
  106. package/components/base/Code.js.map +0 -1
  107. package/components/base/DateInput.d.ts +0 -1
  108. package/components/base/DateInput.js +0 -4
  109. package/components/base/DateInput.js.map +0 -1
  110. package/components/base/DatePicker.d.ts +0 -1
  111. package/components/base/DatePicker.js +0 -4
  112. package/components/base/DatePicker.js.map +0 -1
  113. package/components/base/DateRangePicker.d.ts +0 -1
  114. package/components/base/DateRangePicker.js +0 -4
  115. package/components/base/DateRangePicker.js.map +0 -1
  116. package/components/base/Divider.d.ts +0 -1
  117. package/components/base/Divider.js +0 -4
  118. package/components/base/Divider.js.map +0 -1
  119. package/components/base/Drawer.d.ts +0 -8
  120. package/components/base/Drawer.js +0 -8
  121. package/components/base/Drawer.js.map +0 -1
  122. package/components/base/Dropdown.d.ts +0 -11
  123. package/components/base/Dropdown.js +0 -8
  124. package/components/base/Dropdown.js.map +0 -1
  125. package/components/base/Form.d.ts +0 -0
  126. package/components/base/Form.js +0 -6
  127. package/components/base/Form.js.map +0 -1
  128. package/components/base/Image.d.ts +0 -1
  129. package/components/base/Image.js +0 -4
  130. package/components/base/Image.js.map +0 -1
  131. package/components/base/Input.d.ts +0 -1
  132. package/components/base/Input.js +0 -4
  133. package/components/base/Input.js.map +0 -1
  134. package/components/base/InputOtp.d.ts +0 -1
  135. package/components/base/InputOtp.js +0 -4
  136. package/components/base/InputOtp.js.map +0 -1
  137. package/components/base/Kbd.d.ts +0 -1
  138. package/components/base/Kbd.js +0 -4
  139. package/components/base/Kbd.js.map +0 -1
  140. package/components/base/Link.d.ts +0 -1
  141. package/components/base/Link.js +0 -4
  142. package/components/base/Link.js.map +0 -1
  143. package/components/base/Listbox.d.ts +0 -3
  144. package/components/base/Listbox.js +0 -6
  145. package/components/base/Listbox.js.map +0 -1
  146. package/components/base/Modal.d.ts +0 -8
  147. package/components/base/Modal.js +0 -8
  148. package/components/base/Modal.js.map +0 -1
  149. package/components/base/Navbar.d.ts +0 -7
  150. package/components/base/Navbar.js +0 -10
  151. package/components/base/Navbar.js.map +0 -1
  152. package/components/base/NumberInput.d.ts +0 -1
  153. package/components/base/NumberInput.js +0 -4
  154. package/components/base/NumberInput.js.map +0 -1
  155. package/components/base/Pagination.d.ts +0 -3
  156. package/components/base/Pagination.js +0 -6
  157. package/components/base/Pagination.js.map +0 -1
  158. package/components/base/Popover.d.ts +0 -234
  159. package/components/base/Popover.js +0 -6
  160. package/components/base/Popover.js.map +0 -1
  161. package/components/base/Progress.d.ts +0 -1
  162. package/components/base/Progress.js +0 -4
  163. package/components/base/Progress.js.map +0 -1
  164. package/components/base/Radio.d.ts +0 -2
  165. package/components/base/Radio.js +0 -5
  166. package/components/base/Radio.js.map +0 -1
  167. package/components/base/RangeCalendar.d.ts +0 -1
  168. package/components/base/RangeCalendar.js +0 -4
  169. package/components/base/RangeCalendar.js.map +0 -1
  170. package/components/base/ScrollShadow.d.ts +0 -1
  171. package/components/base/ScrollShadow.js +0 -4
  172. package/components/base/ScrollShadow.js.map +0 -1
  173. package/components/base/Select.d.ts +0 -3
  174. package/components/base/Select.js +0 -6
  175. package/components/base/Select.js.map +0 -1
  176. package/components/base/Skeleton.d.ts +0 -1
  177. package/components/base/Skeleton.js +0 -4
  178. package/components/base/Skeleton.js.map +0 -1
  179. package/components/base/Slider.d.ts +0 -1
  180. package/components/base/Slider.js +0 -4
  181. package/components/base/Slider.js.map +0 -1
  182. package/components/base/Snippet.d.ts +0 -1
  183. package/components/base/Snippet.js +0 -4
  184. package/components/base/Snippet.js.map +0 -1
  185. package/components/base/Spacer.d.ts +0 -1
  186. package/components/base/Spacer.js +0 -4
  187. package/components/base/Spacer.js.map +0 -1
  188. package/components/base/Spinner.d.ts +0 -1
  189. package/components/base/Spinner.js +0 -4
  190. package/components/base/Spinner.js.map +0 -1
  191. package/components/base/Switch.d.ts +0 -1
  192. package/components/base/Switch.js +0 -4
  193. package/components/base/Switch.js.map +0 -1
  194. package/components/base/Table.d.ts +0 -6
  195. package/components/base/Table.js +0 -9
  196. package/components/base/Table.js.map +0 -1
  197. package/components/base/Tabs.d.ts +0 -2
  198. package/components/base/Tabs.js +0 -5
  199. package/components/base/Tabs.js.map +0 -1
  200. package/components/base/Textarea.d.ts +0 -1
  201. package/components/base/Textarea.js +0 -4
  202. package/components/base/Textarea.js.map +0 -1
  203. package/components/base/TimeInput.d.ts +0 -1
  204. package/components/base/TimeInput.js +0 -4
  205. package/components/base/TimeInput.js.map +0 -1
  206. package/components/base/Toast.d.ts +0 -2
  207. package/components/base/Toast.js +0 -5
  208. package/components/base/Toast.js.map +0 -1
  209. package/components/base/Tooltip.d.ts +0 -1
  210. package/components/base/Tooltip.js +0 -4
  211. package/components/base/Tooltip.js.map +0 -1
  212. package/components/base/User.d.ts +0 -1
  213. package/components/base/User.js +0 -4
  214. package/components/base/User.js.map +0 -1
  215. package/components/chart/Chart.d.ts +0 -13
  216. package/components/chart/Chart.js +0 -18
  217. package/components/chart/Chart.js.map +0 -1
  218. package/components/color-input/ColorInput.d.ts +0 -8
  219. package/components/color-input/ColorInput.js +0 -24
  220. package/components/color-input/ColorInput.js.map +0 -1
  221. package/components/color-selector/ColorSelector.d.ts +0 -14
  222. package/components/color-selector/ColorSelector.js +0 -16
  223. package/components/color-selector/ColorSelector.js.map +0 -1
  224. package/tailwind.plugin.d.ts +0 -3
  225. package/tailwind.plugin.js +0 -52
  226. package/tailwind.plugin.js.map +0 -1
  227. package/withFragment.d.ts +0 -2
  228. package/withFragment.js +0 -21
  229. package/withFragment.js.map +0 -1
package/README.md CHANGED
@@ -26,6 +26,7 @@ Fragment UI is a design system and React component library which provides alread
26
26
  - [✨ Components](#-components)
27
27
  - [⏳ Installation](#-installation)
28
28
  - [🔧 Configuration](#-configuration)
29
+ - [`linkComponent`](#linkcomponent)
29
30
  - [Next.js 13+](#nextjs-13)
30
31
  - [🤝 Contributing](#-contributing)
31
32
  - [👨‍💻 Development](#-development)
@@ -68,32 +69,12 @@ All done. Enjoy 🎉
68
69
 
69
70
  ## 🔧 Configuration
70
71
 
71
- ```ts
72
- // fragment.ts
73
- import { fragmentui } from '@fragment-build/tailwind.plugin';
74
-
75
- export default fragmentui();
76
- ```
77
-
78
- ```ts
79
- // hero.ts
80
- import { heroui } from '@fragment-build/tailwind.plugin';
81
-
82
- export default heroui();
83
- ```
84
-
85
72
  ```ts
86
73
  // src/main.css
87
74
 
88
75
  @import 'tailwindcss';
89
-
90
- @plugin '../hero.ts';
91
- @plugin '../fragment.ts';
92
-
93
- /* Note: You may need to change the path to fit your project structure */
94
- @source '../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}';
95
- @source '../node_modules/@fragment-build/ui/dist/**/*.{js,ts,jsx,tsx}';
96
- @custom-variant dark (&:is(.dark *));
76
+ @import "@heroui/styles";
77
+ @import "@fragment-build/ui";
97
78
  ```
98
79
 
99
80
  It is essential to add the FragmentUIProvider at the root of your application.
@@ -114,19 +95,28 @@ function App() {
114
95
  }
115
96
  ```
116
97
 
117
- ### Next.js 13+
98
+ #### `linkComponent`
118
99
 
119
- When using Next.js you will need to add a file to re-export Fragment UI using `'use client';` to tell Next.js to render them as client components.
100
+ Fragment UI renders navigation links internally (e.g. in `Navbar`, `Sidebar`). By default it uses a plain `<a>` tag. Pass a `linkComponent` to use your router's link component instead so navigation stays client-side:
120
101
 
121
- ```ts
122
- 'use client';
102
+ ```tsx
103
+ import Link from 'next/link';
104
+ import { FragmentUIProvider } from '@fragment-build/ui';
123
105
 
124
- export { ... } from '@fragment-build/ui';
106
+ function App() {
107
+ return (
108
+ <FragmentUIProvider linkComponent={Link}>
109
+ <YourApplication />
110
+ </FragmentUIProvider>
111
+ );
112
+ }
125
113
  ```
126
114
 
127
- Now just import all the components you need from this file.
115
+ Any component that accepts an `href` prop works — React Router's `<Link>`, TanStack Router's `<Link>`, etc.
116
+
117
+ ### Next.js 13+
128
118
 
129
- And you need to [setup Tailwind 4 using PostCSS](https://tailwindcss.com/docs/installation/framework-guides/nextjs)
119
+ You need to [setup Tailwind 4 using PostCSS](https://tailwindcss.com/docs/installation/framework-guides/nextjs)
130
120
 
131
121
  ```ts
132
122
  // postcss.config.mjs
@@ -1,26 +1,5 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { tv } from 'tailwind-variants';
3
- const grid = tv({
4
- slots: {
5
- base: 'grid gap-6 grid-flow-row-dense',
6
- },
7
- variants: {
8
- size: {
9
- sm: {
10
- base: 'grid-cols-1'
11
- },
12
- md: {
13
- base: 'grid-cols-1 lg:grid-cols-2'
14
- },
15
- lg: {
16
- base: 'grid-cols-1 lg:grid-cols-2 2xl:grid-cols-3'
17
- }
18
- }
19
- },
20
- defaultVariants: {
21
- size: 'md',
22
- },
23
- });
2
+ import { grid } from './Grid.styles';
24
3
  export const Grid = ({ children, ...props }) => {
25
4
  const { base } = grid(props);
26
5
  return _jsx("div", { className: base(), children: children });
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../src/components/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAWvC,MAAM,IAAI,GAAG,EAAE,CAAC;IACd,KAAK,EAAE;QACL,IAAI,EAAE,gCAAgC;KACvC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,IAAI,EAAE,aAAa;aACpB;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4BAA4B;aACnC;YACD,EAAE,EAAE;gBACF,IAAI,EAAE,4CAA4C;aACnD;SACF;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,cAAK,SAAS,EAAE,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAClD,CAAC,CAAC"}
1
+ {"version":3,"file":"Grid.js","sourceRoot":"","sources":["../../src/components/grid/Grid.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAWrC,MAAM,CAAC,MAAM,IAAI,GAAwB,CAAC,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,EAAE;IAClE,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC;IAE7B,OAAO,cAAK,SAAS,EAAE,IAAI,EAAE,YAAG,QAAQ,GAAO,CAAC;AAClD,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ export declare const grid: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ sm: {
4
+ base: string;
5
+ };
6
+ md: {
7
+ base: string;
8
+ };
9
+ lg: {
10
+ base: string;
11
+ };
12
+ };
13
+ }, {
14
+ base: string;
15
+ }, undefined, {
16
+ size: {
17
+ sm: {
18
+ base: string;
19
+ };
20
+ md: {
21
+ base: string;
22
+ };
23
+ lg: {
24
+ base: string;
25
+ };
26
+ };
27
+ }, {
28
+ base: string;
29
+ }, import("tailwind-variants").TVReturnType<{
30
+ size: {
31
+ sm: {
32
+ base: string;
33
+ };
34
+ md: {
35
+ base: string;
36
+ };
37
+ lg: {
38
+ base: string;
39
+ };
40
+ };
41
+ }, {
42
+ base: string;
43
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,17 @@
1
+ import { tv } from 'tailwind-variants';
2
+ export const grid = tv({
3
+ slots: {
4
+ base: 'fragment-grid',
5
+ },
6
+ variants: {
7
+ size: {
8
+ sm: { base: 'fragment-grid--sm' },
9
+ md: { base: 'fragment-grid--md' },
10
+ lg: { base: 'fragment-grid--lg' },
11
+ },
12
+ },
13
+ defaultVariants: {
14
+ size: 'md',
15
+ },
16
+ });
17
+ //# sourceMappingURL=Grid.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Grid.styles.js","sourceRoot":"","sources":["../../src/components/grid/Grid.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,IAAI,GAAG,EAAE,CAAC;IACrB,KAAK,EAAE;QACL,IAAI,EAAE,eAAe;KACtB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;YACjC,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;YACjC,EAAE,EAAE,EAAE,IAAI,EAAE,mBAAmB,EAAE;SAClC;KACF;IACD,eAAe,EAAE;QACf,IAAI,EAAE,IAAI;KACX;CACF,CAAC,CAAC"}
@@ -1,9 +1,6 @@
1
- import type { ButtonGroupProps } from '@heroui/button';
2
- /**
3
- * Primary UI component for selecting a color
4
- */
5
- export interface MultiSwitchProps extends Omit<ButtonGroupProps, 'className'> {
1
+ import { type ToggleButtonGroup as ToggleButtonGroupType } from '@heroui/react';
2
+ export interface MultiSwitchProps extends Omit<ToggleButtonGroupType['RootProps'], 'defaultSelectedKeys' | 'onSelectionChange' | 'selectionMode' | 'disallowEmptySelection'> {
6
3
  defaultValue?: number;
7
4
  onValueChange: (value: number) => void;
8
5
  }
9
- export declare const MultiSwitch: import("react").ForwardRefExoticComponent<Omit<MultiSwitchProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
6
+ export declare const MultiSwitch: import("react").ForwardRefExoticComponent<Omit<MultiSwitchProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
@@ -1,31 +1,6 @@
1
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
- import { forwardRef, useEffect, useState } from 'react';
3
- import { Button, ButtonGroup } from '../base/Button';
4
- import { withFragment } from '../../withFragment';
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { forwardRef } from 'react';
5
3
  import { IconCheck, IconSlash, IconX } from '@tabler/icons-react';
6
- import { tv } from 'tailwind-variants';
7
- const multiSwitch = tv({
8
- slots: {
9
- button: 'min-w-0',
10
- },
11
- variants: {
12
- size: {
13
- sm: {
14
- button: 'px-3'
15
- },
16
- md: {
17
- button: 'px-4'
18
- },
19
- lg: {
20
- button: 'px-5'
21
- }
22
- }
23
- },
24
- });
25
- export const MultiSwitch = withFragment(forwardRef(({ defaultValue, onValueChange, size = 'md', ...props }, ref) => {
26
- const [value, setValue] = useState(defaultValue ?? 0);
27
- const { button } = multiSwitch({ size });
28
- useEffect(() => onValueChange && onValueChange(value), [value, onValueChange]);
29
- return (_jsxs(_Fragment, { children: [_jsx("input", { ref: ref, value: value, type: "number", className: "hidden", min: 0, max: 2, required: true }), _jsxs(ButtonGroup, { size: size, ...props, children: [_jsx(Button, { className: button(), onPress: () => setValue(0), ...value === 0 ? { color: 'danger' } : {}, children: _jsx(IconX, { size: 20 }) }), _jsx(Button, { className: button(), onPress: () => setValue(1), ...value === 1 ? { color: 'default', variant: 'solid' } : {}, children: _jsx(IconSlash, { size: 20 }) }), _jsx(Button, { className: button(), onPress: () => setValue(2), ...value === 2 ? { color: 'success' } : {}, children: _jsx(IconCheck, { size: 20 }) })] })] }));
30
- }), 'multiSwitch');
4
+ import { ToggleButton, ToggleButtonGroup } from '@heroui/react';
5
+ export const MultiSwitch = forwardRef(({ defaultValue = 1, onValueChange, size = 'md', ...props }, ref) => (_jsxs(ToggleButtonGroup, { ref: ref, className: "fragment-multi-switch", selectionMode: "single", disallowEmptySelection: true, defaultSelectedKeys: [String(defaultValue)], onSelectionChange: (keys) => onValueChange(Number([...keys][0])), size: size, ...props, children: [_jsx(ToggleButton, { id: "0", isIconOnly: true, className: "fragment-multi-switch__btn--danger", children: _jsx(IconX, {}) }), _jsx(ToggleButton, { id: "1", isIconOnly: true, className: "fragment-multi-switch__btn--neutral", children: _jsx(IconSlash, {}) }), _jsx(ToggleButton, { id: "2", isIconOnly: true, children: _jsx(IconCheck, {}) })] })));
31
6
  //# sourceMappingURL=MultiSwitch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiSwitch.js","sourceRoot":"","sources":["../../src/components/multi-switch/MultiSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAElE,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAWvC,MAAM,WAAW,GAAG,EAAE,CAAC;IACrB,KAAK,EAAE;QACL,MAAM,EAAE,SAAS;KAClB;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE;gBACF,MAAM,EAAE,MAAM;aACf;YACD,EAAE,EAAE;gBACF,MAAM,EAAE,MAAM;aACf;YACD,EAAE,EAAE;gBACF,MAAM,EAAE,MAAM;aACf;SACF;KACF;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG,YAAY,CAAC,UAAU,CAAqC,CAAC,EACtF,YAAY,EACZ,aAAa,EACb,IAAI,GAAG,IAAI,EACX,GAAG,KAAK,EACT,EAAE,GAAG,EAAE,EAAE;IACR,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAC,YAAY,IAAI,CAAC,CAAC,CAAC;IACtD,MAAM,EAAE,MAAM,EAAE,GAAG,WAAW,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;IAEzC,SAAS,CAAC,GAAG,EAAE,CAAC,aAAa,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC;IAE/E,OAAO,CACL,8BACE,gBAAO,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,SAAG,EAC3F,MAAC,WAAW,IAAC,IAAI,EAAE,IAAI,KAAM,KAAK,aAChC,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,KAAK,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACjI,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,EACxJ,KAAC,MAAM,IAAC,SAAS,EAAE,MAAM,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAM,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC,EAAE,YAAE,KAAC,SAAS,IAAC,IAAI,EAAE,EAAE,GAAI,GAAS,IAC1H,IACb,CACJ,CAAC;AACJ,CAAC,CAAC,EAAE,aAAa,CAAC,CAAC"}
1
+ {"version":3,"file":"MultiSwitch.js","sourceRoot":"","sources":["../../src/components/multi-switch/MultiSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAClE,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAmD,MAAM,eAAe,CAAC;AAOjH,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAmC,CAAC,EACvE,YAAY,GAAG,CAAC,EAChB,aAAa,EACb,IAAI,GAAG,IAAI,EACX,GAAG,KAAK,EACT,EAAE,GAAG,EAAE,EAAE,CAAC,CACT,MAAC,iBAAiB,IAChB,GAAG,EAAE,GAAG,EACR,SAAS,EAAC,uBAAuB,EACjC,aAAa,EAAC,QAAQ,EACtB,sBAAsB,QACtB,mBAAmB,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,EAC3C,iBAAiB,EAAE,CAAC,IAAI,EAAE,EAAE,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAChE,IAAI,EAAE,IAAI,KACN,KAAK,aAET,KAAC,YAAY,IAAC,EAAE,EAAC,GAAG,EAAC,UAAU,QAAC,SAAS,EAAC,oCAAoC,YAAC,KAAC,KAAK,KAAG,GAAe,EACvG,KAAC,YAAY,IAAC,EAAE,EAAC,GAAG,EAAC,UAAU,QAAC,SAAS,EAAC,qCAAqC,YAC7E,KAAC,SAAS,KAAG,GACA,EACf,KAAC,YAAY,IAAC,EAAE,EAAC,GAAG,EAAC,UAAU,kBAC7B,KAAC,SAAS,KAAG,GACA,IACG,CACrB,CAAC,CAAC"}
@@ -0,0 +1,43 @@
1
+ export declare const multiSwitch: import("tailwind-variants").TVReturnType<{
2
+ size: {
3
+ sm: {
4
+ button: string;
5
+ };
6
+ md: {
7
+ button: string;
8
+ };
9
+ lg: {
10
+ button: string;
11
+ };
12
+ };
13
+ }, {
14
+ button: string;
15
+ }, undefined, {
16
+ size: {
17
+ sm: {
18
+ button: string;
19
+ };
20
+ md: {
21
+ button: string;
22
+ };
23
+ lg: {
24
+ button: string;
25
+ };
26
+ };
27
+ }, {
28
+ button: string;
29
+ }, import("tailwind-variants").TVReturnType<{
30
+ size: {
31
+ sm: {
32
+ button: string;
33
+ };
34
+ md: {
35
+ button: string;
36
+ };
37
+ lg: {
38
+ button: string;
39
+ };
40
+ };
41
+ }, {
42
+ button: string;
43
+ }, undefined, unknown, unknown, undefined>>;
@@ -0,0 +1,14 @@
1
+ import { tv } from 'tailwind-variants';
2
+ export const multiSwitch = tv({
3
+ slots: {
4
+ button: 'fragment-multi-switch__button',
5
+ },
6
+ variants: {
7
+ size: {
8
+ sm: { button: 'fragment-multi-switch__button--sm' },
9
+ md: { button: 'fragment-multi-switch__button--md' },
10
+ lg: { button: 'fragment-multi-switch__button--lg' },
11
+ },
12
+ },
13
+ });
14
+ //# sourceMappingURL=MultiSwitch.styles.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MultiSwitch.styles.js","sourceRoot":"","sources":["../../src/components/multi-switch/MultiSwitch.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAEvC,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;IAC5B,KAAK,EAAE;QACL,MAAM,EAAE,+BAA+B;KACxC;IACD,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,EAAE,MAAM,EAAE,mCAAmC,EAAE;YACnD,EAAE,EAAE,EAAE,MAAM,EAAE,mCAAmC,EAAE;YACnD,EAAE,EAAE,EAAE,MAAM,EAAE,mCAAmC,EAAE;SACpD;KACF;CACF,CAAC,CAAC"}
@@ -1,4 +1,4 @@
1
- import type { ButtonProps } from '@heroui/button';
1
+ import { type ButtonProps } from '@heroui/react';
2
2
  /**
3
3
  * Primary UI component for selecting a color
4
4
  */
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import { useTheme } from 'next-themes';
3
3
  import { IconMoon, IconSun } from '@tabler/icons-react';
4
- import { Button } from '../base/Button';
4
+ import { Button } from '@heroui/react';
5
5
  import { useEffect, useState } from 'react';
6
6
  export const ThemeSwitch = (props) => {
7
7
  const [mounted, setMounted] = useState(false);
@@ -11,6 +11,6 @@ export const ThemeSwitch = (props) => {
11
11
  }, []);
12
12
  if (!mounted)
13
13
  return null;
14
- return (_jsx(Button, { isIconOnly: true, size: "sm", onPress: () => setTheme(theme === 'light' ? 'dark' : 'light'), ...props, children: theme === 'light' ? _jsx(IconSun, { size: 18 }) : _jsx(IconMoon, { size: 18 }) }));
14
+ return (_jsx(Button, { isIconOnly: true, size: "sm", variant: "tertiary", onPress: () => setTheme(theme === 'light' ? 'dark' : 'light'), ...props, children: theme === 'light' ? _jsx(IconSun, { size: 18 }) : _jsx(IconMoon, { size: 18 }) }));
15
15
  };
16
16
  //# sourceMappingURL=ThemeSwitch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ThemeSwitch.js","sourceRoot":"","sources":["../../src/components/theme-switch/ThemeSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQ5C,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;IAEvC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAG,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAEzB,OAAO,CACL,KAAC,MAAM,IAAC,UAAU,QAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,KAAM,KAAK,YAClG,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,IAAI,EAAE,EAAE,GAAI,GAC5D,CACV,CAAC;AACJ,CAAC,CAAC"}
1
+ {"version":3,"file":"ThemeSwitch.js","sourceRoot":"","sources":["../../src/components/theme-switch/ThemeSwitch.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAQ,EAAE,MAAM,EAAoB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAQ5C,MAAM,CAAC,MAAM,WAAW,GAA+B,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;IAEvC,SAAS,CAAC,GAAG,EAAE;QACb,UAAU,CAAC,IAAI,CAAC,CAAC;IACnB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,IAAG,CAAC,OAAO;QAAE,OAAO,IAAI,CAAC;IAEzB,OAAO,CACL,KAAC,MAAM,IAAC,UAAU,QAAC,IAAI,EAAC,IAAI,EAAC,OAAO,EAAC,UAAU,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC,KAAM,KAAK,YACrH,KAAK,KAAK,OAAO,CAAC,CAAC,CAAC,KAAC,OAAO,IAAC,IAAI,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,KAAC,QAAQ,IAAC,IAAI,EAAE,EAAE,GAAI,GAC5D,CACV,CAAC;AACJ,CAAC,CAAC"}
package/context.d.ts CHANGED
@@ -1,106 +1,7 @@
1
- import type { AccordionItemProps, AccordionProps, AlertProps, AutocompleteItemProps, AutocompleteProps, AutocompleteSectionProps, AvatarGroupProps, AvatarProps, BadgeProps, BreadcrumbsProps, ButtonGroupProps, ButtonProps, CalendarProps, CardProps, CheckboxGroupProps, CheckboxProps, ChipProps, CircularProgressProps, CodeProps, DateInputProps, DatePickerProps, DateRangePickerProps, DividerProps, DrawerBodyProps, DrawerContentProps, DrawerFooterProps, DrawerHeaderProps, DrawerProps, DropdownItemProps, DropdownMenuProps, DropdownProps, DropdownSectionProps, DropdownTriggerProps, ImageProps, InputOtpProps, InputProps, KbdProps, LinkProps, ListboxItemProps, ListboxProps, ListboxSectionProps, ModalBodyProps, ModalContentProps, ModalFooterProps, ModalHeaderProps, ModalProps, NavbarBrandProps, NavbarContentProps, NavbarItemProps, NavbarMenuItemProps, NavbarMenuToggleProps, NavbarProps, NumberInputProps, PaginationCursorProps, PaginationItemProps, PaginationProps, PopoverContentProps, PopoverProps, PopoverTriggerProps, ProgressProps, RadioGroupProps, RadioProps, RangeCalendarProps, ScrollShadowProps, SelectItemProps, SelectProps, SelectSectionProps, SkeletonProps, SliderProps, SnippetProps, SpacerProps, SpinnerProps, SwitchProps, TabItemProps, TableBodyProps, TableCellProps, TableColumnProps, TableHeaderProps, TableProps, TableRowProps, TabsProps, TextAreaProps, TimeInputProps, ToastProps, TooltipProps, UserProps } from '@heroui/react';
2
- import type { Props as ApexChartProps } from 'react-apexcharts';
3
- import type { ChartProps } from './components/chart/Chart';
4
- import type { ColorInputProps } from './components/color-input/ColorInput';
5
- import type { ColorSelectorProps } from './components/color-selector/ColorSelector';
6
- import type { FormProps } from './fragments/form/Form';
7
- import type { FormSectionProps } from './fragments/form/FormSection';
8
- import type { MultiSwitchProps } from './components/multi-switch/MultiSwitch';
9
- export interface FragmentUIContext {
10
- defaults: {
11
- accordion?: Partial<AccordionProps>;
12
- accordionItem?: Partial<AccordionItemProps>;
13
- alert?: Partial<AlertProps>;
14
- autocomplete?: Partial<AutocompleteProps>;
15
- autocompleteItem?: Partial<AutocompleteItemProps>;
16
- autocompleteSection?: Partial<AutocompleteSectionProps>;
17
- avatar?: Partial<AvatarProps>;
18
- avatarGroup?: Partial<AvatarGroupProps>;
19
- badge?: Partial<BadgeProps>;
20
- breadcrumbs?: Partial<BreadcrumbsProps>;
21
- button?: Partial<ButtonProps>;
22
- buttonGroup?: Partial<ButtonGroupProps>;
23
- calendar?: Partial<CalendarProps>;
24
- card?: Partial<CardProps>;
25
- chart?: Partial<Record<ChartProps['type'], Partial<Pick<ApexChartProps, 'options' | 'series'>>>>;
26
- checkbox?: Partial<CheckboxProps>;
27
- checkboxGroup?: Partial<CheckboxGroupProps>;
28
- chip?: Partial<ChipProps>;
29
- circularProgress?: Partial<CircularProgressProps>;
30
- code?: Partial<CodeProps>;
31
- colorInput?: Partial<ColorInputProps>;
32
- colorSelector?: Partial<ColorSelectorProps>;
33
- dateInput?: Partial<DateInputProps>;
34
- datePicker?: Partial<DatePickerProps>;
35
- dateRangePicker?: Partial<DateRangePickerProps>;
36
- divider?: Partial<DividerProps>;
37
- drawer?: Partial<DrawerProps>;
38
- drawerBody?: Partial<DrawerBodyProps>;
39
- drawerContent?: Partial<DrawerContentProps>;
40
- drawerFooter?: Partial<DrawerFooterProps>;
41
- drawerHeader?: Partial<DrawerHeaderProps>;
42
- dropdown?: Partial<DropdownProps>;
43
- dropdownItem?: Partial<DropdownItemProps>;
44
- dropdownMenu?: Partial<DropdownMenuProps>;
45
- dropdownSection?: Partial<DropdownSectionProps>;
46
- dropdownTrigger?: Partial<DropdownTriggerProps>;
47
- form?: Partial<FormProps>;
48
- formSection?: Partial<FormSectionProps>;
49
- image?: Partial<ImageProps>;
50
- input?: Partial<InputProps>;
51
- inputOtp?: Partial<InputOtpProps>;
52
- kbd?: Partial<KbdProps>;
53
- link?: Partial<LinkProps>;
54
- listbox?: Partial<ListboxProps>;
55
- listboxItem?: Partial<ListboxItemProps>;
56
- listboxSection?: Partial<ListboxSectionProps>;
57
- modal?: Partial<ModalProps>;
58
- modalBody?: Partial<ModalBodyProps>;
59
- modalContent?: Partial<ModalContentProps>;
60
- modalFooter?: Partial<ModalFooterProps>;
61
- modalHeader?: Partial<ModalHeaderProps>;
62
- multiSwitch?: Partial<MultiSwitchProps>;
63
- navbar?: Partial<NavbarProps>;
64
- navbarBrand?: Partial<NavbarBrandProps>;
65
- navbarContent?: Partial<NavbarContentProps>;
66
- navbarItem?: Partial<NavbarItemProps>;
67
- navbarMenuItem?: Partial<NavbarMenuItemProps>;
68
- navbarMenuToggle?: Partial<NavbarMenuToggleProps>;
69
- numberInput?: Partial<NumberInputProps>;
70
- pagination?: Partial<PaginationProps>;
71
- paginationItem?: Partial<PaginationItemProps>;
72
- paginationCursor?: Partial<PaginationCursorProps>;
73
- popover?: Partial<PopoverProps>;
74
- popoverContent?: Partial<PopoverContentProps>;
75
- popoverTrigger?: Partial<PopoverTriggerProps>;
76
- progress?: Partial<ProgressProps>;
77
- radio?: Partial<RadioProps>;
78
- radioGroup?: Partial<RadioGroupProps>;
79
- rangeCalendar?: Partial<RangeCalendarProps>;
80
- scrollShadow?: Partial<ScrollShadowProps>;
81
- select?: Partial<SelectProps>;
82
- selectItem?: Partial<SelectItemProps>;
83
- selectSection?: Partial<SelectSectionProps>;
84
- skeleton?: Partial<SkeletonProps>;
85
- slider?: Partial<SliderProps>;
86
- snippet?: Partial<SnippetProps>;
87
- spacer?: Partial<SpacerProps>;
88
- spinner?: Partial<SpinnerProps>;
89
- switch?: Partial<SwitchProps>;
90
- table?: Partial<TableProps>;
91
- tableBody?: Partial<TableBodyProps<unknown>>;
92
- tableCell?: Partial<TableCellProps>;
93
- tableColumn?: Partial<TableColumnProps<unknown>>;
94
- tableHeader?: Partial<TableHeaderProps<unknown>>;
95
- tableRow?: Partial<TableRowProps>;
96
- tab?: Partial<TabItemProps>;
97
- tabs?: Partial<TabsProps>;
98
- textArea?: Partial<TextAreaProps>;
99
- timeInput?: Partial<TimeInputProps>;
100
- toast?: Partial<ToastProps>;
101
- tooltip?: Partial<TooltipProps>;
102
- user?: Partial<UserProps>;
103
- };
1
+ export type LinkComponent = React.ElementType;
2
+ interface FragmentUIContextValue {
3
+ linkComponent: LinkComponent;
104
4
  }
105
- export declare const defaultContext: FragmentUIContext;
106
- export declare const FragmentUIContext: import("react").Context<FragmentUIContext>;
5
+ export declare const FragmentUIContext: import("react").Context<FragmentUIContextValue>;
6
+ export declare const useFragmentUI: () => FragmentUIContextValue;
7
+ export {};