@lssm/lib.ui-kit 1.7.3 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +82 -0
- package/dist/node_modules/react-hook-form/dist/index.esm.js +27 -16
- package/dist/node_modules/react-hook-form/dist/index.esm.js.map +1 -1
- package/dist/node_modules/zod/v4/core/core.js +0 -1
- package/dist/node_modules/zod/v4/core/core.js.map +1 -1
- package/dist/node_modules/zod/v4/core/registries.js +0 -2
- package/dist/node_modules/zod/v4/core/registries.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/accordion.d.ts +5 -5
- package/dist/ui/accordion.js +4 -4
- package/dist/ui/accordion.js.map +1 -1
- package/dist/ui/alert-dialog.d.ts +11 -11
- package/dist/ui/alert-dialog.js +9 -9
- package/dist/ui/alert-dialog.js.map +1 -1
- package/dist/ui/alert.d.ts +4 -4
- package/dist/ui/alert.d.ts.map +1 -1
- package/dist/ui/alert.js +3 -3
- package/dist/ui/alert.js.map +1 -1
- package/dist/ui/aspect-ratio.d.ts +5 -5
- package/dist/ui/aspect-ratio.d.ts.map +1 -1
- package/dist/ui/avatar.d.ts +4 -4
- package/dist/ui/avatar.d.ts.map +1 -1
- package/dist/ui/avatar.js +3 -3
- package/dist/ui/avatar.js.map +1 -1
- package/dist/ui/badge.d.ts +3 -3
- package/dist/ui/badge.js +1 -1
- package/dist/ui/badge.js.map +1 -1
- package/dist/ui/breadcrumb.d.ts +8 -8
- package/dist/ui/breadcrumb.js +6 -6
- package/dist/ui/breadcrumb.js.map +1 -1
- package/dist/ui/button.d.ts +4 -4
- package/dist/ui/button.d.ts.map +1 -1
- package/dist/ui/button.js +1 -1
- package/dist/ui/button.js.map +1 -1
- package/dist/ui/card.d.ts +7 -7
- package/dist/ui/card.js +6 -6
- package/dist/ui/card.js.map +1 -1
- package/dist/ui/checkbox.d.ts +3 -3
- package/dist/ui/checkbox.d.ts.map +1 -1
- package/dist/ui/checkbox.js +1 -1
- package/dist/ui/checkbox.js.map +1 -1
- package/dist/ui/collapsible.d.ts +8 -8
- package/dist/ui/context-menu.d.ts +16 -16
- package/dist/ui/context-menu.d.ts.map +1 -1
- package/dist/ui/context-menu.js +9 -9
- package/dist/ui/context-menu.js.map +1 -1
- package/dist/ui/date-picker.d.ts +2 -2
- package/dist/ui/date-range-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts +2 -2
- package/dist/ui/datetime-picker.d.ts.map +1 -1
- package/dist/ui/dialog.d.ts +10 -10
- package/dist/ui/dialog.js +7 -7
- package/dist/ui/dialog.js.map +1 -1
- package/dist/ui/dropdown-menu.d.ts +16 -16
- package/dist/ui/dropdown-menu.d.ts.map +1 -1
- package/dist/ui/dropdown-menu.js +9 -9
- package/dist/ui/dropdown-menu.js.map +1 -1
- package/dist/ui/empty-state.d.ts +4 -4
- package/dist/ui/empty-state.d.ts.map +1 -1
- package/dist/ui/empty.d.ts +9 -9
- package/dist/ui/empty.d.ts.map +1 -1
- package/dist/ui/empty.js +6 -6
- package/dist/ui/empty.js.map +1 -1
- package/dist/ui/fab.d.ts +3 -3
- package/dist/ui/field.d.ts +14 -14
- package/dist/ui/field.d.ts.map +1 -1
- package/dist/ui/field.js +10 -11
- package/dist/ui/field.js.map +1 -1
- package/dist/ui/form.d.ts +7 -7
- package/dist/ui/form.d.ts.map +1 -1
- package/dist/ui/form.js +5 -6
- package/dist/ui/form.js.map +1 -1
- package/dist/ui/hover-card.d.ts +6 -6
- package/dist/ui/hover-card.d.ts.map +1 -1
- package/dist/ui/hover-card.js +1 -1
- package/dist/ui/hover-card.js.map +1 -1
- package/dist/ui/input.d.ts +2 -2
- package/dist/ui/input.d.ts.map +1 -1
- package/dist/ui/input.js +1 -1
- package/dist/ui/input.js.map +1 -1
- package/dist/ui/label.d.ts +2 -2
- package/dist/ui/label.d.ts.map +1 -1
- package/dist/ui/label.js +1 -1
- package/dist/ui/label.js.map +1 -1
- package/dist/ui/link.d.ts +2 -2
- package/dist/ui/link.d.ts.map +1 -1
- package/dist/ui/link.js +1 -1
- package/dist/ui/link.js.map +1 -1
- package/dist/ui/loading-button.d.ts +2 -2
- package/dist/ui/loading-button.d.ts.map +1 -1
- package/dist/ui/loading-button.js +1 -1
- package/dist/ui/loading-button.js.map +1 -1
- package/dist/ui/loading-overlay.d.ts +2 -2
- package/dist/ui/loading-overlay.d.ts.map +1 -1
- package/dist/ui/loading-screen.d.ts +2 -2
- package/dist/ui/marketing/FeatureGrid.d.ts +2 -2
- package/dist/ui/marketing/Hero.d.ts +2 -2
- package/dist/ui/marketing/PricingTable.d.ts +2 -2
- package/dist/ui/menubar.d.ts +17 -17
- package/dist/ui/menubar.d.ts.map +1 -1
- package/dist/ui/menubar.js +11 -11
- package/dist/ui/menubar.js.map +1 -1
- package/dist/ui/molecules/SkeletonList.d.ts +2 -2
- package/dist/ui/navigation-menu.d.ts +10 -10
- package/dist/ui/navigation-menu.js +6 -6
- package/dist/ui/navigation-menu.js.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts +2 -2
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.d.ts.map +1 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js +0 -1
- package/dist/ui/organisms/ErrorBoundary/ErrorBoundary.js.map +1 -1
- package/dist/ui/organisms/ListPage/ListPage.d.ts +2 -2
- package/dist/ui/organisms/ListPage/ListPage.d.ts.map +1 -1
- package/dist/ui/page-header.d.ts +4 -4
- package/dist/ui/page-header.d.ts.map +1 -1
- package/dist/ui/password-strength.d.ts +2 -2
- package/dist/ui/password-strength.d.ts.map +1 -1
- package/dist/ui/popover.d.ts +8 -8
- package/dist/ui/popover.d.ts.map +1 -1
- package/dist/ui/popover.js +1 -1
- package/dist/ui/popover.js.map +1 -1
- package/dist/ui/progress.d.ts +2 -2
- package/dist/ui/progress.d.ts.map +1 -1
- package/dist/ui/progress.js +1 -1
- package/dist/ui/progress.js.map +1 -1
- package/dist/ui/radio-group.d.ts +3 -3
- package/dist/ui/radio-group.js +2 -2
- package/dist/ui/radio-group.js.map +1 -1
- package/dist/ui/select.d.ts +13 -13
- package/dist/ui/select.d.ts.map +1 -1
- package/dist/ui/select.js +7 -7
- package/dist/ui/select.js.map +1 -1
- package/dist/ui/separator.d.ts +2 -2
- package/dist/ui/separator.d.ts.map +1 -1
- package/dist/ui/separator.js +1 -1
- package/dist/ui/separator.js.map +1 -1
- package/dist/ui/skeleton.d.ts +2 -2
- package/dist/ui/skeleton.js +1 -1
- package/dist/ui/skeleton.js.map +1 -1
- package/dist/ui/stack.d.ts +17 -17
- package/dist/ui/stack.d.ts.map +1 -1
- package/dist/ui/stack.js +3 -3
- package/dist/ui/stack.js.map +1 -1
- package/dist/ui/stepper.d.ts +4 -4
- package/dist/ui/stepper.d.ts.map +1 -1
- package/dist/ui/switch.d.ts +2 -2
- package/dist/ui/switch.js +2 -2
- package/dist/ui/switch.js.map +1 -1
- package/dist/ui/table.d.ts +8 -8
- package/dist/ui/table.js +7 -7
- package/dist/ui/table.js.map +1 -1
- package/dist/ui/tabs.d.ts +11 -11
- package/dist/ui/tabs.js +3 -3
- package/dist/ui/tabs.js.map +1 -1
- package/dist/ui/text.d.ts +2 -2
- package/dist/ui/text.d.ts.map +1 -1
- package/dist/ui/text.js +1 -1
- package/dist/ui/text.js.map +1 -1
- package/dist/ui/textarea.js +1 -1
- package/dist/ui/textarea.js.map +1 -1
- package/dist/ui/time-picker.d.ts +2 -2
- package/dist/ui/time-picker.d.ts.map +1 -1
- package/dist/ui/toggle-group.d.ts +4 -4
- package/dist/ui/toggle-group.d.ts.map +1 -1
- package/dist/ui/toggle-group.js +3 -3
- package/dist/ui/toggle-group.js.map +1 -1
- package/dist/ui/toggle.d.ts +6 -6
- package/dist/ui/toggle.d.ts.map +1 -1
- package/dist/ui/toggle.js +2 -2
- package/dist/ui/toggle.js.map +1 -1
- package/dist/ui/tooltip.d.ts +6 -6
- package/dist/ui/tooltip.d.ts.map +1 -1
- package/dist/ui/tooltip.js +1 -1
- package/dist/ui/tooltip.js.map +1 -1
- package/dist/ui/typography.d.ts +12 -12
- package/dist/ui/typography.d.ts.map +1 -1
- package/dist/ui/typography.js +11 -11
- package/dist/ui/typography.js.map +1 -1
- package/dist/ui/useColorScheme.d.ts +2 -2
- package/dist/ui/useColorScheme.d.ts.map +1 -1
- package/dist/ui/usecases/UseCaseCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts +2 -2
- package/dist/ui/usecases/UserStoryCard.d.ts.map +1 -1
- package/package.json +5 -5
package/dist/ui/toggle.js
CHANGED
|
@@ -40,7 +40,7 @@ const toggleTextVariants = cva("text-sm native:text-base text-foreground font-me
|
|
|
40
40
|
size: "default"
|
|
41
41
|
}
|
|
42
42
|
});
|
|
43
|
-
function Toggle({ className, variant, size
|
|
43
|
+
function Toggle({ className, variant, size, ...props }) {
|
|
44
44
|
return /* @__PURE__ */ jsx(TextClassContext.Provider, {
|
|
45
45
|
value: cn(toggleTextVariants({
|
|
46
46
|
variant,
|
|
@@ -55,7 +55,7 @@ function Toggle({ className, variant, size,...props }) {
|
|
|
55
55
|
})
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
function ToggleIcon({ className, icon: Icon
|
|
58
|
+
function ToggleIcon({ className, icon: Icon, ...props }) {
|
|
59
59
|
return /* @__PURE__ */ jsx(Icon, {
|
|
60
60
|
className: cn(React$1.useContext(TextClassContext), className),
|
|
61
61
|
...props
|
package/dist/ui/toggle.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","names":["React"],"sources":["../../ui/toggle.tsx"],"sourcesContent":["import * as TogglePrimitive from '@rn-primitives/toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst toggleVariants = cva(\n 'web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted active:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline:\n 'border border-input bg-transparent web:hover:bg-accent active:bg-accent active:bg-accent',\n },\n size: {\n default: 'h-10 px-3 native:h-12 native:px-[12]',\n sm: 'h-9 px-2.5 native:h-10 native:px-[9]',\n lg: 'h-11 px-5 native:h-14 native:px-6',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nconst toggleTextVariants = cva(\n 'text-sm native:text-base text-foreground font-medium',\n {\n variants: {\n variant: {\n default: '',\n outline:\n 'web:group-hover:text-accent-foreground web:group-active:text-accent-foreground',\n },\n size: {\n default: '',\n sm: '',\n lg: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: TogglePrimitive.RootProps &\n VariantProps<typeof toggleVariants> &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<TogglePrimitive.RootRef>;\n }) {\n return (\n <TextClassContext.Provider\n value={cn(\n toggleTextVariants({ variant, size }),\n props.pressed\n ? 'text-accent-foreground'\n : 'web:group-hover:text-muted-foreground',\n className\n )}\n >\n <TogglePrimitive.Root\n className={cn(\n toggleVariants({ variant, size }),\n props.disabled && 'web:pointer-events-none opacity-50',\n props.pressed && 'bg-accent',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction ToggleIcon({\n className,\n icon: Icon,\n ...props\n}: React.ComponentPropsWithoutRef<LucideIcon> & {\n icon: LucideIcon;\n}) {\n const textClass = React.useContext(TextClassContext);\n return <Icon className={cn(textClass, className)} {...props} />;\n}\n\nexport { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };\n"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,IACrB,8QACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,MAAM,qBAAqB,IACzB,wDACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,
|
|
1
|
+
{"version":3,"file":"toggle.js","names":["React"],"sources":["../../ui/toggle.tsx"],"sourcesContent":["import * as TogglePrimitive from '@rn-primitives/toggle';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react-native';\nimport * as React from 'react';\nimport { cn } from './utils';\nimport { TextClassContext } from './text';\n\nconst toggleVariants = cva(\n 'web:group web:inline-flex items-center justify-center rounded-md web:ring-offset-background web:transition-colors web:hover:bg-muted active:bg-muted web:focus-visible:outline-hidden web:focus-visible:ring-2 web:focus-visible:ring-ring web:focus-visible:ring-offset-2',\n {\n variants: {\n variant: {\n default: 'bg-transparent',\n outline:\n 'border border-input bg-transparent web:hover:bg-accent active:bg-accent active:bg-accent',\n },\n size: {\n default: 'h-10 px-3 native:h-12 native:px-[12]',\n sm: 'h-9 px-2.5 native:h-10 native:px-[9]',\n lg: 'h-11 px-5 native:h-14 native:px-6',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nconst toggleTextVariants = cva(\n 'text-sm native:text-base text-foreground font-medium',\n {\n variants: {\n variant: {\n default: '',\n outline:\n 'web:group-hover:text-accent-foreground web:group-active:text-accent-foreground',\n },\n size: {\n default: '',\n sm: '',\n lg: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'default',\n },\n }\n);\n\nfunction Toggle({\n className,\n variant,\n size,\n ...props\n}: TogglePrimitive.RootProps &\n VariantProps<typeof toggleVariants> &\n VariantProps<typeof toggleVariants> & {\n ref?: React.RefObject<TogglePrimitive.RootRef>;\n }) {\n return (\n <TextClassContext.Provider\n value={cn(\n toggleTextVariants({ variant, size }),\n props.pressed\n ? 'text-accent-foreground'\n : 'web:group-hover:text-muted-foreground',\n className\n )}\n >\n <TogglePrimitive.Root\n className={cn(\n toggleVariants({ variant, size }),\n props.disabled && 'web:pointer-events-none opacity-50',\n props.pressed && 'bg-accent',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n );\n}\n\nfunction ToggleIcon({\n className,\n icon: Icon,\n ...props\n}: React.ComponentPropsWithoutRef<LucideIcon> & {\n icon: LucideIcon;\n}) {\n const textClass = React.useContext(TextClassContext);\n return <Icon className={cn(textClass, className)} {...props} />;\n}\n\nexport { Toggle, ToggleIcon, toggleTextVariants, toggleVariants };\n"],"mappings":";;;;;;;;AAOA,MAAM,iBAAiB,IACrB,8QACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,MAAM,qBAAqB,IACzB,wDACA;CACE,UAAU;EACR,SAAS;GACP,SAAS;GACT,SACE;GACH;EACD,MAAM;GACJ,SAAS;GACT,IAAI;GACJ,IAAI;GACL;EACF;CACD,iBAAiB;EACf,SAAS;EACT,MAAM;EACP;CACF,CACF;AAED,SAAS,OAAO,EACd,WACA,SACA,MACA,GAAG,SAKA;AACH,QACE,oBAAC,iBAAiB;EAChB,OAAO,GACL,mBAAmB;GAAE;GAAS;GAAM,CAAC,EACrC,MAAM,UACF,2BACA,yCACJ,UACD;YAED,oBAAC,gBAAgB;GACf,WAAW,GACT,eAAe;IAAE;IAAS;IAAM,CAAC,EACjC,MAAM,YAAY,sCAClB,MAAM,WAAW,aACjB,UACD;GACD,GAAI;IACJ;GACwB;;AAIhC,SAAS,WAAW,EAClB,WACA,MAAM,MACN,GAAG,SAGF;AAED,QAAO,oBAAC;EAAK,WAAW,GADNA,QAAM,WAAW,iBAAiB,EACd,UAAU;EAAE,GAAI;GAAS"}
|
package/dist/ui/tooltip.d.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import * as React$1 from "react";
|
|
2
|
-
import * as
|
|
3
|
-
import * as
|
|
2
|
+
import * as react_native2 from "react-native";
|
|
3
|
+
import * as react_jsx_runtime28 from "react/jsx-runtime";
|
|
4
4
|
import * as _rn_primitives_tooltip0 from "@rn-primitives/tooltip";
|
|
5
5
|
|
|
6
6
|
//#region ui/tooltip.d.ts
|
|
7
|
-
declare const Tooltip: React$1.ForwardRefExoticComponent<
|
|
7
|
+
declare const Tooltip: React$1.ForwardRefExoticComponent<react_native2.ViewProps & {
|
|
8
8
|
asChild?: boolean;
|
|
9
9
|
} & {
|
|
10
10
|
onOpenChange?: (open: boolean) => void;
|
|
11
11
|
delayDuration?: number;
|
|
12
12
|
skipDelayDuration?: number;
|
|
13
13
|
disableHoverableContent?: boolean;
|
|
14
|
-
} & React$1.RefAttributes<
|
|
15
|
-
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<
|
|
14
|
+
} & React$1.RefAttributes<react_native2.View>>;
|
|
15
|
+
declare const TooltipTrigger: React$1.ForwardRefExoticComponent<Omit<react_native2.PressableProps & React$1.RefAttributes<react_native2.View>, "ref"> & {
|
|
16
16
|
asChild?: boolean;
|
|
17
17
|
} & {
|
|
18
18
|
onKeyDown?: (ev: React$1.KeyboardEvent) => void;
|
|
@@ -26,7 +26,7 @@ declare function TooltipContent({
|
|
|
26
26
|
}: _rn_primitives_tooltip0.ContentProps & {
|
|
27
27
|
ref?: React$1.RefObject<_rn_primitives_tooltip0.ContentRef>;
|
|
28
28
|
portalHost?: string;
|
|
29
|
-
}):
|
|
29
|
+
}): react_jsx_runtime28.JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { Tooltip, TooltipContent, TooltipTrigger };
|
|
32
32
|
//# sourceMappingURL=tooltip.d.ts.map
|
package/dist/ui/tooltip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,SAAO,OAAA,CAAA,0BAAwB,
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":[],"mappings":";;;;;;cAOM,SAAO,OAAA,CAAA,0BAAwB,aAAA,CAAxB,SAAA;;;;EAAP,aAA+B,CAAA,EAAA,MAAA;EAAA,iBAAxB,CAAA,EAAA,MAAA;EAAA,uBAAA,CAAA,EAAA,OAAA;0BAAA,aAAA,CAAA,IAAA;cAEP,cAFO,EAEO,OAAA,CAAA,yBAFP,CAEO,IAFP,CAEkC,aAAA,CAA3B,cAAA,GAAA,OAAA,CAAA,aAFP,CAEO,aAAA,CAAA,IAAA,CAFP,EAAA,KAAA,CAAA,GAAA;EAAA,OAAA,CAAA,EAAA,OAAA;AAAA,CAAA,GAEP;EAAyC,SAAA,CAAA,EAA3B,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,uBAAA,EAAA,GAAA,IAAA;CAAA,wBAAA,oCAAA,CAAA;iBAEX,cAAA,CAFW;EAAA,SAAA;EAAA,UAAA;EAAA,UAAA;EAAA,GAAA;CAAA,EAOjB,uBAAA,CAAiB,YAPA,GAAA;QAQZ,OAAA,CAAM,UAAU,uBAAA,CAAiB;;IAExC,mBAAA,CAAA,GAAA,CAAA"}
|
package/dist/ui/tooltip.js
CHANGED
|
@@ -9,7 +9,7 @@ import * as TooltipPrimitive from "@rn-primitives/tooltip";
|
|
|
9
9
|
//#region ui/tooltip.tsx
|
|
10
10
|
const Tooltip = TooltipPrimitive.Root;
|
|
11
11
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
12
|
-
function TooltipContent({ className, sideOffset = 4, portalHost
|
|
12
|
+
function TooltipContent({ className, sideOffset = 4, portalHost, ...props }) {
|
|
13
13
|
return /* @__PURE__ */ jsx(TooltipPrimitive.Portal, {
|
|
14
14
|
hostName: portalHost,
|
|
15
15
|
children: /* @__PURE__ */ jsx(TooltipPrimitive.Overlay, {
|
package/dist/ui/tooltip.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from '@rn-primitives/tooltip';\nimport * as React from 'react';\nimport { Platform, StyleSheet } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nfunction TooltipContent({\n className,\n sideOffset = 4,\n portalHost,\n ...props\n}: TooltipPrimitive.ContentProps & {\n ref?: React.RefObject<TooltipPrimitive.ContentRef>;\n portalHost?: string;\n}) {\n return (\n <TooltipPrimitive.Portal hostName={portalHost}>\n <TooltipPrimitive.Overlay\n style={Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined}\n >\n <Animated.View\n entering={Platform.select({ web: undefined, default: FadeIn })}\n exiting={Platform.select({ web: undefined, default: FadeOut })}\n >\n <TextClassContext.Provider value=\"text-sm native:text-base text-popover-foreground\">\n <TooltipPrimitive.Content\n sideOffset={sideOffset}\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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:animate-in web:fade-in-0 web:zoom-in-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n </Animated.View>\n </TooltipPrimitive.Overlay>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipTrigger };\n"],"mappings":";;;;;;;;;AAOA,MAAM,UAAU,iBAAiB;AAEjC,MAAM,iBAAiB,iBAAiB;AAExC,SAAS,eAAe,EACtB,WACA,aAAa,GACb,
|
|
1
|
+
{"version":3,"file":"tooltip.js","names":[],"sources":["../../ui/tooltip.tsx"],"sourcesContent":["import * as TooltipPrimitive from '@rn-primitives/tooltip';\nimport * as React from 'react';\nimport { Platform, StyleSheet } from 'react-native';\nimport Animated, { FadeIn, FadeOut } from 'react-native-reanimated';\nimport { TextClassContext } from './text';\nimport { cn } from './utils';\n\nconst Tooltip = TooltipPrimitive.Root;\n\nconst TooltipTrigger = TooltipPrimitive.Trigger;\n\nfunction TooltipContent({\n className,\n sideOffset = 4,\n portalHost,\n ...props\n}: TooltipPrimitive.ContentProps & {\n ref?: React.RefObject<TooltipPrimitive.ContentRef>;\n portalHost?: string;\n}) {\n return (\n <TooltipPrimitive.Portal hostName={portalHost}>\n <TooltipPrimitive.Overlay\n style={Platform.OS !== 'web' ? StyleSheet.absoluteFill : undefined}\n >\n <Animated.View\n entering={Platform.select({ web: undefined, default: FadeIn })}\n exiting={Platform.select({ web: undefined, default: FadeOut })}\n >\n <TextClassContext.Provider value=\"text-sm native:text-base text-popover-foreground\">\n <TooltipPrimitive.Content\n sideOffset={sideOffset}\n className={cn(\n 'border-border bg-popover shadow-foreground/5 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:animate-in web:fade-in-0 web:zoom-in-95 z-50 overflow-hidden rounded-md border px-3 py-1.5 shadow-md',\n className\n )}\n {...props}\n />\n </TextClassContext.Provider>\n </Animated.View>\n </TooltipPrimitive.Overlay>\n </TooltipPrimitive.Portal>\n );\n}\n\nexport { Tooltip, TooltipContent, TooltipTrigger };\n"],"mappings":";;;;;;;;;AAOA,MAAM,UAAU,iBAAiB;AAEjC,MAAM,iBAAiB,iBAAiB;AAExC,SAAS,eAAe,EACtB,WACA,aAAa,GACb,YACA,GAAG,SAIF;AACD,QACE,oBAAC,iBAAiB;EAAO,UAAU;YACjC,oBAAC,iBAAiB;GAChB,OAAO,SAAS,OAAO,QAAQ,WAAW,eAAe;aAEzD,oBAAC,SAAS;IACR,UAAU,SAAS,OAAO;KAAE,KAAK;KAAW,SAAS;KAAQ,CAAC;IAC9D,SAAS,SAAS,OAAO;KAAE,KAAK;KAAW,SAAS;KAAS,CAAC;cAE9D,oBAAC,iBAAiB;KAAS,OAAM;eAC/B,oBAAC,iBAAiB;MACJ;MACZ,WAAW,GACT,qTACA,UACD;MACD,GAAI;OACJ;MACwB;KACd;IACS;GACH"}
|
package/dist/ui/typography.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextProps } from "./text.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as react_jsx_runtime29 from "react/jsx-runtime";
|
|
3
3
|
|
|
4
4
|
//#region ui/typography.d.ts
|
|
5
5
|
type TypographyProps = TextProps & {
|
|
@@ -9,57 +9,57 @@ declare function H1({
|
|
|
9
9
|
className,
|
|
10
10
|
asChild,
|
|
11
11
|
...props
|
|
12
|
-
}: TypographyProps):
|
|
12
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
13
13
|
declare function H2({
|
|
14
14
|
className,
|
|
15
15
|
asChild,
|
|
16
16
|
...props
|
|
17
|
-
}: TypographyProps):
|
|
17
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
18
18
|
declare function H3({
|
|
19
19
|
className,
|
|
20
20
|
asChild,
|
|
21
21
|
...props
|
|
22
|
-
}: TypographyProps):
|
|
22
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
23
23
|
declare function H4({
|
|
24
24
|
className,
|
|
25
25
|
asChild,
|
|
26
26
|
...props
|
|
27
|
-
}: TypographyProps):
|
|
27
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
28
28
|
declare function P({
|
|
29
29
|
className,
|
|
30
30
|
asChild,
|
|
31
31
|
...props
|
|
32
|
-
}: TypographyProps):
|
|
32
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
33
33
|
declare function BlockQuote({
|
|
34
34
|
className,
|
|
35
35
|
asChild,
|
|
36
36
|
...props
|
|
37
|
-
}: TypographyProps):
|
|
37
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
38
38
|
declare function Code({
|
|
39
39
|
className,
|
|
40
40
|
asChild,
|
|
41
41
|
...props
|
|
42
|
-
}: TypographyProps):
|
|
42
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
43
43
|
declare function Lead({
|
|
44
44
|
className,
|
|
45
45
|
asChild,
|
|
46
46
|
...props
|
|
47
|
-
}: TypographyProps):
|
|
47
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
48
48
|
declare function Large({
|
|
49
49
|
className,
|
|
50
50
|
asChild,
|
|
51
51
|
...props
|
|
52
|
-
}: TypographyProps):
|
|
52
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
53
53
|
declare function Small({
|
|
54
54
|
className,
|
|
55
55
|
asChild,
|
|
56
56
|
...props
|
|
57
|
-
}: TypographyProps):
|
|
57
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
58
58
|
declare function Muted({
|
|
59
59
|
className,
|
|
60
60
|
asChild,
|
|
61
61
|
...props
|
|
62
|
-
}: TypographyProps):
|
|
62
|
+
}: TypographyProps): react_jsx_runtime29.JSX.Element;
|
|
63
63
|
//#endregion
|
|
64
64
|
export { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small, TypographyProps };
|
|
65
65
|
//# sourceMappingURL=typography.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../ui/typography.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,eAAA,GAAkB;;;AAA9B,iBAIS,EAAA,CAJG;EAAe,SAAA;EAAA,OAAG;EAAA,GAAS;AAAA,CAAA,EAIe,eAJf,CAAA,EAI8B,
|
|
1
|
+
{"version":3,"file":"typography.d.ts","names":[],"sources":["../../ui/typography.tsx"],"sourcesContent":[],"mappings":";;;;KAMY,eAAA,GAAkB;;;AAA9B,iBAIS,EAAA,CAJG;EAAe,SAAA;EAAA,OAAG;EAAA,GAAS;AAAA,CAAA,EAIe,eAJf,CAAA,EAI8B,mBAAA,CAAA,GAAA,CAAA,OAJ9B;AAErC,iBAiBO,EAAA,CAfE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAe2C,eAf3C,CAAA,EAe0D,mBAAA,CAAA,GAAA,CAAA,OAf1D;iBA8BF,EAAA,CA9BK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA8BwC,eA9BxC,CAAA,EA8BuD,mBAAA,CAAA,GAAA,CAAA,OA9BvD;iBA6CL,EAAA,CA7CgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA6C6B,eA7C7B,CAAA,EA6C4C,mBAAA,CAAA,GAAA,CAAA,OA7C5C;iBA4DhB,CAAA,CA5D6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4DD,eA5DC,CAAA,EA4Dc,mBAAA,CAAA,GAAA,CAAA,OA5Dd;iBAsE7C,UAAA,CAtE4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAsEP,eAtEO,CAAA,EAsEQ,mBAAA,CAAA,GAAA,CAAA,OAtER;iBAqF5D,IAAA,CArF4D;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqFb,eArFa,CAAA,EAqFE,mBAAA,CAAA,GAAA,CAAA,OArFF;AAAA,iBAoG5D,IAAA,CArFE;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAqF6C,eArF7C,CAAA,EAqF4D,mBAAA,CAAA,GAAA,CAAA,OArF5D;iBA+FF,KAAA,CA/FK;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA+F2C,eA/F3C,CAAA,EA+F0D,mBAAA,CAAA,GAAA,CAAA,OA/F1D;iBA4GL,KAAA,CA5GgB;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EA4GgC,eA5GhC,CAAA,EA4G+C,mBAAA,CAAA,GAAA,CAAA,OA5G/C;iBAyHhB,KAAA,CAzH6C;EAAA,SAAA;EAAA,OAAA;EAAA,GAAA;AAAA,CAAA,EAyHG,eAzHH,CAAA,EAyHkB,mBAAA,CAAA,GAAA,CAAA,OAzHlB"}
|
package/dist/ui/typography.js
CHANGED
|
@@ -6,7 +6,7 @@ import * as Slot from "@rn-primitives/slot";
|
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
7
7
|
|
|
8
8
|
//#region ui/typography.tsx
|
|
9
|
-
function H1({ className, asChild = false
|
|
9
|
+
function H1({ className, asChild = false, ...props }) {
|
|
10
10
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
11
11
|
role: "heading",
|
|
12
12
|
"aria-level": "1",
|
|
@@ -14,7 +14,7 @@ function H1({ className, asChild = false,...props }) {
|
|
|
14
14
|
...props
|
|
15
15
|
});
|
|
16
16
|
}
|
|
17
|
-
function H2({ className, asChild = false
|
|
17
|
+
function H2({ className, asChild = false, ...props }) {
|
|
18
18
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
19
19
|
role: "heading",
|
|
20
20
|
"aria-level": "2",
|
|
@@ -22,7 +22,7 @@ function H2({ className, asChild = false,...props }) {
|
|
|
22
22
|
...props
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
function H3({ className, asChild = false
|
|
25
|
+
function H3({ className, asChild = false, ...props }) {
|
|
26
26
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
27
27
|
role: "heading",
|
|
28
28
|
"aria-level": "3",
|
|
@@ -30,7 +30,7 @@ function H3({ className, asChild = false,...props }) {
|
|
|
30
30
|
...props
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
|
-
function H4({ className, asChild = false
|
|
33
|
+
function H4({ className, asChild = false, ...props }) {
|
|
34
34
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
35
35
|
role: "heading",
|
|
36
36
|
"aria-level": "4",
|
|
@@ -38,45 +38,45 @@ function H4({ className, asChild = false,...props }) {
|
|
|
38
38
|
...props
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
function P({ className, asChild = false
|
|
41
|
+
function P({ className, asChild = false, ...props }) {
|
|
42
42
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
43
43
|
className: cn("text-foreground web:select-text text-base", className),
|
|
44
44
|
...props
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
|
-
function BlockQuote({ className, asChild = false
|
|
47
|
+
function BlockQuote({ className, asChild = false, ...props }) {
|
|
48
48
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
49
49
|
role: Platform.OS === "web" ? "blockquote" : void 0,
|
|
50
50
|
className: cn("native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic", className),
|
|
51
51
|
...props
|
|
52
52
|
});
|
|
53
53
|
}
|
|
54
|
-
function Code({ className, asChild = false
|
|
54
|
+
function Code({ className, asChild = false, ...props }) {
|
|
55
55
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
56
56
|
role: Platform.OS === "web" ? "code" : void 0,
|
|
57
57
|
className: cn("bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold", className),
|
|
58
58
|
...props
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
function Lead({ className, asChild = false
|
|
61
|
+
function Lead({ className, asChild = false, ...props }) {
|
|
62
62
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
63
63
|
className: cn("text-muted-foreground web:select-text text-xl", className),
|
|
64
64
|
...props
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
function Large({ className, asChild = false
|
|
67
|
+
function Large({ className, asChild = false, ...props }) {
|
|
68
68
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
69
69
|
className: cn("text-foreground web:select-text text-xl font-semibold", className),
|
|
70
70
|
...props
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
|
-
function Small({ className, asChild = false
|
|
73
|
+
function Small({ className, asChild = false, ...props }) {
|
|
74
74
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
75
75
|
className: cn("text-foreground web:select-text text-sm leading-none font-medium", className),
|
|
76
76
|
...props
|
|
77
77
|
});
|
|
78
78
|
}
|
|
79
|
-
function Muted({ className, asChild = false
|
|
79
|
+
function Muted({ className, asChild = false, ...props }) {
|
|
80
80
|
return /* @__PURE__ */ jsx(asChild ? Slot.Text : Text$1, {
|
|
81
81
|
className: cn("text-muted-foreground web:select-text text-sm", className),
|
|
82
82
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typography.js","names":["Text"],"sources":["../../ui/typography.tsx"],"sourcesContent":["import * as Slot from '@rn-primitives/slot';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\nimport { Text, type TextProps } from './text';\nimport { cn } from './utils';\n\nexport type TypographyProps = TextProps & {\n asChild?: boolean;\n};\n\nfunction H1({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"1\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H2({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"2\"\n className={cn(\n 'border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H3({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"3\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H4({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"4\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction P({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-foreground web:select-text text-base', className)}\n {...props}\n />\n );\n}\n\nfunction BlockQuote({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-ignore - role of blockquote renders blockquote element on the web\n role={Platform.OS === 'web' ? 'blockquote' : undefined}\n className={cn(\n 'native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Code({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-ignore - role of code renders code element on the web\n role={Platform.OS === 'web' ? 'code' : undefined}\n className={cn(\n 'bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Lead({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-xl', className)}\n {...props}\n />\n );\n}\n\nfunction Large({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-xl font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Small({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-sm leading-none font-medium',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Muted({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-sm', className)}\n {...props}\n />\n );\n}\n\nexport { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };\n"],"mappings":";;;;;;;;AAUA,SAAS,GAAG,EAAE,WAAW,UAAU,
|
|
1
|
+
{"version":3,"file":"typography.js","names":["Text"],"sources":["../../ui/typography.tsx"],"sourcesContent":["import * as Slot from '@rn-primitives/slot';\nimport * as React from 'react';\nimport { Platform } from 'react-native';\nimport { Text, type TextProps } from './text';\nimport { cn } from './utils';\n\nexport type TypographyProps = TextProps & {\n asChild?: boolean;\n};\n\nfunction H1({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"1\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-4xl font-extrabold tracking-tight lg:text-5xl',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H2({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"2\"\n className={cn(\n 'border-border text-foreground web:select-text web:scroll-m-20 border-b pb-2 text-3xl font-semibold tracking-tight first:mt-0',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H3({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"3\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-2xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction H4({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n role=\"heading\"\n aria-level=\"4\"\n className={cn(\n 'text-foreground web:select-text web:scroll-m-20 text-xl font-semibold tracking-tight',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction P({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-foreground web:select-text text-base', className)}\n {...props}\n />\n );\n}\n\nfunction BlockQuote({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-ignore - role of blockquote renders blockquote element on the web\n role={Platform.OS === 'web' ? 'blockquote' : undefined}\n className={cn(\n 'native:mt-4 native:pl-3 border-border text-foreground web:select-text mt-6 border-l-2 pl-6 text-base italic',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Code({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n // @ts-ignore - role of code renders code element on the web\n role={Platform.OS === 'web' ? 'code' : undefined}\n className={cn(\n 'bg-muted text-foreground web:select-text relative rounded-md px-[0.3rem] py-[0.2rem] text-sm font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Lead({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-xl', className)}\n {...props}\n />\n );\n}\n\nfunction Large({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-xl font-semibold',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Small({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn(\n 'text-foreground web:select-text text-sm leading-none font-medium',\n className\n )}\n {...props}\n />\n );\n}\n\nfunction Muted({ className, asChild = false, ...props }: TypographyProps) {\n const Component = asChild ? Slot.Text : Text;\n return (\n <Component\n className={cn('text-muted-foreground web:select-text text-sm', className)}\n {...props}\n />\n );\n}\n\nexport { BlockQuote, Code, H1, H2, H3, H4, Large, Lead, Muted, P, Small };\n"],"mappings":";;;;;;;;AAUA,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,sGACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,gIACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,yFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,GAAG,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAErE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,MAAK;EACL,cAAW;EACX,WAAW,GACT,wFACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,EAAE,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEpE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,6CAA6C,UAAU;EACrE,GAAI;GACJ;;AAIN,SAAS,WAAW,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAE7E,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAIpC,MAAM,SAAS,OAAO,QAAQ,eAAe;EAC7C,WAAW,GACT,+GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,KAAK,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEvE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAIpC,MAAM,SAAS,OAAO,QAAQ,SAAS;EACvC,WAAW,GACT,8GACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,KAAK,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAEvE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,iDAAiD,UAAU;EACzE,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GACT,yDACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GACT,oEACA,UACD;EACD,GAAI;GACJ;;AAIN,SAAS,MAAM,EAAE,WAAW,UAAU,OAAO,GAAG,SAA0B;AAExE,QACE,oBAFgB,UAAU,KAAK,OAAOA;EAGpC,WAAW,GAAG,iDAAiD,UAAU;EACzE,GAAI;GACJ"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_native6 from "react-native";
|
|
2
2
|
|
|
3
3
|
//#region ui/useColorScheme.d.ts
|
|
4
4
|
declare function useColorScheme(): {
|
|
5
5
|
colorScheme: "light" | "dark";
|
|
6
6
|
isDarkColorScheme: boolean;
|
|
7
|
-
setColorScheme: (scheme:
|
|
7
|
+
setColorScheme: (scheme: react_native6.ColorSchemeName) => void;
|
|
8
8
|
toggleColorScheme: () => void;
|
|
9
9
|
};
|
|
10
10
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColorScheme.d.ts","names":[],"sources":["../../ui/useColorScheme.tsx"],"sourcesContent":[],"mappings":";;;iBAIgB,cAAA,CAAA;;;EAAA,cAAA,EAAA,CAAc,MAAA,EAAA,
|
|
1
|
+
{"version":3,"file":"useColorScheme.d.ts","names":[],"sources":["../../ui/useColorScheme.tsx"],"sourcesContent":[],"mappings":";;;iBAIgB,cAAA,CAAA;;;EAAA,cAAA,EAAA,CAAc,MAAA,EAAA,aAAA,CAAA,eAAA,EAAA,GAAA,IAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime42 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/usecases/UseCaseCard.d.ts
|
|
4
4
|
declare function UseCaseCard({
|
|
@@ -13,7 +13,7 @@ declare function UseCaseCard({
|
|
|
13
13
|
ctaHref?: string;
|
|
14
14
|
ctaLabel?: string;
|
|
15
15
|
onCtaClick?: () => void;
|
|
16
|
-
}):
|
|
16
|
+
}): react_jsx_runtime42.JSX.Element;
|
|
17
17
|
//#endregion
|
|
18
18
|
export { UseCaseCard };
|
|
19
19
|
//# sourceMappingURL=UseCaseCard.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as react_jsx_runtime138 from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region ui/usecases/UserStoryCard.d.ts
|
|
4
4
|
declare function UserStoryCard({
|
|
@@ -9,7 +9,7 @@ declare function UserStoryCard({
|
|
|
9
9
|
title: string;
|
|
10
10
|
body?: string;
|
|
11
11
|
outcome?: string;
|
|
12
|
-
}):
|
|
12
|
+
}): react_jsx_runtime138.JSX.Element;
|
|
13
13
|
//#endregion
|
|
14
14
|
export { UserStoryCard };
|
|
15
15
|
//# sourceMappingURL=UserStoryCard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryCard.d.ts","names":[],"sources":["../../../ui/usecases/UserStoryCard.tsx"],"sourcesContent":[],"mappings":";;;iBAGgB,aAAA;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAa;CAC3B,CAAA,EAOD,
|
|
1
|
+
{"version":3,"file":"UserStoryCard.d.ts","names":[],"sources":["../../../ui/usecases/UserStoryCard.tsx"],"sourcesContent":[],"mappings":";;;iBAGgB,aAAA;;;;;;;EAAA,OAAA,CAAA,EAAA,MAAa;CAC3B,CAAA,EAOD,oBAAA,CAAA,GAAA,CAAA,OAPC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lssm/lib.ui-kit",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.9.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -69,8 +69,8 @@
|
|
|
69
69
|
"expo-web-browser": "^14.2.0",
|
|
70
70
|
"lucide-react-native": "^0.511.0",
|
|
71
71
|
"nativewind": "5.0.0-preview.2",
|
|
72
|
-
"react": "19.
|
|
73
|
-
"react-dom": "19.
|
|
72
|
+
"react": "19.2.0",
|
|
73
|
+
"react-dom": "19.2.0",
|
|
74
74
|
"react-native": "0.81.4",
|
|
75
75
|
"react-native-device-info": "^14.1.1",
|
|
76
76
|
"react-native-localize": "^3.5.2",
|
|
@@ -86,8 +86,8 @@
|
|
|
86
86
|
},
|
|
87
87
|
"devDependencies": {
|
|
88
88
|
"@babel/core": "^7.28.4",
|
|
89
|
-
"@lssm/tool.tsdown": "
|
|
90
|
-
"tsdown": "^0.
|
|
89
|
+
"@lssm/tool.tsdown": "workspace:*",
|
|
90
|
+
"tsdown": "^0.16.6",
|
|
91
91
|
"typescript": "^5.9.3"
|
|
92
92
|
},
|
|
93
93
|
"exports": {
|