@admin-layout/tailwind-ui 12.0.16-alpha.93 → 12.2.1-alpha.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/lib/components/Button/Button.d.ts +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +6 -7
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/DatePicker/DatePicker.js +139 -157
- package/lib/components/DatePicker/DatePicker.js.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts +2 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ApplicationErrorHandler.js +2 -2
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/ErrorBoundary.js +28 -35
- package/lib/components/ErrorHandlers/ErrorBoundary.js.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts +2 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.d.ts.map +1 -1
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js +15 -20
- package/lib/components/ErrorHandlers/LayoutErrorBoundary.js.map +1 -1
- package/lib/components/ErrorPages/403.d.ts +2 -1
- package/lib/components/ErrorPages/403.d.ts.map +1 -1
- package/lib/components/ErrorPages/403.js +18 -26
- package/lib/components/ErrorPages/403.js.map +1 -1
- package/lib/components/ErrorPages/404.d.ts +2 -1
- package/lib/components/ErrorPages/404.d.ts.map +1 -1
- package/lib/components/ErrorPages/404.js +18 -26
- package/lib/components/ErrorPages/404.js.map +1 -1
- package/lib/components/ErrorPages/500.d.ts +2 -1
- package/lib/components/ErrorPages/500.d.ts.map +1 -1
- package/lib/components/ErrorPages/500.js +18 -26
- package/lib/components/ErrorPages/500.js.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts +2 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.d.ts.map +1 -1
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js +19 -24
- package/lib/components/LanguageMenuDropdown/LanguageMenuDropdown.js.map +1 -1
- package/lib/components/OTP/OTPInput.js +30 -32
- package/lib/components/OTP/OTPInput.js.map +1 -1
- package/lib/components/OTP/OTPVerification.js +55 -75
- package/lib/components/OTP/OTPVerification.js.map +1 -1
- package/lib/components/OTP/SingleInput.js +2 -2
- package/lib/components/OTP/SingleInput.js.map +1 -1
- package/lib/components/PageContainer/PageContainer.js +22 -29
- package/lib/components/PageContainer/PageContainer.js.map +1 -1
- package/lib/components/PageLoading/index.js +7 -8
- package/lib/components/PageLoading/index.js.map +1 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts +2 -1
- package/lib/components/RJSFPreview/PreviewAsyncDropdown.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.d.ts +2 -1
- package/lib/components/ReactTable/Table.d.ts.map +1 -1
- package/lib/components/ReactTable/Table.js +71 -92
- package/lib/components/ReactTable/Table.js.map +1 -1
- package/lib/components/ReactTable/TableFilters.d.ts +3 -2
- package/lib/components/ReactTable/TableFilters.d.ts.map +1 -1
- package/lib/components/ReactTable/TableFilters.js +34 -40
- package/lib/components/ReactTable/TableFilters.js.map +1 -1
- package/lib/components/Search/SearchInput.d.ts +2 -1
- package/lib/components/Search/SearchInput.d.ts.map +1 -1
- package/lib/components/Search/SearchInput.js +13 -14
- package/lib/components/Search/SearchInput.js.map +1 -1
- package/lib/components/Select/Select.d.ts +6 -6
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +45 -60
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/Spin/index.js +11 -14
- package/lib/components/Spin/index.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeProvider.js +4 -5
- package/lib/components/ThemeProvider/ThemeProvider.js.map +1 -1
- package/lib/components/ThemeProvider/ThemeToggle.js +24 -27
- package/lib/components/ThemeProvider/ThemeToggle.js.map +1 -1
- package/lib/hooks/useToast.d.ts +1 -1
- package/lib/hooks/useToast.d.ts.map +1 -1
- package/lib/hooks/useToast.js +37 -46
- package/lib/hooks/useToast.js.map +1 -1
- package/lib/shardui/accordion.js +16 -20
- package/lib/shardui/accordion.js.map +1 -1
- package/lib/shardui/alert-dialog.d.ts +2 -2
- package/lib/shardui/alert-dialog.js +13 -15
- package/lib/shardui/alert-dialog.js.map +1 -1
- package/lib/shardui/alert.d.ts +1 -1
- package/lib/shardui/alert.d.ts.map +1 -1
- package/lib/shardui/alert.js +4 -4
- package/lib/shardui/alert.js.map +1 -1
- package/lib/shardui/avatar.js +4 -4
- package/lib/shardui/avatar.js.map +1 -1
- package/lib/shardui/badge.d.ts +2 -2
- package/lib/shardui/badge.d.ts.map +1 -1
- package/lib/shardui/badge.js +2 -2
- package/lib/shardui/badge.js.map +1 -1
- package/lib/shardui/breadcrumb.d.ts +2 -2
- package/lib/shardui/breadcrumb.js +16 -19
- package/lib/shardui/breadcrumb.js.map +1 -1
- package/lib/shardui/button.d.ts +1 -1
- package/lib/shardui/button.d.ts.map +1 -1
- package/lib/shardui/button.js +2 -2
- package/lib/shardui/button.js.map +1 -1
- package/lib/shardui/calendar.d.ts +1 -1
- package/lib/shardui/calendar.d.ts.map +1 -1
- package/lib/shardui/calendar.js +4 -4
- package/lib/shardui/card.js +7 -7
- package/lib/shardui/card.js.map +1 -1
- package/lib/shardui/carousel.js +33 -40
- package/lib/shardui/carousel.js.map +1 -1
- package/lib/shardui/chart.d.ts +1 -1
- package/lib/shardui/chart.d.ts.map +1 -1
- package/lib/shardui/chart.js +66 -81
- package/lib/shardui/chart.js.map +1 -1
- package/lib/shardui/checkbox.js +8 -10
- package/lib/shardui/checkbox.js.map +1 -1
- package/lib/shardui/command.d.ts +2 -2
- package/lib/shardui/command.d.ts.map +1 -1
- package/lib/shardui/command.js +24 -28
- package/lib/shardui/command.js.map +1 -1
- package/lib/shardui/context-menu.d.ts +1 -1
- package/lib/shardui/context-menu.js +30 -41
- package/lib/shardui/context-menu.js.map +1 -1
- package/lib/shardui/dialog.d.ts +2 -2
- package/lib/shardui/dialog.js +17 -22
- package/lib/shardui/dialog.js.map +1 -1
- package/lib/shardui/drawer.d.ts +3 -3
- package/lib/shardui/drawer.js +14 -17
- package/lib/shardui/drawer.js.map +1 -1
- package/lib/shardui/dropdown-menu.d.ts +1 -1
- package/lib/shardui/dropdown-menu.js +31 -42
- package/lib/shardui/dropdown-menu.js.map +1 -1
- package/lib/shardui/form.d.ts +1 -1
- package/lib/shardui/form.d.ts.map +1 -1
- package/lib/shardui/form.js +19 -22
- package/lib/shardui/form.js.map +1 -1
- package/lib/shardui/hover-card.js +2 -2
- package/lib/shardui/hover-card.js.map +1 -1
- package/lib/shardui/input-otp.js +13 -16
- package/lib/shardui/input-otp.js.map +1 -1
- package/lib/shardui/input.js +2 -2
- package/lib/shardui/input.js.map +1 -1
- package/lib/shardui/label.d.ts +1 -1
- package/lib/shardui/label.d.ts.map +1 -1
- package/lib/shardui/label.js +2 -2
- package/lib/shardui/label.js.map +1 -1
- package/lib/shardui/menubar.d.ts +1 -1
- package/lib/shardui/menubar.js +35 -46
- package/lib/shardui/menubar.js.map +1 -1
- package/lib/shardui/navigation-menu.d.ts +1 -1
- package/lib/shardui/navigation-menu.d.ts.map +1 -1
- package/lib/shardui/navigation-menu.js +24 -28
- package/lib/shardui/navigation-menu.js.map +1 -1
- package/lib/shardui/pagination.d.ts +5 -5
- package/lib/shardui/pagination.js +22 -30
- package/lib/shardui/pagination.js.map +1 -1
- package/lib/shardui/popover.js +8 -10
- package/lib/shardui/popover.js.map +1 -1
- package/lib/shardui/progress.js +9 -10
- package/lib/shardui/progress.js.map +1 -1
- package/lib/shardui/radio-group.js +9 -11
- package/lib/shardui/radio-group.js.map +1 -1
- package/lib/shardui/resizable.d.ts +5 -4
- package/lib/shardui/resizable.d.ts.map +1 -1
- package/lib/shardui/resizable.js +9 -11
- package/lib/shardui/resizable.js.map +1 -1
- package/lib/shardui/scroll-area.js +11 -14
- package/lib/shardui/scroll-area.js.map +1 -1
- package/lib/shardui/select.js +35 -49
- package/lib/shardui/select.js.map +1 -1
- package/lib/shardui/separator.js +2 -2
- package/lib/shardui/separator.js.map +1 -1
- package/lib/shardui/sheet.d.ts +3 -3
- package/lib/shardui/sheet.d.ts.map +1 -1
- package/lib/shardui/sheet.js +19 -24
- package/lib/shardui/sheet.js.map +1 -1
- package/lib/shardui/sidebar.d.ts +1 -1
- package/lib/shardui/sidebar.d.ts.map +1 -1
- package/lib/shardui/sidebar.js +88 -104
- package/lib/shardui/sidebar.js.map +1 -1
- package/lib/shardui/skeleton.d.ts +2 -1
- package/lib/shardui/skeleton.d.ts.map +1 -1
- package/lib/shardui/skeleton.js +2 -2
- package/lib/shardui/skeleton.js.map +1 -1
- package/lib/shardui/slider.js +10 -12
- package/lib/shardui/slider.js.map +1 -1
- package/lib/shardui/sonner.d.ts +2 -1
- package/lib/shardui/sonner.d.ts.map +1 -1
- package/lib/shardui/sonner.js +2 -2
- package/lib/shardui/sonner.js.map +1 -1
- package/lib/shardui/switch.js +6 -7
- package/lib/shardui/switch.js.map +1 -1
- package/lib/shardui/table.js +15 -16
- package/lib/shardui/table.js.map +1 -1
- package/lib/shardui/tabs.js +4 -4
- package/lib/shardui/tabs.js.map +1 -1
- package/lib/shardui/textarea.js +2 -2
- package/lib/shardui/textarea.js.map +1 -1
- package/lib/shardui/toast.d.ts +1 -1
- package/lib/shardui/toast.d.ts.map +1 -1
- package/lib/shardui/toast.js +11 -12
- package/lib/shardui/toast.js.map +1 -1
- package/lib/shardui/toaster.d.ts +2 -1
- package/lib/shardui/toaster.d.ts.map +1 -1
- package/lib/shardui/toaster.js +14 -21
- package/lib/shardui/toaster.js.map +1 -1
- package/lib/shardui/toggle-group.d.ts +2 -2
- package/lib/shardui/toggle-group.d.ts.map +1 -1
- package/lib/shardui/toggle-group.js +12 -15
- package/lib/shardui/toggle-group.js.map +1 -1
- package/lib/shardui/toggle.d.ts +2 -2
- package/lib/shardui/toggle.d.ts.map +1 -1
- package/lib/shardui/toggle.js +2 -2
- package/lib/shardui/toggle.js.map +1 -1
- package/lib/shardui/tooltip.js +2 -2
- package/lib/shardui/tooltip.js.map +1 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sonner.js","sources":["../../src/shardui/sonner.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sonner.js","sources":["../../src/shardui/sonner.tsx"],"sourcesContent":[null],"names":[],"mappings":"4IAMA,MAAA,UAAM,CAAA;AAoBN,EAAA,GAAA;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/switch.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as SwitchPrimitives from'@radix-ui/react-switch';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Switch = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}, ref) =>
|
|
4
|
+
}, ref) => React.createElement(SwitchPrimitives.Root, {
|
|
5
5
|
className: cn('peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input', className),
|
|
6
6
|
...props,
|
|
7
|
-
ref: ref
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}));
|
|
7
|
+
ref: ref
|
|
8
|
+
}, React.createElement(SwitchPrimitives.Thumb, {
|
|
9
|
+
className: cn('pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0')
|
|
10
|
+
})));
|
|
12
11
|
Switch.displayName = SwitchPrimitives.Root.displayName;export{Switch};//# sourceMappingURL=switch.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"switch.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"switch.js","sources":["../../src/shardui/switch.tsx"],"sourcesContent":[null],"names":[],"mappings":"2LA0BA,MAAA,MAAS,GAAM,KAAG,CAAA,UAAA,CAAA,CAAA;;;;;;;;;;"}
|
package/lib/shardui/table.js
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Table = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
|
-
}, ref) =>
|
|
5
|
-
className: "relative w-full overflow-auto"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}));
|
|
4
|
+
}, ref) => React.createElement("div", {
|
|
5
|
+
className: "relative w-full overflow-auto"
|
|
6
|
+
}, React.createElement("table", {
|
|
7
|
+
ref: ref,
|
|
8
|
+
className: cn('w-full caption-bottom text-sm', className),
|
|
9
|
+
...props
|
|
10
|
+
})));
|
|
12
11
|
Table.displayName = 'Table';
|
|
13
12
|
const TableHeader = React.forwardRef(({
|
|
14
13
|
className,
|
|
15
14
|
...props
|
|
16
|
-
}, ref) =>
|
|
15
|
+
}, ref) => React.createElement("thead", {
|
|
17
16
|
ref: ref,
|
|
18
17
|
className: cn('[&_tr]:border-b', className),
|
|
19
18
|
...props
|
|
@@ -22,7 +21,7 @@ TableHeader.displayName = 'TableHeader';
|
|
|
22
21
|
const TableBody = React.forwardRef(({
|
|
23
22
|
className,
|
|
24
23
|
...props
|
|
25
|
-
}, ref) =>
|
|
24
|
+
}, ref) => React.createElement("tbody", {
|
|
26
25
|
ref: ref,
|
|
27
26
|
className: cn('[&_tr:last-child]:border-0', className),
|
|
28
27
|
...props
|
|
@@ -31,7 +30,7 @@ TableBody.displayName = 'TableBody';
|
|
|
31
30
|
const TableFooter = React.forwardRef(({
|
|
32
31
|
className,
|
|
33
32
|
...props
|
|
34
|
-
}, ref) =>
|
|
33
|
+
}, ref) => React.createElement("tfoot", {
|
|
35
34
|
ref: ref,
|
|
36
35
|
className: cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', className),
|
|
37
36
|
...props
|
|
@@ -40,7 +39,7 @@ TableFooter.displayName = 'TableFooter';
|
|
|
40
39
|
const TableRow = React.forwardRef(({
|
|
41
40
|
className,
|
|
42
41
|
...props
|
|
43
|
-
}, ref) =>
|
|
42
|
+
}, ref) => React.createElement("tr", {
|
|
44
43
|
ref: ref,
|
|
45
44
|
className: cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', className),
|
|
46
45
|
...props
|
|
@@ -49,7 +48,7 @@ TableRow.displayName = 'TableRow';
|
|
|
49
48
|
const TableHead = React.forwardRef(({
|
|
50
49
|
className,
|
|
51
50
|
...props
|
|
52
|
-
}, ref) =>
|
|
51
|
+
}, ref) => React.createElement("th", {
|
|
53
52
|
ref: ref,
|
|
54
53
|
className: cn('h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0', className),
|
|
55
54
|
...props
|
|
@@ -58,7 +57,7 @@ TableHead.displayName = 'TableHead';
|
|
|
58
57
|
const TableCell = React.forwardRef(({
|
|
59
58
|
className,
|
|
60
59
|
...props
|
|
61
|
-
}, ref) =>
|
|
60
|
+
}, ref) => React.createElement("td", {
|
|
62
61
|
ref: ref,
|
|
63
62
|
className: cn('p-4 align-middle [&:has([role=checkbox])]:pr-0', className),
|
|
64
63
|
...props
|
|
@@ -67,7 +66,7 @@ TableCell.displayName = 'TableCell';
|
|
|
67
66
|
const TableCaption = React.forwardRef(({
|
|
68
67
|
className,
|
|
69
68
|
...props
|
|
70
|
-
}, ref) =>
|
|
69
|
+
}, ref) => React.createElement("caption", {
|
|
71
70
|
ref: ref,
|
|
72
71
|
className: cn('mt-4 text-sm text-muted-foreground', className),
|
|
73
72
|
...props
|
package/lib/shardui/table.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.js","sources":["../../src/shardui/table.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"table.js","sources":["../../src/shardui/table.tsx"],"sourcesContent":[null],"names":[],"mappings":"mIAaA,MAAA,KAAA,GAAM,KAAA,CAAA,UAAW,CAAA,CAAA;AAKjB,EAAA,SAAA;AAOA,EAAA,GAAA;AAWA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAQ,CAAA,KAAA,EAAA;AAWd,EAAA,SAAA,EAAA;AAcA,CAAA,EAAA,KAAA,CAAA,aAAM,CAAS,OAAA,EAAA;AAOf,EAAA,GAAA,EAAA,GAAA;AAOA,EAAA,SAAS,EAAA,EAAK,CAAE,+BAAwB,EAAA,SAAa,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/tabs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as TabsPrimitive from'@radix-ui/react-tabs';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Tabs = TabsPrimitive.Root;
|
|
2
2
|
const TabsList = React.forwardRef(({
|
|
3
3
|
className,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(TabsPrimitive.List, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('inline-flex h-10 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground', className),
|
|
8
8
|
...props
|
|
@@ -11,7 +11,7 @@ TabsList.displayName = TabsPrimitive.List.displayName;
|
|
|
11
11
|
const TabsTrigger = React.forwardRef(({
|
|
12
12
|
className,
|
|
13
13
|
...props
|
|
14
|
-
}, ref) =>
|
|
14
|
+
}, ref) => React.createElement(TabsPrimitive.Trigger, {
|
|
15
15
|
ref: ref,
|
|
16
16
|
className: cn('inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1.5 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm', className),
|
|
17
17
|
...props
|
|
@@ -20,7 +20,7 @@ TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
|
|
|
20
20
|
const TabsContent = React.forwardRef(({
|
|
21
21
|
className,
|
|
22
22
|
...props
|
|
23
|
-
}, ref) =>
|
|
23
|
+
}, ref) => React.createElement(TabsPrimitive.Content, {
|
|
24
24
|
ref: ref,
|
|
25
25
|
className: cn('mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2', className),
|
|
26
26
|
...props
|
package/lib/shardui/tabs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tabs.js","sources":["../../src/shardui/tabs.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tabs.js","sources":["../../src/shardui/tabs.tsx"],"sourcesContent":[null],"names":[],"mappings":"sLAOA,MAAA,IAAA,GAAA,aAAc,CAAA;AAed,MAAA,QAAM,GAAA,KAAA,CAAA,UAAW,CAAA,CAAA;AAejB,EAAA,SAAA;AAeA,EAAA,GAAA;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/textarea.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const Textarea = React.forwardRef(({
|
|
2
2
|
className,
|
|
3
3
|
...props
|
|
4
4
|
}, ref) => {
|
|
5
|
-
return
|
|
5
|
+
return React.createElement("textarea", {
|
|
6
6
|
className: cn('flex min-h-[80px] w-full rounded-md border border-input bg-background px-3 py-2 text-sm ring-offset-background placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50', className),
|
|
7
7
|
ref: ref,
|
|
8
8
|
...props
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"textarea.js","sources":["../../src/shardui/textarea.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"textarea.js","sources":["../../src/shardui/textarea.tsx"],"sourcesContent":[null],"names":[],"mappings":"mIAI2F,MAAA,QAAA,GAAA,KAAA,CAAA,UAAA,CAAA,CAAA;AAE3F,EAAA,SAAA;AAcA,EAAA,GAAA;;;;;;;;"}
|
package/lib/shardui/toast.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ declare const ToastProvider: React.FC<ToastPrimitives.ToastProviderProps>;
|
|
|
5
5
|
declare const ToastViewport: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastViewportProps & React.RefAttributes<HTMLOListElement>, "ref"> & React.RefAttributes<HTMLOListElement>>;
|
|
6
6
|
declare const Toast: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastProps & React.RefAttributes<HTMLLIElement>, "ref"> & VariantProps<(props?: {
|
|
7
7
|
variant?: "default" | "destructive";
|
|
8
|
-
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
8
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLLIElement>>;
|
|
9
9
|
declare const ToastAction: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastActionProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
10
10
|
declare const ToastClose: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastCloseProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
declare const ToastTitle: React.ForwardRefExoticComponent<Omit<ToastPrimitives.ToastTitleProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/shardui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAkBH,QAAA,MAAM,KAAK;;
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/shardui/toast.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAKlE,QAAA,MAAM,aAAa,8CAA2B,CAAC;AAE/C,QAAA,MAAM,aAAa,kKAYjB,CAAC;AAkBH,QAAA,MAAM,KAAK;;6GAKT,CAAC;AAGH,QAAA,MAAM,WAAW,kKAYf,CAAC;AAGH,QAAA,MAAM,UAAU,iKAed,CAAC;AAGH,QAAA,MAAM,UAAU,2JAKd,CAAC;AAGH,QAAA,MAAM,gBAAgB,iKAKpB,CAAC;AAGH,KAAK,UAAU,GAAG,KAAK,CAAC,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE/D,KAAK,kBAAkB,GAAG,KAAK,CAAC,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AAEjE,OAAO,EACH,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,WAAW,GACd,CAAC"}
|
package/lib/shardui/toast.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as ToastPrimitives from'@radix-ui/react-toast';import {cva}from'class-variance-authority';import {X}from'lucide-react';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const ToastProvider = ToastPrimitives.Provider;
|
|
2
2
|
const ToastViewport = React.forwardRef(({
|
|
3
3
|
className,
|
|
4
4
|
...props
|
|
5
|
-
}, ref) =>
|
|
5
|
+
}, ref) => React.createElement(ToastPrimitives.Viewport, {
|
|
6
6
|
ref: ref,
|
|
7
7
|
className: cn('fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]', className),
|
|
8
8
|
...props
|
|
@@ -24,7 +24,7 @@ const Toast = React.forwardRef(({
|
|
|
24
24
|
variant,
|
|
25
25
|
...props
|
|
26
26
|
}, ref) => {
|
|
27
|
-
return
|
|
27
|
+
return React.createElement(ToastPrimitives.Root, {
|
|
28
28
|
ref: ref,
|
|
29
29
|
className: cn(toastVariants({
|
|
30
30
|
variant
|
|
@@ -36,7 +36,7 @@ Toast.displayName = ToastPrimitives.Root.displayName;
|
|
|
36
36
|
const ToastAction = React.forwardRef(({
|
|
37
37
|
className,
|
|
38
38
|
...props
|
|
39
|
-
}, ref) =>
|
|
39
|
+
}, ref) => React.createElement(ToastPrimitives.Action, {
|
|
40
40
|
ref: ref,
|
|
41
41
|
className: cn('inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive', className),
|
|
42
42
|
...props
|
|
@@ -45,20 +45,19 @@ ToastAction.displayName = ToastPrimitives.Action.displayName;
|
|
|
45
45
|
const ToastClose = React.forwardRef(({
|
|
46
46
|
className,
|
|
47
47
|
...props
|
|
48
|
-
}, ref) =>
|
|
48
|
+
}, ref) => React.createElement(ToastPrimitives.Close, {
|
|
49
49
|
ref: ref,
|
|
50
50
|
className: cn('absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600', className),
|
|
51
51
|
"toast-close": "",
|
|
52
|
-
...props
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}));
|
|
52
|
+
...props
|
|
53
|
+
}, React.createElement(X, {
|
|
54
|
+
className: "h-4 w-4"
|
|
55
|
+
})));
|
|
57
56
|
ToastClose.displayName = ToastPrimitives.Close.displayName;
|
|
58
57
|
const ToastTitle = React.forwardRef(({
|
|
59
58
|
className,
|
|
60
59
|
...props
|
|
61
|
-
}, ref) =>
|
|
60
|
+
}, ref) => React.createElement(ToastPrimitives.Title, {
|
|
62
61
|
ref: ref,
|
|
63
62
|
className: cn('text-sm font-semibold', className),
|
|
64
63
|
...props
|
|
@@ -67,7 +66,7 @@ ToastTitle.displayName = ToastPrimitives.Title.displayName;
|
|
|
67
66
|
const ToastDescription = React.forwardRef(({
|
|
68
67
|
className,
|
|
69
68
|
...props
|
|
70
|
-
}, ref) =>
|
|
69
|
+
}, ref) => React.createElement(ToastPrimitives.Description, {
|
|
71
70
|
ref: ref,
|
|
72
71
|
className: cn('text-sm opacity-90', className),
|
|
73
72
|
...props
|
package/lib/shardui/toast.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.js","sources":["../../src/shardui/toast.tsx"],"sourcesContent":[null],"names":[
|
|
1
|
+
{"version":3,"file":"toast.js","sources":["../../src/shardui/toast.tsx"],"sourcesContent":[null],"names":[],"mappings":"iQAuCA,MAAA,aAAW,GAAA,eAAA,CAAA;;;AAQX,EAAA,GAAA;AAeA,CAAA,EAAA,GAAA,KAAA,KAAM,CAAA,aAAU,CAAA,eAAA,CAAA,QAAA,EAAA;AAkBhB,EAAA,GAAA,EAAA,GAAA;AAQA,EAAA,SAAA,EAAA,EAAM,CAAA,mIAAgB,EAAA,SAAA,CAAA;AAQtB,EAAA,GAAK;AAEL,CAAA,CAAA;AAEA,cACS,WAAU,kBACV,CAAA,oBACQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/toaster.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/shardui/toaster.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toaster.d.ts","sourceRoot":"","sources":["../../src/shardui/toaster.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,wBAAgB,OAAO,sBAoBtB"}
|
package/lib/shardui/toaster.js
CHANGED
|
@@ -1,26 +1,19 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import'../utils/isBrowser/index.js';import'clsx';import'tailwind-merge';import'fast-deep-equal/react.js';import {useToast}from'../utils/hooks/use-toast.js';import {ToastProvider,Toast,ToastTitle,ToastDescription,ToastClose,ToastViewport}from'./toast.js';function Toaster() {
|
|
2
2
|
const {
|
|
3
3
|
toasts
|
|
4
4
|
} = useToast();
|
|
5
|
-
return
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
return React.createElement(ToastProvider, null, toasts.map(function ({
|
|
6
|
+
id,
|
|
7
|
+
title,
|
|
8
|
+
description,
|
|
9
|
+
action,
|
|
10
|
+
...props
|
|
11
|
+
}) {
|
|
12
|
+
return React.createElement(Toast, {
|
|
13
|
+
key: id,
|
|
11
14
|
...props
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
className: "grid gap-1",
|
|
17
|
-
children: [title && jsx(ToastTitle, {
|
|
18
|
-
children: title
|
|
19
|
-
}), description && jsx(ToastDescription, {
|
|
20
|
-
children: description
|
|
21
|
-
})]
|
|
22
|
-
}), action, jsx(ToastClose, {})]
|
|
23
|
-
}, id);
|
|
24
|
-
}), jsx(ToastViewport, {})]
|
|
25
|
-
});
|
|
15
|
+
}, React.createElement("div", {
|
|
16
|
+
className: "grid gap-1"
|
|
17
|
+
}, title && React.createElement(ToastTitle, null, title), description && React.createElement(ToastDescription, null, description)), action, React.createElement(ToastClose, null));
|
|
18
|
+
}), React.createElement(ToastViewport, null));
|
|
26
19
|
}export{Toaster};//# sourceMappingURL=toaster.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toaster.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toaster.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,10 +4,10 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
declare const ToggleGroup: React.ForwardRefExoticComponent<((Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & VariantProps<(props?: {
|
|
5
5
|
variant?: "default" | "outline";
|
|
6
6
|
size?: "default" | "sm" | "lg";
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string>) & React.RefAttributes<HTMLDivElement>>;
|
|
8
8
|
declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
9
|
variant?: "default" | "outline";
|
|
10
10
|
size?: "default" | "sm" | "lg";
|
|
11
|
-
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { ToggleGroup, ToggleGroupItem };
|
|
13
13
|
//# sourceMappingURL=toggle-group.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAU7D,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"toggle-group.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle-group.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,oBAAoB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAU7D,QAAA,MAAM,WAAW;;;+GAOf,CAAC;AAIH,QAAA,MAAM,eAAe;;;iHAqBnB,CAAC;AAIH,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as ToggleGroupPrimitive from'@radix-ui/react-toggle-group';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';import {toggleVariants}from'./toggle.js';const ToggleGroupContext = React.createContext({
|
|
2
2
|
size: 'default',
|
|
3
3
|
variant: 'default'
|
|
4
4
|
});
|
|
@@ -8,18 +8,16 @@ const ToggleGroup = React.forwardRef(({
|
|
|
8
8
|
size,
|
|
9
9
|
children,
|
|
10
10
|
...props
|
|
11
|
-
}, ref) =>
|
|
11
|
+
}, ref) => React.createElement(ToggleGroupPrimitive.Root, {
|
|
12
12
|
ref: ref,
|
|
13
13
|
className: cn('flex items-center justify-center gap-1', className),
|
|
14
|
-
...props
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
})
|
|
22
|
-
}));
|
|
14
|
+
...props
|
|
15
|
+
}, React.createElement(ToggleGroupContext.Provider, {
|
|
16
|
+
value: {
|
|
17
|
+
variant,
|
|
18
|
+
size
|
|
19
|
+
}
|
|
20
|
+
}, children)));
|
|
23
21
|
ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
|
|
24
22
|
const ToggleGroupItem = React.forwardRef(({
|
|
25
23
|
className,
|
|
@@ -29,14 +27,13 @@ const ToggleGroupItem = React.forwardRef(({
|
|
|
29
27
|
...props
|
|
30
28
|
}, ref) => {
|
|
31
29
|
const context = React.useContext(ToggleGroupContext);
|
|
32
|
-
return
|
|
30
|
+
return React.createElement(ToggleGroupPrimitive.Item, {
|
|
33
31
|
ref: ref,
|
|
34
32
|
className: cn(toggleVariants({
|
|
35
33
|
variant: context.variant || variant,
|
|
36
34
|
size: context.size || size
|
|
37
35
|
}), className),
|
|
38
|
-
...props
|
|
39
|
-
|
|
40
|
-
});
|
|
36
|
+
...props
|
|
37
|
+
}, children);
|
|
41
38
|
});
|
|
42
39
|
ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;export{ToggleGroup,ToggleGroupItem};//# sourceMappingURL=toggle-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-group.js","sources":["../../src/shardui/toggle-group.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle-group.js","sources":["../../src/shardui/toggle-group.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AAuBA,CAAA,CAAA;;;;AAyBA,EAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/toggle.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
4
4
|
declare const toggleVariants: (props?: {
|
|
5
5
|
variant?: "default" | "outline";
|
|
6
6
|
size?: "default" | "sm" | "lg";
|
|
7
|
-
} & import("class-variance-authority/types").ClassProp) => string;
|
|
7
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string;
|
|
8
8
|
declare const Toggle: React.ForwardRefExoticComponent<Omit<TogglePrimitive.ToggleProps & React.RefAttributes<HTMLButtonElement>, "ref"> & VariantProps<(props?: {
|
|
9
9
|
variant?: "default" | "outline";
|
|
10
10
|
size?: "default" | "sm" | "lg";
|
|
11
|
-
} & import("class-variance-authority/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
11
|
+
} & import("class-variance-authority/dist/types").ClassProp) => string> & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export { Toggle, toggleVariants };
|
|
13
13
|
//# sourceMappingURL=toggle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;
|
|
1
|
+
{"version":3,"file":"toggle.d.ts","sourceRoot":"","sources":["../../src/shardui/toggle.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAC1D,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAIlE,QAAA,MAAM,cAAc;;;sEAmBnB,CAAC;AAEF,QAAA,MAAM,MAAM;;;iHAKV,CAAC;AAIH,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,CAAC"}
|
package/lib/shardui/toggle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as TogglePrimitive from'@radix-ui/react-toggle';import {cva}from'class-variance-authority';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const toggleVariants = cva('inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground', {
|
|
2
2
|
variants: {
|
|
3
3
|
variant: {
|
|
4
4
|
default: 'bg-transparent',
|
|
@@ -20,7 +20,7 @@ const Toggle = React.forwardRef(({
|
|
|
20
20
|
variant,
|
|
21
21
|
size,
|
|
22
22
|
...props
|
|
23
|
-
}, ref) =>
|
|
23
|
+
}, ref) => React.createElement(TogglePrimitive.Root, {
|
|
24
24
|
ref: ref,
|
|
25
25
|
className: cn(toggleVariants({
|
|
26
26
|
variant,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle.js","sources":["../../src/shardui/toggle.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle.js","sources":["../../src/shardui/toggle.tsx"],"sourcesContent":[null],"names":[],"mappings":";;;AA2BA,MAAA,SAAM,gBAAM;;;;AASZ,MAAA,OAAS,EAAM,WAAE;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/shardui/tooltip.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
1
|
+
import*as React from'react';import*as TooltipPrimitive from'@radix-ui/react-tooltip';import'../utils/isBrowser/index.js';import {cn}from'../utils/util.js';import'fast-deep-equal/react.js';const TooltipProvider = TooltipPrimitive.Provider;
|
|
2
2
|
const Tooltip = TooltipPrimitive.Root;
|
|
3
3
|
const TooltipTrigger = TooltipPrimitive.Trigger;
|
|
4
4
|
const TooltipContent = React.forwardRef(({
|
|
5
5
|
className,
|
|
6
6
|
sideOffset = 4,
|
|
7
7
|
...props
|
|
8
|
-
}, ref) =>
|
|
8
|
+
}, ref) => React.createElement(TooltipPrimitive.Content, {
|
|
9
9
|
ref: ref,
|
|
10
10
|
sideOffset: sideOffset,
|
|
11
11
|
className: cn('z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.js","sources":["../../src/shardui/tooltip.tsx"],"sourcesContent":[null],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tooltip.js","sources":["../../src/shardui/tooltip.tsx"],"sourcesContent":[null],"names":[],"mappings":"4LAOA,MAAA,eAAa,GAAA,gBAAA,CAAA;AAEb,MAAA,OAAA,GAAM,gBAAc,CAAA;AAEpB,MAAA,cAAM,GAAA,gBAAc,CAAA;AAgBpB,MAAA,cAAkB,GAAA,KAAA,CAAA,UAAgB,CAAA,CAAA;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@admin-layout/tailwind-ui",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.2.1-alpha.3",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"watch": "npm run build:lib:watch"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@admin-layout/client": "12.
|
|
32
|
+
"@admin-layout/client": "12.2.1-alpha.3",
|
|
33
33
|
"@radix-ui/react-accordion": "^1.2.0",
|
|
34
34
|
"@radix-ui/react-alert-dialog": "^1.1.1",
|
|
35
35
|
"@radix-ui/react-aspect-ratio": "^1.1.0",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"typescript": {
|
|
90
90
|
"definition": "lib/index.d.ts"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "a39e19e76e76fbb5f8cdacf6a901ffbd5c7d700b"
|
|
93
93
|
}
|