@scaleflex/ui-tw 0.0.36 → 0.0.37
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.
|
@@ -62,7 +62,7 @@ function DialogWideContent(_ref6) {
|
|
|
62
62
|
"data-slot": "dialog-portal"
|
|
63
63
|
}, /*#__PURE__*/React.createElement(DialogOverlay, null), /*#__PURE__*/React.createElement(DialogPrimitive.Content, _extends({
|
|
64
64
|
"data-slot": "dialog-content",
|
|
65
|
-
className: cn('bg-background border-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border shadow-lg duration-200 lg:max-w-[62rem] xl:max-w-5xl', 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95', 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95', className)
|
|
65
|
+
className: cn('bg-background text-foreground border-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border shadow-lg duration-200 lg:max-w-[62rem] xl:max-w-5xl', 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95', 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95', className)
|
|
66
66
|
}, props), children, /*#__PURE__*/React.createElement(DialogPrimitive.Close, {
|
|
67
67
|
"data-state": "open",
|
|
68
68
|
className: cn('text-muted-foreground absolute top-3 right-3 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none', "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6", focusRingClassNames)
|
|
@@ -81,7 +81,7 @@ function DialogFormContent(_ref7) {
|
|
|
81
81
|
"data-slot": "dialog-portal"
|
|
82
82
|
}, /*#__PURE__*/React.createElement(DialogOverlay, null), /*#__PURE__*/React.createElement(DialogPrimitive.Content, _extends({
|
|
83
83
|
"data-slot": "dialog-content",
|
|
84
|
-
className: cn('bg-background border-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-md translate-x-[-50%] translate-y-[-50%] rounded-lg border shadow-lg duration-200', 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95', 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95', className)
|
|
84
|
+
className: cn('bg-background text-foreground border-border fixed top-[50%] left-[50%] z-50 grid w-full max-w-md translate-x-[-50%] translate-y-[-50%] rounded-lg border shadow-lg duration-200', 'data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95', 'data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95', className)
|
|
85
85
|
}, props), children, /*#__PURE__*/React.createElement(DialogPrimitive.Close, {
|
|
86
86
|
"data-state": "open",
|
|
87
87
|
className: cn('text-muted-foreground absolute top-3 right-3 cursor-pointer rounded-xs opacity-70 transition-opacity hover:opacity-100 disabled:pointer-events-none', "[&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-6", focusRingClassNames)
|
|
@@ -97,7 +97,7 @@ function DialogWideHeader(_ref8) {
|
|
|
97
97
|
props = _objectWithoutProperties(_ref8, _excluded4);
|
|
98
98
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
99
99
|
"data-slot": "dialog-header",
|
|
100
|
-
className: cn('border-border flex h-16 items-center justify-center border-b', className)
|
|
100
|
+
className: cn('border-border text-foreground flex h-16 items-center justify-center border-b', className)
|
|
101
101
|
}, props));
|
|
102
102
|
}
|
|
103
103
|
function DialogFormHeader(_ref9) {
|
|
@@ -105,7 +105,7 @@ function DialogFormHeader(_ref9) {
|
|
|
105
105
|
props = _objectWithoutProperties(_ref9, _excluded5);
|
|
106
106
|
return /*#__PURE__*/React.createElement("div", _extends({
|
|
107
107
|
"data-slot": "dialog-header",
|
|
108
|
-
className: cn('flex flex-col items-center justify-center p-6 pt-8 text-center', className)
|
|
108
|
+
className: cn('text-foreground flex flex-col items-center justify-center p-6 pt-8 text-center', className)
|
|
109
109
|
}, props));
|
|
110
110
|
}
|
|
111
111
|
function DialogWideBody(_ref10) {
|
|
@@ -137,7 +137,7 @@ function DialogFormTitle(_ref13) {
|
|
|
137
137
|
props = _objectWithoutProperties(_ref13, _excluded9);
|
|
138
138
|
return /*#__PURE__*/React.createElement(DialogPrimitive.Title, _extends({
|
|
139
139
|
"data-slot": "dialog-title",
|
|
140
|
-
className: cn('text-lg leading-7 font-medium', className)
|
|
140
|
+
className: cn('text-foreground text-lg leading-7 font-medium', className)
|
|
141
141
|
}, props));
|
|
142
142
|
}
|
|
143
143
|
function DialogFormDescription(_ref14) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scaleflex/ui-tw",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.37",
|
|
4
4
|
"author": "scaleflex",
|
|
5
5
|
"repository": "github:scaleflex/ui",
|
|
6
6
|
"homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@radix-ui/react-slot": "^1.1.2",
|
|
23
23
|
"@radix-ui/react-switch": "^1.0.1",
|
|
24
24
|
"@radix-ui/react-tooltip": "^1.2.6",
|
|
25
|
-
"@scaleflex/icons-tw": "^0.0.
|
|
25
|
+
"@scaleflex/icons-tw": "^0.0.37",
|
|
26
26
|
"@types/lodash.merge": "^4.6.9",
|
|
27
27
|
"class-variance-authority": "^0.7.1",
|
|
28
28
|
"cmdk": "^1.1.1",
|