@lssm/lib.design-system 1.11.1 → 1.41.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 (299) hide show
  1. package/README.md +6 -1
  2. package/dist/_virtual/rolldown_runtime.js +9 -4
  3. package/dist/components/agent/ApprovalQueue.js +1 -1
  4. package/dist/components/atoms/Button.js +4 -5
  5. package/dist/components/atoms/ButtonLink.js +2 -2
  6. package/dist/components/atoms/Cta.js +4 -5
  7. package/dist/components/atoms/EmptyState.js +4 -4
  8. package/dist/components/atoms/ErrorState.js +1 -2
  9. package/dist/components/atoms/Input.js +5 -6
  10. package/dist/components/atoms/Link.js +1 -2
  11. package/dist/components/atoms/Link.web.js +4 -2
  12. package/dist/components/atoms/LoaderCircular.js +1 -2
  13. package/dist/components/atoms/Stepper.js +4 -4
  14. package/dist/components/atoms/Textarea.js +8 -9
  15. package/dist/components/data-view/DataViewRenderer.js +2 -2
  16. package/dist/components/forms/ActionForm.js +18 -0
  17. package/dist/components/forms/FormOneByOneLayout.js +3 -3
  18. package/dist/components/forms/FormStepsLayout.js +3 -3
  19. package/dist/components/forms/ZodForm.js +1 -1
  20. package/dist/components/legal/atoms/LegalCallout.js +1 -1
  21. package/dist/components/legal/atoms/LegalHeading.js +1 -1
  22. package/dist/components/legal/atoms/LegalList.js +1 -1
  23. package/dist/components/legal/atoms/LegalSection.js +1 -1
  24. package/dist/components/legal/atoms/LegalText.js +1 -1
  25. package/dist/components/legal/molecules/ContactFields.js +8 -8
  26. package/dist/components/legal/molecules/LegalTOC.js +1 -1
  27. package/dist/components/legal/organisms/ContactForm.js +3 -3
  28. package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
  29. package/dist/components/legal/templates/ContactTemplate.js +3 -3
  30. package/dist/components/marketing/MarketingCard.js +20 -0
  31. package/dist/components/marketing/MarketingCardsSection.js +28 -0
  32. package/dist/components/marketing/MarketingComparisonSection.js +52 -0
  33. package/dist/components/marketing/MarketingIconCard.js +73 -0
  34. package/dist/components/marketing/MarketingSection.js +61 -0
  35. package/dist/components/marketing/MarketingStepCard.js +36 -0
  36. package/dist/components/molecules/AiLinkButton.js +4 -4
  37. package/dist/components/molecules/Breadcrumbs.js +2 -2
  38. package/dist/components/molecules/CommandPalette.js +3 -3
  39. package/dist/components/molecules/CommandSearchTrigger.js +3 -3
  40. package/dist/components/molecules/FiltersToolbar.js +5 -5
  41. package/dist/components/molecules/HoverPreview.js +2 -2
  42. package/dist/components/molecules/LangSwitchDropdown.js +2 -2
  43. package/dist/components/molecules/LoaderBlock.js +1 -2
  44. package/dist/components/molecules/OverviewCard.js +5 -4
  45. package/dist/components/molecules/SkeletonBlock/index.web.js +1 -2
  46. package/dist/components/molecules/SkeletonCircle/index.web.js +1 -2
  47. package/dist/components/molecules/SkeletonList/index.web.js +4 -5
  48. package/dist/components/organisms/AcademyLayout.js +2 -2
  49. package/dist/components/organisms/AppLayout.js +2 -2
  50. package/dist/components/organisms/EmptySearchResult.js +5 -5
  51. package/dist/components/organisms/FAQSection.js +2 -2
  52. package/dist/components/organisms/Footer.js +2 -4
  53. package/dist/components/organisms/MarketingHeader.js +5 -5
  54. package/dist/components/organisms/MarketingHeaderMobile.js +2 -2
  55. package/dist/components/organisms/MarketingLayout.js +1 -0
  56. package/dist/components/templates/lists/ListPageTemplate/index.web.js +2 -2
  57. package/dist/hooks/useListUrlState.js +7 -7
  58. package/dist/index.js +9 -1
  59. package/dist/lib/keyboard.js +1 -172
  60. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +14 -0
  61. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +35 -0
  62. package/dist/node_modules/next/dist/client/add-base-path.js +30 -0
  63. package/dist/node_modules/next/dist/client/add-locale.js +29 -0
  64. package/dist/node_modules/next/dist/client/detect-domain-locale.js +26 -0
  65. package/dist/node_modules/next/dist/client/get-domain-locale.js +41 -0
  66. package/dist/node_modules/next/dist/client/has-base-path.js +28 -0
  67. package/dist/node_modules/next/dist/client/link.js +311 -0
  68. package/dist/node_modules/next/dist/client/normalize-locale-path.js +30 -0
  69. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +34 -0
  70. package/dist/node_modules/next/dist/client/request-idle-callback.js +44 -0
  71. package/dist/node_modules/next/dist/client/resolve-href.js +86 -0
  72. package/dist/node_modules/next/dist/client/use-intersection.js +104 -0
  73. package/dist/node_modules/next/dist/client/use-merged-ref.js +56 -0
  74. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +372 -0
  75. package/dist/node_modules/next/dist/lib/constants.js +316 -0
  76. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +69 -0
  77. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +23 -0
  78. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +22 -0
  79. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +42 -0
  80. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +23 -0
  81. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +23 -0
  82. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +30 -0
  83. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +24 -0
  84. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +41 -0
  85. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +78 -0
  86. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +151 -0
  87. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +77 -0
  88. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +32 -0
  89. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +92 -0
  90. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +41 -0
  91. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +26 -0
  92. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +31 -0
  93. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +24 -0
  94. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +33 -0
  95. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +36 -0
  96. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +24 -0
  97. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +56 -0
  98. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +26 -0
  99. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +94 -0
  100. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +46 -0
  101. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +203 -0
  102. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +167 -0
  103. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +20 -0
  104. package/dist/node_modules/next/dist/shared/lib/segment.js +80 -0
  105. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +25 -0
  106. package/dist/node_modules/next/dist/shared/lib/utils.js +172 -0
  107. package/dist/node_modules/next/link.js +12 -0
  108. package/dist/platform/useColorScheme.js +3 -3
  109. package/dist/platform/useReducedMotion.js +3 -3
  110. package/dist/platform/useResponsive.js +4 -4
  111. package/dist/renderers/form-contract.js +1 -1
  112. package/package.json +13 -304
  113. package/dist/components/agent/AgentMonitor.d.ts +0 -28
  114. package/dist/components/agent/ApprovalQueue.d.ts +0 -25
  115. package/dist/components/atoms/ActionButtons.d.ts +0 -25
  116. package/dist/components/atoms/Button.d.ts +0 -39
  117. package/dist/components/atoms/Button.mobile.d.ts +0 -21
  118. package/dist/components/atoms/Button.mobile.js +0 -34
  119. package/dist/components/atoms/ButtonLink.d.ts +0 -21
  120. package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
  121. package/dist/components/atoms/ButtonLink.mobile.js +0 -41
  122. package/dist/components/atoms/Cta.d.ts +0 -20
  123. package/dist/components/atoms/Cta.mobile.d.ts +0 -14
  124. package/dist/components/atoms/Cta.mobile.js +0 -38
  125. package/dist/components/atoms/DataChips.d.ts +0 -37
  126. package/dist/components/atoms/EmptyState.d.ts +0 -7
  127. package/dist/components/atoms/ErrorState.d.ts +0 -28
  128. package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
  129. package/dist/components/atoms/ErrorState.mobile.js +0 -41
  130. package/dist/components/atoms/Input.d.ts +0 -39
  131. package/dist/components/atoms/Input.mobile.d.ts +0 -37
  132. package/dist/components/atoms/Input.mobile.js +0 -27
  133. package/dist/components/atoms/Link.d.ts +0 -11
  134. package/dist/components/atoms/Link.native.d.ts +0 -1
  135. package/dist/components/atoms/Link.native.js +0 -0
  136. package/dist/components/atoms/Link.web.d.ts +0 -23
  137. package/dist/components/atoms/LoaderCircular.d.ts +0 -22
  138. package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
  139. package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
  140. package/dist/components/atoms/NavBrand.d.ts +0 -18
  141. package/dist/components/atoms/Stepper.d.ts +0 -7
  142. package/dist/components/atoms/Textarea.d.ts +0 -41
  143. package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
  144. package/dist/components/atoms/Textarea.mobile.js +0 -27
  145. package/dist/components/data-view/DataViewDetail.d.ts +0 -21
  146. package/dist/components/data-view/DataViewList.d.ts +0 -23
  147. package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
  148. package/dist/components/data-view/DataViewTable.d.ts +0 -25
  149. package/dist/components/data-view/utils.d.ts +0 -5
  150. package/dist/components/forms/FormCardLayout.d.ts +0 -22
  151. package/dist/components/forms/FormDialog.d.ts +0 -24
  152. package/dist/components/forms/FormLayout.d.ts +0 -29
  153. package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
  154. package/dist/components/forms/FormStepsLayout.d.ts +0 -26
  155. package/dist/components/forms/ZodForm.d.ts +0 -21
  156. package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
  157. package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
  158. package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
  159. package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
  160. package/dist/components/legal/atoms/LegalList.d.ts +0 -20
  161. package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
  162. package/dist/components/legal/atoms/LegalText.d.ts +0 -24
  163. package/dist/components/legal/molecules/Consent.d.ts +0 -35
  164. package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
  165. package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
  166. package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
  167. package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
  168. package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
  169. package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
  170. package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
  171. package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
  172. package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
  173. package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
  174. package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
  175. package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
  176. package/dist/components/molecules/AiLinkButton.d.ts +0 -15
  177. package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
  178. package/dist/components/molecules/CommandPalette.d.ts +0 -26
  179. package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
  180. package/dist/components/molecules/DropdownMenu.d.ts +0 -1
  181. package/dist/components/molecules/DropdownMenu.js +0 -0
  182. package/dist/components/molecules/EntityCard.d.ts +0 -37
  183. package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
  184. package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
  185. package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
  186. package/dist/components/molecules/HoverPreview.d.ts +0 -20
  187. package/dist/components/molecules/LangSwitch.d.ts +0 -22
  188. package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
  189. package/dist/components/molecules/LoaderBlock.d.ts +0 -18
  190. package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
  191. package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
  192. package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
  193. package/dist/components/molecules/NavItemCard.d.ts +0 -14
  194. package/dist/components/molecules/NavMain.d.ts +0 -13
  195. package/dist/components/molecules/NavUser.d.ts +0 -17
  196. package/dist/components/molecules/OverviewCard.d.ts +0 -20
  197. package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
  198. package/dist/components/molecules/SkeletonBlock/index.js +0 -3
  199. package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
  200. package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
  201. package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
  202. package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
  203. package/dist/components/molecules/SkeletonBlock/types.js +0 -0
  204. package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
  205. package/dist/components/molecules/SkeletonCircle/index.js +0 -3
  206. package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
  207. package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
  208. package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
  209. package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
  210. package/dist/components/molecules/SkeletonCircle/types.js +0 -0
  211. package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
  212. package/dist/components/molecules/SkeletonList/index.js +0 -3
  213. package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
  214. package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
  215. package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
  216. package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
  217. package/dist/components/molecules/SkeletonList/types.js +0 -0
  218. package/dist/components/molecules/StatCard.d.ts +0 -36
  219. package/dist/components/molecules/StatusChip.d.ts +0 -26
  220. package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
  221. package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
  222. package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
  223. package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
  224. package/dist/components/molecules/hover-previews/User.d.ts +0 -25
  225. package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
  226. package/dist/components/native/BottomTabs.mobile.js +0 -27
  227. package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
  228. package/dist/components/native/FlatListScreen.mobile.js +0 -63
  229. package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
  230. package/dist/components/native/SheetMenu.mobile.js +0 -21
  231. package/dist/components/organisms/AcademyLayout.d.ts +0 -29
  232. package/dist/components/organisms/AppHeader.d.ts +0 -18
  233. package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
  234. package/dist/components/organisms/AppHeader.mobile.js +0 -52
  235. package/dist/components/organisms/AppLayout.d.ts +0 -28
  236. package/dist/components/organisms/AppSidebar.d.ts +0 -23
  237. package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
  238. package/dist/components/organisms/AppSidebar.mobile.js +0 -0
  239. package/dist/components/organisms/EmptyDataList.d.ts +0 -20
  240. package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
  241. package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
  242. package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
  243. package/dist/components/organisms/EmptyDataList.types.js +0 -1
  244. package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
  245. package/dist/components/organisms/FAQSection.d.ts +0 -31
  246. package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
  247. package/dist/components/organisms/FeaturesSection.d.ts +0 -19
  248. package/dist/components/organisms/Footer.d.ts +0 -25
  249. package/dist/components/organisms/GridLayout.d.ts +0 -25
  250. package/dist/components/organisms/GridLayout.js +0 -28
  251. package/dist/components/organisms/Header.d.ts +0 -37
  252. package/dist/components/organisms/Header.mobile.d.ts +0 -24
  253. package/dist/components/organisms/Header.mobile.js +0 -18
  254. package/dist/components/organisms/HeroResponsive.d.ts +0 -14
  255. package/dist/components/organisms/HeroSection.d.ts +0 -29
  256. package/dist/components/organisms/ListCardPage.d.ts +0 -36
  257. package/dist/components/organisms/ListGridPage.d.ts +0 -36
  258. package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
  259. package/dist/components/organisms/ListTablePage.d.ts +0 -33
  260. package/dist/components/organisms/MarketingHeader.d.ts +0 -36
  261. package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
  262. package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
  263. package/dist/components/organisms/MarketingLayout.d.ts +0 -18
  264. package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
  265. package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
  266. package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
  267. package/dist/components/organisms/PricingCarousel.d.ts +0 -24
  268. package/dist/components/organisms/PricingSection.d.ts +0 -18
  269. package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
  270. package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
  271. package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
  272. package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
  273. package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
  274. package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
  275. package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
  276. package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
  277. package/dist/hooks/useListUrlState.d.ts +0 -30
  278. package/dist/index.d.ts +0 -108
  279. package/dist/lib/keyboard.d.ts +0 -14
  280. package/dist/lib/utils.d.ts +0 -6
  281. package/dist/platform/useColorScheme.d.ts +0 -5
  282. package/dist/platform/useColorScheme.mobile.d.ts +0 -5
  283. package/dist/platform/useColorScheme.mobile.js +0 -20
  284. package/dist/platform/useReducedMotion.d.ts +0 -4
  285. package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
  286. package/dist/platform/useReducedMotion.mobile.js +0 -28
  287. package/dist/platform/useResponsive.d.ts +0 -23
  288. package/dist/platform/useResponsive.mobile.d.ts +0 -23
  289. package/dist/platform/useResponsive.mobile.js +0 -42
  290. package/dist/platform/withPlatformUI.d.ts +0 -28
  291. package/dist/renderers/form-contract.d.ts +0 -11
  292. package/dist/renderers/index.d.ts +0 -2
  293. package/dist/renderers/index.js +0 -3
  294. package/dist/theme/tokenBridge.d.ts +0 -19
  295. package/dist/theme/tokens.d.ts +0 -50
  296. package/dist/theme/variants.d.ts +0 -21
  297. package/dist/types/nativewind-env.d.ts +0 -1
  298. package/dist/types/navigation.d.ts +0 -44
  299. package/dist/types/navigation.js +0 -1
@@ -1,34 +0,0 @@
1
- import "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { ActivityIndicator } from "react-native";
4
- import { Button as Button$1 } from "@lssm/lib.ui-kit/ui/button";
5
- import { HStack } from "@lssm/lib.ui-kit/ui/stack";
6
- import { Text as Text$1 } from "@lssm/lib.ui-kit/ui/text";
7
-
8
- //#region src/components/atoms/Button.mobile.tsx
9
- function Button({ children, loading, loadingText, spinnerPlacement = "start", disabled, ...props }) {
10
- const isDisabled = Boolean(disabled || loading);
11
- const content = loading ? /* @__PURE__ */ jsxs(HStack, {
12
- className: "items-center gap-x-2",
13
- children: [
14
- spinnerPlacement === "start" ? /* @__PURE__ */ jsx(ActivityIndicator, {
15
- size: "small",
16
- color: props.variant === "outline" ? "#6b7280" : "#ffffff"
17
- }) : null,
18
- /* @__PURE__ */ jsx(Text$1, { children: loadingText || "Loading…" }),
19
- spinnerPlacement === "end" ? /* @__PURE__ */ jsx(ActivityIndicator, {
20
- size: "small",
21
- color: props.variant === "outline" ? "#6b7280" : "#ffffff"
22
- }) : null
23
- ]
24
- }) : children;
25
- return /* @__PURE__ */ jsx(Button$1, {
26
- disabled: isDisabled,
27
- ...props,
28
- children: content
29
- });
30
- }
31
- var Button_mobile_default = Button;
32
-
33
- //#endregion
34
- export { Button, Button_mobile_default as default };
@@ -1,21 +0,0 @@
1
- import { ButtonProps } from "./Button.js";
2
- import { LinkProps } from "./Link.web.js";
3
- import * as react_jsx_runtime0 from "react/jsx-runtime";
4
-
5
- //#region src/components/atoms/ButtonLink.d.ts
6
- type ButtonLinkProps = ButtonProps & Pick<LinkProps, 'href' | 'target' | 'rel' | 'onClick'> & {
7
- replace?: boolean;
8
- };
9
- declare function ButtonLink({
10
- href,
11
- target,
12
- rel,
13
- replace,
14
- loading,
15
- disabled,
16
- children,
17
- onClick,
18
- ...btn
19
- }: ButtonLinkProps): react_jsx_runtime0.JSX.Element;
20
- //#endregion
21
- export { ButtonLink, ButtonLink as default, ButtonLinkProps };
@@ -1,19 +0,0 @@
1
- import { ButtonProps } from "./Button.mobile.js";
2
- import * as react_jsx_runtime31 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/ButtonLink.mobile.d.ts
5
- type ButtonLinkProps = Omit<ButtonProps, 'onPress'> & {
6
- href: string;
7
- replace?: boolean;
8
- };
9
- declare function ButtonLink({
10
- href,
11
- replace,
12
- loading,
13
- disabled,
14
- onPressIn,
15
- onPressOut,
16
- ...btn
17
- }: ButtonLinkProps): react_jsx_runtime31.JSX.Element;
18
- //#endregion
19
- export { ButtonLink, ButtonLink as default, ButtonLinkProps };
@@ -1,41 +0,0 @@
1
- import { __require } from "../../_virtual/rolldown_runtime.js";
2
- import { Button } from "./Button.mobile.js";
3
- import * as React$1 from "react";
4
- import { jsx } from "react/jsx-runtime";
5
- import { Linking } from "react-native";
6
-
7
- //#region src/components/atoms/ButtonLink.mobile.tsx
8
- function ButtonLink({ href, replace, loading, disabled, onPressIn, onPressOut, ...btn }) {
9
- const blocked = Boolean(disabled || loading);
10
- const handlePress = React$1.useCallback(() => {
11
- if (blocked) return;
12
- try {
13
- const ExpoRouter = __require("expo-router");
14
- if (ExpoRouter?.Link) {
15
- const router = ExpoRouter.router ?? ExpoRouter.useRouter?.();
16
- if (router?.replace && replace) router.replace(href);
17
- else if (router?.push) router.push(href);
18
- else Linking.openURL(href);
19
- return;
20
- }
21
- } catch {}
22
- Linking.openURL(href);
23
- }, [
24
- blocked,
25
- href,
26
- replace
27
- ]);
28
- return /* @__PURE__ */ jsx(Button, {
29
- ...btn,
30
- onPress: handlePress,
31
- loading,
32
- disabled,
33
- onPressIn,
34
- onPressOut,
35
- children: btn.children
36
- });
37
- }
38
- var ButtonLink_mobile_default = ButtonLink;
39
-
40
- //#endregion
41
- export { ButtonLink, ButtonLink_mobile_default as default };
@@ -1,20 +0,0 @@
1
- import { ButtonProps } from "./Button.js";
2
- import * as React$1 from "react";
3
- import { VariantProps } from "class-variance-authority";
4
- import * as class_variance_authority_types1 from "class-variance-authority/types";
5
-
6
- //#region src/components/atoms/Cta.d.ts
7
- declare const ctaVariants: (props?: ({
8
- size?: "sm" | "md" | "lg" | "touch" | null | undefined;
9
- emphasis?: "default" | "subtle" | "strong" | null | undefined;
10
- } & class_variance_authority_types1.ClassProp) | undefined) => string;
11
- type CtaProps = ButtonProps & VariantProps<typeof ctaVariants> & {
12
- capture?: (cta: string) => void;
13
- ctaName?: string;
14
- as?: 'button' | 'a';
15
- href?: string;
16
- children?: React$1.ReactNode;
17
- };
18
- declare const Cta: React$1.ForwardRefExoticComponent<Omit<CtaProps, "ref"> & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
19
- //#endregion
20
- export { Cta, CtaProps };
@@ -1,14 +0,0 @@
1
- import { ButtonProps } from "./Button.js";
2
- import * as React$1 from "react";
3
-
4
- //#region src/components/atoms/Cta.mobile.d.ts
5
- type CtaProps = ButtonProps & {
6
- capture?: (cta: string) => void;
7
- ctaName?: string;
8
- as?: 'button' | 'a';
9
- href?: string;
10
- children?: React$1.ReactNode;
11
- };
12
- declare const Cta: React$1.ForwardRefExoticComponent<Omit<CtaProps, "ref"> & React$1.RefAttributes<unknown>>;
13
- //#endregion
14
- export { Cta, CtaProps };
@@ -1,38 +0,0 @@
1
- 'use client';
2
-
3
- import { __require } from "../../_virtual/rolldown_runtime.js";
4
- import { Button } from "./Button.js";
5
- import * as React$1 from "react";
6
- import { jsx } from "react/jsx-runtime";
7
-
8
- //#region src/components/atoms/Cta.mobile.tsx
9
- const Cta = React$1.forwardRef(({ capture, ctaName, size = "touch", onClick, children, ...props }, ref) => {
10
- const handlePress = () => {
11
- try {
12
- if (ctaName) {
13
- if (capture) capture(ctaName);
14
- let ph;
15
- try {
16
- ph = __require("posthog-react-native").default ?? __require("posthog-react-native");
17
- } catch {}
18
- if (ph && typeof ph.capture === "function") ph.capture("cta_click", { cta: ctaName });
19
- else {
20
- const globalPh = globalThis.posthog;
21
- if (globalPh && typeof globalPh.capture === "function") globalPh.capture("cta_click", { cta: ctaName });
22
- }
23
- }
24
- } catch {}
25
- onClick?.();
26
- };
27
- return /* @__PURE__ */ jsx(Button, {
28
- size,
29
- onPress: handlePress,
30
- ref,
31
- ...props,
32
- children
33
- });
34
- });
35
- Cta.displayName = "Cta";
36
-
37
- //#endregion
38
- export { Cta };
@@ -1,37 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime15 from "react/jsx-runtime";
3
- import { VariantProps } from "class-variance-authority";
4
- import * as class_variance_authority_types2 from "class-variance-authority/types";
5
-
6
- //#region src/components/atoms/DataChips.d.ts
7
- declare const chip: (props?: ({
8
- size?: "sm" | "md" | null | undefined;
9
- tone?: "default" | "muted" | null | undefined;
10
- } & class_variance_authority_types2.ClassProp) | undefined) => string;
11
- type ChipVariants = VariantProps<typeof chip>;
12
- declare function DateChip({
13
- value,
14
- ...v
15
- }: {
16
- value?: string | Date | null;
17
- } & ChipVariants): react_jsx_runtime15.JSX.Element | null;
18
- declare function TimeChip({
19
- value,
20
- ...v
21
- }: {
22
- value?: string | Date | null;
23
- } & ChipVariants): react_jsx_runtime15.JSX.Element | null;
24
- declare function PlaceChip({
25
- label,
26
- ...v
27
- }: {
28
- label?: React$1.ReactNode;
29
- } & ChipVariants): react_jsx_runtime15.JSX.Element | null;
30
- declare function DurationChip({
31
- minutes,
32
- ...v
33
- }: {
34
- minutes?: number | null;
35
- } & ChipVariants): react_jsx_runtime15.JSX.Element | null;
36
- //#endregion
37
- export { ChipVariants, DateChip, DurationChip, PlaceChip, TimeChip };
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime19 from "react/jsx-runtime";
2
- import { EmptyStateProps } from "@lssm/lib.ui-kit-web/ui/empty-state";
3
-
4
- //#region src/components/atoms/EmptyState.d.ts
5
- declare function EmptyState(props: EmptyStateProps): react_jsx_runtime19.JSX.Element;
6
- //#endregion
7
- export { EmptyState };
@@ -1,28 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime20 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/ErrorState.d.ts
5
- interface ErrorStateProps {
6
- title?: React$1.ReactNode;
7
- description?: React$1.ReactNode;
8
- icon?: React$1.ReactNode;
9
- onRetry?: () => void;
10
- retryLabel?: React$1.ReactNode;
11
- supportHref?: string;
12
- onContactSupport?: () => void;
13
- supportLabel?: React$1.ReactNode;
14
- className?: string;
15
- }
16
- declare function ErrorState({
17
- title,
18
- description,
19
- icon,
20
- onRetry,
21
- retryLabel,
22
- supportHref,
23
- onContactSupport,
24
- supportLabel,
25
- className
26
- }: ErrorStateProps): react_jsx_runtime20.JSX.Element;
27
- //#endregion
28
- export { ErrorState, ErrorState as default, ErrorStateProps };
@@ -1,28 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime27 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/ErrorState.mobile.d.ts
5
- interface ErrorStateProps {
6
- title?: React$1.ReactNode;
7
- description?: React$1.ReactNode;
8
- icon?: React$1.ReactNode;
9
- onRetry?: () => void;
10
- retryLabel?: React$1.ReactNode;
11
- supportHref?: string;
12
- onContactSupport?: () => void;
13
- supportLabel?: React$1.ReactNode;
14
- className?: string;
15
- }
16
- declare function ErrorState({
17
- title,
18
- description,
19
- icon,
20
- onRetry,
21
- retryLabel,
22
- supportHref,
23
- onContactSupport,
24
- supportLabel,
25
- className
26
- }: ErrorStateProps): react_jsx_runtime27.JSX.Element;
27
- //#endregion
28
- export { ErrorState, ErrorState as default, ErrorStateProps };
@@ -1,41 +0,0 @@
1
- import { Button } from "./Button.mobile.js";
2
- import * as React$1 from "react";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- import { Linking, Text, View } from "react-native";
5
-
6
- //#region src/components/atoms/ErrorState.mobile.tsx
7
- function ErrorState({ title = "Something went wrong", description, icon, onRetry, retryLabel = "Retry", supportHref, onContactSupport, supportLabel = "Contact support", className }) {
8
- const onSupport = React$1.useCallback(() => {
9
- if (supportHref) Linking.openURL(supportHref).catch(() => {});
10
- else onContactSupport?.();
11
- }, [supportHref, onContactSupport]);
12
- return /* @__PURE__ */ jsxs(View, {
13
- className: ["items-center p-6", className].filter(Boolean).join(" "),
14
- children: [
15
- icon,
16
- /* @__PURE__ */ jsx(Text, {
17
- className: "text-lg font-medium",
18
- children: title
19
- }),
20
- description ? /* @__PURE__ */ jsx(Text, {
21
- className: "text-muted-foreground mt-1 text-base",
22
- children: description
23
- }) : null,
24
- /* @__PURE__ */ jsxs(View, {
25
- className: "mt-3 flex-row items-center gap-2",
26
- children: [onRetry ? /* @__PURE__ */ jsx(Button, {
27
- onPress: onRetry,
28
- children: retryLabel
29
- }) : null, /* @__PURE__ */ jsx(Button, {
30
- variant: "ghost",
31
- onPress: onSupport,
32
- children: supportLabel
33
- })]
34
- })
35
- ]
36
- });
37
- }
38
- var ErrorState_mobile_default = ErrorState;
39
-
40
- //#endregion
41
- export { ErrorState, ErrorState_mobile_default as default };
@@ -1,39 +0,0 @@
1
- import { KeyboardOptions } from "../../lib/keyboard.js";
2
- import * as react_jsx_runtime1 from "react/jsx-runtime";
3
- import { InputProps as InputProps$1 } from "@lssm/lib.ui-kit-web/ui/input";
4
-
5
- //#region src/components/atoms/Input.d.ts
6
- interface BaseFieldProps {
7
- value?: string | number;
8
- defaultValue?: string | number;
9
- onChange?: (text: string) => void;
10
- onSubmit?: () => void;
11
- onFocus?: () => void;
12
- onBlur?: () => void;
13
- placeholder?: string;
14
- disabled?: boolean;
15
- readOnly?: boolean;
16
- maxLength?: number;
17
- name?: string;
18
- className?: string;
19
- keyboard?: KeyboardOptions;
20
- }
21
- type InputProps = Omit<InputProps$1, 'onChange' | 'value' | 'defaultValue' | 'input'> & BaseFieldProps;
22
- declare function Input({
23
- value,
24
- defaultValue,
25
- onChange,
26
- onSubmit,
27
- onFocus,
28
- onBlur,
29
- placeholder,
30
- disabled,
31
- readOnly,
32
- maxLength,
33
- name,
34
- className,
35
- keyboard,
36
- ...rest
37
- }: InputProps): react_jsx_runtime1.JSX.Element;
38
- //#endregion
39
- export { Input, Input as default, InputProps };
@@ -1,37 +0,0 @@
1
- import { KeyboardOptions } from "../../lib/keyboard.js";
2
- import * as React$1 from "react";
3
- import * as react_jsx_runtime32 from "react/jsx-runtime";
4
- import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
5
-
6
- //#region src/components/atoms/Input.mobile.d.ts
7
- interface BaseFieldProps {
8
- value?: string;
9
- defaultValue?: string;
10
- onChange?: (text: string) => void;
11
- onSubmit?: () => void;
12
- onFocus?: () => void;
13
- onBlur?: () => void;
14
- placeholder?: string;
15
- disabled?: boolean;
16
- maxLength?: number;
17
- className?: string;
18
- keyboard?: KeyboardOptions;
19
- }
20
- type NativeInputComponentProps = React$1.ComponentProps<typeof Input$1>;
21
- type InputProps = Omit<NativeInputComponentProps, 'onChangeText' | 'value' | 'defaultValue'> & BaseFieldProps;
22
- declare function Input({
23
- value,
24
- defaultValue,
25
- onChange,
26
- onSubmit,
27
- onFocus,
28
- onBlur,
29
- placeholder,
30
- disabled,
31
- maxLength,
32
- className,
33
- keyboard,
34
- ...rest
35
- }: InputProps): react_jsx_runtime32.JSX.Element;
36
- //#endregion
37
- export { Input, Input as default, InputProps };
@@ -1,27 +0,0 @@
1
- import { mapKeyboardToNative } from "../../lib/keyboard.js";
2
- import "react";
3
- import { jsx } from "react/jsx-runtime";
4
- import { Input as Input$1 } from "@lssm/lib.ui-kit/ui/input";
5
-
6
- //#region src/components/atoms/Input.mobile.tsx
7
- function Input({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, maxLength, className, keyboard, ...rest }) {
8
- const nativeKeyboard = mapKeyboardToNative(keyboard);
9
- return /* @__PURE__ */ jsx(Input$1, {
10
- ...rest,
11
- className,
12
- value,
13
- defaultValue,
14
- onChangeText: onChange,
15
- onSubmitEditing: onSubmit,
16
- onFocus,
17
- onBlur,
18
- placeholder,
19
- editable: !disabled,
20
- maxLength,
21
- ...nativeKeyboard
22
- });
23
- }
24
- var Input_mobile_default = Input;
25
-
26
- //#endregion
27
- export { Input, Input_mobile_default as default };
@@ -1,11 +0,0 @@
1
- import { AnchorHTMLAttributes } from "react";
2
- import * as react_jsx_runtime28 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/Link.d.ts
5
- type LinkProps = AnchorHTMLAttributes<HTMLAnchorElement>;
6
- declare function Link({
7
- children,
8
- ...props
9
- }: LinkProps): react_jsx_runtime28.JSX.Element;
10
- //#endregion
11
- export { Link, Link as default, LinkProps };
@@ -1 +0,0 @@
1
- export { };
File without changes
@@ -1,23 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime29 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/Link.web.d.ts
5
- type LinkProps = {
6
- href: any;
7
- children?: React$1.ReactNode;
8
- className?: string;
9
- prefetch?: boolean;
10
- replace?: boolean;
11
- scroll?: boolean;
12
- shallow?: boolean;
13
- target?: string;
14
- rel?: string;
15
- onClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
16
- } & Record<string, any>;
17
- declare function Link({
18
- href,
19
- children,
20
- ...props
21
- }: LinkProps): react_jsx_runtime29.JSX.Element;
22
- //#endregion
23
- export { Link, LinkProps };
@@ -1,22 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime25 from "react/jsx-runtime";
3
- import { VariantProps } from "class-variance-authority";
4
- import * as class_variance_authority_types3 from "class-variance-authority/types";
5
-
6
- //#region src/components/atoms/LoaderCircular.d.ts
7
- declare const spinnerVariants: (props?: ({
8
- size?: "sm" | "md" | "lg" | null | undefined;
9
- tone?: "default" | "muted" | null | undefined;
10
- } & class_variance_authority_types3.ClassProp) | undefined) => string;
11
- type LoaderCircularProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
12
- label?: React$1.ReactNode;
13
- };
14
- declare function LoaderCircular({
15
- size,
16
- tone,
17
- label,
18
- className,
19
- ...props
20
- }: LoaderCircularProps): react_jsx_runtime25.JSX.Element;
21
- //#endregion
22
- export { LoaderCircular, LoaderCircular as default, LoaderCircularProps };
@@ -1,17 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime24 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/LoaderCircular.mobile.d.ts
5
- interface LoaderCircularProps {
6
- size?: 'sm' | 'md' | 'lg';
7
- tone?: 'default' | 'muted';
8
- label?: React$1.ReactNode;
9
- className?: string;
10
- }
11
- declare function LoaderCircular({
12
- size,
13
- label,
14
- className
15
- }: LoaderCircularProps): react_jsx_runtime24.JSX.Element;
16
- //#endregion
17
- export { LoaderCircular, LoaderCircular as default, LoaderCircularProps };
@@ -1,26 +0,0 @@
1
- import "react";
2
- import { jsx, jsxs } from "react/jsx-runtime";
3
- import { ActivityIndicator, Text, View } from "react-native";
4
-
5
- //#region src/components/atoms/LoaderCircular.mobile.tsx
6
- function toNativeSize(size) {
7
- switch (size) {
8
- case "sm": return "small";
9
- case "lg": return "large";
10
- case "md":
11
- default: return "small";
12
- }
13
- }
14
- function LoaderCircular({ size = "md", label, className }) {
15
- return /* @__PURE__ */ jsxs(View, {
16
- className: ["inline-flex flex-row items-center gap-2", className].filter(Boolean).join(" "),
17
- children: [/* @__PURE__ */ jsx(ActivityIndicator, { size: toNativeSize(size) }), label ? /* @__PURE__ */ jsx(Text, {
18
- className: "text-muted-foreground text-base",
19
- children: label
20
- }) : null]
21
- });
22
- }
23
- var LoaderCircular_mobile_default = LoaderCircular;
24
-
25
- //#endregion
26
- export { LoaderCircular, LoaderCircular_mobile_default as default };
@@ -1,18 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime23 from "react/jsx-runtime";
3
-
4
- //#region src/components/atoms/NavBrand.d.ts
5
- interface NavBrandProps {
6
- href?: string;
7
- logo?: React$1.ReactNode;
8
- title?: React$1.ReactNode;
9
- className?: string;
10
- }
11
- declare function NavBrand({
12
- href,
13
- logo,
14
- title,
15
- className
16
- }: NavBrandProps): react_jsx_runtime23.JSX.Element;
17
- //#endregion
18
- export { NavBrand, NavBrandProps };
@@ -1,7 +0,0 @@
1
- import * as react_jsx_runtime4 from "react/jsx-runtime";
2
- import { StepperProps } from "@lssm/lib.ui-kit-web/ui/stepper";
3
-
4
- //#region src/components/atoms/Stepper.d.ts
5
- declare function Stepper(props: StepperProps): react_jsx_runtime4.JSX.Element;
6
- //#endregion
7
- export { Stepper };
@@ -1,41 +0,0 @@
1
- import { KeyboardOptions } from "../../lib/keyboard.js";
2
- import * as react_jsx_runtime3 from "react/jsx-runtime";
3
- import { TextareaProps as TextareaProps$1 } from "@lssm/lib.ui-kit-web/ui/textarea";
4
-
5
- //#region src/components/atoms/Textarea.d.ts
6
- interface BaseFieldProps {
7
- value?: string;
8
- defaultValue?: string;
9
- onChange?: (text: string) => void;
10
- onSubmit?: () => void;
11
- onFocus?: () => void;
12
- onBlur?: () => void;
13
- placeholder?: string;
14
- disabled?: boolean;
15
- readOnly?: boolean;
16
- maxLength?: number;
17
- name?: string;
18
- className?: string;
19
- rows?: number;
20
- keyboard?: KeyboardOptions;
21
- }
22
- type TextareaProps = Omit<TextareaProps$1, 'onChange' | 'value' | 'defaultValue'> & BaseFieldProps;
23
- declare function Textarea({
24
- value,
25
- defaultValue,
26
- onChange,
27
- onSubmit,
28
- onFocus,
29
- onBlur,
30
- placeholder,
31
- disabled,
32
- readOnly,
33
- maxLength,
34
- name,
35
- className,
36
- rows,
37
- keyboard,
38
- ...rest
39
- }: TextareaProps): react_jsx_runtime3.JSX.Element;
40
- //#endregion
41
- export { Textarea, Textarea as default, TextareaProps };
@@ -1,37 +0,0 @@
1
- import { KeyboardOptions } from "../../lib/keyboard.js";
2
- import * as React$1 from "react";
3
- import * as react_jsx_runtime22 from "react/jsx-runtime";
4
- import { Textarea as Textarea$1 } from "@lssm/lib.ui-kit/ui/textarea";
5
-
6
- //#region src/components/atoms/Textarea.mobile.d.ts
7
- interface BaseFieldProps {
8
- value?: string;
9
- defaultValue?: string;
10
- onChange?: (text: string) => void;
11
- onSubmit?: () => void;
12
- onFocus?: () => void;
13
- onBlur?: () => void;
14
- placeholder?: string;
15
- disabled?: boolean;
16
- maxLength?: number;
17
- className?: string;
18
- keyboard?: KeyboardOptions;
19
- }
20
- type NativeTextareaComponentProps = React$1.ComponentProps<typeof Textarea$1>;
21
- type TextareaProps = Omit<NativeTextareaComponentProps, 'onChangeText' | 'value' | 'defaultValue'> & BaseFieldProps;
22
- declare function Textarea({
23
- value,
24
- defaultValue,
25
- onChange,
26
- onSubmit,
27
- onFocus,
28
- onBlur,
29
- placeholder,
30
- disabled,
31
- maxLength,
32
- className,
33
- keyboard,
34
- ...rest
35
- }: TextareaProps): react_jsx_runtime22.JSX.Element;
36
- //#endregion
37
- export { Textarea, Textarea as default, TextareaProps };