@lssm-tech/lib.ui-kit-web 3.13.4 → 9.0.2
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/README.md +112 -23
- package/package.json +1341 -843
- package/dist/browser/index.js +0 -1
- package/dist/browser/ui/accordion.js +0 -1
- package/dist/browser/ui/alert-dialog.js +0 -1
- package/dist/browser/ui/alert.js +0 -1
- package/dist/browser/ui/aspect-ratio.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/FilterSelect.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/index.js +0 -1
- package/dist/browser/ui/atoms/FilterSelect/types.js +0 -0
- package/dist/browser/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -1
- package/dist/browser/ui/atoms/LoadingSpinner/index.js +0 -1
- package/dist/browser/ui/atoms/Pagination/Pagination.js +0 -1
- package/dist/browser/ui/atoms/Pagination/index.js +0 -1
- package/dist/browser/ui/atoms/Pagination/types.js +0 -0
- package/dist/browser/ui/atoms/SearchInput/SearchInput.js +0 -1
- package/dist/browser/ui/atoms/SearchInput/index.js +0 -1
- package/dist/browser/ui/atoms/SearchInput/types.js +0 -0
- package/dist/browser/ui/avatar.js +0 -1
- package/dist/browser/ui/badge.js +0 -1
- package/dist/browser/ui/breadcrumb.js +0 -1
- package/dist/browser/ui/button-group.js +0 -1
- package/dist/browser/ui/button.js +0 -1
- package/dist/browser/ui/calendar.js +0 -1
- package/dist/browser/ui/card.js +0 -1
- package/dist/browser/ui/carousel.js +0 -1
- package/dist/browser/ui/chart.js +0 -1
- package/dist/browser/ui/checkbox.js +0 -1
- package/dist/browser/ui/collapsible.js +0 -1
- package/dist/browser/ui/combobox.js +0 -1
- package/dist/browser/ui/command.js +0 -1
- package/dist/browser/ui/confirm-dialog.js +0 -1
- package/dist/browser/ui/context-menu.js +0 -1
- package/dist/browser/ui/contracts.typecheck.js +0 -0
- package/dist/browser/ui/cta.js +0 -1
- package/dist/browser/ui/data-table.js +0 -1
- package/dist/browser/ui/data-table.parts.js +0 -1
- package/dist/browser/ui/date-picker.js +0 -1
- package/dist/browser/ui/date-range-picker.js +0 -1
- package/dist/browser/ui/datetime-picker.js +0 -1
- package/dist/browser/ui/dialog.js +0 -1
- package/dist/browser/ui/direction.js +0 -1
- package/dist/browser/ui/drawer.js +0 -1
- package/dist/browser/ui/dropdown-menu.js +0 -1
- package/dist/browser/ui/empty-state.js +0 -1
- package/dist/browser/ui/empty.js +0 -1
- package/dist/browser/ui/field.js +0 -1
- package/dist/browser/ui/focus-on-route-change.js +0 -1
- package/dist/browser/ui/form.js +0 -1
- package/dist/browser/ui/hover-card.js +0 -1
- package/dist/browser/ui/input-group.js +0 -1
- package/dist/browser/ui/input-otp.js +0 -1
- package/dist/browser/ui/input-password.js +0 -1
- package/dist/browser/ui/input.js +0 -1
- package/dist/browser/ui/item.js +0 -1
- package/dist/browser/ui/kbd.js +0 -1
- package/dist/browser/ui/label.js +0 -1
- package/dist/browser/ui/link.js +0 -1
- package/dist/browser/ui/list.js +0 -1
- package/dist/browser/ui/live-region.js +0 -1
- package/dist/browser/ui/loading-button.js +0 -1
- package/dist/browser/ui/map/MapBase.js +0 -1
- package/dist/browser/ui/map/MapGeoJsonOverlay.js +0 -1
- package/dist/browser/ui/map/MapHeatmapH3.js +0 -1
- package/dist/browser/ui/map/MapMarkers.js +0 -1
- package/dist/browser/ui/map/index.js +0 -1
- package/dist/browser/ui/marketing/FeatureGrid.js +0 -1
- package/dist/browser/ui/marketing/Hero.js +0 -1
- package/dist/browser/ui/marketing/PricingTable.js +0 -1
- package/dist/browser/ui/marketing/index.js +0 -1
- package/dist/browser/ui/menubar.js +0 -1
- package/dist/browser/ui/molecules/Autocomplete/index.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/index.js +0 -1
- package/dist/browser/ui/molecules/SearchAndFilter/types.js +0 -0
- package/dist/browser/ui/molecules/SkeletonList.js +0 -1
- package/dist/browser/ui/native-select.js +0 -1
- package/dist/browser/ui/nav-layout.js +0 -1
- package/dist/browser/ui/navigation-menu.js +0 -1
- package/dist/browser/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/browser/ui/organisms/ErrorBoundary/index.js +0 -1
- package/dist/browser/ui/organisms/ListPage/ListPage.js +0 -1
- package/dist/browser/ui/organisms/ListPage/index.js +0 -1
- package/dist/browser/ui/organisms/ListPage/types.js +0 -0
- package/dist/browser/ui/page-header.js +0 -1
- package/dist/browser/ui/pagination.js +0 -1
- package/dist/browser/ui/popover.js +0 -1
- package/dist/browser/ui/progress.js +0 -1
- package/dist/browser/ui/radio-group.js +0 -1
- package/dist/browser/ui/resizable.js +0 -1
- package/dist/browser/ui/route-announcer.js +0 -1
- package/dist/browser/ui/scroll-area.js +0 -1
- package/dist/browser/ui/section.js +0 -1
- package/dist/browser/ui/select.js +0 -1
- package/dist/browser/ui/separator.js +0 -1
- package/dist/browser/ui/sheet.js +0 -1
- package/dist/browser/ui/sidebar.js +0 -1
- package/dist/browser/ui/skeleton.js +0 -1
- package/dist/browser/ui/skip-link.js +0 -1
- package/dist/browser/ui/slider.js +0 -1
- package/dist/browser/ui/sonner.js +0 -1
- package/dist/browser/ui/spinner.js +0 -1
- package/dist/browser/ui/stack.js +0 -1
- package/dist/browser/ui/stat-card-group.js +0 -1
- package/dist/browser/ui/stepper.js +0 -1
- package/dist/browser/ui/switch.js +0 -1
- package/dist/browser/ui/table.js +0 -1
- package/dist/browser/ui/tabs.js +0 -1
- package/dist/browser/ui/text.js +0 -1
- package/dist/browser/ui/textarea.js +0 -1
- package/dist/browser/ui/time-picker.js +0 -1
- package/dist/browser/ui/toast.js +0 -1
- package/dist/browser/ui/toaster.js +0 -1
- package/dist/browser/ui/toggle-group.js +0 -1
- package/dist/browser/ui/toggle.js +0 -1
- package/dist/browser/ui/tooltip.js +0 -1
- package/dist/browser/ui/typography.js +0 -1
- package/dist/browser/ui/use-media-query.js +0 -1
- package/dist/browser/ui/use-mobile.js +0 -1
- package/dist/browser/ui/use-reduced-motion.js +0 -1
- package/dist/browser/ui/use-toast.js +0 -1
- package/dist/browser/ui/useListState.js +0 -1
- package/dist/browser/ui/usecases/UseCaseCard.js +0 -1
- package/dist/browser/ui/usecases/UserStoryCard.js +0 -1
- package/dist/browser/ui/usecases/index.js +0 -1
- package/dist/browser/ui/utils.js +0 -1
- package/dist/browser/ui/visualization/Visualization.js +0 -1
- package/dist/browser/ui/visualization/Visualization.support.js +0 -1
- package/dist/browser/ui/visualization/index.js +0 -1
- package/dist/browser/ui/visually-hidden.js +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/ui/accordion.d.ts +0 -7
- package/dist/ui/accordion.js +0 -2
- package/dist/ui/alert-dialog.d.ts +0 -14
- package/dist/ui/alert-dialog.js +0 -2
- package/dist/ui/alert.d.ts +0 -9
- package/dist/ui/alert.js +0 -2
- package/dist/ui/aspect-ratio.d.ts +0 -3
- package/dist/ui/aspect-ratio.js +0 -2
- package/dist/ui/atoms/FilterSelect/FilterSelect.d.ts +0 -3
- package/dist/ui/atoms/FilterSelect/FilterSelect.js +0 -2
- package/dist/ui/atoms/FilterSelect/index.d.ts +0 -2
- package/dist/ui/atoms/FilterSelect/index.js +0 -2
- package/dist/ui/atoms/FilterSelect/types.d.ts +0 -5
- package/dist/ui/atoms/FilterSelect/types.js +0 -1
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.d.ts +0 -19
- package/dist/ui/atoms/LoadingSpinner/LoadingSpinner.js +0 -2
- package/dist/ui/atoms/LoadingSpinner/index.d.ts +0 -1
- package/dist/ui/atoms/LoadingSpinner/index.js +0 -2
- package/dist/ui/atoms/Pagination/Pagination.d.ts +0 -3
- package/dist/ui/atoms/Pagination/Pagination.js +0 -2
- package/dist/ui/atoms/Pagination/index.d.ts +0 -2
- package/dist/ui/atoms/Pagination/index.js +0 -2
- package/dist/ui/atoms/Pagination/types.d.ts +0 -3
- package/dist/ui/atoms/Pagination/types.js +0 -1
- package/dist/ui/atoms/SearchInput/SearchInput.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/SearchInput.js +0 -2
- package/dist/ui/atoms/SearchInput/index.d.ts +0 -2
- package/dist/ui/atoms/SearchInput/index.js +0 -2
- package/dist/ui/atoms/SearchInput/types.d.ts +0 -3
- package/dist/ui/atoms/SearchInput/types.js +0 -1
- package/dist/ui/avatar.d.ts +0 -6
- package/dist/ui/avatar.js +0 -2
- package/dist/ui/badge.d.ts +0 -9
- package/dist/ui/badge.js +0 -2
- package/dist/ui/breadcrumb.d.ts +0 -11
- package/dist/ui/breadcrumb.js +0 -2
- package/dist/ui/button-group.d.ts +0 -5
- package/dist/ui/button-group.js +0 -2
- package/dist/ui/button.d.ts +0 -17
- package/dist/ui/button.js +0 -2
- package/dist/ui/calendar.d.ts +0 -8
- package/dist/ui/calendar.js +0 -2
- package/dist/ui/card.d.ts +0 -9
- package/dist/ui/card.js +0 -2
- package/dist/ui/carousel.d.ts +0 -19
- package/dist/ui/carousel.js +0 -2
- package/dist/ui/chart.d.ts +0 -45
- package/dist/ui/chart.js +0 -2
- package/dist/ui/checkbox.d.ts +0 -4
- package/dist/ui/checkbox.js +0 -2
- package/dist/ui/collapsible.d.ts +0 -5
- package/dist/ui/collapsible.js +0 -2
- package/dist/ui/combobox.d.ts +0 -32
- package/dist/ui/combobox.js +0 -2
- package/dist/ui/combobox.test.d.ts +0 -1
- package/dist/ui/command.d.ts +0 -18
- package/dist/ui/command.js +0 -2
- package/dist/ui/confirm-dialog.d.ts +0 -14
- package/dist/ui/confirm-dialog.js +0 -2
- package/dist/ui/context-menu.d.ts +0 -31
- package/dist/ui/context-menu.js +0 -2
- package/dist/ui/contracts.typecheck.d.ts +0 -1
- package/dist/ui/contracts.typecheck.js +0 -1
- package/dist/ui/cta.d.ts +0 -12
- package/dist/ui/cta.js +0 -2
- package/dist/ui/data-table.d.ts +0 -8
- package/dist/ui/data-table.js +0 -2
- package/dist/ui/data-table.parts.d.ts +0 -19
- package/dist/ui/data-table.parts.js +0 -2
- package/dist/ui/data-table.test.d.ts +0 -1
- package/dist/ui/date-picker.d.ts +0 -5
- package/dist/ui/date-picker.js +0 -2
- package/dist/ui/date-range-picker.d.ts +0 -6
- package/dist/ui/date-range-picker.js +0 -2
- package/dist/ui/datetime-picker.d.ts +0 -6
- package/dist/ui/datetime-picker.js +0 -2
- package/dist/ui/dialog.d.ts +0 -15
- package/dist/ui/dialog.js +0 -2
- package/dist/ui/direction.d.ts +0 -9
- package/dist/ui/direction.js +0 -2
- package/dist/ui/drawer.d.ts +0 -13
- package/dist/ui/drawer.js +0 -2
- package/dist/ui/dropdown-menu.d.ts +0 -25
- package/dist/ui/dropdown-menu.js +0 -2
- package/dist/ui/empty-state.d.ts +0 -9
- package/dist/ui/empty-state.js +0 -2
- package/dist/ui/empty.d.ts +0 -12
- package/dist/ui/empty.js +0 -2
- package/dist/ui/field.d.ts +0 -20
- package/dist/ui/field.js +0 -2
- package/dist/ui/focus-on-route-change.d.ts +0 -3
- package/dist/ui/focus-on-route-change.js +0 -2
- package/dist/ui/form.d.ts +0 -26
- package/dist/ui/form.js +0 -2
- package/dist/ui/hover-card.d.ts +0 -6
- package/dist/ui/hover-card.js +0 -2
- package/dist/ui/input-group.d.ts +0 -18
- package/dist/ui/input-group.js +0 -2
- package/dist/ui/input-otp.d.ts +0 -16
- package/dist/ui/input-otp.js +0 -2
- package/dist/ui/input-password.d.ts +0 -11
- package/dist/ui/input-password.js +0 -2
- package/dist/ui/input-password.test.d.ts +0 -1
- package/dist/ui/input.d.ts +0 -7
- package/dist/ui/input.js +0 -2
- package/dist/ui/item.d.ts +0 -23
- package/dist/ui/item.js +0 -2
- package/dist/ui/kbd.d.ts +0 -3
- package/dist/ui/kbd.js +0 -2
- package/dist/ui/label.d.ts +0 -4
- package/dist/ui/label.js +0 -2
- package/dist/ui/link.d.ts +0 -6
- package/dist/ui/link.js +0 -2
- package/dist/ui/list.d.ts +0 -20
- package/dist/ui/list.js +0 -2
- package/dist/ui/live-region.d.ts +0 -10
- package/dist/ui/live-region.js +0 -2
- package/dist/ui/loading-button.d.ts +0 -9
- package/dist/ui/loading-button.js +0 -2
- package/dist/ui/map/MapBase.d.ts +0 -22
- package/dist/ui/map/MapBase.js +0 -2
- package/dist/ui/map/MapGeoJsonOverlay.d.ts +0 -10
- package/dist/ui/map/MapGeoJsonOverlay.js +0 -2
- package/dist/ui/map/MapHeatmapH3.d.ts +0 -12
- package/dist/ui/map/MapHeatmapH3.js +0 -2
- package/dist/ui/map/MapMarkers.d.ts +0 -12
- package/dist/ui/map/MapMarkers.js +0 -2
- package/dist/ui/map/index.d.ts +0 -4
- package/dist/ui/map/index.js +0 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +0 -4
- package/dist/ui/marketing/FeatureGrid.js +0 -2
- package/dist/ui/marketing/Hero.d.ts +0 -16
- package/dist/ui/marketing/Hero.js +0 -2
- package/dist/ui/marketing/PricingTable.d.ts +0 -4
- package/dist/ui/marketing/PricingTable.js +0 -2
- package/dist/ui/marketing/index.d.ts +0 -3
- package/dist/ui/marketing/index.js +0 -2
- package/dist/ui/menubar.d.ts +0 -26
- package/dist/ui/menubar.js +0 -2
- package/dist/ui/molecules/Autocomplete/index.d.ts +0 -1
- package/dist/ui/molecules/Autocomplete/index.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/SearchAndFilter.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/index.d.ts +0 -2
- package/dist/ui/molecules/SearchAndFilter/index.js +0 -2
- package/dist/ui/molecules/SearchAndFilter/types.d.ts +0 -3
- package/dist/ui/molecules/SearchAndFilter/types.js +0 -1
- package/dist/ui/molecules/SkeletonList.d.ts +0 -7
- package/dist/ui/molecules/SkeletonList.js +0 -2
- package/dist/ui/native-select.d.ts +0 -4
- package/dist/ui/native-select.js +0 -2
- package/dist/ui/nav-layout.d.ts +0 -47
- package/dist/ui/nav-layout.js +0 -2
- package/dist/ui/navigation-menu.d.ts +0 -14
- package/dist/ui/navigation-menu.js +0 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +0 -25
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -2
- package/dist/ui/organisms/ErrorBoundary/index.d.ts +0 -2
- package/dist/ui/organisms/ErrorBoundary/index.js +0 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts +0 -2
- package/dist/ui/organisms/ListPage/ListPage.js +0 -2
- package/dist/ui/organisms/ListPage/index.d.ts +0 -2
- package/dist/ui/organisms/ListPage/index.js +0 -2
- package/dist/ui/organisms/ListPage/types.d.ts +0 -37
- package/dist/ui/organisms/ListPage/types.js +0 -1
- package/dist/ui/page-header.d.ts +0 -9
- package/dist/ui/page-header.js +0 -2
- package/dist/ui/pagination.d.ts +0 -17
- package/dist/ui/pagination.js +0 -2
- package/dist/ui/popover.d.ts +0 -7
- package/dist/ui/popover.js +0 -2
- package/dist/ui/progress.d.ts +0 -4
- package/dist/ui/progress.js +0 -2
- package/dist/ui/radio-group.d.ts +0 -5
- package/dist/ui/radio-group.js +0 -2
- package/dist/ui/resizable.d.ts +0 -8
- package/dist/ui/resizable.js +0 -2
- package/dist/ui/route-announcer.d.ts +0 -3
- package/dist/ui/route-announcer.js +0 -2
- package/dist/ui/scroll-area.d.ts +0 -5
- package/dist/ui/scroll-area.js +0 -2
- package/dist/ui/section.d.ts +0 -15
- package/dist/ui/section.js +0 -2
- package/dist/ui/select.d.ts +0 -15
- package/dist/ui/select.js +0 -2
- package/dist/ui/select.test.d.ts +0 -1
- package/dist/ui/separator.d.ts +0 -4
- package/dist/ui/separator.js +0 -2
- package/dist/ui/sheet.d.ts +0 -13
- package/dist/ui/sheet.js +0 -2
- package/dist/ui/sidebar.d.ts +0 -69
- package/dist/ui/sidebar.js +0 -2
- package/dist/ui/skeleton.d.ts +0 -3
- package/dist/ui/skeleton.js +0 -2
- package/dist/ui/skip-link.d.ts +0 -7
- package/dist/ui/skip-link.js +0 -2
- package/dist/ui/slider.d.ts +0 -4
- package/dist/ui/slider.js +0 -2
- package/dist/ui/sonner.d.ts +0 -3
- package/dist/ui/sonner.js +0 -2
- package/dist/ui/spinner.d.ts +0 -5
- package/dist/ui/spinner.js +0 -2
- package/dist/ui/stack.d.ts +0 -35
- package/dist/ui/stack.js +0 -2
- package/dist/ui/stat-card-group.d.ts +0 -10
- package/dist/ui/stat-card-group.js +0 -2
- package/dist/ui/stepper.d.ts +0 -10
- package/dist/ui/stepper.js +0 -2
- package/dist/ui/switch.d.ts +0 -6
- package/dist/ui/switch.js +0 -2
- package/dist/ui/table.d.ts +0 -10
- package/dist/ui/table.js +0 -2
- package/dist/ui/tabs.d.ts +0 -7
- package/dist/ui/tabs.js +0 -2
- package/dist/ui/text.d.ts +0 -6
- package/dist/ui/text.js +0 -2
- package/dist/ui/textarea.d.ts +0 -5
- package/dist/ui/textarea.js +0 -2
- package/dist/ui/time-picker.d.ts +0 -4
- package/dist/ui/time-picker.js +0 -2
- package/dist/ui/toast.d.ts +0 -28
- package/dist/ui/toast.js +0 -2
- package/dist/ui/toaster.d.ts +0 -1
- package/dist/ui/toaster.js +0 -2
- package/dist/ui/toggle-group.d.ts +0 -7
- package/dist/ui/toggle-group.js +0 -2
- package/dist/ui/toggle.d.ts +0 -9
- package/dist/ui/toggle.js +0 -2
- package/dist/ui/tooltip.d.ts +0 -7
- package/dist/ui/tooltip.js +0 -2
- package/dist/ui/typography.d.ts +0 -16
- package/dist/ui/typography.js +0 -2
- package/dist/ui/use-media-query.d.ts +0 -1
- package/dist/ui/use-media-query.js +0 -2
- package/dist/ui/use-mobile.d.ts +0 -1
- package/dist/ui/use-mobile.js +0 -2
- package/dist/ui/use-reduced-motion.d.ts +0 -1
- package/dist/ui/use-reduced-motion.js +0 -2
- package/dist/ui/use-toast.d.ts +0 -44
- package/dist/ui/use-toast.js +0 -2
- package/dist/ui/useListState.d.ts +0 -6
- package/dist/ui/useListState.js +0 -2
- package/dist/ui/usecases/UseCaseCard.d.ts +0 -7
- package/dist/ui/usecases/UseCaseCard.js +0 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +0 -5
- package/dist/ui/usecases/UserStoryCard.js +0 -2
- package/dist/ui/usecases/index.d.ts +0 -2
- package/dist/ui/usecases/index.js +0 -2
- package/dist/ui/utils.d.ts +0 -2
- package/dist/ui/utils.js +0 -2
- package/dist/ui/visualization/Visualization.d.ts +0 -7
- package/dist/ui/visualization/Visualization.js +0 -2
- package/dist/ui/visualization/Visualization.support.d.ts +0 -15
- package/dist/ui/visualization/Visualization.support.js +0 -2
- package/dist/ui/visualization/index.d.ts +0 -1
- package/dist/ui/visualization/index.js +0 -2
- package/dist/ui/visually-hidden.d.ts +0 -8
- package/dist/ui/visually-hidden.js +0 -2
package/dist/ui/input-otp.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { OTPInput } from 'input-otp';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function InputOTP({ className, containerClassName, ref, ...props }: React.ComponentPropsWithoutRef<typeof OTPInput> & {
|
|
4
|
-
ref?: React.Ref<React.ElementRef<typeof OTPInput>>;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function InputOTPGroup({ className, ref, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
7
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
8
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function InputOTPSlot({ index, className, ref, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
10
|
-
index: number;
|
|
11
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function InputOTPSeparator({ ref, ...props }: React.ComponentPropsWithoutRef<'div'> & {
|
|
14
|
-
ref?: React.Ref<HTMLDivElement>;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export { InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot };
|
package/dist/ui/input-otp.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var V=import.meta.require;import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import{OTPInput as M,OTPInputContext as Q}from"input-otp";import{Dot as R}from"lucide-react";import*as E from"react";import{jsx as w,jsxs as U}from"react/jsx-runtime";function _({className:g,containerClassName:q,ref:y,...B}){return w(M,{ref:y,containerClassName:z("flex items-center gap-2 has-disabled:opacity-50",q),className:z("disabled:cursor-not-allowed",g),...B})}function $({className:g,ref:q,...y}){return w("div",{ref:q,className:z("flex items-center",g),...y})}function b({index:g,className:q,ref:y,...B}){let H=E.useContext(Q),{char:J,hasFakeCaret:K,isActive:L}=H.slots[g]||{};return U("div",{ref:y,className:z("relative flex h-10 w-10 items-center justify-center border-input border-y border-r text-base transition-all first:rounded-l-md first:border-l last:rounded-r-md",L&&"z-10 ring-2 ring-ring ring-offset-background",q),...B,children:[J,K&&w("div",{className:"pointer-events-none absolute inset-0 flex items-center justify-center",children:w("div",{className:"h-4 w-px animate-caret-blink bg-foreground duration-1000"})})]})}function v({ref:g,...q}){return w("div",{ref:g,role:"separator",...q,children:w(R,{})})}export{b as InputOTPSlot,v as InputOTPSeparator,$ as InputOTPGroup,_ as InputOTP};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type PasswordPurpose = 'current' | 'new';
|
|
3
|
-
export type InputPasswordProps = Omit<React.ComponentPropsWithoutRef<'input'>, 'type'> & {
|
|
4
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
5
|
-
passwordPurpose?: PasswordPurpose;
|
|
6
|
-
visibilityToggle?: boolean;
|
|
7
|
-
showLabel?: string;
|
|
8
|
-
hideLabel?: string;
|
|
9
|
-
};
|
|
10
|
-
declare function InputPassword({ ref, passwordPurpose, visibilityToggle, showLabel, hideLabel, autoComplete, autoCapitalize, autoCorrect, disabled, className, ...props }: InputPasswordProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
export { InputPassword };
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var r=import.meta.require;import{cn as X}from"@contractspec/lib.ui-kit-core/utils";import{Slot as Y}from"@radix-ui/react-slot";import{cva as Z}from"class-variance-authority";import*as e from"react";import{jsx as $}from"react/jsx-runtime";var _=Z("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),A=e.forwardRef(({className:o,variant:d,size:P,asChild:w=!1,...I},b)=>{return $(w?Y:"button",{ref:b,"data-slot":"button",className:X(_({variant:d,size:P,className:o})),...I})});A.displayName="Button";import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{jsx as t}from"react/jsx-runtime";function y({className:o,type:d,ref:P,...w}){return t("input",{ref:P,type:d,"data-slot":"input",className:G("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",o),...w})}import{cn as T}from"@contractspec/lib.ui-kit-core/utils";import{jsx as k}from"react/jsx-runtime";function g({className:o,...d}){return k("textarea",{"data-slot":"textarea",className:T("field-sizing-content flex min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-2xs outline-hidden transition-[color,box-shadow] placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40",o),...d})}import{cn as f}from"@contractspec/lib.ui-kit-core/utils";import{cva as S}from"class-variance-authority";import{jsx as u}from"react/jsx-runtime";function W({className:o,...d}){return u("div",{"data-slot":"input-group",role:"group",className:f("group/input-group relative flex w-full items-center rounded-md border border-input shadow-xs outline-none transition-[color,box-shadow] dark:bg-input/30","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-[3px] has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50","has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",o),...d})}var B=S("flex h-auto cursor-text select-none items-center justify-center gap-2 py-1.5 font-medium text-muted-foreground text-sm group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-4",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 group-has-[>input]/input-group:pt-2.5 [.border-b]:pb-3","block-end":"order-last w-full justify-start px-3 pb-3 group-has-[>input]/input-group:pb-2.5 [.border-t]:pt-3"}},defaultVariants:{align:"inline-start"}});function h({className:o,align:d="inline-start",...P}){return u("div",{role:"group","data-slot":"input-group-addon","data-align":d,className:f(B({align:d}),o),onClick:(w)=>{if(w.target.closest("button"))return;w.currentTarget.parentElement?.querySelector("input")?.focus()},onKeyDown:(w)=>{if(w.key==="Enter"||w.key===" ")w.preventDefault(),w.currentTarget.parentElement?.querySelector("input")?.focus()},...P})}var V=S("flex items-center gap-2 text-sm shadow-none",{variants:{size:{xs:"h-6 gap-1 rounded-[calc(var(--radius)-5px)] px-2 has-[>svg]:px-2 [&>svg:not([class*='size-'])]:size-3.5",sm:"h-8 gap-1.5 rounded-md px-2.5 has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function q({className:o,type:d="button",variant:P="ghost",size:w="xs",...I}){return u(A,{type:d,"data-size":w,variant:P,className:f(V({size:w}),o),...I})}function yo({className:o,...d}){return u("span",{className:f("flex items-center gap-2 text-muted-foreground text-sm [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none",o),...d})}function F({className:o,ref:d,...P}){return u(y,{ref:d,"data-slot":"input-group-control",className:f("flex-1 rounded-none border-0 bg-transparent shadow-none focus-visible:ring-0 dark:bg-transparent",o),...P})}function bo({className:o,...d}){return u(g,{"data-slot":"input-group-control",className:f("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",o),...d})}import{EyeIcon as z,EyeOffIcon as v}from"lucide-react";import*as J from"react";import{jsx as C,jsxs as p}from"react/jsx-runtime";function m(o){return o==="new"?"new-password":"current-password"}function Mo({ref:o,passwordPurpose:d="current",visibilityToggle:P=!0,showLabel:w="Show password",hideLabel:I="Hide password",autoComplete:b,autoCapitalize:E="none",autoCorrect:D="off",disabled:R,className:H,...M}){let[n,K]=J.useState(!1),Q=n?I:w,U=n?"text":"password",O=b??m(d);if(!P)return C(y,{ref:o,...M,type:"password",autoComplete:O,autoCapitalize:E,autoCorrect:D,disabled:R,className:H});return p(W,{"data-disabled":R?!0:void 0,children:[C(F,{ref:o,...M,type:U,autoComplete:O,autoCapitalize:E,autoCorrect:D,disabled:R,className:H}),C(h,{align:"inline-end",children:C(q,{type:"button",size:"icon-xs","aria-label":Q,"aria-pressed":n,disabled:R,onMouseDown:(L)=>{L.preventDefault()},onClick:()=>{K((L)=>!L)},children:n?C(v,{}):C(z,{})})})]})}export{Mo as InputPassword};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/ui/input.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { SharedInputProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
export type InputProps = SharedInputProps & React.ComponentPropsWithoutRef<'input'> & {
|
|
4
|
-
ref?: React.Ref<HTMLInputElement>;
|
|
5
|
-
};
|
|
6
|
-
declare function Input({ className, type, ref, ...props }: InputProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
export { Input };
|
package/dist/ui/input.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var z=import.meta.require;import{cn as v}from"@contractspec/lib.ui-kit-core/utils";import{jsx as w}from"react/jsx-runtime";function C({className:d,type:g,ref:h,...q}){return w("input",{ref:h,type:g,"data-slot":"input",className:v("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",d),...q})}export{C as Input};
|
package/dist/ui/item.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import type * as React from 'react';
|
|
3
|
-
declare const itemVariants: (props?: ({
|
|
4
|
-
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
5
|
-
size?: "default" | "sm" | "xs" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
declare const itemMediaVariants: (props?: ({
|
|
8
|
-
variant?: "image" | "default" | "icon" | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
|
-
export interface ItemProps extends React.ComponentPropsWithoutRef<'div'>, VariantProps<typeof itemVariants> {
|
|
11
|
-
asChild?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export declare function Item({ asChild, className, variant, size, ...props }: ItemProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
export declare function ItemGroup({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
export declare function ItemSeparator({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export declare function ItemMedia({ className, variant, ...props }: React.ComponentPropsWithoutRef<'div'> & VariantProps<typeof itemMediaVariants>): import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
export declare function ItemContent({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
export declare function ItemHeader({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export declare function ItemTitle({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export declare function ItemDescription({ className, ...props }: React.ComponentPropsWithoutRef<'p'>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
export declare function ItemActions({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
export declare function ItemFooter({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
|
23
|
-
export {};
|
package/dist/ui/item.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var J=import.meta.require;import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import{Slot as F}from"@radix-ui/react-slot";import{cva as B}from"class-variance-authority";import{jsx as w}from"react/jsx-runtime";var G=B("group/item flex w-full items-start gap-3 rounded-lg border p-4 text-left transition-colors",{variants:{variant:{default:"bg-background hover:bg-muted/50",outline:"border-border bg-background hover:bg-accent/50",muted:"border-transparent bg-muted/50 hover:bg-muted"},size:{default:"p-4",sm:"gap-2 p-3",xs:"gap-2 p-2.5"}},defaultVariants:{variant:"default",size:"default"}}),H=B("flex shrink-0 items-center justify-center overflow-hidden rounded-md",{variants:{variant:{default:"bg-transparent",icon:"size-10 bg-muted text-foreground",image:"size-10 bg-muted"}},defaultVariants:{variant:"default"}});function Q({asChild:f=!1,className:g,variant:A,size:D,...E}){return w(f?F:"div",{"data-slot":"item",className:q(G({variant:A,size:D,className:g})),...E})}function R({className:f,...g}){return w("div",{"data-slot":"item-group",className:q("flex flex-col gap-2",f),...g})}function T({className:f,...g}){return w("div",{"data-slot":"item-separator",className:q("h-px bg-border",f),...g})}function U({className:f,variant:g,...A}){return w("div",{"data-slot":"item-media",className:q(H({variant:g,className:f})),...A})}function W({className:f,...g}){return w("div",{"data-slot":"item-content",className:q("min-w-0 flex-1 space-y-1",f),...g})}function X({className:f,...g}){return w("div",{"data-slot":"item-header",className:q("font-medium text-muted-foreground text-xs uppercase",f),...g})}function Y({className:f,...g}){return w("div",{"data-slot":"item-title",className:q("font-medium text-sm",f),...g})}function Z({className:f,...g}){return w("p",{"data-slot":"item-description",className:q("text-muted-foreground text-sm",f),...g})}function _({className:f,...g}){return w("div",{"data-slot":"item-actions",className:q("flex shrink-0 items-center gap-2",f),...g})}function $({className:f,...g}){return w("div",{"data-slot":"item-footer",className:q("pt-1 text-muted-foreground text-xs",f),...g})}export{Y as ItemTitle,T as ItemSeparator,U as ItemMedia,X as ItemHeader,R as ItemGroup,$ as ItemFooter,Z as ItemDescription,W as ItemContent,_ as ItemActions,Q as Item};
|
package/dist/ui/kbd.d.ts
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type * as React from 'react';
|
|
2
|
-
export declare function Kbd({ className, ...props }: React.ComponentPropsWithoutRef<'kbd'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function KbdGroup({ className, ...props }: React.ComponentPropsWithoutRef<'div'>): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/kbd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var q=import.meta.require;import{cn as g}from"@contractspec/lib.ui-kit-core/utils";import{jsx as h}from"react/jsx-runtime";function y({className:d,...f}){return h("kbd",{"data-slot":"kbd",className:g("inline-flex min-h-6 min-w-6 items-center justify-center rounded-md border bg-muted px-1.5 font-medium text-[0.8rem] text-muted-foreground",d),...f})}function z({className:d,...f}){return h("div",{"data-slot":"kbd-group",className:g("inline-flex items-center gap-1",d),...f})}export{z as KbdGroup,y as Kbd};
|
package/dist/ui/label.d.ts
DELETED
package/dist/ui/label.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var w=import.meta.require;import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import*as f from"@radix-ui/react-label";import{jsx as v}from"react/jsx-runtime";function A({className:g,...h}){return v(f.Root,{"data-slot":"label",className:q("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",g),...h})}export{A as Label};
|
package/dist/ui/link.d.ts
DELETED
package/dist/ui/link.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var y=import.meta.require;import{cn as q}from"@contractspec/lib.ui-kit-core/utils";import v from"next/link";import{jsx as w}from"react/jsx-runtime";function C({className:d,ref:g,...h}){return w(v,{ref:g,className:q('className="text-primary underline"',d),...h})}export{C as Link};
|
package/dist/ui/list.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const listVariants: (props?: ({
|
|
4
|
-
type?: "none" | "ordered" | "unordered" | null | undefined;
|
|
5
|
-
spacing?: "none" | "sm" | "lg" | "xs" | "md" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
|
-
export type ListType = 'unordered' | 'ordered' | 'none';
|
|
8
|
-
export type ListProps = React.HTMLAttributes<HTMLUListElement | HTMLOListElement> & VariantProps<typeof listVariants> & {
|
|
9
|
-
type?: ListType;
|
|
10
|
-
ref?: React.Ref<HTMLUListElement | HTMLOListElement>;
|
|
11
|
-
};
|
|
12
|
-
declare function List({ className, type, spacing, ref, ...props }: ListProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare const listItemVariants: (props?: ({
|
|
14
|
-
tone?: "default" | "muted" | null | undefined;
|
|
15
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
-
export type ListItemProps = React.LiHTMLAttributes<HTMLLIElement> & VariantProps<typeof listItemVariants> & {
|
|
17
|
-
ref?: React.Ref<HTMLLIElement>;
|
|
18
|
-
};
|
|
19
|
-
declare function ListItem({ className, tone, ref, ...props }: ListItemProps): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
export { List, ListItem, listItemVariants, listVariants };
|
package/dist/ui/list.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var H=import.meta.require;import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import{cva as B}from"class-variance-authority";import{jsx as C}from"react/jsx-runtime";var E=B("flex flex-col",{variants:{type:{unordered:"list-disc pl-6",ordered:"list-decimal pl-6",none:"list-none pl-0"},spacing:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4"}},defaultVariants:{type:"unordered",spacing:"sm"}});function O({className:q,type:d="unordered",spacing:w,ref:z,...D}){return C(d==="ordered"?"ol":"ul",{ref:z,role:d==="none"?"list":void 0,className:A(E({type:d,spacing:w}),q),...D})}var F=B("",{variants:{tone:{default:"",muted:"text-muted-foreground"}},defaultVariants:{tone:"default"}});function P({className:q,tone:d,ref:w,...z}){return C("li",{ref:w,className:A(F({tone:d}),q),...z})}export{E as listVariants,F as listItemVariants,P as ListItem,O as List};
|
package/dist/ui/live-region.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export type LiveRegionPoliteness = 'polite' | 'assertive';
|
|
3
|
-
interface SRLiveRegionContextValue {
|
|
4
|
-
announce: (text: string, politeness?: LiveRegionPoliteness) => void;
|
|
5
|
-
}
|
|
6
|
-
export declare function useSRLiveRegion(): SRLiveRegionContextValue;
|
|
7
|
-
export declare function SRLiveRegionProvider({ children, }: {
|
|
8
|
-
children: React.ReactNode;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
export {};
|
package/dist/ui/live-region.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var K=import.meta.require;import*as q from"react";import{jsx as y,jsxs as J}from"react/jsx-runtime";var E=q.createContext(null);function O(){let w=q.useContext(E);if(!w)throw Error("useSRLiveRegion must be used within SRLiveRegionProvider");return w}function P({children:w}){let[A,B]=q.useState([]),F=q.useRef(0),G=q.useCallback((b,H="polite")=>{let D=++F.current;B((z)=>[...z,{id:D,text:b,politeness:H}]),setTimeout(()=>B((z)=>z.filter((I)=>I.id!==D)),1000)},[]);return J(E.Provider,{value:{announce:G},children:[w,y("div",{"aria-live":"polite","aria-atomic":"true",className:"sr-only",children:A.filter((b)=>b.politeness==="polite").map((b)=>y("div",{children:b.text},b.id))}),y("div",{"aria-live":"assertive","aria-atomic":"true",className:"sr-only",children:A.filter((b)=>b.politeness==="assertive").map((b)=>y("div",{children:b.text},b.id))})]})}export{O as useSRLiveRegion,P as SRLiveRegionProvider};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SharedLoadingButtonProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import type { ButtonProps } from './button';
|
|
4
|
-
export interface LoadingButtonProps extends SharedLoadingButtonProps, ButtonProps {
|
|
5
|
-
isLoading?: boolean;
|
|
6
|
-
loadingText?: string;
|
|
7
|
-
children: React.ReactNode;
|
|
8
|
-
}
|
|
9
|
-
export declare function LoadingButton({ isLoading, loadingText, children, disabled, ...props }: LoadingButtonProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var y=import.meta.require;import{cn as Y}from"@contractspec/lib.ui-kit-core/utils";import{Slot as Z}from"@radix-ui/react-slot";import{cva as _}from"class-variance-authority";import*as R from"react";import{jsx as z}from"react/jsx-runtime";var $=_("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),K=R.forwardRef(({className:q,variant:A,size:D,asChild:E=!1,...F},G)=>{return z(E?Z:"button",{ref:G,"data-slot":"button",className:Y($({variant:A,size:D,className:q})),...F})});K.displayName="Button";import{cn as M}from"@contractspec/lib.ui-kit-core/utils";import{cva as O}from"class-variance-authority";import{jsx as P}from"react/jsx-runtime";var H=O("flex flex-col",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"}},defaultVariants:{gap:"md",align:"stretch",justify:"start"}});function d({className:q,gap:A,align:D,justify:E,as:F="div",ref:G,...I}){return P(F,{ref:G,className:M(H({gap:A,align:D,justify:E}),q),...I})}var w=O("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"start",wrap:"wrap"}});function U({className:q,gap:A,align:D,justify:E,wrap:F,as:G="div",ref:I,...J}){return P(G,{ref:I,className:M(w({gap:A,align:D,justify:E,wrap:F}),q),...J})}var B=O("flex flex-row",{variants:{gap:{none:"gap-0",xs:"gap-1",sm:"gap-2",md:"gap-3",lg:"gap-4",xl:"gap-6","2xl":"gap-8"},align:{start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",wrapReverse:"flex-wrap-reverse"}},defaultVariants:{gap:"md",align:"center",justify:"center",wrap:"nowrap"}});function g({className:q,gap:A,align:D,justify:E,wrap:F,as:G="div",ref:I,...J}){return P(G,{ref:I,className:M(B({gap:A,align:D,justify:E,wrap:F}),q),...J})}import{cn as C}from"@contractspec/lib.ui-kit-core/utils";import{Slot as L}from"@radix-ui/react-slot";import{jsx as T}from"react/jsx-runtime";function W({className:q,asChild:A=!1,...D}){return T(A?L:"p",{className:C("web:select-text text-base text-foreground",q),...D})}import{jsx as Q}from"react/jsx-runtime";function c({isLoading:q=!1,loadingText:A,children:D,disabled:E,...F}){return Q(K,{disabled:E||q,...F,children:q?Q(U,{className:"items-center gap-x-2",children:Q(W,{children:A||"Loading..."})}):D})}export{c as LoadingButton};
|
package/dist/ui/map/MapBase.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import type { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { type MapRef } from 'react-map-gl/maplibre';
|
|
3
|
-
export interface BBox {
|
|
4
|
-
minLng: number;
|
|
5
|
-
minLat: number;
|
|
6
|
-
maxLng: number;
|
|
7
|
-
maxLat: number;
|
|
8
|
-
}
|
|
9
|
-
export interface MapBaseProps {
|
|
10
|
-
initialViewState?: {
|
|
11
|
-
longitude: number;
|
|
12
|
-
latitude: number;
|
|
13
|
-
zoom: number;
|
|
14
|
-
};
|
|
15
|
-
styleUrl?: string;
|
|
16
|
-
style?: CSSProperties;
|
|
17
|
-
showControls?: boolean;
|
|
18
|
-
showCssLink?: boolean;
|
|
19
|
-
onMapRef?: (ref: MapRef | null) => void;
|
|
20
|
-
children?: ReactNode;
|
|
21
|
-
}
|
|
22
|
-
export declare function MapBase(props: MapBaseProps): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/map/MapBase.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var u=import.meta.require;import*as e from"react";import f,{NavigationControl as d,ScaleControl as b}from"react-map-gl/maplibre";import{jsx as o,jsxs as n,Fragment as y}from"react/jsx-runtime";var h="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json";function R(i){let{initialViewState:a={longitude:2.3522,latitude:48.8566,zoom:5},styleUrl:l=h,style:r,showControls:s=!0,showCssLink:p=!0,onMapRef:m,children:c}=i,t=e.useRef(null);return e.useEffect(()=>{m?.(t.current)},[t.current]),n("div",{style:{position:"relative",width:"100%",height:"100%",...r||{}},children:[p&&o("link",{href:"https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css",rel:"stylesheet"}),n(f,{ref:t,mapLib:import("maplibre-gl"),initialViewState:a,style:{width:"100%",height:"100%"},mapStyle:l,maplibreLogo:!1,children:[s&&n(y,{children:[o(b,{position:"bottom-left"}),o(d,{position:"bottom-left"})]}),c]})]})}export{R as MapBase};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export interface GeoJsonOverlayProps {
|
|
2
|
-
id?: string;
|
|
3
|
-
data: GeoJSON.FeatureCollection;
|
|
4
|
-
fillColor?: string;
|
|
5
|
-
fillOpacity?: number;
|
|
6
|
-
lineColor?: string;
|
|
7
|
-
lineWidth?: number;
|
|
8
|
-
lineOpacity?: number;
|
|
9
|
-
}
|
|
10
|
-
export declare function MapGeoJsonOverlay(props: GeoJsonOverlayProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var K=import.meta.require;import{Layer as q,Source as I}from"react-map-gl/maplibre";import{jsx as v,jsxs as J}from"react/jsx-runtime";function P(w){let{id:k="geojson-overlay",data:z,fillColor:A="#2563eb",fillOpacity:B=0.25,lineColor:D="#1e40af",lineWidth:E=1.5,lineOpacity:F=0.8}=w,G={id:`${k}-fill`,type:"fill",paint:{"fill-color":A,"fill-opacity":B}},H={id:`${k}-outline`,type:"line",paint:{"line-color":D,"line-width":E,"line-opacity":F}};return J(I,{id:k,type:"geojson",data:z,children:[v(q,{...G}),v(q,{...H})]})}export{P as MapGeoJsonOverlay};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface H3FeatureProperties {
|
|
2
|
-
id: string;
|
|
3
|
-
h3Index?: string;
|
|
4
|
-
count: number;
|
|
5
|
-
}
|
|
6
|
-
export interface H3HeatmapProps {
|
|
7
|
-
id?: string;
|
|
8
|
-
data: GeoJSON.FeatureCollection<GeoJSON.Polygon | GeoJSON.MultiPolygon, H3FeatureProperties>;
|
|
9
|
-
colorStops?: [number, string][];
|
|
10
|
-
maxCount?: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function MapHeatmapH3(props: H3HeatmapProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var I=import.meta.require;import{Layer as A,Source as F}from"react-map-gl/maplibre";import{jsx as B,jsxs as H}from"react/jsx-runtime";function G(q,k){let v=(q||[]).map(([w,z])=>[w,z]);return{"fill-color":["interpolate",["linear"],["get","count"],...v.flat()],"fill-opacity":0.6}}function M(q){let{id:k="h3-heatmap",data:v,colorStops:w=[[0,"#22c55e"],[5,"#eab308"],[10,"#ef4444"]],maxCount:z}=q,D={id:`${k}-fill`,type:"fill",paint:G(w,z)},E={id:`${k}-outline`,type:"line",paint:{"line-color":"#ffffff","line-width":0.25,"line-opacity":0.25}};return H(F,{id:k,type:"geojson",data:v,children:[B(A,{...D}),B(A,{...E})]})}export{M as MapHeatmapH3};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface MapPoint {
|
|
2
|
-
id: string;
|
|
3
|
-
lng: number;
|
|
4
|
-
lat: number;
|
|
5
|
-
color?: string;
|
|
6
|
-
size?: number;
|
|
7
|
-
ariaLabel?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function MapMarkers({ points }: {
|
|
11
|
-
points: MapPoint[];
|
|
12
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var a=import.meta.require;import{Marker as n}from"react-map-gl/maplibre";import{jsx as r,Fragment as t}from"react/jsx-runtime";function d({points:i}){return r(t,{children:i.map((e)=>r(n,{longitude:e.lng,latitude:e.lat,anchor:"bottom",children:r("button",{role:e.onClick?"button":void 0,tabIndex:e.onClick?0:-1,"aria-label":e.ariaLabel||"marker",onClick:e.onClick,onKeyDown:(o)=>{if(o.key==="Enter"||o.key===" ")o.preventDefault(),e.onClick?.()},style:{width:e.size??14,height:e.size??14,background:e.color??"#2563eb",border:"2px solid white",borderRadius:9999,boxShadow:"0 1px 3px rgba(0,0,0,0.35)",cursor:e.onClick?"pointer":"default"}})},e.id))})}export{d as MapMarkers};
|
package/dist/ui/map/index.d.ts
DELETED
package/dist/ui/map/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var g=import.meta.require;import*as m from"react";import M,{NavigationControl as w,ScaleControl as R}from"react-map-gl/maplibre";import{jsx as b,jsxs as f,Fragment as v}from"react/jsx-runtime";var C="https://basemaps.cartocdn.com/gl/positron-gl-style/style.json";function U(o){let{initialViewState:e={longitude:2.3522,latitude:48.8566,zoom:5},styleUrl:t=C,style:n,showControls:r=!0,showCssLink:i=!0,onMapRef:a,children:u}=o,l=m.useRef(null);return m.useEffect(()=>{a?.(l.current)},[l.current]),f("div",{style:{position:"relative",width:"100%",height:"100%",...n||{}},children:[i&&b("link",{href:"https://unpkg.com/maplibre-gl@4.7.0/dist/maplibre-gl.css",rel:"stylesheet"}),f(M,{ref:l,mapLib:import("maplibre-gl"),initialViewState:e,style:{width:"100%",height:"100%"},mapStyle:t,maplibreLogo:!1,children:[r&&f(v,{children:[b(R,{position:"bottom-left"}),b(w,{position:"bottom-left"})]}),u]})]})}import{Layer as d,Source as S}from"react-map-gl/maplibre";import{jsx as c,jsxs as y}from"react/jsx-runtime";function I(o){let{id:e="geojson-overlay",data:t,fillColor:n="#2563eb",fillOpacity:r=0.25,lineColor:i="#1e40af",lineWidth:a=1.5,lineOpacity:u=0.8}=o,l={id:`${e}-fill`,type:"fill",paint:{"fill-color":n,"fill-opacity":r}},k={id:`${e}-outline`,type:"line",paint:{"line-color":i,"line-width":a,"line-opacity":u}};return y(S,{id:e,type:"geojson",data:t,children:[c(d,{...l}),c(d,{...k})]})}import{Layer as p,Source as E}from"react-map-gl/maplibre";import{jsx as h,jsxs as B}from"react/jsx-runtime";function z(o,e){let t=(o||[]).map(([n,r])=>[n,r]);return{"fill-color":["interpolate",["linear"],["get","count"],...t.flat()],"fill-opacity":0.6}}function q(o){let{id:e="h3-heatmap",data:t,colorStops:n=[[0,"#22c55e"],[5,"#eab308"],[10,"#ef4444"]],maxCount:r}=o,i={id:`${e}-fill`,type:"fill",paint:z(n,r)},a={id:`${e}-outline`,type:"line",paint:{"line-color":"#ffffff","line-width":0.25,"line-opacity":0.25}};return B(E,{id:e,type:"geojson",data:t,children:[h(p,{...i}),h(p,{...a})]})}import{Marker as P}from"react-map-gl/maplibre";import{jsx as s,Fragment as L}from"react/jsx-runtime";function Q({points:o}){return s(L,{children:o.map((e)=>s(P,{longitude:e.lng,latitude:e.lat,anchor:"bottom",children:s("button",{role:e.onClick?"button":void 0,tabIndex:e.onClick?0:-1,"aria-label":e.ariaLabel||"marker",onClick:e.onClick,onKeyDown:(t)=>{if(t.key==="Enter"||t.key===" ")t.preventDefault(),e.onClick?.()},style:{width:e.size??14,height:e.size??14,background:e.color??"#2563eb",border:"2px solid white",borderRadius:9999,boxShadow:"0 1px 3px rgba(0,0,0,0.35)",cursor:e.onClick?"pointer":"default"}})},e.id))})}export{Q as MapMarkers,q as MapHeatmapH3,I as MapGeoJsonOverlay,U as MapBase};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SharedFeatureGridProps, SharedFeatureItem } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
export interface FeatureItem extends SharedFeatureItem {
|
|
3
|
-
}
|
|
4
|
-
export declare function FeatureGrid({ items, columns, className, }: SharedFeatureGridProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var p=import.meta.require;import{clsx as m}from"clsx";import{twMerge as s}from"tailwind-merge";function o(...t){return s(m(t))}import{jsx as r,jsxs as l}from"react/jsx-runtime";function v({items:t,columns:a=3,className:i}){let d=a===4?"md:grid-cols-4":a===2?"md:grid-cols-2":"md:grid-cols-3";return r("section",{className:o("mx-auto max-w-6xl py-12",i),children:r("div",{className:o("grid grid-cols-1 gap-6",d),children:t.map((e,c)=>l("div",{className:"rounded-lg border p-6",children:[e.icon&&r("div",{className:"mb-3 text-primary",children:e.icon}),r("h3",{className:"font-semibold text-lg",children:e.title}),e.description&&r("p",{className:"mt-2 text-base text-muted-foreground",children:e.description})]},c))})})}export{v as FeatureGrid};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function Hero({ title, subtitle, primaryCta, secondaryCta, className, }: {
|
|
3
|
-
title: React.ReactNode;
|
|
4
|
-
subtitle?: React.ReactNode;
|
|
5
|
-
primaryCta?: {
|
|
6
|
-
label: string;
|
|
7
|
-
href?: string;
|
|
8
|
-
onClick?: () => void;
|
|
9
|
-
};
|
|
10
|
-
secondaryCta?: {
|
|
11
|
-
label: string;
|
|
12
|
-
href?: string;
|
|
13
|
-
onClick?: () => void;
|
|
14
|
-
};
|
|
15
|
-
className?: string;
|
|
16
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var p=import.meta.require;import{cn as u}from"@contractspec/lib.ui-kit-core/utils";import{Slot as k}from"@radix-ui/react-slot";import{cva as d}from"class-variance-authority";import*as g from"react";import{jsx as N}from"react/jsx-runtime";var r=d("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),o=g.forwardRef(({className:n,variant:f,size:e,asChild:l=!1,...i},c)=>{return N(l?k:"button",{ref:c,"data-slot":"button",className:u(r({variant:f,size:e,className:n})),...i})});o.displayName="Button";import{clsx as R}from"clsx";import{twMerge as b}from"tailwind-merge";function m(...n){return b(R(n))}import{jsx as t,jsxs as h}from"react/jsx-runtime";function G({title:n,subtitle:f,primaryCta:e,secondaryCta:l,className:i}){return h("section",{className:m("mx-auto max-w-4xl py-16 text-center",i),children:[t("h1",{className:"font-bold text-4xl tracking-tight md:text-5xl",children:n}),f&&t("p",{className:"mt-4 text-lg text-muted-foreground md:text-xl",children:f}),(e||l)&&h("div",{className:"mt-8 flex items-center justify-center gap-3",children:[e&&(e.href?t(o,{asChild:!0,size:"lg",children:t("a",{href:e.href,children:e.label})}):t(o,{size:"lg",onClick:e.onClick,children:e.label})),l&&(l.href?t(o,{variant:"outline",asChild:!0,size:"lg",children:t("a",{href:l.href,children:l.label})}):t(o,{variant:"outline",size:"lg",onClick:l.onClick,children:l.label}))]})]})}export{G as Hero};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { SharedPricingTableProps, SharedPricingTier } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
export interface PricingTier extends SharedPricingTier {
|
|
3
|
-
}
|
|
4
|
-
export declare function PricingTable({ tiers, className }: SharedPricingTableProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var v=import.meta.require;import{cn as p}from"@contractspec/lib.ui-kit-core/utils";import{Slot as g}from"@radix-ui/react-slot";import{cva as f}from"class-variance-authority";import*as n from"react";import{jsx as u}from"react/jsx-runtime";var s=f("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),i=n.forwardRef(({className:r,variant:l,size:e,asChild:m=!1,...d},t)=>{return u(m?g:"button",{ref:t,"data-slot":"button",className:p(s({variant:l,size:e,className:r})),...d})});i.displayName="Button";import{clsx as b}from"clsx";import{twMerge as N}from"tailwind-merge";function o(...r){return N(b(r))}import{jsx as a,jsxs as c}from"react/jsx-runtime";function q({tiers:r,className:l}){return c("section",{className:o("mx-auto max-w-6xl py-12",l),children:[a("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-3",children:r.map((e,m)=>c("div",{className:o("flex flex-col rounded-lg border p-6",e.highlighted&&"border-primary shadow-lg"),children:[a("div",{className:"mb-2 font-medium text-base text-muted-foreground",children:e.name}),a("div",{className:"font-semibold text-3xl",children:e.price}),e.tagline&&a("div",{className:"mt-1 text-base text-muted-foreground",children:e.tagline}),a("ul",{className:"mt-4 space-y-2 text-base",children:e.features.map((d,t)=>c("li",{className:"flex items-start gap-2",children:[a("span",{className:"mt-1 h-1.5 w-1.5 rounded-full bg-primary"}),a("span",{children:d})]},t))}),e.cta&&a("div",{className:"mt-6",children:e.cta.href?a(i,{asChild:!0,className:"w-full",children:a("a",{href:e.cta.href,children:e.cta.label})}):a(i,{className:"w-full",onClick:e.cta.onClick,children:e.cta.label})})]},m))}),a("p",{className:"mt-6 text-center text-base text-muted-foreground",children:"Usage-based tiers inspired by generous free allowances and per-unit pricing."})]})}export{q as PricingTable};
|
package/dist/ui/menubar.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as MenubarPrimitive from '@radix-ui/react-menubar';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function Menubar({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Root>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
declare function MenubarMenu({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Menu>): import("react/jsx-runtime").JSX.Element;
|
|
5
|
-
declare function MenubarGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Group>): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function MenubarPortal({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Portal>): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function MenubarRadioGroup({ ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioGroup>): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function MenubarTrigger({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Trigger>): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function MenubarContent({ className, align, alignOffset, sideOffset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Content>): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function MenubarItem({ className, inset, variant, ...props }: React.ComponentProps<typeof MenubarPrimitive.Item> & {
|
|
11
|
-
inset?: boolean;
|
|
12
|
-
variant?: 'default' | 'destructive';
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function MenubarCheckboxItem({ className, children, checked, ...props }: React.ComponentProps<typeof MenubarPrimitive.CheckboxItem>): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function MenubarRadioItem({ className, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.RadioItem>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function MenubarLabel({ className, inset, ...props }: React.ComponentProps<typeof MenubarPrimitive.Label> & {
|
|
17
|
-
inset?: boolean;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
declare function MenubarSeparator({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.Separator>): import("react/jsx-runtime").JSX.Element;
|
|
20
|
-
declare function MenubarShortcut({ className, ...props }: React.ComponentPropsWithoutRef<'span'>): import("react/jsx-runtime").JSX.Element;
|
|
21
|
-
declare function MenubarSub({ ...props }: React.ComponentProps<typeof MenubarPrimitive.Sub>): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare function MenubarSubTrigger({ className, inset, children, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubTrigger> & {
|
|
23
|
-
inset?: boolean;
|
|
24
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
declare function MenubarSubContent({ className, ...props }: React.ComponentProps<typeof MenubarPrimitive.SubContent>): import("react/jsx-runtime").JSX.Element;
|
|
26
|
-
export { Menubar, MenubarCheckboxItem, MenubarContent, MenubarGroup, MenubarItem, MenubarLabel, MenubarMenu, MenubarPortal, MenubarRadioGroup, MenubarRadioItem, MenubarSeparator, MenubarShortcut, MenubarSub, MenubarSubContent, MenubarSubTrigger, MenubarTrigger, };
|
package/dist/ui/menubar.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var U=import.meta.require;import{cn as B}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@radix-ui/react-menubar";import{CheckIcon as H,ChevronRightIcon as J,CircleIcon as K}from"lucide-react";import{jsx as z,jsxs as E}from"react/jsx-runtime";function Y({className:w,...y}){return z(q.Root,{"data-slot":"menubar",className:B("flex h-9 items-center gap-1 rounded-md border bg-background p-1 shadow-2xs",w),...y})}function Z({...w}){return z(q.Menu,{"data-slot":"menubar-menu",...w})}function _({...w}){return z(q.Group,{"data-slot":"menubar-group",...w})}function Q({...w}){return z(q.Portal,{"data-slot":"menubar-portal",...w})}function $({...w}){return z(q.RadioGroup,{"data-slot":"menubar-radio-group",...w})}function L({className:w,...y}){return z(q.Trigger,{"data-slot":"menubar-trigger",className:B("flex select-none items-center rounded-xs px-2 py-1 font-medium text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground",w),...y})}function G({className:w,align:y="start",alignOffset:A=-4,sideOffset:D=8,...F}){return z(Q,{children:z(q.Content,{"data-slot":"menubar-content",align:y,alignOffset:A,sideOffset:D,className:B("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-48 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in",w),...F})})}function P({className:w,inset:y,variant:A="default",...D}){return z(q.Item,{"data-slot":"menubar-item","data-inset":y,"data-variant":A,className:B("relative flex cursor-default select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-inset:pl-8 data-[variant=destructive]:text-destructive data-disabled:opacity-50 data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 data-[variant=destructive]:*:[svg]:text-destructive!",w),...D})}function T({className:w,children:y,checked:A,...D}){return E(q.CheckboxItem,{"data-slot":"menubar-checkbox-item",className:B("relative flex cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",w),checked:A,...D,children:[z("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:z(q.ItemIndicator,{children:z(H,{className:"size-4"})})}),y]})}function v({className:w,children:y,...A}){return E(q.RadioItem,{"data-slot":"menubar-radio-item",className:B("relative flex cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-2 pl-8 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",w),...A,children:[z("span",{className:"pointer-events-none absolute left-2 flex size-3.5 items-center justify-center",children:z(q.ItemIndicator,{children:z(K,{className:"size-2 fill-current"})})}),y]})}function R({className:w,inset:y,...A}){return z(q.Label,{"data-slot":"menubar-label","data-inset":y,className:B("px-2 py-1.5 font-medium text-sm data-inset:pl-8",w),...A})}function O({className:w,...y}){return z(q.Separator,{"data-slot":"menubar-separator",className:B("-mx-1 my-1 h-px bg-border",w),...y})}function k({className:w,...y}){return z("span",{"data-slot":"menubar-shortcut",className:B("ml-auto text-muted-foreground text-xs tracking-widest",w),...y})}function S({...w}){return z(q.Sub,{"data-slot":"menubar-sub",...w})}function C({className:w,inset:y,children:A,...D}){return E(q.SubTrigger,{"data-slot":"menubar-sub-trigger","data-inset":y,className:B("flex cursor-default select-none items-center rounded-xs px-2 py-1.5 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-inset:pl-8 data-[state=open]:text-accent-foreground",w),...D,children:[A,z(J,{className:"ml-auto h-4 w-4"})]})}function I({className:w,...y}){return z(q.SubContent,{"data-slot":"menubar-sub-content",className:B("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 min-w-32 origin-(--radix-menubar-content-transform-origin) overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=closed]:animate-out data-[state=open]:animate-in",w),...y})}export{L as MenubarTrigger,C as MenubarSubTrigger,I as MenubarSubContent,S as MenubarSub,k as MenubarShortcut,O as MenubarSeparator,v as MenubarRadioItem,$ as MenubarRadioGroup,Q as MenubarPortal,Z as MenubarMenu,R as MenubarLabel,P as MenubarItem,_ as MenubarGroup,G as MenubarContent,T as MenubarCheckboxItem,Y as Menubar};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ComboBoxResponsive(): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var Eu=import.meta.require;import{cn as o}from"@contractspec/lib.ui-kit-core/utils";import{Slot as c}from"@radix-ui/react-slot";import{cva as i}from"class-variance-authority";import*as V from"react";import{jsx as p}from"react/jsx-runtime";var a=i("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),Y=V.forwardRef(({className:u,variant:f,size:S,asChild:t=!1,...L},U)=>{return p(t?c:"button",{ref:U,"data-slot":"button",className:o(a({variant:f,size:S,className:u})),...L})});Y.displayName="Button";import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import*as R from"@radix-ui/react-dialog";import{XIcon as r}from"lucide-react";import{jsx as M,jsxs as n}from"react/jsx-runtime";function X({...u}){return M(R.Root,{"data-slot":"dialog",...u})}function Ou({...u}){return M(R.Trigger,{"data-slot":"dialog-trigger",...u})}function s({...u}){return M(R.Portal,{"data-slot":"dialog-portal",...u})}function Uu({...u}){return M(R.Close,{"data-slot":"dialog-close",...u})}function uu({className:u,...f}){return M(R.Overlay,{"data-slot":"dialog-overlay",className:K("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",u),...f})}function k({className:u,children:f,showCloseButton:S=!0,...t}){return n(s,{"data-slot":"dialog-portal",children:[M(uu,{}),n(R.Content,{"data-slot":"dialog-content",className:K("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border bg-background p-6 shadow-lg duration-200 data-[state=closed]:animate-out data-[state=open]:animate-in sm:max-w-lg",u),...t,children:[f,S&&n(R.Close,{"data-slot":"dialog-close",className:"absolute top-4 right-4 rounded-xs opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",children:[M(r,{}),M("span",{className:"sr-only",children:"Close"})]})]})]})}function v({className:u,...f}){return M("div",{"data-slot":"dialog-header",className:K("flex flex-col gap-2 text-center sm:text-left",u),...f})}function Wu({className:u,...f}){return M("div",{"data-slot":"dialog-footer",className:K("flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",u),...f})}function z({className:u,...f}){return M(R.Title,{"data-slot":"dialog-title",className:K("font-semibold text-lg leading-none",u),...f})}function T({className:u,...f}){return M(R.Description,{"data-slot":"dialog-description",className:K("text-muted-foreground text-sm",u),...f})}import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{Command as J}from"cmdk";import{SearchIcon as fu}from"lucide-react";import{jsx as E,jsxs as q}from"react/jsx-runtime";function A({className:u,...f}){return E(J,{"data-slot":"command",className:G("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",u),...f})}function Au({title:u="Command Palette",description:f="Search for a command to run...",children:S,className:t,showCloseButton:L=!0,...U}){return q(X,{...U,children:[q(v,{className:"sr-only",children:[E(z,{children:u}),E(T,{children:f})]}),E(k,{className:G("overflow-hidden p-0",t),showCloseButton:L,children:E(A,{className:"**:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:S})})]})}function H({className:u,...f}){return q("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[E(fu,{className:"size-4 shrink-0 opacity-50"}),E(J.Input,{"data-slot":"command-input",className:G("flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",u),...f})]})}function d({className:u,...f}){return E(J.List,{"data-slot":"command-list",className:G("max-h-[300px] scroll-py-1 overflow-y-auto overflow-x-hidden",u),...f})}function h({...u}){return E(J.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...u})}function F({className:u,...f}){return E(J.Group,{"data-slot":"command-group",className:G("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:text-xs",u),...f})}function Bu({className:u,...f}){return E(J.Separator,{"data-slot":"command-separator",className:G("-mx-1 h-px bg-border",u),...f})}function C({className:u,...f}){return E(J.Item,{"data-slot":"command-item",className:G("relative flex cursor-default select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-hidden data-[disabled=true]:pointer-events-none data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground data-[disabled=true]:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",u),...f})}function Vu({className:u,...f}){return E("span",{"data-slot":"command-shortcut",className:G("ml-auto text-muted-foreground text-xs tracking-widest",u),...f})}import{cn as Su}from"@contractspec/lib.ui-kit-core/utils";import*as y from"@radix-ui/react-popover";import{jsx as W}from"react/jsx-runtime";function g({...u}){return W(y.Root,{"data-slot":"popover",...u})}function w({...u}){return W(y.Trigger,{"data-slot":"popover-trigger",...u})}function P({className:u,align:f="center",sideOffset:S=4,...t}){return W(y.Portal,{children:W(y.Content,{"data-slot":"popover-content",align:f,sideOffset:S,className:Su("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border bg-popover p-4 text-popover-foreground shadow-md outline-hidden data-[state=closed]:animate-out data-[state=open]:animate-in",u),...t})})}function zu({...u}){return W(y.Anchor,{"data-slot":"popover-anchor",...u})}import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import{Drawer as I}from"vaul";import{jsx as Q,jsxs as e}from"react/jsx-runtime";function D({...u}){return Q(I.Root,{"data-slot":"drawer",...u})}function N({...u}){return Q(I.Trigger,{"data-slot":"drawer-trigger",...u})}function tu({...u}){return Q(I.Portal,{"data-slot":"drawer-portal",...u})}function Fu({...u}){return Q(I.Close,{"data-slot":"drawer-close",...u})}function Ru({className:u,...f}){return Q(I.Overlay,{"data-slot":"drawer-overlay",className:O("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50 data-[state=closed]:animate-out data-[state=open]:animate-in",u),...f})}function l({className:u,children:f,...S}){return e(tu,{"data-slot":"drawer-portal",children:[Q(Ru,{}),e(I.Content,{"data-slot":"drawer-content",className:O("group/drawer-content fixed z-50 flex h-auto flex-col bg-background","data-[vaul-drawer-direction=top]:inset-x-0 data-[vaul-drawer-direction=top]:top-0 data-[vaul-drawer-direction=top]:mb-24 data-[vaul-drawer-direction=top]:max-h-[80vh] data-[vaul-drawer-direction=top]:rounded-b-lg data-[vaul-drawer-direction=top]:border-b","data-[vaul-drawer-direction=bottom]:inset-x-0 data-[vaul-drawer-direction=bottom]:bottom-0 data-[vaul-drawer-direction=bottom]:mt-24 data-[vaul-drawer-direction=bottom]:max-h-[80vh] data-[vaul-drawer-direction=bottom]:rounded-t-lg data-[vaul-drawer-direction=bottom]:border-t","data-[vaul-drawer-direction=right]:inset-y-0 data-[vaul-drawer-direction=right]:right-0 data-[vaul-drawer-direction=right]:w-3/4 data-[vaul-drawer-direction=right]:border-l sm:data-[vaul-drawer-direction=right]:max-w-sm","data-[vaul-drawer-direction=left]:inset-y-0 data-[vaul-drawer-direction=left]:left-0 data-[vaul-drawer-direction=left]:w-3/4 data-[vaul-drawer-direction=left]:border-r sm:data-[vaul-drawer-direction=left]:max-w-sm",u),...S,children:[Q("div",{className:"mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full bg-muted group-data-[vaul-drawer-direction=bottom]/drawer-content:block"}),f]})]})}function Cu({className:u,...f}){return Q("div",{"data-slot":"drawer-header",className:O("flex flex-col gap-0.5 p-4 group-data-[vaul-drawer-direction=bottom]/drawer-content:text-center group-data-[vaul-drawer-direction=top]/drawer-content:text-center md:gap-1.5 md:text-left",u),...f})}function gu({className:u,...f}){return Q("div",{"data-slot":"drawer-footer",className:O("mt-auto flex flex-col gap-2 p-4",u),...f})}function wu({className:u,...f}){return Q(I.Title,{"data-slot":"drawer-title",className:O("font-semibold text-foreground",u),...f})}function Pu({className:u,...f}){return Q(I.Description,{"data-slot":"drawer-description",className:O("text-muted-foreground text-sm",u),...f})}import*as Z from"react";function m(u){let[f,S]=Z.useState(!1);return Z.useEffect(()=>{function t(U){S(U.matches)}let L=matchMedia(u);return L.addEventListener("change",t),S(L.matches),()=>L.removeEventListener("change",t)},[u]),f}import*as B from"react";import{jsx as b,jsxs as $,Fragment as _}from"react/jsx-runtime";var x=[{value:"backlog",label:"Backlog"},{value:"in progress",label:"In Progress"},{value:"done",label:"Done"},{value:"canceled",label:"Canceled"}];function cu(){let[u,f]=B.useState(!1),S=m("(min-width: 768px)"),[t,L]=B.useState(null);if(S)return $(g,{open:u,onOpenChange:f,children:[b(w,{asChild:!0,children:b(Y,{variant:"outline",className:"w-[150px] justify-start",children:t?b(_,{children:t.label}):b(_,{children:"+ Set status"})})}),b(P,{className:"w-[200px] p-0",align:"start",children:b(j,{setOpen:f,setSelectedStatus:L})})]});return $(D,{open:u,onOpenChange:f,children:[b(N,{asChild:!0,children:b(Y,{variant:"outline",className:"w-[150px] justify-start",children:t?b(_,{children:t.label}):b(_,{children:"+ Set status"})})}),b(l,{children:b("div",{className:"mt-4 border-t",children:b(j,{setOpen:f,setSelectedStatus:L})})})]})}function j({setOpen:u,setSelectedStatus:f}){return $(A,{children:[b(H,{placeholder:"Filter status..."}),$(d,{children:[b(h,{children:"No results found."}),b(F,{children:x.map((S)=>b(C,{value:S.value,onSelect:(t)=>{f(x.find((L)=>L.value===t)||null),u(!1)},children:S.label},S.value))})]})]})}export{cu as ComboBoxResponsive};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var $m=import.meta.require;import{cn as l}from"@contractspec/lib.ui-kit-core/utils";import{Slot as r}from"@radix-ui/react-slot";import{cva as a}from"class-variance-authority";import*as G from"react";import{jsx as i}from"react/jsx-runtime";var c=a("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),t=G.forwardRef(({className:m,variant:v,size:g,asChild:e=!1,...T},f)=>{return i(e?r:"button",{ref:f,"data-slot":"button",className:l(c({variant:v,size:g,className:m})),...T})});t.displayName="Button";import{cn as x}from"@contractspec/lib.ui-kit-core/utils";import*as A from"@radix-ui/react-label";import{jsx as j}from"react/jsx-runtime";function F({className:m,...v}){return j(A.Root,{"data-slot":"label",className:x("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",m),...v})}import{cn as $}from"@contractspec/lib.ui-kit-core/utils";import*as y from"@radix-ui/react-select";import{CheckIcon as s,ChevronDownIcon as k,ChevronUpIcon as mm}from"lucide-react";import{jsx as P,jsxs as O}from"react/jsx-runtime";function z({...m}){return P(y.Root,{"data-slot":"select",...m})}function Om({...m}){return P(y.Group,{"data-slot":"select-group",...m})}function S({...m}){return P(y.Value,{"data-slot":"select-value",...m})}function V({className:m,size:v="default",children:g,...e}){return O(y.Trigger,{"data-slot":"select-trigger","data-size":v,className:$("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",m),...e,children:[g,P(y.Icon,{asChild:!0,children:P(k,{className:"size-4 opacity-50"})})]})}function D({className:m,children:v,position:g="popper",...e}){return P(y.Portal,{children:O(y.Content,{"data-slot":"select-content",className:$("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",g==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",m),position:g,...e,children:[P(ym,{}),P(y.Viewport,{className:$("p-1",g==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:v}),P(vm,{})]})})}function Qm({className:m,...v}){return P(y.Label,{"data-slot":"select-label",className:$("px-2 py-1.5 text-muted-foreground text-xs",m),...v})}function M({className:m,children:v,...g}){return O(y.Item,{"data-slot":"select-item",className:$("relative flex w-full cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",m),...g,children:[P("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:P(y.ItemIndicator,{children:P(s,{className:"size-4"})})}),P(y.ItemText,{children:v})]})}function Wm({className:m,...v}){return P(y.Separator,{"data-slot":"select-separator",className:$("pointer-events-none -mx-1 my-1 h-px bg-border",m),...v})}function ym({className:m,...v}){return P(y.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:$("flex cursor-default items-center justify-center py-1",m),...v,children:P(mm,{className:"size-4"})})}function vm({className:m,...v}){return P(y.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:$("flex cursor-default items-center justify-center py-1",m),...v,children:P(k,{className:"size-4"})})}import{jsx as I,jsxs as E}from"react/jsx-runtime";var Q=({value:m,options:v,onChange:g,placeholder:e="S\xE9lectionner...",label:T,disabled:f=!1,className:X="",showCounts:q=!1})=>{return E("div",{className:`space-y-2 ${X}`,children:[T&&I(F,{className:"font-medium text-base text-foreground",children:T}),E(z,{value:m,onValueChange:g,disabled:f,children:[I(V,{className:"w-full",children:I(S,{placeholder:e})}),E(D,{className:"bg-background",children:[E(M,{value:"all",children:["Tous",q&&E("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",v.reduce((b,J)=>b+(J.count||0),0),")"]})]}),v.map((b)=>I(M,{value:b.value,children:E("div",{className:"flex w-full items-center justify-between",children:[I("span",{children:b.label}),q&&b.count!==void 0&&E("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",b.count,")"]})]})},b.value))]})]})]})};import{cn as Pm}from"@contractspec/lib.ui-kit-core/utils";import{jsx as gm}from"react/jsx-runtime";function U({className:m,type:v,ref:g,...e}){return gm("input",{ref:g,type:v,"data-slot":"input",className:Pm("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",m),...e})}import{Search as em,X as Rm}from"lucide-react";import{jsx as w,jsxs as B}from"react/jsx-runtime";var W=({value:m,onChange:v,placeholder:g="Rechercher...",onClear:e,disabled:T=!1,className:f="",autoFocus:X=!1})=>{let q=()=>{v(""),e?.()};return B("div",{className:`relative w-full ${f}`,children:[w("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:w(em,{className:"h-4 w-4 text-muted-foreground"})}),w(U,{type:"text",value:m,onChange:(b)=>v(b.target.value),placeholder:g,disabled:T,autoFocus:X,className:"pr-10 pl-10"}),m&&w("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:B(t,{type:"button",variant:"ghost",size:"sm",onClick:q,disabled:T,className:"h-6 w-6 p-0 hover:bg-transparent",children:[w(Rm,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),w("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};import*as C from"@radix-ui/react-collapsible";import{jsx as Y}from"react/jsx-runtime";function N({...m}){return Y(C.Root,{"data-slot":"collapsible",...m})}function L({...m}){return Y(C.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...m})}function h({...m}){return Y(C.CollapsibleContent,{"data-slot":"collapsible-content",...m})}import{ChevronDown as um,ChevronUp as Tm,Filter as bm}from"lucide-react";import{useState as fm}from"react";import{jsx as u,jsxs as H}from"react/jsx-runtime";var sm=({searchValue:m,onSearchChange:v,searchPlaceholder:g,filters:e=[],isLoading:T=!1,disabled:f=!1,className:X="",collapsible:q=!0,defaultCollapsed:b=!1})=>{let[J,o]=fm(b),Z=e.length>0,K=e.filter((R)=>R.value).length,n=q&&Z,_=()=>u("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:e.map((R)=>u(Q,{value:R.value,options:R.options,onChange:R.onChange,label:R.label,disabled:f||T,showCounts:R.showCounts,className:"min-w-0"},R.key))});return H("div",{className:`space-y-4 ${X}`,children:[H("div",{className:"flex flex-col gap-4 sm:flex-row",children:[u("div",{className:"flex-1",children:u(W,{value:m,onChange:v,placeholder:g,disabled:f||T,className:"w-full"})}),n&&H(N,{open:!J,onOpenChange:o,className:"sm:hidden",children:[u(L,{asChild:!0,children:H(t,{variant:"outline",className:"sm:hidden",disabled:f||T,children:[u(bm,{className:"mr-2 h-4 w-4"}),"Filtres",K>0&&u("span",{className:"ml-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm",children:K}),J?u(um,{className:"ml-2 h-4 w-4"}):u(Tm,{className:"ml-2 h-4 w-4"})]})}),u(h,{className:"mt-4 space-y-4",children:u(_,{})})]})]}),Z&&u("div",{className:"hidden sm:block",children:u(_,{})}),K>0&&H("div",{className:"flex flex-wrap items-center gap-2",children:[u("span",{className:"text-base text-muted-foreground",children:"Filtres actifs:"}),e.filter((R)=>R.value).map((R)=>{let p=R.options.find((d)=>d.value===R.value);return H(t,{variant:"secondary",size:"sm",onClick:()=>R.onChange(""),disabled:f||T,className:"h-7 px-2 text-sm",children:[R.label,": ",p?.label,u("span",{className:"ml-1",children:"\xD7"})]},R.key)})]})]})};export{sm as SearchAndFilter};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var $m=import.meta.require;import{cn as r}from"@contractspec/lib.ui-kit-core/utils";import{Slot as l}from"@radix-ui/react-slot";import{cva as a}from"class-variance-authority";import*as Z from"react";import{jsx as i}from"react/jsx-runtime";var c=a("inline-flex shrink-0 items-center justify-center gap-2 whitespace-nowrap rounded-md font-medium text-sm outline-hidden transition-all focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 [&_svg:not([class*='size-'])]:size-4 [&_svg]:pointer-events-none [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:bg-destructive/60 dark:focus-visible:ring-destructive/40",outline:"border bg-background shadow-2xs hover:bg-accent hover:text-accent-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 gap-1.5 rounded-md px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9"}},defaultVariants:{variant:"default",size:"default"}}),q=Z.forwardRef(({className:m,variant:y,size:v,asChild:g=!1,...u},T)=>{return i(g?l:"button",{ref:T,"data-slot":"button",className:r(c({variant:y,size:v,className:m})),...u})});q.displayName="Button";import{cn as x}from"@contractspec/lib.ui-kit-core/utils";import*as _ from"@radix-ui/react-label";import{jsx as j}from"react/jsx-runtime";function G({className:m,...y}){return j(_.Root,{"data-slot":"label",className:x("flex select-none items-center gap-2 font-medium text-sm leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-50 group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50",m),...y})}import{cn as b}from"@contractspec/lib.ui-kit-core/utils";import*as e from"@radix-ui/react-select";import{CheckIcon as s,ChevronDownIcon as S,ChevronUpIcon as mm}from"lucide-react";import{jsx as P,jsxs as K}from"react/jsx-runtime";function k({...m}){return P(e.Root,{"data-slot":"select",...m})}function Mm({...m}){return P(e.Group,{"data-slot":"select-group",...m})}function z({...m}){return P(e.Value,{"data-slot":"select-value",...m})}function V({className:m,size:y="default",children:v,...g}){return K(e.Trigger,{"data-slot":"select-trigger","data-size":y,className:b("flex w-fit items-center justify-between gap-2 whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-2xs outline-hidden transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 data-[size=default]:h-9 data-[size=sm]:h-8 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 dark:bg-input/30 dark:aria-invalid:ring-destructive/40 dark:hover:bg-input/50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0",m),...g,children:[v,P(e.Icon,{asChild:!0,children:P(S,{className:"size-4 opacity-50"})})]})}function D({className:m,children:y,position:v="popper",...g}){return P(e.Portal,{children:K(e.Content,{"data-slot":"select-content",className:b("data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 relative z-50 max-h-(--radix-select-content-available-height) min-w-32 origin-(--radix-select-content-transform-origin) overflow-y-auto overflow-x-hidden rounded-md border bg-popover text-popover-foreground shadow-md data-[state=closed]:animate-out data-[state=open]:animate-in",v==="popper"&&"data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=bottom]:translate-y-1 data-[side=top]:-translate-y-1",m),position:v,...g,children:[P(em,{}),P(e.Viewport,{className:b("p-1",v==="popper"&&"h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width) scroll-my-1"),children:y}),P(ym,{})]})})}function Om({className:m,...y}){return P(e.Label,{"data-slot":"select-label",className:b("px-2 py-1.5 text-muted-foreground text-xs",m),...y})}function J({className:m,children:y,...v}){return K(e.Item,{"data-slot":"select-item",className:b("relative flex w-full cursor-default select-none items-center gap-2 rounded-xs py-1.5 pr-8 pl-2 text-sm outline-hidden focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg:not([class*='size-'])]:size-4 [&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",m),...v,children:[P("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:P(e.ItemIndicator,{children:P(s,{className:"size-4"})})}),P(e.ItemText,{children:y})]})}function Qm({className:m,...y}){return P(e.Separator,{"data-slot":"select-separator",className:b("pointer-events-none -mx-1 my-1 h-px bg-border",m),...y})}function em({className:m,...y}){return P(e.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:b("flex cursor-default items-center justify-center py-1",m),...y,children:P(mm,{className:"size-4"})})}function ym({className:m,...y}){return P(e.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:b("flex cursor-default items-center justify-center py-1",m),...y,children:P(S,{className:"size-4"})})}import{jsx as F,jsxs as $}from"react/jsx-runtime";var M=({value:m,options:y,onChange:v,placeholder:g="S\xE9lectionner...",label:u,disabled:T=!1,className:E="",showCounts:X=!1})=>{return $("div",{className:`space-y-2 ${E}`,children:[u&&F(G,{className:"font-medium text-base text-foreground",children:u}),$(k,{value:m,onValueChange:v,disabled:T,children:[F(V,{className:"w-full",children:F(z,{placeholder:g})}),$(D,{className:"bg-background",children:[$(J,{value:"all",children:["Tous",X&&$("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",y.reduce((f,H)=>f+(H.count||0),0),")"]})]}),y.map((f)=>F(J,{value:f.value,children:$("div",{className:"flex w-full items-center justify-between",children:[F("span",{children:f.label}),X&&f.count!==void 0&&$("span",{className:"ml-2 text-muted-foreground text-sm",children:["(",f.count,")"]})]})},f.value))]})]})]})};import{cn as Pm}from"@contractspec/lib.ui-kit-core/utils";import{jsx as vm}from"react/jsx-runtime";function U({className:m,type:y,ref:v,...g}){return vm("input",{ref:v,type:y,"data-slot":"input",className:Pm("h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs outline-none transition-[color,box-shadow] selection:bg-primary selection:text-primary-foreground file:inline-flex file:h-7 file:border-0 file:bg-transparent file:font-medium file:text-foreground file:text-sm placeholder:text-muted-foreground disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm dark:bg-input/30","focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50","aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40",m),...g})}import{Search as gm,X as Rm}from"lucide-react";import{jsx as w,jsxs as o}from"react/jsx-runtime";var O=({value:m,onChange:y,placeholder:v="Rechercher...",onClear:g,disabled:u=!1,className:T="",autoFocus:E=!1})=>{let X=()=>{y(""),g?.()};return o("div",{className:`relative w-full ${T}`,children:[w("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:w(gm,{className:"h-4 w-4 text-muted-foreground"})}),w(U,{type:"text",value:m,onChange:(f)=>y(f.target.value),placeholder:v,disabled:u,autoFocus:E,className:"pr-10 pl-10"}),m&&w("div",{className:"absolute inset-y-0 right-0 flex items-center pr-3",children:o(q,{type:"button",variant:"ghost",size:"sm",onClick:X,disabled:u,className:"h-6 w-6 p-0 hover:bg-transparent",children:[w(Rm,{className:"h-4 w-4 text-muted-foreground hover:text-foreground"}),w("span",{className:"sr-only",children:"Effacer la recherche"})]})})]})};import*as A from"@radix-ui/react-collapsible";import{jsx as Q}from"react/jsx-runtime";function B({...m}){return Q(A.Root,{"data-slot":"collapsible",...m})}function p({...m}){return Q(A.CollapsibleTrigger,{"data-slot":"collapsible-trigger",...m})}function N({...m}){return Q(A.CollapsibleContent,{"data-slot":"collapsible-content",...m})}import{ChevronDown as tm,ChevronUp as um,Filter as fm}from"lucide-react";import{useState as Tm}from"react";import{jsx as t,jsxs as C}from"react/jsx-runtime";var bm=({searchValue:m,onSearchChange:y,searchPlaceholder:v,filters:g=[],isLoading:u=!1,disabled:T=!1,className:E="",collapsible:X=!0,defaultCollapsed:f=!1})=>{let[H,h]=Tm(f),W=g.length>0,I=g.filter((R)=>R.value).length,L=X&&W,Y=()=>t("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:g.map((R)=>t(M,{value:R.value,options:R.options,onChange:R.onChange,label:R.label,disabled:T||u,showCounts:R.showCounts,className:"min-w-0"},R.key))});return C("div",{className:`space-y-4 ${E}`,children:[C("div",{className:"flex flex-col gap-4 sm:flex-row",children:[t("div",{className:"flex-1",children:t(O,{value:m,onChange:y,placeholder:v,disabled:T||u,className:"w-full"})}),L&&C(B,{open:!H,onOpenChange:h,className:"sm:hidden",children:[t(p,{asChild:!0,children:C(q,{variant:"outline",className:"sm:hidden",disabled:T||u,children:[t(fm,{className:"mr-2 h-4 w-4"}),"Filtres",I>0&&t("span",{className:"ml-2 flex h-5 w-5 items-center justify-center rounded-full bg-primary text-primary-foreground text-sm",children:I}),H?t(tm,{className:"ml-2 h-4 w-4"}):t(um,{className:"ml-2 h-4 w-4"})]})}),t(N,{className:"mt-4 space-y-4",children:t(Y,{})})]})]}),W&&t("div",{className:"hidden sm:block",children:t(Y,{})}),I>0&&C("div",{className:"flex flex-wrap items-center gap-2",children:[t("span",{className:"text-base text-muted-foreground",children:"Filtres actifs:"}),g.filter((R)=>R.value).map((R)=>{let n=R.options.find((d)=>d.value===R.value);return C(q,{variant:"secondary",size:"sm",onClick:()=>R.onChange(""),disabled:T||u,className:"h-7 px-2 text-sm",children:[R.label,": ",n?.label,t("span",{className:"ml-1",children:"\xD7"})]},R.key)})]})]})};export{bm as SearchAndFilter};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var c=import.meta.require;import{clsx as s}from"clsx";import{twMerge as i}from"tailwind-merge";function o(...e){return i(s(e))}import{jsx as l}from"react/jsx-runtime";function r({className:e,...t}){return l("div",{"data-slot":"skeleton",className:o("animate-pulse rounded-md bg-accent",e),...t})}import{jsx as a}from"react/jsx-runtime";function C({count:e=6,className:t="",itemClassName:n=""}){return a("div",{className:`space-y-3 ${t}`,children:Array.from({length:e}).map((p,m)=>a(r,{className:`h-20 rounded-md ${n}`},m))})}export{C as SkeletonList};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
export declare function NativeSelect({ className, ...props }: React.ComponentPropsWithoutRef<'select'>): import("react/jsx-runtime").JSX.Element;
|
|
3
|
-
export declare function NativeSelectOption({ ...props }: React.ComponentPropsWithoutRef<'option'>): import("react/jsx-runtime").JSX.Element;
|
|
4
|
-
export declare function NativeSelectOptGroup({ ...props }: React.ComponentPropsWithoutRef<'optgroup'>): import("react/jsx-runtime").JSX.Element;
|
package/dist/ui/native-select.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
var q=import.meta.require;import{cn as h}from"@contractspec/lib.ui-kit-core/utils";import{jsx as f}from"react/jsx-runtime";function y({className:d,...g}){return f("select",{"data-slot":"native-select",className:h("h-9 w-full rounded-md border border-input bg-background px-3 py-2 text-sm shadow-xs outline-none transition-[color,box-shadow] focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:ring-destructive/40",d),...g})}function z({...d}){return f("option",{"data-slot":"native-select-option",...d})}function A({...d}){return f("optgroup",{"data-slot":"native-select-opt-group",...d})}export{z as NativeSelectOption,A as NativeSelectOptGroup,y as NativeSelect};
|