@veracity/vui 2.17.0-beta.0 → 2.17.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/cjs/box/box.d.ts.map +1 -1
- package/dist/cjs/button/buttonIcon.d.ts.map +1 -1
- package/dist/cjs/button/buttonText.d.ts.map +1 -1
- package/dist/cjs/button/buttons.d.ts.map +1 -1
- package/dist/cjs/core/media.d.ts.map +1 -1
- package/dist/cjs/core/vuiProvider/vuiProvider.d.ts.map +1 -1
- package/dist/cjs/icon/icon.d.ts.map +1 -1
- package/dist/cjs/index.d.ts +1 -1
- package/dist/cjs/index.d.ts.map +1 -1
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/notification/notification.d.ts.map +1 -1
- package/dist/cjs/notification/notificationButton.d.ts.map +1 -1
- package/dist/cjs/notification/notificationIcon.d.ts.map +1 -1
- package/dist/cjs/notification/notificationText.d.ts.map +1 -1
- package/dist/cjs/notification/notificationTitle.d.ts.map +1 -1
- package/dist/cjs/onedesign-tokens/dist/js/esm/rem/button.d.ts +85 -0
- package/dist/cjs/onedesign-tokens/dist/js/esm/rem/button.d.ts.map +1 -0
- package/dist/cjs/onedesign-tokens/dist/js/esm/rem/button.js +88 -0
- package/dist/cjs/onedesign-tokens/dist/js/rem/button.d.ts +85 -0
- package/dist/cjs/onedesign-tokens/dist/js/rem/button.d.ts.map +1 -0
- package/dist/cjs/onedesign-tokens/dist/js/rem/button.js +88 -0
- package/dist/cjs/p/p.d.ts.map +1 -1
- package/dist/cjs/portal/portal.d.ts.map +1 -1
- package/dist/cjs/step/index.d.ts +4 -0
- package/dist/cjs/step/index.d.ts.map +1 -0
- package/dist/cjs/{stepperIndicator → step}/index.js +4 -4
- package/dist/cjs/step/stepIndicator.d.ts +7 -0
- package/dist/cjs/step/stepIndicator.d.ts.map +1 -0
- package/dist/cjs/{stepperIndicator/stepperIndicator.js → step/stepIndicator.js} +6 -6
- package/dist/cjs/step/stepIndicatorTypes.d.ts +10 -0
- package/dist/cjs/step/stepIndicatorTypes.d.ts.map +1 -0
- package/dist/cjs/step/theme.d.ts.map +1 -0
- package/dist/cjs/stepperHorizontal/stepHorizontal.d.ts.map +1 -1
- package/dist/cjs/stepperHorizontal/stepHorizontal.js +2 -2
- package/dist/cjs/stepperHorizontal/stepperHorizontalTypes.d.ts +4 -4
- package/dist/cjs/stepperHorizontal/stepperHorizontalTypes.d.ts.map +1 -1
- package/dist/cjs/stepperVertical/stepVertical.js +2 -2
- package/dist/cjs/stepperVertical/stepperVerticalTypes.d.ts +4 -4
- package/dist/cjs/stepperVertical/stepperVerticalTypes.d.ts.map +1 -1
- package/dist/cjs/t/t.d.ts.map +1 -1
- package/dist/cjs/theme/components.d.ts +1 -1
- package/dist/cjs/theme/components.js +4 -4
- package/dist/cjs/theme/defaultTheme.d.ts +1 -1
- package/dist/cjs/theme/foundations/colors.js +1 -1
- package/dist/cjs/toast/useToast.d.ts.map +1 -1
- package/dist/esm/box/box.d.ts.map +1 -1
- package/dist/esm/button/buttonIcon.d.ts.map +1 -1
- package/dist/esm/button/buttonText.d.ts.map +1 -1
- package/dist/esm/button/buttons.d.ts.map +1 -1
- package/dist/esm/core/media.d.ts.map +1 -1
- package/dist/esm/core/vuiProvider/vuiProvider.d.ts.map +1 -1
- package/dist/esm/icon/icon.d.ts.map +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/notification/notification.d.ts.map +1 -1
- package/dist/esm/notification/notificationButton.d.ts.map +1 -1
- package/dist/esm/notification/notificationIcon.d.ts.map +1 -1
- package/dist/esm/notification/notificationText.d.ts.map +1 -1
- package/dist/esm/notification/notificationTitle.d.ts.map +1 -1
- package/dist/esm/p/p.d.ts.map +1 -1
- package/dist/esm/portal/portal.d.ts.map +1 -1
- package/dist/esm/step/index.d.ts +4 -0
- package/dist/esm/step/index.d.ts.map +1 -0
- package/dist/esm/step/index.js +3 -0
- package/dist/esm/step/stepIndicator.d.ts +7 -0
- package/dist/esm/step/stepIndicator.d.ts.map +1 -0
- package/dist/esm/step/stepIndicator.js +26 -0
- package/dist/esm/step/stepIndicatorTypes.d.ts +10 -0
- package/dist/esm/step/stepIndicatorTypes.d.ts.map +1 -0
- package/dist/esm/step/theme.d.ts.map +1 -0
- package/dist/esm/stepperHorizontal/stepHorizontal.d.ts.map +1 -1
- package/dist/esm/stepperHorizontal/stepHorizontal.js +2 -2
- package/dist/esm/stepperHorizontal/stepperHorizontalTypes.d.ts +4 -4
- package/dist/esm/stepperHorizontal/stepperHorizontalTypes.d.ts.map +1 -1
- package/dist/esm/stepperVertical/stepVertical.js +2 -2
- package/dist/esm/stepperVertical/stepperVerticalTypes.d.ts +4 -4
- package/dist/esm/stepperVertical/stepperVerticalTypes.d.ts.map +1 -1
- package/dist/esm/t/t.d.ts.map +1 -1
- package/dist/esm/theme/components.d.ts +1 -1
- package/dist/esm/theme/components.js +2 -2
- package/dist/esm/theme/defaultTheme.d.ts +1 -1
- package/dist/esm/theme/foundations/colors.js +1 -1
- package/dist/esm/toast/useToast.d.ts.map +1 -1
- package/package.json +7 -8
- package/src/box/box.tsx +0 -2
- package/src/button/buttonIcon.tsx +0 -2
- package/src/button/buttonText.tsx +0 -2
- package/src/button/buttons.tsx +0 -2
- package/src/core/media.tsx +1 -1
- package/src/core/vuiProvider/vuiProvider.tsx +1 -1
- package/src/icon/icon.tsx +0 -2
- package/src/index.ts +1 -1
- package/src/notification/notification.tsx +0 -2
- package/src/notification/notificationButton.tsx +0 -2
- package/src/notification/notificationIcon.tsx +0 -2
- package/src/notification/notificationText.tsx +0 -2
- package/src/notification/notificationTitle.tsx +0 -2
- package/src/p/p.tsx +0 -2
- package/src/portal/portal.tsx +1 -1
- package/src/step/index.ts +3 -0
- package/src/{stepperIndicator/stepperIndicator.tsx → step/stepIndicator.tsx} +7 -9
- package/src/step/stepIndicatorTypes.ts +12 -0
- package/src/stepperHorizontal/stepHorizontal.tsx +2 -4
- package/src/stepperHorizontal/stepperHorizontalTypes.ts +4 -4
- package/src/stepperVertical/stepVertical.tsx +2 -2
- package/src/stepperVertical/stepperVerticalTypes.ts +4 -4
- package/src/svg/svg.tsx +1 -1
- package/src/t/t.tsx +0 -2
- package/src/theme/components.ts +2 -2
- package/src/theme/foundations/colors.ts +1 -1
- package/src/toast/useToast.tsx +1 -1
- package/.eslintrc.cjs +0 -12
- package/.turbo/turbo-build.log +0 -5
- package/.turbo/turbo-lint.log +0 -15
- package/dist/cjs/stepperIndicator/index.d.ts +0 -4
- package/dist/cjs/stepperIndicator/index.d.ts.map +0 -1
- package/dist/cjs/stepperIndicator/stepperIndicator.d.ts +0 -7
- package/dist/cjs/stepperIndicator/stepperIndicator.d.ts.map +0 -1
- package/dist/cjs/stepperIndicator/stepperIndicatorTypes.d.ts +0 -10
- package/dist/cjs/stepperIndicator/stepperIndicatorTypes.d.ts.map +0 -1
- package/dist/cjs/stepperIndicator/theme.d.ts.map +0 -1
- package/dist/esm/stepperIndicator/index.d.ts +0 -4
- package/dist/esm/stepperIndicator/index.d.ts.map +0 -1
- package/dist/esm/stepperIndicator/index.js +0 -3
- package/dist/esm/stepperIndicator/stepperIndicator.d.ts +0 -7
- package/dist/esm/stepperIndicator/stepperIndicator.d.ts.map +0 -1
- package/dist/esm/stepperIndicator/stepperIndicator.js +0 -26
- package/dist/esm/stepperIndicator/stepperIndicatorTypes.d.ts +0 -10
- package/dist/esm/stepperIndicator/stepperIndicatorTypes.d.ts.map +0 -1
- package/dist/esm/stepperIndicator/theme.d.ts.map +0 -1
- package/src/stepperIndicator/index.ts +0 -3
- package/src/stepperIndicator/stepperIndicatorTypes.ts +0 -12
- package/tsconfig.json +0 -10
- package/tsconfig.legacy.json +0 -9
- /package/dist/cjs/{stepperIndicator/stepperIndicatorTypes.js → step/stepIndicatorTypes.js} +0 -0
- /package/dist/cjs/{stepperIndicator → step}/theme.d.ts +0 -0
- /package/dist/cjs/{stepperIndicator → step}/theme.js +0 -0
- /package/dist/esm/{stepperIndicator/stepperIndicatorTypes.js → step/stepIndicatorTypes.js} +0 -0
- /package/dist/esm/{stepperIndicator → step}/theme.d.ts +0 -0
- /package/dist/esm/{stepperIndicator → step}/theme.js +0 -0
- /package/src/{readme.md → README.md} +0 -0
- /package/src/{stepperIndicator → step}/theme.ts +0 -0
package/src/button/buttons.tsx
CHANGED
package/src/core/media.tsx
CHANGED
package/src/icon/icon.tsx
CHANGED
package/src/index.ts
CHANGED
|
@@ -43,7 +43,7 @@ export * from './radio'
|
|
|
43
43
|
export * from './select'
|
|
44
44
|
export * from './sidemenu'
|
|
45
45
|
export * from './skeleton'
|
|
46
|
-
export * from './
|
|
46
|
+
export * from './step'
|
|
47
47
|
export * from './stepperHorizontal'
|
|
48
48
|
export * from './stepperVertical'
|
|
49
49
|
export * from './spinner'
|
package/src/p/p.tsx
CHANGED
package/src/portal/portal.tsx
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
1
|
import Box from '../box'
|
|
4
2
|
import Button from '../button'
|
|
5
3
|
import { useStyleConfig, vui } from '../core'
|
|
6
4
|
import Icon from '../icon'
|
|
7
5
|
import T from '../t'
|
|
8
6
|
import { cs } from '../utils'
|
|
9
|
-
import {
|
|
7
|
+
import { StepIndicatorProps } from './stepIndicatorTypes'
|
|
10
8
|
|
|
11
9
|
const Content = ({ number, variant, size }: any) => {
|
|
12
10
|
if (typeof number === 'undefined') return null
|
|
@@ -18,13 +16,13 @@ const Content = ({ number, variant, size }: any) => {
|
|
|
18
16
|
/**
|
|
19
17
|
* Implements stepper indicator **
|
|
20
18
|
*/
|
|
21
|
-
export const
|
|
19
|
+
export const StepIndicator = vui<'div', StepIndicatorProps>((props, ref) => {
|
|
22
20
|
const { icon, number, className, size, variant, ...rest } = props
|
|
23
|
-
const styles = useStyleConfig('
|
|
21
|
+
const styles = useStyleConfig('StepIndicator', props)
|
|
24
22
|
|
|
25
23
|
return icon ? (
|
|
26
24
|
<Button
|
|
27
|
-
className={cs('vui-
|
|
25
|
+
className={cs('vui-stepIndicator', className)}
|
|
28
26
|
icon={icon}
|
|
29
27
|
ref={ref}
|
|
30
28
|
{...styles.icon}
|
|
@@ -36,7 +34,7 @@ export const StepperIndicator = vui<'div', StepperIndicatorProps>((props, ref) =
|
|
|
36
34
|
/>
|
|
37
35
|
) : (
|
|
38
36
|
<Button
|
|
39
|
-
className={cs('vui-
|
|
37
|
+
className={cs('vui-stepIndicator', className)}
|
|
40
38
|
ref={ref}
|
|
41
39
|
{...styles.button}
|
|
42
40
|
{...rest}
|
|
@@ -55,6 +53,6 @@ export const StepperIndicator = vui<'div', StepperIndicatorProps>((props, ref) =
|
|
|
55
53
|
)
|
|
56
54
|
})
|
|
57
55
|
|
|
58
|
-
|
|
56
|
+
StepIndicator.displayName = 'StepIndicator'
|
|
59
57
|
|
|
60
|
-
export default
|
|
58
|
+
export default StepIndicator
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { IconProp } from '../icon'
|
|
2
|
+
import { SystemProps } from '../system'
|
|
3
|
+
import { ThemingProps } from '../theme'
|
|
4
|
+
|
|
5
|
+
export type StepIndicatorProps = SystemProps &
|
|
6
|
+
ThemingProps<'StepIndicator'> & {
|
|
7
|
+
icon?: IconProp
|
|
8
|
+
className?: string
|
|
9
|
+
number?: number
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export type StepIndicatorVariant = 'active' | 'completed' | 'optional' | 'pending' | 'error'
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
1
|
import { Box } from '../box'
|
|
4
2
|
import { styled, vui } from '../core'
|
|
5
|
-
import {
|
|
3
|
+
import { StepIndicator } from '../step'
|
|
6
4
|
import { cs } from '../utils'
|
|
7
5
|
import { stepClassName } from './consts'
|
|
8
6
|
import { useStepperHorizontalContext } from './context'
|
|
@@ -28,7 +26,7 @@ export const StepHorizontal = vui<'div', StepHorizontalProps>(
|
|
|
28
26
|
<StepHorizontalBase className={cs(stepClassName, className)} ref={ref}>
|
|
29
27
|
<StepHorizontalTail size={size} variant={variant as any} />
|
|
30
28
|
<Box display="block" textAlign="center">
|
|
31
|
-
<
|
|
29
|
+
<StepIndicator icon={icon} number={number} size={size} variant={variant} />
|
|
32
30
|
</Box>
|
|
33
31
|
<Box display="block" textAlign="center">
|
|
34
32
|
{!!title && (
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react'
|
|
|
3
3
|
import { BoxProps } from '../box'
|
|
4
4
|
import { ChildrenProp } from '../core'
|
|
5
5
|
import { IconProp } from '../icon'
|
|
6
|
-
import {
|
|
6
|
+
import { StepIndicatorVariant } from '../step/stepIndicatorTypes'
|
|
7
7
|
import { SystemProps } from '../system'
|
|
8
8
|
import { ThemingProps } from '../theme'
|
|
9
9
|
|
|
@@ -20,14 +20,14 @@ export type StepHorizontalProps = SystemProps &
|
|
|
20
20
|
title?: ReactNode
|
|
21
21
|
disabled?: boolean
|
|
22
22
|
className?: string
|
|
23
|
-
variant?:
|
|
23
|
+
variant?: StepIndicatorVariant
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type StepHorizontalTailProps = BoxProps & {
|
|
27
|
-
variant?:
|
|
27
|
+
variant?: StepIndicatorVariant
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export type StepHorizontalTitleProps = BoxProps & {
|
|
31
31
|
size?: StepHorizontalSize
|
|
32
|
-
variant?:
|
|
32
|
+
variant?: StepIndicatorVariant
|
|
33
33
|
}
|
|
@@ -2,7 +2,7 @@ import React from 'react'
|
|
|
2
2
|
|
|
3
3
|
import { Box } from '../box'
|
|
4
4
|
import { styled, vui } from '../core'
|
|
5
|
-
import {
|
|
5
|
+
import { StepIndicator } from '../step'
|
|
6
6
|
import { cs } from '../utils'
|
|
7
7
|
import { stepClassName } from './consts'
|
|
8
8
|
import { useStepperVerticalContext } from './context'
|
|
@@ -27,7 +27,7 @@ export const StepVertical = vui<'div', StepVerticalProps>(
|
|
|
27
27
|
<StepVerticalBase className={cs(stepClassName, className)} ref={ref}>
|
|
28
28
|
<StepVerticalTail size={size} variant={variant as any} />
|
|
29
29
|
<Box flex={`0 0 ${size === 'md' ? 40 : 30}px`}>
|
|
30
|
-
<
|
|
30
|
+
<StepIndicator icon={icon} number={number} size={size} variant={variant} />
|
|
31
31
|
</Box>
|
|
32
32
|
<Box flex="1" flexDirection="column">
|
|
33
33
|
{!!title && (
|
|
@@ -3,7 +3,7 @@ import { ReactNode } from 'react'
|
|
|
3
3
|
import { BoxProps } from '../box'
|
|
4
4
|
import { ChildrenProp } from '../core'
|
|
5
5
|
import { IconProp } from '../icon'
|
|
6
|
-
import {
|
|
6
|
+
import { StepIndicatorVariant } from '../step/stepIndicatorTypes'
|
|
7
7
|
import { SystemProps } from '../system'
|
|
8
8
|
import { ThemingProps } from '../theme'
|
|
9
9
|
|
|
@@ -20,15 +20,15 @@ export type StepVerticalProps = SystemProps &
|
|
|
20
20
|
title?: ReactNode
|
|
21
21
|
disabled?: boolean
|
|
22
22
|
className?: string
|
|
23
|
-
variant?:
|
|
23
|
+
variant?: StepIndicatorVariant
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type StepVerticalTailProps = BoxProps & {
|
|
27
27
|
size?: StepVerticalSize
|
|
28
|
-
variant?:
|
|
28
|
+
variant?: StepIndicatorVariant
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export type StepVerticalTitleProps = BoxProps & {
|
|
32
32
|
size?: StepVerticalSize
|
|
33
|
-
variant?:
|
|
33
|
+
variant?: StepIndicatorVariant
|
|
34
34
|
}
|
package/src/svg/svg.tsx
CHANGED
package/src/t/t.tsx
CHANGED
package/src/theme/components.ts
CHANGED
|
@@ -37,8 +37,8 @@ import Select from '../select/theme'
|
|
|
37
37
|
import Sidemenu from '../sidemenu/theme'
|
|
38
38
|
import Skeleton from '../skeleton/theme'
|
|
39
39
|
import Spinner from '../spinner/theme'
|
|
40
|
+
import StepIndicator from '../step/theme'
|
|
40
41
|
import StepperHorizontal from '../stepperHorizontal/theme'
|
|
41
|
-
import StepperIndicator from '../stepperIndicator/theme'
|
|
42
42
|
import StepperVertical from '../stepperVertical/theme'
|
|
43
43
|
import Switch from '../switch/theme'
|
|
44
44
|
import T from '../t/theme'
|
|
@@ -94,7 +94,7 @@ export default {
|
|
|
94
94
|
Select,
|
|
95
95
|
Sidemenu,
|
|
96
96
|
Skeleton,
|
|
97
|
-
|
|
97
|
+
StepIndicator,
|
|
98
98
|
StepperHorizontal,
|
|
99
99
|
StepperVertical,
|
|
100
100
|
Spinner,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
2
2
|
// @ts-ignore - the missing types have to be added into the onedesign-tokens package
|
|
3
|
-
import * as oneDesignButtonTokens from '../../onedesign-tokens/dist/js/rem/button
|
|
3
|
+
import * as oneDesignButtonTokens from '../../onedesign-tokens/dist/js/rem/button'
|
|
4
4
|
|
|
5
5
|
const buttonTypePrimaryDefaultBorderColorDark: string = oneDesignButtonTokens.buttonTypePrimaryDefaultBorderColorDark
|
|
6
6
|
const buttonTypePrimaryDefaultBorderColorLight: string = oneDesignButtonTokens.buttonTypePrimaryDefaultBorderColorLight
|
package/src/toast/useToast.tsx
CHANGED
package/.eslintrc.cjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/* eslint-env node */
|
|
2
|
-
|
|
3
|
-
// This is a workaround for https://github.com/eslint/eslint/issues/3458
|
|
4
|
-
require('@veracity/eslint-config/patch')
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
extends: ['@veracity/eslint-config/legacy'],
|
|
8
|
-
rules: {
|
|
9
|
-
'@typescript-eslint/no-explicit-any': 0,
|
|
10
|
-
'react-hooks/exhaustive-deps': 0
|
|
11
|
-
}
|
|
12
|
-
}
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-lint.log
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
npm WARN ignoring workspace config at D:\a\1\s\packages\vui/.npmrc
|
|
2
|
-
|
|
3
|
-
> @veracity/vui@2.17.0-beta.0 lint
|
|
4
|
-
> npm run eslint && npm run tslint
|
|
5
|
-
|
|
6
|
-
npm WARN ignoring workspace config at D:\a\1\s\packages\vui/.npmrc
|
|
7
|
-
|
|
8
|
-
> @veracity/vui@2.17.0-beta.0 eslint
|
|
9
|
-
> eslint "src/**/*.{ts,tsx}"
|
|
10
|
-
|
|
11
|
-
npm WARN ignoring workspace config at D:\a\1\s\packages\vui/.npmrc
|
|
12
|
-
|
|
13
|
-
> @veracity/vui@2.17.0-beta.0 tslint
|
|
14
|
-
> tsc --noEmit
|
|
15
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StepperIndicatorProps } from './stepperIndicatorTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Implements stepper indicator **
|
|
4
|
-
*/
|
|
5
|
-
export declare const StepperIndicator: import("../core").VuiComponent<"div", StepperIndicatorProps>;
|
|
6
|
-
export default StepperIndicator;
|
|
7
|
-
//# sourceMappingURL=stepperIndicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepperIndicator.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicator.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,8DAmC3B,CAAA;AAIF,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconProp } from '../icon';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
import { ThemingProps } from '../theme';
|
|
4
|
-
export type StepperIndicatorProps = SystemProps & ThemingProps<'StepperIndicator'> & {
|
|
5
|
-
icon?: IconProp;
|
|
6
|
-
className?: string;
|
|
7
|
-
number?: number;
|
|
8
|
-
};
|
|
9
|
-
export type StepperIndicatorVariant = 'active' | 'completed' | 'optional' | 'pending' | 'error';
|
|
10
|
-
//# sourceMappingURL=stepperIndicatorTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepperIndicatorTypes.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicatorTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAC7C,YAAY,CAAC,kBAAkB,CAAC,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,wBAKC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAA;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,cAAc,oBAAoB,CAAA"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { StepperIndicatorProps } from './stepperIndicatorTypes';
|
|
2
|
-
/**
|
|
3
|
-
* Implements stepper indicator **
|
|
4
|
-
*/
|
|
5
|
-
export declare const StepperIndicator: import("../core").VuiComponent<"div", StepperIndicatorProps>;
|
|
6
|
-
export default StepperIndicator;
|
|
7
|
-
//# sourceMappingURL=stepperIndicator.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepperIndicator.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicator.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAS/D;;GAEG;AACH,eAAO,MAAM,gBAAgB,8DAmC3B,CAAA;AAIF,eAAe,gBAAgB,CAAA"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import Box from '../box';
|
|
3
|
-
import Button from '../button';
|
|
4
|
-
import { useStyleConfig, vui } from '../core';
|
|
5
|
-
import Icon from '../icon';
|
|
6
|
-
import T from '../t';
|
|
7
|
-
import { cs } from '../utils';
|
|
8
|
-
const Content = ({ number, variant, size }) => {
|
|
9
|
-
if (typeof number === 'undefined')
|
|
10
|
-
return null;
|
|
11
|
-
if (variant === 'completed')
|
|
12
|
-
return _jsx(Icon, { name: "falCheck", size: size });
|
|
13
|
-
if (variant === 'error')
|
|
14
|
-
return _jsx(Icon, { name: "falTimes", size: size });
|
|
15
|
-
return _jsx(T, { fontWeight: 600, children: number });
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Implements stepper indicator **
|
|
19
|
-
*/
|
|
20
|
-
export const StepperIndicator = vui((props, ref) => {
|
|
21
|
-
const { icon, number, className, size, variant, ...rest } = props;
|
|
22
|
-
const styles = useStyleConfig('StepperIndicator', props);
|
|
23
|
-
return icon ? (_jsx(Button, { className: cs('vui-stepperIndicator', className), icon: icon, ref: ref, ...styles.icon, ...rest, isRound: true, minW: "auto", pointerEvents: "none", size: size })) : (_jsxs(Button, { className: cs('vui-stepperIndicator', className), ref: ref, ...styles.button, ...rest, isRound: true, minW: "auto", outline: "6px solid white", pointerEvents: "none", position: "relative", size: size, children: [_jsx(Box, { mx: 0.5, position: "relative" }), _jsx(Box, { fontSize: `${size === 'md' ? 16 : 13}px`, mx: 0.5, position: "absolute", children: _jsx(Content, { number: number, size: size, variant: variant }) })] }));
|
|
24
|
-
});
|
|
25
|
-
StepperIndicator.displayName = 'StepperIndicator';
|
|
26
|
-
export default StepperIndicator;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { IconProp } from '../icon';
|
|
2
|
-
import { SystemProps } from '../system';
|
|
3
|
-
import { ThemingProps } from '../theme';
|
|
4
|
-
export type StepperIndicatorProps = SystemProps & ThemingProps<'StepperIndicator'> & {
|
|
5
|
-
icon?: IconProp;
|
|
6
|
-
className?: string;
|
|
7
|
-
number?: number;
|
|
8
|
-
};
|
|
9
|
-
export type StepperIndicatorVariant = 'active' | 'completed' | 'optional' | 'pending' | 'error';
|
|
10
|
-
//# sourceMappingURL=stepperIndicatorTypes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stepperIndicatorTypes.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/stepperIndicatorTypes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AACvC,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAA;AAEvC,MAAM,MAAM,qBAAqB,GAAG,WAAW,GAC7C,YAAY,CAAC,kBAAkB,CAAC,GAAG;IACjC,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAEH,MAAM,MAAM,uBAAuB,GAAG,QAAQ,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/stepperIndicator/theme.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgEA,wBAKC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { IconProp } from '../icon'
|
|
2
|
-
import { SystemProps } from '../system'
|
|
3
|
-
import { ThemingProps } from '../theme'
|
|
4
|
-
|
|
5
|
-
export type StepperIndicatorProps = SystemProps &
|
|
6
|
-
ThemingProps<'StepperIndicator'> & {
|
|
7
|
-
icon?: IconProp
|
|
8
|
-
className?: string
|
|
9
|
-
number?: number
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export type StepperIndicatorVariant = 'active' | 'completed' | 'optional' | 'pending' | 'error'
|
package/tsconfig.json
DELETED
package/tsconfig.legacy.json
DELETED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|