paradiego

This commit is contained in:
2024-09-18 13:34:19 -03:00
commit 3f0e204289
12510 changed files with 1486101 additions and 0 deletions

2
node_modules/@mui/utils/useSlotProps/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,2 @@
export { default } from './useSlotProps';
export type { UseSlotPropsParameters, UseSlotPropsResult } from './useSlotProps';

13
node_modules/@mui/utils/useSlotProps/index.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "default", {
enumerable: true,
get: function () {
return _useSlotProps.default;
}
});
var _useSlotProps = _interopRequireDefault(require("./useSlotProps"));

6
node_modules/@mui/utils/useSlotProps/package.json generated vendored Normal file
View File

@@ -0,0 +1,6 @@
{
"sideEffects": false,
"module": "../esm/useSlotProps/index.js",
"main": "./index.js",
"types": "./index.d.ts"
}

41
node_modules/@mui/utils/useSlotProps/useSlotProps.d.ts generated vendored Normal file
View File

@@ -0,0 +1,41 @@
import * as React from 'react';
import { AppendOwnerStateReturnType } from '../appendOwnerState';
import { MergeSlotPropsParameters, MergeSlotPropsResult, WithCommonProps } from '../mergeSlotProps';
export type UseSlotPropsParameters<ElementType extends React.ElementType, SlotProps, ExternalForwardedProps, ExternalSlotProps, AdditionalProps, OwnerState> = Omit<MergeSlotPropsParameters<SlotProps, ExternalForwardedProps, ExternalSlotProps, AdditionalProps>, 'externalSlotProps'> & {
/**
* The type of the component used in the slot.
*/
elementType: ElementType | undefined;
/**
* The `slotProps.*` of the Base UI component.
*/
externalSlotProps: ExternalSlotProps | ((ownerState: OwnerState) => ExternalSlotProps) | undefined;
/**
* The ownerState of the Base UI component.
*/
ownerState: OwnerState;
/**
* Set to true if the slotProps callback should receive more props.
*/
skipResolvingSlotProps?: boolean;
};
export type UseSlotPropsResult<ElementType extends React.ElementType, SlotProps, AdditionalProps, OwnerState> = AppendOwnerStateReturnType<ElementType, MergeSlotPropsResult<SlotProps, object, object, AdditionalProps>['props'] & {
ref: ((instance: any | null) => void) | null;
}, OwnerState>;
/**
* @ignore - do not document.
* Builds the props to be passed into the slot of an unstyled component.
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
* If the slot component is not a host component, it also merges in the `ownerState`.
*
* @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
*/
declare function useSlotProps<ElementType extends React.ElementType, SlotProps, AdditionalProps, OwnerState>(parameters: UseSlotPropsParameters<ElementType, SlotProps, object, WithCommonProps<Record<string, any>>, AdditionalProps, OwnerState>): import("@mui/types").Simplify<import("@mui/types").Simplify<SlotProps & object & AdditionalProps & {
className?: string;
style?: React.CSSProperties;
}> & {
ref: ((instance: any | null) => void) | null;
} & {
ownerState: ElementType extends React.ComponentType<any> ? OwnerState : ElementType extends keyof React.JSX.IntrinsicElements ? undefined : OwnerState | undefined;
}>;
export default useSlotProps;

44
node_modules/@mui/utils/useSlotProps/useSlotProps.js generated vendored Normal file
View File

@@ -0,0 +1,44 @@
"use strict";
'use client';
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _useForkRef = _interopRequireDefault(require("../useForkRef"));
var _appendOwnerState = _interopRequireDefault(require("../appendOwnerState"));
var _mergeSlotProps = _interopRequireDefault(require("../mergeSlotProps"));
var _resolveComponentProps = _interopRequireDefault(require("../resolveComponentProps"));
/**
* @ignore - do not document.
* Builds the props to be passed into the slot of an unstyled component.
* It merges the internal props of the component with the ones supplied by the user, allowing to customize the behavior.
* If the slot component is not a host component, it also merges in the `ownerState`.
*
* @param parameters.getSlotProps - A function that returns the props to be passed to the slot component.
*/
function useSlotProps(parameters) {
const {
elementType,
externalSlotProps,
ownerState,
skipResolvingSlotProps = false,
...other
} = parameters;
const resolvedComponentsProps = skipResolvingSlotProps ? {} : (0, _resolveComponentProps.default)(externalSlotProps, ownerState);
const {
props: mergedProps,
internalRef
} = (0, _mergeSlotProps.default)({
...other,
externalSlotProps: resolvedComponentsProps
});
const ref = (0, _useForkRef.default)(internalRef, resolvedComponentsProps?.ref, parameters.additionalProps?.ref);
const props = (0, _appendOwnerState.default)(elementType, {
...mergedProps,
ref
}, ownerState);
return props;
}
var _default = exports.default = useSlotProps;