@lssm/lib.design-system 1.11.1 → 1.41.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (251) 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/platform/useColorScheme.js +3 -3
  61. package/dist/platform/useReducedMotion.js +3 -3
  62. package/dist/platform/useResponsive.js +4 -4
  63. package/dist/renderers/form-contract.js +1 -1
  64. package/package.json +14 -304
  65. package/dist/components/agent/AgentMonitor.d.ts +0 -28
  66. package/dist/components/agent/ApprovalQueue.d.ts +0 -25
  67. package/dist/components/atoms/ActionButtons.d.ts +0 -25
  68. package/dist/components/atoms/Button.d.ts +0 -39
  69. package/dist/components/atoms/Button.mobile.d.ts +0 -21
  70. package/dist/components/atoms/Button.mobile.js +0 -34
  71. package/dist/components/atoms/ButtonLink.d.ts +0 -21
  72. package/dist/components/atoms/ButtonLink.mobile.d.ts +0 -19
  73. package/dist/components/atoms/ButtonLink.mobile.js +0 -41
  74. package/dist/components/atoms/Cta.d.ts +0 -20
  75. package/dist/components/atoms/Cta.mobile.d.ts +0 -14
  76. package/dist/components/atoms/Cta.mobile.js +0 -38
  77. package/dist/components/atoms/DataChips.d.ts +0 -37
  78. package/dist/components/atoms/EmptyState.d.ts +0 -7
  79. package/dist/components/atoms/ErrorState.d.ts +0 -28
  80. package/dist/components/atoms/ErrorState.mobile.d.ts +0 -28
  81. package/dist/components/atoms/ErrorState.mobile.js +0 -41
  82. package/dist/components/atoms/Input.d.ts +0 -39
  83. package/dist/components/atoms/Input.mobile.d.ts +0 -37
  84. package/dist/components/atoms/Input.mobile.js +0 -27
  85. package/dist/components/atoms/Link.d.ts +0 -11
  86. package/dist/components/atoms/Link.native.d.ts +0 -1
  87. package/dist/components/atoms/Link.native.js +0 -0
  88. package/dist/components/atoms/Link.web.d.ts +0 -23
  89. package/dist/components/atoms/LoaderCircular.d.ts +0 -22
  90. package/dist/components/atoms/LoaderCircular.mobile.d.ts +0 -17
  91. package/dist/components/atoms/LoaderCircular.mobile.js +0 -26
  92. package/dist/components/atoms/NavBrand.d.ts +0 -18
  93. package/dist/components/atoms/Stepper.d.ts +0 -7
  94. package/dist/components/atoms/Textarea.d.ts +0 -41
  95. package/dist/components/atoms/Textarea.mobile.d.ts +0 -37
  96. package/dist/components/atoms/Textarea.mobile.js +0 -27
  97. package/dist/components/data-view/DataViewDetail.d.ts +0 -21
  98. package/dist/components/data-view/DataViewList.d.ts +0 -23
  99. package/dist/components/data-view/DataViewRenderer.d.ts +0 -47
  100. package/dist/components/data-view/DataViewTable.d.ts +0 -25
  101. package/dist/components/data-view/utils.d.ts +0 -5
  102. package/dist/components/forms/FormCardLayout.d.ts +0 -22
  103. package/dist/components/forms/FormDialog.d.ts +0 -24
  104. package/dist/components/forms/FormLayout.d.ts +0 -29
  105. package/dist/components/forms/FormOneByOneLayout.d.ts +0 -25
  106. package/dist/components/forms/FormStepsLayout.d.ts +0 -26
  107. package/dist/components/forms/ZodForm.d.ts +0 -21
  108. package/dist/components/legal/atoms/DefinitionList.d.ts +0 -16
  109. package/dist/components/legal/atoms/KeyValueList.d.ts +0 -16
  110. package/dist/components/legal/atoms/LegalCallout.d.ts +0 -17
  111. package/dist/components/legal/atoms/LegalHeading.d.ts +0 -24
  112. package/dist/components/legal/atoms/LegalList.d.ts +0 -20
  113. package/dist/components/legal/atoms/LegalSection.d.ts +0 -21
  114. package/dist/components/legal/atoms/LegalText.d.ts +0 -24
  115. package/dist/components/legal/molecules/Consent.d.ts +0 -35
  116. package/dist/components/legal/molecules/ContactFields.d.ts +0 -24
  117. package/dist/components/legal/molecules/LegalMeta.d.ts +0 -14
  118. package/dist/components/legal/molecules/LegalTOC.d.ts +0 -30
  119. package/dist/components/legal/organisms/ContactForm.d.ts +0 -29
  120. package/dist/components/legal/organisms/GDPRDataRequest.d.ts +0 -18
  121. package/dist/components/legal/organisms/GDPRRights.d.ts +0 -13
  122. package/dist/components/legal/organisms/LegalPageLayout.d.ts +0 -23
  123. package/dist/components/legal/templates/ContactTemplate.d.ts +0 -23
  124. package/dist/components/legal/templates/CookiesTemplate.d.ts +0 -32
  125. package/dist/components/legal/templates/PrivacyTemplate.d.ts +0 -32
  126. package/dist/components/legal/templates/SalesTermsTemplate.d.ts +0 -27
  127. package/dist/components/legal/templates/TermsTemplate.d.ts +0 -27
  128. package/dist/components/molecules/AiLinkButton.d.ts +0 -15
  129. package/dist/components/molecules/Breadcrumbs.d.ts +0 -15
  130. package/dist/components/molecules/CommandPalette.d.ts +0 -26
  131. package/dist/components/molecules/CommandSearchTrigger.d.ts +0 -18
  132. package/dist/components/molecules/DropdownMenu.d.ts +0 -1
  133. package/dist/components/molecules/DropdownMenu.js +0 -0
  134. package/dist/components/molecules/EntityCard.d.ts +0 -37
  135. package/dist/components/molecules/FiltersToolbar.d.ts +0 -35
  136. package/dist/components/molecules/FiltersToolbar.mobile.d.ts +0 -18
  137. package/dist/components/molecules/FiltersToolbar.mobile.js +0 -48
  138. package/dist/components/molecules/HoverPreview.d.ts +0 -20
  139. package/dist/components/molecules/LangSwitch.d.ts +0 -22
  140. package/dist/components/molecules/LangSwitchDropdown.d.ts +0 -21
  141. package/dist/components/molecules/LoaderBlock.d.ts +0 -18
  142. package/dist/components/molecules/LoaderBlock.mobile.d.ts +0 -18
  143. package/dist/components/molecules/LoaderBlock.mobile.js +0 -25
  144. package/dist/components/molecules/MobileNavMenu.d.ts +0 -13
  145. package/dist/components/molecules/NavItemCard.d.ts +0 -14
  146. package/dist/components/molecules/NavMain.d.ts +0 -13
  147. package/dist/components/molecules/NavUser.d.ts +0 -17
  148. package/dist/components/molecules/OverviewCard.d.ts +0 -20
  149. package/dist/components/molecules/SkeletonBlock/index.d.ts +0 -3
  150. package/dist/components/molecules/SkeletonBlock/index.js +0 -3
  151. package/dist/components/molecules/SkeletonBlock/index.mobile.d.ts +0 -12
  152. package/dist/components/molecules/SkeletonBlock/index.mobile.js +0 -18
  153. package/dist/components/molecules/SkeletonBlock/index.web.d.ts +0 -12
  154. package/dist/components/molecules/SkeletonBlock/types.d.ts +0 -9
  155. package/dist/components/molecules/SkeletonBlock/types.js +0 -0
  156. package/dist/components/molecules/SkeletonCircle/index.d.ts +0 -3
  157. package/dist/components/molecules/SkeletonCircle/index.js +0 -3
  158. package/dist/components/molecules/SkeletonCircle/index.mobile.d.ts +0 -11
  159. package/dist/components/molecules/SkeletonCircle/index.mobile.js +0 -23
  160. package/dist/components/molecules/SkeletonCircle/index.web.d.ts +0 -11
  161. package/dist/components/molecules/SkeletonCircle/types.d.ts +0 -8
  162. package/dist/components/molecules/SkeletonCircle/types.js +0 -0
  163. package/dist/components/molecules/SkeletonList/index.d.ts +0 -3
  164. package/dist/components/molecules/SkeletonList/index.js +0 -3
  165. package/dist/components/molecules/SkeletonList/index.mobile.d.ts +0 -10
  166. package/dist/components/molecules/SkeletonList/index.mobile.js +0 -22
  167. package/dist/components/molecules/SkeletonList/index.web.d.ts +0 -10
  168. package/dist/components/molecules/SkeletonList/types.d.ts +0 -7
  169. package/dist/components/molecules/SkeletonList/types.js +0 -0
  170. package/dist/components/molecules/StatCard.d.ts +0 -36
  171. package/dist/components/molecules/StatusChip.d.ts +0 -26
  172. package/dist/components/molecules/hover-previews/Doc.d.ts +0 -27
  173. package/dist/components/molecules/hover-previews/Media.d.ts +0 -20
  174. package/dist/components/molecules/hover-previews/Simple.d.ts +0 -25
  175. package/dist/components/molecules/hover-previews/Stats.d.ts +0 -22
  176. package/dist/components/molecules/hover-previews/User.d.ts +0 -25
  177. package/dist/components/native/BottomTabs.mobile.d.ts +0 -20
  178. package/dist/components/native/BottomTabs.mobile.js +0 -27
  179. package/dist/components/native/FlatListScreen.mobile.d.ts +0 -43
  180. package/dist/components/native/FlatListScreen.mobile.js +0 -63
  181. package/dist/components/native/SheetMenu.mobile.d.ts +0 -17
  182. package/dist/components/native/SheetMenu.mobile.js +0 -21
  183. package/dist/components/organisms/AcademyLayout.d.ts +0 -29
  184. package/dist/components/organisms/AppHeader.d.ts +0 -18
  185. package/dist/components/organisms/AppHeader.mobile.d.ts +0 -21
  186. package/dist/components/organisms/AppHeader.mobile.js +0 -52
  187. package/dist/components/organisms/AppLayout.d.ts +0 -28
  188. package/dist/components/organisms/AppSidebar.d.ts +0 -23
  189. package/dist/components/organisms/AppSidebar.mobile.d.ts +0 -1
  190. package/dist/components/organisms/AppSidebar.mobile.js +0 -0
  191. package/dist/components/organisms/EmptyDataList.d.ts +0 -20
  192. package/dist/components/organisms/EmptyDataList.mobile.d.ts +0 -20
  193. package/dist/components/organisms/EmptyDataList.mobile.js +0 -27
  194. package/dist/components/organisms/EmptyDataList.types.d.ts +0 -19
  195. package/dist/components/organisms/EmptyDataList.types.js +0 -1
  196. package/dist/components/organisms/EmptySearchResult.d.ts +0 -24
  197. package/dist/components/organisms/FAQSection.d.ts +0 -31
  198. package/dist/components/organisms/FeatureCarousel.d.ts +0 -18
  199. package/dist/components/organisms/FeaturesSection.d.ts +0 -19
  200. package/dist/components/organisms/Footer.d.ts +0 -25
  201. package/dist/components/organisms/GridLayout.d.ts +0 -25
  202. package/dist/components/organisms/GridLayout.js +0 -28
  203. package/dist/components/organisms/Header.d.ts +0 -37
  204. package/dist/components/organisms/Header.mobile.d.ts +0 -24
  205. package/dist/components/organisms/Header.mobile.js +0 -18
  206. package/dist/components/organisms/HeroResponsive.d.ts +0 -14
  207. package/dist/components/organisms/HeroSection.d.ts +0 -29
  208. package/dist/components/organisms/ListCardPage.d.ts +0 -36
  209. package/dist/components/organisms/ListGridPage.d.ts +0 -36
  210. package/dist/components/organisms/ListPageResponsive.d.ts +0 -7
  211. package/dist/components/organisms/ListTablePage.d.ts +0 -33
  212. package/dist/components/organisms/MarketingHeader.d.ts +0 -36
  213. package/dist/components/organisms/MarketingHeaderDesktop.d.ts +0 -15
  214. package/dist/components/organisms/MarketingHeaderMobile.d.ts +0 -12
  215. package/dist/components/organisms/MarketingLayout.d.ts +0 -18
  216. package/dist/components/organisms/PageHeaderResponsive.d.ts +0 -8
  217. package/dist/components/organisms/PageHeaderResponsive.mobile.d.ts +0 -22
  218. package/dist/components/organisms/PageHeaderResponsive.mobile.js +0 -32
  219. package/dist/components/organisms/PricingCarousel.d.ts +0 -24
  220. package/dist/components/organisms/PricingSection.d.ts +0 -18
  221. package/dist/components/organisms/TestimonialCarousel.d.ts +0 -19
  222. package/dist/components/templates/lists/ListPageTemplate/index.d.ts +0 -3
  223. package/dist/components/templates/lists/ListPageTemplate/index.js +0 -3
  224. package/dist/components/templates/lists/ListPageTemplate/index.mobile.d.ts +0 -21
  225. package/dist/components/templates/lists/ListPageTemplate/index.mobile.js +0 -32
  226. package/dist/components/templates/lists/ListPageTemplate/index.web.d.ts +0 -22
  227. package/dist/components/templates/lists/ListPageTemplate/types.d.ts +0 -25
  228. package/dist/components/templates/lists/ListPageTemplate/types.js +0 -1
  229. package/dist/hooks/useListUrlState.d.ts +0 -30
  230. package/dist/index.d.ts +0 -108
  231. package/dist/lib/keyboard.d.ts +0 -14
  232. package/dist/lib/utils.d.ts +0 -6
  233. package/dist/platform/useColorScheme.d.ts +0 -5
  234. package/dist/platform/useColorScheme.mobile.d.ts +0 -5
  235. package/dist/platform/useColorScheme.mobile.js +0 -20
  236. package/dist/platform/useReducedMotion.d.ts +0 -4
  237. package/dist/platform/useReducedMotion.mobile.d.ts +0 -4
  238. package/dist/platform/useReducedMotion.mobile.js +0 -28
  239. package/dist/platform/useResponsive.d.ts +0 -23
  240. package/dist/platform/useResponsive.mobile.d.ts +0 -23
  241. package/dist/platform/useResponsive.mobile.js +0 -42
  242. package/dist/platform/withPlatformUI.d.ts +0 -28
  243. package/dist/renderers/form-contract.d.ts +0 -11
  244. package/dist/renderers/index.d.ts +0 -2
  245. package/dist/renderers/index.js +0 -3
  246. package/dist/theme/tokenBridge.d.ts +0 -19
  247. package/dist/theme/tokens.d.ts +0 -50
  248. package/dist/theme/variants.d.ts +0 -21
  249. package/dist/types/nativewind-env.d.ts +0 -1
  250. package/dist/types/navigation.d.ts +0 -44
  251. package/dist/types/navigation.js +0 -1
@@ -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 };
@@ -1,27 +0,0 @@
1
- import { mapKeyboardToNative } from "../../lib/keyboard.js";
2
- import "react";
3
- import { jsx } 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.tsx
7
- function Textarea({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, maxLength, className, keyboard, ...rest }) {
8
- const nativeKeyboard = mapKeyboardToNative(keyboard);
9
- return /* @__PURE__ */ jsx(Textarea$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 Textarea_mobile_default = Textarea;
25
-
26
- //#endregion
27
- export { Textarea, Textarea_mobile_default as default };
@@ -1,21 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime45 from "react/jsx-runtime";
3
- import { DataViewSpec } from "@lssm/lib.contracts/data-views";
4
-
5
- //#region src/components/data-view/DataViewDetail.d.ts
6
- interface DataViewDetailProps {
7
- spec: DataViewSpec;
8
- item: Record<string, unknown> | null;
9
- className?: string;
10
- emptyState?: React$1.ReactNode;
11
- headerActions?: React$1.ReactNode;
12
- }
13
- declare function DataViewDetail({
14
- spec,
15
- item,
16
- className,
17
- emptyState,
18
- headerActions
19
- }: DataViewDetailProps): react_jsx_runtime45.JSX.Element;
20
- //#endregion
21
- export { DataViewDetail, DataViewDetailProps };
@@ -1,23 +0,0 @@
1
- import * as React$1 from "react";
2
- import * as react_jsx_runtime48 from "react/jsx-runtime";
3
- import { DataViewSpec } from "@lssm/lib.contracts/data-views";
4
-
5
- //#region src/components/data-view/DataViewList.d.ts
6
- interface DataViewListProps {
7
- spec: DataViewSpec;
8
- items: Record<string, unknown>[];
9
- className?: string;
10
- renderActions?: (item: Record<string, unknown>) => React$1.ReactNode;
11
- onSelect?: (item: Record<string, unknown>) => void;
12
- emptyState?: React$1.ReactNode;
13
- }
14
- declare function DataViewList({
15
- spec,
16
- items,
17
- className,
18
- renderActions,
19
- onSelect,
20
- emptyState
21
- }: DataViewListProps): react_jsx_runtime48.JSX.Element;
22
- //#endregion
23
- export { DataViewList, DataViewListProps };