webcoreui 0.6.1 → 0.7.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/README.md +30 -1
- package/astro.d.ts +15 -0
- package/astro.js +10 -0
- package/components/Accordion/Accordion.astro +32 -20
- package/components/Accordion/Accordion.svelte +22 -4
- package/components/Accordion/Accordion.tsx +29 -7
- package/components/Accordion/accordion.module.scss +12 -0
- package/components/Accordion/accordion.ts +4 -0
- package/components/AspectRatio/AspectRatio.astro +21 -0
- package/components/AspectRatio/AspectRatio.svelte +19 -0
- package/components/AspectRatio/AspectRatio.tsx +28 -0
- package/components/AspectRatio/aspect-ratio.module.scss +10 -0
- package/components/AspectRatio/aspectratio.ts +8 -0
- package/components/Banner/Banner.astro +56 -0
- package/components/Banner/Banner.svelte +47 -0
- package/components/Banner/Banner.tsx +54 -0
- package/components/Banner/banner.module.scss +57 -0
- package/components/Banner/banner.ts +12 -0
- package/components/Icon/map.ts +2 -0
- package/components/Kbd/Kbd.astro +20 -0
- package/components/Kbd/Kbd.svelte +18 -0
- package/components/Kbd/Kbd.tsx +27 -0
- package/components/Kbd/kbd.module.scss +8 -0
- package/components/Kbd/kbd.ts +26 -0
- package/components/Kbd/keyMap.ts +21 -0
- package/components/Spoiler/Spoiler.astro +50 -0
- package/components/Spoiler/Spoiler.svelte +45 -0
- package/components/Spoiler/Spoiler.tsx +50 -0
- package/components/Spoiler/spoiler.module.scss +40 -0
- package/components/Spoiler/spoiler.ts +11 -0
- package/components/Stepper/Stepper.astro +61 -0
- package/components/Stepper/Stepper.svelte +59 -0
- package/components/Stepper/Stepper.tsx +60 -0
- package/components/Stepper/stepper.module.scss +102 -0
- package/components/Stepper/stepper.ts +17 -0
- package/icons/close.svg +1 -1
- package/icons/plus.svg +3 -0
- package/icons.d.ts +1 -0
- package/icons.js +1 -0
- package/package.json +4 -4
- package/react.d.ts +15 -0
- package/react.js +10 -0
- package/scss/global/utility.scss +4 -0
- package/scss/resets.scss +5 -0
- package/svelte.d.ts +15 -0
- package/svelte.js +10 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
@import '../../scss/config.scss';
|
|
2
|
+
|
|
3
|
+
body {
|
|
4
|
+
--w-stepper-color-border: var(--w-color-primary-50);
|
|
5
|
+
--w-stepper-color-active: var(--w-color-info);
|
|
6
|
+
--w-stepper-color-complete: var(--w-color-success);
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
$size: 20px;
|
|
10
|
+
|
|
11
|
+
.stepper {
|
|
12
|
+
@include layout(flex, default, column);
|
|
13
|
+
@include spacing(0);
|
|
14
|
+
@include size('w100%');
|
|
15
|
+
|
|
16
|
+
list-style-type: none;
|
|
17
|
+
|
|
18
|
+
&:not(.borderless) .number {
|
|
19
|
+
border: 2px solid var(--w-stepper-color-border);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
li {
|
|
23
|
+
@include layout(flex, sm, v-center);
|
|
24
|
+
@include typography(normal);
|
|
25
|
+
@include spacing(m0);
|
|
26
|
+
|
|
27
|
+
flex: 1;
|
|
28
|
+
|
|
29
|
+
&.connect {
|
|
30
|
+
@include position(relative);
|
|
31
|
+
|
|
32
|
+
&::before {
|
|
33
|
+
@include position(absolute, l16px);
|
|
34
|
+
@include background(var(--w-stepper-color-border));
|
|
35
|
+
@include size(w2px);
|
|
36
|
+
|
|
37
|
+
top: -50%;
|
|
38
|
+
bottom: calc(50% + $size);
|
|
39
|
+
|
|
40
|
+
content: '';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&.completed::before,
|
|
44
|
+
&.active::before {
|
|
45
|
+
@include background(var(--w-stepper-color-complete));
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.active .number {
|
|
50
|
+
border-color: var(--w-stepper-color-active);
|
|
51
|
+
color: var(--w-stepper-color-active);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&.completed .number {
|
|
55
|
+
border-color: var(--w-stepper-color-complete);
|
|
56
|
+
color: var(--w-stepper-color-complete);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.number {
|
|
60
|
+
@include size($size);
|
|
61
|
+
@include border-radius(max);
|
|
62
|
+
@include layout(flex, center);
|
|
63
|
+
@include spacing(p-md);
|
|
64
|
+
@include typography(bold, md);
|
|
65
|
+
|
|
66
|
+
svg {
|
|
67
|
+
@include position(absolute);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
.container {
|
|
72
|
+
@include layout(flex, column);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.muted {
|
|
76
|
+
@include typography(primary-20, md);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@include media(xs) {
|
|
82
|
+
.stepper:not(.vertical) {
|
|
83
|
+
@include layout(row);
|
|
84
|
+
|
|
85
|
+
li {
|
|
86
|
+
@include layout(column, xs, v-center);
|
|
87
|
+
|
|
88
|
+
&.connect::before {
|
|
89
|
+
@include size(h2px);
|
|
90
|
+
|
|
91
|
+
width: auto;
|
|
92
|
+
top: 16px;
|
|
93
|
+
left: calc(-50%);
|
|
94
|
+
right: calc(50% + $size);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.container {
|
|
98
|
+
@include layout(v-center);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { IconProps } from '../Icon/icon'
|
|
2
|
+
|
|
3
|
+
export type StepperProps = {
|
|
4
|
+
items: {
|
|
5
|
+
icon?: IconProps['type'] | string
|
|
6
|
+
title?: string
|
|
7
|
+
subTitle?: string
|
|
8
|
+
completed?: boolean
|
|
9
|
+
active?: boolean
|
|
10
|
+
}[]
|
|
11
|
+
color?: string
|
|
12
|
+
completedColor?: string
|
|
13
|
+
activeColor?: string
|
|
14
|
+
borderless?: boolean
|
|
15
|
+
vertical?: boolean
|
|
16
|
+
className?: string
|
|
17
|
+
}
|
package/icons/close.svg
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path
|
|
2
|
+
<path d="M23 1L1 23M1 1L23 23" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
3
|
</svg>
|
package/icons/plus.svg
ADDED
package/icons.d.ts
CHANGED
package/icons.js
CHANGED
|
@@ -13,6 +13,7 @@ export { default as home } from './icons/home.svg?raw'
|
|
|
13
13
|
export { default as info } from './icons/info.svg?raw'
|
|
14
14
|
export { default as moon } from './icons/moon.svg?raw'
|
|
15
15
|
export { default as order } from './icons/order.svg?raw'
|
|
16
|
+
export { default as plus } from './icons/plus.svg?raw'
|
|
16
17
|
export { default as search } from './icons/search.svg?raw'
|
|
17
18
|
export { default as sun } from './icons/sun.svg?raw'
|
|
18
19
|
export { default as warning } from './icons/warning.svg?raw'
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcoreui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.7.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "husky",
|
|
7
7
|
"pre-commit": "lint-staged",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"lint": "eslint src/**/* --fix"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@astrojs/check": "0.
|
|
16
|
+
"@astrojs/check": "0.9.4",
|
|
17
17
|
"@astrojs/node": "8.3.4",
|
|
18
|
-
"@astrojs/react": "3.
|
|
18
|
+
"@astrojs/react": "3.6.2",
|
|
19
19
|
"@astrojs/svelte": "5.5.0",
|
|
20
20
|
"@eslint/js": "9.9.1",
|
|
21
21
|
"@typescript-eslint/parser": "8.3.0",
|
|
22
|
-
"astro": "4.
|
|
22
|
+
"astro": "4.16.7",
|
|
23
23
|
"astro-eslint-parser": "1.0.2",
|
|
24
24
|
"eslint": "9.9.1",
|
|
25
25
|
"eslint-plugin-astro": "1.2.3",
|
package/react.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react'
|
|
2
2
|
import type { AccordionProps as WAccordionProps } from './components/Accordion/accordion'
|
|
3
3
|
import type { ReactAlertProps as WReactAlertProps } from './components/Alert/alert'
|
|
4
|
+
import type { ReactAspectRatioProps as WReactAspectRatioProps } from './components/AspectRatio/aspectratio'
|
|
4
5
|
import type { AvatarProps as WAvatarProps } from './components/Avatar/avatar'
|
|
5
6
|
import type { ReactBadgeProps as WReactBadgeProps } from './components/Badge/badge'
|
|
7
|
+
import type { ReactBannerProps as WReactBannerProps } from './components/Banner/banner'
|
|
6
8
|
import type { BreadcrumbProps as WBreadcrumbProps } from './components/Breadcrumb/breadcrumb'
|
|
7
9
|
import type { ReactButtonProps as WReactButtonProps } from './components/Button/button'
|
|
8
10
|
import type { ReactCardProps as WReactCardProps } from './components/Card/card'
|
|
@@ -15,6 +17,7 @@ import type { ReactFooterProps as WReactFooterProps } from './components/Footer/
|
|
|
15
17
|
import type { ReactGroupProps as WReactGroupProps } from './components/Group/group'
|
|
16
18
|
import type { IconProps as WIconProps } from './components/Icon/icon'
|
|
17
19
|
import type { ReactInputProps as WReactInputProps } from './components/Input/input'
|
|
20
|
+
import type { ReactKbdProps as WReactKbdProps } from './components/Kbd/kbd'
|
|
18
21
|
import type { ReactListProps as WReactListProps } from './components/List/list'
|
|
19
22
|
import type { ReactMasonryProps as WReactMasonryProps } from './components/Masonry/masonry'
|
|
20
23
|
import type { ReactMenuProps as WReactMenuProps } from './components/Menu/menu'
|
|
@@ -29,6 +32,8 @@ import type { ReactSheetProps as WReactSheetProps } from './components/Sheet/she
|
|
|
29
32
|
import type { ReactSidebarProps as WReactSidebarProps } from './components/Sidebar/sidebar'
|
|
30
33
|
import type { ReactSliderProps as WReactSliderProps } from './components/Slider/slider'
|
|
31
34
|
import type { SpinnerProps as WSpinnerProps } from './components/Spinner/spinner'
|
|
35
|
+
import type { ReactSpoilerProps as WReactSpoilerProps } from './components/Spoiler/spoiler'
|
|
36
|
+
import type { StepperProps as WStepperProps } from './components/Stepper/stepper'
|
|
32
37
|
import type { ReactSwitchProps as WReactSwitchProps } from './components/Switch/switch'
|
|
33
38
|
import type { TableProps as WTableProps } from './components/Table/table'
|
|
34
39
|
import type { ReactTabsProps as WReactTabsProps } from './components/Tabs/tabs'
|
|
@@ -41,8 +46,10 @@ import type { ReactToastProps as WReactToastProps } from './components/Toast/toa
|
|
|
41
46
|
declare module 'webcoreui/react' {
|
|
42
47
|
export const Accordion: FC<WAccordionProps>
|
|
43
48
|
export const Alert: FC<WReactAlertProps>
|
|
49
|
+
export const AspectRatio: FC<WReactAspectRatioProps>
|
|
44
50
|
export const Avatar: FC<WAvatarProps>
|
|
45
51
|
export const Badge: FC<WReactBadgeProps>
|
|
52
|
+
export const Banner: FC<WReactBannerProps>
|
|
46
53
|
export const Breadcrumb: FC<WBreadcrumbProps>
|
|
47
54
|
export const Button: FC<WReactButtonProps>
|
|
48
55
|
export const Card: FC<WReactCardProps>
|
|
@@ -55,6 +62,7 @@ declare module 'webcoreui/react' {
|
|
|
55
62
|
export const Group: FC<WReactGroupProps>
|
|
56
63
|
export const Icon: FC<WIconProps>
|
|
57
64
|
export const Input: FC<WReactInputProps>
|
|
65
|
+
export const Kbd: FC<WReactKbdProps>
|
|
58
66
|
export const List: FC<WReactListProps>
|
|
59
67
|
export const Masonry: FC<WReactMasonryProps>
|
|
60
68
|
export const Menu: FC<WReactMenuProps>
|
|
@@ -69,6 +77,8 @@ declare module 'webcoreui/react' {
|
|
|
69
77
|
export const Sidebar: FC<WReactSidebarProps>
|
|
70
78
|
export const Slider: FC<WReactSliderProps>
|
|
71
79
|
export const Spinner: FC<WSpinnerProps>
|
|
80
|
+
export const Spoiler: FC<WReactSpoilerProps>
|
|
81
|
+
export const Stepper: FC<WStepperProps>
|
|
72
82
|
export const Switch: FC<WReactSwitchProps>
|
|
73
83
|
export const Table: FC<WTableProps>
|
|
74
84
|
export const Tabs: FC<WReactTabsProps>
|
|
@@ -80,8 +90,10 @@ declare module 'webcoreui/react' {
|
|
|
80
90
|
|
|
81
91
|
export type AccordionProps = WAccordionProps
|
|
82
92
|
export type AlertProps = WReactAlertProps
|
|
93
|
+
export type AspectRatioProps = WReactAspectRatioProps
|
|
83
94
|
export type AvatarProps = WAvatarProps
|
|
84
95
|
export type BadgeProps = WReactBadgeProps
|
|
96
|
+
export type BannerProps = WReactBannerProps
|
|
85
97
|
export type BreadcrumbProps = WBreadcrumbProps
|
|
86
98
|
export type ButtonProps = WReactButtonProps
|
|
87
99
|
export type CardProps = WReactCardProps
|
|
@@ -94,6 +106,7 @@ declare module 'webcoreui/react' {
|
|
|
94
106
|
export type GroupProps = WReactGroupProps
|
|
95
107
|
export type IconProps = WIconProps
|
|
96
108
|
export type InputProps = WReactInputProps
|
|
109
|
+
export type KbdProps = WReactKbdProps
|
|
97
110
|
export type ListProps = WReactListProps
|
|
98
111
|
export type MasonryProps = WReactMasonryProps
|
|
99
112
|
export type MenuProps = WReactMenuProps
|
|
@@ -108,6 +121,8 @@ declare module 'webcoreui/react' {
|
|
|
108
121
|
export type SidebarProps = WReactSidebarProps
|
|
109
122
|
export type SliderProps = WReactSliderProps
|
|
110
123
|
export type SpinnerProps = WSpinnerProps
|
|
124
|
+
export type SpoilerProps = WReactSpoilerProps
|
|
125
|
+
export type StepperProps = WStepperProps
|
|
111
126
|
export type SwitchProps = WReactSwitchProps
|
|
112
127
|
export type TableProps = WTableProps
|
|
113
128
|
export type TabsProps = WReactTabsProps
|
package/react.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import AccordionComponent from './components/Accordion/Accordion.tsx'
|
|
2
2
|
import AlertComponent from './components/Alert/Alert.tsx'
|
|
3
|
+
import AspectRatioComponent from './components/AspectRatio/AspectRatio.tsx'
|
|
3
4
|
import AvatarComponent from './components/Avatar/Avatar.tsx'
|
|
4
5
|
import BadgeComponent from './components/Badge/Badge.tsx'
|
|
6
|
+
import BannerComponent from './components/Banner/Banner.tsx'
|
|
5
7
|
import BreadcrumbComponent from './components/Breadcrumb/Breadcrumb.tsx'
|
|
6
8
|
import ButtonComponent from './components/Button/Button.tsx'
|
|
7
9
|
import CardComponent from './components/Card/Card.tsx'
|
|
@@ -14,6 +16,7 @@ import FooterComponent from './components/Footer/Footer.tsx'
|
|
|
14
16
|
import GroupComponent from './components/Group/Group.tsx'
|
|
15
17
|
import IconComponent from './components/Icon/Icon.tsx'
|
|
16
18
|
import InputComponent from './components/Input/Input.tsx'
|
|
19
|
+
import KbdComponent from './components/Kbd/Kbd.tsx'
|
|
17
20
|
import ListComponent from './components/List/List.tsx'
|
|
18
21
|
import MasonryComponent from './components/Masonry/Masonry.tsx'
|
|
19
22
|
import MenuComponent from './components/Menu/Menu.tsx'
|
|
@@ -28,6 +31,8 @@ import SheetComponent from './components/Sheet/Sheet.tsx'
|
|
|
28
31
|
import SidebarComponent from './components/Sidebar/Sidebar.tsx'
|
|
29
32
|
import SliderComponent from './components/Slider/Slider.tsx'
|
|
30
33
|
import SpinnerComponent from './components/Spinner/Spinner.tsx'
|
|
34
|
+
import SpoilerComponent from './components/Spoiler/Spoiler.tsx'
|
|
35
|
+
import StepperComponent from './components/Stepper/Stepper.tsx'
|
|
31
36
|
import SwitchComponent from './components/Switch/Switch.tsx'
|
|
32
37
|
import TableComponent from './components/Table/Table.tsx'
|
|
33
38
|
import TabsComponent from './components/Tabs/Tabs.tsx'
|
|
@@ -39,8 +44,10 @@ import ToastComponent from './components/Toast/Toast.tsx'
|
|
|
39
44
|
|
|
40
45
|
export const Accordion = AccordionComponent
|
|
41
46
|
export const Alert = AlertComponent
|
|
47
|
+
export const AspectRatio = AspectRatioComponent
|
|
42
48
|
export const Avatar = AvatarComponent
|
|
43
49
|
export const Badge = BadgeComponent
|
|
50
|
+
export const Banner = BannerComponent
|
|
44
51
|
export const Breadcrumb = BreadcrumbComponent
|
|
45
52
|
export const Button = ButtonComponent
|
|
46
53
|
export const Card = CardComponent
|
|
@@ -53,6 +60,7 @@ export const Footer = FooterComponent
|
|
|
53
60
|
export const Group = GroupComponent
|
|
54
61
|
export const Icon = IconComponent
|
|
55
62
|
export const Input = InputComponent
|
|
63
|
+
export const Kbd = KbdComponent
|
|
56
64
|
export const List = ListComponent
|
|
57
65
|
export const Masonry = MasonryComponent
|
|
58
66
|
export const Menu = MenuComponent
|
|
@@ -67,6 +75,8 @@ export const Sheet = SheetComponent
|
|
|
67
75
|
export const Sidebar = SidebarComponent
|
|
68
76
|
export const Slider = SliderComponent
|
|
69
77
|
export const Spinner = SpinnerComponent
|
|
78
|
+
export const Spoiler = SpoilerComponent
|
|
79
|
+
export const Stepper = StepperComponent
|
|
70
80
|
export const Switch = SwitchComponent
|
|
71
81
|
export const Table = TableComponent
|
|
72
82
|
export const Tabs = TabsComponent
|
package/scss/global/utility.scss
CHANGED
package/scss/resets.scss
CHANGED
package/svelte.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { SvelteComponent } from 'svelte'
|
|
2
2
|
import type { AccordionProps as WAccordionProps } from './components/Accordion/accordion'
|
|
3
3
|
import type { AlertProps as WAlertProps } from './components/Alert/alert'
|
|
4
|
+
import type { AspectRatioProps as WAspectRatioProps } from './components/AspectRatio/aspectratio'
|
|
4
5
|
import type { AvatarProps as WAvatarProps } from './components/Avatar/avatar'
|
|
5
6
|
import type { SvelteBadgeProps as WSvelteBadgeProps } from './components/Badge/badge'
|
|
7
|
+
import type { BannerProps as WBannerProps } from './components/Banner/banner'
|
|
6
8
|
import type { BreadcrumbProps as WBreadcrumbProps } from './components/Breadcrumb/breadcrumb'
|
|
7
9
|
import type { SvelteButtonProps as WSvelteButtonProps } from './components/Button/button'
|
|
8
10
|
import type { CardProps as WCardProps } from './components/Card/card'
|
|
@@ -15,6 +17,7 @@ import type { FooterProps as WFooterProps } from './components/Footer/footer'
|
|
|
15
17
|
import type { GroupProps as WGroupProps } from './components/Group/group'
|
|
16
18
|
import type { IconProps as WIconProps } from './components/Icon/icon'
|
|
17
19
|
import type { SvelteInputProps as WSvelteInputProps } from './components/Input/input'
|
|
20
|
+
import type { KbdProps as WKbdProps } from './components/Kbd/kbd'
|
|
18
21
|
import type { SvelteListProps as WSvelteListProps } from './components/List/list'
|
|
19
22
|
import type { SvelteMasonryProps as WSvelteMasonryProps } from './components/Masonry/masonry'
|
|
20
23
|
import type { MenuProps as WMenuProps } from './components/Menu/menu'
|
|
@@ -29,6 +32,8 @@ import type { SheetProps as WSheetProps } from './components/Sheet/sheet'
|
|
|
29
32
|
import type { SidebarProps as WSidebarProps } from './components/Sidebar/sidebar'
|
|
30
33
|
import type { SvelteSliderProps as WSvelteSliderProps } from './components/Slider/slider'
|
|
31
34
|
import type { SpinnerProps as WSpinnerProps } from './components/Spinner/spinner'
|
|
35
|
+
import type { SpoilerProps as WSpoilerProps } from './components/Spoiler/spoiler'
|
|
36
|
+
import type { StepperProps as WStepperProps } from './components/Stepper/stepper'
|
|
32
37
|
import type { SvelteSwitchProps as WSvelteSwitchProps } from './components/Switch/switch'
|
|
33
38
|
import type { TableProps as WTableProps } from './components/Table/table'
|
|
34
39
|
import type { TabsProps as WTabsProps } from './components/Tabs/tabs'
|
|
@@ -41,8 +46,10 @@ import type { ToastProps as WToastProps } from './components/Toast/toast'
|
|
|
41
46
|
declare module 'webcoreui/svelte' {
|
|
42
47
|
export class Accordion extends SvelteComponent<WAccordionProps> {}
|
|
43
48
|
export class Alert extends SvelteComponent<WAlertProps> {}
|
|
49
|
+
export class AspectRatio extends SvelteComponent<WAspectRatioProps> {}
|
|
44
50
|
export class Avatar extends SvelteComponent<WAvatarProps> {}
|
|
45
51
|
export class Badge extends SvelteComponent<WSvelteBadgeProps> {}
|
|
52
|
+
export class Banner extends SvelteComponent<WBannerProps> {}
|
|
46
53
|
export class Breadcrumb extends SvelteComponent<WBreadcrumbProps> {}
|
|
47
54
|
export class Button extends SvelteComponent<WSvelteButtonProps> {}
|
|
48
55
|
export class Card extends SvelteComponent<WCardProps> {}
|
|
@@ -55,6 +62,7 @@ declare module 'webcoreui/svelte' {
|
|
|
55
62
|
export class Group extends SvelteComponent<WGroupProps> {}
|
|
56
63
|
export class Icon extends SvelteComponent<WIconProps> {}
|
|
57
64
|
export class Input extends SvelteComponent<WSvelteInputProps> {}
|
|
65
|
+
export class Kbd extends SvelteComponent<WKbdProps> {}
|
|
58
66
|
export class List extends SvelteComponent<WSvelteListProps> {}
|
|
59
67
|
export class Masonry extends SvelteComponent<WSvelteMasonryProps> {}
|
|
60
68
|
export class Menu extends SvelteComponent<WMenuProps> {}
|
|
@@ -69,6 +77,8 @@ declare module 'webcoreui/svelte' {
|
|
|
69
77
|
export class Sidebar extends SvelteComponent<WSidebarProps> {}
|
|
70
78
|
export class Slider extends SvelteComponent<WSvelteSliderProps> {}
|
|
71
79
|
export class Spinner extends SvelteComponent<WSpinnerProps> {}
|
|
80
|
+
export class Spoiler extends SvelteComponent<WSpoilerProps> {}
|
|
81
|
+
export class Stepper extends SvelteComponent<WStepperProps> {}
|
|
72
82
|
export class Switch extends SvelteComponent<WSvelteSwitchProps> {}
|
|
73
83
|
export class Table extends SvelteComponent<WTableProps> {}
|
|
74
84
|
export class Tabs extends SvelteComponent<WTabsProps> {}
|
|
@@ -80,8 +90,10 @@ declare module 'webcoreui/svelte' {
|
|
|
80
90
|
|
|
81
91
|
export type AccordionProps = WAccordionProps
|
|
82
92
|
export type AlertProps = WAlertProps
|
|
93
|
+
export type AspectRatioProps = WAspectRatioProps
|
|
83
94
|
export type AvatarProps = WAvatarProps
|
|
84
95
|
export type BadgeProps = WSvelteBadgeProps
|
|
96
|
+
export type BannerProps = WBannerProps
|
|
85
97
|
export type BreadcrumbProps = WBreadcrumbProps
|
|
86
98
|
export type ButtonProps = WSvelteButtonProps
|
|
87
99
|
export type CardProps = WCardProps
|
|
@@ -94,6 +106,7 @@ declare module 'webcoreui/svelte' {
|
|
|
94
106
|
export type GroupProps = WGroupProps
|
|
95
107
|
export type IconProps = WIconProps
|
|
96
108
|
export type InputProps = WSvelteInputProps
|
|
109
|
+
export type KbdProps = WKbdProps
|
|
97
110
|
export type ListProps = WSvelteListProps
|
|
98
111
|
export type MasonryProps = WSvelteMasonryProps
|
|
99
112
|
export type MenuProps = WMenuProps
|
|
@@ -108,6 +121,8 @@ declare module 'webcoreui/svelte' {
|
|
|
108
121
|
export type SidebarProps = WSidebarProps
|
|
109
122
|
export type SliderProps = WSvelteSliderProps
|
|
110
123
|
export type SpinnerProps = WSpinnerProps
|
|
124
|
+
export type SpoilerProps = WSpoilerProps
|
|
125
|
+
export type StepperProps = WStepperProps
|
|
111
126
|
export type SwitchProps = WSvelteSwitchProps
|
|
112
127
|
export type TableProps = WTableProps
|
|
113
128
|
export type TabsProps = WTabsProps
|
package/svelte.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import AccordionComponent from './components/Accordion/Accordion.svelte'
|
|
2
2
|
import AlertComponent from './components/Alert/Alert.svelte'
|
|
3
|
+
import AspectRatioComponent from './components/AspectRatio/AspectRatio.svelte'
|
|
3
4
|
import AvatarComponent from './components/Avatar/Avatar.svelte'
|
|
4
5
|
import BadgeComponent from './components/Badge/Badge.svelte'
|
|
6
|
+
import BannerComponent from './components/Banner/Banner.svelte'
|
|
5
7
|
import BreadcrumbComponent from './components/Breadcrumb/Breadcrumb.svelte'
|
|
6
8
|
import ButtonComponent from './components/Button/Button.svelte'
|
|
7
9
|
import CardComponent from './components/Card/Card.svelte'
|
|
@@ -14,6 +16,7 @@ import FooterComponent from './components/Footer/Footer.svelte'
|
|
|
14
16
|
import GroupComponent from './components/Group/Group.svelte'
|
|
15
17
|
import IconComponent from './components/Icon/Icon.svelte'
|
|
16
18
|
import InputComponent from './components/Input/Input.svelte'
|
|
19
|
+
import KbdComponent from './components/Kbd/Kbd.svelte'
|
|
17
20
|
import ListComponent from './components/List/List.svelte'
|
|
18
21
|
import MasonryComponent from './components/Masonry/Masonry.svelte'
|
|
19
22
|
import MenuComponent from './components/Menu/Menu.svelte'
|
|
@@ -28,6 +31,8 @@ import SheetComponent from './components/Sheet/Sheet.svelte'
|
|
|
28
31
|
import SidebarComponent from './components/Sidebar/Sidebar.svelte'
|
|
29
32
|
import SliderComponent from './components/Slider/Slider.svelte'
|
|
30
33
|
import SpinnerComponent from './components/Spinner/Spinner.svelte'
|
|
34
|
+
import SpoilerComponent from './components/Spoiler/Spoiler.svelte'
|
|
35
|
+
import StepperComponent from './components/Stepper/Stepper.svelte'
|
|
31
36
|
import SwitchComponent from './components/Switch/Switch.svelte'
|
|
32
37
|
import TableComponent from './components/Table/Table.svelte'
|
|
33
38
|
import TabsComponent from './components/Tabs/Tabs.svelte'
|
|
@@ -39,8 +44,10 @@ import ToastComponent from './components/Toast/Toast.svelte'
|
|
|
39
44
|
|
|
40
45
|
export const Accordion = AccordionComponent
|
|
41
46
|
export const Alert = AlertComponent
|
|
47
|
+
export const AspectRatio = AspectRatioComponent
|
|
42
48
|
export const Avatar = AvatarComponent
|
|
43
49
|
export const Badge = BadgeComponent
|
|
50
|
+
export const Banner = BannerComponent
|
|
44
51
|
export const Breadcrumb = BreadcrumbComponent
|
|
45
52
|
export const Button = ButtonComponent
|
|
46
53
|
export const Card = CardComponent
|
|
@@ -53,6 +60,7 @@ export const Footer = FooterComponent
|
|
|
53
60
|
export const Group = GroupComponent
|
|
54
61
|
export const Icon = IconComponent
|
|
55
62
|
export const Input = InputComponent
|
|
63
|
+
export const Kbd = KbdComponent
|
|
56
64
|
export const List = ListComponent
|
|
57
65
|
export const Masonry = MasonryComponent
|
|
58
66
|
export const Menu = MenuComponent
|
|
@@ -67,6 +75,8 @@ export const Sheet = SheetComponent
|
|
|
67
75
|
export const Sidebar = SidebarComponent
|
|
68
76
|
export const Slider = SliderComponent
|
|
69
77
|
export const Spinner = SpinnerComponent
|
|
78
|
+
export const Spoiler = SpoilerComponent
|
|
79
|
+
export const Stepper = StepperComponent
|
|
70
80
|
export const Switch = SwitchComponent
|
|
71
81
|
export const Table = TableComponent
|
|
72
82
|
export const Tabs = TabsComponent
|