@loja-integrada/admin-components 1.0.0 → 1.0.2
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/README.md +89 -2
- package/dist/chunk-22FGINA5.js +9 -0
- package/dist/chunk-24UC33BJ.js +8 -0
- package/dist/chunk-2H2JX2FG.js +5 -0
- package/dist/chunk-3OHDGUPG.js +7 -0
- package/dist/chunk-63ACUGSG.js +7 -0
- package/dist/chunk-767NPRMO.js +10 -0
- package/dist/chunk-AZI2H7OT.js +9 -0
- package/dist/chunk-BW2HQVCT.js +7 -0
- package/dist/chunk-DBWOW4GL.js +1 -0
- package/dist/chunk-DIFKNF3L.js +1 -0
- package/dist/chunk-IA7GSQNX.js +1 -0
- package/dist/chunk-IPSRY3RR.js +9 -0
- package/dist/chunk-K5XL557B.js +9 -0
- package/dist/chunk-KEVA65S5.js +10 -0
- package/dist/chunk-L6H2NDVS.js +3 -0
- package/dist/chunk-LJS4TVL3.js +10 -0
- package/dist/chunk-LTHYFCE7.js +7 -0
- package/dist/chunk-N73XF5FY.js +10 -0
- package/dist/chunk-NHDLQM42.js +10 -0
- package/dist/chunk-QNBPXACD.js +8 -0
- package/dist/chunk-RGSYU4MA.js +7 -0
- package/dist/chunk-RL2XPX57.js +7 -0
- package/dist/chunk-RPTUERXQ.js +8 -0
- package/dist/chunk-TZI6YTCW.js +7 -0
- package/dist/chunk-V3MWWR5B.js +10 -0
- package/dist/chunk-WEYSRHTX.js +6 -0
- package/dist/chunk-WEZVMEBK.js +7 -0
- package/dist/chunk-YDYMRCXH.js +8 -0
- package/dist/{chunk-W64HPITJ.js → chunk-YTHY4XI2.js} +3 -2
- package/dist/components/Button/index.d.ts +51 -5
- package/dist/components/Button/index.js +4 -3
- package/dist/components/DataTable/index.d.ts +77 -0
- package/dist/components/DataTable/index.js +6 -0
- package/dist/components/Icon/index.d.ts +127 -3
- package/dist/components/Icon/index.js +3 -1
- package/dist/components/IconCircular/index.d.ts +21 -3
- package/dist/components/IconCircular/index.js +4 -3
- package/dist/components/LoadingPlaceholder/index.d.ts +12 -0
- package/dist/components/LoadingPlaceholder/index.js +2 -0
- package/dist/components/Modal/index.css +1 -0
- package/dist/components/Modal/index.d.ts +56 -0
- package/dist/components/Modal/index.js +5 -0
- package/dist/components/SidebarFixed/index.d.ts +36 -0
- package/dist/components/SidebarFixed/index.js +5 -0
- package/dist/components/Table/index.d.ts +12 -0
- package/dist/components/Table/index.js +2 -0
- package/dist/components/Tabs/index.d.ts +47 -0
- package/dist/components/Tabs/index.js +2 -0
- package/dist/components/index.css +1 -0
- package/dist/components/index.js +15 -0
- package/dist/forms/Checkbox/index.d.ts +31 -0
- package/dist/forms/Checkbox/index.js +3 -0
- package/dist/forms/Input/index.d.ts +44 -0
- package/dist/forms/Input/index.js +4 -0
- package/dist/forms/InputHelpText/index.d.ts +20 -0
- package/dist/forms/InputHelpText/index.js +2 -0
- package/dist/forms/InputLabel/index.d.ts +32 -0
- package/dist/forms/InputLabel/index.js +2 -0
- package/dist/forms/InputMask/index.d.ts +29 -0
- package/dist/forms/InputMask/index.js +5 -0
- package/dist/forms/index.js +7 -0
- package/dist/icons-path/index.js +1 -0
- package/dist/index.css +1 -1
- package/dist/index.d.ts +28 -241
- package/dist/index.js +31 -18
- package/dist/indicators/Alert/index.d.ts +50 -0
- package/dist/indicators/Alert/index.js +5 -0
- package/dist/indicators/Badge/index.d.ts +33 -0
- package/dist/indicators/Badge/index.js +2 -0
- package/dist/indicators/Tag/index.css +1 -0
- package/dist/indicators/Tag/index.d.ts +36 -0
- package/dist/indicators/Tag/index.js +16 -0
- package/dist/indicators/Tooltip/index.css +1 -0
- package/dist/indicators/Tooltip/index.d.ts +57 -0
- package/dist/indicators/Tooltip/index.js +1 -0
- package/dist/indicators/index.css +1 -0
- package/dist/indicators/index.js +20 -0
- package/dist/layout/ActionBar/index.d.ts +21 -0
- package/dist/layout/ActionBar/index.js +7 -0
- package/dist/layout/Box/index.d.ts +71 -0
- package/dist/layout/Box/index.js +4 -0
- package/dist/layout/Container/index.d.ts +18 -0
- package/dist/layout/Container/index.js +3 -0
- package/dist/layout/index.js +10 -0
- package/dist/navigation/Breadcrumb/index.d.ts +45 -0
- package/dist/navigation/Breadcrumb/index.js +6 -0
- package/dist/navigation/HelpLink/index.d.ts +32 -0
- package/dist/navigation/HelpLink/index.js +5 -0
- package/dist/navigation/Stepper/index.d.ts +31 -0
- package/dist/navigation/Stepper/index.js +7 -0
- package/dist/navigation/index.js +7 -0
- package/package.json +95 -34
- package/dist/chunk-3IB6AR7I.js +0 -8
- package/dist/chunk-C3ECJWEX.js +0 -7
- package/dist/components/Button/Button.d.ts +0 -52
- package/dist/components/Button/Button.js +0 -3
- package/dist/components/Icon/Icon.d.ts +0 -127
- package/dist/components/Icon/Icon.js +0 -1
- package/dist/components/IconCircular/IconCircular.d.ts +0 -22
- package/dist/components/IconCircular/IconCircular.js +0 -3
- /package/dist/{chunk-AYBQ5B4L.js → chunk-27G6ETZK.js} +0 -0
- /package/dist/{chunk-QCTWLTAA.js → chunk-AKA4VSQF.js} +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
|
+
import { TippyProps } from '@tippyjs/react';
|
|
4
|
+
|
|
5
|
+
declare const Tooltip: React.MemoExoticComponent<({ isVisible, appendTo, hideOnClick, trigger, hideInMobile, duration, interactive, allowHTML, maxWidth, touch, placement, content, children, ...props }: TooltipProps) => react_jsx_runtime.JSX.Element>;
|
|
6
|
+
interface TooltipProps extends TippyProps {
|
|
7
|
+
/**
|
|
8
|
+
* Controls tooltip visibility
|
|
9
|
+
* @default true
|
|
10
|
+
*/
|
|
11
|
+
isVisible?: boolean;
|
|
12
|
+
/** Tooltip append
|
|
13
|
+
* @default 'document.body'
|
|
14
|
+
* */
|
|
15
|
+
appendTo?: TippyProps['appendTo'];
|
|
16
|
+
/** Tooltip hide on click
|
|
17
|
+
* @default false
|
|
18
|
+
* */
|
|
19
|
+
hideOnClick?: TippyProps['hideOnClick'];
|
|
20
|
+
/** Tooltip trigger
|
|
21
|
+
* @default 'mouseenter'
|
|
22
|
+
* */
|
|
23
|
+
trigger?: TippyProps['trigger'];
|
|
24
|
+
/** Tooltip action on touch
|
|
25
|
+
* @default ['hold', 400]
|
|
26
|
+
* */
|
|
27
|
+
touch?: TippyProps['touch'];
|
|
28
|
+
/**
|
|
29
|
+
* Hide tooltip in mobile screen
|
|
30
|
+
* @default false
|
|
31
|
+
*/
|
|
32
|
+
hideInMobile?: boolean;
|
|
33
|
+
/** Tooltip duration
|
|
34
|
+
* @default 150
|
|
35
|
+
* */
|
|
36
|
+
duration?: TippyProps['duration'];
|
|
37
|
+
/** Tooltip position
|
|
38
|
+
* @default 'top'
|
|
39
|
+
* */
|
|
40
|
+
placement?: TippyProps['placement'];
|
|
41
|
+
/** Tooltip can be hovered over and clicked inside
|
|
42
|
+
* @default false
|
|
43
|
+
* */
|
|
44
|
+
interactive?: TippyProps['interactive'];
|
|
45
|
+
/**
|
|
46
|
+
* Allow use HTML in content
|
|
47
|
+
* @default true
|
|
48
|
+
*/
|
|
49
|
+
allowHTML?: TippyProps['allowHTML'];
|
|
50
|
+
/**
|
|
51
|
+
* Tooltip max width
|
|
52
|
+
* @default 250
|
|
53
|
+
*/
|
|
54
|
+
maxWidth?: TippyProps['maxWidth'];
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export { Tooltip, type TooltipProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";export { a as Tooltip } from '../../chunk-TZI6YTCW.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ReactModal__Overlay--after-open{opacity:1}.ReactModal__Overlay--before-close{opacity:0}.tippy-box{font-size:.75rem;letter-spacing:-.025em;line-height:1.063rem;position:relative;border-radius:.25rem;--tw-bg-opacity:1;background-color:rgb(var(--color-inverted-1) / var(--tw-bg-opacity));--tw-text-opacity:1;color:rgb(var(--color-base-1) / var(--tw-text-opacity));outline-width:0px;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.tippy-box[data-animation=fade][data-state=hidden]{opacity:0}.tippy-box [data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-.5rem;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-.5rem;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{right:-.5rem;border-width:8px 0 8px 8px;border-left-color:initial;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-.5rem;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-box .tippy-arrow{height:1rem;width:1rem;--tw-text-opacity:1;color:rgb(var(--color-inverted-1) / var(--tw-text-opacity))}.tippy-box .tippy-arrow:before{position:absolute;border-style:solid;border-color:transparent;content:""}.tippy-box .tippy-content{position:relative;z-index:1;padding:.75rem .5rem}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import '../chunk-AKA4VSQF.js';
|
|
2
|
+
export { a as Alert } from '../chunk-QNBPXACD.js';
|
|
3
|
+
export { a as Badge } from '../chunk-YDYMRCXH.js';
|
|
4
|
+
export { a as Tag } from '../chunk-NHDLQM42.js';
|
|
5
|
+
import '../chunk-DIFKNF3L.js';
|
|
6
|
+
import '../chunk-BW2HQVCT.js';
|
|
7
|
+
import '../chunk-YTHY4XI2.js';
|
|
8
|
+
export { a as Tooltip } from '../chunk-TZI6YTCW.js';
|
|
9
|
+
import '../chunk-KEVA65S5.js';
|
|
10
|
+
import '../chunk-LTHYFCE7.js';
|
|
11
|
+
import '../chunk-V3MWWR5B.js';
|
|
12
|
+
import '../chunk-RGSYU4MA.js';
|
|
13
|
+
import '../chunk-LTWCICTK.js';
|
|
14
|
+
import '../chunk-RPTUERXQ.js';
|
|
15
|
+
import '../chunk-2H2JX2FG.js';
|
|
16
|
+
import '../chunk-RL2XPX57.js';
|
|
17
|
+
import '../chunk-63ACUGSG.js';
|
|
18
|
+
import '../chunk-22FGINA5.js';
|
|
19
|
+
import '../chunk-3OHDGUPG.js';
|
|
20
|
+
import '../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { ButtonProps } from '../../components/Button/index.js';
|
|
4
|
+
import 'class-variance-authority/types';
|
|
5
|
+
import 'class-variance-authority';
|
|
6
|
+
import '../../components/Icon/index.js';
|
|
7
|
+
|
|
8
|
+
declare const ActionBar: React__default.MemoExoticComponent<({ onlyMobile, children }: ActionBarProps) => react_jsx_runtime.JSX.Element>;
|
|
9
|
+
interface ActionBarProps {
|
|
10
|
+
/**
|
|
11
|
+
* Show component only on Mobile
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
onlyMobile?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* React children
|
|
17
|
+
*/
|
|
18
|
+
children: React__default.ReactElement<ButtonProps> | React__default.ReactElement<ButtonProps>[];
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export { ActionBar, type ActionBarProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { a as ActionBar } from '../../chunk-AZI2H7OT.js';
|
|
2
|
+
import '../../chunk-L6H2NDVS.js';
|
|
3
|
+
import '../../chunk-YTHY4XI2.js';
|
|
4
|
+
import '../../chunk-LTWCICTK.js';
|
|
5
|
+
import '../../chunk-RPTUERXQ.js';
|
|
6
|
+
import '../../chunk-2H2JX2FG.js';
|
|
7
|
+
import '../../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import React__default from 'react';
|
|
3
|
+
import { TabsProps } from '../../components/Tabs/index.js';
|
|
4
|
+
|
|
5
|
+
declare const BoxSeparator: {
|
|
6
|
+
(): react_jsx_runtime.JSX.Element;
|
|
7
|
+
displayName: string;
|
|
8
|
+
};
|
|
9
|
+
declare const Box: React__default.MemoExoticComponent<({ id, className, isOpen, isToggle, variant, children }: BoxProps) => react_jsx_runtime.JSX.Element>;
|
|
10
|
+
declare const BoxHeader: React__default.MemoExoticComponent<({ children, className, title, subtitle, Tabs }: BoxHeaderProps) => react_jsx_runtime.JSX.Element>;
|
|
11
|
+
declare const BoxContent: React__default.MemoExoticComponent<({ children, className }: BoxContentProps) => react_jsx_runtime.JSX.Element>;
|
|
12
|
+
interface BoxProps {
|
|
13
|
+
/**
|
|
14
|
+
* Custom class name
|
|
15
|
+
* */
|
|
16
|
+
className?: string;
|
|
17
|
+
/**
|
|
18
|
+
* Box ID
|
|
19
|
+
* */
|
|
20
|
+
id?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Box Header and Content
|
|
23
|
+
*/
|
|
24
|
+
children?: React__default.ReactElement<BoxContentProps> | Array<React__default.ReactElement<BoxContentProps>> | React__default.ReactElement<BoxHeaderProps> | Array<React__default.ReactElement<BoxHeaderProps>>;
|
|
25
|
+
/** Variant type
|
|
26
|
+
* @default 'default'
|
|
27
|
+
* */
|
|
28
|
+
variant?: 'default' | 'small';
|
|
29
|
+
/** Define is box content has visible by default
|
|
30
|
+
* @default true
|
|
31
|
+
* */
|
|
32
|
+
isOpen?: boolean;
|
|
33
|
+
/** Show toggle icon
|
|
34
|
+
* @default false
|
|
35
|
+
* */
|
|
36
|
+
isToggle?: boolean;
|
|
37
|
+
}
|
|
38
|
+
interface BoxContentProps {
|
|
39
|
+
/**
|
|
40
|
+
* React children
|
|
41
|
+
*/
|
|
42
|
+
children?: React__default.ReactNode;
|
|
43
|
+
/**
|
|
44
|
+
* Custom class name
|
|
45
|
+
* */
|
|
46
|
+
className?: string;
|
|
47
|
+
}
|
|
48
|
+
interface BoxHeaderProps {
|
|
49
|
+
/**
|
|
50
|
+
* React children
|
|
51
|
+
*/
|
|
52
|
+
children?: React__default.ReactNode;
|
|
53
|
+
/**
|
|
54
|
+
* Custom class name
|
|
55
|
+
* */
|
|
56
|
+
className?: string;
|
|
57
|
+
/**
|
|
58
|
+
* Title of the Box
|
|
59
|
+
*/
|
|
60
|
+
title?: string | React__default.ReactNode;
|
|
61
|
+
/**
|
|
62
|
+
* Subtitle of the Box
|
|
63
|
+
*/
|
|
64
|
+
subtitle?: string | React__default.ReactNode;
|
|
65
|
+
/**
|
|
66
|
+
* Use only with "<Tabs />" component
|
|
67
|
+
*/
|
|
68
|
+
Tabs?: React__default.ReactElement<TabsProps>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export { Box, BoxContent, type BoxContentProps, BoxHeader, type BoxHeaderProps, type BoxProps, BoxSeparator };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as React$1 from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Container: React$1.MemoExoticComponent<({ children, expanded, className }: ContainerProps) => JSX.Element>;
|
|
4
|
+
declare const ContainerHeader: React$1.MemoExoticComponent<({ children, className }: ContainerProps) => JSX.Element>;
|
|
5
|
+
interface ContainerProps {
|
|
6
|
+
/**
|
|
7
|
+
* Container expanded
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
expanded?: boolean;
|
|
11
|
+
/**
|
|
12
|
+
* Custom class name
|
|
13
|
+
*/
|
|
14
|
+
className?: string;
|
|
15
|
+
children?: React.ReactNode;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export { Container, ContainerHeader, type ContainerProps };
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import '../chunk-DBWOW4GL.js';
|
|
2
|
+
export { a as ActionBar } from '../chunk-AZI2H7OT.js';
|
|
3
|
+
export { b as Box, d as BoxContent, c as BoxHeader, a as BoxSeparator } from '../chunk-K5XL557B.js';
|
|
4
|
+
export { a as Container, b as ContainerHeader } from '../chunk-24UC33BJ.js';
|
|
5
|
+
import '../chunk-L6H2NDVS.js';
|
|
6
|
+
import '../chunk-YTHY4XI2.js';
|
|
7
|
+
import '../chunk-LTWCICTK.js';
|
|
8
|
+
import '../chunk-RPTUERXQ.js';
|
|
9
|
+
import '../chunk-2H2JX2FG.js';
|
|
10
|
+
import '../chunk-WEYSRHTX.js';
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
import { HelpLinkProps } from '../HelpLink/index.js';
|
|
3
|
+
|
|
4
|
+
declare const Breadcrumb: React__default.FC<BreadcrumbProps>;
|
|
5
|
+
interface BreadcrumbProps {
|
|
6
|
+
/**
|
|
7
|
+
* Custom class name
|
|
8
|
+
* */
|
|
9
|
+
className?: string;
|
|
10
|
+
/**
|
|
11
|
+
* Current page title
|
|
12
|
+
* */
|
|
13
|
+
currentTitle: string | React__default.ReactNode;
|
|
14
|
+
/**
|
|
15
|
+
* Previous page title
|
|
16
|
+
* */
|
|
17
|
+
previousTitle?: string | React__default.ReactNode;
|
|
18
|
+
/**
|
|
19
|
+
* Previous page href
|
|
20
|
+
* */
|
|
21
|
+
previousHref?: string;
|
|
22
|
+
/**
|
|
23
|
+
* Custom link component (replace <a>)
|
|
24
|
+
* Example: `const Link = (props: any) => { return <a href="https://www.google.com" target="_blank" className={`underline ` + props.className}>{props.children}</a> }`
|
|
25
|
+
* */
|
|
26
|
+
Link?: React__default.ElementType;
|
|
27
|
+
/** Alignment of `currentTitle` at mobile
|
|
28
|
+
* @default 'left'
|
|
29
|
+
* */
|
|
30
|
+
mobileAlign?: 'left' | 'center';
|
|
31
|
+
/**
|
|
32
|
+
* Help link
|
|
33
|
+
* */
|
|
34
|
+
helpLink?: HelpLinkProps;
|
|
35
|
+
/**
|
|
36
|
+
* Custom actions and buttons
|
|
37
|
+
* */
|
|
38
|
+
actions?: React__default.ReactNode;
|
|
39
|
+
/** Should show actions only at one resolution or always
|
|
40
|
+
* @default 'both'
|
|
41
|
+
* */
|
|
42
|
+
actionsDisplay?: 'desktop' | 'mobile' | 'both';
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export { Breadcrumb, type BreadcrumbProps };
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const HelpLink: React__default.FC<HelpLinkProps>;
|
|
4
|
+
interface HelpLinkProps {
|
|
5
|
+
/**
|
|
6
|
+
* Custom class name
|
|
7
|
+
* */
|
|
8
|
+
className?: string;
|
|
9
|
+
/**
|
|
10
|
+
* Text to be displayed
|
|
11
|
+
* */
|
|
12
|
+
text?: string;
|
|
13
|
+
/**
|
|
14
|
+
* Text will appear on mobile or not
|
|
15
|
+
* @default false
|
|
16
|
+
* */
|
|
17
|
+
mobileText?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* Component behavior as hyper link or button
|
|
20
|
+
* */
|
|
21
|
+
as?: 'hyperLink' | 'button';
|
|
22
|
+
/**
|
|
23
|
+
* Href to the link where component redirects
|
|
24
|
+
* */
|
|
25
|
+
href?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Button action when clicked
|
|
28
|
+
* */
|
|
29
|
+
onClick?: React__default.MouseEventHandler<HTMLButtonElement>;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export { HelpLink, type HelpLinkProps };
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React__default from 'react';
|
|
2
|
+
|
|
3
|
+
declare const Stepper: React__default.FC<StepperProps>;
|
|
4
|
+
type StepType = {
|
|
5
|
+
step: number;
|
|
6
|
+
text?: string;
|
|
7
|
+
handleClick?: () => void;
|
|
8
|
+
customClassName?: string;
|
|
9
|
+
};
|
|
10
|
+
interface StepperProps {
|
|
11
|
+
/**
|
|
12
|
+
* Custom class name
|
|
13
|
+
* */
|
|
14
|
+
className?: string;
|
|
15
|
+
/**
|
|
16
|
+
* Current page step
|
|
17
|
+
* */
|
|
18
|
+
currentStep: number;
|
|
19
|
+
/**
|
|
20
|
+
* Array of steps containing the step number (1, 2, 3, ..., n),
|
|
21
|
+
* text with step's title (optional) and a handler for the
|
|
22
|
+
* step's click (optional) and a custom className for that given step
|
|
23
|
+
* */
|
|
24
|
+
steps: StepType[];
|
|
25
|
+
/**
|
|
26
|
+
* Shows step text instead of linking lines
|
|
27
|
+
* */
|
|
28
|
+
showText?: boolean;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { Stepper, type StepperProps };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { a } from '../../chunk-WEYSRHTX.js';
|
|
2
|
+
import i from 'react';
|
|
3
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
4
|
+
|
|
5
|
+
var f=i.memo(({className:o="",currentStep:t=0,steps:p=[],showText:a$1=!1})=>{let n=e=>t>e?"bg-primary border-primary":t===e?"bg-inverted-1 border-inverted-1":"bg-base-4 border-base-4";return jsx("div",{className:a("w-full flex flex-row justify-center gap-x-10 mb-6 relative",o),id:"stepsContainer",children:p.map((e,l)=>jsxs("div",{id:`step${e.step}`,className:"relative z-10 flex flex-row items-center gap-x-3.5 gap-y-2.5",children:[!a$1&&l>0&&jsx("div",{id:`leftLinkStep${e.step}`,className:a("absolute -left-5 h-0.5 w-5",t>=e.step?"bg-primary":"bg-base-4")}),jsx("div",{id:`stepCircle${e.step}`,className:a("flex size-8 items-center justify-center rounded-full border-2 text-base-1",n(e.step),e.customClassName),children:jsx("span",{onClick:()=>e.handleClick?.(),className:a("font-bold",e.handleClick?"cursor-pointer":""),children:e.step})}),a$1?jsx("span",{onClick:()=>e.handleClick?.(),className:a("my-auto text-center text-sm",e.step<2?"cursor-pointer":"",t===e.step?"font-bold":""),children:e.text}):null,!a$1&&l<p.length-1&&jsx("div",{id:`rightLinkStep${e.step}`,className:a("absolute -right-5 h-0.5 w-5",t>e.step?"bg-primary":"bg-base-4")})]},e.step))})});
|
|
6
|
+
|
|
7
|
+
export { f as Stepper };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import '../chunk-27G6ETZK.js';
|
|
2
|
+
export { a as Breadcrumb } from '../chunk-767NPRMO.js';
|
|
3
|
+
export { a as HelpLink } from '../chunk-N73XF5FY.js';
|
|
4
|
+
import '../chunk-LTWCICTK.js';
|
|
5
|
+
import '../chunk-RPTUERXQ.js';
|
|
6
|
+
import '../chunk-2H2JX2FG.js';
|
|
7
|
+
import '../chunk-WEYSRHTX.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@loja-integrada/admin-components",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"author": "Loja Integrada",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -19,24 +19,29 @@
|
|
|
19
19
|
"@types/react": "^18.3.2",
|
|
20
20
|
"@types/react-dom": "^18.3.0",
|
|
21
21
|
"@types/react-modal": "^3.16.3",
|
|
22
|
+
"@types/react-text-mask": "^5.4.14",
|
|
22
23
|
"@vitejs/plugin-react": "^4.2.1",
|
|
24
|
+
"autoprefixer": "^10.4.19",
|
|
23
25
|
"cypress": "^13.9.0",
|
|
24
26
|
"cypress-vite": "^1.5.0",
|
|
25
27
|
"esbuild-sass-plugin": "^3.3.0",
|
|
26
28
|
"eslint": "^8.57.0",
|
|
27
29
|
"eslint-plugin-storybook": "^0.8.0",
|
|
28
|
-
"
|
|
30
|
+
"postcss": "^8.4.38",
|
|
31
|
+
"tsup": "^8.1.0",
|
|
29
32
|
"typescript": "^5.3.3",
|
|
30
33
|
"vite": "^5.1.4",
|
|
31
34
|
"@loja-integrada/eslint-config": "0.0.1",
|
|
32
|
-
"@loja-integrada/
|
|
33
|
-
"@loja-integrada/
|
|
35
|
+
"@loja-integrada/typescript-config": "0.0.2",
|
|
36
|
+
"@loja-integrada/tailwindcss-config": "2.0.0"
|
|
34
37
|
},
|
|
35
38
|
"dependencies": {
|
|
36
39
|
"@tanstack/react-table": "^8.17.3",
|
|
40
|
+
"@tippyjs/react": "^4.2.6",
|
|
37
41
|
"class-variance-authority": "^0.7.0",
|
|
38
42
|
"clsx": "^2.1.1",
|
|
39
43
|
"react-modal": "^3.16.1",
|
|
44
|
+
"react-text-mask": "^5.5.0",
|
|
40
45
|
"tailwind-merge": "^2.3.0"
|
|
41
46
|
},
|
|
42
47
|
"publishConfig": {
|
|
@@ -48,61 +53,117 @@
|
|
|
48
53
|
],
|
|
49
54
|
"exports": {
|
|
50
55
|
".": {
|
|
51
|
-
"
|
|
52
|
-
"
|
|
56
|
+
"types": "./dist/index.d.ts",
|
|
57
|
+
"import": "./dist/index.js"
|
|
53
58
|
},
|
|
59
|
+
"./style.css": "./dist/index.css",
|
|
60
|
+
"./package.json": "./package.json",
|
|
54
61
|
"./Button": {
|
|
55
|
-
"
|
|
56
|
-
"
|
|
62
|
+
"types": "./dist/components/Button/Button.d.ts",
|
|
63
|
+
"import": "./dist/components/Button/index.js"
|
|
64
|
+
},
|
|
65
|
+
"./DataTable": {
|
|
66
|
+
"types": "./dist/components/DataTable/DataTable.d.ts",
|
|
67
|
+
"import": "./dist/components/DataTable/index.js"
|
|
57
68
|
},
|
|
58
69
|
"./Icon": {
|
|
59
|
-
"
|
|
60
|
-
"
|
|
70
|
+
"types": "./dist/components/Icon/Icon.d.ts",
|
|
71
|
+
"import": "./dist/components/Icon/index.js"
|
|
61
72
|
},
|
|
62
73
|
"./IconCircular": {
|
|
63
|
-
"
|
|
64
|
-
"
|
|
74
|
+
"types": "./dist/components/IconCircular/IconCircular.d.ts",
|
|
75
|
+
"import": "./dist/components/IconCircular/index.js"
|
|
65
76
|
},
|
|
66
77
|
"./LoadingPlaceholder": {
|
|
67
|
-
"
|
|
68
|
-
"
|
|
78
|
+
"types": "./dist/components/LoadingPlaceholder/LoadingPlaceholder.d.ts",
|
|
79
|
+
"import": "./dist/components/LoadingPlaceholder/index.js"
|
|
69
80
|
},
|
|
70
81
|
"./Modal": {
|
|
71
|
-
"
|
|
72
|
-
"
|
|
82
|
+
"types": "./dist/components/Modal/Modal.d.ts",
|
|
83
|
+
"import": "./dist/components/Modal/index.js"
|
|
73
84
|
},
|
|
74
85
|
"./SidebarFixed": {
|
|
75
|
-
"
|
|
76
|
-
"
|
|
86
|
+
"types": "./dist/components/SidebarFixed/SidebarFixed.d.ts",
|
|
87
|
+
"import": "./dist/components/SidebarFixed/index.js"
|
|
88
|
+
},
|
|
89
|
+
"./Table": {
|
|
90
|
+
"types": "./dist/components/Table/Table.d.ts",
|
|
91
|
+
"import": "./dist/components/Table/index.js"
|
|
92
|
+
},
|
|
93
|
+
"./Tabs": {
|
|
94
|
+
"types": "./dist/components/Tabs/Tabs.d.ts",
|
|
95
|
+
"import": "./dist/components/Tabs/index.js"
|
|
77
96
|
},
|
|
78
97
|
"./Checkbox": {
|
|
79
|
-
"
|
|
80
|
-
"
|
|
98
|
+
"types": "./dist/forms/Checkbox/Checkbox.d.ts",
|
|
99
|
+
"import": "./dist/forms/Checkbox/index.js"
|
|
81
100
|
},
|
|
82
|
-
"./
|
|
83
|
-
"
|
|
84
|
-
"
|
|
101
|
+
"./Input": {
|
|
102
|
+
"types": "./dist/forms/Input/Input.d.ts",
|
|
103
|
+
"import": "./dist/forms/Input/index.js"
|
|
85
104
|
},
|
|
86
|
-
"./
|
|
87
|
-
"
|
|
88
|
-
"
|
|
105
|
+
"./InputHelpText": {
|
|
106
|
+
"types": "./dist/forms/InputHelpText/InputHelpText.d.ts",
|
|
107
|
+
"import": "./dist/forms/InputHelpText/index.js"
|
|
108
|
+
},
|
|
109
|
+
"./InputLabel": {
|
|
110
|
+
"types": "./dist/forms/InputLabel/InputLabel.d.ts",
|
|
111
|
+
"import": "./dist/forms/InputLabel/index.js"
|
|
112
|
+
},
|
|
113
|
+
"./InputMask": {
|
|
114
|
+
"types": "./dist/forms/InputMask/InputMask.d.ts",
|
|
115
|
+
"import": "./dist/forms/InputMask/index.js"
|
|
116
|
+
},
|
|
117
|
+
"./Alert": {
|
|
118
|
+
"types": "./dist/indicators/Alert/Alert.d.ts",
|
|
119
|
+
"import": "./dist/indicators/Alert/index.js"
|
|
120
|
+
},
|
|
121
|
+
"./Badge": {
|
|
122
|
+
"types": "./dist/indicators/Badge/Badge.d.ts",
|
|
123
|
+
"import": "./dist/indicators/Badge/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./Tag": {
|
|
126
|
+
"types": "./dist/indicators/Tag/Tag.d.ts",
|
|
127
|
+
"import": "./dist/indicators/Tag/index.js"
|
|
128
|
+
},
|
|
129
|
+
"./Tooltip": {
|
|
130
|
+
"types": "./dist/indicators/Tooltip/Tooltip.d.ts",
|
|
131
|
+
"import": "./dist/indicators/Tooltip/index.js"
|
|
132
|
+
},
|
|
133
|
+
"./ActionBar": {
|
|
134
|
+
"types": "./dist/layout/ActionBar/ActionBar.d.ts",
|
|
135
|
+
"import": "./dist/layout/ActionBar/index.js"
|
|
136
|
+
},
|
|
137
|
+
"./Box": {
|
|
138
|
+
"types": "./dist/layout/Box/Box.d.ts",
|
|
139
|
+
"import": "./dist/layout/Box/index.js"
|
|
89
140
|
},
|
|
90
141
|
"./Container": {
|
|
91
|
-
"
|
|
92
|
-
"
|
|
142
|
+
"types": "./dist/layout/Container/Container.d.ts",
|
|
143
|
+
"import": "./dist/layout/Container/index.js"
|
|
93
144
|
},
|
|
94
|
-
"./
|
|
95
|
-
"
|
|
96
|
-
"
|
|
145
|
+
"./Breadcrumb": {
|
|
146
|
+
"types": "./dist/navigation/Breadcrumb/Breadcrumb.d.ts",
|
|
147
|
+
"import": "./dist/navigation/Breadcrumb/index.js"
|
|
148
|
+
},
|
|
149
|
+
"./HelpLink": {
|
|
150
|
+
"types": "./dist/navigation/HelpLink/HelpLink.d.ts",
|
|
151
|
+
"import": "./dist/navigation/HelpLink/index.js"
|
|
97
152
|
},
|
|
98
|
-
"./
|
|
153
|
+
"./Stepper": {
|
|
154
|
+
"types": "./dist/navigation/Stepper/Stepper.d.ts",
|
|
155
|
+
"import": "./dist/navigation/Stepper/index.js"
|
|
156
|
+
}
|
|
99
157
|
},
|
|
100
158
|
"scripts": {
|
|
101
|
-
"build": "
|
|
159
|
+
"build": "pnpm gen-entry && tsup",
|
|
160
|
+
"build-stages": "node scripts/tsup-build-stages.js",
|
|
161
|
+
"gen-entry": "node scripts/entry-points.js",
|
|
102
162
|
"dev": "tsup --watch",
|
|
103
163
|
"lint": "eslint .",
|
|
104
164
|
"format": "pnpm lint --fix && prettier --write .",
|
|
105
165
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
106
|
-
"test": "cypress run --component"
|
|
166
|
+
"test": "cypress run --component",
|
|
167
|
+
"test-visual": "cypress open --component"
|
|
107
168
|
}
|
|
108
169
|
}
|