1 line
13 KiB
JSON
1 line
13 KiB
JSON
{"ast":null,"code":"'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"icon\", \"optional\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport StepLabel from '../StepLabel';\nimport isMuiElement from '../utils/isMuiElement';\nimport StepperContext from '../Stepper/StepperContext';\nimport StepContext from '../Step/StepContext';\nimport stepButtonClasses, { getStepButtonUtilityClass } from './stepButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation\n } = ownerState;\n const slots = {\n root: ['root', orientation],\n touchRipple: ['touchRipple']\n };\n return composeClasses(slots, getStepButtonUtilityClass, classes);\n};\nconst StepButtonRoot = styled(ButtonBase, {\n name: 'MuiStepButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${stepButtonClasses.touchRipple}`]: styles.touchRipple\n }, styles.root, styles[ownerState.orientation]];\n }\n})(({\n ownerState\n}) => _extends({\n width: '100%',\n padding: '24px 16px',\n margin: '-24px -16px',\n boxSizing: 'content-box'\n}, ownerState.orientation === 'vertical' && {\n justifyContent: 'flex-start',\n padding: '8px',\n margin: '-8px'\n}, {\n [`& .${stepButtonClasses.touchRipple}`]: {\n color: 'rgba(0, 0, 0, 0.3)'\n }\n}));\nconst StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepButton'\n });\n const {\n children,\n className,\n icon,\n optional\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n disabled,\n active\n } = React.useContext(StepContext);\n const {\n orientation\n } = React.useContext(StepperContext);\n const ownerState = _extends({}, props, {\n orientation\n });\n const classes = useUtilityClasses(ownerState);\n const childProps = {\n icon,\n optional\n };\n const child = isMuiElement(children, ['StepLabel']) ? (/*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {\n children: children\n }));\n return /*#__PURE__*/_jsx(StepButtonRoot, _extends({\n focusRipple: true,\n disabled: disabled,\n TouchRippleProps: {\n className: classes.touchRipple\n },\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n \"aria-current\": active ? 'step' : undefined\n }, other, {\n children: child\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? StepButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Can be a `StepLabel` or a node to place inside `StepLabel` as children.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The icon displayed by the step label.\n */\n icon: PropTypes.node,\n /**\n * The optional node to display.\n */\n optional: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default StepButton;","map":{"version":3,"names":["_objectWithoutPropertiesLoose","_extends","_excluded","React","PropTypes","clsx","composeClasses","styled","useDefaultProps","ButtonBase","StepLabel","isMuiElement","StepperContext","StepContext","stepButtonClasses","getStepButtonUtilityClass","jsx","_jsx","useUtilityClasses","ownerState","classes","orientation","slots","root","touchRipple","StepButtonRoot","name","slot","overridesResolver","props","styles","width","padding","margin","boxSizing","justifyContent","color","StepButton","forwardRef","inProps","ref","children","className","icon","optional","other","disabled","active","useContext","childProps","child","cloneElement","focusRipple","TouchRippleProps","undefined","process","env","NODE_ENV","propTypes","node","object","string","sx","oneOfType","arrayOf","func","bool"],"sources":["/home/gnx/Desktop/ETB/ETB-FrontEnd/node_modules/@mui/material/StepButton/StepButton.js"],"sourcesContent":["'use client';\n\nimport _objectWithoutPropertiesLoose from \"@babel/runtime/helpers/esm/objectWithoutPropertiesLoose\";\nimport _extends from \"@babel/runtime/helpers/esm/extends\";\nconst _excluded = [\"children\", \"className\", \"icon\", \"optional\"];\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport clsx from 'clsx';\nimport composeClasses from '@mui/utils/composeClasses';\nimport styled from '../styles/styled';\nimport { useDefaultProps } from '../DefaultPropsProvider';\nimport ButtonBase from '../ButtonBase';\nimport StepLabel from '../StepLabel';\nimport isMuiElement from '../utils/isMuiElement';\nimport StepperContext from '../Stepper/StepperContext';\nimport StepContext from '../Step/StepContext';\nimport stepButtonClasses, { getStepButtonUtilityClass } from './stepButtonClasses';\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst useUtilityClasses = ownerState => {\n const {\n classes,\n orientation\n } = ownerState;\n const slots = {\n root: ['root', orientation],\n touchRipple: ['touchRipple']\n };\n return composeClasses(slots, getStepButtonUtilityClass, classes);\n};\nconst StepButtonRoot = styled(ButtonBase, {\n name: 'MuiStepButton',\n slot: 'Root',\n overridesResolver: (props, styles) => {\n const {\n ownerState\n } = props;\n return [{\n [`& .${stepButtonClasses.touchRipple}`]: styles.touchRipple\n }, styles.root, styles[ownerState.orientation]];\n }\n})(({\n ownerState\n}) => _extends({\n width: '100%',\n padding: '24px 16px',\n margin: '-24px -16px',\n boxSizing: 'content-box'\n}, ownerState.orientation === 'vertical' && {\n justifyContent: 'flex-start',\n padding: '8px',\n margin: '-8px'\n}, {\n [`& .${stepButtonClasses.touchRipple}`]: {\n color: 'rgba(0, 0, 0, 0.3)'\n }\n}));\nconst StepButton = /*#__PURE__*/React.forwardRef(function StepButton(inProps, ref) {\n const props = useDefaultProps({\n props: inProps,\n name: 'MuiStepButton'\n });\n const {\n children,\n className,\n icon,\n optional\n } = props,\n other = _objectWithoutPropertiesLoose(props, _excluded);\n const {\n disabled,\n active\n } = React.useContext(StepContext);\n const {\n orientation\n } = React.useContext(StepperContext);\n const ownerState = _extends({}, props, {\n orientation\n });\n const classes = useUtilityClasses(ownerState);\n const childProps = {\n icon,\n optional\n };\n const child = isMuiElement(children, ['StepLabel']) ? ( /*#__PURE__*/React.cloneElement(children, childProps)) : /*#__PURE__*/_jsx(StepLabel, _extends({}, childProps, {\n children: children\n }));\n return /*#__PURE__*/_jsx(StepButtonRoot, _extends({\n focusRipple: true,\n disabled: disabled,\n TouchRippleProps: {\n className: classes.touchRipple\n },\n className: clsx(classes.root, className),\n ref: ref,\n ownerState: ownerState,\n \"aria-current\": active ? 'step' : undefined\n }, other, {\n children: child\n }));\n});\nprocess.env.NODE_ENV !== \"production\" ? StepButton.propTypes /* remove-proptypes */ = {\n // ┌────────────────────────────── Warning ──────────────────────────────┐\n // │ These PropTypes are generated from the TypeScript type definitions. │\n // │ To update them, edit the d.ts file and run `pnpm proptypes`. │\n // └─────────────────────────────────────────────────────────────────────┘\n /**\n * Can be a `StepLabel` or a node to place inside `StepLabel` as children.\n */\n children: PropTypes.node,\n /**\n * Override or extend the styles applied to the component.\n */\n classes: PropTypes.object,\n /**\n * @ignore\n */\n className: PropTypes.string,\n /**\n * The icon displayed by the step label.\n */\n icon: PropTypes.node,\n /**\n * The optional node to display.\n */\n optional: PropTypes.node,\n /**\n * The system prop that allows defining system overrides as well as additional CSS styles.\n */\n sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])\n} : void 0;\nexport default StepButton;"],"mappings":"AAAA,YAAY;;AAEZ,OAAOA,6BAA6B,MAAM,yDAAyD;AACnG,OAAOC,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C,EAAE9D,SAAS,CAAC6D,IAAI,EAAE7D,SAAS,CAACwD,MAAM,CAAC;AACxJ,CAAC,GAAG,KAAK,CAAC;AACV,eAAevB,UAAU","ignoreList":[]},"metadata":{},"sourceType":"module","externalDependencies":[]} |