@lssm-tech/lib.ui-kit 4.1.6 → 8.0.3
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 +69 -17
- package/package.json +1311 -807
- 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.js +0 -1
- package/dist/browser/ui/card.js +0 -1
- package/dist/browser/ui/carousel.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/context-menu.js +0 -1
- package/dist/browser/ui/contracts.typecheck.js +0 -0
- package/dist/browser/ui/data-table.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/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/fab.js +0 -1
- package/dist/browser/ui/field.js +0 -1
- package/dist/browser/ui/form.js +0 -1
- package/dist/browser/ui/hover-card.js +0 -1
- package/dist/browser/ui/icons/Check.js +0 -1
- package/dist/browser/ui/icons/ChevronDown.js +0 -1
- package/dist/browser/ui/icons/ChevronRight.js +0 -1
- package/dist/browser/ui/icons/ChevronUp.js +0 -1
- package/dist/browser/ui/icons/CircleUser.js +0 -1
- package/dist/browser/ui/icons/Info.js +0 -1
- package/dist/browser/ui/icons/Key.js +0 -1
- package/dist/browser/ui/icons/MoonStar.js +0 -1
- package/dist/browser/ui/icons/Sun.js +0 -1
- package/dist/browser/ui/icons/X.js +0 -1
- package/dist/browser/ui/icons/iconWithClassName.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/label.js +0 -1
- package/dist/browser/ui/link.js +0 -1
- package/dist/browser/ui/list.js +0 -1
- package/dist/browser/ui/loading-button.js +0 -1
- package/dist/browser/ui/loading-overlay.js +0 -1
- package/dist/browser/ui/loading-screen.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/nativewind-env.d.js +0 -0
- 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/password-strength.js +0 -1
- package/dist/browser/ui/popover.js +0 -1
- package/dist/browser/ui/portal.js +0 -1
- package/dist/browser/ui/progress.js +0 -1
- package/dist/browser/ui/radio-group.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/slider.js +0 -1
- package/dist/browser/ui/stack.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/toggle-group.js +0 -1
- package/dist/browser/ui/toggle.js +0 -1
- package/dist/browser/ui/toolbar.js +0 -1
- package/dist/browser/ui/tooltip.js +0 -1
- package/dist/browser/ui/typography.js +0 -1
- package/dist/browser/ui/useColorScheme.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/index.js +0 -1
- package/dist/index.d.ts +0 -2
- package/dist/index.js +0 -2
- package/dist/ui/accordion.d.ts +0 -16
- package/dist/ui/accordion.js +0 -2
- package/dist/ui/alert-dialog.d.ts +0 -46
- package/dist/ui/alert-dialog.js +0 -2
- package/dist/ui/alert.d.ts +0 -17
- package/dist/ui/alert.js +0 -2
- package/dist/ui/aspect-ratio.d.ts +0 -8
- 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 -13
- package/dist/ui/avatar.js +0 -2
- package/dist/ui/badge.d.ts +0 -11
- package/dist/ui/badge.js +0 -2
- package/dist/ui/breadcrumb.d.ts +0 -12
- package/dist/ui/breadcrumb.js +0 -2
- package/dist/ui/button.d.ts +0 -16
- package/dist/ui/button.js +0 -2
- package/dist/ui/card.d.ts +0 -22
- package/dist/ui/card.js +0 -2
- package/dist/ui/carousel.d.ts +0 -1
- package/dist/ui/carousel.js +0 -2
- package/dist/ui/checkbox.d.ts +0 -12
- package/dist/ui/checkbox.js +0 -2
- package/dist/ui/collapsible.d.ts +0 -27
- package/dist/ui/collapsible.js +0 -2
- package/dist/ui/combobox.d.ts +0 -17
- package/dist/ui/combobox.js +0 -2
- package/dist/ui/command.d.ts +0 -1
- package/dist/ui/command.js +0 -2
- package/dist/ui/context-menu.d.ts +0 -83
- 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/data-table.d.ts +0 -8
- package/dist/ui/data-table.js +0 -2
- package/dist/ui/data-table.smoke.test.d.ts +0 -1
- package/dist/ui/date-picker.d.ts +0 -4
- 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 -51
- package/dist/ui/dialog.js +0 -2
- package/dist/ui/dropdown-menu.d.ts +0 -84
- 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/fab.d.ts +0 -21
- package/dist/ui/fab.js +0 -2
- package/dist/ui/field.d.ts +0 -21
- package/dist/ui/field.js +0 -2
- package/dist/ui/form.d.ts +0 -29
- package/dist/ui/form.js +0 -2
- package/dist/ui/hover-card.d.ts +0 -25
- package/dist/ui/hover-card.js +0 -2
- package/dist/ui/icons/Check.d.ts +0 -2
- package/dist/ui/icons/Check.js +0 -2
- package/dist/ui/icons/ChevronDown.d.ts +0 -2
- package/dist/ui/icons/ChevronDown.js +0 -2
- package/dist/ui/icons/ChevronRight.d.ts +0 -2
- package/dist/ui/icons/ChevronRight.js +0 -2
- package/dist/ui/icons/ChevronUp.d.ts +0 -2
- package/dist/ui/icons/ChevronUp.js +0 -2
- package/dist/ui/icons/CircleUser.d.ts +0 -2
- package/dist/ui/icons/CircleUser.js +0 -2
- package/dist/ui/icons/Info.d.ts +0 -2
- package/dist/ui/icons/Info.js +0 -2
- package/dist/ui/icons/Key.d.ts +0 -2
- package/dist/ui/icons/Key.js +0 -2
- package/dist/ui/icons/MoonStar.d.ts +0 -2
- package/dist/ui/icons/MoonStar.js +0 -2
- package/dist/ui/icons/Sun.d.ts +0 -2
- package/dist/ui/icons/Sun.js +0 -2
- package/dist/ui/icons/X.d.ts +0 -2
- package/dist/ui/icons/X.js +0 -2
- package/dist/ui/icons/iconWithClassName.d.ts +0 -2
- package/dist/ui/icons/iconWithClassName.js +0 -2
- package/dist/ui/input-group.d.ts +0 -36
- package/dist/ui/input-group.js +0 -2
- package/dist/ui/input-otp.d.ts +0 -20
- package/dist/ui/input-otp.js +0 -2
- package/dist/ui/input-password.d.ts +0 -10
- package/dist/ui/input-password.js +0 -2
- package/dist/ui/input.d.ts +0 -8
- package/dist/ui/input.js +0 -2
- package/dist/ui/label.d.ts +0 -3
- 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 -23
- package/dist/ui/list.js +0 -2
- package/dist/ui/loading-button.d.ts +0 -9
- package/dist/ui/loading-button.js +0 -2
- package/dist/ui/loading-overlay.d.ts +0 -7
- package/dist/ui/loading-overlay.js +0 -2
- package/dist/ui/loading-screen.d.ts +0 -6
- package/dist/ui/loading-screen.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 -80
- 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 -4
- 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 -29
- package/dist/ui/native-select.js +0 -2
- package/dist/ui/nativewind-env.d.js +0 -1
- package/dist/ui/navigation-menu.d.ts +0 -44
- 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 -44
- 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/password-strength.d.ts +0 -13
- package/dist/ui/password-strength.js +0 -2
- package/dist/ui/popover.d.ts +0 -23
- package/dist/ui/popover.js +0 -2
- package/dist/ui/portal.d.ts +0 -1
- package/dist/ui/portal.js +0 -2
- package/dist/ui/progress.d.ts +0 -7
- package/dist/ui/progress.js +0 -2
- package/dist/ui/radio-group.d.ts +0 -4
- package/dist/ui/radio-group.js +0 -2
- package/dist/ui/select.d.ts +0 -60
- package/dist/ui/select.js +0 -2
- package/dist/ui/separator.d.ts +0 -6
- package/dist/ui/separator.js +0 -2
- package/dist/ui/sheet.d.ts +0 -1
- package/dist/ui/sheet.js +0 -2
- package/dist/ui/sidebar.d.ts +0 -1
- package/dist/ui/sidebar.js +0 -2
- package/dist/ui/skeleton.d.ts +0 -4
- package/dist/ui/skeleton.js +0 -2
- package/dist/ui/slider.d.ts +0 -7
- package/dist/ui/slider.js +0 -2
- package/dist/ui/stack.d.ts +0 -43
- package/dist/ui/stack.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 -7
- package/dist/ui/switch.js +0 -2
- package/dist/ui/table.d.ts +0 -24
- package/dist/ui/table.js +0 -2
- package/dist/ui/tabs.d.ts +0 -6
- package/dist/ui/tabs.js +0 -2
- package/dist/ui/text.d.ts +0 -12
- package/dist/ui/text.js +0 -2
- package/dist/ui/textarea.d.ts +0 -8
- 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 -40
- package/dist/ui/toast.js +0 -2
- package/dist/ui/toggle-group.d.ts +0 -15
- package/dist/ui/toggle-group.js +0 -2
- package/dist/ui/toggle.d.ts +0 -19
- package/dist/ui/toggle.js +0 -2
- package/dist/ui/toolbar.d.ts +0 -25
- package/dist/ui/toolbar.js +0 -2
- package/dist/ui/tooltip.d.ts +0 -27
- 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/useColorScheme.d.ts +0 -6
- package/dist/ui/useColorScheme.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/index.d.ts +0 -1
- package/dist/ui/visualization/index.js +0 -2
package/dist/ui/toggle.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as TogglePrimitive from '@rn-primitives/toggle';
|
|
2
|
-
import { type VariantProps } from 'class-variance-authority';
|
|
3
|
-
import type { LucideIcon } from 'lucide-react-native';
|
|
4
|
-
import * as React from 'react';
|
|
5
|
-
declare const toggleVariants: (props?: ({
|
|
6
|
-
variant?: "default" | "outline" | null | undefined;
|
|
7
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
declare const toggleTextVariants: (props?: ({
|
|
10
|
-
variant?: "default" | "outline" | null | undefined;
|
|
11
|
-
size?: "default" | "sm" | "lg" | null | undefined;
|
|
12
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
declare function Toggle({ className, variant, size, ...props }: TogglePrimitive.RootProps & VariantProps<typeof toggleVariants> & VariantProps<typeof toggleVariants> & {
|
|
14
|
-
ref?: React.RefObject<TogglePrimitive.RootRef>;
|
|
15
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
declare function ToggleIcon({ className, icon: Icon, ...props }: React.ComponentPropsWithoutRef<LucideIcon> & {
|
|
17
|
-
icon: LucideIcon;
|
|
18
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
19
|
-
export { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };
|
package/dist/ui/toggle.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as L}from"@contractspec/lib.ui-kit-core/utils";import*as G from"@rn-primitives/slot";import*as B from"react";import{Text as M}from"react-native";import{jsx as O}from"react/jsx-runtime";var D=B.createContext(void 0);function X({className:q,asChild:w=!1,...A}){let f=B.useContext(D);return O(w?G.Text:M,{className:L("web:select-text text-base text-foreground",f,q),...A})}import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as H from"@rn-primitives/toggle";import{cva as J}from"class-variance-authority";import*as K from"react";import{jsx as F}from"react/jsx-runtime";var P=J("web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2 active:bg-muted",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent web:hover:bg-accent active:bg-accent"},size:{default:"h-10 native:h-12 native:px-[12] px-3",sm:"h-9 native:h-10 native:px-[9] px-2.5",lg:"h-11 native:h-14 native:px-6 px-5"}},defaultVariants:{variant:"default",size:"default"}}),Q=J("font-medium native:text-base text-foreground text-sm",{variants:{variant:{default:"",outline:"web:group-hover:text-accent-foreground web:group-active:text-accent-foreground"},size:{default:"",sm:"",lg:""}},defaultVariants:{variant:"default",size:"default"}});function R({className:q,variant:w,size:A,...f}){return F(D.Provider,{value:E(Q({variant:w,size:A}),f.pressed?"text-accent-foreground":"web:group-hover:text-muted-foreground",q),children:F(H.Root,{className:E(P({variant:w,size:A}),f.disabled&&"web:pointer-events-none opacity-50",f.pressed&&"bg-accent",q),...f})})}function b({className:q,icon:w,...A}){let f=K.useContext(D);return F(w,{className:E(f,q),...A})}export{P as toggleVariants,Q as toggleTextVariants,b as ToggleIcon,R as Toggle};
|
package/dist/ui/toolbar.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as ToolbarPrimitive from '@rn-primitives/toolbar';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare function Toolbar({ className, ...props }: ToolbarPrimitive.RootProps & {
|
|
4
|
-
ref?: React.RefObject<ToolbarPrimitive.RootRef>;
|
|
5
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function ToolbarButton({ className, children, ...props }: ToolbarPrimitive.ButtonProps & {
|
|
7
|
-
ref?: React.RefObject<ToolbarPrimitive.ButtonRef>;
|
|
8
|
-
children?: React.ReactNode;
|
|
9
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function ToolbarLink({ className, children, ...props }: ToolbarPrimitive.LinkProps & {
|
|
11
|
-
ref?: React.RefObject<ToolbarPrimitive.LinkRef>;
|
|
12
|
-
children?: React.ReactNode;
|
|
13
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function ToolbarToggleGroup({ className, children, ...props }: ToolbarPrimitive.ToggleGroupProps & {
|
|
15
|
-
ref?: React.RefObject<ToolbarPrimitive.ToggleGroupRef>;
|
|
16
|
-
children?: React.ReactNode;
|
|
17
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
18
|
-
declare function ToolbarToggleItem({ className, children, ...props }: ToolbarPrimitive.ToggleItemProps & {
|
|
19
|
-
ref?: React.RefObject<ToolbarPrimitive.ToggleItemRef>;
|
|
20
|
-
children?: React.ReactNode;
|
|
21
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
22
|
-
declare function ToolbarSeparator({ className, ...props }: ToolbarPrimitive.SeparatorProps & {
|
|
23
|
-
ref?: React.RefObject<ToolbarPrimitive.SeparatorRef>;
|
|
24
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export { Toolbar, ToolbarButton, ToolbarLink, ToolbarSeparator, ToolbarToggleGroup, ToolbarToggleItem, };
|
package/dist/ui/toolbar.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as O}from"@contractspec/lib.ui-kit-core/utils";import*as K from"@rn-primitives/slot";import*as F from"react";import{Text as P}from"react-native";import{jsx as Q}from"react/jsx-runtime";var E=F.createContext(void 0);function W({className:q,asChild:w=!1,...f}){let D=F.useContext(E);return Q(w?K.Text:P,{className:O("web:select-text text-base text-foreground",D,q),...f})}import{cn as A}from"@contractspec/lib.ui-kit-core/utils";import*as y from"@rn-primitives/toolbar";import*as H from"react";import{jsx as z}from"react/jsx-runtime";var M=H.createContext(null);function $({className:q,...w}){return z(y.Root,{className:A("flex flex-row items-center gap-1",q),...w})}function B({className:q,children:w,...f}){return z(E.Provider,{value:"font-medium text-sm text-foreground",children:z(y.Button,{className:A("min-h-9 items-center justify-center rounded-md px-3 active:bg-accent",f.disabled&&"opacity-50",q),...f,children:w})})}function G({className:q,children:w,...f}){return z(E.Provider,{value:"font-medium text-sm text-primary",children:z(y.Link,{className:A("min-h-9 items-center justify-center rounded-md px-3",q),...f,children:w})})}function I({className:q,children:w,...f}){return z(M.Provider,{value:f,children:z(y.ToggleGroup,{className:A("flex flex-row items-center gap-1",q),...f,children:w})})}function L({className:q,children:w,...f}){let D=H.useContext(M),J=D?.type==="single"?D.value===f.value:Array.isArray(D?.value)&&D.value.includes(f.value);return z(E.Provider,{value:A("font-medium text-sm",J?"text-accent-foreground":"text-foreground"),children:z(y.ToggleItem,{className:A("min-h-9 items-center justify-center rounded-md px-3 active:bg-accent",J&&"bg-accent",f.disabled&&"opacity-50",q),...f,children:w})})}function R({className:q,...w}){return z(y.Separator,{className:A("mx-1 h-5 w-px bg-border",q),...w})}export{L as ToolbarToggleItem,I as ToolbarToggleGroup,R as ToolbarSeparator,G as ToolbarLink,B as ToolbarButton,$ as Toolbar};
|
package/dist/ui/tooltip.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import * as TooltipPrimitive from '@rn-primitives/tooltip';
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
declare const Tooltip: {
|
|
4
|
-
({ asChild, delayDuration: _delayDuration, skipDelayDuration: _skipDelayDuration, disableHoverableContent: _disableHoverableContent, onOpenChange: onOpenChangeProp, ref, ...viewProps }: import("react-native").ViewProps & {
|
|
5
|
-
asChild?: boolean;
|
|
6
|
-
} & {
|
|
7
|
-
onOpenChange?: (open: boolean) => void;
|
|
8
|
-
delayDuration?: number;
|
|
9
|
-
skipDelayDuration?: number;
|
|
10
|
-
disableHoverableContent?: boolean;
|
|
11
|
-
} & React.RefAttributes<import("react-native").View>): React.JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
14
|
-
declare const TooltipTrigger: {
|
|
15
|
-
({ asChild, onPress: onPressProp, disabled, ref, ...props }: Omit<import("react-native").PressableProps & React.RefAttributes<import("react-native").View>, "ref"> & {
|
|
16
|
-
asChild?: boolean;
|
|
17
|
-
} & {
|
|
18
|
-
onKeyDown?: (ev: React.KeyboardEvent) => void;
|
|
19
|
-
onKeyUp?: (ev: React.KeyboardEvent) => void;
|
|
20
|
-
} & React.RefAttributes<import("@rn-primitives/tooltip").TriggerRef>): React.JSX.Element;
|
|
21
|
-
displayName: string;
|
|
22
|
-
};
|
|
23
|
-
declare function TooltipContent({ className, sideOffset, portalHost, ...props }: TooltipPrimitive.ContentProps & {
|
|
24
|
-
ref?: React.RefObject<TooltipPrimitive.ContentRef>;
|
|
25
|
-
portalHost?: string;
|
|
26
|
-
}): import("react/jsx-runtime").JSX.Element;
|
|
27
|
-
export { Tooltip, TooltipContent, TooltipTrigger };
|
package/dist/ui/tooltip.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as M}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as z from"react";import{Text as Q}from"react-native";import{jsx as U}from"react/jsx-runtime";var J=z.createContext(void 0);function A({className:B,asChild:D=!1,...E}){let G=z.useContext(J);return U(D?L.Text:Q,{className:M("web:select-text text-base text-foreground",G,B),...E})}import{cn as V}from"@contractspec/lib.ui-kit-core/utils";import*as q from"@rn-primitives/tooltip";import{Platform as K,StyleSheet as W}from"react-native";import X,{FadeIn as Y,FadeOut as Z}from"react-native-reanimated";import{jsx as w}from"react/jsx-runtime";var H=q.Root,S=q.Trigger;function h({className:B,sideOffset:D=4,portalHost:E,...G}){return w(q.Portal,{hostName:E,children:w(q.Overlay,{style:K.OS!=="web"?W.absoluteFill:void 0,children:w(X.View,{entering:K.select({web:void 0,default:Y}),exiting:K.select({web:void 0,default:Z}),children:w(J.Provider,{value:"text-sm native:text-base text-popover-foreground",children:w(q.Content,{sideOffset:D,className:V("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 web:fade-in-0 web:zoom-in-95 z-50 web:animate-in overflow-hidden rounded-md border border-border bg-popover px-3 py-1.5 shadow-foreground/5 shadow-md",B),...G})})})})})}export{S as TooltipTrigger,h as TooltipContent,H as Tooltip};
|
package/dist/ui/typography.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { type TextProps } from './text';
|
|
2
|
-
export type TypographyProps = TextProps & {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
};
|
|
5
|
-
declare function H1({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
declare function H2({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
-
declare function H3({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
declare function H4({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
-
declare function P({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
-
declare function BlockQuote({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
-
declare function Code({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
declare function Lead({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
13
|
-
declare function Large({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
-
declare function Small({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
-
declare function Muted({ className, asChild, ...props }: TypographyProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
-
export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };
|
package/dist/ui/typography.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as K}from"@contractspec/lib.ui-kit-core/utils";import*as I from"@rn-primitives/slot";import*as G from"react";import{Text as O}from"react-native";import{jsx as V}from"react/jsx-runtime";var U=G.createContext(void 0);function A({className:q,asChild:w=!1,...y}){let z=G.useContext(U);return V(w?I.Text:O,{className:K("web:select-text text-base text-foreground",z,q),...y})}import{cn as E}from"@contractspec/lib.ui-kit-core/utils";import*as D from"@rn-primitives/slot";import{Platform as J}from"react-native";import{jsx as F}from"react/jsx-runtime";function M({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"1",className:E("web:select-text web:scroll-m-20 font-extrabold text-4xl text-foreground tracking-tight lg:text-5xl",q),...y})}function Q({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"2",className:E("web:select-text web:scroll-m-20 border-border border-b pb-2 font-semibold text-3xl text-foreground tracking-tight first:mt-0",q),...y})}function R({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"3",className:E("web:select-text web:scroll-m-20 font-semibold text-2xl text-foreground tracking-tight",q),...y})}function S({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:"heading","aria-level":"4",className:E("web:select-text web:scroll-m-20 font-semibold text-foreground text-xl tracking-tight",q),...y})}function b({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-base text-foreground",q),...y})}function f({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:J.OS==="web"?"blockquote":void 0,className:E("mt-6 native:mt-4 web:select-text border-border border-l-2 native:pl-3 pl-6 text-base text-foreground italic",q),...y})}function L({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{role:J.OS==="web"?"code":void 0,className:E("relative web:select-text rounded-md bg-muted px-[0.3rem] py-[0.2rem] font-semibold text-foreground text-sm",q),...y})}function k({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-muted-foreground text-xl",q),...y})}function P({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text font-semibold text-foreground text-xl",q),...y})}function v({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text font-medium text-foreground text-sm leading-none",q),...y})}function H({className:q,asChild:w=!1,...y}){return F(w?D.Text:A,{className:E("web:select-text text-muted-foreground text-sm",q),...y})}export{v as Small,b as P,H as Muted,k as Lead,P as Large,S as H4,R as H3,Q as H2,M as H1,L as Code,f as BlockQuote};
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { SharedUseListStateOptions, SharedUseListStateReturn } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
2
|
-
export interface UseListStateOptions extends SharedUseListStateOptions {
|
|
3
|
-
}
|
|
4
|
-
export interface UseListStateReturn extends SharedUseListStateReturn {
|
|
5
|
-
}
|
|
6
|
-
export declare const useListState: ({ initialSearch, initialFilters, initialPage, initialItemsPerPage, }?: UseListStateOptions) => UseListStateReturn;
|
package/dist/ui/useListState.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{useCallback as z,useMemo as A,useState as D}from"react";var q=({initialSearch:E="",initialFilters:G={},initialPage:H=1,initialItemsPerPage:J=25}={})=>{let[K,V]=D(E),[L,N]=D(G),[O,x]=D(H),[T,W]=D(J),Y=z((j,B)=>{N((U)=>({...U,[j]:B})),x(1)},[]),Z=z(()=>{N({}),x(1)},[]),_=z((j)=>{V(j),x(1)},[]),$=z((j)=>{W(j),x(1)},[]),M=z(()=>{V(E),N(G),x(H),W(J)},[E,G,H,J]),R=A(()=>{let j={search:K,page:O,limit:T},B={};return Object.entries(L).forEach(([U,X])=>{if(X)B[U]=X}),{...j,...B}},[K,L,O,T]);return{searchQuery:K,setSearchQuery:_,filters:L,setFilter:Y,clearFilters:Z,currentPage:O,itemsPerPage:T,setCurrentPage:x,setItemsPerPage:$,queryParams:R,resetAll:M}};export{q as useListState};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as _}from"@contractspec/lib.ui-kit-core/utils";import*as P from"@rn-primitives/slot";import*as D from"react";import{Text as $}from"react-native";import{jsx as R}from"react/jsx-runtime";var F=D.createContext(void 0);function G({className:U,asChild:m=!1,...L}){let H=D.useContext(F);return R(m?P.Text:$,{className:_("web:select-text text-base text-foreground",H,U),...L})}import{cn as z}from"@contractspec/lib.ui-kit-core/utils";import{cva as W}from"class-variance-authority";import{Pressable as S}from"react-native";import{jsx as Q}from"react/jsx-runtime";var T=W("group flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2",{variants:{variant:{default:"bg-primary web:hover:opacity-90 active:opacity-90",destructive:"bg-destructive web:hover:opacity-90 active:opacity-90",outline:"border border-input bg-background web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",secondary:"bg-secondary web:hover:opacity-80 active:opacity-80",ghost:"web:hover:bg-accent web:hover:text-accent-foreground active:bg-accent",link:"web:underline-offset-4 web:hover:underline web:focus:underline"},size:{default:"h-10 native:h-12 native:px-5 px-4 native:py-3 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 native:h-14 rounded-md px-8",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),C=W("web:whitespace-nowrap font-medium native:text-base text-foreground text-sm web:transition-colors",{variants:{variant:{default:"text-primary-foreground",destructive:"text-destructive-foreground",outline:"group-active:text-accent-foreground",secondary:"text-secondary-foreground group-active:text-secondary-foreground",ghost:"group-active:text-accent-foreground",link:"text-primary group-active:underline"},size:{default:"",sm:"",lg:"native:text-lg",icon:""}},defaultVariants:{variant:"default",size:"default"}});function X({ref:U,className:m,variant:L,size:H,...f}){return Q(F.Provider,{value:C({variant:L,size:H,className:"web:pointer-events-none"}),children:Q(S,{className:z(f.disabled&&"web:pointer-events-none opacity-50",T({variant:L,size:H,className:m})),ref:U,role:"button",...f})})}import{cn as I}from"@contractspec/lib.ui-kit-core/utils";import{cva as J}from"class-variance-authority";import{View as K}from"react-native";import{jsx as O}from"react/jsx-runtime";var M="flex",b=J([M,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),o=J([M,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),N=J([M,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function c({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A,...E}){return O(K,{className:I(N({spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A}),U),...E})}function Y({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A,...E}){return O(K,{className:I(o({spacing:m,align:L,justify:H,width:f,padding:k,gap:q,wrap:A}),U),...E})}function Z({className:U,spacing:m,align:L,justify:H,width:f,padding:k,gap:q,...A}){return O(K,{className:I(b({spacing:m,align:L,justify:H,width:f,padding:k,gap:q}),U),...A})}import{Link as V}from"expo-router";import{jsx as B,jsxs as h}from"react/jsx-runtime";function HL({title:U,summary:m,ctaHref:L,ctaLabel:H="Learn more",onCtaClick:f}){return h(Z,{className:"rounded-lg border p-4",gap:"sm",children:[B(G,{className:"font-semibold text-lg",children:U}),m&&B(G,{className:"text-base text-muted-foreground",children:m}),L&&B(Y,{children:B(V,{href:L,children:B(X,{size:"sm",variant:"outline",onPress:f,children:H})})})]})}export{HL as UseCaseCard};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as X}from"@contractspec/lib.ui-kit-core/utils";import*as P from"@rn-primitives/slot";import*as E from"react";import{Text as Y}from"react-native";import{jsx as _}from"react/jsx-runtime";var Z=E.createContext(void 0);function D({className:T,asChild:m=!1,...O}){let U=E.useContext(Z);return _(m?P.Text:Y,{className:X("web:select-text text-base text-foreground",U,T),...O})}import{cn as G}from"@contractspec/lib.ui-kit-core/utils";import{cva as I}from"class-variance-authority";import{View as J}from"react-native";import{jsx as L}from"react/jsx-runtime";var K="flex",$=I([K,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),B=I([K,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),H=I([K,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function C({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A,...F}){return L(J,{className:G(H({spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A}),T),...F})}function u({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A,...F}){return L(J,{className:G(B({spacing:m,align:O,justify:U,width:f,padding:q,gap:z,wrap:A}),T),...F})}function Q({className:T,spacing:m,align:O,justify:U,width:f,padding:q,gap:z,...A}){return L(J,{className:G($({spacing:m,align:O,justify:U,width:f,padding:q,gap:z}),T),...A})}import{jsx as M,jsxs as W}from"react/jsx-runtime";function d({title:T,body:m,outcome:O}){return W(Q,{className:"rounded-lg border p-4",gap:"sm",children:[M(D,{className:"font-semibold text-lg",children:T}),m&&M(D,{className:"text-base text-muted-foreground",children:m}),O&&W(D,{className:"text-base",children:[M(D,{className:"font-medium",children:"Outcome:"})," ",O]})]})}export{d as UserStoryCard};
|
package/dist/ui/utils.d.ts
DELETED
package/dist/ui/utils.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type ContractVisualizationRenderModel } from '@contractspec/lib.presentation-runtime-core';
|
|
2
|
-
import type { SharedVisualizationInteractionHandler, SharedVisualizationProps } from '@contractspec/lib.ui-kit-core/interfaces';
|
|
3
|
-
export type VisualizationInteractionHandler = SharedVisualizationInteractionHandler;
|
|
4
|
-
export interface VisualizationProps extends Omit<SharedVisualizationProps, 'model'> {
|
|
5
|
-
model: ContractVisualizationRenderModel;
|
|
6
|
-
}
|
|
7
|
-
export declare function Visualization({ model, className, height, onDataPointPress, }: VisualizationProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{cn as D}from"@contractspec/lib.ui-kit-core/utils";import*as L from"@rn-primitives/slot";import*as B from"react";import{Text as k}from"react-native";import{jsx as y}from"react/jsx-runtime";var T=B.createContext(void 0);function $({className:q,asChild:I=!1,...K}){let J=B.useContext(T);return y(I?L.Text:k,{className:D("web:select-text text-base text-foreground",J,q),...K})}import{cn as F}from"@contractspec/lib.ui-kit-core/utils";import{cva as H}from"class-variance-authority";import{View as G}from"react-native";import{jsx as M}from"react/jsx-runtime";var E="flex",f=H([E,"flex-col"],{variants:{spacing:{none:"",xs:"gap-y-1",sm:"gap-y-2",md:"gap-y-4",lg:"gap-y-6",xl:"gap-y-8","2xl":"gap-y-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"}},defaultVariants:{spacing:"md",align:"stretch",justify:"start",width:"auto",padding:"none",gap:"none"}}),v=H([E,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"start",width:"auto",padding:"none",gap:"none",wrap:"wrap"}}),S=H([E,"flex-row"],{variants:{spacing:{none:"",xs:"gap-x-1",sm:"gap-x-2",md:"gap-x-4",lg:"gap-x-6",xl:"gap-x-8","2xl":"gap-x-12"},align:{stretch:"items-stretch",start:"items-start",center:"items-center",end:"items-end",baseline:"items-baseline"},justify:{start:"justify-start",center:"justify-center",end:"justify-end",between:"justify-between",around:"justify-around",evenly:"justify-evenly"},width:{auto:"w-auto",full:"w-full",screen:"w-screen",fit:"w-fit"},padding:{none:"",xs:"p-1",sm:"p-2",md:"p-4",lg:"p-6",xl:"p-8"},gap:{none:"",xs:"gap-1",sm:"gap-2",md:"gap-4",lg:"gap-6",xl:"gap-8"},wrap:{nowrap:"flex-nowrap",wrap:"flex-wrap",reverse:"flex-wrap-reverse"}},defaultVariants:{spacing:"md",align:"center",justify:"center",width:"auto",padding:"none",gap:"none",wrap:"wrap"}});function Zq({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z,...X}){return M(G,{className:F(S({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z}),q),...X})}function _q({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z,...X}){return M(G,{className:F(v({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,wrap:Z}),q),...X})}function O({className:q,spacing:I,align:K,justify:J,width:U,padding:Y,gap:_,...Z}){return M(G,{className:F(f({spacing:I,align:K,justify:J,width:U,padding:Y,gap:_}),q),...Z})}import{buildVisualizationEChartsOption as N,formatVisualizationValue as R}from"@contractspec/lib.presentation-runtime-core";import w,{SVGRenderer as P}from"@wuba/react-native-echarts/svgChart";import{BarChart as V,FunnelChart as C,HeatmapChart as j,LineChart as g,MapChart as u,PieChart as x,ScatterChart as h}from"echarts/charts";import{AriaComponent as p,GeoComponent as c,GridComponent as r,LegendComponent as d,TitleComponent as n,TooltipComponent as m,VisualMapComponent as i}from"echarts/components";import*as A from"echarts/core";import{useEffect as l,useMemo as o,useRef as s,useState as t}from"react";import{View as a}from"react-native";import{jsx as Q,jsxs as W}from"react/jsx-runtime";A.use([p,n,m,r,d,i,c,P,g,V,x,h,j,C,u]);function zq({model:q,className:I,height:K=280,onDataPointPress:J}){let U=s(null),[Y,_]=t(320),Z=o(()=>N(q),[q]);if(l(()=>{if(!b(q)||!U.current||Y<=0)return;if(q.kind==="geo"&&q.geo?.geoJson?.type==="inline")A.registerMap("contractspec-visualization-geo",q.geo.geoJson.data);let X=A.init(U.current,"light",{renderer:"svg",width:Y,height:K});if(X.setOption(Z),J)X.on("click",J);return()=>{if(J)X.off("click",J);X.dispose()}},[K,q,J,Z,Y]),q.kind==="metric")return Q(e,{className:I,model:q});if(!b(q))return Q(qq,{className:I,model:q});return W(O,{gap:"sm",className:I,children:[Q(a,{className:"w-full",onLayout:(X)=>_(Math.max(X.nativeEvent.layout.width,1)),style:{height:K},children:Q(w,{ref:U})}),Q(z,{model:q})]})}function e({className:q,model:I}){return W(O,{gap:"xs",className:q,children:[Q($,{className:"text-muted-foreground text-sm",children:I.metric?.label??I.title}),Q($,{className:"font-semibold text-3xl",children:R(I.metric?.value,I.metric?.format)}),I.metric?.comparisonValue!=null?W($,{className:"text-muted-foreground text-sm",children:["Comparison:"," ",R(I.metric.comparisonValue,I.metric.format)]}):null,Q(z,{model:I})]})}function qq({className:q,model:I}){return W(O,{gap:"sm",className:q,children:[Q($,{className:"text-muted-foreground text-sm",children:"This visualization falls back to a summary view on native."}),Q(z,{model:I})]})}function z({model:q}){if(!q.table.columns.length||!q.table.rows.length)return null;return W(O,{gap:"xs",children:[Q($,{className:"font-medium text-sm",children:"Data summary"}),q.table.rows.slice(0,6).map((I,K)=>Q($,{className:"text-muted-foreground text-sm",children:q.table.columns.map((J)=>`${J.label}: ${String(I[J.key]??"\u2014")}`).join(" \u2022 ")},`summary-${K}`))]})}function b(q){if(q.kind==="metric")return!1;if(q.kind==="geo"&&q.geo?.mode==="slippy-map")return!1;if(q.kind==="geo"&&q.geo?.geoJson?.type==="url")return!1;return!0}export{zq as Visualization};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { Visualization, type VisualizationInteractionHandler, type VisualizationProps, } from './Visualization';
|