@moontra/moonui 6.0.0 → 6.2.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.global.js +365 -52
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +10 -10
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -10
- package/dist/index.mjs.map +1 -1
- package/dist/lib/theme.global.js.map +1 -1
- package/package.json +1 -6
- package/src/components/ui/__tests__/input.test.tsx +4 -1
- package/src/components/ui/button.tsx +12 -1
- package/src/components/ui/date-picker.stories.tsx +41 -35
- package/src/components/ui/input.tsx +15 -4
- package/src/components/ui/select.tsx +12 -1
- package/src/components/ui/textarea.tsx +15 -4
package/dist/index.js
CHANGED
|
@@ -754,7 +754,7 @@ var buttonVariants = classVarianceAuthority.cva(
|
|
|
754
754
|
"dark:bg-gray-800 dark:text-gray-100",
|
|
755
755
|
"hover:bg-gray-200 dark:hover:bg-gray-700",
|
|
756
756
|
"active:bg-gray-300 dark:active:bg-gray-600",
|
|
757
|
-
"border border-
|
|
757
|
+
"border border-input",
|
|
758
758
|
"focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
759
759
|
"shadow-sm hover:shadow-md"
|
|
760
760
|
],
|
|
@@ -1978,7 +1978,7 @@ var inputWrapperVariants = classVarianceAuthority.cva(
|
|
|
1978
1978
|
var inputVariants = classVarianceAuthority.cva(
|
|
1979
1979
|
[
|
|
1980
1980
|
"w-full bg-background transition-all duration-200",
|
|
1981
|
-
"text-foreground placeholder:text-muted-foreground
|
|
1981
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
1982
1982
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
1983
1983
|
"file:border-0 file:bg-transparent file:font-medium",
|
|
1984
1984
|
"focus-visible:outline-none dark:text-gray-200"
|
|
@@ -1986,10 +1986,10 @@ var inputVariants = classVarianceAuthority.cva(
|
|
|
1986
1986
|
{
|
|
1987
1987
|
variants: {
|
|
1988
1988
|
variant: {
|
|
1989
|
-
standard: "border border-
|
|
1989
|
+
standard: "border border-input rounded-md px-3 py-2 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:bg-gray-800/80 dark:shadow-inner dark:shadow-gray-950/10",
|
|
1990
1990
|
filled: "border border-transparent bg-gray-100 dark:bg-gray-800 rounded-md px-3 py-2 hover:bg-gray-200 dark:hover:bg-gray-700 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 dark:shadow-inner dark:shadow-gray-950/10",
|
|
1991
|
-
ghost: "border-none bg-transparent shadow-none px-1 dark:text-gray-300
|
|
1992
|
-
underline: "border-t-0 border-l-0 border-r-0 border-b border-
|
|
1991
|
+
ghost: "border-none bg-transparent shadow-none px-1 dark:text-gray-300 hover:bg-gray-100/50 dark:hover:bg-gray-800/30 focus-visible:bg-transparent",
|
|
1992
|
+
underline: "border-t-0 border-l-0 border-r-0 border-b border-input rounded-none px-0 py-2 focus-visible:ring-0 focus-visible:border-b-2 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:text-gray-300 dark:bg-transparent"
|
|
1993
1993
|
},
|
|
1994
1994
|
size: {
|
|
1995
1995
|
sm: "h-8 text-xs",
|
|
@@ -5989,7 +5989,7 @@ var SelectContent = React24__namespace.forwardRef(({ className, children, positi
|
|
|
5989
5989
|
className: cn(
|
|
5990
5990
|
[
|
|
5991
5991
|
"relative z-50 max-h-96 min-w-[8rem] overflow-hidden",
|
|
5992
|
-
"rounded-md border border-
|
|
5992
|
+
"rounded-md border border-input",
|
|
5993
5993
|
"bg-background dark:bg-gray-800/80 backdrop-blur-sm text-foreground dark:text-gray-200",
|
|
5994
5994
|
"shadow-lg dark:shadow-gray-900/20",
|
|
5995
5995
|
"data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
@@ -8010,7 +8010,7 @@ TagsInput.displayName = "TagsInput";
|
|
|
8010
8010
|
var textareaVariants = classVarianceAuthority.cva(
|
|
8011
8011
|
[
|
|
8012
8012
|
"flex w-full rounded-md px-3 py-2 text-sm transition-all duration-200",
|
|
8013
|
-
"text-foreground placeholder:text-muted-foreground
|
|
8013
|
+
"text-foreground placeholder:text-muted-foreground",
|
|
8014
8014
|
"disabled:cursor-not-allowed disabled:opacity-50",
|
|
8015
8015
|
"focus-visible:outline-none dark:text-gray-200",
|
|
8016
8016
|
"resize-none"
|
|
@@ -8019,10 +8019,10 @@ var textareaVariants = classVarianceAuthority.cva(
|
|
|
8019
8019
|
{
|
|
8020
8020
|
variants: {
|
|
8021
8021
|
variant: {
|
|
8022
|
-
default: "border border-
|
|
8023
|
-
outline: "border-2 border-
|
|
8022
|
+
default: "border border-input bg-background dark:bg-gray-800/80 focus-visible:ring-2 focus-visible:ring-primary/30 dark:focus-visible:ring-primary/20 focus-visible:border-primary dark:focus-visible:border-primary/80 dark:shadow-inner dark:shadow-gray-950/10",
|
|
8023
|
+
outline: "border-2 border-input bg-transparent focus-visible:border-primary dark:focus-visible:border-primary/80",
|
|
8024
8024
|
ghost: "border-none bg-transparent hover:bg-gray-100/50 dark:hover:bg-gray-800/30 focus-visible:bg-transparent",
|
|
8025
|
-
underline: "border-t-0 border-l-0 border-r-0 border-b-2 border-
|
|
8025
|
+
underline: "border-t-0 border-l-0 border-r-0 border-b-2 border-input rounded-none px-0 focus-visible:ring-0 focus-visible:border-primary dark:focus-visible:border-primary/80 bg-transparent dark:bg-transparent"
|
|
8026
8026
|
},
|
|
8027
8027
|
size: {
|
|
8028
8028
|
sm: "min-h-[60px] text-xs",
|