@lssm/lib.design-system 0.0.0-canary-20251217060834 → 0.0.0-canary-20251217072406

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 (234) hide show
  1. package/dist/_virtual/rolldown_runtime.js +1 -12
  2. package/dist/components/agent/AgentMonitor.js +3 -3
  3. package/dist/components/agent/ApprovalQueue.d.ts +2 -2
  4. package/dist/components/agent/ApprovalQueue.js +4 -5
  5. package/dist/components/atoms/ActionButtons.d.ts +3 -3
  6. package/dist/components/atoms/ActionButtons.js +3 -3
  7. package/dist/components/atoms/Button.d.ts +6 -6
  8. package/dist/components/atoms/Button.js +2 -2
  9. package/dist/components/atoms/ButtonLink.js +2 -2
  10. package/dist/components/atoms/Cta.d.ts +7 -7
  11. package/dist/components/atoms/Cta.js +2 -2
  12. package/dist/components/atoms/DataChips.d.ts +2 -2
  13. package/dist/components/atoms/DataChips.js +1 -1
  14. package/dist/components/atoms/EmptyState.d.ts +2 -2
  15. package/dist/components/atoms/EmptyState.js +1 -1
  16. package/dist/components/atoms/ErrorState.d.ts +6 -6
  17. package/dist/components/atoms/ErrorState.js +1 -1
  18. package/dist/components/atoms/Input.d.ts +2 -2
  19. package/dist/components/atoms/Input.js +1 -1
  20. package/dist/components/atoms/Link.web.d.ts +3 -3
  21. package/dist/components/atoms/Link.web.js +4 -6
  22. package/dist/components/atoms/LoaderCircular.d.ts +3 -3
  23. package/dist/components/atoms/LoaderCircular.js +2 -2
  24. package/dist/components/atoms/NavBrand.d.ts +3 -3
  25. package/dist/components/atoms/NavBrand.js +1 -1
  26. package/dist/components/atoms/Stepper.d.ts +2 -2
  27. package/dist/components/atoms/Stepper.js +1 -1
  28. package/dist/components/atoms/Textarea.d.ts +2 -2
  29. package/dist/components/atoms/Textarea.js +4 -4
  30. package/dist/components/data-view/DataViewDetail.d.ts +5 -5
  31. package/dist/components/data-view/DataViewList.d.ts +5 -5
  32. package/dist/components/data-view/DataViewRenderer.d.ts +5 -5
  33. package/dist/components/data-view/DataViewRenderer.js +3 -3
  34. package/dist/components/data-view/DataViewTable.d.ts +6 -6
  35. package/dist/components/forms/ActionForm.d.ts +3 -3
  36. package/dist/components/forms/ActionForm.js +1 -1
  37. package/dist/components/forms/FormCardLayout.d.ts +5 -5
  38. package/dist/components/forms/FormCardLayout.js +2 -2
  39. package/dist/components/forms/FormDialog.d.ts +5 -5
  40. package/dist/components/forms/FormDialog.js +1 -1
  41. package/dist/components/forms/FormLayout.d.ts +4 -4
  42. package/dist/components/forms/FormLayout.js +1 -1
  43. package/dist/components/forms/FormOneByOneLayout.d.ts +6 -6
  44. package/dist/components/forms/FormOneByOneLayout.js +4 -4
  45. package/dist/components/forms/FormStepsLayout.d.ts +4 -4
  46. package/dist/components/forms/FormStepsLayout.js +5 -5
  47. package/dist/components/forms/ZodForm.d.ts +6 -6
  48. package/dist/components/forms/ZodForm.js +1 -1
  49. package/dist/components/legal/atoms/DefinitionList.d.ts +3 -3
  50. package/dist/components/legal/atoms/DefinitionList.js +1 -1
  51. package/dist/components/legal/atoms/KeyValueList.d.ts +3 -3
  52. package/dist/components/legal/atoms/KeyValueList.js +1 -1
  53. package/dist/components/legal/atoms/LegalCallout.d.ts +2 -2
  54. package/dist/components/legal/atoms/LegalCallout.js +1 -1
  55. package/dist/components/legal/atoms/LegalHeading.d.ts +2 -2
  56. package/dist/components/legal/atoms/LegalHeading.js +1 -1
  57. package/dist/components/legal/atoms/LegalList.d.ts +2 -2
  58. package/dist/components/legal/atoms/LegalList.js +1 -1
  59. package/dist/components/legal/atoms/LegalSection.d.ts +2 -2
  60. package/dist/components/legal/atoms/LegalSection.js +1 -1
  61. package/dist/components/legal/atoms/LegalText.d.ts +2 -2
  62. package/dist/components/legal/atoms/LegalText.js +1 -1
  63. package/dist/components/legal/molecules/Consent.d.ts +5 -5
  64. package/dist/components/legal/molecules/Consent.js +2 -2
  65. package/dist/components/legal/molecules/ContactFields.js +1 -1
  66. package/dist/components/legal/molecules/LegalMeta.js +1 -1
  67. package/dist/components/legal/molecules/LegalTOC.d.ts +3 -3
  68. package/dist/components/legal/molecules/LegalTOC.js +1 -1
  69. package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
  70. package/dist/components/legal/organisms/ContactForm.js +3 -3
  71. package/dist/components/legal/organisms/GDPRDataRequest.d.ts +3 -3
  72. package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
  73. package/dist/components/legal/organisms/GDPRRights.d.ts +3 -3
  74. package/dist/components/legal/organisms/LegalPageLayout.d.ts +3 -3
  75. package/dist/components/legal/organisms/LegalPageLayout.js +1 -1
  76. package/dist/components/legal/templates/ContactTemplate.d.ts +4 -4
  77. package/dist/components/legal/templates/ContactTemplate.js +3 -3
  78. package/dist/components/legal/templates/CookiesTemplate.d.ts +7 -7
  79. package/dist/components/legal/templates/PrivacyTemplate.d.ts +7 -7
  80. package/dist/components/legal/templates/SalesTermsTemplate.d.ts +5 -5
  81. package/dist/components/legal/templates/TermsTemplate.d.ts +5 -5
  82. package/dist/components/marketing/MarketingCard.d.ts +4 -4
  83. package/dist/components/marketing/MarketingCard.js +3 -3
  84. package/dist/components/marketing/MarketingCardsSection.d.ts +2 -2
  85. package/dist/components/marketing/MarketingCardsSection.js +1 -1
  86. package/dist/components/marketing/MarketingComparisonSection.d.ts +5 -5
  87. package/dist/components/marketing/MarketingComparisonSection.js +3 -3
  88. package/dist/components/marketing/MarketingIconCard.d.ts +5 -5
  89. package/dist/components/marketing/MarketingIconCard.js +4 -3
  90. package/dist/components/marketing/MarketingSection.d.ts +5 -5
  91. package/dist/components/marketing/MarketingSection.js +3 -3
  92. package/dist/components/marketing/MarketingStepCard.d.ts +3 -3
  93. package/dist/components/marketing/MarketingStepCard.js +4 -3
  94. package/dist/components/molecules/AiLinkButton.js +5 -5
  95. package/dist/components/molecules/Breadcrumbs.d.ts +2 -2
  96. package/dist/components/molecules/Breadcrumbs.js +3 -3
  97. package/dist/components/molecules/CommandPalette.js +4 -4
  98. package/dist/components/molecules/CommandSearchTrigger.d.ts +2 -2
  99. package/dist/components/molecules/CommandSearchTrigger.js +5 -5
  100. package/dist/components/molecules/EntityCard.d.ts +9 -9
  101. package/dist/components/molecules/EntityCard.js +2 -2
  102. package/dist/components/molecules/FiltersToolbar.d.ts +4 -4
  103. package/dist/components/molecules/FiltersToolbar.js +6 -6
  104. package/dist/components/molecules/HoverPreview.d.ts +3 -3
  105. package/dist/components/molecules/HoverPreview.js +4 -2
  106. package/dist/components/molecules/LangSwitch.d.ts +2 -2
  107. package/dist/components/molecules/LangSwitchDropdown.js +4 -4
  108. package/dist/components/molecules/LoaderBlock.d.ts +3 -3
  109. package/dist/components/molecules/LoaderBlock.js +1 -1
  110. package/dist/components/molecules/MobileNavMenu.js +1 -1
  111. package/dist/components/molecules/NavItemCard.js +1 -1
  112. package/dist/components/molecules/NavMain.js +4 -4
  113. package/dist/components/molecules/NavUser.js +2 -2
  114. package/dist/components/molecules/OverviewCard.d.ts +2 -2
  115. package/dist/components/molecules/OverviewCard.js +3 -5
  116. package/dist/components/molecules/SkeletonBlock/index.web.d.ts +2 -2
  117. package/dist/components/molecules/SkeletonBlock/index.web.js +2 -2
  118. package/dist/components/molecules/SkeletonCircle/index.web.js +1 -1
  119. package/dist/components/molecules/SkeletonList/index.web.d.ts +2 -2
  120. package/dist/components/molecules/SkeletonList/index.web.js +1 -1
  121. package/dist/components/molecules/StatCard.d.ts +8 -8
  122. package/dist/components/molecules/StatCard.js +2 -2
  123. package/dist/components/molecules/StatusChip.d.ts +5 -5
  124. package/dist/components/molecules/StatusChip.js +1 -1
  125. package/dist/components/molecules/hover-previews/Doc.d.ts +6 -6
  126. package/dist/components/molecules/hover-previews/Media.d.ts +5 -5
  127. package/dist/components/molecules/hover-previews/Simple.d.ts +7 -7
  128. package/dist/components/molecules/hover-previews/Stats.d.ts +6 -6
  129. package/dist/components/molecules/hover-previews/User.d.ts +7 -7
  130. package/dist/components/organisms/AcademyLayout.d.ts +7 -7
  131. package/dist/components/organisms/AcademyLayout.js +4 -4
  132. package/dist/components/organisms/AppHeader.d.ts +3 -3
  133. package/dist/components/organisms/AppHeader.js +2 -2
  134. package/dist/components/organisms/AppLayout.d.ts +6 -6
  135. package/dist/components/organisms/AppLayout.js +5 -5
  136. package/dist/components/organisms/AppSidebar.d.ts +3 -3
  137. package/dist/components/organisms/AppSidebar.js +2 -2
  138. package/dist/components/organisms/EmptyDataList.js +1 -1
  139. package/dist/components/organisms/EmptyDataList.types.d.ts +8 -8
  140. package/dist/components/organisms/EmptySearchResult.d.ts +5 -5
  141. package/dist/components/organisms/EmptySearchResult.js +3 -3
  142. package/dist/components/organisms/FAQSection.d.ts +6 -6
  143. package/dist/components/organisms/FAQSection.js +4 -4
  144. package/dist/components/organisms/FeatureCarousel.d.ts +4 -4
  145. package/dist/components/organisms/FeatureCarousel.js +2 -2
  146. package/dist/components/organisms/FeaturesSection.d.ts +4 -4
  147. package/dist/components/organisms/FeaturesSection.js +1 -1
  148. package/dist/components/organisms/Footer.d.ts +5 -5
  149. package/dist/components/organisms/Footer.js +2 -2
  150. package/dist/components/organisms/Header.d.ts +5 -5
  151. package/dist/components/organisms/Header.js +4 -4
  152. package/dist/components/organisms/HeroResponsive.d.ts +2 -2
  153. package/dist/components/organisms/HeroSection.d.ts +3 -3
  154. package/dist/components/organisms/HeroSection.js +1 -1
  155. package/dist/components/organisms/ListCardPage.d.ts +4 -4
  156. package/dist/components/organisms/ListCardPage.js +2 -2
  157. package/dist/components/organisms/ListGridPage.d.ts +4 -4
  158. package/dist/components/organisms/ListGridPage.js +1 -1
  159. package/dist/components/organisms/ListPageResponsive.js +1 -1
  160. package/dist/components/organisms/ListTablePage.d.ts +6 -6
  161. package/dist/components/organisms/ListTablePage.js +2 -2
  162. package/dist/components/organisms/MarketingHeader.d.ts +4 -4
  163. package/dist/components/organisms/MarketingHeader.js +9 -9
  164. package/dist/components/organisms/MarketingHeaderDesktop.js +3 -3
  165. package/dist/components/organisms/MarketingHeaderMobile.js +6 -6
  166. package/dist/components/organisms/MarketingLayout.d.ts +4 -4
  167. package/dist/components/organisms/MarketingLayout.js +2 -2
  168. package/dist/components/organisms/PageHeaderResponsive.js +1 -1
  169. package/dist/components/organisms/PricingCarousel.js +2 -2
  170. package/dist/components/organisms/PricingSection.d.ts +3 -3
  171. package/dist/components/organisms/PricingSection.js +1 -1
  172. package/dist/components/organisms/TestimonialCarousel.d.ts +5 -5
  173. package/dist/components/organisms/TestimonialCarousel.js +2 -2
  174. package/dist/components/templates/lists/ListPageTemplate/index.web.js +5 -5
  175. package/dist/components/templates/lists/ListPageTemplate/types.d.ts +7 -7
  176. package/dist/contracts/dist/client/react/drivers/shadcn.js +11 -0
  177. package/dist/contracts/dist/client/react/form-render.js +298 -0
  178. package/dist/contracts/dist/forms.js +88 -0
  179. package/dist/hooks/useListUrlState.js +7 -7
  180. package/dist/index.js +2 -1
  181. package/dist/platform/useColorScheme.js +3 -3
  182. package/dist/platform/useReducedMotion.js +3 -3
  183. package/dist/platform/useResponsive.js +4 -4
  184. package/dist/renderers/form-contract.d.ts +1 -1
  185. package/dist/renderers/form-contract.js +9 -9
  186. package/dist/types/navigation.d.ts +10 -10
  187. package/dist/ui-kit-web/dist/ui/accordion.js +48 -0
  188. package/dist/ui-kit-web/dist/ui/atoms/FilterSelect/FilterSelect.js +52 -0
  189. package/dist/ui-kit-web/dist/ui/atoms/Pagination/Pagination.js +156 -0
  190. package/dist/ui-kit-web/dist/ui/atoms/SearchInput/SearchInput.js +49 -0
  191. package/dist/ui-kit-web/dist/ui/avatar.js +32 -0
  192. package/dist/ui-kit-web/dist/ui/badge.js +27 -0
  193. package/dist/ui-kit-web/dist/ui/breadcrumb.js +59 -0
  194. package/dist/ui-kit-web/dist/ui/button.js +55 -0
  195. package/dist/ui-kit-web/dist/ui/card.js +44 -0
  196. package/dist/ui-kit-web/dist/ui/carousel.js +135 -0
  197. package/dist/ui-kit-web/dist/ui/checkbox.js +25 -0
  198. package/dist/ui-kit-web/dist/ui/collapsible.js +27 -0
  199. package/dist/ui-kit-web/dist/ui/command.js +90 -0
  200. package/dist/ui-kit-web/dist/ui/dialog.js +84 -0
  201. package/dist/ui-kit-web/dist/ui/dropdown-menu.js +57 -0
  202. package/dist/ui-kit-web/dist/ui/empty-state.js +43 -0
  203. package/dist/ui-kit-web/dist/ui/empty.js +62 -0
  204. package/dist/ui-kit-web/dist/ui/field.js +78 -0
  205. package/dist/ui-kit-web/dist/ui/form.js +16 -0
  206. package/dist/ui-kit-web/dist/ui/hover-card.js +40 -0
  207. package/dist/ui-kit-web/dist/ui/input.js +17 -0
  208. package/dist/ui-kit-web/dist/ui/label.js +19 -0
  209. package/dist/ui-kit-web/dist/ui/marketing/Hero.js +52 -0
  210. package/dist/ui-kit-web/dist/ui/marketing/PricingTable.js +59 -0
  211. package/dist/ui-kit-web/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +102 -0
  212. package/dist/ui-kit-web/dist/ui/molecules/SkeletonList.js +14 -0
  213. package/dist/ui-kit-web/dist/ui/navigation-menu.js +75 -0
  214. package/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js +197 -0
  215. package/dist/ui-kit-web/dist/ui/page-header.js +40 -0
  216. package/dist/ui-kit-web/dist/ui/pagination.js +65 -0
  217. package/dist/ui-kit-web/dist/ui/radio-group.js +32 -0
  218. package/dist/ui-kit-web/dist/ui/select.js +86 -0
  219. package/dist/ui-kit-web/dist/ui/separator.js +21 -0
  220. package/dist/ui-kit-web/dist/ui/sheet.js +80 -0
  221. package/dist/ui-kit-web/dist/ui/sidebar.js +281 -0
  222. package/dist/ui-kit-web/dist/ui/skeleton.js +14 -0
  223. package/dist/ui-kit-web/dist/ui/stack.js +158 -0
  224. package/dist/ui-kit-web/dist/ui/stepper.js +37 -0
  225. package/dist/ui-kit-web/dist/ui/switch.js +24 -0
  226. package/dist/ui-kit-web/dist/ui/table.js +57 -0
  227. package/dist/ui-kit-web/dist/ui/text.js +16 -0
  228. package/dist/ui-kit-web/dist/ui/textarea.js +16 -0
  229. package/dist/ui-kit-web/dist/ui/tooltip.js +40 -0
  230. package/dist/ui-kit-web/dist/ui/typography.js +23 -0
  231. package/dist/ui-kit-web/dist/ui/use-mobile.js +20 -0
  232. package/dist/ui-kit-web/dist/ui/utils.js +10 -0
  233. package/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +13 -0
  234. package/package.json +7 -7
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { cn } from "../../ui-kit-web/dist/ui/utils.js";
3
4
  import "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
6
6
 
7
7
  //#region src/components/forms/ActionForm.tsx
8
8
  function ActionForm({ action, children, className, ...rest }) {
@@ -1,12 +1,12 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime101 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/forms/FormCardLayout.d.ts
5
5
  interface FormCardLayoutProps {
6
- title?: React.ReactNode;
7
- description?: React.ReactNode;
8
- actions?: React.ReactNode;
9
- children: React.ReactNode;
6
+ title?: React$1.ReactNode;
7
+ description?: React$1.ReactNode;
8
+ actions?: React$1.ReactNode;
9
+ children: React$1.ReactNode;
10
10
  className?: string;
11
11
  contentClassName?: string;
12
12
  }
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../ui-kit-web/dist/ui/utils.js";
2
+ import { Card, CardContent, CardHeader, CardTitle } from "../../ui-kit-web/dist/ui/card.js";
1
3
  import "react";
2
4
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
4
- import { Card, CardContent, CardHeader, CardTitle } from "@lssm/lib.ui-kit-web/ui/card";
5
5
 
6
6
  //#region src/components/forms/FormCardLayout.tsx
7
7
  function FormCardLayout({ title, description, actions, children, className, contentClassName }) {
@@ -1,14 +1,14 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime96 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/forms/FormDialog.d.ts
5
5
  interface FormDialogProps {
6
6
  open: boolean;
7
7
  onOpenChange: (open: boolean) => void;
8
- title: React.ReactNode;
9
- description?: React.ReactNode;
10
- children: React.ReactNode;
11
- footer?: React.ReactNode;
8
+ title: React$1.ReactNode;
9
+ description?: React$1.ReactNode;
10
+ children: React$1.ReactNode;
11
+ footer?: React$1.ReactNode;
12
12
  maxWidth?: string;
13
13
  }
14
14
  declare function FormDialog({
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "../../ui-kit-web/dist/ui/dialog.js";
3
4
  import "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@lssm/lib.ui-kit-web/ui/dialog";
6
6
 
7
7
  //#region src/components/forms/FormDialog.tsx
8
8
  function FormDialog({ open, onOpenChange, title, description, children, footer, maxWidth = "sm:max-w-[480px]" }) {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime98 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/forms/FormLayout.d.ts
@@ -6,14 +6,14 @@ declare function FormSection({
6
6
  children,
7
7
  className
8
8
  }: {
9
- children: React.ReactNode;
9
+ children: React$1.ReactNode;
10
10
  className?: string;
11
11
  }): react_jsx_runtime98.JSX.Element;
12
12
  declare function FormRow({
13
13
  children,
14
14
  className
15
15
  }: {
16
- children: React.ReactNode;
16
+ children: React$1.ReactNode;
17
17
  className?: string;
18
18
  }): react_jsx_runtime98.JSX.Element;
19
19
  declare function FormGrid({
@@ -21,7 +21,7 @@ declare function FormGrid({
21
21
  cols,
22
22
  className
23
23
  }: {
24
- children: React.ReactNode;
24
+ children: React$1.ReactNode;
25
25
  cols?: 1 | 2 | 3 | 4;
26
26
  className?: string;
27
27
  }): react_jsx_runtime98.JSX.Element;
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { cn } from "../../ui-kit-web/dist/ui/utils.js";
3
4
  import "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
6
6
 
7
7
  //#region src/components/forms/FormLayout.tsx
8
8
  function FormSection({ children, className }) {
@@ -1,12 +1,12 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime97 from "react/jsx-runtime";
1
+ import * as React$1 from "react";
2
+ import * as react_jsx_runtime103 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/forms/FormOneByOneLayout.d.ts
5
5
  interface OneByOneFieldDef {
6
6
  key: string;
7
- title: React.ReactNode;
8
- description?: React.ReactNode;
9
- input: React.ReactNode;
7
+ title: React$1.ReactNode;
8
+ description?: React$1.ReactNode;
9
+ input: React$1.ReactNode;
10
10
  validate?: () => boolean;
11
11
  }
12
12
  interface FormOneByOneLayoutProps {
@@ -20,6 +20,6 @@ declare function FormOneByOneLayout({
20
20
  initialKey,
21
21
  onComplete,
22
22
  className
23
- }: FormOneByOneLayoutProps): react_jsx_runtime97.JSX.Element | null;
23
+ }: FormOneByOneLayoutProps): react_jsx_runtime103.JSX.Element | null;
24
24
  //#endregion
25
25
  export { FormOneByOneLayout };
@@ -1,12 +1,12 @@
1
1
  import { Button } from "../atoms/Button.js";
2
- import * as React from "react";
2
+ import { cn } from "../../ui-kit-web/dist/ui/utils.js";
3
+ import * as React$1 from "react";
3
4
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/forms/FormOneByOneLayout.tsx
7
7
  function FormOneByOneLayout({ fields, initialKey, onComplete, className }) {
8
- const indexByKey = React.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
9
- const [idx, setIdx] = React.useState(() => {
8
+ const indexByKey = React$1.useMemo(() => Object.fromEntries(fields.map((f, i) => [f.key, i])), [fields]);
9
+ const [idx, setIdx] = React$1.useState(() => {
10
10
  if (initialKey && initialKey in indexByKey) return indexByKey[initialKey] || 0;
11
11
  return 0;
12
12
  });
@@ -1,12 +1,12 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime102 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/forms/FormStepsLayout.d.ts
5
5
  interface StepDef {
6
6
  key: string;
7
- title: React.ReactNode;
8
- description?: React.ReactNode;
9
- content: React.ReactNode;
7
+ title: React$1.ReactNode;
8
+ description?: React$1.ReactNode;
9
+ content: React$1.ReactNode;
10
10
  }
11
11
  interface FormStepsLayoutProps {
12
12
  steps: StepDef[];
@@ -1,13 +1,13 @@
1
+ import { Separator } from "../../ui-kit-web/dist/ui/separator.js";
1
2
  import { Button } from "../atoms/Button.js";
2
- import * as React from "react";
3
+ import { cn } from "../../ui-kit-web/dist/ui/utils.js";
4
+ import * as React$1 from "react";
3
5
  import { jsx, jsxs } from "react/jsx-runtime";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
- import { Separator } from "@lssm/lib.ui-kit-web/ui/separator";
6
6
 
7
7
  //#region src/components/forms/FormStepsLayout.tsx
8
8
  function FormStepsLayout({ steps, initialStepKey, onFinish, canNext, className }) {
9
- const indexByKey = React.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
10
- const [idx, setIdx] = React.useState(() => {
9
+ const indexByKey = React$1.useMemo(() => Object.fromEntries(steps.map((s, i) => [s.key, i])), [steps]);
10
+ const [idx, setIdx] = React$1.useState(() => {
11
11
  if (initialStepKey && initialStepKey in indexByKey) return indexByKey[initialStepKey] || 0;
12
12
  return 0;
13
13
  });
@@ -1,21 +1,21 @@
1
- import * as React from "react";
2
- import * as react_jsx_runtime95 from "react/jsx-runtime";
3
- import { UseFormReturn } from "@lssm/lib.ui-kit-web/ui/form";
4
- import * as z from "zod";
1
+ import * as React$1 from "react";
5
2
  import { FieldValues } from "react-hook-form";
3
+ import * as react_jsx_runtime97 from "react/jsx-runtime";
4
+ import * as z from "zod";
5
+ import { UseFormReturn } from "@lssm/lib.ui-kit-web/ui/form";
6
6
 
7
7
  //#region src/components/forms/ZodForm.d.ts
8
8
  interface ZodFormProps<TSchema extends z.ZodType<any, FieldValues>, TFieldValues extends FieldValues = z.input<TSchema>, TOutput = z.output<TSchema>> {
9
9
  schema: TSchema;
10
10
  defaultValues?: Partial<TFieldValues> | Promise<Partial<TFieldValues>>;
11
11
  onSubmit: (data: TOutput) => Promise<void> | void;
12
- children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React.ReactNode;
12
+ children: (f: UseFormReturn<TFieldValues, any, TOutput>) => React$1.ReactNode;
13
13
  }
14
14
  declare function ZodForm<TSchema extends z.ZodType<any, FieldValues>, TFieldValues extends FieldValues = z.input<TSchema>, TOutput = z.output<TSchema>>({
15
15
  schema,
16
16
  defaultValues,
17
17
  onSubmit,
18
18
  children
19
- }: ZodFormProps<TSchema, TFieldValues, TOutput>): react_jsx_runtime95.JSX.Element;
19
+ }: ZodFormProps<TSchema, TFieldValues, TOutput>): react_jsx_runtime97.JSX.Element;
20
20
  //#endregion
21
21
  export { ZodForm };
@@ -1,8 +1,8 @@
1
1
  'use client';
2
2
 
3
+ import { Form, useForm, zodResolver } from "../../ui-kit-web/dist/ui/form.js";
3
4
  import "react";
4
5
  import { jsx } from "react/jsx-runtime";
5
- import { Form, useForm, zodResolver } from "@lssm/lib.ui-kit-web/ui/form";
6
6
  import "zod";
7
7
 
8
8
  //#region src/components/forms/ZodForm.tsx
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime78 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/atoms/DefinitionList.d.ts
@@ -7,8 +7,8 @@ declare function DefinitionList({
7
7
  className
8
8
  }: {
9
9
  items: {
10
- term: React.ReactNode;
11
- description: React.ReactNode;
10
+ term: React$1.ReactNode;
11
+ description: React$1.ReactNode;
12
12
  }[];
13
13
  className?: string;
14
14
  }): react_jsx_runtime78.JSX.Element;
@@ -1,6 +1,6 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
4
4
 
5
5
  //#region src/components/legal/atoms/DefinitionList.tsx
6
6
  function DefinitionList({ items, className }) {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime79 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/atoms/KeyValueList.d.ts
@@ -7,8 +7,8 @@ declare function KeyValueList({
7
7
  className
8
8
  }: {
9
9
  items: {
10
- key: React.ReactNode;
11
- value: React.ReactNode;
10
+ key: React$1.ReactNode;
11
+ value: React$1.ReactNode;
12
12
  }[];
13
13
  className?: string;
14
14
  }): react_jsx_runtime79.JSX.Element;
@@ -1,6 +1,6 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
4
4
 
5
5
  //#region src/components/legal/atoms/KeyValueList.tsx
6
6
  function KeyValueList({ items, className }) {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime81 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types19 from "class-variance-authority/types";
@@ -7,7 +7,7 @@ import * as class_variance_authority_types19 from "class-variance-authority/type
7
7
  declare const calloutVariants: (props?: ({
8
8
  tone?: "danger" | "info" | "warning" | null | undefined;
9
9
  } & class_variance_authority_types19.ClassProp) | undefined) => string;
10
- type LegalCalloutProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants>;
10
+ type LegalCalloutProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof calloutVariants>;
11
11
  declare function LegalCallout({
12
12
  tone,
13
13
  className,
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/atoms/LegalCallout.tsx
7
7
  const calloutVariants = cva("rounded-md border p-4", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime75 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types15 from "class-variance-authority/types";
@@ -9,7 +9,7 @@ declare const headingVariants: (props?: ({
9
9
  tone?: "default" | "muted" | "accent" | null | undefined;
10
10
  spacing?: "sm" | "md" | "lg" | "none" | null | undefined;
11
11
  } & class_variance_authority_types15.ClassProp) | undefined) => string;
12
- type LegalHeadingProps = React.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
12
+ type LegalHeadingProps = React$1.HTMLAttributes<HTMLHeadingElement> & VariantProps<typeof headingVariants> & {
13
13
  as?: 'h1' | 'h2' | 'h3' | 'h4';
14
14
  };
15
15
  declare function LegalHeading({
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/atoms/LegalHeading.tsx
7
7
  const headingVariants = cva("text-foreground tracking-tight", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime80 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types18 from "class-variance-authority/types";
@@ -8,7 +8,7 @@ declare const listVariants: (props?: ({
8
8
  type?: "none" | "unordered" | "ordered" | null | undefined;
9
9
  spacing?: "sm" | "md" | "lg" | null | undefined;
10
10
  } & class_variance_authority_types18.ClassProp) | undefined) => string;
11
- type LegalListProps = React.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants>;
11
+ type LegalListProps = React$1.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants>;
12
12
  declare function LegalList({
13
13
  type,
14
14
  spacing,
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/atoms/LegalList.tsx
7
7
  const listVariants = cva("", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime77 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types17 from "class-variance-authority/types";
@@ -9,7 +9,7 @@ declare const sectionVariants: (props?: ({
9
9
  border?: "none" | "top" | "bottom" | "both" | null | undefined;
10
10
  tone?: "subtle" | "plain" | null | undefined;
11
11
  } & class_variance_authority_types17.ClassProp) | undefined) => string;
12
- type LegalSectionProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
12
+ type LegalSectionProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof sectionVariants>;
13
13
  declare function LegalSection({
14
14
  spacing,
15
15
  border,
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/atoms/LegalSection.tsx
7
7
  const sectionVariants = cva("space-y-3", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime76 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types16 from "class-variance-authority/types";
@@ -9,7 +9,7 @@ declare const textVariants: (props?: ({
9
9
  size?: "base" | "sm" | "lg" | null | undefined;
10
10
  spacing?: "sm" | "md" | "lg" | "none" | null | undefined;
11
11
  } & class_variance_authority_types16.ClassProp) | undefined) => string;
12
- type LegalTextProps = React.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
12
+ type LegalTextProps = React$1.HTMLAttributes<HTMLParagraphElement> & VariantProps<typeof textVariants> & {
13
13
  as?: 'p' | 'div' | 'span';
14
14
  };
15
15
  declare function LegalText({
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/atoms/LegalText.tsx
7
7
  const textVariants = cva("text-base leading-relaxed", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime84 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/molecules/Consent.d.ts
@@ -11,8 +11,8 @@ declare function ConsentItem({
11
11
  className
12
12
  }: {
13
13
  id: string;
14
- label: React.ReactNode;
15
- description?: React.ReactNode;
14
+ label: React$1.ReactNode;
15
+ description?: React$1.ReactNode;
16
16
  checked: boolean;
17
17
  onChange: (checked: boolean) => void;
18
18
  className?: string;
@@ -24,8 +24,8 @@ declare function ConsentList({
24
24
  }: {
25
25
  items: {
26
26
  id: string;
27
- label: React.ReactNode;
28
- description?: React.ReactNode;
27
+ label: React$1.ReactNode;
28
+ description?: React$1.ReactNode;
29
29
  checked: boolean;
30
30
  }[];
31
31
  onChange: (id: string, checked: boolean) => void;
@@ -1,7 +1,7 @@
1
+ import { Checkbox } from "../../../ui-kit-web/dist/ui/checkbox.js";
2
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
3
  import "react";
2
4
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { Checkbox } from "@lssm/lib.ui-kit-web/ui/checkbox";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/molecules/Consent.tsx
7
7
  function ConsentItem({ id, label, description, checked, onChange, className }) {
@@ -1,8 +1,8 @@
1
+ import { Label } from "../../../ui-kit-web/dist/ui/label.js";
1
2
  import { Input } from "../../atoms/Input.js";
2
3
  import { Textarea } from "../../atoms/Textarea.js";
3
4
  import "react";
4
5
  import { jsx, jsxs } from "react/jsx-runtime";
5
- import { Label } from "@lssm/lib.ui-kit-web/ui/label";
6
6
 
7
7
  //#region src/components/legal/molecules/ContactFields.tsx
8
8
  function ContactFields({ value, onChange, disabled }) {
@@ -1,6 +1,6 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx, jsxs } from "react/jsx-runtime";
3
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
4
4
 
5
5
  //#region src/components/legal/molecules/LegalMeta.tsx
6
6
  function LegalMeta({ lastUpdated, version, className }) {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime82 from "react/jsx-runtime";
3
3
  import { VariantProps } from "class-variance-authority";
4
4
  import * as class_variance_authority_types20 from "class-variance-authority/types";
@@ -6,7 +6,7 @@ import * as class_variance_authority_types20 from "class-variance-authority/type
6
6
  //#region src/components/legal/molecules/LegalTOC.d.ts
7
7
  interface TocItem {
8
8
  href: string;
9
- label: React.ReactNode;
9
+ label: React$1.ReactNode;
10
10
  }
11
11
  declare const tocVariants: (props?: ({
12
12
  variant?: "sidebar" | "inline" | null | undefined;
@@ -16,7 +16,7 @@ type LegalTOCProps = {
16
16
  items: TocItem[];
17
17
  activeHref?: string;
18
18
  onNavigate?: (href: string) => void;
19
- } & VariantProps<typeof tocVariants> & React.HTMLAttributes<HTMLDivElement>;
19
+ } & VariantProps<typeof tocVariants> & React$1.HTMLAttributes<HTMLDivElement>;
20
20
  declare function LegalTOC({
21
21
  items,
22
22
  activeHref,
@@ -1,7 +1,7 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import "react";
2
3
  import { jsx } from "react/jsx-runtime";
3
4
  import { cva } from "class-variance-authority";
4
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
5
5
 
6
6
  //#region src/components/legal/molecules/LegalTOC.tsx
7
7
  const tocVariants = cva("text-base", {
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime89 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/organisms/ContactForm.d.ts
@@ -9,7 +9,7 @@ declare function ContactForm({
9
9
  onSubmit
10
10
  }: {
11
11
  labels?: {
12
- submit: React.ReactNode;
12
+ submit: React$1.ReactNode;
13
13
  };
14
14
  initialValue?: {
15
15
  name: string;
@@ -1,6 +1,6 @@
1
1
  import { Button } from "../../atoms/Button.js";
2
2
  import { ContactFields } from "../molecules/ContactFields.js";
3
- import * as React from "react";
3
+ import * as React$1 from "react";
4
4
  import { jsx, jsxs } from "react/jsx-runtime";
5
5
 
6
6
  //#region src/components/legal/organisms/ContactForm.tsx
@@ -10,8 +10,8 @@ function ContactForm({ labels = { submit: "Envoyer" }, initialValue = {
10
10
  subject: "",
11
11
  message: ""
12
12
  }, disabled, onSubmit }) {
13
- const [value, setValue] = React.useState(initialValue);
14
- const [loading, setLoading] = React.useState(false);
13
+ const [value, setValue] = React$1.useState(initialValue);
14
+ const [loading, setLoading] = React$1.useState(false);
15
15
  const handleSubmit = async (e) => {
16
16
  e.preventDefault();
17
17
  if (!onSubmit) return;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime90 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/organisms/GDPRDataRequest.d.ts
@@ -10,8 +10,8 @@ declare function GDPRDataRequest({
10
10
  onExport?: () => Promise<void> | void;
11
11
  onDelete?: () => Promise<void> | void;
12
12
  labels?: {
13
- export: React.ReactNode;
14
- delete: React.ReactNode;
13
+ export: React$1.ReactNode;
14
+ delete: React$1.ReactNode;
15
15
  };
16
16
  }): react_jsx_runtime90.JSX.Element;
17
17
  //#endregion
@@ -2,7 +2,7 @@ import { Button } from "../../atoms/Button.js";
2
2
  import { LegalHeading } from "../atoms/LegalHeading.js";
3
3
  import { LegalText } from "../atoms/LegalText.js";
4
4
  import { LegalSection } from "../atoms/LegalSection.js";
5
- import * as React from "react";
5
+ import * as React$1 from "react";
6
6
  import { jsx, jsxs } from "react/jsx-runtime";
7
7
 
8
8
  //#region src/components/legal/organisms/GDPRDataRequest.tsx
@@ -10,7 +10,7 @@ function GDPRDataRequest({ onExport, onDelete, labels = {
10
10
  export: "Demander une copie",
11
11
  delete: "Demander la suppression"
12
12
  } }) {
13
- const [loading, setLoading] = React.useState(null);
13
+ const [loading, setLoading] = React$1.useState(null);
14
14
  const handle = async (kind) => {
15
15
  const fn = kind === "export" ? onExport : onDelete;
16
16
  if (!fn) return;
@@ -1,4 +1,4 @@
1
- import * as React from "react";
1
+ import * as React$1 from "react";
2
2
  import * as react_jsx_runtime88 from "react/jsx-runtime";
3
3
 
4
4
  //#region src/components/legal/organisms/GDPRRights.d.ts
@@ -6,8 +6,8 @@ declare function GDPRRights({
6
6
  title,
7
7
  rights
8
8
  }: {
9
- title?: React.ReactNode;
10
- rights?: React.ReactNode[];
9
+ title?: React$1.ReactNode;
10
+ rights?: React$1.ReactNode[];
11
11
  }): react_jsx_runtime88.JSX.Element;
12
12
  //#endregion
13
13
  export { GDPRRights };
@@ -1,5 +1,5 @@
1
1
  import { TocItem } from "../molecules/LegalTOC.js";
2
- import * as React from "react";
2
+ import * as React$1 from "react";
3
3
  import * as react_jsx_runtime87 from "react/jsx-runtime";
4
4
 
5
5
  //#region src/components/legal/organisms/LegalPageLayout.d.ts
@@ -10,13 +10,13 @@ declare function LegalPageLayout({
10
10
  children,
11
11
  className
12
12
  }: {
13
- title: React.ReactNode;
13
+ title: React$1.ReactNode;
14
14
  meta?: {
15
15
  lastUpdated?: string | Date;
16
16
  version?: string;
17
17
  };
18
18
  toc?: TocItem[];
19
- children: React.ReactNode;
19
+ children: React$1.ReactNode;
20
20
  className?: string;
21
21
  }): react_jsx_runtime87.JSX.Element;
22
22
  //#endregion
@@ -1,9 +1,9 @@
1
+ import { cn } from "../../../ui-kit-web/dist/ui/utils.js";
1
2
  import { LegalHeading } from "../atoms/LegalHeading.js";
2
3
  import { LegalTOC } from "../molecules/LegalTOC.js";
3
4
  import { LegalMeta } from "../molecules/LegalMeta.js";
4
5
  import "react";
5
6
  import { jsx, jsxs } from "react/jsx-runtime";
6
- import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
7
7
 
8
8
  //#region src/components/legal/organisms/LegalPageLayout.tsx
9
9
  function LegalPageLayout({ title, meta, toc, children, className }) {