@vespiario-thailand/design-system 0.0.1
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 +1 -0
- package/dist/components/Button/index.d.ts +5 -0
- package/dist/components/Chip/index.d.ts +11 -0
- package/dist/components/Dialog/index.d.ts +8 -0
- package/dist/components/Icon/index.d.ts +15 -0
- package/dist/components/Label/index.d.ts +8 -0
- package/dist/components/Stack/index.d.ts +6 -0
- package/dist/components/Typo/index.d.ts +12 -0
- package/dist/constance/Button/index.d.ts +3 -0
- package/dist/constance/Icon/index.d.ts +4 -0
- package/dist/custom-theme.cjs +174 -0
- package/dist/hooks/hooks/index.ts +5 -0
- package/dist/hooks/hooks/useClickOutside.ts +33 -0
- package/dist/hooks/hooks/useIsClient.ts +13 -0
- package/dist/hooks/hooks/useIsMounted.ts +17 -0
- package/dist/hooks/hooks/useIsomorphicLayoutEffect.ts +5 -0
- package/dist/hooks/hooks/useMergeRefs.ts +15 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/useClickOutside.d.ts +5 -0
- package/dist/hooks/useIsClient.d.ts +2 -0
- package/dist/hooks/useIsMounted.d.ts +2 -0
- package/dist/hooks/useIsomorphicLayoutEffect.d.ts +3 -0
- package/dist/hooks/useMergeRefs.d.ts +3 -0
- package/dist/index.d.ts +19 -0
- package/dist/main.d.ts +1 -0
- package/dist/style.css +1 -0
- package/dist/types/Button/index.d.ts +35 -0
- package/dist/types/Icon/index.d.ts +11 -0
- package/dist/types/Typo/index.d.ts +27 -0
- package/dist/vespa-design-system.cjs +240 -0
- package/dist/vespa-design-system.js +21779 -0
- package/dist/vespa-design-system.umd.cjs +240 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +86 -0
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** lib */
|
|
2
|
+
import { ButtonHTMLAttributes } from 'react'
|
|
3
|
+
|
|
4
|
+
/** constance */
|
|
5
|
+
import { ButtonSizeList, ButtonVariantList } from '../../constance/Button'
|
|
6
|
+
|
|
7
|
+
/** type */
|
|
8
|
+
import { IconType } from '../Icon'
|
|
9
|
+
|
|
10
|
+
type ButtonVariantType = typeof ButtonVariantList[number]
|
|
11
|
+
type ButtonSizeType = typeof ButtonSizeList[number]
|
|
12
|
+
|
|
13
|
+
type CommonButtonType = ButtonHTMLAttributes<HTMLButtonElement> & {
|
|
14
|
+
sizes?: ButtonSizeType
|
|
15
|
+
variants: ButtonVariantType
|
|
16
|
+
iconLeft?: IconType
|
|
17
|
+
isLoading?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
type ConditionButtonIconType =
|
|
21
|
+
| {
|
|
22
|
+
onlyIcon?: never
|
|
23
|
+
iconRight?: IconType
|
|
24
|
+
}
|
|
25
|
+
| {
|
|
26
|
+
onlyIcon?: boolean
|
|
27
|
+
iconRight?: never
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export type {
|
|
31
|
+
ButtonSizeType,
|
|
32
|
+
ButtonVariantType,
|
|
33
|
+
CommonButtonType,
|
|
34
|
+
ConditionButtonIconType,
|
|
35
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IconLists, IconSizes, IconColors } from '../../constance/Icon'
|
|
2
|
+
|
|
3
|
+
type IconType = typeof IconLists[number]
|
|
4
|
+
type IconSizeType = typeof IconSizes[number]
|
|
5
|
+
type IconColorType = typeof IconColors[number]
|
|
6
|
+
|
|
7
|
+
export type {
|
|
8
|
+
IconType,
|
|
9
|
+
IconSizeType,
|
|
10
|
+
IconColorType
|
|
11
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
type HTMLTagType =
|
|
2
|
+
| 'h1'
|
|
3
|
+
| 'h2'
|
|
4
|
+
| 'h3'
|
|
5
|
+
| 'h4'
|
|
6
|
+
| 'h5'
|
|
7
|
+
| 'h6'
|
|
8
|
+
| 'p'
|
|
9
|
+
| 'span'
|
|
10
|
+
type TextSizeType =
|
|
11
|
+
| 'title-large'
|
|
12
|
+
| 'title-medium'
|
|
13
|
+
| 'title-small'
|
|
14
|
+
| 'title-small-alt'
|
|
15
|
+
| 'body-large'
|
|
16
|
+
| 'body'
|
|
17
|
+
| 'body-small'
|
|
18
|
+
| 'caption'
|
|
19
|
+
type TextStyleType = 'italic' | 'normal'
|
|
20
|
+
type TextWeightType = 'bold' | 'normal'
|
|
21
|
+
|
|
22
|
+
export type {
|
|
23
|
+
HTMLTagType,
|
|
24
|
+
TextSizeType,
|
|
25
|
+
TextStyleType,
|
|
26
|
+
TextWeightType
|
|
27
|
+
}
|