@rovula/ui 0.0.70 → 0.0.71

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.
@@ -2,7 +2,6 @@ export declare const iconWrapperVariant: (props?: ({
2
2
  size?: "sm" | "md" | "lg" | null | undefined;
3
3
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
4
4
  export declare const dropdownIconVariant: (props?: ({
5
- size?: "sm" | "md" | "lg" | null | undefined;
6
5
  disabled?: boolean | null | undefined;
7
6
  isFocus?: boolean | null | undefined;
8
7
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
@@ -5966,12 +5966,6 @@ input[type=number] {
5966
5966
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
5967
5967
  }
5968
5968
 
5969
- .shadow-\[0px_2px_24px_0px_rgba\(145\2c _158\2c _171\2c _0\.24\)\] {
5970
- --tw-shadow: 0px 2px 24px 0px rgba(145, 158, 171, 0.24);
5971
- --tw-shadow-colored: 0px 2px 24px 0px var(--tw-shadow-color);
5972
- box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
5973
- }
5974
-
5975
5969
  .shadow-lg {
5976
5970
  --tw-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
5977
5971
  --tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);
@@ -5984,11 +5978,6 @@ input[type=number] {
5984
5978
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
5985
5979
  }
5986
5980
 
5987
- .shadow-\[var\(--dropdown-menu-shadow\)\] {
5988
- --tw-shadow-color: var(--dropdown-menu-shadow);
5989
- --tw-shadow: var(--tw-shadow-colored);
5990
- }
5991
-
5992
5981
  .outline-none {
5993
5982
  outline: 2px solid transparent;
5994
5983
  outline-offset: 2px;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovula/ui",
3
- "version": "0.0.70",
3
+ "version": "0.0.71",
4
4
  "main": "dist/cjs/bundle.js",
5
5
  "module": "dist/esm/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -141,6 +141,8 @@ export const CustomOption = {
141
141
  fullwidth: true,
142
142
  options: customOptions,
143
143
  filterMode: true,
144
+
145
+ // iconMode: "flat",
144
146
  },
145
147
  render: (args) => {
146
148
  console.log("args ", args);
@@ -19,11 +19,12 @@ export const iconWrapperVariant = cva(
19
19
 
20
20
  export const dropdownIconVariant = cva(["transition-all"], {
21
21
  variants: {
22
- size: {
23
- sm: "size-[14px]",
24
- md: "size-5",
25
- lg: "size-6",
26
- },
22
+ // Controll by text-input
23
+ // size: {
24
+ // sm: "size-[14px]",
25
+ // md: "size-5",
26
+ // lg: "size-6",
27
+ // },
27
28
  disabled: {
28
29
  true: "fill-input-text-disabled",
29
30
  false: "fill-inherit",
@@ -34,7 +35,6 @@ export const dropdownIconVariant = cva(["transition-all"], {
34
35
  },
35
36
  },
36
37
  defaultVariants: {
37
- size: "md",
38
38
  disabled: false,
39
39
  isFocus: false,
40
40
  },
@@ -12,11 +12,7 @@ import React, {
12
12
  } from "react";
13
13
  import * as Portal from "@radix-ui/react-portal";
14
14
  import TextInput, { InputProps } from "../TextInput/TextInput";
15
- import {
16
- customInputVariant,
17
- dropdownIconVariant,
18
- iconWrapperVariant,
19
- } from "./Dropdown.styles";
15
+ import { customInputVariant, dropdownIconVariant } from "./Dropdown.styles";
20
16
 
21
17
  import { ChevronDownIcon } from "@heroicons/react/16/solid";
22
18
  import { cn } from "@/utils/cn";
@@ -339,11 +335,9 @@ const Dropdown = forwardRef<HTMLInputElement, DropdownProps>(
339
335
  <TextInput
340
336
  hasClearIcon={false}
341
337
  endIcon={
342
- <div className={iconWrapperVariant({ size })}>
343
- <ChevronDownIcon
344
- className={dropdownIconVariant({ size, isFocus: isFocused })}
345
- />
346
- </div>
338
+ <ChevronDownIcon
339
+ className={dropdownIconVariant({ isFocus: isFocused })}
340
+ />
347
341
  }
348
342
  {...props}
349
343
  ref={inputRef}
@@ -52,10 +52,14 @@ const DropdownMenuSubContent = React.forwardRef<
52
52
  <DropdownMenuPrimitive.SubContent
53
53
  ref={ref}
54
54
  className={cn(
55
- "z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground shadow-[var(--dropdown-menu-shadow)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
55
+ "z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
56
56
  className
57
57
  )}
58
58
  {...props}
59
+ style={{
60
+ boxShadow: "var(--dropdown-menu-shadow)",
61
+ ...props.style,
62
+ }}
59
63
  />
60
64
  ));
61
65
  DropdownMenuSubContent.displayName =
@@ -70,10 +74,14 @@ const DropdownMenuContent = React.forwardRef<
70
74
  ref={ref}
71
75
  sideOffset={sideOffset}
72
76
  className={cn(
73
- "z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground shadow-[0px_2px_24px_0px_rgba(145,_158,_171,_0.24)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
77
+ "z-50 min-w-[154px] overflow-hidden rounded-md bg-base-popup text-base-popup-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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",
74
78
  className
75
79
  )}
76
80
  {...props}
81
+ style={{
82
+ boxShadow: "var(--dropdown-menu-shadow)",
83
+ ...props.style,
84
+ }}
77
85
  />
78
86
  </DropdownMenuPrimitive.Portal>
79
87
  ));