"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Step = void 0;
const react_1 = __importDefault(require("react"));
const styled_components_1 = __importDefault(require("styled-components"));
const styled_system_1 = require("styled-system");
const icon_1 = __importDefault(require("../../atoms/icon"));
const text_1 = __importDefault(require("../../atoms/text"));
const box_1 = __importDefault(require("../../atoms/box"));
const css_class_1 = require("../../utils/css-class");
const Circle = styled_components_1.default(box_1.default) `
border-width: 1px;
border-style: solid;
border-radius: 9999px;
text-align: center;
`;
Circle.defaultProps = {
py: 'default',
px: 'default',
minWidth: '34px',
height: '34px',
};
const StyledStep = styled_components_1.default.div `
flex: 1 1 0px;
display: flex;
flex-direction: row;
& > ${box_1.default} {
${({ disabled }) => (!disabled ? 'cursor: pointer' : '')};
border-bottom: 2px solid ${({ active, theme }) => (active ? theme.colors.primary100 : 'transparent')};
}
${styled_system_1.space};
`;
/**
* @classdesc
*
*
*
* Step represents one of the tab in placed inside {@link Stepper} component.
* You can use it alone or with before-mentioned {@link Stepper}.
*
* ### Usage
*
* ```javascript
* import { Step, StepProps } from '@adminjs/design-system'
* ```
*
*
* @hideconstructor
* @see Stepper
* @see StepProps
* @see OnStepClickHandler
* @subcategory Molecules
* @component
* @example