@scaleflex/ui-tw 0.0.149 → 0.0.151

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.
@@ -196,7 +196,7 @@ function CommandItem(_ref9) {
196
196
  var selected = value && (multiple ? selectedValue === null || selectedValue === void 0 ? void 0 : selectedValue.includes(value) : value === selectedValue);
197
197
  return /*#__PURE__*/React.createElement(CommandPrimitive.Item, _extends({
198
198
  "data-slot": "command-item",
199
- className: cn('relative flex w-full cursor-pointer items-center justify-between gap-2 outline-hidden select-none', '*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2', 'data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground', '!opacity-100 data-[disabled=true]:cursor-not-allowed', "[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", selectItemVariants({
199
+ className: cn('relative flex w-full cursor-pointer items-center justify-between gap-2 outline-hidden select-none', '*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2', 'data-[selected=true]:bg-secondary data-[selected=true]:text-foreground', '!opacity-100 data-[disabled=true]:cursor-not-allowed', "[&_svg:not([class*='text-'])]:text-muted-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", selectItemVariants({
200
200
  size: size,
201
201
  className: className
202
202
  }), isGroup && getOptionInGroupPaddingLeft(size), selected && 'text-primary pr-7', className),
@@ -4,7 +4,7 @@ import type { DatePickerProps } from '@scaleflex/ui-tw/date-picker/date-picker.t
4
4
  import type { InputProps } from '@scaleflex/ui-tw/input';
5
5
  import { InputTagsProps } from '@scaleflex/ui-tw/input-tags/input-tags.types';
6
6
  import type { RadioGroupItemProps } from '@scaleflex/ui-tw/radio-group/radio-group.types';
7
- import type { SelectProps } from '@scaleflex/ui-tw/select/select.types';
7
+ import type { SelectProps, SelectorProps } from '@scaleflex/ui-tw/select/select.types';
8
8
  import type { SwitchProps } from '@scaleflex/ui-tw/switch/switch.types';
9
9
  import type { TextareaProps } from '@scaleflex/ui-tw/textarea';
10
10
  import type { FormSizeType } from '@scaleflex/ui-tw/types/form-size';
@@ -94,6 +94,7 @@ export type FormSelectProps = SelectProps & {
94
94
  placeholder?: string;
95
95
  icon?: ReactElement;
96
96
  popoverClassName?: string;
97
+ triggerProps?: SelectorProps['triggerProps'];
97
98
  };
98
99
  export type FormSelectFieldProps<TFieldValues extends FieldValues, TName extends Path<TFieldValues>> = Omit<FormFieldGroupProps<TFieldValues, TName>, 'children'> & {
99
100
  icon?: ReactElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleflex/ui-tw",
3
- "version": "0.0.149",
3
+ "version": "0.0.151",
4
4
  "author": "scaleflex",
5
5
  "repository": "github:scaleflex/ui",
6
6
  "homepage": "https://github.com/scaleflex/ui/blob/master/README.md",
@@ -29,7 +29,7 @@
29
29
  "@radix-ui/react-switch": "^1.0.1",
30
30
  "@radix-ui/react-tabs": "^1.1.13",
31
31
  "@radix-ui/react-tooltip": "^1.2.6",
32
- "@scaleflex/icons-tw": "^0.0.149",
32
+ "@scaleflex/icons-tw": "^0.0.151",
33
33
  "@tanstack/react-table": "^8.21.3",
34
34
  "@types/lodash.merge": "^4.6.9",
35
35
  "class-variance-authority": "^0.7.1",
@@ -80,7 +80,7 @@ function SelectTrigger(_ref4) {
80
80
  className: className
81
81
  }), readOnly && selectReadOnlyClassNames, className]))
82
82
  }, props), /*#__PURE__*/React.createElement("div", {
83
- className: "flex flex-1 items-center gap-2 overflow-hidden"
83
+ className: "flex flex-1 items-center overflow-hidden"
84
84
  }, icon && /*#__PURE__*/React.createElement(SelectIcon, {
85
85
  size: size,
86
86
  icon: icon