@flipdish/ui-library 0.12.3 → 0.13.0

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 (195) hide show
  1. package/README.md +108 -6
  2. package/dist/components/molecules/Select/components/multi-select.cjs +1 -1
  3. package/dist/components/molecules/Select/components/multi-select.js +1 -1
  4. package/dist/components/organisms/Charts/components/radar-chart.cjs +2 -2
  5. package/dist/components/organisms/Charts/components/radar-chart.cjs.map +1 -1
  6. package/dist/components/organisms/Charts/components/radar-chart.js +2 -2
  7. package/dist/components/organisms/Charts/components/radar-chart.js.map +1 -1
  8. package/dist/components/organisms/ColorPicker/colorPicker.utils.cjs +29 -0
  9. package/dist/components/organisms/ColorPicker/colorPicker.utils.cjs.map +1 -1
  10. package/dist/components/organisms/ColorPicker/colorPicker.utils.d.ts +11 -0
  11. package/dist/components/organisms/ColorPicker/colorPicker.utils.d.ts.map +1 -1
  12. package/dist/components/organisms/ColorPicker/colorPicker.utils.js +29 -1
  13. package/dist/components/organisms/ColorPicker/colorPicker.utils.js.map +1 -1
  14. package/dist/components/organisms/ColorPicker/index.cjs +1 -1
  15. package/dist/components/organisms/ColorPicker/index.cjs.map +1 -1
  16. package/dist/components/organisms/ColorPicker/index.js +2 -2
  17. package/dist/components/organisms/ColorPicker/index.js.map +1 -1
  18. package/dist/components/organisms/ColorPicker/providers/color-picker-context.cjs +29 -5
  19. package/dist/components/organisms/ColorPicker/providers/color-picker-context.cjs.map +1 -1
  20. package/dist/components/organisms/ColorPicker/providers/color-picker-context.d.ts.map +1 -1
  21. package/dist/components/organisms/ColorPicker/providers/color-picker-context.js +29 -5
  22. package/dist/components/organisms/ColorPicker/providers/color-picker-context.js.map +1 -1
  23. package/dist/components/organisms/CommandMenu/index.cjs +14 -2
  24. package/dist/components/organisms/CommandMenu/index.cjs.map +1 -1
  25. package/dist/components/organisms/CommandMenu/index.d.ts.map +1 -1
  26. package/dist/components/organisms/CommandMenu/index.js +14 -2
  27. package/dist/components/organisms/CommandMenu/index.js.map +1 -1
  28. package/dist/components/organisms/DatePicker/components/cell.cjs +10 -4
  29. package/dist/components/organisms/DatePicker/components/cell.cjs.map +1 -1
  30. package/dist/components/organisms/DatePicker/components/cell.d.ts +0 -2
  31. package/dist/components/organisms/DatePicker/components/cell.d.ts.map +1 -1
  32. package/dist/components/organisms/DatePicker/components/cell.js +11 -5
  33. package/dist/components/organisms/DatePicker/components/cell.js.map +1 -1
  34. package/dist/components/organisms/DatePicker/components/date-range-picker.cjs +18 -3
  35. package/dist/components/organisms/DatePicker/components/date-range-picker.cjs.map +1 -1
  36. package/dist/components/organisms/DatePicker/components/date-range-picker.d.ts +1 -1
  37. package/dist/components/organisms/DatePicker/components/date-range-picker.d.ts.map +1 -1
  38. package/dist/components/organisms/DatePicker/components/date-range-picker.js +18 -3
  39. package/dist/components/organisms/DatePicker/components/date-range-picker.js.map +1 -1
  40. package/dist/components/organisms/DatePicker/components/range-calendar.cjs +6 -14
  41. package/dist/components/organisms/DatePicker/components/range-calendar.cjs.map +1 -1
  42. package/dist/components/organisms/DatePicker/components/range-calendar.d.ts +12 -1
  43. package/dist/components/organisms/DatePicker/components/range-calendar.d.ts.map +1 -1
  44. package/dist/components/organisms/DatePicker/components/range-calendar.js +9 -16
  45. package/dist/components/organisms/DatePicker/components/range-calendar.js.map +1 -1
  46. package/dist/components/organisms/DatePicker/index.cjs +17 -2
  47. package/dist/components/organisms/DatePicker/index.cjs.map +1 -1
  48. package/dist/components/organisms/DatePicker/index.d.ts +1 -1
  49. package/dist/components/organisms/DatePicker/index.d.ts.map +1 -1
  50. package/dist/components/organisms/DatePicker/index.js +17 -2
  51. package/dist/components/organisms/DatePicker/index.js.map +1 -1
  52. package/dist/components/organisms/GradientPicker/index.cjs +20 -7
  53. package/dist/components/organisms/GradientPicker/index.cjs.map +1 -1
  54. package/dist/components/organisms/GradientPicker/index.d.ts.map +1 -1
  55. package/dist/components/organisms/GradientPicker/index.js +21 -8
  56. package/dist/components/organisms/GradientPicker/index.js.map +1 -1
  57. package/dist/components/organisms/GradientPicker/providers/gradient-picker-context.cjs +6 -1
  58. package/dist/components/organisms/GradientPicker/providers/gradient-picker-context.cjs.map +1 -1
  59. package/dist/components/organisms/GradientPicker/providers/gradient-picker-context.d.ts.map +1 -1
  60. package/dist/components/organisms/GradientPicker/providers/gradient-picker-context.js +6 -1
  61. package/dist/components/organisms/GradientPicker/providers/gradient-picker-context.js.map +1 -1
  62. package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs +5 -1
  63. package/dist/components/organisms/SidebarNavigation/components/nav-button.cjs.map +1 -1
  64. package/dist/components/organisms/SidebarNavigation/components/nav-button.d.ts.map +1 -1
  65. package/dist/components/organisms/SidebarNavigation/components/nav-button.js +5 -1
  66. package/dist/components/organisms/SidebarNavigation/components/nav-button.js.map +1 -1
  67. package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs +5 -1
  68. package/dist/components/organisms/SidebarNavigation/components/nav-item.cjs.map +1 -1
  69. package/dist/components/organisms/SidebarNavigation/components/nav-item.d.ts.map +1 -1
  70. package/dist/components/organisms/SidebarNavigation/components/nav-item.js +5 -1
  71. package/dist/components/organisms/SidebarNavigation/components/nav-item.js.map +1 -1
  72. package/dist/components/organisms/TextEditor/components/text-editor-extensions.cjs +3 -1
  73. package/dist/components/organisms/TextEditor/components/text-editor-extensions.cjs.map +1 -1
  74. package/dist/components/organisms/TextEditor/components/text-editor-extensions.d.ts.map +1 -1
  75. package/dist/components/organisms/TextEditor/components/text-editor-extensions.js +3 -1
  76. package/dist/components/organisms/TextEditor/components/text-editor-extensions.js.map +1 -1
  77. package/dist/components/organisms/TextEditor/index.cjs +11 -1
  78. package/dist/components/organisms/TextEditor/index.cjs.map +1 -1
  79. package/dist/components/organisms/TextEditor/index.d.ts.map +1 -1
  80. package/dist/components/organisms/TextEditor/index.js +12 -2
  81. package/dist/components/organisms/TextEditor/index.js.map +1 -1
  82. package/dist/components/organisms/VideoPlayer/index.cjs +7 -3
  83. package/dist/components/organisms/VideoPlayer/index.cjs.map +1 -1
  84. package/dist/components/organisms/VideoPlayer/index.d.ts.map +1 -1
  85. package/dist/components/organisms/VideoPlayer/index.js +7 -3
  86. package/dist/components/organisms/VideoPlayer/index.js.map +1 -1
  87. package/dist/hooks/useAriaDisclosureAttrs/index.cjs +37 -0
  88. package/dist/hooks/useAriaDisclosureAttrs/index.cjs.map +1 -0
  89. package/dist/hooks/useAriaDisclosureAttrs/index.d.ts +20 -0
  90. package/dist/hooks/useAriaDisclosureAttrs/index.d.ts.map +1 -0
  91. package/dist/hooks/useAriaDisclosureAttrs/index.js +35 -0
  92. package/dist/hooks/useAriaDisclosureAttrs/index.js.map +1 -0
  93. package/dist/native/components/atoms/AppStoreButton/index.d.ts +12 -0
  94. package/dist/native/components/atoms/Avatar/Avatar.styles.d.ts +39 -0
  95. package/dist/native/components/atoms/Avatar/Avatar.styles.d.ts.map +1 -0
  96. package/dist/native/components/atoms/Avatar/Avatar.styles.js +11 -0
  97. package/dist/native/components/atoms/Avatar/Avatar.styles.js.map +1 -0
  98. package/dist/native/components/atoms/Avatar/index.d.ts +19 -0
  99. package/dist/native/components/atoms/Avatar/index.d.ts.map +1 -0
  100. package/dist/native/components/atoms/Avatar/index.js +18 -0
  101. package/dist/native/components/atoms/Avatar/index.js.map +1 -0
  102. package/dist/native/components/atoms/BackgroundPattern/index.d.ts +12 -0
  103. package/dist/native/components/atoms/Badge/index.d.ts +12 -0
  104. package/dist/native/components/atoms/Button/index.d.ts +12 -0
  105. package/dist/native/components/atoms/Checkbox/index.d.ts +12 -0
  106. package/dist/native/components/atoms/CloseButton/index.d.ts +12 -0
  107. package/dist/native/components/atoms/Divider/index.d.ts +12 -0
  108. package/dist/native/components/atoms/Dot/index.d.ts +12 -0
  109. package/dist/native/components/atoms/FeaturedIcon/index.d.ts +12 -0
  110. package/dist/native/components/atoms/FileTrigger/index.d.ts +12 -0
  111. package/dist/native/components/atoms/FlipdishLogo/index.d.ts +12 -0
  112. package/dist/native/components/atoms/Illustration/index.d.ts +12 -0
  113. package/dist/native/components/atoms/Input/index.d.ts +12 -0
  114. package/dist/native/components/atoms/LoadingIndicator/index.d.ts +12 -0
  115. package/dist/native/components/atoms/ProgressBar/index.d.ts +12 -0
  116. package/dist/native/components/atoms/QRCode/index.d.ts +12 -0
  117. package/dist/native/components/atoms/RadioButton/index.d.ts +12 -0
  118. package/dist/native/components/atoms/RatingBadge/index.d.ts +12 -0
  119. package/dist/native/components/atoms/RatingStars/index.d.ts +12 -0
  120. package/dist/native/components/atoms/Skeleton/index.d.ts +12 -0
  121. package/dist/native/components/atoms/Slider/index.d.ts +12 -0
  122. package/dist/native/components/atoms/SocialButton/index.d.ts +12 -0
  123. package/dist/native/components/atoms/Toggle/index.d.ts +12 -0
  124. package/dist/native/components/atoms/Tooltip/index.d.ts +12 -0
  125. package/dist/native/components/atoms/UtilityButton/index.d.ts +12 -0
  126. package/dist/native/components/molecules/Alert/index.d.ts +12 -0
  127. package/dist/native/components/molecules/BadgeGroup/index.d.ts +12 -0
  128. package/dist/native/components/molecules/Breadcrumbs/index.d.ts +12 -0
  129. package/dist/native/components/molecules/ButtonGroup/index.d.ts +12 -0
  130. package/dist/native/components/molecules/Carousel/index.d.ts +12 -0
  131. package/dist/native/components/molecules/CodeSnippet/index.d.ts +12 -0
  132. package/dist/native/components/molecules/ContentDivider/index.d.ts +12 -0
  133. package/dist/native/components/molecules/CreditCard/index.d.ts +12 -0
  134. package/dist/native/components/molecules/Dropdown/index.d.ts +12 -0
  135. package/dist/native/components/molecules/EmptyState/index.d.ts +12 -0
  136. package/dist/native/components/molecules/Modal/index.d.ts +12 -0
  137. package/dist/native/components/molecules/Notification/index.d.ts +12 -0
  138. package/dist/native/components/molecules/Pagination/index.d.ts +12 -0
  139. package/dist/native/components/molecules/ProgressSteps/index.d.ts +12 -0
  140. package/dist/native/components/molecules/RadioGroup/index.d.ts +12 -0
  141. package/dist/native/components/molecules/SectionFooter/index.d.ts +12 -0
  142. package/dist/native/components/molecules/SectionHeader/index.d.ts +12 -0
  143. package/dist/native/components/molecules/Select/index.d.ts +12 -0
  144. package/dist/native/components/molecules/Tabs/index.d.ts +12 -0
  145. package/dist/native/components/molecules/Tags/index.d.ts +12 -0
  146. package/dist/native/components/molecules/TextArea/index.d.ts +12 -0
  147. package/dist/native/components/molecules/VerificationCodeInput/index.d.ts +12 -0
  148. package/dist/native/components/organisms/ActivityFeed/index.d.ts +12 -0
  149. package/dist/native/components/organisms/Calendar/index.d.ts +12 -0
  150. package/dist/native/components/organisms/Charts/index.d.ts +12 -0
  151. package/dist/native/components/organisms/ColorPicker/index.d.ts +12 -0
  152. package/dist/native/components/organisms/CommandMenu/index.d.ts +12 -0
  153. package/dist/native/components/organisms/DatePicker/index.d.ts +12 -0
  154. package/dist/native/components/organisms/FileUpload/index.d.ts +12 -0
  155. package/dist/native/components/organisms/FilterBar/index.d.ts +12 -0
  156. package/dist/native/components/organisms/GradientPicker/index.d.ts +12 -0
  157. package/dist/native/components/organisms/HeaderNavigation/index.d.ts +12 -0
  158. package/dist/native/components/organisms/ImagePicker/index.d.ts +12 -0
  159. package/dist/native/components/organisms/Messaging/index.d.ts +12 -0
  160. package/dist/native/components/organisms/PageHeader/index.d.ts +12 -0
  161. package/dist/native/components/organisms/SidebarNavigation/index.d.ts +12 -0
  162. package/dist/native/components/organisms/SlideoutMenu/index.d.ts +12 -0
  163. package/dist/native/components/organisms/Table/index.d.ts +12 -0
  164. package/dist/native/components/organisms/TextEditor/index.d.ts +12 -0
  165. package/dist/native/components/organisms/TreeView/index.d.ts +12 -0
  166. package/dist/native/components/organisms/VideoPlayer/index.d.ts +12 -0
  167. package/dist/native/components/templates/NotFoundPage/index.d.ts +12 -0
  168. package/dist/native/components/templates/PageLayout/index.d.ts +12 -0
  169. package/dist/native/hooks/useAriaDisclosureAttrs/index.d.ts +12 -0
  170. package/dist/native/hooks/useBreakpoints/index.d.ts +12 -0
  171. package/dist/native/hooks/useClipboard/index.d.ts +12 -0
  172. package/dist/native/hooks/useResizeObserver/index.d.ts +12 -0
  173. package/dist/native/providers/ErrorBoundary/index.d.ts +12 -0
  174. package/dist/native/providers/PortalContainer/index.d.ts +12 -0
  175. package/dist/native/providers/RouteProvider/index.d.ts +12 -0
  176. package/dist/native/providers/ThemeProvider/index.d.ts +12 -0
  177. package/dist/native/providers/UIProvider/index.d.ts +12 -0
  178. package/dist/native/utilities/cssScopeUtils/index.d.ts +12 -0
  179. package/dist/native/utilities/cx/index.d.ts +22 -0
  180. package/dist/native/utilities/cx/index.d.ts.map +1 -0
  181. package/dist/native/utilities/cx/index.js +38 -0
  182. package/dist/native/utilities/cx/index.js.map +1 -0
  183. package/dist/native/utilities/isReactComponent/index.d.ts +24 -0
  184. package/dist/native/utilities/isReactComponent/index.d.ts.map +1 -0
  185. package/dist/native/utilities/isReactComponent/index.js +35 -0
  186. package/dist/native/utilities/isReactComponent/index.js.map +1 -0
  187. package/dist/native/utilities/localStorageUtils/index.d.ts +12 -0
  188. package/dist/native/utilities/renderUtils/index.d.ts +12 -0
  189. package/dist/native/utilities/sessionStorageUtils/index.d.ts +12 -0
  190. package/dist/native/utilities/testIdUtils/index.d.ts +57 -0
  191. package/dist/native/utilities/testIdUtils/index.d.ts.map +1 -0
  192. package/dist/native/utilities/testIdUtils/index.js +58 -0
  193. package/dist/native/utilities/testIdUtils/index.js.map +1 -0
  194. package/dist/styles.native.css +41 -0
  195. package/package.json +50 -5
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `Tags` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/molecules/Tags` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `Tags` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `TextArea` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/molecules/TextArea` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `TextArea` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `VerificationCodeInput` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/molecules/VerificationCodeInput` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `VerificationCodeInput` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `ActivityFeed` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/ActivityFeed` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `ActivityFeed` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `Calendar` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/Calendar` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `Calendar` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `Charts` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/Charts` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `Charts` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `ColorPicker` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/ColorPicker` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `ColorPicker` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `CommandMenu` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/CommandMenu` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `CommandMenu` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `DatePicker` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/DatePicker` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `DatePicker` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `FileUpload` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/FileUpload` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `FileUpload` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `FilterBar` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/FilterBar` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `FilterBar` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `GradientPicker` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/GradientPicker` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `GradientPicker` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `HeaderNavigation` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/HeaderNavigation` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `HeaderNavigation` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `ImagePicker` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/ImagePicker` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `ImagePicker` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `Messaging` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/Messaging` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `Messaging` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `PageHeader` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/PageHeader` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `PageHeader` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `SidebarNavigation` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/SidebarNavigation` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `SidebarNavigation` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `SlideoutMenu` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/SlideoutMenu` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `SlideoutMenu` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `Table` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/Table` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `Table` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `TextEditor` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/TextEditor` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `TextEditor` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `TreeView` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/TreeView` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `TreeView` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `VideoPlayer` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/organisms/VideoPlayer` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `VideoPlayer` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `NotFoundPage` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/templates/NotFoundPage` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `NotFoundPage` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `PageLayout` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/components/templates/PageLayout` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `PageLayout` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `useAriaDisclosureAttrs` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/hooks/useAriaDisclosureAttrs` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `useAriaDisclosureAttrs` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `useBreakpoints` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/hooks/useBreakpoints` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `useBreakpoints` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `useClipboard` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/hooks/useClipboard` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `useClipboard` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `useResizeObserver` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/hooks/useResizeObserver` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `useResizeObserver` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `ErrorBoundary` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/providers/ErrorBoundary` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `ErrorBoundary` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `PortalContainer` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/providers/PortalContainer` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `PortalContainer` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `RouteProvider` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/providers/RouteProvider` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `RouteProvider` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `ThemeProvider` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/providers/ThemeProvider` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `ThemeProvider` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `UIProvider` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/providers/UIProvider` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `UIProvider` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `cssScopeUtils` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/utilities/cssScopeUtils` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `cssScopeUtils` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
3
+ * same inputs as tailwind-merge — strings, arrays, and falsy values for
4
+ * conditionals — so it composes cleanly:
5
+ *
6
+ * cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
7
+ *
8
+ * Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
9
+ * React Native (NativeWind). Imported by components as
10
+ * `@flipdish/ui-library/utilities/cx`.
11
+ */
12
+ export declare const cx: (...classLists: import("tailwind-merge").ClassNameValue[]) => string;
13
+ type ClassValue = string | number;
14
+ type ClassDefinition = Record<string, ClassValue | Record<string, ClassValue | Record<string, ClassValue>>>;
15
+ /**
16
+ * Identity helper that exists only so Tailwind IntelliSense recognises and sorts
17
+ * the class strings held inside style-config objects (e.g. `tailwind-variants`
18
+ * slot maps). Returns its argument unchanged.
19
+ */
20
+ export declare const sortCx: <T extends ClassDefinition>(classes: T) => T;
21
+ export {};
22
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/cx/index.ts"],"names":[],"mappings":"AAkBA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,EAAE,sEAAU,CAAC;AAE1B,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAClC,KAAK,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;AAE5G;;;;GAIG;AACH,eAAO,MAAM,MAAM,GAAI,CAAC,SAAS,eAAe,EAAE,SAAS,CAAC,KAAG,CAAY,CAAC"}
@@ -0,0 +1,38 @@
1
+ import { extendTailwindMerge } from 'tailwind-merge';
2
+
3
+ /**
4
+ * tailwind-merge configured for Untitled UI's custom font-size scale, so the
5
+ * `text-display-*` utilities are treated as part of the `font-size` conflict
6
+ * group. Without this, tailwind-merge wouldn't de-dupe e.g.
7
+ * `text-display-sm text-display-lg` down to the last one.
8
+ *
9
+ * Mirrors the `cx` helper from Untitled UI's Vite integration guide.
10
+ */
11
+ const twMerge = extendTailwindMerge({
12
+ extend: {
13
+ theme: {
14
+ text: ['display-xs', 'display-sm', 'display-md', 'display-lg', 'display-xl', 'display-2xl'],
15
+ },
16
+ },
17
+ });
18
+ /**
19
+ * Merge Tailwind class strings, resolving conflicts (last value wins). Accepts the
20
+ * same inputs as tailwind-merge — strings, arrays, and falsy values for
21
+ * conditionals — so it composes cleanly:
22
+ *
23
+ * cx('px-2', isActive && 'bg-primary', ['text-sm', null]);
24
+ *
25
+ * Pure JS with no DOM dependency, so the same helper works on web (PostCSS) and
26
+ * React Native (NativeWind). Imported by components as
27
+ * `@flipdish/ui-library/utilities/cx`.
28
+ */
29
+ const cx = twMerge;
30
+ /**
31
+ * Identity helper that exists only so Tailwind IntelliSense recognises and sorts
32
+ * the class strings held inside style-config objects (e.g. `tailwind-variants`
33
+ * slot maps). Returns its argument unchanged.
34
+ */
35
+ const sortCx = (classes) => classes;
36
+
37
+ export { cx, sortCx };
38
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/utilities/cx/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;;;;AAOG;AACH,MAAM,OAAO,GAAG,mBAAmB,CAAC;AAClC,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,CAAC,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,CAAC;AAC5F,SAAA;AACF,KAAA;AACF,CAAA,CAAC;AAEF;;;;;;;;;;AAUG;AACI,MAAM,EAAE,GAAG;AAKlB;;;;AAIG;AACI,MAAM,MAAM,GAAG,CAA4B,OAAU,KAAQ;;;;"}
@@ -0,0 +1,24 @@
1
+ import type React from 'react';
2
+ type ReactComponent = React.FC<any> | React.ComponentClass<any, any> | React.ForwardRefExoticComponent<any>;
3
+ /**
4
+ * Backs Untitled UI's `@/utils/is-react-component` import.
5
+ *
6
+ * Distinguishes a component passed as a prop (an icon `FC`, class component, or
7
+ * `forwardRef` object you instantiate) from an already-rendered element
8
+ * (handled via React's `isValidElement`). Untitled UI icon props accept either
9
+ * form; these guards select the "render it yourself" branch.
10
+ *
11
+ * Pure JS with no DOM dependency — works on web (PostCSS) and React Native
12
+ * (NativeWind). Imported by components as
13
+ * `@flipdish/ui-library/utilities/isReactComponent`.
14
+ */
15
+ /** Checks if a given value is a function component. */
16
+ export declare const isFunctionComponent: (component: any) => component is React.FC<any>;
17
+ /** Checks if a given value is a class component. */
18
+ export declare const isClassComponent: (component: any) => component is React.ComponentClass<any, any>;
19
+ /** Checks if a given value is a forward ref component. */
20
+ export declare const isForwardRefComponent: (component: any) => component is React.ForwardRefExoticComponent<any>;
21
+ /** Checks if a given value is a valid React component (FC, class, or forwardRef). */
22
+ export declare const isReactComponent: (component: any) => component is ReactComponent;
23
+ export {};
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/utilities/isReactComponent/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,KAAK,cAAc,GAAG,KAAK,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,GAAG,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAAC,CAAC;AAE5G;;;;;;;;;;;GAWG;AAEH,uDAAuD;AAEvD,eAAO,MAAM,mBAAmB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,EAAE,CAAC,GAAG,CAE7E,CAAC;AAEF,oDAAoD;AAEpD,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,cAAc,CAAC,GAAG,EAAE,GAAG,CAE3F,CAAC;AAEF,0DAA0D;AAE1D,eAAO,MAAM,qBAAqB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,KAAK,CAAC,yBAAyB,CAAC,GAAG,CAEtG,CAAC;AAEF,qFAAqF;AAErF,eAAO,MAAM,gBAAgB,GAAI,WAAW,GAAG,KAAG,SAAS,IAAI,cAE9D,CAAC"}
@@ -0,0 +1,35 @@
1
+ /**
2
+ * Backs Untitled UI's `@/utils/is-react-component` import.
3
+ *
4
+ * Distinguishes a component passed as a prop (an icon `FC`, class component, or
5
+ * `forwardRef` object you instantiate) from an already-rendered element
6
+ * (handled via React's `isValidElement`). Untitled UI icon props accept either
7
+ * form; these guards select the "render it yourself" branch.
8
+ *
9
+ * Pure JS with no DOM dependency — works on web (PostCSS) and React Native
10
+ * (NativeWind). Imported by components as
11
+ * `@flipdish/ui-library/utilities/isReactComponent`.
12
+ */
13
+ /** Checks if a given value is a function component. */
14
+ // biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
15
+ const isFunctionComponent = (component) => {
16
+ return typeof component === 'function';
17
+ };
18
+ /** Checks if a given value is a class component. */
19
+ // biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
20
+ const isClassComponent = (component) => {
21
+ return typeof component === 'function' && component.prototype && (!!component.prototype.isReactComponent || !!component.prototype.render);
22
+ };
23
+ /** Checks if a given value is a forward ref component. */
24
+ // biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
25
+ const isForwardRefComponent = (component) => {
26
+ return typeof component === 'object' && component !== null && component.$$typeof?.toString() === 'Symbol(react.forward_ref)';
27
+ };
28
+ /** Checks if a given value is a valid React component (FC, class, or forwardRef). */
29
+ // biome-ignore lint/suspicious/noExplicitAny: required for React component type guard
30
+ const isReactComponent = (component) => {
31
+ return isFunctionComponent(component) || isForwardRefComponent(component) || isClassComponent(component);
32
+ };
33
+
34
+ export { isClassComponent, isForwardRefComponent, isFunctionComponent, isReactComponent };
35
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../../../../../src/utilities/isReactComponent/index.ts"],"sourcesContent":[null],"names":[],"mappings":"AAMA;;;;;;;;;;;AAWG;AAEH;AACA;AACO,MAAM,mBAAmB,GAAG,CAAC,SAAc,KAAgC;AAChF,IAAA,OAAO,OAAO,SAAS,KAAK,UAAU;AACxC;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiD;IAC9F,OAAO,OAAO,SAAS,KAAK,UAAU,IAAI,SAAS,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,gBAAgB,IAAI,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,MAAM,CAAC;AAC3I;AAEA;AACA;AACO,MAAM,qBAAqB,GAAG,CAAC,SAAc,KAAuD;AACzG,IAAA,OAAO,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,IAAI,IAAI,SAAS,CAAC,QAAQ,EAAE,QAAQ,EAAE,KAAK,2BAA2B;AAC9H;AAEA;AACA;AACO,MAAM,gBAAgB,GAAG,CAAC,SAAc,KAAiC;AAC9E,IAAA,OAAO,mBAAmB,CAAC,SAAS,CAAC,IAAI,qBAAqB,CAAC,SAAS,CAAC,IAAI,gBAAgB,CAAC,SAAS,CAAC;AAC1G;;;;"}
@@ -0,0 +1,12 @@
1
+ /**
2
+ * `localStorageUtils` has no React Native implementation.
3
+ *
4
+ * This is a generated types-only stub (scripts/emit-native-stubs.mjs). It exists so
5
+ * that importing `@flipdish/ui-library/utilities/localStorageUtils` from React Native fails at
6
+ * compile time rather than resolving to the web build's types. There is no
7
+ * matching `index.js`, so Metro cannot bundle this module either.
8
+ *
9
+ * To make `localStorageUtils` available on React Native, add an `index.native.tsx` beside
10
+ * its `index.tsx` — the build picks it up automatically and this stub disappears.
11
+ */
12
+ export declare const __NO_REACT_NATIVE_IMPLEMENTATION__: never;