@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.
- package/dist/_virtual/rolldown_runtime.js +1 -12
- package/dist/components/agent/AgentMonitor.js +3 -3
- package/dist/components/agent/ApprovalQueue.d.ts +2 -2
- package/dist/components/agent/ApprovalQueue.js +4 -5
- package/dist/components/atoms/ActionButtons.d.ts +3 -3
- package/dist/components/atoms/ActionButtons.js +3 -3
- package/dist/components/atoms/Button.d.ts +6 -6
- package/dist/components/atoms/Button.js +2 -2
- package/dist/components/atoms/ButtonLink.js +2 -2
- package/dist/components/atoms/Cta.d.ts +7 -7
- package/dist/components/atoms/Cta.js +2 -2
- package/dist/components/atoms/DataChips.d.ts +2 -2
- package/dist/components/atoms/DataChips.js +1 -1
- package/dist/components/atoms/EmptyState.d.ts +2 -2
- package/dist/components/atoms/EmptyState.js +1 -1
- package/dist/components/atoms/ErrorState.d.ts +6 -6
- package/dist/components/atoms/ErrorState.js +1 -1
- package/dist/components/atoms/Input.d.ts +2 -2
- package/dist/components/atoms/Input.js +1 -1
- package/dist/components/atoms/Link.web.d.ts +3 -3
- package/dist/components/atoms/Link.web.js +4 -6
- package/dist/components/atoms/LoaderCircular.d.ts +3 -3
- package/dist/components/atoms/LoaderCircular.js +2 -2
- package/dist/components/atoms/NavBrand.d.ts +3 -3
- package/dist/components/atoms/NavBrand.js +1 -1
- package/dist/components/atoms/Stepper.d.ts +2 -2
- package/dist/components/atoms/Stepper.js +1 -1
- package/dist/components/atoms/Textarea.d.ts +2 -2
- package/dist/components/atoms/Textarea.js +4 -4
- package/dist/components/data-view/DataViewDetail.d.ts +5 -5
- package/dist/components/data-view/DataViewList.d.ts +5 -5
- package/dist/components/data-view/DataViewRenderer.d.ts +5 -5
- package/dist/components/data-view/DataViewRenderer.js +3 -3
- package/dist/components/data-view/DataViewTable.d.ts +6 -6
- package/dist/components/forms/ActionForm.d.ts +3 -3
- package/dist/components/forms/ActionForm.js +1 -1
- package/dist/components/forms/FormCardLayout.d.ts +5 -5
- package/dist/components/forms/FormCardLayout.js +2 -2
- package/dist/components/forms/FormDialog.d.ts +5 -5
- package/dist/components/forms/FormDialog.js +1 -1
- package/dist/components/forms/FormLayout.d.ts +4 -4
- package/dist/components/forms/FormLayout.js +1 -1
- package/dist/components/forms/FormOneByOneLayout.d.ts +6 -6
- package/dist/components/forms/FormOneByOneLayout.js +4 -4
- package/dist/components/forms/FormStepsLayout.d.ts +4 -4
- package/dist/components/forms/FormStepsLayout.js +5 -5
- package/dist/components/forms/ZodForm.d.ts +6 -6
- package/dist/components/forms/ZodForm.js +1 -1
- package/dist/components/legal/atoms/DefinitionList.d.ts +3 -3
- package/dist/components/legal/atoms/DefinitionList.js +1 -1
- package/dist/components/legal/atoms/KeyValueList.d.ts +3 -3
- package/dist/components/legal/atoms/KeyValueList.js +1 -1
- package/dist/components/legal/atoms/LegalCallout.d.ts +2 -2
- package/dist/components/legal/atoms/LegalCallout.js +1 -1
- package/dist/components/legal/atoms/LegalHeading.d.ts +2 -2
- package/dist/components/legal/atoms/LegalHeading.js +1 -1
- package/dist/components/legal/atoms/LegalList.d.ts +2 -2
- package/dist/components/legal/atoms/LegalList.js +1 -1
- package/dist/components/legal/atoms/LegalSection.d.ts +2 -2
- package/dist/components/legal/atoms/LegalSection.js +1 -1
- package/dist/components/legal/atoms/LegalText.d.ts +2 -2
- package/dist/components/legal/atoms/LegalText.js +1 -1
- package/dist/components/legal/molecules/Consent.d.ts +5 -5
- package/dist/components/legal/molecules/Consent.js +2 -2
- package/dist/components/legal/molecules/ContactFields.js +1 -1
- package/dist/components/legal/molecules/LegalMeta.js +1 -1
- package/dist/components/legal/molecules/LegalTOC.d.ts +3 -3
- package/dist/components/legal/molecules/LegalTOC.js +1 -1
- package/dist/components/legal/organisms/ContactForm.d.ts +2 -2
- package/dist/components/legal/organisms/ContactForm.js +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.d.ts +3 -3
- package/dist/components/legal/organisms/GDPRDataRequest.js +2 -2
- package/dist/components/legal/organisms/GDPRRights.d.ts +3 -3
- package/dist/components/legal/organisms/LegalPageLayout.d.ts +3 -3
- package/dist/components/legal/organisms/LegalPageLayout.js +1 -1
- package/dist/components/legal/templates/ContactTemplate.d.ts +4 -4
- package/dist/components/legal/templates/ContactTemplate.js +3 -3
- package/dist/components/legal/templates/CookiesTemplate.d.ts +7 -7
- package/dist/components/legal/templates/PrivacyTemplate.d.ts +7 -7
- package/dist/components/legal/templates/SalesTermsTemplate.d.ts +5 -5
- package/dist/components/legal/templates/TermsTemplate.d.ts +5 -5
- package/dist/components/marketing/MarketingCard.d.ts +4 -4
- package/dist/components/marketing/MarketingCard.js +3 -3
- package/dist/components/marketing/MarketingCardsSection.d.ts +2 -2
- package/dist/components/marketing/MarketingCardsSection.js +1 -1
- package/dist/components/marketing/MarketingComparisonSection.d.ts +5 -5
- package/dist/components/marketing/MarketingComparisonSection.js +3 -3
- package/dist/components/marketing/MarketingIconCard.d.ts +5 -5
- package/dist/components/marketing/MarketingIconCard.js +4 -3
- package/dist/components/marketing/MarketingSection.d.ts +5 -5
- package/dist/components/marketing/MarketingSection.js +3 -3
- package/dist/components/marketing/MarketingStepCard.d.ts +3 -3
- package/dist/components/marketing/MarketingStepCard.js +4 -3
- package/dist/components/molecules/AiLinkButton.js +5 -5
- package/dist/components/molecules/Breadcrumbs.d.ts +2 -2
- package/dist/components/molecules/Breadcrumbs.js +3 -3
- package/dist/components/molecules/CommandPalette.js +4 -4
- package/dist/components/molecules/CommandSearchTrigger.d.ts +2 -2
- package/dist/components/molecules/CommandSearchTrigger.js +5 -5
- package/dist/components/molecules/EntityCard.d.ts +9 -9
- package/dist/components/molecules/EntityCard.js +2 -2
- package/dist/components/molecules/FiltersToolbar.d.ts +4 -4
- package/dist/components/molecules/FiltersToolbar.js +6 -6
- package/dist/components/molecules/HoverPreview.d.ts +3 -3
- package/dist/components/molecules/HoverPreview.js +4 -2
- package/dist/components/molecules/LangSwitch.d.ts +2 -2
- package/dist/components/molecules/LangSwitchDropdown.js +4 -4
- package/dist/components/molecules/LoaderBlock.d.ts +3 -3
- package/dist/components/molecules/LoaderBlock.js +1 -1
- package/dist/components/molecules/MobileNavMenu.js +1 -1
- package/dist/components/molecules/NavItemCard.js +1 -1
- package/dist/components/molecules/NavMain.js +4 -4
- package/dist/components/molecules/NavUser.js +2 -2
- package/dist/components/molecules/OverviewCard.d.ts +2 -2
- package/dist/components/molecules/OverviewCard.js +3 -5
- package/dist/components/molecules/SkeletonBlock/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonBlock/index.web.js +2 -2
- package/dist/components/molecules/SkeletonCircle/index.web.js +1 -1
- package/dist/components/molecules/SkeletonList/index.web.d.ts +2 -2
- package/dist/components/molecules/SkeletonList/index.web.js +1 -1
- package/dist/components/molecules/StatCard.d.ts +8 -8
- package/dist/components/molecules/StatCard.js +2 -2
- package/dist/components/molecules/StatusChip.d.ts +5 -5
- package/dist/components/molecules/StatusChip.js +1 -1
- package/dist/components/molecules/hover-previews/Doc.d.ts +6 -6
- package/dist/components/molecules/hover-previews/Media.d.ts +5 -5
- package/dist/components/molecules/hover-previews/Simple.d.ts +7 -7
- package/dist/components/molecules/hover-previews/Stats.d.ts +6 -6
- package/dist/components/molecules/hover-previews/User.d.ts +7 -7
- package/dist/components/organisms/AcademyLayout.d.ts +7 -7
- package/dist/components/organisms/AcademyLayout.js +4 -4
- package/dist/components/organisms/AppHeader.d.ts +3 -3
- package/dist/components/organisms/AppHeader.js +2 -2
- package/dist/components/organisms/AppLayout.d.ts +6 -6
- package/dist/components/organisms/AppLayout.js +5 -5
- package/dist/components/organisms/AppSidebar.d.ts +3 -3
- package/dist/components/organisms/AppSidebar.js +2 -2
- package/dist/components/organisms/EmptyDataList.js +1 -1
- package/dist/components/organisms/EmptyDataList.types.d.ts +8 -8
- package/dist/components/organisms/EmptySearchResult.d.ts +5 -5
- package/dist/components/organisms/EmptySearchResult.js +3 -3
- package/dist/components/organisms/FAQSection.d.ts +6 -6
- package/dist/components/organisms/FAQSection.js +4 -4
- package/dist/components/organisms/FeatureCarousel.d.ts +4 -4
- package/dist/components/organisms/FeatureCarousel.js +2 -2
- package/dist/components/organisms/FeaturesSection.d.ts +4 -4
- package/dist/components/organisms/FeaturesSection.js +1 -1
- package/dist/components/organisms/Footer.d.ts +5 -5
- package/dist/components/organisms/Footer.js +2 -2
- package/dist/components/organisms/Header.d.ts +5 -5
- package/dist/components/organisms/Header.js +4 -4
- package/dist/components/organisms/HeroResponsive.d.ts +2 -2
- package/dist/components/organisms/HeroSection.d.ts +3 -3
- package/dist/components/organisms/HeroSection.js +1 -1
- package/dist/components/organisms/ListCardPage.d.ts +4 -4
- package/dist/components/organisms/ListCardPage.js +2 -2
- package/dist/components/organisms/ListGridPage.d.ts +4 -4
- package/dist/components/organisms/ListGridPage.js +1 -1
- package/dist/components/organisms/ListPageResponsive.js +1 -1
- package/dist/components/organisms/ListTablePage.d.ts +6 -6
- package/dist/components/organisms/ListTablePage.js +2 -2
- package/dist/components/organisms/MarketingHeader.d.ts +4 -4
- package/dist/components/organisms/MarketingHeader.js +9 -9
- package/dist/components/organisms/MarketingHeaderDesktop.js +3 -3
- package/dist/components/organisms/MarketingHeaderMobile.js +6 -6
- package/dist/components/organisms/MarketingLayout.d.ts +4 -4
- package/dist/components/organisms/MarketingLayout.js +2 -2
- package/dist/components/organisms/PageHeaderResponsive.js +1 -1
- package/dist/components/organisms/PricingCarousel.js +2 -2
- package/dist/components/organisms/PricingSection.d.ts +3 -3
- package/dist/components/organisms/PricingSection.js +1 -1
- package/dist/components/organisms/TestimonialCarousel.d.ts +5 -5
- package/dist/components/organisms/TestimonialCarousel.js +2 -2
- package/dist/components/templates/lists/ListPageTemplate/index.web.js +5 -5
- package/dist/components/templates/lists/ListPageTemplate/types.d.ts +7 -7
- package/dist/contracts/dist/client/react/drivers/shadcn.js +11 -0
- package/dist/contracts/dist/client/react/form-render.js +298 -0
- package/dist/contracts/dist/forms.js +88 -0
- package/dist/hooks/useListUrlState.js +7 -7
- package/dist/index.js +2 -1
- package/dist/platform/useColorScheme.js +3 -3
- package/dist/platform/useReducedMotion.js +3 -3
- package/dist/platform/useResponsive.js +4 -4
- package/dist/renderers/form-contract.d.ts +1 -1
- package/dist/renderers/form-contract.js +9 -9
- package/dist/types/navigation.d.ts +10 -10
- package/dist/ui-kit-web/dist/ui/accordion.js +48 -0
- package/dist/ui-kit-web/dist/ui/atoms/FilterSelect/FilterSelect.js +52 -0
- package/dist/ui-kit-web/dist/ui/atoms/Pagination/Pagination.js +156 -0
- package/dist/ui-kit-web/dist/ui/atoms/SearchInput/SearchInput.js +49 -0
- package/dist/ui-kit-web/dist/ui/avatar.js +32 -0
- package/dist/ui-kit-web/dist/ui/badge.js +27 -0
- package/dist/ui-kit-web/dist/ui/breadcrumb.js +59 -0
- package/dist/ui-kit-web/dist/ui/button.js +55 -0
- package/dist/ui-kit-web/dist/ui/card.js +44 -0
- package/dist/ui-kit-web/dist/ui/carousel.js +135 -0
- package/dist/ui-kit-web/dist/ui/checkbox.js +25 -0
- package/dist/ui-kit-web/dist/ui/collapsible.js +27 -0
- package/dist/ui-kit-web/dist/ui/command.js +90 -0
- package/dist/ui-kit-web/dist/ui/dialog.js +84 -0
- package/dist/ui-kit-web/dist/ui/dropdown-menu.js +57 -0
- package/dist/ui-kit-web/dist/ui/empty-state.js +43 -0
- package/dist/ui-kit-web/dist/ui/empty.js +62 -0
- package/dist/ui-kit-web/dist/ui/field.js +78 -0
- package/dist/ui-kit-web/dist/ui/form.js +16 -0
- package/dist/ui-kit-web/dist/ui/hover-card.js +40 -0
- package/dist/ui-kit-web/dist/ui/input.js +17 -0
- package/dist/ui-kit-web/dist/ui/label.js +19 -0
- package/dist/ui-kit-web/dist/ui/marketing/Hero.js +52 -0
- package/dist/ui-kit-web/dist/ui/marketing/PricingTable.js +59 -0
- package/dist/ui-kit-web/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +102 -0
- package/dist/ui-kit-web/dist/ui/molecules/SkeletonList.js +14 -0
- package/dist/ui-kit-web/dist/ui/navigation-menu.js +75 -0
- package/dist/ui-kit-web/dist/ui/organisms/ListPage/ListPage.js +197 -0
- package/dist/ui-kit-web/dist/ui/page-header.js +40 -0
- package/dist/ui-kit-web/dist/ui/pagination.js +65 -0
- package/dist/ui-kit-web/dist/ui/radio-group.js +32 -0
- package/dist/ui-kit-web/dist/ui/select.js +86 -0
- package/dist/ui-kit-web/dist/ui/separator.js +21 -0
- package/dist/ui-kit-web/dist/ui/sheet.js +80 -0
- package/dist/ui-kit-web/dist/ui/sidebar.js +281 -0
- package/dist/ui-kit-web/dist/ui/skeleton.js +14 -0
- package/dist/ui-kit-web/dist/ui/stack.js +158 -0
- package/dist/ui-kit-web/dist/ui/stepper.js +37 -0
- package/dist/ui-kit-web/dist/ui/switch.js +24 -0
- package/dist/ui-kit-web/dist/ui/table.js +57 -0
- package/dist/ui-kit-web/dist/ui/text.js +16 -0
- package/dist/ui-kit-web/dist/ui/textarea.js +16 -0
- package/dist/ui-kit-web/dist/ui/tooltip.js +40 -0
- package/dist/ui-kit-web/dist/ui/typography.js +23 -0
- package/dist/ui-kit-web/dist/ui/use-mobile.js +20 -0
- package/dist/ui-kit-web/dist/ui/utils.js +10 -0
- package/dist/ui-kit-web/dist/ui-kit-core/dist/utils.js +13 -0
- package/package.json +7 -7
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
//#region rolldown:runtime
|
|
2
|
-
var __create = Object.create;
|
|
3
2
|
var __defProp = Object.defineProperty;
|
|
4
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
6
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
9
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
10
7
|
var __export = (all, symbols) => {
|
|
11
8
|
let target = {};
|
|
12
9
|
for (var name in all) {
|
|
@@ -34,15 +31,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
34
31
|
}
|
|
35
32
|
return to;
|
|
36
33
|
};
|
|
37
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
38
|
-
value: mod,
|
|
39
|
-
enumerable: true
|
|
40
|
-
}) : target, mod));
|
|
41
34
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
|
-
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, { get: (a, b) => (typeof require !== "undefined" ? require : a)[b] }) : x)(function(x) {
|
|
43
|
-
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
44
|
-
throw Error("Calling `require` for \"" + x + "\" in an environment that doesn't expose the `require` function.");
|
|
45
|
-
});
|
|
46
35
|
|
|
47
36
|
//#endregion
|
|
48
|
-
export {
|
|
37
|
+
export { __esmMin, __export, __toCommonJS };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
4
|
+
import { Card, CardContent, CardHeader } from "../../ui-kit-web/dist/ui/card.js";
|
|
5
|
+
import { Badge } from "../../ui-kit-web/dist/ui/badge.js";
|
|
3
6
|
import "react";
|
|
4
7
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
|
-
import { Card, CardContent, CardHeader } from "@lssm/lib.ui-kit-web/ui/card";
|
|
7
|
-
import { Badge } from "@lssm/lib.ui-kit-web/ui/badge";
|
|
8
8
|
|
|
9
9
|
//#region src/components/agent/AgentMonitor.tsx
|
|
10
10
|
function AgentMonitor({ title = "Agent Activity", sessions, highlightStatus = "escalated", onSelectSession, className }) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime19 from "react/jsx-runtime";
|
|
3
3
|
import { ApprovalRequest } from "@lssm/lib.ai-agent/approval";
|
|
4
4
|
|
|
@@ -10,7 +10,7 @@ interface ApprovalQueueProps {
|
|
|
10
10
|
onApprove?: (request: ApprovalRequest) => void;
|
|
11
11
|
onReject?: (request: ApprovalRequest) => void;
|
|
12
12
|
className?: string;
|
|
13
|
-
emptyState?: React.ReactNode;
|
|
13
|
+
emptyState?: React$1.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
declare function ApprovalQueue({
|
|
16
16
|
title,
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { Button } from "../../ui-kit-web/dist/ui/button.js";
|
|
4
|
+
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "../../ui-kit-web/dist/ui/table.js";
|
|
5
|
+
import { Card, CardContent, CardHeader } from "../../ui-kit-web/dist/ui/card.js";
|
|
6
|
+
import { Badge } from "../../ui-kit-web/dist/ui/badge.js";
|
|
3
7
|
import "react";
|
|
4
|
-
import { Button } from "@lssm/lib.ui-kit-web/ui/button";
|
|
5
8
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
7
|
-
import { Table, TableBody, TableCell, TableHead, TableHeader, TableRow } from "@lssm/lib.ui-kit-web/ui/table";
|
|
8
|
-
import { Card, CardContent, CardHeader } from "@lssm/lib.ui-kit-web/ui/card";
|
|
9
|
-
import { Badge } from "@lssm/lib.ui-kit-web/ui/badge";
|
|
10
9
|
|
|
11
10
|
//#region src/components/agent/ApprovalQueue.tsx
|
|
12
11
|
function ApprovalQueue({ title = "Approvals", description = "Requests escalated by AI agents", requests, onApprove, onReject, className, emptyState = /* @__PURE__ */ jsx("p", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ButtonProps } from "./Button.js";
|
|
2
|
-
import * as React from "react";
|
|
2
|
+
import * as React$1 from "react";
|
|
3
3
|
import * as react_jsx_runtime7 from "react/jsx-runtime";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
@@ -10,8 +10,8 @@ declare const actionBtn: (props?: ({
|
|
|
10
10
|
size?: "sm" | "md" | "lg" | "icon" | null | undefined;
|
|
11
11
|
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
12
12
|
type ActionBtnProps = Omit<ButtonProps, 'size' | 'variant'> & VariantProps<typeof actionBtn> & {
|
|
13
|
-
label?: React.ReactNode;
|
|
14
|
-
iconLeft?: React.ReactNode;
|
|
13
|
+
label?: React$1.ReactNode;
|
|
14
|
+
iconLeft?: React$1.ReactNode;
|
|
15
15
|
};
|
|
16
16
|
declare function EditButton(props: Omit<ActionBtnProps, 'iconLeft' | 'tone'>): react_jsx_runtime7.JSX.Element;
|
|
17
17
|
declare function DeleteButton(props: Omit<ActionBtnProps, 'iconLeft'>): react_jsx_runtime7.JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
|
+
import { Box } from "../../ui-kit-web/dist/ui/stack.js";
|
|
3
|
+
import { Text } from "../../ui-kit-web/dist/ui/text.js";
|
|
2
4
|
import "react";
|
|
3
|
-
import { Edit, Eye, ToggleLeft, ToggleRight, Trash2 } from "lucide-react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
import { cva } from "class-variance-authority";
|
|
6
|
-
import {
|
|
7
|
-
import { Text } from "@lssm/lib.ui-kit-web/ui/text";
|
|
7
|
+
import { Edit, Eye, ToggleLeft, ToggleRight, Trash2 } from "lucide-react";
|
|
8
8
|
|
|
9
9
|
//#region src/components/atoms/ActionButtons.tsx
|
|
10
10
|
cva("", {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import { ButtonProps } from "@lssm/lib.ui-kit-web/ui/button";
|
|
1
|
+
import * as React$1 from "react";
|
|
3
2
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
|
+
import { ButtonProps } from "@lssm/lib.ui-kit-web/ui/button";
|
|
4
4
|
|
|
5
5
|
//#region src/components/atoms/Button.d.ts
|
|
6
6
|
type SpinnerPlacement = 'start' | 'end';
|
|
7
7
|
type ButtonProps$1 = Omit<ButtonProps, 'onClick' | 'disabled' | 'children'> & {
|
|
8
|
-
children: React.ReactNode;
|
|
8
|
+
children: React$1.ReactNode;
|
|
9
9
|
loading?: boolean;
|
|
10
10
|
loadingText?: string;
|
|
11
11
|
spinnerPlacement?: SpinnerPlacement;
|
|
@@ -13,10 +13,10 @@ type ButtonProps$1 = Omit<ButtonProps, 'onClick' | 'disabled' | 'children'> & {
|
|
|
13
13
|
onPressIn?: () => void;
|
|
14
14
|
onPressOut?: () => void;
|
|
15
15
|
onLongPress?: () => void;
|
|
16
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
16
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
17
17
|
disabled?: boolean;
|
|
18
18
|
};
|
|
19
|
-
declare function Button
|
|
19
|
+
declare function Button({
|
|
20
20
|
children,
|
|
21
21
|
loading,
|
|
22
22
|
spinnerPlacement,
|
|
@@ -35,4 +35,4 @@ declare function Button$1({
|
|
|
35
35
|
...rest
|
|
36
36
|
}: ButtonProps$1): react_jsx_runtime0.JSX.Element;
|
|
37
37
|
//#endregion
|
|
38
|
-
export { Button
|
|
38
|
+
export { Button, ButtonProps$1 as ButtonProps };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Button } from "../../ui-kit-web/dist/ui/button.js";
|
|
1
2
|
import "react";
|
|
2
|
-
import { Button } from "@lssm/lib.ui-kit-web/ui/button";
|
|
3
|
-
import { Loader2 } from "lucide-react";
|
|
4
3
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
4
|
+
import { Loader2 } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Button.tsx
|
|
7
7
|
function Button$1({ children, loading, spinnerPlacement = "start", onPress, onPressIn, onPressOut, onLongPress, onTouchStart, onTouchEnd, onTouchCancel, onMouseDown, onMouseUp, onClick, className, disabled, ...rest }) {
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
import { Button } from "./Button.js";
|
|
4
4
|
import { Link } from "./Link.web.js";
|
|
5
|
-
import * as React from "react";
|
|
5
|
+
import * as React$1 from "react";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region src/components/atoms/ButtonLink.tsx
|
|
9
9
|
function ButtonLink({ href, target, rel, replace, loading, disabled, children, onClick, ...btn }) {
|
|
10
10
|
const blocked = Boolean(disabled || loading);
|
|
11
|
-
const handleClick = React.useCallback((e) => {
|
|
11
|
+
const handleClick = React$1.useCallback((e) => {
|
|
12
12
|
if (blocked) {
|
|
13
13
|
e.preventDefault();
|
|
14
14
|
e.stopPropagation();
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./Button.js";
|
|
2
|
-
import * as React from "react";
|
|
3
|
-
import * as _lssm_lib_ui_kit_web_ui_button0 from "@lssm/lib.ui-kit-web/ui/button";
|
|
2
|
+
import * as React$1 from "react";
|
|
4
3
|
import { VariantProps } from "class-variance-authority";
|
|
5
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
|
+
import * as _lssm_lib_ui_kit_web_ui_button0 from "@lssm/lib.ui-kit-web/ui/button";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/Cta.d.ts
|
|
8
8
|
|
|
9
|
-
declare const Cta: React.ForwardRefExoticComponent<Omit<_lssm_lib_ui_kit_web_ui_button0.ButtonProps, "disabled" | "children" | "onClick"> & {
|
|
10
|
-
children: React.ReactNode;
|
|
9
|
+
declare const Cta: React$1.ForwardRefExoticComponent<Omit<_lssm_lib_ui_kit_web_ui_button0.ButtonProps, "disabled" | "children" | "onClick"> & {
|
|
10
|
+
children: React$1.ReactNode;
|
|
11
11
|
loading?: boolean;
|
|
12
12
|
loadingText?: string;
|
|
13
13
|
spinnerPlacement?: "start" | "end";
|
|
@@ -15,7 +15,7 @@ declare const Cta: React.ForwardRefExoticComponent<Omit<_lssm_lib_ui_kit_web_ui_
|
|
|
15
15
|
onPressIn?: () => void;
|
|
16
16
|
onPressOut?: () => void;
|
|
17
17
|
onLongPress?: () => void;
|
|
18
|
-
onClick?: React.MouseEventHandler<HTMLButtonElement>;
|
|
18
|
+
onClick?: React$1.MouseEventHandler<HTMLButtonElement>;
|
|
19
19
|
disabled?: boolean;
|
|
20
20
|
} & VariantProps<(props?: ({
|
|
21
21
|
size?: "sm" | "md" | "lg" | "touch" | null | undefined;
|
|
@@ -25,7 +25,7 @@ declare const Cta: React.ForwardRefExoticComponent<Omit<_lssm_lib_ui_kit_web_ui_
|
|
|
25
25
|
ctaName?: string;
|
|
26
26
|
as?: "button" | "a";
|
|
27
27
|
href?: string;
|
|
28
|
-
children?: React.ReactNode;
|
|
29
|
-
} & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
28
|
+
children?: React$1.ReactNode;
|
|
29
|
+
} & React$1.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Cta };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
2
|
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
-
import * as React from "react";
|
|
3
|
+
import * as React$1 from "react";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
|
|
@@ -24,7 +24,7 @@ cva("", {
|
|
|
24
24
|
emphasis: "default"
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
const Cta = React.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children, ...props }, ref) => {
|
|
27
|
+
const Cta = React$1.forwardRef(({ capture, ctaName, as = "button", href, onClick, size = "touch", emphasis = "default", children, ...props }, ref) => {
|
|
28
28
|
const handleClick = (e) => {
|
|
29
29
|
if (ctaName) try {
|
|
30
30
|
if (capture) capture(ctaName);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types2 from "class-variance-authority/types";
|
|
@@ -25,7 +25,7 @@ declare function PlaceChip({
|
|
|
25
25
|
label,
|
|
26
26
|
...v
|
|
27
27
|
}: {
|
|
28
|
-
label?: React.ReactNode;
|
|
28
|
+
label?: React$1.ReactNode;
|
|
29
29
|
} & ChipVariants): react_jsx_runtime13.JSX.Element | null;
|
|
30
30
|
declare function DurationChip({
|
|
31
31
|
minutes,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "react";
|
|
2
|
-
import { Calendar, Clock, MapPin } from "lucide-react";
|
|
3
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
3
|
import { cva } from "class-variance-authority";
|
|
4
|
+
import { Calendar, Clock, MapPin } from "lucide-react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/DataChips.tsx
|
|
7
7
|
const chip = cva("inline-flex items-center gap-1 text-base text-muted-foreground", {
|
|
@@ -2,6 +2,6 @@ import * as react_jsx_runtime5 from "react/jsx-runtime";
|
|
|
2
2
|
import { EmptyStateProps } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/EmptyState.d.ts
|
|
5
|
-
declare function EmptyState
|
|
5
|
+
declare function EmptyState(props: EmptyStateProps): react_jsx_runtime5.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { EmptyState
|
|
7
|
+
export { EmptyState };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { EmptyState } from "../../ui-kit-web/dist/ui/empty-state.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { EmptyState } from "@lssm/lib.ui-kit-web/ui/empty-state";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/EmptyState.tsx
|
|
8
8
|
function EmptyState$1(props) {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime74 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/ErrorState.d.ts
|
|
5
5
|
interface ErrorStateProps {
|
|
6
|
-
title?: React.ReactNode;
|
|
7
|
-
description?: React.ReactNode;
|
|
8
|
-
icon?: React.ReactNode;
|
|
6
|
+
title?: React$1.ReactNode;
|
|
7
|
+
description?: React$1.ReactNode;
|
|
8
|
+
icon?: React$1.ReactNode;
|
|
9
9
|
onRetry?: () => void;
|
|
10
|
-
retryLabel?: React.ReactNode;
|
|
10
|
+
retryLabel?: React$1.ReactNode;
|
|
11
11
|
supportHref?: string;
|
|
12
12
|
onContactSupport?: () => void;
|
|
13
|
-
supportLabel?: React.ReactNode;
|
|
13
|
+
supportLabel?: React$1.ReactNode;
|
|
14
14
|
className?: string;
|
|
15
15
|
}
|
|
16
16
|
declare function ErrorState({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Button } from "./Button.js";
|
|
2
2
|
import { ButtonLink } from "./ButtonLink.js";
|
|
3
|
+
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "../../ui-kit-web/dist/ui/empty.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyTitle } from "@lssm/lib.ui-kit-web/ui/empty";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/ErrorState.tsx
|
|
8
8
|
function ErrorState({ title = "Something went wrong", description, icon, onRetry, retryLabel = "Retry", supportHref, onContactSupport, supportLabel = "Contact support", className }) {
|
|
@@ -15,7 +15,7 @@ interface BaseFieldProps {
|
|
|
15
15
|
keyboard?: KeyboardOptions;
|
|
16
16
|
}
|
|
17
17
|
type InputProps$1 = Omit<InputProps, 'input'> & BaseFieldProps;
|
|
18
|
-
declare function Input
|
|
18
|
+
declare function Input({
|
|
19
19
|
value,
|
|
20
20
|
defaultValue,
|
|
21
21
|
onChange,
|
|
@@ -32,4 +32,4 @@ declare function Input$1({
|
|
|
32
32
|
...rest
|
|
33
33
|
}: InputProps$1): react_jsx_runtime3.JSX.Element;
|
|
34
34
|
//#endregion
|
|
35
|
-
export { Input
|
|
35
|
+
export { Input };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { Input } from "../../ui-kit-web/dist/ui/input.js";
|
|
1
2
|
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
2
3
|
import "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Input } from "@lssm/lib.ui-kit-web/ui/input";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Input.tsx
|
|
7
7
|
function Input$1({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, keyboard, ...rest }) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Link.web.d.ts
|
|
5
5
|
type LinkProps = {
|
|
6
6
|
href: any;
|
|
7
|
-
children?: React.ReactNode;
|
|
7
|
+
children?: React$1.ReactNode;
|
|
8
8
|
className?: string;
|
|
9
9
|
prefetch?: boolean;
|
|
10
10
|
replace?: boolean;
|
|
@@ -12,7 +12,7 @@ type LinkProps = {
|
|
|
12
12
|
shallow?: boolean;
|
|
13
13
|
target?: string;
|
|
14
14
|
rel?: string;
|
|
15
|
-
onClick?: React.MouseEventHandler<HTMLAnchorElement>;
|
|
15
|
+
onClick?: React$1.MouseEventHandler<HTMLAnchorElement>;
|
|
16
16
|
} & Record<string, any>;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { LinkProps };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { __toESM } from "../../_virtual/rolldown_runtime.js";
|
|
2
|
-
import { require_link } from "../../node_modules/next/link.js";
|
|
3
1
|
import "react";
|
|
4
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import Link from "next/link";
|
|
5
4
|
|
|
6
5
|
//#region src/components/atoms/Link.web.tsx
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
return /* @__PURE__ */ jsx(import_link.default, {
|
|
6
|
+
function Link$1({ href, children, ...props }) {
|
|
7
|
+
return /* @__PURE__ */ jsx(Link, {
|
|
10
8
|
href,
|
|
11
9
|
...props,
|
|
12
10
|
children
|
|
@@ -14,4 +12,4 @@ function Link({ href, children, ...props }) {
|
|
|
14
12
|
}
|
|
15
13
|
|
|
16
14
|
//#endregion
|
|
17
|
-
export { Link };
|
|
15
|
+
export { Link$1 as Link };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime72 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types14 from "class-variance-authority/types";
|
|
@@ -8,8 +8,8 @@ declare const spinnerVariants: (props?: ({
|
|
|
8
8
|
size?: "sm" | "md" | "lg" | null | undefined;
|
|
9
9
|
tone?: "default" | "muted" | null | undefined;
|
|
10
10
|
} & class_variance_authority_types14.ClassProp) | undefined) => string;
|
|
11
|
-
type LoaderCircularProps = React.HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
|
|
12
|
-
label?: React.ReactNode;
|
|
11
|
+
type LoaderCircularProps = React$1.HTMLAttributes<HTMLDivElement> & VariantProps<typeof spinnerVariants> & {
|
|
12
|
+
label?: React$1.ReactNode;
|
|
13
13
|
};
|
|
14
14
|
declare function LoaderCircular({
|
|
15
15
|
size,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { cn } from "../../ui-kit-web/dist/ui/utils.js";
|
|
1
2
|
import "react";
|
|
2
|
-
import { Loader2 } from "lucide-react";
|
|
3
3
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
|
-
import {
|
|
5
|
+
import { Loader2 } from "lucide-react";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/LoaderCircular.tsx
|
|
8
8
|
const spinnerVariants = cva("animate-spin", {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/NavBrand.d.ts
|
|
5
5
|
interface NavBrandProps {
|
|
6
6
|
href?: string;
|
|
7
|
-
logo?: React.ReactNode;
|
|
8
|
-
title?: React.ReactNode;
|
|
7
|
+
logo?: React$1.ReactNode;
|
|
8
|
+
title?: React$1.ReactNode;
|
|
9
9
|
className?: string;
|
|
10
10
|
}
|
|
11
11
|
declare function NavBrand({
|
|
@@ -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, jsxs } from "react/jsx-runtime";
|
|
5
|
-
import { cn } from "@lssm/lib.ui-kit-web/ui/utils";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/NavBrand.tsx
|
|
8
8
|
function NavBrand({ href = "/", logo, title, className }) {
|
|
@@ -2,6 +2,6 @@ import * as react_jsx_runtime6 from "react/jsx-runtime";
|
|
|
2
2
|
import { StepperProps } from "@lssm/lib.ui-kit-web/ui/stepper";
|
|
3
3
|
|
|
4
4
|
//#region src/components/atoms/Stepper.d.ts
|
|
5
|
-
declare function Stepper
|
|
5
|
+
declare function Stepper(props: StepperProps): react_jsx_runtime6.JSX.Element;
|
|
6
6
|
//#endregion
|
|
7
|
-
export { Stepper
|
|
7
|
+
export { Stepper };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
+
import { Stepper } from "../../ui-kit-web/dist/ui/stepper.js";
|
|
3
4
|
import "react";
|
|
4
5
|
import { jsx } from "react/jsx-runtime";
|
|
5
|
-
import { Stepper } from "@lssm/lib.ui-kit-web/ui/stepper";
|
|
6
6
|
|
|
7
7
|
//#region src/components/atoms/Stepper.tsx
|
|
8
8
|
function Stepper$1(props) {
|
|
@@ -16,7 +16,7 @@ interface BaseFieldProps {
|
|
|
16
16
|
keyboard?: KeyboardOptions;
|
|
17
17
|
}
|
|
18
18
|
type TextareaProps$1 = TextareaProps & BaseFieldProps;
|
|
19
|
-
declare function Textarea
|
|
19
|
+
declare function Textarea({
|
|
20
20
|
value,
|
|
21
21
|
defaultValue,
|
|
22
22
|
onChange,
|
|
@@ -34,4 +34,4 @@ declare function Textarea$1({
|
|
|
34
34
|
...rest
|
|
35
35
|
}: TextareaProps$1): react_jsx_runtime4.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
|
-
export { Textarea
|
|
37
|
+
export { Textarea };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { mapKeyboardToWeb } from "../../lib/keyboard.js";
|
|
2
|
-
import
|
|
2
|
+
import { Textarea } from "../../ui-kit-web/dist/ui/textarea.js";
|
|
3
|
+
import * as React$1 from "react";
|
|
3
4
|
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
import { Textarea } from "@lssm/lib.ui-kit-web/ui/textarea";
|
|
5
5
|
|
|
6
6
|
//#region src/components/atoms/Textarea.tsx
|
|
7
7
|
function Textarea$1({ value, defaultValue, onChange, onSubmit, onFocus, onBlur, placeholder, disabled, readOnly, maxLength, name, className, rows, keyboard, ...rest }) {
|
|
8
8
|
const webKeyboard = mapKeyboardToWeb(keyboard);
|
|
9
|
-
const handleChange = React.useCallback((e) => onChange?.(e), [onChange]);
|
|
10
|
-
const handleKeyDown = React.useCallback((e) => {
|
|
9
|
+
const handleChange = React$1.useCallback((e) => onChange?.(e), [onChange]);
|
|
10
|
+
const handleKeyDown = React$1.useCallback((e) => {
|
|
11
11
|
if (e.key === "Enter" && webKeyboard.type !== "search") {
|
|
12
12
|
if (e.metaKey || e.ctrlKey) onSubmit?.(e);
|
|
13
13
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime107 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@lssm/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewDetail.d.ts
|
|
@@ -7,8 +7,8 @@ interface DataViewDetailProps {
|
|
|
7
7
|
spec: DataViewSpec;
|
|
8
8
|
item: Record<string, unknown> | null;
|
|
9
9
|
className?: string;
|
|
10
|
-
emptyState?: React.ReactNode;
|
|
11
|
-
headerActions?: React.ReactNode;
|
|
10
|
+
emptyState?: React$1.ReactNode;
|
|
11
|
+
headerActions?: React$1.ReactNode;
|
|
12
12
|
}
|
|
13
13
|
declare function DataViewDetail({
|
|
14
14
|
spec,
|
|
@@ -16,6 +16,6 @@ declare function DataViewDetail({
|
|
|
16
16
|
className,
|
|
17
17
|
emptyState,
|
|
18
18
|
headerActions
|
|
19
|
-
}: DataViewDetailProps):
|
|
19
|
+
}: DataViewDetailProps): react_jsx_runtime107.JSX.Element;
|
|
20
20
|
//#endregion
|
|
21
21
|
export { DataViewDetail };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime105 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@lssm/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewList.d.ts
|
|
@@ -7,9 +7,9 @@ interface DataViewListProps {
|
|
|
7
7
|
spec: DataViewSpec;
|
|
8
8
|
items: Record<string, unknown>[];
|
|
9
9
|
className?: string;
|
|
10
|
-
renderActions?: (item: Record<string, unknown>) => React.ReactNode;
|
|
10
|
+
renderActions?: (item: Record<string, unknown>) => React$1.ReactNode;
|
|
11
11
|
onSelect?: (item: Record<string, unknown>) => void;
|
|
12
|
-
emptyState?: React.ReactNode;
|
|
12
|
+
emptyState?: React$1.ReactNode;
|
|
13
13
|
}
|
|
14
14
|
declare function DataViewList({
|
|
15
15
|
spec,
|
|
@@ -18,6 +18,6 @@ declare function DataViewList({
|
|
|
18
18
|
renderActions,
|
|
19
19
|
onSelect,
|
|
20
20
|
emptyState
|
|
21
|
-
}: DataViewListProps):
|
|
21
|
+
}: DataViewListProps): react_jsx_runtime105.JSX.Element;
|
|
22
22
|
//#endregion
|
|
23
23
|
export { DataViewList };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@lssm/lib.contracts/data-views";
|
|
4
4
|
|
|
@@ -8,12 +8,12 @@ interface DataViewRendererProps {
|
|
|
8
8
|
items?: Record<string, unknown>[];
|
|
9
9
|
item?: Record<string, unknown> | null;
|
|
10
10
|
className?: string;
|
|
11
|
-
renderActions?: (item: Record<string, unknown>) => React.ReactNode;
|
|
11
|
+
renderActions?: (item: Record<string, unknown>) => React$1.ReactNode;
|
|
12
12
|
onSelect?: (item: Record<string, unknown>) => void;
|
|
13
13
|
onRowClick?: (item: Record<string, unknown>) => void;
|
|
14
|
-
headerActions?: React.ReactNode;
|
|
15
|
-
emptyState?: React.ReactNode;
|
|
16
|
-
footer?: React.ReactNode;
|
|
14
|
+
headerActions?: React$1.ReactNode;
|
|
15
|
+
emptyState?: React$1.ReactNode;
|
|
16
|
+
footer?: React$1.ReactNode;
|
|
17
17
|
search?: string;
|
|
18
18
|
onSearchChange?: (value: string) => void;
|
|
19
19
|
filters?: Record<string, any>;
|
|
@@ -4,13 +4,13 @@ import { FiltersToolbar } from "../molecules/FiltersToolbar.js";
|
|
|
4
4
|
import { DataViewList } from "./DataViewList.js";
|
|
5
5
|
import { DataViewTable } from "./DataViewTable.js";
|
|
6
6
|
import { DataViewDetail } from "./DataViewDetail.js";
|
|
7
|
-
import
|
|
7
|
+
import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "../../ui-kit-web/dist/ui/pagination.js";
|
|
8
|
+
import * as React$1 from "react";
|
|
8
9
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
9
|
-
import { Pagination, PaginationContent, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious } from "@lssm/lib.ui-kit-web/ui/pagination";
|
|
10
10
|
|
|
11
11
|
//#region src/components/data-view/DataViewRenderer.tsx
|
|
12
12
|
function DataViewRenderer({ spec, items = [], item = null, className, renderActions, onSelect, onRowClick, headerActions, emptyState, footer, search, onSearchChange, filters, onFilterChange, pagination, onPageChange }) {
|
|
13
|
-
const viewContent = React.useMemo(() => {
|
|
13
|
+
const viewContent = React$1.useMemo(() => {
|
|
14
14
|
switch (spec.view.kind) {
|
|
15
15
|
case "list": return /* @__PURE__ */ jsx(DataViewList, {
|
|
16
16
|
spec,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from "react";
|
|
2
|
-
import * as
|
|
1
|
+
import * as React$1 from "react";
|
|
2
|
+
import * as react_jsx_runtime106 from "react/jsx-runtime";
|
|
3
3
|
import { DataViewSpec } from "@lssm/lib.contracts/data-views";
|
|
4
4
|
|
|
5
5
|
//#region src/components/data-view/DataViewTable.d.ts
|
|
@@ -8,9 +8,9 @@ interface DataViewTableProps {
|
|
|
8
8
|
items: Record<string, unknown>[];
|
|
9
9
|
className?: string;
|
|
10
10
|
onRowClick?: (item: Record<string, unknown>) => void;
|
|
11
|
-
emptyState?: React.ReactNode;
|
|
12
|
-
headerActions?: React.ReactNode;
|
|
13
|
-
footer?: React.ReactNode;
|
|
11
|
+
emptyState?: React$1.ReactNode;
|
|
12
|
+
headerActions?: React$1.ReactNode;
|
|
13
|
+
footer?: React$1.ReactNode;
|
|
14
14
|
}
|
|
15
15
|
declare function DataViewTable({
|
|
16
16
|
spec,
|
|
@@ -20,6 +20,6 @@ declare function DataViewTable({
|
|
|
20
20
|
emptyState,
|
|
21
21
|
headerActions,
|
|
22
22
|
footer
|
|
23
|
-
}: DataViewTableProps):
|
|
23
|
+
}: DataViewTableProps): react_jsx_runtime106.JSX.Element;
|
|
24
24
|
//#endregion
|
|
25
25
|
export { DataViewTable };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as React from "react";
|
|
1
|
+
import * as React$1 from "react";
|
|
2
2
|
import * as react_jsx_runtime104 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region src/components/forms/ActionForm.d.ts
|
|
5
|
-
interface ActionFormProps extends Omit<React.FormHTMLAttributes<HTMLFormElement>, 'action'> {
|
|
5
|
+
interface ActionFormProps extends Omit<React$1.FormHTMLAttributes<HTMLFormElement>, 'action'> {
|
|
6
6
|
action: (formData: FormData) => void | Promise<void>;
|
|
7
|
-
children: React.ReactNode;
|
|
7
|
+
children: React$1.ReactNode;
|
|
8
8
|
}
|
|
9
9
|
declare function ActionForm({
|
|
10
10
|
action,
|