@loja-integrada/admin-components 0.19.10 → 0.20.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/admin-components.cjs.development.js +3515 -3515
- package/dist/admin-components.cjs.development.js.map +1 -1
- package/dist/admin-components.cjs.production.min.js +1 -1
- package/dist/admin-components.cjs.production.min.js.map +1 -1
- package/dist/admin-components.esm.js +3515 -3515
- package/dist/admin-components.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/Components/Button/Button.tsx +1 -1
- package/src/Components/HelpLink/index.tsx +1 -1
- package/src/Components/Table/Table.tsx +1 -1
- package/src/Components/TableList/TableList.tsx +4 -4
- package/src/Components/TableList/TableListItemWrapper.tsx +1 -1
- package/src/Components/Tabs/TabsItem.tsx +1 -1
- package/src/Components/Timeline/TimelineItem.tsx +3 -3
- package/src/Forms/Checkbox/Checkbox.tsx +3 -3
- package/src/Forms/Dropdown/Dropdown.tsx +3 -3
- package/src/Forms/Input/Input.tsx +1 -1
- package/src/Forms/InputHelpText/InputHelpText.tsx +1 -1
- package/src/Forms/InputLabel/InputLabel.tsx +1 -1
- package/src/Forms/Toggle/Toggle.tsx +1 -1
- package/src/Forms/ToggleButton/ToggleButton.tsx +1 -1
- package/src/Forms/commonStyles.ts +3 -3
- package/src/Indicators/Alert/Alert.tsx +1 -1
- package/src/Indicators/Badge/Badge.tsx +1 -1
- package/src/Indicators/InformationBox/InformationBox.tsx +1 -1
- package/src/Indicators/Tag/Tag.tsx +1 -1
- package/src/Indicators/Tooltip/style.scss +1 -1
- package/src/Layout/Box/Components/Header/BoxHeader.tsx +2 -4
- package/src/Layout/ListActions/ListActions.tsx +2 -2
- package/src/Layout/Sidebar/Item.tsx +1 -1
- package/src/Layout/Sidebar/ItemSub.tsx +1 -1
- package/src/Navigation/Breadcrumb/index.tsx +2 -2
- package/src/Navigation/Pagination/PaginationInfo.tsx +1 -1
- package/src/Navigation/Pagination/PaginationNav.tsx +1 -1
- package/src/Navigation/Stepper/index.tsx +2 -2
package/package.json
CHANGED
|
@@ -97,7 +97,7 @@ const ButtonComponent = (
|
|
|
97
97
|
;(!disabled || !loading) && onClick && onClick(event)
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
let classes = `inline-flex
|
|
100
|
+
let classes = `inline-flex font-medium items-center justify-center px-5 text-center no-underline cursor-pointer transition rounded-md after:align-middle focus:outline-none `
|
|
101
101
|
|
|
102
102
|
if (loading) {
|
|
103
103
|
classes +=
|
|
@@ -17,7 +17,7 @@ export const HelpLink: React.FC<HelpLinkProps> = React.memo(
|
|
|
17
17
|
<>
|
|
18
18
|
<Icon icon="questionCircle" size={4} className="shrink-0" block />
|
|
19
19
|
<span
|
|
20
|
-
className={`text-f6 font-semibold
|
|
20
|
+
className={`text-f6 font-semibold ml-2
|
|
21
21
|
${!mobileText ? 'hidden md:inline' : ''}
|
|
22
22
|
`}
|
|
23
23
|
>
|
|
@@ -211,7 +211,7 @@ const TableComponent = ({
|
|
|
211
211
|
<tr>
|
|
212
212
|
<td colSpan={columnsLength || 1} className={`${TdClasses}`}>
|
|
213
213
|
<TdWrapper>
|
|
214
|
-
<div className="text-center py-16 text-xl font-
|
|
214
|
+
<div className="text-center py-16 text-xl font-medium text-on-base-2">
|
|
215
215
|
{emptyText}
|
|
216
216
|
</div>
|
|
217
217
|
</TdWrapper>
|
|
@@ -45,7 +45,7 @@ const TableListComponent = ({
|
|
|
45
45
|
}, [items])
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
|
-
<div className={`table-list
|
|
48
|
+
<div className={`table-list ${className}`}>
|
|
49
49
|
{isLoading ? (
|
|
50
50
|
<div className="table-list-loading">
|
|
51
51
|
<TableListItemLoading />
|
|
@@ -60,11 +60,11 @@ const TableListComponent = ({
|
|
|
60
60
|
{empty.illustration}
|
|
61
61
|
</div>
|
|
62
62
|
)}
|
|
63
|
-
<div className="table-list-empty-title text-center text-f4 font-
|
|
63
|
+
<div className="table-list-empty-title text-center text-f4 font-medium text-primary-bold">
|
|
64
64
|
{empty.title}
|
|
65
65
|
</div>
|
|
66
66
|
{empty.subTitle && (
|
|
67
|
-
<div className="table-list-empty-subtitle text-center text-f6 text-on-base-2
|
|
67
|
+
<div className="table-list-empty-subtitle text-center text-f6 text-on-base-2 -mt-1">
|
|
68
68
|
{empty.subTitle}
|
|
69
69
|
</div>
|
|
70
70
|
)}
|
|
@@ -89,7 +89,7 @@ const TableListComponent = ({
|
|
|
89
89
|
}`}
|
|
90
90
|
>
|
|
91
91
|
<span
|
|
92
|
-
className={`text-f5 text-on-base-2
|
|
92
|
+
className={`text-f5 text-on-base-2 break-words inline-block pt-6 pb-2`}
|
|
93
93
|
>
|
|
94
94
|
{group.title}
|
|
95
95
|
</span>
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { TableListItemWrapperProp } from './TableListItem.interface'
|
|
4
4
|
|
|
5
|
-
const ItemWrapperClasses = `flex relative py-6 text-f7
|
|
5
|
+
const ItemWrapperClasses = `flex relative py-6 text-f7 break-words no-underline`
|
|
6
6
|
const ItemWrapperClassesContainerHover = `before:hover:block before:hover:absolute before:hover:h-full before:hover:w-5 lg:before:hover:w-8 before:hover:top-0 before:hover:-left-5 lg:before:hover:-left-8 before:hover:bg-base-2 after:hover:block after:hover:absolute after:hover:h-full after:hover:w-5 lg:after:hover:w-8 after:hover:top-0 after:hover:-right-5 lg:after:hover:-right-8 after:hover:bg-base-2`
|
|
7
7
|
|
|
8
8
|
const DefaultWrapper = (props: any) => {
|
|
@@ -39,7 +39,7 @@ export const TabsItem = ({
|
|
|
39
39
|
disabled={disabled}
|
|
40
40
|
>
|
|
41
41
|
<span
|
|
42
|
-
className={`block
|
|
42
|
+
className={`block text-f6 py-4 border-b-4 break-words ${
|
|
43
43
|
disabled ? '' : 'group-hover:font-semibold'
|
|
44
44
|
} ${activeStyles(active)} ${boldFixStyle}`}
|
|
45
45
|
data-title={title}
|
|
@@ -19,7 +19,7 @@ export const TimelineItem = ({ item }: TimelineItemProps) => {
|
|
|
19
19
|
</div>
|
|
20
20
|
<div className="ml-7 pt-px">
|
|
21
21
|
<div
|
|
22
|
-
className={`timeline-title group py-1 text-f6
|
|
22
|
+
className={`timeline-title group py-1 text-f6 text-inverted-1 font-semibold break-words ${
|
|
23
23
|
showToggle ? 'cursor-pointer' : ''
|
|
24
24
|
}`}
|
|
25
25
|
onClick={() => showToggle && setIsOpen((isOpen) => !isOpen)}
|
|
@@ -41,14 +41,14 @@ export const TimelineItem = ({ item }: TimelineItemProps) => {
|
|
|
41
41
|
<span className="inline break-words">{item.title}</span>
|
|
42
42
|
</div>
|
|
43
43
|
{item.timestamp && (
|
|
44
|
-
<div className="timeline-timestamp mb-1 inline-flex items-center text-xs
|
|
44
|
+
<div className="timeline-timestamp mb-1 inline-flex items-center text-xs text-inverted-2 break-words">
|
|
45
45
|
<Icon icon="clock" size={3} className="mr-1" />
|
|
46
46
|
{item.timestamp}
|
|
47
47
|
</div>
|
|
48
48
|
)}
|
|
49
49
|
{item.description && (
|
|
50
50
|
<div
|
|
51
|
-
className={`timeline-description mt-1 overflow-hidden text-sm
|
|
51
|
+
className={`timeline-description mt-1 overflow-hidden text-sm text-inverted-1 break-words transition-max-height ${
|
|
52
52
|
isOpen ? 'max-h-96' : 'max-h-0'
|
|
53
53
|
}`}
|
|
54
54
|
>
|
|
@@ -58,10 +58,10 @@ const CheckboxComponent = (
|
|
|
58
58
|
: 'bg-base-1'
|
|
59
59
|
}
|
|
60
60
|
${isCenterBoxAlign ? 'items-center' : ''}
|
|
61
|
-
rounded w-4 h-4 flex justify-center m-px
|
|
61
|
+
rounded-xs w-4 h-4 flex justify-center m-px
|
|
62
62
|
`
|
|
63
63
|
|
|
64
|
-
const checkboxLabelClasses = `ml-1 input-label text-f6
|
|
64
|
+
const checkboxLabelClasses = `ml-1 input-label text-f6 ${
|
|
65
65
|
hasErrorState ? 'text-danger' : disabled ? 'text-inverted-2' : ''
|
|
66
66
|
}`
|
|
67
67
|
|
|
@@ -87,7 +87,7 @@ const CheckboxComponent = (
|
|
|
87
87
|
htmlFor={inputId}
|
|
88
88
|
className={`inline-flex ${alignOptions[boxAlign]} cursor-pointer`}
|
|
89
89
|
>
|
|
90
|
-
<span className="relative rounded z-10 flex items-center justify-center focus-within:ring-2 ring-focus">
|
|
90
|
+
<span className="relative rounded-xs z-10 flex items-center justify-center focus-within:ring-2 ring-focus">
|
|
91
91
|
<input
|
|
92
92
|
ref={ref || inputRef}
|
|
93
93
|
type="checkbox"
|
|
@@ -175,7 +175,7 @@ const formatGroupLabel = (
|
|
|
175
175
|
const CustomGroupHeading = (props: any) => (
|
|
176
176
|
<GroupHeading
|
|
177
177
|
{...props}
|
|
178
|
-
className="p-2 pt-0 pb-3 text-inverted-1 uppercase font-
|
|
178
|
+
className="p-2 pt-0 pb-3 text-inverted-1 uppercase font-semibold text-xs"
|
|
179
179
|
/>
|
|
180
180
|
)
|
|
181
181
|
|
|
@@ -189,7 +189,7 @@ const CustomPlaceholder = (
|
|
|
189
189
|
) => (
|
|
190
190
|
<Placeholder
|
|
191
191
|
{...props}
|
|
192
|
-
className={`
|
|
192
|
+
className={`w-full pr-2 truncate ${valueFontSizesClasses[fontSize]}`}
|
|
193
193
|
/>
|
|
194
194
|
)
|
|
195
195
|
|
|
@@ -200,7 +200,7 @@ const CustomSingleValue = (
|
|
|
200
200
|
) => (
|
|
201
201
|
<SingleValue
|
|
202
202
|
{...props}
|
|
203
|
-
className={`
|
|
203
|
+
className={`truncate ${variantValueClasses[variant]} ${valueFontSizesClasses[fontSize]}`}
|
|
204
204
|
/>
|
|
205
205
|
)
|
|
206
206
|
|
|
@@ -59,7 +59,7 @@ const InputComponent = (
|
|
|
59
59
|
inputContainerClass += ` ${defaultBorderClasses}`
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
const inputClass = `w-full
|
|
62
|
+
const inputClass = `w-full px-4 appearance-none shadow-none outline-none bg-transparent box-border ${focusClass} ${
|
|
63
63
|
hasErrorState ? errorBorderClasses : defaultBorderClasses
|
|
64
64
|
} ${prefix && prefixBorder ? 'border-l' : ''} ${
|
|
65
65
|
sufix && sufixBorder ? 'border-r' : ''
|
|
@@ -12,7 +12,7 @@ export const InputLabel = React.memo(
|
|
|
12
12
|
if (!label) return null
|
|
13
13
|
return (
|
|
14
14
|
<label
|
|
15
|
-
className={`input-label text-f6
|
|
15
|
+
className={`input-label text-f6 font-medium inline-flex items-center mb-0.5 ${
|
|
16
16
|
hasError ? 'text-danger' : 'text-on-base'
|
|
17
17
|
} ${className}`}
|
|
18
18
|
htmlFor={htmlFor}
|
|
@@ -51,7 +51,7 @@ const ToggleComponent = (
|
|
|
51
51
|
|
|
52
52
|
const toggleCircleClasses = `transform ${toggleClasses.circle[toggleCheckText][toggleStatusText]} absolute left-[6px] top-[6px] w-5 h-5 rounded-full transition`
|
|
53
53
|
|
|
54
|
-
const toggleLabelClasses = `ml-2 text-inverted-1 text-f6
|
|
54
|
+
const toggleLabelClasses = `ml-2 text-inverted-1 text-f6 label`
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<label
|
|
@@ -58,7 +58,7 @@ const ToggleButtonComponent = (
|
|
|
58
58
|
|
|
59
59
|
return (
|
|
60
60
|
<div
|
|
61
|
-
className={`${className} inline-flex justify-center items-center h-12 ${toggleClasses}} rounded text-f6
|
|
61
|
+
className={`${className} inline-flex justify-center items-center h-12 ${toggleClasses}} rounded text-f6 font-semibold`}
|
|
62
62
|
>
|
|
63
63
|
<ul className="list-none inline-flex justify-center items-center h-12">
|
|
64
64
|
{toggleItems}
|
|
@@ -11,11 +11,11 @@ export const defaultBorderClasses = 'border-card-stroke'
|
|
|
11
11
|
|
|
12
12
|
export const focusClass = 'focus:border-inverted-1'
|
|
13
13
|
|
|
14
|
-
export const inputClasses = `appearance-none shadow-none outline-none bg-base-1 border px-4 rounded text-on-base text-sm
|
|
14
|
+
export const inputClasses = `appearance-none shadow-none outline-none bg-base-1 border px-4 rounded text-on-base text-sm min-w-0 w-full transition-border duration-75 ${focusClass} ${inputPlaceholderClasses}`
|
|
15
15
|
|
|
16
|
-
export const inputContainerClasses = `flex focus-within:border-inverted-1 bg-base-1 border rounded text-on-base text-sm
|
|
16
|
+
export const inputContainerClasses = `flex focus-within:border-inverted-1 bg-base-1 border rounded text-on-base text-sm min-w-0 w-full transition-border duration-75 overflow-hidden ${inputPlaceholderClasses}`
|
|
17
17
|
|
|
18
|
-
const adornmentClasses = `adornment flex justify-center items-center relative w-16 text-f6 text-inverted-2
|
|
18
|
+
const adornmentClasses = `adornment flex justify-center items-center relative w-16 text-f6 text-inverted-2 -mt-px`
|
|
19
19
|
|
|
20
20
|
export const prefixClasses = `${adornmentClasses} rounded-l left-0`
|
|
21
21
|
|
|
@@ -95,7 +95,7 @@ const AlertComponent = ({
|
|
|
95
95
|
</div>
|
|
96
96
|
)}
|
|
97
97
|
<div className="flex-grow flex flex-col sm:flex-row items-start sm:items-center justify-between min-w-0">
|
|
98
|
-
<div className="flex flex-col justify-center min-w-0 break-words text-f6
|
|
98
|
+
<div className="flex flex-col justify-center min-w-0 break-words text-f6 text-on-base">
|
|
99
99
|
<span className="alert-title font-semibold">{title}</span>
|
|
100
100
|
{subtitle && <span className="alert-subtitle mt-1">{subtitle}</span>}
|
|
101
101
|
</div>
|
|
@@ -74,7 +74,7 @@ const InformationBoxComponent = ({
|
|
|
74
74
|
</div>
|
|
75
75
|
|
|
76
76
|
<div className="flex-grow flex flex-col sm:flex-row items-start justify-between min-w-0">
|
|
77
|
-
<div className="flex flex-col justify-center min-w-0 break-words
|
|
77
|
+
<div className="flex flex-col justify-center min-w-0 break-words leading-6 text-on-base">
|
|
78
78
|
<span
|
|
79
79
|
className={`InformationBox-title text-f5 font-semibold ${InformationBoxTypes[type].titleClass}`}
|
|
80
80
|
>
|
|
@@ -19,7 +19,7 @@ const TagComponent = ({
|
|
|
19
19
|
<div
|
|
20
20
|
className={`tag ${
|
|
21
21
|
fullWidth ? 'flex' : 'inline-flex'
|
|
22
|
-
} items-center justify-between border rounded px-4 py-2
|
|
22
|
+
} items-center justify-between border rounded px-4 py-2 text-f6 text-primary-bold ${
|
|
23
23
|
TagTypes[type]
|
|
24
24
|
} ${className}`}
|
|
25
25
|
>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.tippy-box {
|
|
2
|
-
@apply relative bg-inverted-1 text-base-1 rounded text-f7
|
|
2
|
+
@apply relative bg-inverted-1 text-base-1 rounded text-f7 outline-0 transition-all;
|
|
3
3
|
|
|
4
4
|
&[data-animation='fade'][data-state='hidden'] {
|
|
5
5
|
@apply opacity-0;
|
|
@@ -30,14 +30,12 @@ export const BoxHeader = React.memo(
|
|
|
30
30
|
>
|
|
31
31
|
<div className="flex-1 min-w-0 mr-2">
|
|
32
32
|
{title && (
|
|
33
|
-
<h3
|
|
34
|
-
className={`tracking-3 text-base font-semibold break-words`}
|
|
35
|
-
>
|
|
33
|
+
<h3 className="text-f5 font-medium break-words lg:text-f4">
|
|
36
34
|
{title}
|
|
37
35
|
</h3>
|
|
38
36
|
)}
|
|
39
37
|
{subtitle && (
|
|
40
|
-
<h4 className="
|
|
38
|
+
<h4 className="text-f7 text-on-base-2 break-words lg:text-f6">
|
|
41
39
|
{subtitle}
|
|
42
40
|
</h4>
|
|
43
41
|
)}
|
|
@@ -21,7 +21,7 @@ const Tag = ({ type, text }: ListActionsTagProps) => {
|
|
|
21
21
|
|
|
22
22
|
return (
|
|
23
23
|
<span
|
|
24
|
-
className={`top-3 left-3 px-0.5 py-px rounded-sm text-f8 font-semibold
|
|
24
|
+
className={`top-3 left-3 px-0.5 py-px rounded-sm text-f8 font-semibold text-base-1 ${commonClasses}`}
|
|
25
25
|
>
|
|
26
26
|
<Badge
|
|
27
27
|
size="xsmall"
|
|
@@ -60,7 +60,7 @@ const ListActionButton = ({
|
|
|
60
60
|
<Icon icon={icon} size={5} className="p-px" />
|
|
61
61
|
{tagType || tagText ? <Tag type={tagType} text={tagText} /> : null}
|
|
62
62
|
</span>
|
|
63
|
-
<p className="lg:w-24 text-f8 lg:text-f7 font-semibold
|
|
63
|
+
<p className="lg:w-24 text-f8 lg:text-f7 font-semibold text-center select-none">
|
|
64
64
|
{text}
|
|
65
65
|
</p>
|
|
66
66
|
</button>
|
|
@@ -3,7 +3,7 @@ import { Icon, IconProps } from '../../Icons/Icon'
|
|
|
3
3
|
import { safeCSSId } from '../../utils'
|
|
4
4
|
import { SidebarSubItemProps } from './ItemSub'
|
|
5
5
|
|
|
6
|
-
const sidebarItemBtnClasses = `flex items-center relative px-6 py-3.5 lg:py-2.5 text-sm
|
|
6
|
+
const sidebarItemBtnClasses = `flex items-center relative px-6 py-3.5 lg:py-2.5 text-sm font-semibold duration-200 group-hover:text-on-base`
|
|
7
7
|
const sidebarItemBtnActiveClasses = (active: boolean | undefined) =>
|
|
8
8
|
active ? `text-on-base` : `text-on-base-2`
|
|
9
9
|
const sidebarItemBtnIconClasses = `w-4 h-6 flex-shrink-0`
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react'
|
|
2
2
|
import { safeCSSId } from '../../utils'
|
|
3
3
|
|
|
4
|
-
const sidebarItemDropdownItemClasses = `flex items-center pl-14 pr-0 py-1.5 lg:py-1 text-on-base-2 text-f6
|
|
4
|
+
const sidebarItemDropdownItemClasses = `flex items-center pl-14 pr-0 py-1.5 lg:py-1 text-on-base-2 text-f6 duration-200 hover:text-on-base`
|
|
5
5
|
const sidebarItemDropdownItemActiveClasses = (active: boolean | undefined) =>
|
|
6
6
|
active ? `text-on-base font-semibold active` : `text-on-base-2`
|
|
7
7
|
|
|
@@ -62,7 +62,7 @@ export const Breadcrumb: React.FC<BreadcrumbProps> = React.memo(
|
|
|
62
62
|
<div
|
|
63
63
|
className={`header-navigation-breadcrumb max-w-full truncate w-full`}
|
|
64
64
|
>
|
|
65
|
-
<div className="w-full inline-flex self-center items-center font-semibold
|
|
65
|
+
<div className="w-full inline-flex self-center items-center font-semibold text-f5 sm:text-f4 lg:text-f3">
|
|
66
66
|
{(previousTitle || previousHref || Link) && (
|
|
67
67
|
<span className="header-navigation-previous inline-flex items-center text-on-base-2 text-xl -mr-px truncate">
|
|
68
68
|
{renderPrevLink()}
|
|
@@ -72,7 +72,7 @@ export const Breadcrumb: React.FC<BreadcrumbProps> = React.memo(
|
|
|
72
72
|
</span>
|
|
73
73
|
)}
|
|
74
74
|
<span
|
|
75
|
-
className={`header-navigation-current text-on-base truncate
|
|
75
|
+
className={`header-navigation-current text-on-base truncate ${
|
|
76
76
|
mobileAlign === 'center'
|
|
77
77
|
? 'w-full lg:w-auto text-center lg:text-left'
|
|
78
78
|
: ''
|
|
@@ -19,7 +19,7 @@ const PaginationInfoComponent = ({
|
|
|
19
19
|
|
|
20
20
|
return (
|
|
21
21
|
<div className="pagination-info hidden sm:flex">
|
|
22
|
-
<div className="flex items-center mr-5 text-inverted-2
|
|
22
|
+
<div className="flex items-center mr-5 text-inverted-2 text-f6">
|
|
23
23
|
{itemsLengthOptions ? (
|
|
24
24
|
<Select
|
|
25
25
|
id="selectItemsPerPage"
|
|
@@ -46,7 +46,7 @@ const PaginationNavComponent = ({
|
|
|
46
46
|
|
|
47
47
|
return (
|
|
48
48
|
<div className="pagination-nav flex items-center justify-between w-full sm:w-auto">
|
|
49
|
-
<div className="text-inverted-2 text-f6
|
|
49
|
+
<div className="text-inverted-2 text-f6">
|
|
50
50
|
<span
|
|
51
51
|
id="btnPaginationActualPage"
|
|
52
52
|
className="pagination-nav-current inline-block w-9 bg-base-1 border border-card-stroke/50 rounded font-semibold leading-8 text-center text-primary"
|
|
@@ -35,7 +35,7 @@ export const Stepper: React.FC<StepperProps> = React.memo(
|
|
|
35
35
|
>
|
|
36
36
|
<span
|
|
37
37
|
onClick={() => item.handleClick?.()}
|
|
38
|
-
className={`font-
|
|
38
|
+
className={`font-semibold ${
|
|
39
39
|
item.handleClick ? 'cursor-pointer' : ''
|
|
40
40
|
}`}
|
|
41
41
|
>
|
|
@@ -47,7 +47,7 @@ export const Stepper: React.FC<StepperProps> = React.memo(
|
|
|
47
47
|
onClick={() => item.handleClick?.()}
|
|
48
48
|
className={`text-center my-auto text-sm ${showText ? '' : ''}
|
|
49
49
|
${item.step < 2 ? 'cursor-pointer' : ''}
|
|
50
|
-
${currentStep === item.step ? 'font-
|
|
50
|
+
${currentStep === item.step ? 'font-semibold' : ''}`}
|
|
51
51
|
>
|
|
52
52
|
{item.text}
|
|
53
53
|
</span>
|