@evinvest/uikit 0.8.1 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -4
- package/dist/index.js +7 -6
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/styles/tokens.css +345 -0
package/dist/index.d.ts
CHANGED
|
@@ -1161,10 +1161,10 @@ declare function SheetTitle({ className, ...props }: React.ComponentProps<"h2">)
|
|
|
1161
1161
|
declare function SheetDescription({ className, ...props }: React.ComponentProps<"p">): React.JSX.Element;
|
|
1162
1162
|
|
|
1163
1163
|
declare const drawerDirectionClasses: {
|
|
1164
|
-
readonly bottom: "inset-x-0 bottom-0 mt-24 max-h-[80vh] flex-col rounded-t-lg border-b-0";
|
|
1165
|
-
readonly top: "inset-x-0 top-0 mb-24 max-h-[80vh] flex-col rounded-b-lg border-t-0";
|
|
1166
|
-
readonly left: "inset-y-0 left-0 w-3/4 flex-row border-r sm:max-w-sm";
|
|
1167
|
-
readonly right: "inset-y-0 right-0 w-3/4 flex-row border-l sm:max-w-sm";
|
|
1164
|
+
readonly bottom: "data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 mt-24 max-h-[80vh] flex-col rounded-t-lg border-b-0";
|
|
1165
|
+
readonly top: "data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 mb-24 max-h-[80vh] flex-col rounded-b-lg border-t-0";
|
|
1166
|
+
readonly left: "data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 w-3/4 flex-row border-r sm:max-w-sm";
|
|
1167
|
+
readonly right: "data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 w-3/4 flex-row border-l sm:max-w-sm";
|
|
1168
1168
|
};
|
|
1169
1169
|
type DrawerDirection = keyof typeof drawerDirectionClasses;
|
|
1170
1170
|
|
package/dist/index.js
CHANGED
|
@@ -5793,14 +5793,14 @@ function SheetDescription({ className, ...props }) {
|
|
|
5793
5793
|
import * as React61 from "react";
|
|
5794
5794
|
|
|
5795
5795
|
// src/generated/drawer.ts
|
|
5796
|
-
var DRAWER_CONTENT_BASE = "bg-background fixed z-50 flex h-auto border";
|
|
5796
|
+
var DRAWER_CONTENT_BASE = "bg-background data-[state=open]:animate-in data-[state=closed]:animate-out fixed z-50 flex h-auto border transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500";
|
|
5797
5797
|
var drawerDirectionClasses = {
|
|
5798
|
-
"bottom": "inset-x-0 bottom-0 mt-24 max-h-[80vh] flex-col rounded-t-lg border-b-0",
|
|
5799
|
-
"top": "inset-x-0 top-0 mb-24 max-h-[80vh] flex-col rounded-b-lg border-t-0",
|
|
5800
|
-
"left": "inset-y-0 left-0 w-3/4 flex-row border-r sm:max-w-sm",
|
|
5801
|
-
"right": "inset-y-0 right-0 w-3/4 flex-row border-l sm:max-w-sm"
|
|
5798
|
+
"bottom": "data-[state=open]:slide-in-from-bottom data-[state=closed]:slide-out-to-bottom inset-x-0 bottom-0 mt-24 max-h-[80vh] flex-col rounded-t-lg border-b-0",
|
|
5799
|
+
"top": "data-[state=open]:slide-in-from-top data-[state=closed]:slide-out-to-top inset-x-0 top-0 mb-24 max-h-[80vh] flex-col rounded-b-lg border-t-0",
|
|
5800
|
+
"left": "data-[state=open]:slide-in-from-left data-[state=closed]:slide-out-to-left inset-y-0 left-0 w-3/4 flex-row border-r sm:max-w-sm",
|
|
5801
|
+
"right": "data-[state=open]:slide-in-from-right data-[state=closed]:slide-out-to-right inset-y-0 right-0 w-3/4 flex-row border-l sm:max-w-sm"
|
|
5802
5802
|
};
|
|
5803
|
-
var DRAWER_OVERLAY = "fixed inset-0 z-50 bg-black/50";
|
|
5803
|
+
var DRAWER_OVERLAY = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50";
|
|
5804
5804
|
var DRAWER_HANDLE = "bg-muted mx-auto mt-4 hidden h-2 w-[100px] shrink-0 rounded-full";
|
|
5805
5805
|
var DRAWER_HEADER = "flex flex-col gap-0.5 p-4 text-center sm:gap-1.5 sm:text-left";
|
|
5806
5806
|
var DRAWER_FOOTER = "mt-auto flex flex-col gap-2 p-4";
|
|
@@ -5882,6 +5882,7 @@ function DrawerContent({ className, children, ...props }) {
|
|
|
5882
5882
|
"div",
|
|
5883
5883
|
{
|
|
5884
5884
|
"data-slot": "drawer-overlay",
|
|
5885
|
+
"data-state": "open",
|
|
5885
5886
|
className: DRAWER_OVERLAY,
|
|
5886
5887
|
onClick: () => setOpen(false)
|
|
5887
5888
|
}
|