@economic/taco 2.71.0-type-check.0 → 2.71.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/taco.cjs +11 -1
 - package/dist/taco.cjs.map +1 -1
 - package/dist/taco.d.ts +6 -12
 - package/dist/taco.js +11 -1
 - package/dist/taco.js.map +1 -1
 - package/package.json +2 -2
 
    
        package/dist/taco.d.ts
    CHANGED
    
    | 
         @@ -671,7 +671,7 @@ export declare function createShortcutKeyDownHandler<T = Element>(key: string | 
     | 
|
| 
       671 
671 
     | 
    
         | 
| 
       672 
672 
     | 
    
         
             
            export declare type CurveType = 'natural' | 'linear' | 'step';
         
     | 
| 
       673 
673 
     | 
    
         | 
| 
       674 
     | 
    
         
            -
            export declare const Datepicker: React_2.ForwardRefExoticComponent<Omit<InputProps, " 
     | 
| 
      
 674 
     | 
    
         
            +
            export declare const Datepicker: React_2.ForwardRefExoticComponent<Omit<InputProps, "value"> & {
         
     | 
| 
       675 
675 
     | 
    
         
             
                /** [Calendar](component:calendar) component associated with the DatePicker */
         
     | 
| 
       676 
676 
     | 
    
         
             
                calendar?: CalendarProps;
         
     | 
| 
       677 
677 
     | 
    
         
             
                /** List of shortcuts */
         
     | 
| 
         @@ -685,12 +685,9 @@ export declare const Datepicker: React_2.ForwardRefExoticComponent<Omit<InputPro 
     | 
|
| 
       685 
685 
     | 
    
         
             
                 * This will be displayed in DatePicker's input in the format given to the [Provider](component:provider) component
         
     | 
| 
       686 
686 
     | 
    
         
             
                 */
         
     | 
| 
       687 
687 
     | 
    
         
             
                value?: Date | string;
         
     | 
| 
       688 
     | 
    
         
            -
                onChange: (event: React_2.ChangeEvent<HTMLInputElement> & {
         
     | 
| 
       689 
     | 
    
         
            -
                    detail?: Date;
         
     | 
| 
       690 
     | 
    
         
            -
                }) => void;
         
     | 
| 
       691 
688 
     | 
    
         
             
            } & React_2.RefAttributes<HTMLInputElement>>;
         
     | 
| 
       692 
689 
     | 
    
         | 
| 
       693 
     | 
    
         
            -
            export declare type DatepickerProps = Omit<InputProps, 'value' 
     | 
| 
      
 690 
     | 
    
         
            +
            export declare type DatepickerProps = Omit<InputProps, 'value'> & {
         
     | 
| 
       694 
691 
     | 
    
         
             
                /** [Calendar](component:calendar) component associated with the DatePicker */
         
     | 
| 
       695 
692 
     | 
    
         
             
                calendar?: CalendarProps;
         
     | 
| 
       696 
693 
     | 
    
         
             
                /** List of shortcuts */
         
     | 
| 
         @@ -704,9 +701,6 @@ export declare type DatepickerProps = Omit<InputProps, 'value' | 'onChange'> & { 
     | 
|
| 
       704 
701 
     | 
    
         
             
                 * This will be displayed in DatePicker's input in the format given to the [Provider](component:provider) component
         
     | 
| 
       705 
702 
     | 
    
         
             
                 */
         
     | 
| 
       706 
703 
     | 
    
         
             
                value?: Date | string;
         
     | 
| 
       707 
     | 
    
         
            -
                onChange: (event: React_2.ChangeEvent<HTMLInputElement> & {
         
     | 
| 
       708 
     | 
    
         
            -
                    detail?: Date;
         
     | 
| 
       709 
     | 
    
         
            -
                }) => void;
         
     | 
| 
       710 
704 
     | 
    
         
             
            };
         
     | 
| 
       711 
705 
     | 
    
         | 
| 
       712 
706 
     | 
    
         
             
            export declare type DatePickerShortcut = {
         
     | 
| 
         @@ -2243,10 +2237,10 @@ declare type MenuButtonProps = { 
     | 
|
| 
       2243 
2237 
     | 
    
         
             
                onClick: () => void;
         
     | 
| 
       2244 
2238 
     | 
    
         
             
            };
         
     | 
| 
       2245 
2239 
     | 
    
         | 
| 
       2246 
     | 
    
         
            -
            export declare type MenuCheckboxItemProps = Omit<React_2.HTMLAttributes<HTMLDivElement>, 'onSelect' 
     | 
| 
      
 2240 
     | 
    
         
            +
            export declare type MenuCheckboxItemProps = Omit<React_2.HTMLAttributes<HTMLDivElement>, 'onSelect'> & {
         
     | 
| 
       2247 
2241 
     | 
    
         
             
                disabled?: boolean;
         
     | 
| 
       2248 
2242 
     | 
    
         
             
                checked: boolean;
         
     | 
| 
       2249 
     | 
    
         
            -
                onChange: (checked: boolean) => void;
         
     | 
| 
      
 2243 
     | 
    
         
            +
                onChange: (checked: boolean | 'indeterminate') => void;
         
     | 
| 
       2250 
2244 
     | 
    
         
             
            };
         
     | 
| 
       2251 
2245 
     | 
    
         | 
| 
       2252 
2246 
     | 
    
         
             
            export declare type MenuContentProps = Omit<DropdownMenuPrimitive.DropdownMenuContentProps, 'children' | 'side'> & {
         
     | 
| 
         @@ -2295,7 +2289,7 @@ declare type MenuRadioGroupItemProps<T = HTMLDivElement> = Omit<React_2.HTMLAttr 
     | 
|
| 
       2295 
2289 
     | 
    
         
             
                value: RadioGroupItemValue;
         
     | 
| 
       2296 
2290 
     | 
    
         
             
            };
         
     | 
| 
       2297 
2291 
     | 
    
         | 
| 
       2298 
     | 
    
         
            -
            declare type MenuRadioGroupProps =  
     | 
| 
      
 2292 
     | 
    
         
            +
            declare type MenuRadioGroupProps = React_2.HTMLAttributes<HTMLDivElement> & {
         
     | 
| 
       2299 
2293 
     | 
    
         
             
                disabled?: boolean;
         
     | 
| 
       2300 
2294 
     | 
    
         
             
                /** Handler called when the value changes */
         
     | 
| 
       2301 
2295 
     | 
    
         
             
                onChange: (value: RadioGroupItemValue) => void;
         
     | 
| 
         @@ -3665,7 +3659,7 @@ export declare type TabListProps = React_2.HTMLAttributes<HTMLDivElement>; 
     | 
|
| 
       3665 
3659 
     | 
    
         | 
| 
       3666 
3660 
     | 
    
         
             
            export declare const Tabs: ForwardedTabsWithStatics;
         
     | 
| 
       3667 
3661 
     | 
    
         | 
| 
       3668 
     | 
    
         
            -
            export declare type TabsProps =  
     | 
| 
      
 3662 
     | 
    
         
            +
            export declare type TabsProps = React_2.HTMLAttributes<HTMLDivElement> & {
         
     | 
| 
       3669 
3663 
     | 
    
         
             
                /**
         
     | 
| 
       3670 
3664 
     | 
    
         
             
                 * The controlled value of the tab to activate. Should be used in conjunction with `onChange`.
         
     | 
| 
       3671 
3665 
     | 
    
         
             
                 */
         
     | 
    
        package/dist/taco.js
    CHANGED
    
    | 
         @@ -36794,7 +36794,16 @@ const RadioGroup$1 = React.forwardRef(function MenuRadioItem(props, ref) { 
     | 
|
| 
       36794 
36794 
     | 
    
         
             
              }, [props.children]);
         
     | 
| 
       36795 
36795 
     | 
    
         
             
              const handleChange = (value2) => props.onChange(getRadioItemByValue(values, value2));
         
     | 
| 
       36796 
36796 
     | 
    
         
             
              const value = String(props.value ?? "");
         
     | 
| 
       36797 
     | 
    
         
            -
              return /* @__PURE__ */ React.createElement(MenuRadioGroupContext.Provider, { value: { disabled: props.disabled } }, /* @__PURE__ */ React.createElement( 
     | 
| 
      
 36797 
     | 
    
         
            +
              return /* @__PURE__ */ React.createElement(MenuRadioGroupContext.Provider, { value: { disabled: props.disabled } }, /* @__PURE__ */ React.createElement(
         
     | 
| 
      
 36798 
     | 
    
         
            +
                $d08ef79370b62062$export$a98f0dcb43a68a25,
         
     | 
| 
      
 36799 
     | 
    
         
            +
                {
         
     | 
| 
      
 36800 
     | 
    
         
            +
                  ...props,
         
     | 
| 
      
 36801 
     | 
    
         
            +
                  className: "flex flex-col",
         
     | 
| 
      
 36802 
     | 
    
         
            +
                  onValueChange: handleChange,
         
     | 
| 
      
 36803 
     | 
    
         
            +
                  ref,
         
     | 
| 
      
 36804 
     | 
    
         
            +
                  value
         
     | 
| 
      
 36805 
     | 
    
         
            +
                }
         
     | 
| 
      
 36806 
     | 
    
         
            +
              ));
         
     | 
| 
       36798 
36807 
     | 
    
         
             
            });
         
     | 
| 
       36799 
36808 
     | 
    
         
             
            RadioGroup$1.Item = RadioItem;
         
     | 
| 
       36800 
36809 
     | 
    
         
             
            const Separator = React.forwardRef(function Separator2(props, ref) {
         
     | 
| 
         @@ -51737,6 +51746,7 @@ const Select22 = React__default.forwardRef(function Select222(props, ref) { 
     | 
|
| 
       51737 
51746 
     | 
    
         
             
                }
         
     | 
| 
       51738 
51747 
     | 
    
         
             
                if (!hasSearch && event.key === "Escape") {
         
     | 
| 
       51739 
51748 
     | 
    
         
             
                  event.preventDefault();
         
     | 
| 
      
 51749 
     | 
    
         
            +
                  event.stopPropagation();
         
     | 
| 
       51740 
51750 
     | 
    
         
             
                  setOpen(false);
         
     | 
| 
       51741 
51751 
     | 
    
         
             
                  return;
         
     | 
| 
       51742 
51752 
     | 
    
         
             
                }
         
     |