welcome-ui 10.6.2 → 10.6.4
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/Icon.js +5 -0
- package/dist/Search.js +67 -65
- package/dist/Swiper.js +360 -328
- package/dist/Tabs.js +42 -26
- package/dist/Tag.css +1 -1
- package/dist/Tag.js +93 -96
- package/dist/Window.js +40 -46
- package/dist/types/components/Drawer/index.d.ts +2 -2
- package/dist/types/components/Icon/icons.d.ts +4 -4
- package/dist/types/components/Modal/index.d.ts +2 -2
- package/dist/types/components/Swiper/constants.d.ts +49 -0
- package/dist/types/components/Swiper/context.d.ts +3 -0
- package/dist/types/components/Swiper/index.d.ts +10 -57
- package/dist/types/components/Swiper/types.d.ts +31 -7
- package/dist/types/components/Swiper/useInitialScroll.d.ts +18 -0
- package/dist/types/components/Swiper/useSwiper.d.ts +27 -0
- package/dist/types/components/Swiper/useSwiperViewModel.d.ts +2 -0
- package/dist/types/components/Swiper/utils.d.ts +1 -1
- package/dist/types/components/Window/components/Header.d.ts +2 -3
- package/dist/types/components/Window/index.d.ts +2 -2
- package/package.json +1 -1
package/dist/Window.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import './Window.css';
|
|
3
3
|
import { jsx as o, jsxs as _ } from "react/jsx-runtime";
|
|
4
|
-
import { c as
|
|
4
|
+
import { c as l } from "./index-B6iGEm-i.js";
|
|
5
5
|
import { f as b } from "./forwardRefWithAs-8eP3ZN15.js";
|
|
6
|
-
import { forwardRef as
|
|
6
|
+
import { forwardRef as c, useState as B } from "react";
|
|
7
7
|
import { T as I, a as g, b as j } from "./tab-panel-Cc3MfOBM.js";
|
|
8
8
|
import { b as A } from "./Q5W46E73-5xQblshY.js";
|
|
9
9
|
import { Badge as S } from "./Badge.js";
|
|
10
10
|
import { Icon as x } from "./Icon.js";
|
|
11
11
|
import { Text as u } from "./Text.js";
|
|
12
|
-
const H = "_root_17x8z_2", P = "_header_17x8z_11", R = "_media_17x8z_125",
|
|
12
|
+
const H = "_root_17x8z_2", P = "_header_17x8z_11", R = "_media_17x8z_125", m = {
|
|
13
13
|
root: H,
|
|
14
14
|
header: P,
|
|
15
15
|
"header-title": "_header-title_17x8z_25",
|
|
@@ -26,48 +26,42 @@ const H = "_root_17x8z_2", P = "_header_17x8z_11", R = "_media_17x8z_125", c = {
|
|
|
26
26
|
"size-md": "_size-md_17x8z_149",
|
|
27
27
|
"size-sm": "_size-sm_17x8z_153",
|
|
28
28
|
"size-xs": "_size-xs_17x8z_157"
|
|
29
|
-
}, k =
|
|
29
|
+
}, k = l(m), h = c(
|
|
30
30
|
({ children: a, className: t, size: e = "md", ...s }, n) => /* @__PURE__ */ o("div", { className: k("body", `size-${e}`, t), ref: n, ...s, children: a })
|
|
31
31
|
);
|
|
32
32
|
h.displayName = "Window.Body";
|
|
33
|
-
const L =
|
|
33
|
+
const L = l(m), z = c(
|
|
34
34
|
({ children: a, className: t, ...e }, s) => /* @__PURE__ */ o("div", { className: L("box-text", t), ref: s, ...e, children: a })
|
|
35
35
|
);
|
|
36
36
|
z.displayName = "Window.BoxText";
|
|
37
|
-
const i =
|
|
38
|
-
"aria-label": a,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"aria-label": "Close window",
|
|
63
|
-
as: a,
|
|
64
|
-
className: i("header-close-button", t),
|
|
65
|
-
icon: "times",
|
|
66
|
-
onClick: e
|
|
67
|
-
}
|
|
37
|
+
const i = l(m), p = c(
|
|
38
|
+
({ "aria-label": a, className: t, icon: e, isActive: s, onClick: n, ...r }, d) => /* @__PURE__ */ o(
|
|
39
|
+
"button",
|
|
40
|
+
{
|
|
41
|
+
"aria-label": a,
|
|
42
|
+
"aria-pressed": s,
|
|
43
|
+
className: i("header-action-button", t),
|
|
44
|
+
onClick: n,
|
|
45
|
+
ref: d,
|
|
46
|
+
type: "button",
|
|
47
|
+
...r,
|
|
48
|
+
children: /* @__PURE__ */ o(x, { name: e })
|
|
49
|
+
}
|
|
50
|
+
)
|
|
51
|
+
), w = c(
|
|
52
|
+
({ className: a, onClick: t }, e) => /* @__PURE__ */ o(
|
|
53
|
+
p,
|
|
54
|
+
{
|
|
55
|
+
"aria-label": "Close window",
|
|
56
|
+
className: i("header-close-button", a),
|
|
57
|
+
icon: "times",
|
|
58
|
+
onClick: t,
|
|
59
|
+
ref: e
|
|
60
|
+
}
|
|
61
|
+
)
|
|
68
62
|
), M = ({ children: a, className: t, store: e, ...s }) => /* @__PURE__ */ o(g, { className: i("header-tabs", t), store: e, ...s, children: a }), O = b(
|
|
69
|
-
({ as: a, badge: t, children: e, className: s, icon: n, id: r, store:
|
|
70
|
-
const $ = A(
|
|
63
|
+
({ as: a, badge: t, children: e, className: s, icon: n, id: r, store: d, ...v }, W) => {
|
|
64
|
+
const $ = A(d, "selectedId") === r;
|
|
71
65
|
return /* @__PURE__ */ _(
|
|
72
66
|
I,
|
|
73
67
|
{
|
|
@@ -75,7 +69,7 @@ const i = d(c), p = ({
|
|
|
75
69
|
id: r,
|
|
76
70
|
ref: W,
|
|
77
71
|
render: a ? /* @__PURE__ */ o(a, {}) : void 0,
|
|
78
|
-
store:
|
|
72
|
+
store: d,
|
|
79
73
|
...v,
|
|
80
74
|
children: [
|
|
81
75
|
n ? /* @__PURE__ */ o(x, { name: n }) : null,
|
|
@@ -100,8 +94,8 @@ const i = d(c), p = ({
|
|
|
100
94
|
onExpandChange: e
|
|
101
95
|
}) => {
|
|
102
96
|
const [s, n] = B(!1), r = () => {
|
|
103
|
-
const
|
|
104
|
-
n(
|
|
97
|
+
const d = !s;
|
|
98
|
+
n(d), e == null || e(d);
|
|
105
99
|
};
|
|
106
100
|
return /* @__PURE__ */ _("div", { className: i("header-actions"), children: [
|
|
107
101
|
t ? /* @__PURE__ */ o(
|
|
@@ -117,7 +111,7 @@ const i = d(c), p = ({
|
|
|
117
111
|
) : null,
|
|
118
112
|
a
|
|
119
113
|
] });
|
|
120
|
-
}, C = ({ as: a, className: t, title: e }) => /* @__PURE__ */ o(u, { as: a, className: i("header-title", t), variant: "body-md-strong", children: e }), N =
|
|
114
|
+
}, C = ({ as: a, className: t, title: e }) => /* @__PURE__ */ o(u, { as: a, className: i("header-title", t), variant: "body-md-strong", children: e }), N = c(
|
|
121
115
|
({ children: a, className: t, ...e }, s) => /* @__PURE__ */ o("header", { className: i("header", t), ref: s, ...e, children: a })
|
|
122
116
|
);
|
|
123
117
|
N.displayName = "Window.Header";
|
|
@@ -129,15 +123,15 @@ const D = Object.assign(N, {
|
|
|
129
123
|
Tab: O,
|
|
130
124
|
Tabs: M,
|
|
131
125
|
Title: C
|
|
132
|
-
}), F =
|
|
126
|
+
}), F = l(m), f = c(
|
|
133
127
|
({ children: a, className: t, ...e }, s) => /* @__PURE__ */ o("div", { className: F("media", t), ref: s, ...e, children: a })
|
|
134
128
|
);
|
|
135
129
|
f.displayName = "Window.Media";
|
|
136
|
-
const G =
|
|
130
|
+
const G = l(m), y = c(
|
|
137
131
|
({ children: a, store: t, tabId: e, ...s }, n) => /* @__PURE__ */ o(j, { className: G("tab-panel"), ref: n, store: t, tabId: e, ...s, children: a })
|
|
138
132
|
);
|
|
139
133
|
y.displayName = "Window.TabPanel";
|
|
140
|
-
const J =
|
|
134
|
+
const J = l(m), T = b(
|
|
141
135
|
({ as: a = "div", children: t, className: e, role: s = "region", ...n }, r) => /* @__PURE__ */ o(a, { className: J("root", e), ref: r, role: s, ...n, children: t })
|
|
142
136
|
);
|
|
143
137
|
T.displayName = "Window";
|
|
@@ -150,5 +144,5 @@ const se = Object.assign(T, {
|
|
|
150
144
|
});
|
|
151
145
|
export {
|
|
152
146
|
se as Window,
|
|
153
|
-
|
|
147
|
+
m as windowClasses
|
|
154
148
|
};
|
|
@@ -18,8 +18,8 @@ export declare const Drawer: import('react').ForwardRefExoticComponent<Omit<Draw
|
|
|
18
18
|
Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
19
19
|
children?: import('react').ReactNode | undefined;
|
|
20
20
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
21
|
-
Button:
|
|
22
|
-
CloseButton:
|
|
21
|
+
Button: import('react').ForwardRefExoticComponent<Omit<import('../Window/types').ActionButtonOptions, keyof import('react').HTMLAttributes<HTMLButtonElement>> & import('react').HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
22
|
+
CloseButton: import('react').ForwardRefExoticComponent<Omit<import('../Window/types').ActionButtonProps, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
23
23
|
LeftActions: ({ children, isExpandable, onExpandChange, }: import('../Window/types').HeaderLeftActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
24
|
RightActions: ({ children, isClosable, onClose }: import('../Window/types').HeaderRightActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
25
|
Tab: import('../../utils').FunctionComponentWithAs<"button", import('../Window/types').HeaderTabItem>;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
export declare const arrows: readonly ["angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right"];
|
|
2
2
|
export declare const actions: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "sliders-v-alt", "link", "sign-out-alt", "bars", "sort-amount-down", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "bulk", "bulk-active"];
|
|
3
|
-
export declare const chat: readonly ["chat", "chat-bubble-user", "comment", "comment-alt-lines"];
|
|
4
|
-
export declare const miscellaneous: readonly ["music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "map-pin", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "swatchbook", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug"];
|
|
3
|
+
export declare const chat: readonly ["chat", "chat-bubble-user", "comment", "comment-alt-lines", "comment-chart-line"];
|
|
4
|
+
export declare const miscellaneous: readonly ["music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "file-slash", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "envelope-star", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "map-pin", "lock-alt", "unlock", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "swatchbook", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug"];
|
|
5
5
|
export declare const player: readonly ["play", "play-solid", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning"];
|
|
6
6
|
export declare const wtf: readonly ["icons", "package", "basketball", "bill", "invoice", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
|
|
7
|
-
export declare const foldersAndFiles: readonly ["folder", "folder-open", "folder-full", "file", "image"];
|
|
7
|
+
export declare const foldersAndFiles: readonly ["folder", "folder-open", "folder-full", "folder-plus", "file", "image"];
|
|
8
8
|
export declare const markdown: readonly ["bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline"];
|
|
9
9
|
export declare const brands: readonly ["behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", "medium"];
|
|
10
10
|
export declare const welcome: readonly ["symbol", "wttj"];
|
|
11
11
|
export declare const flags: readonly ["flag-fr", "flag-en", "flag-us"];
|
|
12
|
-
export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "sliders-v-alt", "link", "sign-out-alt", "bars", "sort-amount-down", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "bulk", "bulk-active", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", "medium", "chat", "chat-bubble-user", "comment", "comment-alt-lines", "folder", "folder-open", "folder-full", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "map-pin", "lock-alt", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "swatchbook", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "play-solid", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "icons", "package", "basketball", "bill", "invoice", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
|
|
12
|
+
export declare const icons: readonly ["asterisk", "info-circle", "chart-line", "plus", "chart-line", "archive-alt", "arrows-merge-v", "arrows-shrink-v", "apps", "edit", "user-check", "user-plus", "user-times", "check", "times", "trash", "import", "upload", "draggable-dots", "copy", "pen", "left-arrow-from-left", "arrow-from-right", "resize-handle", "arrow-resize-diagonal", "draggabledots", "compress-alt", "external-link-alt", "heart-solid", "heart", "filter", "eye", "eye-slash", "sliders-v-alt", "link", "sign-out-alt", "bars", "sort-amount-down", "ellipsis-v", "ellipsis-h", "move-arrow", "bell", "print", "bolt-alt", "redo", "save", "search", "setting", "share-alt", "share", "bulk", "bulk-active", "angle-left-b", "angle-right-b", "angle-up", "angle-down", "arrow-left", "arrow-right", "arrow-up", "arrow-down", "left-arrow-to-left", "arrow-to-right", "top-arrow-to-top", "arrow-to-bottom", "angle-double-left", "angle-double-right", "angle-left", "angle-right", "behance", "dribbble", "facebook", "github", "google", "instagram", "linkedin", "npm", "pinterest", "slack", "stackoverflow", "tiktok", "twitch", "x", "xing", "youtube", "zapier", "medium", "chat", "chat-bubble-user", "comment", "comment-alt-lines", "comment-chart-line", "folder", "folder-open", "folder-full", "folder-plus", "file", "image", "flag-fr", "flag-en", "flag-us", "bold", "arrow", "brackets-curly", "italic", "list-ol-alt", "list-ul", "quote", "text-strike-through", "heading", "heading-1", "heading-2", "heading-3", "heading-4", "heading-5", "heading-6", "font", "underline", "music", "rocket", "file-alt", "user-square", "book-reader", "file-question-alt", "file-slash", "sad-solid", "smile-beam-solid", "sad", "smile-beam", "sign-right", "exclamation-triangle", "exclamation-circle", "exclamation-octagon", "chart-pie", "paperclip", "chart-bar", "fire", "user-check", "apps", "trophy", "bookmark-solid", "bookmark", "clock", "comment-alt-lines", "file-edit-alt", "illustration", "calendar", "users-alt", "globe", "graduation-cap", "envelope", "envelope-star", "equal-circle", "minus", "venus", "mars", "estate", "info-circle", "columns", "english-to-chinese", "bag-alt", "chart-line", "map-marker-alt", "map-pin", "lock-alt", "unlock", "flag", "at", "user", "user-circle", "clipboard-check", "building", "compass", "phone", "pin", "microphone", "user-search", "house-user", "star-solid", "star", "coins", "euro-circle", "file-search-alt", "question-circle", "gift", "birthday-cake", "bunting-flags", "swatchbook", "tag-alt", "tablet", "mobile", "video", "plus-circle", "pen", "check-circle", "certified", "plug", "play", "play-solid", "stop-circle-solid", "pause-circle-solid", "previous", "step-forward", "expand-arrows-alt", "compress-arrows", "screen-share", "stop-screen-share", "microphone", "microphone-slash", "cast", "cast-connected", "cast-unavailable", "video", "video-slash", "airplay", "history", "playlist", "volume-up", "volume-mute", "closed-captioning", "symbol", "wttj", "icons", "package", "basketball", "bill", "invoice", "book-alt", "lightbulb-alt", "life-ring", "calculator-alt", "camera", "shopping-cart", "clipboard-notes", "coffee", "ruler", "desktop", "hard-hat", "credit-card", "moon-solid", "moon", "crosshair", "crown", "restaurant", "diamond", "industry", "fingerprint", "flag", "flag-solid", "setting", "handshake", "hashtag", "headphones", "heart", "estate", "balance-scale", "key-skeleton", "leaf", "map", "masonry", "masonry-plus", "megaphone", "microphone", "processor", "euro-circle", "mountains", "pen", "images", "chart-pie-alt", "pizza-slice", "puzzle-piece-solid", "puzzle-piece", "shield", "wrench", "sparkles", "server", "sun", "hunting", "thumbs-up", "thumbs-down", "trees", "sofa", "exit", "redo", "play", "ban"];
|
|
13
13
|
export declare const isValidIconName: (iconName: string) => iconName is (typeof icons)[number];
|
|
@@ -33,8 +33,8 @@ export declare const Modal: import('../../utils').FunctionComponentWithAs<"div",
|
|
|
33
33
|
WindowHeader: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
34
34
|
children?: import('react').ReactNode | undefined;
|
|
35
35
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
36
|
-
Button:
|
|
37
|
-
CloseButton:
|
|
36
|
+
Button: import('react').ForwardRefExoticComponent<Omit<import('../Window/types').ActionButtonOptions, keyof import('react').HTMLAttributes<HTMLButtonElement>> & import('react').HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
37
|
+
CloseButton: import('react').ForwardRefExoticComponent<Omit<import('../Window/types').ActionButtonProps, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
38
38
|
LeftActions: ({ children, isExpandable, onExpandChange, }: import('../Window/types').HeaderLeftActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
39
|
RightActions: ({ children, isClosable, onClose }: import('../Window/types').HeaderRightActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
40
40
|
Tab: import('../../utils').FunctionComponentWithAs<"button", import('../Window/types').HeaderTabItem>;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
export declare const defaultOptions: {
|
|
2
|
+
autoplay: {
|
|
3
|
+
duration: number;
|
|
4
|
+
enabled: false;
|
|
5
|
+
loop: false;
|
|
6
|
+
};
|
|
7
|
+
navigation: {
|
|
8
|
+
desktop: true;
|
|
9
|
+
mobile: true;
|
|
10
|
+
};
|
|
11
|
+
slides: {
|
|
12
|
+
alignment: "default";
|
|
13
|
+
expandOnLargeScreens: false;
|
|
14
|
+
gap: number;
|
|
15
|
+
id: string;
|
|
16
|
+
initialIndex: number;
|
|
17
|
+
perView: {
|
|
18
|
+
desktop: number;
|
|
19
|
+
mobile: number;
|
|
20
|
+
tablet: number;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
export declare const defaultStore: {
|
|
25
|
+
autoplay: {
|
|
26
|
+
duration: number;
|
|
27
|
+
enabled: false;
|
|
28
|
+
loop: false;
|
|
29
|
+
};
|
|
30
|
+
navigation: {
|
|
31
|
+
desktop: true;
|
|
32
|
+
mobile: true;
|
|
33
|
+
};
|
|
34
|
+
slides: {
|
|
35
|
+
alignment: "default";
|
|
36
|
+
currentPage: number;
|
|
37
|
+
currentSlidesPerView: number;
|
|
38
|
+
expandOnLargeScreens: false;
|
|
39
|
+
gap: number;
|
|
40
|
+
id: string;
|
|
41
|
+
initialIndex: number;
|
|
42
|
+
perView: {
|
|
43
|
+
desktop: number;
|
|
44
|
+
mobile: number;
|
|
45
|
+
tablet: number;
|
|
46
|
+
};
|
|
47
|
+
setCurrentPage: () => void;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
@@ -1,60 +1,13 @@
|
|
|
1
1
|
import { default as swiperStyles } from './swiper.module.scss';
|
|
2
|
-
import {
|
|
2
|
+
import { SwiperProps } from './types';
|
|
3
3
|
export { swiperStyles as swiperClasses };
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
slides: {
|
|
14
|
-
alignment: 'center' | 'default';
|
|
15
|
-
currentPage: number;
|
|
16
|
-
currentSlidesPerView: number;
|
|
17
|
-
expandOnLargeScreens: boolean;
|
|
18
|
-
gap: number;
|
|
19
|
-
handleScroll: () => void;
|
|
20
|
-
id: string;
|
|
21
|
-
initialIndex: number;
|
|
22
|
-
isLastPage: boolean;
|
|
23
|
-
length: number;
|
|
24
|
-
perView: {
|
|
25
|
-
desktop: number;
|
|
26
|
-
mobile: number;
|
|
27
|
-
tablet: number;
|
|
28
|
-
};
|
|
29
|
-
ref: React.RefObject<HTMLUListElement>;
|
|
30
|
-
setLength: (length: number) => void;
|
|
31
|
-
};
|
|
4
|
+
export { useSwiperContext } from './context';
|
|
5
|
+
export type { SwiperContextValue } from './types';
|
|
6
|
+
export { useSwiper } from './useSwiper';
|
|
7
|
+
export declare const Swiper: {
|
|
8
|
+
({ children, className, store, ...rest }: SwiperProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
PrevButton: ({ children, className, placement, size, variant, ...rest }: import('./types').SwiperPrevButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
NextButton: ({ children, className, placement, size, variant, ...rest }: import('./types').SwiperNextButtonProps) => import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
Slides: ({ children, className }: import('./types').SwiperSlidesProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
32
13
|
};
|
|
33
|
-
export declare const useSwiperContext: () => SwiperContextValue;
|
|
34
|
-
export declare const useSwiper: (options?: UseSwiperOptions) => {
|
|
35
|
-
autoplay: {
|
|
36
|
-
duration: number;
|
|
37
|
-
enabled: boolean;
|
|
38
|
-
loop: boolean;
|
|
39
|
-
};
|
|
40
|
-
navigation: {
|
|
41
|
-
desktop: boolean;
|
|
42
|
-
mobile: boolean;
|
|
43
|
-
};
|
|
44
|
-
slides: {
|
|
45
|
-
alignment: "center" | "default";
|
|
46
|
-
currentPage: number;
|
|
47
|
-
currentSlidesPerView: number;
|
|
48
|
-
expandOnLargeScreens: boolean;
|
|
49
|
-
gap: number;
|
|
50
|
-
id: string;
|
|
51
|
-
initialIndex: number;
|
|
52
|
-
perView: {
|
|
53
|
-
desktop: number;
|
|
54
|
-
mobile: number;
|
|
55
|
-
tablet: number;
|
|
56
|
-
};
|
|
57
|
-
setCurrentPage: React.Dispatch<React.SetStateAction<number>>;
|
|
58
|
-
};
|
|
59
|
-
};
|
|
60
|
-
export declare const Swiper: SwiperComponent;
|
|
@@ -1,11 +1,35 @@
|
|
|
1
|
-
import { ComponentProps,
|
|
1
|
+
import { ComponentProps, ReactNode, RefObject } from 'react';
|
|
2
2
|
import { ButtonProps } from '../Button/types';
|
|
3
|
-
import { useSwiper } from '
|
|
4
|
-
export
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
3
|
+
import { useSwiper } from './useSwiper';
|
|
4
|
+
export type SwiperContextValue = {
|
|
5
|
+
navigation: {
|
|
6
|
+
desktop: boolean;
|
|
7
|
+
goNext: () => void;
|
|
8
|
+
goPrev: () => void;
|
|
9
|
+
isNextDisabled: boolean;
|
|
10
|
+
isPrevDisabled: boolean;
|
|
11
|
+
mobile: boolean;
|
|
12
|
+
};
|
|
13
|
+
slides: {
|
|
14
|
+
alignment: 'center' | 'default';
|
|
15
|
+
currentPage: number;
|
|
16
|
+
currentSlidesPerView: number;
|
|
17
|
+
expandOnLargeScreens: boolean;
|
|
18
|
+
gap: number;
|
|
19
|
+
handleScroll: () => void;
|
|
20
|
+
id: string;
|
|
21
|
+
initialIndex: number;
|
|
22
|
+
isLastPage: boolean;
|
|
23
|
+
length: number;
|
|
24
|
+
perView: {
|
|
25
|
+
desktop: number;
|
|
26
|
+
mobile: number;
|
|
27
|
+
tablet: number;
|
|
28
|
+
};
|
|
29
|
+
ref: RefObject<HTMLUListElement | null>;
|
|
30
|
+
setLength: (length: number) => void;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
9
33
|
export type SwiperNextButtonProps = Omit<ButtonProps, 'aria-label' | 'disabled' | 'onClick'> & {
|
|
10
34
|
placement?: 'inline' | 'side';
|
|
11
35
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
type UseInitialScrollOptions = {
|
|
2
|
+
alignment: 'center' | 'default';
|
|
3
|
+
currentPage: number;
|
|
4
|
+
currentSlidesPerView: number;
|
|
5
|
+
goTo: (page: number, isFirstInit?: boolean) => void;
|
|
6
|
+
initialIndex: number;
|
|
7
|
+
numberOfPage: number;
|
|
8
|
+
setCurrentPage: React.Dispatch<React.SetStateAction<number>>;
|
|
9
|
+
slidesLength: number;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Owns the deferred, one-shot scroll to the initial page and the state flags
|
|
13
|
+
* that keep it from fighting the scroll handler. Returns `consumeSnapBackSkip`,
|
|
14
|
+
* which the scroll handler calls once to swallow the scroll-snap correction
|
|
15
|
+
* that follows our own initial scroll.
|
|
16
|
+
*/
|
|
17
|
+
export declare const useInitialScroll: ({ alignment, currentPage, currentSlidesPerView, goTo, initialIndex, numberOfPage, setCurrentPage, slidesLength, }: UseInitialScrollOptions) => (() => boolean);
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { UseSwiperOptions } from './types';
|
|
2
|
+
export declare const useSwiper: (options?: UseSwiperOptions) => {
|
|
3
|
+
autoplay: {
|
|
4
|
+
duration: number;
|
|
5
|
+
enabled: boolean;
|
|
6
|
+
loop: boolean;
|
|
7
|
+
};
|
|
8
|
+
navigation: {
|
|
9
|
+
desktop: boolean;
|
|
10
|
+
mobile: boolean;
|
|
11
|
+
};
|
|
12
|
+
slides: {
|
|
13
|
+
alignment: "center" | "default";
|
|
14
|
+
currentPage: number;
|
|
15
|
+
currentSlidesPerView: number;
|
|
16
|
+
expandOnLargeScreens: boolean;
|
|
17
|
+
gap: number;
|
|
18
|
+
id: string;
|
|
19
|
+
initialIndex: number;
|
|
20
|
+
perView: {
|
|
21
|
+
desktop: number;
|
|
22
|
+
mobile: number;
|
|
23
|
+
tablet: number;
|
|
24
|
+
};
|
|
25
|
+
setCurrentPage: import('react').Dispatch<import('react').SetStateAction<number>>;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const useInterval: (callback: () => void, delay: number) => void;
|
|
1
|
+
export declare const useInterval: (callback: () => void, delay: null | number) => void;
|
|
2
2
|
export declare const getSlideWidth: (slidesPerView: number, spaceBetween: number) => string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { As, PropsWithAs } from '../../../utils';
|
|
2
1
|
import { ActionButtonProps, HeaderLeftActionsProps, HeaderRightActionsProps, HeaderTabItem, HeaderTabsProps, HeaderTitleProps } from '../types';
|
|
3
2
|
export declare const HeaderComponent: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
4
3
|
children?: import('react').ReactNode | undefined;
|
|
@@ -6,8 +5,8 @@ export declare const HeaderComponent: import('react').ForwardRefExoticComponent<
|
|
|
6
5
|
export declare const Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
7
6
|
children?: import('react').ReactNode | undefined;
|
|
8
7
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
9
|
-
Button: (
|
|
10
|
-
CloseButton: (
|
|
8
|
+
Button: import('react').ForwardRefExoticComponent<Omit<import('../types').ActionButtonOptions, keyof import('react').HTMLAttributes<HTMLButtonElement>> & import('react').HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
9
|
+
CloseButton: import('react').ForwardRefExoticComponent<Omit<ActionButtonProps, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
11
10
|
LeftActions: ({ children, isExpandable, onExpandChange, }: HeaderLeftActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
11
|
RightActions: ({ children, isClosable, onClose }: HeaderRightActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
12
|
Tab: import('../../../utils').FunctionComponentWithAs<"button", HeaderTabItem>;
|
|
@@ -11,8 +11,8 @@ export declare const Window: import('../../utils').FunctionComponentWithAs<"div"
|
|
|
11
11
|
Header: import('react').ForwardRefExoticComponent<import('react').HTMLAttributes<HTMLDivElement> & {
|
|
12
12
|
children?: import('react').ReactNode | undefined;
|
|
13
13
|
} & import('react').RefAttributes<HTMLDivElement>> & {
|
|
14
|
-
Button:
|
|
15
|
-
CloseButton:
|
|
14
|
+
Button: import('react').ForwardRefExoticComponent<Omit<import('./types').ActionButtonOptions, keyof import('react').HTMLAttributes<HTMLButtonElement>> & import('react').HTMLAttributes<HTMLButtonElement> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
15
|
+
CloseButton: import('react').ForwardRefExoticComponent<Omit<import('./types').ActionButtonProps, "icon"> & import('react').RefAttributes<HTMLButtonElement>>;
|
|
16
16
|
LeftActions: ({ children, isExpandable, onExpandChange, }: import('./types').HeaderLeftActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
17
|
RightActions: ({ children, isClosable, onClose }: import('./types').HeaderRightActionsProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
18
|
Tab: import('../../utils').FunctionComponentWithAs<"button", import('./types').HeaderTabItem>;
|