@contractspec/lib.ui-kit-web 1.46.1 → 1.47.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/alert-dialog.d.ts +12 -12
- package/dist/ui/alert-dialog.d.ts.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/atoms/FilterSelect/FilterSelect.js.map +1 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js.map +1 -1
- package/dist/ui/atoms/Pagination/Pagination.js.map +1 -1
- package/dist/ui/atoms/SearchInput/SearchInput.js.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/badge.d.ts +2 -2
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.d.ts.map +1 -1
- package/dist/ui/button.d.ts +3 -3
- package/dist/ui/calendar.d.ts +3 -3
- package/dist/ui/card.d.ts +8 -8
- package/dist/ui/carousel.d.ts +6 -6
- package/dist/ui/checkbox.d.ts +2 -2
- package/dist/ui/collapsible.d.ts +4 -4
- package/dist/ui/collapsible.d.ts.map +1 -1
- package/dist/ui/command.d.ts +10 -10
- package/dist/ui/confirm-dialog.d.ts +2 -2
- package/dist/ui/context-menu.d.ts +2 -2
- package/dist/ui/cta.js.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts.map +1 -1
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/drawer.d.ts +11 -11
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/field.d.ts +13 -13
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/hover-card.d.ts +4 -4
- package/dist/ui/input-group.d.ts +11 -11
- package/dist/ui/input-group.d.ts.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/live-region.d.ts +2 -2
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/map/MapBase.d.ts +2 -2
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +2 -2
- package/dist/ui/map/MapGeoJsonOverlay.js.map +1 -1
- package/dist/ui/map/MapHeatmapH3.d.ts +2 -2
- package/dist/ui/map/MapHeatmapH3.js.map +1 -1
- package/dist/ui/map/MapMarkers.d.ts +2 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts.map +1 -1
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/molecules/Autocomplete/index.d.ts +2 -2
- package/dist/ui/molecules/Autocomplete/index.js.map +1 -1
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/molecules/SkeletonList.d.ts.map +1 -1
- package/dist/ui/nav-layout.d.ts +7 -7
- package/dist/ui/navigation-menu.d.ts +11 -11
- package/dist/ui/navigation-menu.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.js +0 -2
- package/dist/ui/organisms/ListPage/ListPage.js.map +1 -1
- package/dist/ui/page-header.d.ts +4 -4
- package/dist/ui/pagination.d.ts +6 -6
- package/dist/ui/popover.d.ts +5 -5
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/resizable.d.ts +4 -4
- package/dist/ui/resizable.d.ts.map +1 -1
- package/dist/ui/route-announcer.d.ts +2 -2
- package/dist/ui/scroll-area.d.ts +3 -3
- package/dist/ui/section.d.ts +3 -3
- package/dist/ui/select.d.ts +11 -11
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/sheet.d.ts +9 -9
- package/dist/ui/sidebar.d.ts +26 -26
- package/dist/ui/sidebar.d.ts.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skip-link.d.ts +2 -2
- package/dist/ui/slider.d.ts +2 -2
- package/dist/ui/sonner.d.ts +2 -2
- package/dist/ui/stack.d.ts +13 -13
- package/dist/ui/stat-card-group.d.ts +2 -2
- package/dist/ui/stepper.d.ts +4 -4
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.d.ts.map +1 -1
- package/dist/ui/table.d.ts +9 -9
- package/dist/ui/tabs.d.ts +5 -5
- package/dist/ui/tabs.d.ts.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/textarea.d.ts +2 -2
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/toast.d.ts +2 -2
- package/dist/ui/toaster.d.ts +2 -2
- package/dist/ui/toggle-group.d.ts +3 -3
- package/dist/ui/toggle.d.ts +4 -4
- package/dist/ui/tooltip.d.ts +5 -5
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/use-toast.js.map +1 -1
- package/dist/ui/useListState.js.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/visually-hidden.js.map +1 -1
- package/package.json +15 -16
package/dist/ui/accordion.d.ts
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import * as AccordionPrimitive from "@radix-ui/react-accordion";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime0 from "react/jsx-runtime";
|
|
4
4
|
|
|
5
5
|
//#region ui/accordion.d.ts
|
|
6
6
|
declare function Accordion({
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof AccordionPrimitive.Root>): react_jsx_runtime0.JSX.Element;
|
|
9
9
|
declare function AccordionItem({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Item>):
|
|
12
|
+
}: React$1.ComponentProps<typeof AccordionPrimitive.Item>): react_jsx_runtime0.JSX.Element;
|
|
13
13
|
declare function AccordionTrigger({
|
|
14
14
|
className,
|
|
15
15
|
children,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>):
|
|
17
|
+
}: React$1.ComponentProps<typeof AccordionPrimitive.Trigger>): react_jsx_runtime0.JSX.Element;
|
|
18
18
|
declare function AccordionContent({
|
|
19
19
|
className,
|
|
20
20
|
children,
|
|
21
21
|
...props
|
|
22
|
-
}: React$1.ComponentProps<typeof AccordionPrimitive.Content>):
|
|
22
|
+
}: React$1.ComponentProps<typeof AccordionPrimitive.Content>): react_jsx_runtime0.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
25
25
|
//# sourceMappingURL=accordion.d.ts.map
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime26 from "react/jsx-runtime";
|
|
3
3
|
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
4
4
|
|
|
5
5
|
//#region ui/alert-dialog.d.ts
|
|
6
6
|
declare function AlertDialog({
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>):
|
|
8
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Root>): react_jsx_runtime26.JSX.Element;
|
|
9
9
|
declare function AlertDialogTrigger({
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>):
|
|
11
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Trigger>): react_jsx_runtime26.JSX.Element;
|
|
12
12
|
declare function AlertDialogPortal({
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>):
|
|
14
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Portal>): react_jsx_runtime26.JSX.Element;
|
|
15
15
|
declare function AlertDialogOverlay({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>):
|
|
18
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Overlay>): react_jsx_runtime26.JSX.Element;
|
|
19
19
|
declare function AlertDialogContent({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Content>):
|
|
22
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Content>): react_jsx_runtime26.JSX.Element;
|
|
23
23
|
declare function AlertDialogHeader({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
26
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime26.JSX.Element;
|
|
27
27
|
declare function AlertDialogFooter({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
30
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime26.JSX.Element;
|
|
31
31
|
declare function AlertDialogTitle({
|
|
32
32
|
className,
|
|
33
33
|
...props
|
|
34
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>):
|
|
34
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Title>): react_jsx_runtime26.JSX.Element;
|
|
35
35
|
declare function AlertDialogDescription({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>):
|
|
38
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Description>): react_jsx_runtime26.JSX.Element;
|
|
39
39
|
declare function AlertDialogAction({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>):
|
|
42
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Action>): react_jsx_runtime26.JSX.Element;
|
|
43
43
|
declare function AlertDialogCancel({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>):
|
|
46
|
+
}: React$1.ComponentProps<typeof AlertDialogPrimitive.Cancel>): react_jsx_runtime26.JSX.Element;
|
|
47
47
|
//#endregion
|
|
48
48
|
export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger };
|
|
49
49
|
//# sourceMappingURL=alert-dialog.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alert-dialog.d.ts","names":[],"sources":["../../ui/alert-dialog.tsx"],"sourcesContent":[],"mappings":";;;;;iBAQS,WAAA;;GAEN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAK,
|
|
1
|
+
{"version":3,"file":"alert-dialog.d.ts","names":[],"sources":["../../ui/alert-dialog.tsx"],"sourcesContent":[],"mappings":";;;;;iBAQS,WAAA;;GAEN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAIhD,kBAAA;;GAEN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,WAAQ,mBAAA,CAAA,GAAA,CAAA;iBAMnD,iBAAA;;GAEN,OAAA,CAAM,sBAAsB,oBAAA,CAAqB,UAAO,mBAAA,CAAA,GAAA,CAAA;AArBU,iBA2B5D,kBAAA,CAtBW;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAyBjB,OAAA,CAAM,cAzBW,CAAA,OAyBW,oBAAA,CAAqB,OAzBhC,CAAA,CAAA,EAyBwC,mBAAA,CAAA,GAAA,CAAA,OAzBxC;iBAsCX,kBAAA,CApC2C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuCjD,OAAA,CAAM,cAvC2C,CAAA,OAuCrB,oBAAA,CAAqB,OAvCA,CAAA,CAAA,EAuCQ,mBAAA,CAAA,GAAA,CAAA,OAvCR;iBAuD3C,iBAAA,CAvDA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA0DN,OAAA,CAAM,wBA1DA,CAAA,KAAA,CAAA,CAAA,EA0D+B,mBAAA,CAAA,GAAA,CAAA,OA1D/B;iBAoEA,iBAAA,CApEgD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuEtD,OAAA,CAAM,wBAvEgD,CAAA,KAAA,CAAA,CAAA,EAuEjB,mBAAA,CAAA,GAAA,CAAA,OAvEiB;iBAoFhD,gBAAA,CApFgD;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuFtD,OAAA,CAAM,cAvFgD,CAAA,OAuF1B,oBAAA,CAAqB,KAvFK,CAAA,CAAA,EAuFC,mBAAA,CAAA,GAAA,CAAA,OAvFD;AAAA,iBAiGhD,sBAAA,CA7FkB;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgGxB,OAAA,CAAM,cAhGkB,CAAA,OAgGI,oBAAA,CAAqB,WAhGzB,CAAA,CAAA,EAgGqC,mBAAA,CAAA,GAAA,CAAA,OAhGrC;iBA0GlB,iBAAA,CAxG2C;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA2GjD,OAAA,CAAM,cA3G2C,CAAA,OA2GrB,oBAAA,CAAqB,MA3GA,CAAA,CAAA,EA2GO,mBAAA,CAAA,GAAA,CAAA,OA3GP;iBAoH3C,iBAAA,CApHA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAuHN,OAAA,CAAM,cAvHA,CAAA,OAuHsB,oBAAA,CAAqB,MAvH3C,CAAA,CAAA,EAuHkD,mBAAA,CAAA,GAAA,CAAA,OAvHlD"}
|
package/dist/ui/alert.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime10 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -11,15 +11,15 @@ declare function Alert({
|
|
|
11
11
|
className,
|
|
12
12
|
variant,
|
|
13
13
|
...props
|
|
14
|
-
}: React$1.ComponentPropsWithoutRef<'div'> & VariantProps<typeof alertVariants>):
|
|
14
|
+
}: React$1.ComponentPropsWithoutRef<'div'> & VariantProps<typeof alertVariants>): react_jsx_runtime10.JSX.Element;
|
|
15
15
|
declare function AlertTitle({
|
|
16
16
|
className,
|
|
17
17
|
...props
|
|
18
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
18
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime10.JSX.Element;
|
|
19
19
|
declare function AlertDescription({
|
|
20
20
|
className,
|
|
21
21
|
...props
|
|
22
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
22
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime10.JSX.Element;
|
|
23
23
|
//#endregion
|
|
24
24
|
export { Alert, AlertDescription, AlertTitle };
|
|
25
25
|
//# sourceMappingURL=alert.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FilterSelect.js","names":[
|
|
1
|
+
{"version":3,"file":"FilterSelect.js","names":[],"sources":["../../../../ui/atoms/FilterSelect/FilterSelect.tsx"],"sourcesContent":["import React from 'react';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '../../select';\nimport { Label } from '../../label';\nimport type { FilterSelectProps } from './types';\n\nexport const FilterSelect: React.FC<FilterSelectProps> = ({\n value,\n options,\n onChange,\n placeholder = 'Sélectionner...',\n label,\n disabled = false,\n className = '',\n showCounts = false,\n}) => {\n return (\n <div className={`space-y-2 ${className}`}>\n {label && (\n <Label className=\"text-foreground text-base font-medium\">{label}</Label>\n )}\n <Select value={value} onValueChange={onChange} disabled={disabled}>\n <SelectTrigger className=\"w-full\">\n <SelectValue placeholder={placeholder} />\n </SelectTrigger>\n <SelectContent className=\"bg-background\">\n {/* All/Reset option */}\n <SelectItem value=\"all\">\n Tous\n {showCounts && (\n <span className=\"text-muted-foreground ml-2 text-sm\">\n ({options.reduce((sum, option) => sum + (option.count || 0), 0)}\n )\n </span>\n )}\n </SelectItem>\n\n {/* Filter options */}\n {options.map((option) => (\n <SelectItem key={option.value} value={option.value}>\n <div className=\"flex w-full items-center justify-between\">\n <span>{option.label}</span>\n {showCounts && option.count !== undefined && (\n <span className=\"text-muted-foreground ml-2 text-sm\">\n ({option.count})\n </span>\n )}\n </div>\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n );\n};\n"],"mappings":";;;;;;AAWA,MAAa,gBAA6C,EACxD,OACA,SACA,UACA,cAAc,mBACd,OACA,WAAW,OACX,YAAY,IACZ,aAAa,YACT;AACJ,QACE,qBAAC;EAAI,WAAW,aAAa;aAC1B,SACC,oBAAC;GAAM,WAAU;aAAyC;IAAc,EAE1E,qBAAC;GAAc;GAAO,eAAe;GAAoB;cACvD,oBAAC;IAAc,WAAU;cACvB,oBAAC,eAAyB,cAAe;KAC3B,EAChB,qBAAC;IAAc,WAAU;eAEvB,qBAAC;KAAW,OAAM;gBAAM,QAErB,cACC,qBAAC;MAAK,WAAU;;OAAqC;OACjD,QAAQ,QAAQ,KAAK,WAAW,OAAO,OAAO,SAAS,IAAI,EAAE;OAAC;;OAE3D;MAEE,EAGZ,QAAQ,KAAK,WACZ,oBAAC;KAA8B,OAAO,OAAO;eAC3C,qBAAC;MAAI,WAAU;iBACb,oBAAC,oBAAM,OAAO,QAAa,EAC1B,cAAc,OAAO,UAAU,UAC9B,qBAAC;OAAK,WAAU;;QAAqC;QACjD,OAAO;QAAM;;QACV;OAEL;OARS,OAAO,MASX,CACb;KACY;IACT;GACL"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LoadingSpinner.js","names":[
|
|
1
|
+
{"version":3,"file":"LoadingSpinner.js","names":[],"sources":["../../../../ui/atoms/LoadingSpinner/LoadingSpinner.tsx"],"sourcesContent":["import React from 'react';\nimport { Loader2 } from 'lucide-react';\nimport { cn } from '../../utils';\n\ninterface LoadingSpinnerProps {\n size?: 'sm' | 'md' | 'lg' | 'xl';\n className?: string;\n text?: string;\n fullScreen?: boolean;\n}\n\nconst sizeClasses = {\n sm: 'h-4 w-4',\n md: 'h-6 w-6',\n lg: 'h-8 w-8',\n xl: 'h-12 w-12',\n};\n\nexport const LoadingSpinner: React.FC<LoadingSpinnerProps> = ({\n size = 'md',\n className,\n text,\n fullScreen = false,\n}) => {\n const spinner = (\n <div\n className={cn(\n 'flex flex-col items-center justify-center gap-2',\n className\n )}\n >\n <Loader2\n className={cn('text-primary-600 animate-spin', sizeClasses[size])}\n />\n {text && <p className=\"animate-pulse text-base text-gray-600\">{text}</p>}\n </div>\n );\n\n if (fullScreen) {\n return (\n <div className=\"fixed inset-0 z-50 flex items-center justify-center bg-white/80 backdrop-blur-xs\">\n {spinner}\n </div>\n );\n }\n\n return spinner;\n};\n\n// Skeleton loading components for better UX\nexport const SkeletonLine: React.FC<{ className?: string }> = ({\n className,\n}) => (\n <div className={cn('h-4 animate-pulse rounded-xs bg-gray-200', className)} />\n);\n\nexport const SkeletonCard: React.FC<{ className?: string }> = ({\n className,\n}) => (\n <div\n className={cn(\n 'animate-pulse space-y-3 rounded-lg bg-gray-200 p-4',\n className\n )}\n >\n <SkeletonLine className=\"h-6 w-3/4\" />\n <SkeletonLine className=\"h-4 w-full\" />\n <SkeletonLine className=\"h-4 w-2/3\" />\n </div>\n);\n\nexport const SkeletonTable: React.FC<{ rows?: number; cols?: number }> = ({\n rows = 5,\n cols = 4,\n}) => (\n <div className=\"space-y-3\">\n {Array.from({ length: rows }).map((_, i) => (\n <div key={i} className=\"flex space-x-4\">\n {Array.from({ length: cols }).map((_, j) => (\n <SkeletonLine key={j} className=\"flex-1\" />\n ))}\n </div>\n ))}\n </div>\n);\n"],"mappings":";;;;;;AAWA,MAAM,cAAc;CAClB,IAAI;CACJ,IAAI;CACJ,IAAI;CACJ,IAAI;CACL;AAED,MAAa,kBAAiD,EAC5D,OAAO,MACP,WACA,MACA,aAAa,YACT;CACJ,MAAM,UACJ,qBAAC;EACC,WAAW,GACT,mDACA,UACD;aAED,oBAAC,WACC,WAAW,GAAG,iCAAiC,YAAY,MAAM,GACjE,EACD,QAAQ,oBAAC;GAAE,WAAU;aAAyC;IAAS;GACpE;AAGR,KAAI,WACF,QACE,oBAAC;EAAI,WAAU;YACZ;GACG;AAIV,QAAO;;AAIT,MAAa,gBAAkD,EAC7D,gBAEA,oBAAC,SAAI,WAAW,GAAG,4CAA4C,UAAU,GAAI;AAG/E,MAAa,gBAAkD,EAC7D,gBAEA,qBAAC;CACC,WAAW,GACT,sDACA,UACD;;EAED,oBAAC,gBAAa,WAAU,cAAc;EACtC,oBAAC,gBAAa,WAAU,eAAe;EACvC,oBAAC,gBAAa,WAAU,cAAc;;EAClC;AAGR,MAAa,iBAA6D,EACxE,OAAO,GACP,OAAO,QAEP,oBAAC;CAAI,WAAU;WACZ,MAAM,KAAK,EAAE,QAAQ,MAAM,CAAC,CAAC,KAAK,GAAG,MACpC,oBAAC;EAAY,WAAU;YACpB,MAAM,KAAK,EAAE,QAAQ,MAAM,CAAC,CAAC,KAAK,KAAG,MACpC,oBAAC,gBAAqB,WAAU,YAAb,EAAwB,CAC3C;IAHM,EAIJ,CACN;EACE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.js","names":[
|
|
1
|
+
{"version":3,"file":"Pagination.js","names":[],"sources":["../../../../ui/atoms/Pagination/Pagination.tsx"],"sourcesContent":["import React from 'react';\nimport {\n ChevronLeft,\n ChevronRight,\n ChevronsLeft,\n ChevronsRight,\n} from 'lucide-react';\nimport { Button } from '../../button';\nimport {\n Select,\n SelectContent,\n SelectItem,\n SelectTrigger,\n SelectValue,\n} from '../../select';\nimport type { PaginationProps } from './types';\n\nexport const Pagination: React.FC<PaginationProps> = ({\n currentPage,\n totalPages,\n totalItems,\n itemsPerPage,\n onPageChange,\n onItemsPerPageChange,\n disabled = false,\n className = '',\n showItemsPerPage = true,\n itemsPerPageOptions = [10, 25, 50, 100],\n}) => {\n const startItem = (currentPage - 1) * itemsPerPage + 1;\n const endItem = Math.min(currentPage * itemsPerPage, totalItems);\n\n const canGoPrevious = currentPage > 1 && !disabled;\n const canGoNext = currentPage < totalPages && !disabled;\n\n const getVisiblePageNumbers = () => {\n if (totalPages <= 7) {\n return Array.from({ length: totalPages }, (_, i) => i + 1);\n }\n\n if (currentPage <= 3) {\n return [1, 2, 3, 4, 5, -1, totalPages]; // -1 represents ellipsis\n }\n\n if (currentPage >= totalPages - 2) {\n return [\n 1,\n -1,\n totalPages - 4,\n totalPages - 3,\n totalPages - 2,\n totalPages - 1,\n totalPages,\n ];\n }\n\n return [\n 1,\n -1,\n currentPage - 1,\n currentPage,\n currentPage + 1,\n -1,\n totalPages,\n ];\n };\n\n if (totalPages === 0) return null;\n\n return (\n <div\n className={`flex flex-col items-center justify-between gap-4 sm:flex-row ${className}`}\n >\n {/* Items info */}\n <div className=\"text-muted-foreground order-2 text-base sm:order-1\">\n Affichage de {startItem} à {endItem} sur {totalItems} résultats\n </div>\n\n {/* Pagination controls */}\n <div className=\"order-1 flex items-center gap-2 sm:order-2\">\n {/* First page */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onPageChange(1)}\n disabled={!canGoPrevious}\n className=\"hidden h-8 w-8 p-0 sm:flex\"\n >\n <ChevronsLeft className=\"h-4 w-4\" />\n <span className=\"sr-only\">Première page</span>\n </Button>\n\n {/* Previous page */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onPageChange(currentPage - 1)}\n disabled={!canGoPrevious}\n className=\"h-8 w-8 p-0\"\n >\n <ChevronLeft className=\"h-4 w-4\" />\n <span className=\"sr-only\">Page précédente</span>\n </Button>\n\n {/* Page numbers */}\n <div className=\"flex items-center gap-1\">\n {getVisiblePageNumbers().map((page, index) => {\n if (page === -1) {\n return (\n <span\n key={`ellipsis-${index}`}\n className=\"text-muted-foreground px-2 py-1\"\n >\n ...\n </span>\n );\n }\n\n return (\n <Button\n key={page}\n variant={page === currentPage ? 'default' : 'outline'}\n size=\"sm\"\n onClick={() => onPageChange(page)}\n disabled={disabled}\n className=\"h-8 min-w-8 px-2\"\n >\n {page}\n </Button>\n );\n })}\n </div>\n\n {/* Next page */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onPageChange(currentPage + 1)}\n disabled={!canGoNext}\n className=\"h-8 w-8 p-0\"\n >\n <ChevronRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Page suivante</span>\n </Button>\n\n {/* Last page */}\n <Button\n variant=\"outline\"\n size=\"sm\"\n onClick={() => onPageChange(totalPages)}\n disabled={!canGoNext}\n className=\"hidden h-8 w-8 p-0 sm:flex\"\n >\n <ChevronsRight className=\"h-4 w-4\" />\n <span className=\"sr-only\">Dernière page</span>\n </Button>\n </div>\n\n {/* Items per page */}\n {showItemsPerPage && onItemsPerPageChange && (\n <div className=\"order-3 flex items-center gap-2 text-base\">\n <span className=\"text-muted-foreground\">Afficher:</span>\n <Select\n value={itemsPerPage.toString()}\n onValueChange={(value) => onItemsPerPageChange(parseInt(value))}\n disabled={disabled}\n >\n <SelectTrigger className=\"h-8 w-16\">\n <SelectValue />\n </SelectTrigger>\n <SelectContent className=\"bg-background\">\n {itemsPerPageOptions.map((option) => (\n <SelectItem key={option} value={option.toString()}>\n {option}\n </SelectItem>\n ))}\n </SelectContent>\n </Select>\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;AAiBA,MAAa,cAAyC,EACpD,aACA,YACA,YACA,cACA,cACA,sBACA,WAAW,OACX,YAAY,IACZ,mBAAmB,MACnB,sBAAsB;CAAC;CAAI;CAAI;CAAI;CAAI,OACnC;CACJ,MAAM,aAAa,cAAc,KAAK,eAAe;CACrD,MAAM,UAAU,KAAK,IAAI,cAAc,cAAc,WAAW;CAEhE,MAAM,gBAAgB,cAAc,KAAK,CAAC;CAC1C,MAAM,YAAY,cAAc,cAAc,CAAC;CAE/C,MAAM,8BAA8B;AAClC,MAAI,cAAc,EAChB,QAAO,MAAM,KAAK,EAAE,QAAQ,YAAY,GAAG,GAAG,MAAM,IAAI,EAAE;AAG5D,MAAI,eAAe,EACjB,QAAO;GAAC;GAAG;GAAG;GAAG;GAAG;GAAG;GAAI;GAAW;AAGxC,MAAI,eAAe,aAAa,EAC9B,QAAO;GACL;GACA;GACA,aAAa;GACb,aAAa;GACb,aAAa;GACb,aAAa;GACb;GACD;AAGH,SAAO;GACL;GACA;GACA,cAAc;GACd;GACA,cAAc;GACd;GACA;GACD;;AAGH,KAAI,eAAe,EAAG,QAAO;AAE7B,QACE,qBAAC;EACC,WAAW,gEAAgE;;GAG3E,qBAAC;IAAI,WAAU;;KAAqD;KACpD;KAAU;KAAI;KAAQ;KAAM;KAAW;;KACjD;GAGN,qBAAC;IAAI,WAAU;;KAEb,qBAAC;MACC,SAAQ;MACR,MAAK;MACL,eAAe,aAAa,EAAE;MAC9B,UAAU,CAAC;MACX,WAAU;iBAEV,oBAAC,gBAAa,WAAU,YAAY,EACpC,oBAAC;OAAK,WAAU;iBAAU;QAAoB;OACvC;KAGT,qBAAC;MACC,SAAQ;MACR,MAAK;MACL,eAAe,aAAa,cAAc,EAAE;MAC5C,UAAU,CAAC;MACX,WAAU;iBAEV,oBAAC,eAAY,WAAU,YAAY,EACnC,oBAAC;OAAK,WAAU;iBAAU;QAAsB;OACzC;KAGT,oBAAC;MAAI,WAAU;gBACZ,uBAAuB,CAAC,KAAK,MAAM,UAAU;AAC5C,WAAI,SAAS,GACX,QACE,oBAAC;QAEC,WAAU;kBACX;UAFM,YAAY,QAIZ;AAIX,cACE,oBAAC;QAEC,SAAS,SAAS,cAAc,YAAY;QAC5C,MAAK;QACL,eAAe,aAAa,KAAK;QACvB;QACV,WAAU;kBAET;UAPI,KAQE;QAEX;OACE;KAGN,qBAAC;MACC,SAAQ;MACR,MAAK;MACL,eAAe,aAAa,cAAc,EAAE;MAC5C,UAAU,CAAC;MACX,WAAU;iBAEV,oBAAC,gBAAa,WAAU,YAAY,EACpC,oBAAC;OAAK,WAAU;iBAAU;QAAoB;OACvC;KAGT,qBAAC;MACC,SAAQ;MACR,MAAK;MACL,eAAe,aAAa,WAAW;MACvC,UAAU,CAAC;MACX,WAAU;iBAEV,oBAAC,iBAAc,WAAU,YAAY,EACrC,oBAAC;OAAK,WAAU;iBAAU;QAAoB;OACvC;;KACL;GAGL,oBAAoB,wBACnB,qBAAC;IAAI,WAAU;eACb,oBAAC;KAAK,WAAU;eAAwB;MAAgB,EACxD,qBAAC;KACC,OAAO,aAAa,UAAU;KAC9B,gBAAgB,UAAU,qBAAqB,SAAS,MAAM,CAAC;KACrD;gBAEV,oBAAC;MAAc,WAAU;gBACvB,oBAAC,gBAAc;OACD,EAChB,oBAAC;MAAc,WAAU;gBACtB,oBAAoB,KAAK,WACxB,oBAAC;OAAwB,OAAO,OAAO,UAAU;iBAC9C;SADc,OAEJ,CACb;OACY;MACT;KACL;;GAEJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.js","names":[
|
|
1
|
+
{"version":3,"file":"SearchInput.js","names":[],"sources":["../../../../ui/atoms/SearchInput/SearchInput.tsx"],"sourcesContent":["import React from 'react';\nimport { Search, X } from 'lucide-react';\nimport { Input } from '../../input';\nimport { Button } from '../../button';\nimport type { SearchInputProps } from './types';\n\nexport const SearchInput: React.FC<SearchInputProps> = ({\n value,\n onChange,\n placeholder = 'Rechercher...',\n onClear,\n disabled = false,\n className = '',\n autoFocus = false,\n}) => {\n const handleClear = () => {\n onChange('');\n onClear?.();\n };\n\n return (\n <div className={`relative w-full ${className}`}>\n <div className=\"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3\">\n <Search className=\"text-muted-foreground h-4 w-4\" />\n </div>\n\n <Input\n type=\"text\"\n value={value}\n onChange={(e) => onChange(e.target.value)}\n placeholder={placeholder}\n disabled={disabled}\n // eslint-disable-next-line jsx-a11y/no-autofocus\n autoFocus={autoFocus}\n className=\"pr-10 pl-10\"\n />\n\n {value && (\n <div className=\"absolute inset-y-0 right-0 flex items-center pr-3\">\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"sm\"\n onClick={handleClear}\n disabled={disabled}\n className=\"h-6 w-6 p-0 hover:bg-transparent\"\n >\n <X className=\"text-muted-foreground hover:text-foreground h-4 w-4\" />\n <span className=\"sr-only\">Effacer la recherche</span>\n </Button>\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;;;;AAMA,MAAa,eAA2C,EACtD,OACA,UACA,cAAc,iBACd,SACA,WAAW,OACX,YAAY,IACZ,YAAY,YACR;CACJ,MAAM,oBAAoB;AACxB,WAAS,GAAG;AACZ,aAAW;;AAGb,QACE,qBAAC;EAAI,WAAW,mBAAmB;;GACjC,oBAAC;IAAI,WAAU;cACb,oBAAC,UAAO,WAAU,kCAAkC;KAChD;GAEN,oBAAC;IACC,MAAK;IACE;IACP,WAAW,MAAM,SAAS,EAAE,OAAO,MAAM;IAC5B;IACH;IAEC;IACX,WAAU;KACV;GAED,SACC,oBAAC;IAAI,WAAU;cACb,qBAAC;KACC,MAAK;KACL,SAAQ;KACR,MAAK;KACL,SAAS;KACC;KACV,WAAU;gBAEV,oBAAC,KAAE,WAAU,wDAAwD,EACrE,oBAAC;MAAK,WAAU;gBAAU;OAA2B;MAC9C;KACL;;GAEJ"}
|
package/dist/ui/avatar.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime21 from "react/jsx-runtime";
|
|
3
3
|
import * as AvatarPrimitive from "@radix-ui/react-avatar";
|
|
4
4
|
|
|
5
5
|
//#region ui/avatar.d.ts
|
|
6
6
|
declare function Avatar({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof AvatarPrimitive.Root>):
|
|
9
|
+
}: React$1.ComponentProps<typeof AvatarPrimitive.Root>): react_jsx_runtime21.JSX.Element;
|
|
10
10
|
declare function AvatarImage({
|
|
11
11
|
className,
|
|
12
12
|
...props
|
|
13
|
-
}: React$1.ComponentProps<typeof AvatarPrimitive.Image>):
|
|
13
|
+
}: React$1.ComponentProps<typeof AvatarPrimitive.Image>): react_jsx_runtime21.JSX.Element;
|
|
14
14
|
declare function AvatarFallback({
|
|
15
15
|
className,
|
|
16
16
|
...props
|
|
17
|
-
}: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>):
|
|
17
|
+
}: React$1.ComponentProps<typeof AvatarPrimitive.Fallback>): react_jsx_runtime21.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { Avatar, AvatarFallback, AvatarImage };
|
|
20
20
|
//# sourceMappingURL=avatar.d.ts.map
|
package/dist/ui/badge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime37 from "react/jsx-runtime";
|
|
3
3
|
import { VariantProps } from "class-variance-authority";
|
|
4
4
|
import * as class_variance_authority_types0 from "class-variance-authority/types";
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@ declare function Badge({
|
|
|
14
14
|
...props
|
|
15
15
|
}: React$1.ComponentPropsWithoutRef<'span'> & VariantProps<typeof badgeVariants> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
|
-
}):
|
|
17
|
+
}): react_jsx_runtime37.JSX.Element;
|
|
18
18
|
//#endregion
|
|
19
19
|
export { Badge, badgeVariants };
|
|
20
20
|
//# sourceMappingURL=badge.d.ts.map
|
package/dist/ui/breadcrumb.d.ts
CHANGED
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime3 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/breadcrumb.d.ts
|
|
5
5
|
declare function Breadcrumb({
|
|
6
6
|
...props
|
|
7
|
-
}: React$1.ComponentPropsWithoutRef<'nav'>):
|
|
7
|
+
}: React$1.ComponentPropsWithoutRef<'nav'>): react_jsx_runtime3.JSX.Element;
|
|
8
8
|
declare function BreadcrumbList({
|
|
9
9
|
className,
|
|
10
10
|
...props
|
|
11
|
-
}: React$1.ComponentPropsWithoutRef<'ol'>):
|
|
11
|
+
}: React$1.ComponentPropsWithoutRef<'ol'>): react_jsx_runtime3.JSX.Element;
|
|
12
12
|
declare function BreadcrumbItem({
|
|
13
13
|
className,
|
|
14
14
|
...props
|
|
15
|
-
}: React$1.ComponentPropsWithoutRef<'li'>):
|
|
15
|
+
}: React$1.ComponentPropsWithoutRef<'li'>): react_jsx_runtime3.JSX.Element;
|
|
16
16
|
declare function BreadcrumbLink({
|
|
17
17
|
asChild,
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
20
|
}: React$1.ComponentPropsWithoutRef<'a'> & {
|
|
21
21
|
asChild?: boolean;
|
|
22
|
-
}):
|
|
22
|
+
}): react_jsx_runtime3.JSX.Element;
|
|
23
23
|
declare function BreadcrumbPage({
|
|
24
24
|
className,
|
|
25
25
|
...props
|
|
26
|
-
}: React$1.ComponentPropsWithoutRef<'span'>):
|
|
26
|
+
}: React$1.ComponentPropsWithoutRef<'span'>): react_jsx_runtime3.JSX.Element;
|
|
27
27
|
declare function BreadcrumbSeparator({
|
|
28
28
|
children,
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentPropsWithoutRef<'li'>):
|
|
31
|
+
}: React$1.ComponentPropsWithoutRef<'li'>): react_jsx_runtime3.JSX.Element;
|
|
32
32
|
declare function BreadcrumbEllipsis({
|
|
33
33
|
className,
|
|
34
34
|
...props
|
|
35
|
-
}: React$1.ComponentPropsWithoutRef<'span'>):
|
|
35
|
+
}: React$1.ComponentPropsWithoutRef<'span'>): react_jsx_runtime3.JSX.Element;
|
|
36
36
|
//#endregion
|
|
37
37
|
export { Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbList, BreadcrumbPage, BreadcrumbSeparator };
|
|
38
38
|
//# sourceMappingURL=breadcrumb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"breadcrumb.d.ts","names":[],"sources":["../../ui/breadcrumb.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,UAAA;;GAAyB,OAAA,CAAM,kCAA+B,
|
|
1
|
+
{"version":3,"file":"breadcrumb.d.ts","names":[],"sources":["../../ui/breadcrumb.tsx"],"sourcesContent":[],"mappings":";;;;iBAMS,UAAA;;GAAyB,OAAA,CAAM,kCAA+B,kBAAA,CAAA,GAAA,CAAA;iBAI9D,cAAA;;;GAGN,OAAA,CAAM,iCAA8B,kBAAA,CAAA,GAAA,CAAA;iBAa9B,cAAA;;;GAGN,OAAA,CAAM,iCAA8B,kBAAA,CAAA,GAAA,CAAA;AA7BR,iBAuCtB,cAAA,CAjCyB;EAAA,OAAM;EAAA,SAAA;EAAA,GAAA;CAA+B,EAqCpE,OAAA,CAAM,wBArC8D,CAAA,GAAA,CAAA,GAAA;EAI9D,OAAA,CAAA,EAAA,OAAc;CACrB,CAAA,EAkCD,kBAAA,CAAA,GAAA,CAAA,OAlCC;iBA8CO,cAAA,CA5CA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EA+CN,OAAA,CAAM,wBA/CA,CAAA,MAAA,CAAA,CAAA,EA+CgC,kBAAA,CAAA,GAAA,CAAA,OA/ChC;iBA4DA,mBAAA,CA5D8B;EAAA,QAAA;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAgEpC,OAAA,CAAM,wBAhE8B,CAAA,IAAA,CAAA,CAAA,EAgEA,kBAAA,CAAA,GAAA,CAAA,OAhEA;iBA8E9B,kBAAA,CA9E8B;EAAA,SAAA;EAAA,GAAA;AAAA,CAAA,EAiFpC,OAAA,CAAM,wBAjF8B,CAAA,MAAA,CAAA,CAAA,EAiFE,kBAAA,CAAA,GAAA,CAAA,OAjFF"}
|
package/dist/ui/button.d.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as
|
|
3
|
+
import * as class_variance_authority_types1 from "class-variance-authority/types";
|
|
4
4
|
|
|
5
5
|
//#region ui/button.d.ts
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
7
|
variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
8
8
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
9
|
-
} &
|
|
9
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string;
|
|
10
10
|
type ButtonProps = React$1.ComponentPropsWithoutRef<'button'> & VariantProps<typeof buttonVariants> & {
|
|
11
11
|
asChild?: boolean;
|
|
12
12
|
};
|
|
13
13
|
declare const Button: React$1.ForwardRefExoticComponent<Omit<React$1.DetailedHTMLProps<React$1.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement>, "ref"> & VariantProps<(props?: ({
|
|
14
14
|
variant?: "default" | "destructive" | "link" | "secondary" | "outline" | "ghost" | null | undefined;
|
|
15
15
|
size?: "default" | "sm" | "lg" | "icon" | null | undefined;
|
|
16
|
-
} &
|
|
16
|
+
} & class_variance_authority_types1.ClassProp) | undefined) => string> & {
|
|
17
17
|
asChild?: boolean;
|
|
18
18
|
} & React$1.RefAttributes<HTMLButtonElement>>;
|
|
19
19
|
//#endregion
|
package/dist/ui/calendar.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime24 from "react/jsx-runtime";
|
|
4
4
|
import { DayButton, DayPicker } from "react-day-picker";
|
|
5
5
|
|
|
6
6
|
//#region ui/calendar.d.ts
|
|
@@ -15,13 +15,13 @@ declare function Calendar({
|
|
|
15
15
|
...props
|
|
16
16
|
}: React$1.ComponentProps<typeof DayPicker> & {
|
|
17
17
|
buttonVariant?: React$1.ComponentProps<typeof Button>['variant'];
|
|
18
|
-
}):
|
|
18
|
+
}): react_jsx_runtime24.JSX.Element;
|
|
19
19
|
declare function CalendarDayButton({
|
|
20
20
|
className,
|
|
21
21
|
day,
|
|
22
22
|
modifiers,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentProps<typeof DayButton>):
|
|
24
|
+
}: React$1.ComponentProps<typeof DayButton>): react_jsx_runtime24.JSX.Element;
|
|
25
25
|
//#endregion
|
|
26
26
|
export { Calendar, CalendarDayButton };
|
|
27
27
|
//# sourceMappingURL=calendar.d.ts.map
|
package/dist/ui/card.d.ts
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime13 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/card.d.ts
|
|
5
5
|
declare function Card({
|
|
6
6
|
className,
|
|
7
7
|
...props
|
|
8
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
8
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
9
9
|
declare function CardHeader({
|
|
10
10
|
className,
|
|
11
11
|
...props
|
|
12
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
12
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
13
13
|
declare function CardTitle({
|
|
14
14
|
className,
|
|
15
15
|
...props
|
|
16
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
16
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
17
17
|
declare function CardDescription({
|
|
18
18
|
className,
|
|
19
19
|
...props
|
|
20
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
20
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
21
21
|
declare function CardAction({
|
|
22
22
|
className,
|
|
23
23
|
...props
|
|
24
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
24
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
25
25
|
declare function CardContent({
|
|
26
26
|
className,
|
|
27
27
|
...props
|
|
28
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
28
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
29
29
|
declare function CardFooter({
|
|
30
30
|
className,
|
|
31
31
|
...props
|
|
32
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
32
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime13.JSX.Element;
|
|
33
33
|
//#endregion
|
|
34
34
|
export { Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle };
|
|
35
35
|
//# sourceMappingURL=card.d.ts.map
|
package/dist/ui/carousel.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Button } from "./button.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime40 from "react/jsx-runtime";
|
|
4
4
|
import useEmblaCarousel, { UseEmblaCarouselType } from "embla-carousel-react";
|
|
5
5
|
|
|
6
6
|
//#region ui/carousel.d.ts
|
|
@@ -22,27 +22,27 @@ declare function Carousel({
|
|
|
22
22
|
className,
|
|
23
23
|
children,
|
|
24
24
|
...props
|
|
25
|
-
}: React$1.ComponentPropsWithoutRef<'div'> & CarouselProps):
|
|
25
|
+
}: React$1.ComponentPropsWithoutRef<'div'> & CarouselProps): react_jsx_runtime40.JSX.Element;
|
|
26
26
|
declare function CarouselContent({
|
|
27
27
|
className,
|
|
28
28
|
...props
|
|
29
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
29
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime40.JSX.Element;
|
|
30
30
|
declare function CarouselItem({
|
|
31
31
|
className,
|
|
32
32
|
...props
|
|
33
|
-
}: React$1.ComponentPropsWithoutRef<'div'>):
|
|
33
|
+
}: React$1.ComponentPropsWithoutRef<'div'>): react_jsx_runtime40.JSX.Element;
|
|
34
34
|
declare function CarouselPrevious({
|
|
35
35
|
className,
|
|
36
36
|
variant,
|
|
37
37
|
size,
|
|
38
38
|
...props
|
|
39
|
-
}: React$1.ComponentProps<typeof Button>):
|
|
39
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime40.JSX.Element;
|
|
40
40
|
declare function CarouselNext({
|
|
41
41
|
className,
|
|
42
42
|
variant,
|
|
43
43
|
size,
|
|
44
44
|
...props
|
|
45
|
-
}: React$1.ComponentProps<typeof Button>):
|
|
45
|
+
}: React$1.ComponentProps<typeof Button>): react_jsx_runtime40.JSX.Element;
|
|
46
46
|
//#endregion
|
|
47
47
|
export { Carousel, type CarouselApi, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious };
|
|
48
48
|
//# sourceMappingURL=carousel.d.ts.map
|
package/dist/ui/checkbox.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime46 from "react/jsx-runtime";
|
|
3
3
|
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
4
|
|
|
5
5
|
//#region ui/checkbox.d.ts
|
|
6
6
|
declare function Checkbox({
|
|
7
7
|
className,
|
|
8
8
|
...props
|
|
9
|
-
}: React$1.ComponentProps<typeof CheckboxPrimitive.Root>):
|
|
9
|
+
}: React$1.ComponentProps<typeof CheckboxPrimitive.Root>): react_jsx_runtime46.JSX.Element;
|
|
10
10
|
//#endregion
|
|
11
11
|
export { Checkbox };
|
|
12
12
|
//# sourceMappingURL=checkbox.d.ts.map
|
package/dist/ui/collapsible.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime48 from "react/jsx-runtime";
|
|
2
2
|
import * as CollapsiblePrimitive from "@radix-ui/react-collapsible";
|
|
3
3
|
|
|
4
4
|
//#region ui/collapsible.d.ts
|
|
5
5
|
declare function Collapsible({
|
|
6
6
|
...props
|
|
7
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>):
|
|
7
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.Root>): react_jsx_runtime48.JSX.Element;
|
|
8
8
|
declare function CollapsibleTrigger({
|
|
9
9
|
...props
|
|
10
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>):
|
|
10
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleTrigger>): react_jsx_runtime48.JSX.Element;
|
|
11
11
|
declare function CollapsibleContent({
|
|
12
12
|
...props
|
|
13
|
-
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>):
|
|
13
|
+
}: React.ComponentProps<typeof CollapsiblePrimitive.CollapsibleContent>): react_jsx_runtime48.JSX.Element;
|
|
14
14
|
//#endregion
|
|
15
15
|
export { Collapsible, CollapsibleContent, CollapsibleTrigger };
|
|
16
16
|
//# sourceMappingURL=collapsible.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,WAAA;;GAEN,KAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAK,
|
|
1
|
+
{"version":3,"file":"collapsible.d.ts","names":[],"sources":["../../ui/collapsible.tsx"],"sourcesContent":[],"mappings":";;;;iBAIS,WAAA;;GAEN,KAAA,CAAM,sBAAsB,oBAAA,CAAqB,QAAK,mBAAA,CAAA,GAAA,CAAA;iBAIhD,kBAAA;;GAEN,KAAA,CAAM,sBAAsB,oBAAA,CAAqB,sBAAmB,mBAAA,CAAA,GAAA,CAAA;iBAS9D,kBAAA;;GAEN,KAAA,CAAM,sBAAsB,oBAAA,CAAqB,sBAAmB,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/ui/command.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { Dialog } from "./dialog.js";
|
|
2
2
|
import * as React$1 from "react";
|
|
3
|
-
import * as
|
|
3
|
+
import * as react_jsx_runtime61 from "react/jsx-runtime";
|
|
4
4
|
import { Command as Command$1 } from "cmdk";
|
|
5
5
|
|
|
6
6
|
//#region ui/command.d.ts
|
|
7
7
|
declare function Command({
|
|
8
8
|
className,
|
|
9
9
|
...props
|
|
10
|
-
}: React$1.ComponentProps<typeof Command$1>):
|
|
10
|
+
}: React$1.ComponentProps<typeof Command$1>): react_jsx_runtime61.JSX.Element;
|
|
11
11
|
declare function CommandDialog({
|
|
12
12
|
title,
|
|
13
13
|
description,
|
|
@@ -20,34 +20,34 @@ declare function CommandDialog({
|
|
|
20
20
|
description?: string;
|
|
21
21
|
className?: string;
|
|
22
22
|
showCloseButton?: boolean;
|
|
23
|
-
}):
|
|
23
|
+
}): react_jsx_runtime61.JSX.Element;
|
|
24
24
|
declare function CommandInput({
|
|
25
25
|
className,
|
|
26
26
|
...props
|
|
27
|
-
}: React$1.ComponentProps<typeof Command$1.Input>):
|
|
27
|
+
}: React$1.ComponentProps<typeof Command$1.Input>): react_jsx_runtime61.JSX.Element;
|
|
28
28
|
declare function CommandList({
|
|
29
29
|
className,
|
|
30
30
|
...props
|
|
31
|
-
}: React$1.ComponentProps<typeof Command$1.List>):
|
|
31
|
+
}: React$1.ComponentProps<typeof Command$1.List>): react_jsx_runtime61.JSX.Element;
|
|
32
32
|
declare function CommandEmpty({
|
|
33
33
|
...props
|
|
34
|
-
}: React$1.ComponentProps<typeof Command$1.Empty>):
|
|
34
|
+
}: React$1.ComponentProps<typeof Command$1.Empty>): react_jsx_runtime61.JSX.Element;
|
|
35
35
|
declare function CommandGroup({
|
|
36
36
|
className,
|
|
37
37
|
...props
|
|
38
|
-
}: React$1.ComponentProps<typeof Command$1.Group>):
|
|
38
|
+
}: React$1.ComponentProps<typeof Command$1.Group>): react_jsx_runtime61.JSX.Element;
|
|
39
39
|
declare function CommandSeparator({
|
|
40
40
|
className,
|
|
41
41
|
...props
|
|
42
|
-
}: React$1.ComponentProps<typeof Command$1.Separator>):
|
|
42
|
+
}: React$1.ComponentProps<typeof Command$1.Separator>): react_jsx_runtime61.JSX.Element;
|
|
43
43
|
declare function CommandItem({
|
|
44
44
|
className,
|
|
45
45
|
...props
|
|
46
|
-
}: React$1.ComponentProps<typeof Command$1.Item>):
|
|
46
|
+
}: React$1.ComponentProps<typeof Command$1.Item>): react_jsx_runtime61.JSX.Element;
|
|
47
47
|
declare function CommandShortcut({
|
|
48
48
|
className,
|
|
49
49
|
...props
|
|
50
|
-
}: React$1.ComponentPropsWithoutRef<'span'>):
|
|
50
|
+
}: React$1.ComponentPropsWithoutRef<'span'>): react_jsx_runtime61.JSX.Element;
|
|
51
51
|
//#endregion
|
|
52
52
|
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
53
53
|
//# sourceMappingURL=command.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime80 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/confirm-dialog.d.ts
|
|
5
5
|
interface ConfirmDialogProps {
|
|
@@ -25,7 +25,7 @@ declare function ConfirmDialog({
|
|
|
25
25
|
isLoading,
|
|
26
26
|
onConfirm,
|
|
27
27
|
trigger
|
|
28
|
-
}: ConfirmDialogProps):
|
|
28
|
+
}: ConfirmDialogProps): react_jsx_runtime80.JSX.Element;
|
|
29
29
|
//#endregion
|
|
30
30
|
export { ConfirmDialog, ConfirmDialogProps };
|
|
31
31
|
//# sourceMappingURL=confirm-dialog.d.ts.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime97 from "react/jsx-runtime";
|
|
3
3
|
import * as ContextMenuPrimitive from "@radix-ui/react-context-menu";
|
|
4
4
|
|
|
5
5
|
//#region ui/context-menu.d.ts
|
|
@@ -27,7 +27,7 @@ declare const ContextMenuShortcut: {
|
|
|
27
27
|
({
|
|
28
28
|
className,
|
|
29
29
|
...props
|
|
30
|
-
}: React$1.HTMLAttributes<HTMLSpanElement>):
|
|
30
|
+
}: React$1.HTMLAttributes<HTMLSpanElement>): react_jsx_runtime97.JSX.Element;
|
|
31
31
|
displayName: string;
|
|
32
32
|
};
|
|
33
33
|
//#endregion
|
package/dist/ui/cta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cta.js","names":["React"
|
|
1
|
+
{"version":3,"file":"cta.js","names":["React"],"sources":["../../ui/cta.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Button, type ButtonProps } from './button';\nimport { cn } from '@contractspec/lib.ui-kit-core/utils';\n\nexport type CtaProps = Omit<ButtonProps, 'onClick'> & {\n capture?: (cta: string) => void;\n ctaName?: string;\n as?: 'button' | 'a';\n href?: string;\n onClick?: React.MouseEventHandler<HTMLButtonElement | HTMLAnchorElement>;\n children?: React.ReactNode;\n};\n\nexport const Cta = React.forwardRef<\n HTMLButtonElement | HTMLAnchorElement,\n CtaProps\n>(\n (\n {\n capture,\n ctaName,\n className,\n as = 'button',\n href,\n onClick,\n size = 'lg',\n children,\n ...props\n },\n ref\n ) => {\n const handleClick: React.MouseEventHandler<\n HTMLButtonElement | HTMLAnchorElement\n > = (e) => {\n if (ctaName && capture) {\n try {\n capture(ctaName);\n } catch {\n // ignore\n }\n }\n onClick?.(e);\n };\n\n if (as === 'a') {\n return (\n <Button\n asChild\n size={size}\n className={cn('min-h-[44px]', className)}\n {...props}\n >\n <a\n href={href}\n onClick={handleClick}\n ref={ref as React.ForwardedRef<HTMLAnchorElement>}\n >\n {children}\n </a>\n </Button>\n );\n }\n\n return (\n <Button\n size={size}\n className={cn('min-h-[44px]', className)}\n onClick={handleClick as React.MouseEventHandler<HTMLButtonElement>}\n ref={ref as React.ForwardedRef<HTMLButtonElement>}\n {...props}\n >\n {children}\n </Button>\n );\n }\n);\nCta.displayName = 'Cta';\n"],"mappings":";;;;;;AAaA,MAAa,MAAMA,QAAM,YAKrB,EACE,SACA,SACA,WACA,KAAK,UACL,MACA,SACA,OAAO,MACP,UACA,GAAG,SAEL,QACG;CACH,MAAM,eAED,MAAM;AACT,MAAI,WAAW,QACb,KAAI;AACF,WAAQ,QAAQ;UACV;AAIV,YAAU,EAAE;;AAGd,KAAI,OAAO,IACT,QACE,oBAAC;EACC;EACM;EACN,WAAW,GAAG,gBAAgB,UAAU;EACxC,GAAI;YAEJ,oBAAC;GACO;GACN,SAAS;GACJ;GAEJ;IACC;GACG;AAIb,QACE,oBAAC;EACO;EACN,WAAW,GAAG,gBAAgB,UAAU;EACxC,SAAS;EACJ;EACL,GAAI;EAEH;GACM;EAGd;AACD,IAAI,cAAc"}
|