winduum 2.0.0-next.2 → 2.0.0-next.20
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/main.css +1 -1
- package/dist/tailwind.css +1 -1
- package/dist/test.css +1 -0
- package/package.json +15 -15
- package/plugin/index.cjs +81 -43
- package/plugin/utilities/common.js +2 -2
- package/plugin/utilities/dot.js +3 -3
- package/src/base/breakpoints-tw.css +12 -0
- package/src/base/config/transition.css +5 -1
- package/src/base/config/tw.css +30 -0
- package/src/base/defaults-tw.css +9 -0
- package/src/base/defaults.css +1 -11
- package/src/base/index.css +2 -0
- package/src/base/reset.css +0 -1
- package/src/base/theme/default-tw.css +26 -0
- package/src/base/transitions.css +11 -0
- package/src/components/badge/circle.css +1 -1
- package/src/components/badge/default.css +2 -2
- package/src/components/badge/lg.css +1 -1
- package/src/components/badge/props/default.css +1 -1
- package/src/components/badge/sm.css +1 -1
- package/src/components/badge/square.css +1 -1
- package/src/components/breadcrumb/default.css +1 -1
- package/src/components/button/bordered.css +1 -1
- package/src/components/button/circle.css +1 -1
- package/src/components/button/default.css +2 -2
- package/src/components/button/interactive.css +13 -11
- package/src/components/button/lg.css +1 -1
- package/src/components/button/props/default.css +1 -1
- package/src/components/button/sm.css +1 -1
- package/src/components/button/square.css +1 -1
- package/src/components/carousel/index.d.ts +3 -3
- package/src/components/carousel/index.js +13 -11
- package/src/components/check/default.css +2 -2
- package/src/components/check/invalid.css +1 -1
- package/src/components/color/interactive.css +1 -1
- package/src/components/color/props/default.css +0 -1
- package/src/components/compare/default.css +1 -1
- package/src/components/control/color.css +5 -5
- package/src/components/control/default.css +3 -3
- package/src/components/control/file.css +1 -1
- package/src/components/control/invalid.css +1 -1
- package/src/components/control/props/color.css +2 -2
- package/src/components/control/props/default.css +3 -3
- package/src/components/control/select-multiple.css +1 -1
- package/src/components/details/index.js +2 -2
- package/src/components/dialog/content.css +1 -1
- package/src/components/dialog/default.css +2 -2
- package/src/components/dialog/index.d.ts +3 -2
- package/src/components/dialog/index.js +15 -14
- package/src/components/drawer/default.css +6 -5
- package/src/components/drawer/index.d.ts +2 -1
- package/src/components/drawer/index.js +15 -1
- package/src/components/drawer/props/content.css +1 -1
- package/src/components/field/default.css +1 -1
- package/src/components/form/index.d.ts +4 -4
- package/src/components/form/index.js +11 -10
- package/src/components/group/default.css +1 -1
- package/src/components/image/default.css +1 -1
- package/src/components/popover/content.css +2 -2
- package/src/components/popover/index.d.ts +5 -1
- package/src/components/popover/index.js +11 -9
- package/src/components/range/default.css +4 -4
- package/src/components/rating/default.css +8 -0
- package/src/components/rating/invalid.css +1 -1
- package/src/components/rating/props/default.css +0 -1
- package/src/components/switch/invalid.css +1 -1
- package/src/components/tabs/index.css +1 -1
- package/src/components/tabs/list.css +8 -0
- package/src/components/tabs/readme.md +1 -1
- package/src/components/text/default.css +2 -2
- package/src/components/toast/content.css +0 -5
- package/src/components/toast/default.css +3 -3
- package/src/components/toaster/default.css +4 -0
- package/src/components/toaster/index.d.ts +2 -17
- package/src/components/toaster/index.js +4 -56
- package/src/tailwind.css +4 -1
- package/src/test.css +7 -0
- package/src/utilities/animation.css +4 -0
- package/src/utilities/dot.css +10 -0
- package/src/utilities/view-transition.css +3 -0
- package/tailwind.config.js +4 -1
- package/types/index.d.ts +45 -28
- package/types/index.d.ts.map +3 -5
- package/src/base/tailwind.css +0 -3
- package/src/components/tabs/default.css +0 -8
package/types/index.d.ts
CHANGED
|
@@ -23,11 +23,13 @@ declare module 'winduum' {
|
|
|
23
23
|
export const defaultConfig: PluginOptions
|
|
24
24
|
|
|
25
25
|
export default function createPlugin(userConfig?: PluginOptions): Plugin
|
|
26
|
+
|
|
27
|
+
export {};
|
|
26
28
|
}
|
|
27
29
|
|
|
28
30
|
declare module 'winduum/src/components/carousel' {
|
|
29
31
|
export interface ObserveCarouselOptions {
|
|
30
|
-
|
|
32
|
+
visibleAttribute?: string
|
|
31
33
|
observerOptions?: {
|
|
32
34
|
rootMargin?: string
|
|
33
35
|
threshold?: number | number[]
|
|
@@ -37,7 +39,7 @@ declare module 'winduum/src/components/carousel' {
|
|
|
37
39
|
export interface PaginationCarouselOptions {
|
|
38
40
|
element?: HTMLElement | Element
|
|
39
41
|
itemContent?: string
|
|
40
|
-
|
|
42
|
+
activeAttribute?: string
|
|
41
43
|
}
|
|
42
44
|
|
|
43
45
|
export interface ScrollCarouselOptions {
|
|
@@ -54,7 +56,7 @@ declare module 'winduum/src/components/carousel' {
|
|
|
54
56
|
}
|
|
55
57
|
|
|
56
58
|
export interface DragCarouselOptions {
|
|
57
|
-
|
|
59
|
+
activeAttribute?: string
|
|
58
60
|
}
|
|
59
61
|
|
|
60
62
|
export function scrollPrev(element: HTMLElement | Element): void
|
|
@@ -66,6 +68,8 @@ declare module 'winduum/src/components/carousel' {
|
|
|
66
68
|
export function paginationCarousel(element: HTMLElement | Element, options?: PaginationCarouselOptions): void
|
|
67
69
|
export function autoplayCarousel(element: HTMLElement | Element, options?: AutoplayCarouselOptions): void
|
|
68
70
|
export function dragCarousel(element: HTMLElement | Element, options?: DragCarouselOptions): void
|
|
71
|
+
|
|
72
|
+
export {};
|
|
69
73
|
}
|
|
70
74
|
|
|
71
75
|
declare module 'winduum/src/components/compare' {
|
|
@@ -77,6 +81,8 @@ declare module 'winduum/src/components/compare' {
|
|
|
77
81
|
export function setPosition(event: Event, options?: SetPositionOptions): void
|
|
78
82
|
export function setKeyboardStep(event: KeyboardEvent, step?: string): void
|
|
79
83
|
export function setMouseStep(event: MouseEvent, step?: string): void
|
|
84
|
+
|
|
85
|
+
export {};
|
|
80
86
|
}
|
|
81
87
|
|
|
82
88
|
declare module 'winduum/src/components/details' {
|
|
@@ -89,20 +95,25 @@ declare module 'winduum/src/components/details' {
|
|
|
89
95
|
export function showDetails(selector: HTMLInputElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
90
96
|
export function closeDetails(selector: HTMLInputElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
91
97
|
export function toggleDetails(selector: HTMLInputElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
98
|
+
|
|
99
|
+
export {};
|
|
92
100
|
}
|
|
93
101
|
|
|
94
102
|
declare module 'winduum/src/components/dialog' {
|
|
95
103
|
export interface DefaultOptions {
|
|
96
104
|
remove?: boolean | null
|
|
97
105
|
closable?: boolean | null
|
|
98
|
-
|
|
99
|
-
|
|
106
|
+
openAttribute?: string
|
|
107
|
+
closedAttribute?: string
|
|
108
|
+
contentSelector?: string
|
|
100
109
|
scrollbarWidthProperty?: string
|
|
101
110
|
}
|
|
102
111
|
|
|
103
112
|
export const defaultOptions: DefaultOptions
|
|
104
113
|
export function showDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
105
114
|
export function closeDialog(element: HTMLDialogElement | HTMLElement, options?: DefaultOptions): Promise<void>
|
|
115
|
+
|
|
116
|
+
export {};
|
|
106
117
|
}
|
|
107
118
|
|
|
108
119
|
declare module 'winduum/src/components/drawer' {
|
|
@@ -118,14 +129,17 @@ declare module 'winduum/src/components/drawer' {
|
|
|
118
129
|
|
|
119
130
|
export function showDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
120
131
|
export function closeDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
121
|
-
export function
|
|
132
|
+
export function scrollInitDrawer(element: HTMLElement | Element, distance?: number, direction?: 'left' | 'top'): void
|
|
133
|
+
export function scrollDrawer(element: HTMLDialogElement | Element, options?: ScrollDrawerOptions): void
|
|
134
|
+
|
|
135
|
+
export {};
|
|
122
136
|
}
|
|
123
137
|
|
|
124
138
|
declare module 'winduum/src/components/form' {
|
|
125
139
|
export interface ValidateFormOptions {
|
|
126
140
|
validateSelectors?: string
|
|
127
141
|
validateOptions?: ValidateFieldOptions
|
|
128
|
-
|
|
142
|
+
submitterLoadingAttribute?: string
|
|
129
143
|
}
|
|
130
144
|
|
|
131
145
|
export interface ValidateFieldOptions {
|
|
@@ -139,15 +153,17 @@ declare module 'winduum/src/components/form' {
|
|
|
139
153
|
endParentSelector?: string
|
|
140
154
|
endSelector?: string
|
|
141
155
|
endContent?: string
|
|
142
|
-
|
|
156
|
+
validAttribute?: string
|
|
143
157
|
validIcon?: string | null
|
|
144
|
-
|
|
158
|
+
invalidAttribute?: string
|
|
145
159
|
invalidIcon?: string
|
|
146
|
-
|
|
160
|
+
activeAttribute?: string
|
|
147
161
|
}
|
|
148
162
|
|
|
149
163
|
export function validateForm(event: Event | SubmitEvent, options?: ValidateFormOptions): void
|
|
150
164
|
export function validateField(element: HTMLElement | SubmitEvent, options?: ValidateFieldOptions): void
|
|
165
|
+
|
|
166
|
+
export {};
|
|
151
167
|
}
|
|
152
168
|
|
|
153
169
|
declare module 'winduum/src/components/tabs' {
|
|
@@ -157,45 +173,34 @@ declare module 'winduum/src/components/tabs' {
|
|
|
157
173
|
}
|
|
158
174
|
|
|
159
175
|
export function toggleTab(element: HTMLElement | Element, options?: ToggleTabOptions): void
|
|
176
|
+
|
|
177
|
+
export {};
|
|
160
178
|
}
|
|
161
179
|
|
|
162
180
|
declare module 'winduum/src/components/toaster' {
|
|
163
181
|
export interface ShowToastOptions {
|
|
164
|
-
|
|
182
|
+
openAttribute?: string
|
|
165
183
|
autoHide?: number | null
|
|
166
184
|
heightProperty?: string
|
|
167
185
|
close?: CloseToastOptions
|
|
168
186
|
}
|
|
169
187
|
|
|
170
188
|
export interface CloseToastOptions {
|
|
171
|
-
|
|
189
|
+
closedAttribute?: string
|
|
172
190
|
heightProperty?: string
|
|
173
191
|
}
|
|
174
192
|
|
|
175
|
-
export interface InsertToasterOptions {
|
|
176
|
-
classes?: string
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
export interface InsertToastOptions {
|
|
180
|
-
classes?: string
|
|
181
|
-
title?: string
|
|
182
|
-
text?: string
|
|
183
|
-
start?: string
|
|
184
|
-
end?: string
|
|
185
|
-
show?: ShowToastOptions
|
|
186
|
-
}
|
|
187
|
-
|
|
188
193
|
export function closeToast(element: HTMLElement, options?: CloseToastOptions): Promise<void>
|
|
189
194
|
export function showToast(element: HTMLElement, options?: ShowToastOptions): Promise<void>
|
|
190
|
-
export function insertToaster(element: HTMLElement, options?: InsertToasterOptions): Promise<void>
|
|
191
|
-
export function insertToast(element: HTMLElement, options?: InsertToastOptions): Promise<void>
|
|
192
195
|
export function closeToaster(element: HTMLElement, options?: CloseToastOptions): Promise<void>
|
|
196
|
+
|
|
197
|
+
export {};
|
|
193
198
|
}
|
|
194
199
|
|
|
195
200
|
declare module 'winduum/src/components/popover' {
|
|
196
201
|
import type { FlipOptions, Middleware, OffsetOptions, Placement, ShiftOptions } from '@floating-ui/dom';
|
|
197
202
|
export interface ShowPopoverOptions {
|
|
198
|
-
|
|
203
|
+
openAttribute?: string
|
|
199
204
|
compute?: boolean
|
|
200
205
|
placement?: Placement
|
|
201
206
|
middleware?: Array<Middleware | null | undefined | false>
|
|
@@ -204,9 +209,15 @@ declare module 'winduum/src/components/popover' {
|
|
|
204
209
|
shift?: ShiftOptions
|
|
205
210
|
}
|
|
206
211
|
|
|
212
|
+
export interface HidePopoverOptions {
|
|
213
|
+
openAttribute?: string
|
|
214
|
+
}
|
|
215
|
+
|
|
207
216
|
export function showPopover(element: HTMLElement | Element, options?: ShowPopoverOptions): Promise<void>
|
|
208
217
|
export function hidePopover(element: HTMLElement | Element): Promise<void>
|
|
209
218
|
export function togglePopover(element: HTMLElement | Element, options?: ShowPopoverOptions): Promise<void>
|
|
219
|
+
|
|
220
|
+
export {};
|
|
210
221
|
}
|
|
211
222
|
|
|
212
223
|
declare module 'winduum/src/components/range' {
|
|
@@ -229,14 +240,20 @@ declare module 'winduum/src/components/range' {
|
|
|
229
240
|
export function setTrackProperty(options: SetTrackPropertyOptions, track: 'start' | 'end'): void
|
|
230
241
|
export function setValue(element: HTMLInputElement, options?: SetValueOptions): void
|
|
231
242
|
export function setOutputValue(element: HTMLInputElement, outputElement: HTMLOutputElement | Element, options?: SetOutputOptions): void
|
|
243
|
+
|
|
244
|
+
export {};
|
|
232
245
|
}
|
|
233
246
|
|
|
234
247
|
declare module 'winduum/src/utilities/ripple' {
|
|
235
248
|
export function showRipple(event: MouseEvent, element?: HTMLElement): void
|
|
249
|
+
|
|
250
|
+
export {};
|
|
236
251
|
}
|
|
237
252
|
|
|
238
253
|
declare module 'winduum/src/utilities/swap' {
|
|
239
254
|
export function toggleSwap(element: HTMLElement): void
|
|
255
|
+
|
|
256
|
+
export {};
|
|
240
257
|
}
|
|
241
258
|
|
|
242
259
|
//# sourceMappingURL=index.d.ts.map
|
package/types/index.d.ts.map
CHANGED
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"ScrollDrawerOptions",
|
|
33
33
|
"showDrawer",
|
|
34
34
|
"closeDrawer",
|
|
35
|
+
"scrollInitDrawer",
|
|
35
36
|
"scrollDrawer",
|
|
36
37
|
"ValidateFormOptions",
|
|
37
38
|
"ValidateFieldOptions",
|
|
@@ -40,14 +41,11 @@
|
|
|
40
41
|
"toggleTab",
|
|
41
42
|
"ShowToastOptions",
|
|
42
43
|
"CloseToastOptions",
|
|
43
|
-
"InsertToasterOptions",
|
|
44
|
-
"InsertToastOptions",
|
|
45
44
|
"closeToast",
|
|
46
45
|
"showToast",
|
|
47
|
-
"insertToaster",
|
|
48
|
-
"insertToast",
|
|
49
46
|
"closeToaster",
|
|
50
47
|
"ShowPopoverOptions",
|
|
48
|
+
"HidePopoverOptions",
|
|
51
49
|
"showPopover",
|
|
52
50
|
"hidePopover",
|
|
53
51
|
"togglePopover",
|
|
@@ -90,6 +88,6 @@
|
|
|
90
88
|
null,
|
|
91
89
|
null
|
|
92
90
|
],
|
|
93
|
-
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA
|
|
91
|
+
"mappings": ";;kBAEiBA,aAAaA;;;;;;;;;;;;;;;;;;;;cAoBjBC,aAAaA;;;;;;;;kBCtBTC,sBAAsBA;;;;;;;;kBAQtBC,yBAAyBA;;;;;;kBAMzBC,qBAAqBA;;;;;;;;kBAQrBC,uBAAuBA;;;;;kBAKvBC,mBAAmBA;;;;iBAIpBC,UAAUA;iBACVC,UAAUA;iBACVC,QAAQA;iBACRC,YAAYA;iBACZC,eAAeA;iBACfC,cAAcA;iBACdC,kBAAkBA;iBAClBC,gBAAgBA;iBAChBC,YAAYA;;;;;;kBCvCXC,kBAAkBA;;;;;iBAKnBC,WAAWA;iBACXC,eAAeA;iBACfC,YAAYA;;;;;;kBCPXC,cAAcA;;;;;cAKlBC,cAAcA;iBACXC,WAAWA;iBACXC,YAAYA;iBACZC,aAAaA;;;;;;kBCRZJ,cAAcA;;;;;;;;;cASlBC,cAAcA;iBACXI,UAAUA;iBACVC,WAAWA;;;;;;kBCXVC,mBAAmBA;;;;;;;;;;iBAUpBC,UAAUA;iBACVC,WAAWA;iBACXC,gBAAgBA;iBAChBC,YAAYA;;;;;;kBCbXC,mBAAmBA;;;;;;kBAMnBC,oBAAoBA;;;;;;;;;;;;;;;;;;iBAkBrBC,YAAYA;iBACZC,aAAaA;;;;;;;;;;;iBCpBbC,SAASA;;;;;;kBCLRC,gBAAgBA;;;;;;;kBAOhBC,iBAAiBA;;;;;iBAKlBC,UAAUA;iBACVC,SAASA;iBACTC,YAAYA;;;;;;;kBCZXC,kBAAkBA;;;;;;;;;;kBAUlBC,kBAAkBA;;;;iBAInBC,WAAWA;iBACXC,WAAWA;iBACXC,aAAaA;;;;;;kBClBZC,uBAAuBA;;;;;;kBAMvBC,eAAeA;;;;;kBAKfC,gBAAgBA;;;;;iBAKjBC,gBAAgBA;iBAChBC,QAAQA;iBACRC,cAAcA;;;;;;iBClBdC,UAAUA;;;;;;iBCAVC,UAAUA",
|
|
94
92
|
"ignoreList": []
|
|
95
93
|
}
|
package/src/base/tailwind.css
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
.x-tabs {
|
|
2
|
-
background-color: var(--x-tabs-background-color, var(--color-body-secondary));
|
|
3
|
-
gap: var(--x-tabs-gap, var(--spacing-xs));
|
|
4
|
-
padding: var(--x-tabs-padding, var(--spacing-xs));
|
|
5
|
-
border-radius: var(--x-tabs-border-radius, var(--radius));
|
|
6
|
-
display: flex;
|
|
7
|
-
inline-size: max-content;
|
|
8
|
-
}
|