webcoreui 0.10.1 → 1.1.0-beta.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 +15 -8
- package/astro.d.ts +6 -0
- package/astro.js +4 -0
- package/components/Carousel/Carousel.svelte +18 -15
- package/components/OTPInput/OTPInput.astro +96 -0
- package/components/OTPInput/OTPInput.svelte +73 -0
- package/components/OTPInput/OTPInput.tsx +93 -0
- package/components/OTPInput/otpinput.module.scss +85 -0
- package/components/OTPInput/otpinput.ts +11 -0
- package/components/Pagination/Pagination.svelte +1 -1
- package/components/Rating/Rating.svelte +1 -1
- package/components/SpeedDial/SpeedDial.astro +106 -0
- package/components/SpeedDial/SpeedDial.svelte +102 -0
- package/components/SpeedDial/SpeedDial.tsx +106 -0
- package/components/SpeedDial/speeddial.module.scss +94 -0
- package/components/SpeedDial/speeddial.ts +18 -0
- package/components/Switch/Switch.astro +1 -1
- package/components/Switch/Switch.svelte +1 -1
- package/components/Switch/Switch.tsx +6 -1
- package/components/Timeline/timeline.module.scss +11 -0
- package/components/Timeline/timeline.ts +1 -1
- package/components/TimelineItem/TimelineItem.astro +12 -0
- package/components/TimelineItem/TimelineItem.svelte +7 -0
- package/components/TimelineItem/TimelineItem.tsx +8 -0
- package/components/TimelineItem/timelineitem.module.scss +16 -1
- package/components/TimelineItem/timelineitem.ts +3 -0
- package/index.d.ts +3 -0
- package/index.js +2 -1
- package/package.json +17 -17
- package/react.d.ts +6 -0
- package/react.js +4 -0
- package/scss/config/color-palette.scss +1 -1
- package/scss/config/css-values.scss +1 -1
- package/scss/config/layout.scss +1 -1
- package/scss/config/mixins.scss +1 -1
- package/scss/config/typography.scss +1 -1
- package/scss/config/variables.scss +1 -1
- package/scss/config.scss +1 -1
- package/scss/global/theme.scss +77 -49
- package/scss/resets.scss +10 -1
- package/svelte.d.ts +6 -0
- package/svelte.js +4 -0
- package/utils/getLayoutClasses.ts +1 -1
- package/utils/modal.ts +1 -1
- package/utils/popover.ts +2 -2
- package/utils/webcore.ts +28 -0
package/package.json
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webcoreui",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "1.1.0-beta.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepare": "husky",
|
|
7
7
|
"pre-commit": "lint-staged",
|
|
8
8
|
"dev": "astro dev",
|
|
9
9
|
"build": "astro check && astro build",
|
|
10
10
|
"build:package": "node scripts/build.js",
|
|
11
|
-
"build:local": "node scripts/build.js --local",
|
|
12
11
|
"compile": "node scripts/sass.js",
|
|
13
12
|
"test": "cd .. && vitest run && npm run test:sass",
|
|
14
13
|
"test:dev": "vitest",
|
|
@@ -19,29 +18,30 @@
|
|
|
19
18
|
},
|
|
20
19
|
"devDependencies": {
|
|
21
20
|
"@astrojs/check": "0.9.4",
|
|
22
|
-
"@astrojs/node": "9.
|
|
23
|
-
"@astrojs/react": "4.1
|
|
24
|
-
"@astrojs/svelte": "7.0.
|
|
25
|
-
"@eslint/js": "9.
|
|
26
|
-
"@
|
|
27
|
-
"
|
|
28
|
-
"astro
|
|
29
|
-
"eslint": "
|
|
21
|
+
"@astrojs/node": "9.1.3",
|
|
22
|
+
"@astrojs/react": "4.2.1",
|
|
23
|
+
"@astrojs/svelte": "7.0.7",
|
|
24
|
+
"@eslint/js": "9.23.0",
|
|
25
|
+
"@types/node": "24.2.1",
|
|
26
|
+
"@typescript-eslint/parser": "8.27.0",
|
|
27
|
+
"astro": "5.5.4",
|
|
28
|
+
"astro-eslint-parser": "1.2.2",
|
|
29
|
+
"eslint": "9.23.0",
|
|
30
30
|
"eslint-plugin-astro": "1.3.1",
|
|
31
31
|
"eslint-plugin-react": "7.37.4",
|
|
32
32
|
"eslint-plugin-simple-import-sort": "12.1.1",
|
|
33
|
-
"eslint-plugin-svelte": "
|
|
33
|
+
"eslint-plugin-svelte": "3.3.3",
|
|
34
34
|
"husky": "9.1.7",
|
|
35
35
|
"jsdom": "26.0.0",
|
|
36
|
-
"lint-staged": "15.
|
|
36
|
+
"lint-staged": "15.5.0",
|
|
37
37
|
"react": "19.0.0",
|
|
38
38
|
"react-dom": "19.0.0",
|
|
39
|
-
"sass": "1.
|
|
39
|
+
"sass": "1.86.0",
|
|
40
40
|
"sass-true": "8.1.0",
|
|
41
|
-
"svelte": "5.
|
|
42
|
-
"svelte-eslint-parser": "
|
|
43
|
-
"typescript": "5.
|
|
44
|
-
"typescript-eslint": "8.
|
|
41
|
+
"svelte": "5.25.3",
|
|
42
|
+
"svelte-eslint-parser": "1.1.0",
|
|
43
|
+
"typescript": "5.8.2",
|
|
44
|
+
"typescript-eslint": "8.27.0",
|
|
45
45
|
"vite-tsconfig-paths": "5.1.4",
|
|
46
46
|
"vitest": "3.0.4"
|
|
47
47
|
},
|
package/react.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import type { ReactListProps as WReactListProps } from './components/List/list'
|
|
|
26
26
|
import type { ReactMasonryProps as WReactMasonryProps } from './components/Masonry/masonry'
|
|
27
27
|
import type { ReactMenuProps as WReactMenuProps } from './components/Menu/menu'
|
|
28
28
|
import type { ReactModalProps as WReactModalProps } from './components/Modal/modal'
|
|
29
|
+
import type { OTPInputProps as WOTPInputProps } from './components/OTPInput/otpinput'
|
|
29
30
|
import type { ReactPaginationProps as WReactPaginationProps } from './components/Pagination/pagination'
|
|
30
31
|
import type { ReactPopoverProps as WReactPopoverProps } from './components/Popover/popover'
|
|
31
32
|
import type { ProgressProps as WProgressProps } from './components/Progress/progress'
|
|
@@ -37,6 +38,7 @@ import type { ReactSheetProps as WReactSheetProps } from './components/Sheet/she
|
|
|
37
38
|
import type { ReactSidebarProps as WReactSidebarProps } from './components/Sidebar/sidebar'
|
|
38
39
|
import type { SkeletonProps as WSkeletonProps } from './components/Skeleton/skeleton'
|
|
39
40
|
import type { ReactSliderProps as WReactSliderProps } from './components/Slider/slider'
|
|
41
|
+
import type { SpeedDialProps as WSpeedDialProps } from './components/SpeedDial/speeddial'
|
|
40
42
|
import type { SpinnerProps as WSpinnerProps } from './components/Spinner/spinner'
|
|
41
43
|
import type { ReactSpoilerProps as WReactSpoilerProps } from './components/Spoiler/spoiler'
|
|
42
44
|
import type { StepperProps as WStepperProps } from './components/Stepper/stepper'
|
|
@@ -82,6 +84,7 @@ declare module 'webcoreui/react' {
|
|
|
82
84
|
export const Masonry: FC<WReactMasonryProps>
|
|
83
85
|
export const Menu: FC<WReactMenuProps>
|
|
84
86
|
export const Modal: FC<WReactModalProps>
|
|
87
|
+
export const OTPInput: FC<WOTPInputProps>
|
|
85
88
|
export const Pagination: FC<WReactPaginationProps>
|
|
86
89
|
export const Popover: FC<WReactPopoverProps>
|
|
87
90
|
export const Progress: FC<WProgressProps>
|
|
@@ -93,6 +96,7 @@ declare module 'webcoreui/react' {
|
|
|
93
96
|
export const Sidebar: FC<WReactSidebarProps>
|
|
94
97
|
export const Skeleton: FC<WSkeletonProps>
|
|
95
98
|
export const Slider: FC<WReactSliderProps>
|
|
99
|
+
export const SpeedDial: FC<WSpeedDialProps>
|
|
96
100
|
export const Spinner: FC<WSpinnerProps>
|
|
97
101
|
export const Spoiler: FC<WReactSpoilerProps>
|
|
98
102
|
export const Stepper: FC<WStepperProps>
|
|
@@ -132,6 +136,7 @@ declare module 'webcoreui/react' {
|
|
|
132
136
|
export type MasonryProps = WReactMasonryProps
|
|
133
137
|
export type MenuProps = WReactMenuProps
|
|
134
138
|
export type ModalProps = WReactModalProps
|
|
139
|
+
export type OTPInputProps = WOTPInputProps
|
|
135
140
|
export type PaginationProps = WReactPaginationProps
|
|
136
141
|
export type PopoverProps = WReactPopoverProps
|
|
137
142
|
export type ProgressProps = WProgressProps
|
|
@@ -143,6 +148,7 @@ declare module 'webcoreui/react' {
|
|
|
143
148
|
export type SidebarProps = WReactSidebarProps
|
|
144
149
|
export type SkeletonProps = WSkeletonProps
|
|
145
150
|
export type SliderProps = WReactSliderProps
|
|
151
|
+
export type SpeedDialProps = WSpeedDialProps
|
|
146
152
|
export type SpinnerProps = WSpinnerProps
|
|
147
153
|
export type SpoilerProps = WReactSpoilerProps
|
|
148
154
|
export type StepperProps = WStepperProps
|
package/react.js
CHANGED
|
@@ -25,6 +25,7 @@ import ListComponent from './components/List/List.tsx'
|
|
|
25
25
|
import MasonryComponent from './components/Masonry/Masonry.tsx'
|
|
26
26
|
import MenuComponent from './components/Menu/Menu.tsx'
|
|
27
27
|
import ModalComponent from './components/Modal/Modal.tsx'
|
|
28
|
+
import OTPInputComponent from './components/OTPInput/OTPInput.tsx'
|
|
28
29
|
import PaginationComponent from './components/Pagination/Pagination.tsx'
|
|
29
30
|
import PopoverComponent from './components/Popover/Popover.tsx'
|
|
30
31
|
import ProgressComponent from './components/Progress/Progress.tsx'
|
|
@@ -36,6 +37,7 @@ import SheetComponent from './components/Sheet/Sheet.tsx'
|
|
|
36
37
|
import SidebarComponent from './components/Sidebar/Sidebar.tsx'
|
|
37
38
|
import SkeletonComponent from './components/Skeleton/Skeleton.tsx'
|
|
38
39
|
import SliderComponent from './components/Slider/Slider.tsx'
|
|
40
|
+
import SpeedDialComponent from './components/SpeedDial/SpeedDial.tsx'
|
|
39
41
|
import SpinnerComponent from './components/Spinner/Spinner.tsx'
|
|
40
42
|
import SpoilerComponent from './components/Spoiler/Spoiler.tsx'
|
|
41
43
|
import StepperComponent from './components/Stepper/Stepper.tsx'
|
|
@@ -75,6 +77,7 @@ export const List = ListComponent
|
|
|
75
77
|
export const Masonry = MasonryComponent
|
|
76
78
|
export const Menu = MenuComponent
|
|
77
79
|
export const Modal = ModalComponent
|
|
80
|
+
export const OTPInput = OTPInputComponent
|
|
78
81
|
export const Pagination = PaginationComponent
|
|
79
82
|
export const Popover = PopoverComponent
|
|
80
83
|
export const Progress = ProgressComponent
|
|
@@ -86,6 +89,7 @@ export const Sheet = SheetComponent
|
|
|
86
89
|
export const Sidebar = SidebarComponent
|
|
87
90
|
export const Skeleton = SkeletonComponent
|
|
88
91
|
export const Slider = SliderComponent
|
|
92
|
+
export const SpeedDial = SpeedDialComponent
|
|
89
93
|
export const Spinner = SpinnerComponent
|
|
90
94
|
export const Spoiler = SpoilerComponent
|
|
91
95
|
export const Stepper = StepperComponent
|
package/scss/config/layout.scss
CHANGED
package/scss/config/mixins.scss
CHANGED
package/scss/config.scss
CHANGED
package/scss/global/theme.scss
CHANGED
|
@@ -34,24 +34,24 @@
|
|
|
34
34
|
--w-color-scheme: light;
|
|
35
35
|
--w-color-primary: #000;
|
|
36
36
|
--w-color-primary-10: #111;
|
|
37
|
-
--w-color-primary-20: #
|
|
38
|
-
--w-color-primary-30: #
|
|
39
|
-
--w-color-primary-40: #
|
|
37
|
+
--w-color-primary-20: #252525;
|
|
38
|
+
--w-color-primary-30: #757575;
|
|
39
|
+
--w-color-primary-40: #BBB;
|
|
40
40
|
--w-color-primary-50: #DDD;
|
|
41
|
-
--w-color-primary-60: #
|
|
41
|
+
--w-color-primary-60: #EEE;
|
|
42
42
|
--w-color-primary-70: #FFF;
|
|
43
|
-
|
|
44
|
-
--w-color-info: #
|
|
45
|
-
--w-color-info-accent: #
|
|
46
|
-
--w-color-info-fg: #
|
|
47
|
-
--w-color-success: #
|
|
48
|
-
--w-color-success-accent: #
|
|
49
|
-
--w-color-success-fg: #
|
|
50
|
-
--w-color-warning: #
|
|
51
|
-
--w-color-warning-accent: #
|
|
52
|
-
--w-color-warning-fg: #
|
|
53
|
-
--w-color-alert: #
|
|
54
|
-
--w-color-alert-accent: #
|
|
43
|
+
|
|
44
|
+
--w-color-info: #0073A8;
|
|
45
|
+
--w-color-info-accent: #009FCC;
|
|
46
|
+
--w-color-info-fg: #FFF;
|
|
47
|
+
--w-color-success: #0A754D;
|
|
48
|
+
--w-color-success-accent: #16A062;
|
|
49
|
+
--w-color-success-fg: #FFF;
|
|
50
|
+
--w-color-warning: #C76D00;
|
|
51
|
+
--w-color-warning-accent: #E3861D;
|
|
52
|
+
--w-color-warning-fg: #FFF;
|
|
53
|
+
--w-color-alert: #A51415;
|
|
54
|
+
--w-color-alert-accent: #C62828;
|
|
55
55
|
--w-color-alert-fg: #FFF;
|
|
56
56
|
--w-color-overlay: #0000009e;
|
|
57
57
|
}
|
|
@@ -87,29 +87,29 @@
|
|
|
87
87
|
|
|
88
88
|
@if $theme == 'vintage' {
|
|
89
89
|
#{$selector} {
|
|
90
|
-
--w-color-scheme:
|
|
91
|
-
--w-color-primary: #
|
|
92
|
-
--w-color-primary-10: #
|
|
93
|
-
--w-color-primary-20: #
|
|
94
|
-
--w-color-primary-30: #
|
|
95
|
-
--w-color-primary-40: #
|
|
96
|
-
--w-color-primary-50: #
|
|
97
|
-
--w-color-primary-60: #
|
|
98
|
-
--w-color-primary-70: #
|
|
99
|
-
|
|
100
|
-
--w-color-info: #
|
|
101
|
-
--w-color-info-accent: #
|
|
102
|
-
--w-color-info-fg: #
|
|
103
|
-
--w-color-success: #
|
|
104
|
-
--w-color-success-accent: #
|
|
105
|
-
--w-color-success-fg: #
|
|
106
|
-
--w-color-warning: #
|
|
107
|
-
--w-color-warning-accent: #
|
|
90
|
+
--w-color-scheme: light;
|
|
91
|
+
--w-color-primary: #1A110D;
|
|
92
|
+
--w-color-primary-10: #2C1F18;
|
|
93
|
+
--w-color-primary-20: #8B5A3C;
|
|
94
|
+
--w-color-primary-30: #c09d82;
|
|
95
|
+
--w-color-primary-40: #B89678;
|
|
96
|
+
--w-color-primary-50: #D8BFA5;
|
|
97
|
+
--w-color-primary-60: #F0DCC4;
|
|
98
|
+
--w-color-primary-70: #F6E8DA;
|
|
99
|
+
|
|
100
|
+
--w-color-info: #3F73B7;
|
|
101
|
+
--w-color-info-accent: #4992f0;
|
|
102
|
+
--w-color-info-fg: #FFF;
|
|
103
|
+
--w-color-success: #33907f;
|
|
104
|
+
--w-color-success-accent: #1BB890;
|
|
105
|
+
--w-color-success-fg: #FFF;
|
|
106
|
+
--w-color-warning: #e08447;
|
|
107
|
+
--w-color-warning-accent: #f1985c;
|
|
108
108
|
--w-color-warning-fg: #000;
|
|
109
|
-
--w-color-alert: #
|
|
110
|
-
--w-color-alert-accent: #
|
|
109
|
+
--w-color-alert: #923B46;
|
|
110
|
+
--w-color-alert-accent: #C33F50;
|
|
111
111
|
--w-color-alert-fg: #FFF;
|
|
112
|
-
--w-color-overlay: #
|
|
112
|
+
--w-color-overlay: #33211B9E;
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -145,29 +145,57 @@
|
|
|
145
145
|
#{$selector} {
|
|
146
146
|
--w-color-scheme: dark;
|
|
147
147
|
--w-color-primary: #FFF;
|
|
148
|
-
--w-color-primary-10: #
|
|
149
|
-
--w-color-primary-20: #
|
|
150
|
-
--w-color-primary-30: #
|
|
151
|
-
--w-color-primary-40: #
|
|
152
|
-
--w-color-primary-50: #
|
|
148
|
+
--w-color-primary-10: #F0F0F0;
|
|
149
|
+
--w-color-primary-20: #F6C8A9;
|
|
150
|
+
--w-color-primary-30: #E5B1FF;
|
|
151
|
+
--w-color-primary-40: #761EAA;
|
|
152
|
+
--w-color-primary-50: #912BCE;
|
|
153
153
|
--w-color-primary-60: #0f1b33;
|
|
154
|
-
--w-color-primary-70: #
|
|
154
|
+
--w-color-primary-70: #060E21;
|
|
155
155
|
|
|
156
156
|
--w-color-info: #1c98ff;
|
|
157
157
|
--w-color-info-accent: #6be4ff;
|
|
158
158
|
--w-color-info-fg: #000;
|
|
159
|
-
--w-color-success: #
|
|
160
|
-
--w-color-success-accent: #
|
|
159
|
+
--w-color-success: #7ADA00;
|
|
160
|
+
--w-color-success-accent: #A8FF4D;
|
|
161
161
|
--w-color-success-fg: #000;
|
|
162
|
-
--w-color-warning: #
|
|
163
|
-
--w-color-warning-accent: #
|
|
162
|
+
--w-color-warning: #FF912F;
|
|
163
|
+
--w-color-warning-accent: #FFA95A;
|
|
164
164
|
--w-color-warning-fg: #000;
|
|
165
|
-
--w-color-alert: #
|
|
166
|
-
--w-color-alert-accent: #
|
|
165
|
+
--w-color-alert: #F63131;
|
|
166
|
+
--w-color-alert-accent: #E84647;
|
|
167
167
|
--w-color-alert-fg: #FFF;
|
|
168
168
|
--w-color-overlay: #13002cc2;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
+
|
|
172
|
+
@if $theme == 'velvet' {
|
|
173
|
+
#{$selector} {
|
|
174
|
+
--w-color-scheme: dark;
|
|
175
|
+
--w-color-primary: #EDE0E0;
|
|
176
|
+
--w-color-primary-10: #D6C1C1;
|
|
177
|
+
--w-color-primary-20: #fab6b6;
|
|
178
|
+
--w-color-primary-30: #c47272;
|
|
179
|
+
--w-color-primary-40: #661B1B;
|
|
180
|
+
--w-color-primary-50: #520F0F;
|
|
181
|
+
--w-color-primary-60: #2E0B0B;
|
|
182
|
+
--w-color-primary-70: #180505;
|
|
183
|
+
|
|
184
|
+
--w-color-info: #36587A;
|
|
185
|
+
--w-color-info-accent: #4F7BAF;
|
|
186
|
+
--w-color-info-fg: #FFF;
|
|
187
|
+
--w-color-success: #f2b900;
|
|
188
|
+
--w-color-success-accent: #ffd341;
|
|
189
|
+
--w-color-success-fg: #000;
|
|
190
|
+
--w-color-warning: #e5601e;
|
|
191
|
+
--w-color-warning-accent: #E4783D;
|
|
192
|
+
--w-color-warning-fg: #000;
|
|
193
|
+
--w-color-alert: #B8001F;
|
|
194
|
+
--w-color-alert-accent: #E00028;
|
|
195
|
+
--w-color-alert-fg: #FFF;
|
|
196
|
+
--w-color-overlay: #13050599;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
171
199
|
}
|
|
172
200
|
|
|
173
201
|
|
package/scss/resets.scss
CHANGED
|
@@ -38,6 +38,10 @@
|
|
|
38
38
|
strong,
|
|
39
39
|
b {
|
|
40
40
|
font-family: Bold, 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
|
|
41
|
+
|
|
42
|
+
@if ($fontBold) {
|
|
43
|
+
font-weight: normal;
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
|
|
43
47
|
a {
|
|
@@ -117,8 +121,13 @@
|
|
|
117
121
|
}
|
|
118
122
|
|
|
119
123
|
thead,
|
|
120
|
-
tfoot
|
|
124
|
+
tfoot,
|
|
125
|
+
th {
|
|
121
126
|
@include typography(bold);
|
|
127
|
+
|
|
128
|
+
@if ($fontBold) {
|
|
129
|
+
font-weight: normal;
|
|
130
|
+
}
|
|
122
131
|
}
|
|
123
132
|
|
|
124
133
|
th,
|
package/svelte.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ import type { SvelteListProps as WSvelteListProps } from './components/List/list
|
|
|
26
26
|
import type { SvelteMasonryProps as WSvelteMasonryProps } from './components/Masonry/masonry'
|
|
27
27
|
import type { SvelteMenuProps as WSvelteMenuProps } from './components/Menu/menu'
|
|
28
28
|
import type { SvelteModalProps as WSvelteModalProps } from './components/Modal/modal'
|
|
29
|
+
import type { OTPInputProps as WOTPInputProps } from './components/OTPInput/otpinput'
|
|
29
30
|
import type { SveltePaginationProps as WSveltePaginationProps } from './components/Pagination/pagination'
|
|
30
31
|
import type { SveltePopoverProps as WSveltePopoverProps } from './components/Popover/popover'
|
|
31
32
|
import type { ProgressProps as WProgressProps } from './components/Progress/progress'
|
|
@@ -37,6 +38,7 @@ import type { SvelteSheetProps as WSvelteSheetProps } from './components/Sheet/s
|
|
|
37
38
|
import type { SvelteSidebarProps as WSvelteSidebarProps } from './components/Sidebar/sidebar'
|
|
38
39
|
import type { SkeletonProps as WSkeletonProps } from './components/Skeleton/skeleton'
|
|
39
40
|
import type { SvelteSliderProps as WSvelteSliderProps } from './components/Slider/slider'
|
|
41
|
+
import type { SpeedDialProps as WSpeedDialProps } from './components/SpeedDial/speeddial'
|
|
40
42
|
import type { SpinnerProps as WSpinnerProps } from './components/Spinner/spinner'
|
|
41
43
|
import type { SvelteSpoilerProps as WSvelteSpoilerProps } from './components/Spoiler/spoiler'
|
|
42
44
|
import type { StepperProps as WStepperProps } from './components/Stepper/stepper'
|
|
@@ -82,6 +84,7 @@ declare module 'webcoreui/svelte' {
|
|
|
82
84
|
export const Masonry: Component<WSvelteMasonryProps>
|
|
83
85
|
export const Menu: Component<WSvelteMenuProps>
|
|
84
86
|
export const Modal: Component<WSvelteModalProps>
|
|
87
|
+
export const OTPInput: Component<WOTPInputProps>
|
|
85
88
|
export const Pagination: Component<WSveltePaginationProps>
|
|
86
89
|
export const Popover: Component<WSveltePopoverProps>
|
|
87
90
|
export const Progress: Component<WProgressProps>
|
|
@@ -93,6 +96,7 @@ declare module 'webcoreui/svelte' {
|
|
|
93
96
|
export const Sidebar: Component<WSvelteSidebarProps>
|
|
94
97
|
export const Skeleton: Component<WSkeletonProps>
|
|
95
98
|
export const Slider: Component<WSvelteSliderProps>
|
|
99
|
+
export const SpeedDial: Component<WSpeedDialProps>
|
|
96
100
|
export const Spinner: Component<WSpinnerProps>
|
|
97
101
|
export const Spoiler: Component<WSvelteSpoilerProps>
|
|
98
102
|
export const Stepper: Component<WStepperProps>
|
|
@@ -132,6 +136,7 @@ declare module 'webcoreui/svelte' {
|
|
|
132
136
|
export type MasonryProps = WSvelteMasonryProps
|
|
133
137
|
export type MenuProps = WSvelteMenuProps
|
|
134
138
|
export type ModalProps = WSvelteModalProps
|
|
139
|
+
export type OTPInputProps = WOTPInputProps
|
|
135
140
|
export type PaginationProps = WSveltePaginationProps
|
|
136
141
|
export type PopoverProps = WSveltePopoverProps
|
|
137
142
|
export type ProgressProps = WProgressProps
|
|
@@ -143,6 +148,7 @@ declare module 'webcoreui/svelte' {
|
|
|
143
148
|
export type SidebarProps = WSvelteSidebarProps
|
|
144
149
|
export type SkeletonProps = WSkeletonProps
|
|
145
150
|
export type SliderProps = WSvelteSliderProps
|
|
151
|
+
export type SpeedDialProps = WSpeedDialProps
|
|
146
152
|
export type SpinnerProps = WSpinnerProps
|
|
147
153
|
export type SpoilerProps = WSvelteSpoilerProps
|
|
148
154
|
export type StepperProps = WStepperProps
|
package/svelte.js
CHANGED
|
@@ -25,6 +25,7 @@ import ListComponent from './components/List/List.svelte'
|
|
|
25
25
|
import MasonryComponent from './components/Masonry/Masonry.svelte'
|
|
26
26
|
import MenuComponent from './components/Menu/Menu.svelte'
|
|
27
27
|
import ModalComponent from './components/Modal/Modal.svelte'
|
|
28
|
+
import OTPInputComponent from './components/OTPInput/OTPInput.svelte'
|
|
28
29
|
import PaginationComponent from './components/Pagination/Pagination.svelte'
|
|
29
30
|
import PopoverComponent from './components/Popover/Popover.svelte'
|
|
30
31
|
import ProgressComponent from './components/Progress/Progress.svelte'
|
|
@@ -36,6 +37,7 @@ import SheetComponent from './components/Sheet/Sheet.svelte'
|
|
|
36
37
|
import SidebarComponent from './components/Sidebar/Sidebar.svelte'
|
|
37
38
|
import SkeletonComponent from './components/Skeleton/Skeleton.svelte'
|
|
38
39
|
import SliderComponent from './components/Slider/Slider.svelte'
|
|
40
|
+
import SpeedDialComponent from './components/SpeedDial/SpeedDial.svelte'
|
|
39
41
|
import SpinnerComponent from './components/Spinner/Spinner.svelte'
|
|
40
42
|
import SpoilerComponent from './components/Spoiler/Spoiler.svelte'
|
|
41
43
|
import StepperComponent from './components/Stepper/Stepper.svelte'
|
|
@@ -75,6 +77,7 @@ export const List = ListComponent
|
|
|
75
77
|
export const Masonry = MasonryComponent
|
|
76
78
|
export const Menu = MenuComponent
|
|
77
79
|
export const Modal = ModalComponent
|
|
80
|
+
export const OTPInput = OTPInputComponent
|
|
78
81
|
export const Pagination = PaginationComponent
|
|
79
82
|
export const Popover = PopoverComponent
|
|
80
83
|
export const Progress = ProgressComponent
|
|
@@ -86,6 +89,7 @@ export const Sheet = SheetComponent
|
|
|
86
89
|
export const Sidebar = SidebarComponent
|
|
87
90
|
export const Skeleton = SkeletonComponent
|
|
88
91
|
export const Slider = SliderComponent
|
|
92
|
+
export const SpeedDial = SpeedDialComponent
|
|
89
93
|
export const Spinner = SpinnerComponent
|
|
90
94
|
export const Spoiler = SpoilerComponent
|
|
91
95
|
export const Stepper = StepperComponent
|
package/utils/modal.ts
CHANGED
package/utils/popover.ts
CHANGED
package/utils/webcore.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { AstroIntegration } from 'astro'
|
|
2
|
+
import path from 'path'
|
|
3
|
+
|
|
4
|
+
export const webcore = (): AstroIntegration => {
|
|
5
|
+
return {
|
|
6
|
+
name: 'webcoreui',
|
|
7
|
+
hooks: {
|
|
8
|
+
'astro:config:setup': ({ updateConfig }) => {
|
|
9
|
+
updateConfig({
|
|
10
|
+
vite: {
|
|
11
|
+
ssr: {
|
|
12
|
+
noExternal: ['webcoreui']
|
|
13
|
+
},
|
|
14
|
+
css: {
|
|
15
|
+
preprocessorOptions: {
|
|
16
|
+
scss: {
|
|
17
|
+
loadPaths: [
|
|
18
|
+
path.resolve(process.cwd())
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|