@agnos-ui/react-bootstrap 0.3.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 -0
- package/accordion-BaQCaLLI.cjs +49 -0
- package/accordion-Bpx0new2.js +50 -0
- package/alert-DOBOL4nD.cjs +50 -0
- package/alert-DWq65Emo.js +51 -0
- package/components/accordion/accordion.d.ts +15 -0
- package/components/accordion/index.cjs +14 -0
- package/components/accordion/index.d.ts +1 -0
- package/components/accordion/index.js +7 -0
- package/components/alert/alert.d.ts +10 -0
- package/components/alert/index.cjs +13 -0
- package/components/alert/index.d.ts +1 -0
- package/components/alert/index.js +6 -0
- package/components/modal/index.cjs +14 -0
- package/components/modal/index.d.ts +1 -0
- package/components/modal/index.js +7 -0
- package/components/modal/modal.d.ts +11 -0
- package/components/pagination/index.cjs +17 -0
- package/components/pagination/index.d.ts +1 -0
- package/components/pagination/index.js +10 -0
- package/components/pagination/pageItem.d.ts +20 -0
- package/components/pagination/pagination.d.ts +12 -0
- package/components/progressbar/index.cjs +13 -0
- package/components/progressbar/index.d.ts +1 -0
- package/components/progressbar/index.js +6 -0
- package/components/progressbar/progressbar.d.ts +9 -0
- package/components/rating/index.cjs +13 -0
- package/components/rating/index.d.ts +1 -0
- package/components/rating/index.js +6 -0
- package/components/rating/rating.d.ts +7 -0
- package/components/select/index.cjs +13 -0
- package/components/select/index.d.ts +1 -0
- package/components/select/index.js +6 -0
- package/components/select/select.d.ts +9 -0
- package/components/slider/index.cjs +15 -0
- package/components/slider/index.d.ts +1 -0
- package/components/slider/index.js +8 -0
- package/components/slider/slider.d.ts +13 -0
- package/components/toast/index.cjs +13 -0
- package/components/toast/index.d.ts +1 -0
- package/components/toast/index.js +6 -0
- package/components/toast/toast.d.ts +10 -0
- package/config.d.ts +13 -0
- package/generated/config.cjs +16 -0
- package/generated/config.d.ts +1 -0
- package/generated/config.js +10 -0
- package/generated/index.d.ts +24 -0
- package/generated/services/extendWidget.cjs +10 -0
- package/generated/services/extendWidget.d.ts +1 -0
- package/generated/services/extendWidget.js +1 -0
- package/generated/services/floatingUI.cjs +10 -0
- package/generated/services/floatingUI.d.ts +1 -0
- package/generated/services/floatingUI.js +1 -0
- package/generated/services/focustrack.cjs +10 -0
- package/generated/services/focustrack.d.ts +1 -0
- package/generated/services/focustrack.js +1 -0
- package/generated/services/hash.cjs +10 -0
- package/generated/services/hash.d.ts +1 -0
- package/generated/services/hash.js +1 -0
- package/generated/services/intersection.cjs +10 -0
- package/generated/services/intersection.d.ts +1 -0
- package/generated/services/intersection.js +1 -0
- package/generated/services/matchMedia.cjs +10 -0
- package/generated/services/matchMedia.d.ts +1 -0
- package/generated/services/matchMedia.js +1 -0
- package/generated/services/navManager.cjs +10 -0
- package/generated/services/navManager.d.ts +1 -0
- package/generated/services/navManager.js +1 -0
- package/generated/services/portal.cjs +10 -0
- package/generated/services/portal.d.ts +1 -0
- package/generated/services/portal.js +1 -0
- package/generated/services/resizeObserver.cjs +10 -0
- package/generated/services/resizeObserver.d.ts +1 -0
- package/generated/services/resizeObserver.js +1 -0
- package/generated/services/siblingsInert.cjs +10 -0
- package/generated/services/siblingsInert.d.ts +1 -0
- package/generated/services/siblingsInert.js +1 -0
- package/generated/services/transitions/baseTransitions.cjs +10 -0
- package/generated/services/transitions/baseTransitions.d.ts +1 -0
- package/generated/services/transitions/baseTransitions.js +1 -0
- package/generated/services/transitions/bootstrap.cjs +10 -0
- package/generated/services/transitions/bootstrap.d.ts +1 -0
- package/generated/services/transitions/bootstrap.js +1 -0
- package/generated/services/transitions/collapse.cjs +10 -0
- package/generated/services/transitions/collapse.d.ts +1 -0
- package/generated/services/transitions/collapse.js +1 -0
- package/generated/services/transitions/cssTransitions.cjs +10 -0
- package/generated/services/transitions/cssTransitions.d.ts +1 -0
- package/generated/services/transitions/cssTransitions.js +1 -0
- package/generated/services/transitions/simpleClassTransition.cjs +10 -0
- package/generated/services/transitions/simpleClassTransition.d.ts +1 -0
- package/generated/services/transitions/simpleClassTransition.js +1 -0
- package/generated/slot.cjs +10 -0
- package/generated/slot.d.ts +1 -0
- package/generated/slot.js +1 -0
- package/generated/types.cjs +10 -0
- package/generated/types.d.ts +1 -0
- package/generated/types.js +1 -0
- package/generated/utils/directive.cjs +10 -0
- package/generated/utils/directive.d.ts +1 -0
- package/generated/utils/directive.js +1 -0
- package/generated/utils/portal.cjs +10 -0
- package/generated/utils/portal.d.ts +1 -0
- package/generated/utils/portal.js +1 -0
- package/generated/utils/stores.cjs +10 -0
- package/generated/utils/stores.d.ts +1 -0
- package/generated/utils/stores.js +1 -0
- package/generated/utils/widget.cjs +10 -0
- package/generated/utils/widget.d.ts +1 -0
- package/generated/utils/widget.js +1 -0
- package/generated/utils/writables.cjs +10 -0
- package/generated/utils/writables.d.ts +1 -0
- package/generated/utils/writables.js +1 -0
- package/index.cjs +298 -0
- package/index.d.ts +10 -0
- package/index.js +74 -0
- package/modal-2qAV4Hjl.cjs +59 -0
- package/modal-B6rJgzVm.js +60 -0
- package/package.json +85 -0
- package/pagination-CKUbq-OI.cjs +118 -0
- package/pagination-X2bugeX-.js +102 -0
- package/progressbar-D-yo9AHH.cjs +24 -0
- package/progressbar-D1-6Dzrf.js +25 -0
- package/rating-Cvad2Z2H.js +30 -0
- package/rating-D2Ajh4vg.cjs +29 -0
- package/select-B_Thv-qd.js +75 -0
- package/select-DHik5ocI.cjs +74 -0
- package/services/transitions/bootstrap.d.ts +1 -0
- package/slider-DLdA-y4u.js +59 -0
- package/slider-DUv6gRI9.cjs +58 -0
- package/toast-BUiyh5r_.js +45 -0
- package/toast-Dp_zjIff.cjs +44 -0
package/index.cjs
ADDED
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
+
const accordion = require("./accordion-BaQCaLLI.cjs");
|
|
4
|
+
const alert = require("./alert-DOBOL4nD.cjs");
|
|
5
|
+
const modal = require("./modal-2qAV4Hjl.cjs");
|
|
6
|
+
const pagination = require("./pagination-CKUbq-OI.cjs");
|
|
7
|
+
const progressbar = require("./progressbar-D-yo9AHH.cjs");
|
|
8
|
+
const rating = require("./rating-D2Ajh4vg.cjs");
|
|
9
|
+
const select = require("./select-DHik5ocI.cjs");
|
|
10
|
+
const slider = require("./slider-DUv6gRI9.cjs");
|
|
11
|
+
const toast = require("./toast-Dp_zjIff.cjs");
|
|
12
|
+
const accordion$1 = require("@agnos-ui/core-bootstrap/components/accordion");
|
|
13
|
+
const alert$1 = require("@agnos-ui/core-bootstrap/components/alert");
|
|
14
|
+
const modal$1 = require("@agnos-ui/core-bootstrap/components/modal");
|
|
15
|
+
const pagination$1 = require("@agnos-ui/core-bootstrap/components/pagination");
|
|
16
|
+
const progressbar$1 = require("@agnos-ui/core-bootstrap/components/progressbar");
|
|
17
|
+
const rating$1 = require("@agnos-ui/react-headless/components/rating");
|
|
18
|
+
const select$1 = require("@agnos-ui/core-bootstrap/components/select");
|
|
19
|
+
const slider$1 = require("@agnos-ui/core-bootstrap/components/slider");
|
|
20
|
+
const toast$1 = require("@agnos-ui/core-bootstrap/components/toast");
|
|
21
|
+
const types = require("@agnos-ui/react-headless/types");
|
|
22
|
+
const slot = require("@agnos-ui/react-headless/slot");
|
|
23
|
+
const config = require("@agnos-ui/react-headless/config");
|
|
24
|
+
const generated_config = require("./generated/config.cjs");
|
|
25
|
+
const widget = require("@agnos-ui/react-headless/utils/widget");
|
|
26
|
+
const stores = require("@agnos-ui/react-headless/utils/stores");
|
|
27
|
+
const portal = require("@agnos-ui/react-headless/utils/portal");
|
|
28
|
+
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
29
|
+
const writables = require("@agnos-ui/react-headless/utils/writables");
|
|
30
|
+
const siblingsInert = require("@agnos-ui/react-headless/services/siblingsInert");
|
|
31
|
+
const resizeObserver = require("@agnos-ui/react-headless/services/resizeObserver");
|
|
32
|
+
const portal$1 = require("@agnos-ui/react-headless/services/portal");
|
|
33
|
+
const navManager = require("@agnos-ui/react-headless/services/navManager");
|
|
34
|
+
const matchMedia = require("@agnos-ui/react-headless/services/matchMedia");
|
|
35
|
+
const intersection = require("@agnos-ui/react-headless/services/intersection");
|
|
36
|
+
const hash = require("@agnos-ui/react-headless/services/hash");
|
|
37
|
+
const focustrack = require("@agnos-ui/react-headless/services/focustrack");
|
|
38
|
+
const floatingUI = require("@agnos-ui/react-headless/services/floatingUI");
|
|
39
|
+
const extendWidget = require("@agnos-ui/react-headless/services/extendWidget");
|
|
40
|
+
const simpleClassTransition = require("@agnos-ui/react-headless/services/transitions/simpleClassTransition");
|
|
41
|
+
const cssTransitions = require("@agnos-ui/react-headless/services/transitions/cssTransitions");
|
|
42
|
+
const collapse = require("@agnos-ui/react-headless/services/transitions/collapse");
|
|
43
|
+
const baseTransitions = require("@agnos-ui/react-headless/services/transitions/baseTransitions");
|
|
44
|
+
const transitions = require("@agnos-ui/core-bootstrap/services/transitions");
|
|
45
|
+
exports.Accordion = accordion.Accordion;
|
|
46
|
+
exports.AccordionItem = accordion.AccordionItem;
|
|
47
|
+
exports.createAccordion = accordion.createAccordion;
|
|
48
|
+
exports.Alert = alert.Alert;
|
|
49
|
+
exports.createAlert = alert.createAlert;
|
|
50
|
+
exports.Modal = modal.Modal;
|
|
51
|
+
exports.createModal = modal.createModal;
|
|
52
|
+
exports.openModal = modal.openModal;
|
|
53
|
+
exports.DefaultPages = pagination.DefaultPages;
|
|
54
|
+
exports.DefaultStructure = pagination.DefaultStructure;
|
|
55
|
+
exports.NavButton = pagination.NavButton;
|
|
56
|
+
exports.PageItem = pagination.PageItem;
|
|
57
|
+
exports.Pagination = pagination.Pagination;
|
|
58
|
+
exports.createPagination = pagination.createPagination;
|
|
59
|
+
exports.Progressbar = progressbar.Progressbar;
|
|
60
|
+
exports.createProgressbar = progressbar.createProgressbar;
|
|
61
|
+
exports.Rating = rating.Rating;
|
|
62
|
+
exports.createRating = rating.createRating;
|
|
63
|
+
exports.Select = select.Select;
|
|
64
|
+
exports.createSelect = select.createSelect;
|
|
65
|
+
exports.DefaultSlotHandle = slider.DefaultSlotHandle;
|
|
66
|
+
exports.DefaultSlotStructure = slider.DefaultSlotStructure;
|
|
67
|
+
exports.Slider = slider.Slider;
|
|
68
|
+
exports.createSlider = slider.createSlider;
|
|
69
|
+
exports.Toast = toast.Toast;
|
|
70
|
+
exports.createToast = toast.createToast;
|
|
71
|
+
exports.WidgetsDefaultConfig = generated_config.WidgetsDefaultConfig;
|
|
72
|
+
exports.useWidgetContext = generated_config.useWidgetContext;
|
|
73
|
+
exports.useWidgetWithConfig = generated_config.useWidgetWithConfig;
|
|
74
|
+
exports.widgetsConfigContext = generated_config.widgetsConfigContext;
|
|
75
|
+
Object.keys(accordion$1).forEach((k) => {
|
|
76
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
77
|
+
Object.defineProperty(exports, k, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: () => accordion$1[k]
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
Object.keys(alert$1).forEach((k) => {
|
|
83
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
84
|
+
Object.defineProperty(exports, k, {
|
|
85
|
+
enumerable: true,
|
|
86
|
+
get: () => alert$1[k]
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
Object.keys(modal$1).forEach((k) => {
|
|
90
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
91
|
+
Object.defineProperty(exports, k, {
|
|
92
|
+
enumerable: true,
|
|
93
|
+
get: () => modal$1[k]
|
|
94
|
+
});
|
|
95
|
+
});
|
|
96
|
+
Object.keys(pagination$1).forEach((k) => {
|
|
97
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
98
|
+
Object.defineProperty(exports, k, {
|
|
99
|
+
enumerable: true,
|
|
100
|
+
get: () => pagination$1[k]
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
Object.keys(progressbar$1).forEach((k) => {
|
|
104
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
105
|
+
Object.defineProperty(exports, k, {
|
|
106
|
+
enumerable: true,
|
|
107
|
+
get: () => progressbar$1[k]
|
|
108
|
+
});
|
|
109
|
+
});
|
|
110
|
+
Object.keys(rating$1).forEach((k) => {
|
|
111
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
112
|
+
Object.defineProperty(exports, k, {
|
|
113
|
+
enumerable: true,
|
|
114
|
+
get: () => rating$1[k]
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
Object.keys(select$1).forEach((k) => {
|
|
118
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
119
|
+
Object.defineProperty(exports, k, {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: () => select$1[k]
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
Object.keys(slider$1).forEach((k) => {
|
|
125
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
126
|
+
Object.defineProperty(exports, k, {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: () => slider$1[k]
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
Object.keys(toast$1).forEach((k) => {
|
|
132
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
133
|
+
Object.defineProperty(exports, k, {
|
|
134
|
+
enumerable: true,
|
|
135
|
+
get: () => toast$1[k]
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
Object.keys(types).forEach((k) => {
|
|
139
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
140
|
+
Object.defineProperty(exports, k, {
|
|
141
|
+
enumerable: true,
|
|
142
|
+
get: () => types[k]
|
|
143
|
+
});
|
|
144
|
+
});
|
|
145
|
+
Object.keys(slot).forEach((k) => {
|
|
146
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
147
|
+
Object.defineProperty(exports, k, {
|
|
148
|
+
enumerable: true,
|
|
149
|
+
get: () => slot[k]
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
Object.keys(config).forEach((k) => {
|
|
153
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
154
|
+
Object.defineProperty(exports, k, {
|
|
155
|
+
enumerable: true,
|
|
156
|
+
get: () => config[k]
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
Object.keys(widget).forEach((k) => {
|
|
160
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
161
|
+
Object.defineProperty(exports, k, {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: () => widget[k]
|
|
164
|
+
});
|
|
165
|
+
});
|
|
166
|
+
Object.keys(stores).forEach((k) => {
|
|
167
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
168
|
+
Object.defineProperty(exports, k, {
|
|
169
|
+
enumerable: true,
|
|
170
|
+
get: () => stores[k]
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
Object.keys(portal).forEach((k) => {
|
|
174
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
175
|
+
Object.defineProperty(exports, k, {
|
|
176
|
+
enumerable: true,
|
|
177
|
+
get: () => portal[k]
|
|
178
|
+
});
|
|
179
|
+
});
|
|
180
|
+
Object.keys(directive).forEach((k) => {
|
|
181
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
182
|
+
Object.defineProperty(exports, k, {
|
|
183
|
+
enumerable: true,
|
|
184
|
+
get: () => directive[k]
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
Object.keys(writables).forEach((k) => {
|
|
188
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
189
|
+
Object.defineProperty(exports, k, {
|
|
190
|
+
enumerable: true,
|
|
191
|
+
get: () => writables[k]
|
|
192
|
+
});
|
|
193
|
+
});
|
|
194
|
+
Object.keys(siblingsInert).forEach((k) => {
|
|
195
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
196
|
+
Object.defineProperty(exports, k, {
|
|
197
|
+
enumerable: true,
|
|
198
|
+
get: () => siblingsInert[k]
|
|
199
|
+
});
|
|
200
|
+
});
|
|
201
|
+
Object.keys(resizeObserver).forEach((k) => {
|
|
202
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
203
|
+
Object.defineProperty(exports, k, {
|
|
204
|
+
enumerable: true,
|
|
205
|
+
get: () => resizeObserver[k]
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
Object.keys(portal$1).forEach((k) => {
|
|
209
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
210
|
+
Object.defineProperty(exports, k, {
|
|
211
|
+
enumerable: true,
|
|
212
|
+
get: () => portal$1[k]
|
|
213
|
+
});
|
|
214
|
+
});
|
|
215
|
+
Object.keys(navManager).forEach((k) => {
|
|
216
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
217
|
+
Object.defineProperty(exports, k, {
|
|
218
|
+
enumerable: true,
|
|
219
|
+
get: () => navManager[k]
|
|
220
|
+
});
|
|
221
|
+
});
|
|
222
|
+
Object.keys(matchMedia).forEach((k) => {
|
|
223
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
224
|
+
Object.defineProperty(exports, k, {
|
|
225
|
+
enumerable: true,
|
|
226
|
+
get: () => matchMedia[k]
|
|
227
|
+
});
|
|
228
|
+
});
|
|
229
|
+
Object.keys(intersection).forEach((k) => {
|
|
230
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
231
|
+
Object.defineProperty(exports, k, {
|
|
232
|
+
enumerable: true,
|
|
233
|
+
get: () => intersection[k]
|
|
234
|
+
});
|
|
235
|
+
});
|
|
236
|
+
Object.keys(hash).forEach((k) => {
|
|
237
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
238
|
+
Object.defineProperty(exports, k, {
|
|
239
|
+
enumerable: true,
|
|
240
|
+
get: () => hash[k]
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
Object.keys(focustrack).forEach((k) => {
|
|
244
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
245
|
+
Object.defineProperty(exports, k, {
|
|
246
|
+
enumerable: true,
|
|
247
|
+
get: () => focustrack[k]
|
|
248
|
+
});
|
|
249
|
+
});
|
|
250
|
+
Object.keys(floatingUI).forEach((k) => {
|
|
251
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
252
|
+
Object.defineProperty(exports, k, {
|
|
253
|
+
enumerable: true,
|
|
254
|
+
get: () => floatingUI[k]
|
|
255
|
+
});
|
|
256
|
+
});
|
|
257
|
+
Object.keys(extendWidget).forEach((k) => {
|
|
258
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
259
|
+
Object.defineProperty(exports, k, {
|
|
260
|
+
enumerable: true,
|
|
261
|
+
get: () => extendWidget[k]
|
|
262
|
+
});
|
|
263
|
+
});
|
|
264
|
+
Object.keys(simpleClassTransition).forEach((k) => {
|
|
265
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
266
|
+
Object.defineProperty(exports, k, {
|
|
267
|
+
enumerable: true,
|
|
268
|
+
get: () => simpleClassTransition[k]
|
|
269
|
+
});
|
|
270
|
+
});
|
|
271
|
+
Object.keys(cssTransitions).forEach((k) => {
|
|
272
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
273
|
+
Object.defineProperty(exports, k, {
|
|
274
|
+
enumerable: true,
|
|
275
|
+
get: () => cssTransitions[k]
|
|
276
|
+
});
|
|
277
|
+
});
|
|
278
|
+
Object.keys(collapse).forEach((k) => {
|
|
279
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
280
|
+
Object.defineProperty(exports, k, {
|
|
281
|
+
enumerable: true,
|
|
282
|
+
get: () => collapse[k]
|
|
283
|
+
});
|
|
284
|
+
});
|
|
285
|
+
Object.keys(baseTransitions).forEach((k) => {
|
|
286
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
287
|
+
Object.defineProperty(exports, k, {
|
|
288
|
+
enumerable: true,
|
|
289
|
+
get: () => baseTransitions[k]
|
|
290
|
+
});
|
|
291
|
+
});
|
|
292
|
+
Object.keys(transitions).forEach((k) => {
|
|
293
|
+
if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k))
|
|
294
|
+
Object.defineProperty(exports, k, {
|
|
295
|
+
enumerable: true,
|
|
296
|
+
get: () => transitions[k]
|
|
297
|
+
});
|
|
298
|
+
});
|
package/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './components/accordion';
|
|
2
|
+
export * from './components/alert';
|
|
3
|
+
export * from './components/modal';
|
|
4
|
+
export * from './components/pagination';
|
|
5
|
+
export * from './components/progressbar';
|
|
6
|
+
export * from './components/rating';
|
|
7
|
+
export * from './components/select';
|
|
8
|
+
export * from './components/slider';
|
|
9
|
+
export * from './components/toast';
|
|
10
|
+
export * from './generated';
|
package/index.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { a, A, c } from "./accordion-Bpx0new2.js";
|
|
2
|
+
import { A as A2, c as c2 } from "./alert-DWq65Emo.js";
|
|
3
|
+
import { M, c as c3, o } from "./modal-B6rJgzVm.js";
|
|
4
|
+
import { D, a as a2, N, b, P, c as c4 } from "./pagination-X2bugeX-.js";
|
|
5
|
+
import { P as P2, c as c5 } from "./progressbar-D1-6Dzrf.js";
|
|
6
|
+
import { R, c as c6 } from "./rating-Cvad2Z2H.js";
|
|
7
|
+
import { S, c as c7 } from "./select-B_Thv-qd.js";
|
|
8
|
+
import { D as D2, a as a3, S as S2, c as c8 } from "./slider-DLdA-y4u.js";
|
|
9
|
+
import { T, c as c9 } from "./toast-BUiyh5r_.js";
|
|
10
|
+
export * from "@agnos-ui/core-bootstrap/components/accordion";
|
|
11
|
+
export * from "@agnos-ui/core-bootstrap/components/alert";
|
|
12
|
+
export * from "@agnos-ui/core-bootstrap/components/modal";
|
|
13
|
+
export * from "@agnos-ui/core-bootstrap/components/pagination";
|
|
14
|
+
export * from "@agnos-ui/core-bootstrap/components/progressbar";
|
|
15
|
+
export * from "@agnos-ui/react-headless/components/rating";
|
|
16
|
+
export * from "@agnos-ui/core-bootstrap/components/select";
|
|
17
|
+
export * from "@agnos-ui/core-bootstrap/components/slider";
|
|
18
|
+
export * from "@agnos-ui/core-bootstrap/components/toast";
|
|
19
|
+
export * from "@agnos-ui/react-headless/types";
|
|
20
|
+
export * from "@agnos-ui/react-headless/slot";
|
|
21
|
+
export * from "@agnos-ui/react-headless/config";
|
|
22
|
+
import { WidgetsDefaultConfig, useWidgetContext, useWidgetWithConfig, widgetsConfigContext } from "./generated/config.js";
|
|
23
|
+
export * from "@agnos-ui/react-headless/utils/widget";
|
|
24
|
+
export * from "@agnos-ui/react-headless/utils/stores";
|
|
25
|
+
export * from "@agnos-ui/react-headless/utils/portal";
|
|
26
|
+
export * from "@agnos-ui/react-headless/utils/directive";
|
|
27
|
+
export * from "@agnos-ui/react-headless/utils/writables";
|
|
28
|
+
export * from "@agnos-ui/react-headless/services/siblingsInert";
|
|
29
|
+
export * from "@agnos-ui/react-headless/services/resizeObserver";
|
|
30
|
+
export * from "@agnos-ui/react-headless/services/portal";
|
|
31
|
+
export * from "@agnos-ui/react-headless/services/navManager";
|
|
32
|
+
export * from "@agnos-ui/react-headless/services/matchMedia";
|
|
33
|
+
export * from "@agnos-ui/react-headless/services/intersection";
|
|
34
|
+
export * from "@agnos-ui/react-headless/services/hash";
|
|
35
|
+
export * from "@agnos-ui/react-headless/services/focustrack";
|
|
36
|
+
export * from "@agnos-ui/react-headless/services/floatingUI";
|
|
37
|
+
export * from "@agnos-ui/react-headless/services/extendWidget";
|
|
38
|
+
export * from "@agnos-ui/react-headless/services/transitions/simpleClassTransition";
|
|
39
|
+
export * from "@agnos-ui/react-headless/services/transitions/cssTransitions";
|
|
40
|
+
export * from "@agnos-ui/react-headless/services/transitions/collapse";
|
|
41
|
+
export * from "@agnos-ui/react-headless/services/transitions/baseTransitions";
|
|
42
|
+
export * from "@agnos-ui/core-bootstrap/services/transitions";
|
|
43
|
+
export {
|
|
44
|
+
a as Accordion,
|
|
45
|
+
A as AccordionItem,
|
|
46
|
+
A2 as Alert,
|
|
47
|
+
D as DefaultPages,
|
|
48
|
+
D2 as DefaultSlotHandle,
|
|
49
|
+
a3 as DefaultSlotStructure,
|
|
50
|
+
a2 as DefaultStructure,
|
|
51
|
+
M as Modal,
|
|
52
|
+
N as NavButton,
|
|
53
|
+
b as PageItem,
|
|
54
|
+
P as Pagination,
|
|
55
|
+
P2 as Progressbar,
|
|
56
|
+
R as Rating,
|
|
57
|
+
S as Select,
|
|
58
|
+
S2 as Slider,
|
|
59
|
+
T as Toast,
|
|
60
|
+
WidgetsDefaultConfig,
|
|
61
|
+
c as createAccordion,
|
|
62
|
+
c2 as createAlert,
|
|
63
|
+
c3 as createModal,
|
|
64
|
+
c4 as createPagination,
|
|
65
|
+
c5 as createProgressbar,
|
|
66
|
+
c6 as createRating,
|
|
67
|
+
c7 as createSelect,
|
|
68
|
+
c8 as createSlider,
|
|
69
|
+
c9 as createToast,
|
|
70
|
+
o as openModal,
|
|
71
|
+
useWidgetContext,
|
|
72
|
+
useWidgetWithConfig,
|
|
73
|
+
widgetsConfigContext
|
|
74
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
const jsxRuntime = require("react/jsx-runtime");
|
|
3
|
+
const portal = require("@agnos-ui/react-headless/utils/portal");
|
|
4
|
+
const types = require("@agnos-ui/react-headless/types");
|
|
5
|
+
const slot = require("@agnos-ui/react-headless/slot");
|
|
6
|
+
const generated_config = require("./generated/config.cjs");
|
|
7
|
+
const directive = require("@agnos-ui/react-headless/utils/directive");
|
|
8
|
+
const ReactDOM = require("react-dom/client");
|
|
9
|
+
const React = require("react");
|
|
10
|
+
const modal = require("@agnos-ui/core-bootstrap/components/modal");
|
|
11
|
+
const classNames = require("classnames");
|
|
12
|
+
const createModal = modal.createModal;
|
|
13
|
+
const DefaultSlotHeader = (slotContext) => {
|
|
14
|
+
const refCloseButton = directive.useDirective(slotContext.widget.directives.closeButtonDirective);
|
|
15
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
16
|
+
/* @__PURE__ */ jsxRuntime.jsx("h5", { className: "modal-title", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotTitle, props: slotContext }) }),
|
|
17
|
+
slotContext.state.closeButton && /* @__PURE__ */ jsxRuntime.jsx("button", { className: "btn-close", ...refCloseButton })
|
|
18
|
+
] });
|
|
19
|
+
};
|
|
20
|
+
const DefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
|
|
21
|
+
slotContext.state.slotTitle && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-header", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotHeader, props: slotContext }) }),
|
|
22
|
+
/* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-body", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotDefault, props: slotContext }) }),
|
|
23
|
+
slotContext.state.slotFooter && /* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-footer", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotFooter, props: slotContext }) })
|
|
24
|
+
] });
|
|
25
|
+
const defaultConfig = {
|
|
26
|
+
slotHeader: DefaultSlotHeader,
|
|
27
|
+
slotStructure: DefaultSlotStructure
|
|
28
|
+
};
|
|
29
|
+
const BackdropElement = ({ widget }) => /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "modal-backdrop"], widget.directives.backdropDirective) });
|
|
30
|
+
const ModalElement = (slotContext) => {
|
|
31
|
+
const { fullscreen } = slotContext.state;
|
|
32
|
+
return /* @__PURE__ */ jsxRuntime.jsx("div", { ...directive.useDirectives([directive.classDirective, "modal d-block"], slotContext.widget.directives.modalDirective), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: classNames("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsxRuntime.jsx(slot.Slot, { slotContent: slotContext.state.slotStructure, props: slotContext }) }) }) });
|
|
33
|
+
};
|
|
34
|
+
const Modal = React.forwardRef(function Modal2(props, ref) {
|
|
35
|
+
const [state, widget] = generated_config.useWidgetWithConfig(createModal, props, "modal", { ...defaultConfig, slotDefault: props.children });
|
|
36
|
+
React.useImperativeHandle(ref, () => widget.api, []);
|
|
37
|
+
const slotContext = {
|
|
38
|
+
state,
|
|
39
|
+
widget: types.toSlotContextWidget(widget)
|
|
40
|
+
};
|
|
41
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(portal.Portal, { container: state.container, children: [
|
|
42
|
+
!state.backdropHidden && /* @__PURE__ */ jsxRuntime.jsx(BackdropElement, { ...slotContext }),
|
|
43
|
+
!state.hidden && /* @__PURE__ */ jsxRuntime.jsx(ModalElement, { ...slotContext })
|
|
44
|
+
] });
|
|
45
|
+
});
|
|
46
|
+
async function openModal(options) {
|
|
47
|
+
const root = ReactDOM.createRoot(document.createElement("div"));
|
|
48
|
+
try {
|
|
49
|
+
const api = await new Promise((resolve) => {
|
|
50
|
+
root.render(/* @__PURE__ */ jsxRuntime.jsx(Modal, { ...options, ref: resolve }));
|
|
51
|
+
});
|
|
52
|
+
return await api.open();
|
|
53
|
+
} finally {
|
|
54
|
+
root.unmount();
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
exports.Modal = Modal;
|
|
58
|
+
exports.createModal = createModal;
|
|
59
|
+
exports.openModal = openModal;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { Portal } from "@agnos-ui/react-headless/utils/portal";
|
|
3
|
+
import { toSlotContextWidget } from "@agnos-ui/react-headless/types";
|
|
4
|
+
import { Slot } from "@agnos-ui/react-headless/slot";
|
|
5
|
+
import { useWidgetWithConfig } from "./generated/config.js";
|
|
6
|
+
import { useDirectives, classDirective, useDirective } from "@agnos-ui/react-headless/utils/directive";
|
|
7
|
+
import ReactDOM from "react-dom/client";
|
|
8
|
+
import { forwardRef, useImperativeHandle } from "react";
|
|
9
|
+
import { createModal as createModal$1 } from "@agnos-ui/core-bootstrap/components/modal";
|
|
10
|
+
import classNames from "classnames";
|
|
11
|
+
const createModal = createModal$1;
|
|
12
|
+
const DefaultSlotHeader = (slotContext) => {
|
|
13
|
+
const refCloseButton = useDirective(slotContext.widget.directives.closeButtonDirective);
|
|
14
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
15
|
+
/* @__PURE__ */ jsx("h5", { className: "modal-title", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotTitle, props: slotContext }) }),
|
|
16
|
+
slotContext.state.closeButton && /* @__PURE__ */ jsx("button", { className: "btn-close", ...refCloseButton })
|
|
17
|
+
] });
|
|
18
|
+
};
|
|
19
|
+
const DefaultSlotStructure = (slotContext) => /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
20
|
+
slotContext.state.slotTitle && /* @__PURE__ */ jsx("div", { className: "modal-header", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotHeader, props: slotContext }) }),
|
|
21
|
+
/* @__PURE__ */ jsx("div", { className: "modal-body", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotDefault, props: slotContext }) }),
|
|
22
|
+
slotContext.state.slotFooter && /* @__PURE__ */ jsx("div", { className: "modal-footer", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotFooter, props: slotContext }) })
|
|
23
|
+
] });
|
|
24
|
+
const defaultConfig = {
|
|
25
|
+
slotHeader: DefaultSlotHeader,
|
|
26
|
+
slotStructure: DefaultSlotStructure
|
|
27
|
+
};
|
|
28
|
+
const BackdropElement = ({ widget }) => /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "modal-backdrop"], widget.directives.backdropDirective) });
|
|
29
|
+
const ModalElement = (slotContext) => {
|
|
30
|
+
const { fullscreen } = slotContext.state;
|
|
31
|
+
return /* @__PURE__ */ jsx("div", { ...useDirectives([classDirective, "modal d-block"], slotContext.widget.directives.modalDirective), children: /* @__PURE__ */ jsx("div", { className: classNames("modal-dialog", { "modal-fullscreen": fullscreen }), children: /* @__PURE__ */ jsx("div", { className: "modal-content", children: /* @__PURE__ */ jsx(Slot, { slotContent: slotContext.state.slotStructure, props: slotContext }) }) }) });
|
|
32
|
+
};
|
|
33
|
+
const Modal = forwardRef(function Modal2(props, ref) {
|
|
34
|
+
const [state, widget] = useWidgetWithConfig(createModal, props, "modal", { ...defaultConfig, slotDefault: props.children });
|
|
35
|
+
useImperativeHandle(ref, () => widget.api, []);
|
|
36
|
+
const slotContext = {
|
|
37
|
+
state,
|
|
38
|
+
widget: toSlotContextWidget(widget)
|
|
39
|
+
};
|
|
40
|
+
return /* @__PURE__ */ jsxs(Portal, { container: state.container, children: [
|
|
41
|
+
!state.backdropHidden && /* @__PURE__ */ jsx(BackdropElement, { ...slotContext }),
|
|
42
|
+
!state.hidden && /* @__PURE__ */ jsx(ModalElement, { ...slotContext })
|
|
43
|
+
] });
|
|
44
|
+
});
|
|
45
|
+
async function openModal(options) {
|
|
46
|
+
const root = ReactDOM.createRoot(document.createElement("div"));
|
|
47
|
+
try {
|
|
48
|
+
const api = await new Promise((resolve) => {
|
|
49
|
+
root.render(/* @__PURE__ */ jsx(Modal, { ...options, ref: resolve }));
|
|
50
|
+
});
|
|
51
|
+
return await api.open();
|
|
52
|
+
} finally {
|
|
53
|
+
root.unmount();
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
export {
|
|
57
|
+
Modal as M,
|
|
58
|
+
createModal as c,
|
|
59
|
+
openModal as o
|
|
60
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@agnos-ui/react-bootstrap",
|
|
3
|
+
"description": "Bootstrap-based widget library for React.",
|
|
4
|
+
"version": "0.3.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./index.cjs",
|
|
7
|
+
"module": "./index.js",
|
|
8
|
+
"types": "./index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./index.d.ts",
|
|
12
|
+
"require": "./index.cjs",
|
|
13
|
+
"default": "./index.js"
|
|
14
|
+
},
|
|
15
|
+
"./components/*": {
|
|
16
|
+
"types": "./components/*/index.d.ts",
|
|
17
|
+
"require": "./components/*/index.cjs",
|
|
18
|
+
"default": "./components/*/index.js"
|
|
19
|
+
},
|
|
20
|
+
"./config": {
|
|
21
|
+
"types": "./generated/config.d.ts",
|
|
22
|
+
"require": "./generated/config.cjs",
|
|
23
|
+
"default": "./generated/config.js"
|
|
24
|
+
},
|
|
25
|
+
"./slot": {
|
|
26
|
+
"types": "./generated/slot.d.ts",
|
|
27
|
+
"require": "./generated/slot.cjs",
|
|
28
|
+
"default": "./generated/slot.js"
|
|
29
|
+
},
|
|
30
|
+
"./types": {
|
|
31
|
+
"types": "./generated/types.d.ts",
|
|
32
|
+
"require": "./generated/types.cjs",
|
|
33
|
+
"default": "./generated/types.js"
|
|
34
|
+
},
|
|
35
|
+
"./services/*": {
|
|
36
|
+
"types": "./generated/services/*.d.ts",
|
|
37
|
+
"require": "./generated/services/*.cjs",
|
|
38
|
+
"default": "./generated/services/*.js"
|
|
39
|
+
},
|
|
40
|
+
"./services/transitions/*": {
|
|
41
|
+
"types": "./generated/services/transitions/*.d.ts",
|
|
42
|
+
"require": "./generated/services/transitions/*.cjs",
|
|
43
|
+
"default": "./generated/services/transitions/*.js"
|
|
44
|
+
},
|
|
45
|
+
"./utils/*": {
|
|
46
|
+
"types": "./generated/utils/*.d.ts",
|
|
47
|
+
"require": "./generated/utils/*.cjs",
|
|
48
|
+
"default": "./generated/utils/*.js"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"dependencies": {
|
|
52
|
+
"@agnos-ui/core-bootstrap": "0.3.0",
|
|
53
|
+
"@agnos-ui/react-headless": "0.3.0",
|
|
54
|
+
"classnames": "^2.5.1"
|
|
55
|
+
},
|
|
56
|
+
"peerDependencies": {
|
|
57
|
+
"@amadeus-it-group/tansu": "*",
|
|
58
|
+
"react": "*",
|
|
59
|
+
"react-dom": "*"
|
|
60
|
+
},
|
|
61
|
+
"sideEffects": false,
|
|
62
|
+
"homepage": "https://amadeusitgroup.github.io/AgnosUI/latest/",
|
|
63
|
+
"bugs": "https://github.com/AmadeusITGroup/AgnosUI/issues",
|
|
64
|
+
"license": "MIT",
|
|
65
|
+
"repository": {
|
|
66
|
+
"type": "git",
|
|
67
|
+
"url": "git+https://github.com/AmadeusITGroup/AgnosUI.git",
|
|
68
|
+
"directory": "react/bootstrap"
|
|
69
|
+
},
|
|
70
|
+
"keywords": [
|
|
71
|
+
"react",
|
|
72
|
+
"bootstrap",
|
|
73
|
+
"AgnosUI",
|
|
74
|
+
"accordion",
|
|
75
|
+
"alert",
|
|
76
|
+
"components",
|
|
77
|
+
"modal",
|
|
78
|
+
"pagination",
|
|
79
|
+
"progressbar",
|
|
80
|
+
"rating",
|
|
81
|
+
"slider",
|
|
82
|
+
"toast",
|
|
83
|
+
"widgets"
|
|
84
|
+
]
|
|
85
|
+
}
|