@fpkit/acss 6.3.0 → 6.4.1
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/libs/components/alert/alert.css +1 -1
- package/libs/components/alert/alert.css.map +1 -1
- package/libs/components/alert/alert.min.css +2 -2
- package/libs/components/buttons/icon-button.css +1 -1
- package/libs/components/buttons/icon-button.css.map +1 -1
- package/libs/components/buttons/icon-button.min.css +2 -2
- package/libs/components/dialog/dialog.css +1 -1
- package/libs/components/dialog/dialog.css.map +1 -1
- package/libs/components/dialog/dialog.d.cts +2 -105
- package/libs/components/dialog/dialog.d.ts +2 -105
- package/libs/components/dialog/dialog.min.css +2 -2
- package/libs/components/icons/icon.d.cts +1 -1
- package/libs/components/icons/icon.d.ts +1 -1
- package/libs/dialog-6c6b3588.d.ts +150 -0
- package/libs/{icons-2c09535c.d.ts → icons-48788561.d.ts} +32 -32
- package/libs/icons.d.cts +1 -1
- package/libs/icons.d.ts +1 -1
- package/libs/index.cjs +34 -33
- package/libs/index.cjs.map +1 -1
- package/libs/index.css +1 -1
- package/libs/index.css.map +1 -1
- package/libs/index.d.cts +77 -10
- package/libs/index.d.ts +77 -10
- package/libs/index.js +11 -10
- package/libs/index.js.map +1 -1
- package/package.json +2 -2
- package/src/components/alert/alert.scss +0 -13
- package/src/components/buttons/icon-button.mdx +204 -0
- package/src/components/buttons/icon-button.scss +64 -26
- package/src/components/buttons/icon-button.tsx +9 -6
- package/src/components/dialog/dialog-modal.stories.tsx +71 -0
- package/src/components/dialog/dialog-modal.tsx +29 -3
- package/src/components/dialog/dialog.scss +1 -0
- package/src/components/dialog/dialog.test.tsx +119 -0
- package/src/components/dialog/dialog.types.ts +8 -1
- package/src/index.ts +5 -1
- package/src/sass/utilities/_display.scss +156 -0
- package/src/sass/utilities/_index.scss +3 -0
- package/src/sass/utilities/display.mdx +203 -0
- package/src/sass/utilities/display.stories.tsx +141 -0
- package/src/styles/alert/alert.css +0 -13
- package/src/styles/alert/alert.css.map +1 -1
- package/src/styles/buttons/icon-button.css +55 -16
- package/src/styles/buttons/icon-button.css.map +1 -1
- package/src/styles/dialog/dialog.css +1 -0
- package/src/styles/dialog/dialog.css.map +1 -1
- package/src/styles/index.css +136 -13
- package/src/styles/index.css.map +1 -1
|
@@ -152,7 +152,7 @@ declare const Icon: {
|
|
|
152
152
|
({ id, classes, children, styles, "aria-hidden": ariaHidden, "aria-label": ariaLabel, role, ...props }: IconProps): React.JSX.Element;
|
|
153
153
|
displayName: string;
|
|
154
154
|
Add: {
|
|
155
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
155
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
156
156
|
styles: {
|
|
157
157
|
fill: string;
|
|
158
158
|
display: string;
|
|
@@ -162,7 +162,7 @@ declare const Icon: {
|
|
|
162
162
|
displayName: string;
|
|
163
163
|
};
|
|
164
164
|
ArrowDown: {
|
|
165
|
-
({ fill, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
165
|
+
({ fill, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size">): React.JSX.Element;
|
|
166
166
|
styles: {
|
|
167
167
|
display: string;
|
|
168
168
|
alignItems: string;
|
|
@@ -171,7 +171,7 @@ declare const Icon: {
|
|
|
171
171
|
displayName: string;
|
|
172
172
|
};
|
|
173
173
|
ArrowLeft: {
|
|
174
|
-
({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
174
|
+
({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
175
175
|
styles: {
|
|
176
176
|
display: string;
|
|
177
177
|
alignItems: string;
|
|
@@ -180,11 +180,11 @@ declare const Icon: {
|
|
|
180
180
|
displayName: string;
|
|
181
181
|
};
|
|
182
182
|
ArrowRight: {
|
|
183
|
-
({ size, fill, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
183
|
+
({ size, fill, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
184
184
|
displayName: string;
|
|
185
185
|
};
|
|
186
186
|
ArrowUp: {
|
|
187
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
187
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
188
188
|
displayName: string;
|
|
189
189
|
style: {
|
|
190
190
|
fill: string;
|
|
@@ -195,7 +195,7 @@ declare const Icon: {
|
|
|
195
195
|
};
|
|
196
196
|
};
|
|
197
197
|
Chat: {
|
|
198
|
-
({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
198
|
+
({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
199
199
|
styles: {
|
|
200
200
|
display: string;
|
|
201
201
|
alignItems: string;
|
|
@@ -204,7 +204,7 @@ declare const Icon: {
|
|
|
204
204
|
displayName: string;
|
|
205
205
|
};
|
|
206
206
|
Code: {
|
|
207
|
-
({ strokeColor, fill, size, styles, role, alt, ...props }?: Pick<IconProps$1, "
|
|
207
|
+
({ strokeColor, fill, size, styles, role, alt, ...props }?: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
208
208
|
styles: {
|
|
209
209
|
fill: string;
|
|
210
210
|
stroke: string;
|
|
@@ -214,7 +214,7 @@ declare const Icon: {
|
|
|
214
214
|
};
|
|
215
215
|
};
|
|
216
216
|
Copy: {
|
|
217
|
-
({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
217
|
+
({ size, strokeColor, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
218
218
|
displayName: string;
|
|
219
219
|
styles: {
|
|
220
220
|
stroke: string;
|
|
@@ -224,7 +224,7 @@ declare const Icon: {
|
|
|
224
224
|
};
|
|
225
225
|
};
|
|
226
226
|
Down: {
|
|
227
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
227
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
228
228
|
displayName: string;
|
|
229
229
|
styles: {
|
|
230
230
|
display: string;
|
|
@@ -233,7 +233,7 @@ declare const Icon: {
|
|
|
233
233
|
};
|
|
234
234
|
};
|
|
235
235
|
Home: {
|
|
236
|
-
({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
236
|
+
({ strokeColor, fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
237
237
|
displayName: string;
|
|
238
238
|
styles: {
|
|
239
239
|
fill: string;
|
|
@@ -244,19 +244,19 @@ declare const Icon: {
|
|
|
244
244
|
};
|
|
245
245
|
};
|
|
246
246
|
Info: {
|
|
247
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
247
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
248
248
|
displayName: string;
|
|
249
249
|
};
|
|
250
250
|
InfoSolid: {
|
|
251
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
251
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
252
252
|
displayName: string;
|
|
253
253
|
};
|
|
254
254
|
AlertSolid: {
|
|
255
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
255
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
256
256
|
displayName: string;
|
|
257
257
|
};
|
|
258
258
|
Left: {
|
|
259
|
-
({ fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
259
|
+
({ fill, size, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
260
260
|
displayName: string;
|
|
261
261
|
styles: {
|
|
262
262
|
fill: string;
|
|
@@ -266,14 +266,14 @@ declare const Icon: {
|
|
|
266
266
|
};
|
|
267
267
|
};
|
|
268
268
|
Minus: {
|
|
269
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
269
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
270
270
|
displayName: string;
|
|
271
271
|
styles: {
|
|
272
272
|
fill: string;
|
|
273
273
|
};
|
|
274
274
|
};
|
|
275
275
|
Pause: {
|
|
276
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
276
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
277
277
|
displayName: string;
|
|
278
278
|
style: {
|
|
279
279
|
fill: string;
|
|
@@ -284,7 +284,7 @@ declare const Icon: {
|
|
|
284
284
|
};
|
|
285
285
|
};
|
|
286
286
|
PauseSolid: {
|
|
287
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
287
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
288
288
|
displayName: string;
|
|
289
289
|
style: {
|
|
290
290
|
fill: string;
|
|
@@ -295,7 +295,7 @@ declare const Icon: {
|
|
|
295
295
|
};
|
|
296
296
|
};
|
|
297
297
|
Play: {
|
|
298
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
298
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
299
299
|
displayName: string;
|
|
300
300
|
style: {
|
|
301
301
|
fill: string;
|
|
@@ -306,7 +306,7 @@ declare const Icon: {
|
|
|
306
306
|
};
|
|
307
307
|
};
|
|
308
308
|
PlaySolid: {
|
|
309
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
309
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
310
310
|
displayName: string;
|
|
311
311
|
style: {
|
|
312
312
|
fill: string;
|
|
@@ -317,14 +317,14 @@ declare const Icon: {
|
|
|
317
317
|
};
|
|
318
318
|
};
|
|
319
319
|
Remove: {
|
|
320
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
320
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
321
321
|
displayName: string;
|
|
322
322
|
styles: {
|
|
323
323
|
fill: string;
|
|
324
324
|
};
|
|
325
325
|
};
|
|
326
326
|
Resume: {
|
|
327
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
327
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
328
328
|
displayName: string;
|
|
329
329
|
style: {
|
|
330
330
|
fill: string;
|
|
@@ -335,7 +335,7 @@ declare const Icon: {
|
|
|
335
335
|
};
|
|
336
336
|
};
|
|
337
337
|
ResumeSolid: {
|
|
338
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
338
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
339
339
|
displayName: string;
|
|
340
340
|
style: {
|
|
341
341
|
fill: string;
|
|
@@ -346,7 +346,7 @@ declare const Icon: {
|
|
|
346
346
|
};
|
|
347
347
|
};
|
|
348
348
|
Right: {
|
|
349
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
349
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
350
350
|
displayName: string;
|
|
351
351
|
styles: {
|
|
352
352
|
fill: string;
|
|
@@ -354,7 +354,7 @@ declare const Icon: {
|
|
|
354
354
|
};
|
|
355
355
|
Star: typeof Star;
|
|
356
356
|
Stop: {
|
|
357
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
357
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
358
358
|
displayName: string;
|
|
359
359
|
style: {
|
|
360
360
|
fill: string;
|
|
@@ -380,7 +380,7 @@ declare const Icon: {
|
|
|
380
380
|
*/
|
|
381
381
|
};
|
|
382
382
|
StopSolid: {
|
|
383
|
-
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
383
|
+
({ strokeColor, styles, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
384
384
|
displayName: string;
|
|
385
385
|
style: {
|
|
386
386
|
fill: string;
|
|
@@ -391,7 +391,7 @@ declare const Icon: {
|
|
|
391
391
|
};
|
|
392
392
|
};
|
|
393
393
|
Up: {
|
|
394
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
394
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
395
395
|
displayName: string;
|
|
396
396
|
styles: {
|
|
397
397
|
display: string;
|
|
@@ -400,7 +400,7 @@ declare const Icon: {
|
|
|
400
400
|
};
|
|
401
401
|
};
|
|
402
402
|
User: {
|
|
403
|
-
({ size, fill, strokeColor, styles, alt, role, ...props }: Pick<IconProps$1, "
|
|
403
|
+
({ size, fill, strokeColor, styles, alt, role, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
404
404
|
styles: {
|
|
405
405
|
fill: string;
|
|
406
406
|
stroke: string;
|
|
@@ -418,23 +418,23 @@ declare const Icon: {
|
|
|
418
418
|
width: string;
|
|
419
419
|
};
|
|
420
420
|
QuestionSolid: {
|
|
421
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
421
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
422
422
|
displayName: string;
|
|
423
423
|
};
|
|
424
424
|
WarnSolid: {
|
|
425
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
425
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
426
426
|
displayName: string;
|
|
427
427
|
};
|
|
428
428
|
SuccessSolid: {
|
|
429
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
429
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
430
430
|
displayName: string;
|
|
431
431
|
};
|
|
432
432
|
AlertSquareSolid: {
|
|
433
|
-
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "
|
|
433
|
+
({ fill, size, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): JSX.Element;
|
|
434
434
|
displayName: string;
|
|
435
435
|
};
|
|
436
436
|
Close: {
|
|
437
|
-
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "
|
|
437
|
+
({ size, fill, styles, role, alt, ...props }: Pick<IconProps$1, "styles" | "role" | "fill" | "alt" | "size" | "strokeColor">): React.JSX.Element;
|
|
438
438
|
displayName: string;
|
|
439
439
|
styles: {
|
|
440
440
|
fill: string;
|
package/libs/icons.d.cts
CHANGED
package/libs/icons.d.ts
CHANGED
package/libs/index.cjs
CHANGED
|
@@ -20,25 +20,25 @@ require('./chunk-PNWIRCG3.cjs');
|
|
|
20
20
|
require('./chunk-TON2YGMD.cjs');
|
|
21
21
|
var chunkLQPWXSCK_cjs = require('./chunk-LQPWXSCK.cjs');
|
|
22
22
|
var chunk66C2J4IX_cjs = require('./chunk-66C2J4IX.cjs');
|
|
23
|
-
var
|
|
23
|
+
var S = require('react');
|
|
24
24
|
|
|
25
25
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var S__default = /*#__PURE__*/_interopDefault(S);
|
|
28
28
|
|
|
29
|
-
var
|
|
29
|
+
var V=({icon:e,label:t,variant:o="icon",type:s="button",...r})=>S__default.default.createElement(chunk25KCUE3R_cjs.a,{variant:o,"data-icon-btn":t?"has-label":"icon",...r,type:s},e,t&&S__default.default.createElement("span",{"data-icon-label":!0},t));V.displayName="IconButton";var Ye={default:"",info:"Information: ",success:"Success: ",warning:"Warning: ",error:"Error: "},J=({severity:e})=>{let t=Ye[e];return t?S__default.default.createElement("span",{className:"sr-only"},t):null};var Ze=(e,t)=>({info:S__default.default.createElement(chunkOZM455LO_cjs.b.InfoSolid,{...t}),success:S__default.default.createElement(chunkOZM455LO_cjs.b.SuccessSolid,{...t}),warning:S__default.default.createElement(chunkOZM455LO_cjs.b.WarnSolid,{...t}),error:S__default.default.createElement(chunkOZM455LO_cjs.b.AlertSolid,{...t}),default:S__default.default.createElement(chunkOZM455LO_cjs.b.AlertSquareSolid,{...t})})[e],K=({severity:e,iconProps:t,hideIcon:o})=>{if(o)return null;let s=Ze(e,t);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{"aria-hidden":"true",className:"alert-icon"},s)};var X=({title:e,titleLevel:t})=>{if(!e)return null;let o=t?`h${t}`:"strong";return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,className:"alert-title"},e)};var Y=({children:e,contentType:t})=>t==="node"?S__default.default.createElement(S__default.default.Fragment,null,e):S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"p"},e);var Z=({actions:e})=>e?S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",className:"alert-actions"},e):null;var ie=S__default.default.memo(({onDismiss:e,iconSize:t=16})=>S__default.default.createElement(chunk25KCUE3R_cjs.b,{type:"button",onClick:e,"aria-label":"Close alert",className:"alert-dismiss","data-btn":"icon sm"},S__default.default.createElement(chunkOZM455LO_cjs.b,null,S__default.default.createElement(chunkOZM455LO_cjs.b.Close,{size:t})))),le=ie;ie.displayName="DismissButton";var ot={default:"polite",info:"polite",success:"polite",warning:"polite",error:"assertive"},G=S__default.default.forwardRef(({severity:e,variant:t,isVisible:o,dismissible:s,onDismiss:r,onInteractionStart:n,onInteractionEnd:a,autoFocus:l,title:p,titleLevel:y,children:x,contentType:f,actions:I,hideIcon:g,iconProps:b,...m},d)=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",ref:d,role:"alert","aria-live":ot[e],"aria-atomic":"true",className:`alert alert-${e}`,"data-alert":e,"data-visible":o,"data-variant":t,tabIndex:l?-1:void 0,onMouseEnter:n,onMouseLeave:a,onFocus:n,onBlur:a,...m},S__default.default.createElement(J,{severity:e}),S__default.default.createElement(K,{severity:e,iconProps:b,hideIcon:g}),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div",classes:"alert-message"},S__default.default.createElement(X,{title:p,titleLevel:y}),S__default.default.createElement(Y,{contentType:f},x),S__default.default.createElement(Z,{actions:I})),s&&S__default.default.createElement(le,{onDismiss:r})));G.displayName="AlertView";var st=({open:e,onDismiss:t,dismissible:o,autoHideDuration:s,pauseOnHover:r,autoFocus:n,alertRef:a})=>{let[l,p]=S__default.default.useState(e),[y,x]=S__default.default.useState(e),[f,I]=S__default.default.useState(!1),g=S__default.default.useCallback(()=>{p(!1),setTimeout(()=>{x(!1),t?.();},300);},[t]);S__default.default.useEffect(()=>{e?(x(!0),p(!0)):p(!1);},[e]),S__default.default.useEffect(()=>{if(!s||!l||f)return;let d=setTimeout(()=>{g();},s);return ()=>clearTimeout(d)},[s,l,f,g]),S__default.default.useEffect(()=>{if(!o||!l)return;let d=h=>{h.key==="Escape"&&g();};return document.addEventListener("keydown",d),()=>document.removeEventListener("keydown",d)},[o,l,g]),S__default.default.useEffect(()=>{n&&l&&a.current&&a.current.focus();},[n,l,a]);let b=S__default.default.useCallback(()=>{r&&s&&I(!0);},[r,s]),m=S__default.default.useCallback(()=>{r&&s&&I(!1);},[r,s]);return {isVisible:l,shouldRender:y,handleDismiss:g,handleInteractionStart:b,handleInteractionEnd:m}},pe=({open:e,severity:t="default",children:o,title:s,dismissible:r=!1,onDismiss:n,iconSize:a,iconProps:l,hideIcon:p,autoHideDuration:y,pauseOnHover:x=!0,titleLevel:f=3,actions:I,autoFocus:g=!1,variant:b="outlined",contentType:m="text",...d})=>{let h=S__default.default.useRef(null),{isVisible:c,shouldRender:u,handleDismiss:$,handleInteractionStart:P,handleInteractionEnd:w}=st({open:e,onDismiss:n,dismissible:r,autoHideDuration:y,pauseOnHover:x,autoFocus:g,alertRef:h});if(!u)return null;let U={size:a||16,...l};return S__default.default.createElement(G,{ref:h,severity:t,variant:b,isVisible:c,dismissible:r,onDismiss:$,onInteractionStart:P,onInteractionEnd:w,autoFocus:g,title:s,titleLevel:f,contentType:m,actions:I,hideIcon:p,iconProps:U,...d},o)};pe.displayName="Alert";var ce=S__default.default.forwardRef(({id:e,label:t,checked:o,defaultChecked:s,value:r="on",onChange:n,classes:a,inputClasses:l,styles:p,size:y,name:x,disabled:f,required:I,validationState:g,errorMessage:b,hintText:m,onBlur:d,onFocus:h,autoFocus:c,...u},$)=>{let P=S__default.default.useCallback(Le=>{n?.(Le.target.checked);},[n]),w=o!==void 0,U=w?{checked:o}:{},Ae=!w&&s!==void 0?{defaultChecked:s}:{},W=S__default.default.useRef(w);return S__default.default.useEffect(()=>{process.env.NODE_ENV==="development"&&(W.current!==w&&console.warn(`Checkbox with id="${e}" is changing from ${W.current?"controlled":"uncontrolled"} to ${w?"controlled":"uncontrolled"}. This is likely a bug. Decide between using "checked" (controlled) or "defaultChecked" (uncontrolled) and stick with it.`),W.current=w);},[w,e]),S__default.default.createElement("div",{className:a,style:p,"data-checkbox-size":y},S__default.default.createElement(chunk4BZKFPEC_cjs.a,{ref:$,type:"checkbox",id:e,name:x,value:r,...U,...Ae,classes:l||"checkbox-input",disabled:f,required:I,validationState:g,errorMessage:b,hintText:m,onChange:P,onBlur:d,onFocus:h,autoFocus:c,...u}),S__default.default.createElement("label",{htmlFor:e,className:"checkbox-label"},t,I&&S__default.default.createElement("span",{className:"checkbox-required","aria-label":"required"}," *")))});ce.displayName="Checkbox";var fe=({src:e="//",alt:t,width:o=480,height:s,styles:r,loading:n="lazy",placeholder:a,fetchpriority:l="low",decoding:p="auto",srcSet:y,sizes:x,onError:f,onLoad:I,...g})=>{let b=S.useMemo(()=>{let c=typeof o=="number"?o:480,u=typeof s=="number"?s:Math.round(c*.75),$=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 ${c} ${u}">
|
|
30
30
|
<defs>
|
|
31
|
-
<linearGradient id="grad-${c}-${
|
|
31
|
+
<linearGradient id="grad-${c}-${u}" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
32
32
|
<stop offset="0%" style="stop-color:#6366f1;stop-opacity:1" />
|
|
33
33
|
<stop offset="50%" style="stop-color:#8b5cf6;stop-opacity:1" />
|
|
34
34
|
<stop offset="100%" style="stop-color:#ec4899;stop-opacity:1" />
|
|
35
35
|
</linearGradient>
|
|
36
36
|
</defs>
|
|
37
|
-
<rect width="${c}" height="${
|
|
38
|
-
<circle cx="${c*.15}" cy="${
|
|
39
|
-
<path d="M0,${
|
|
40
|
-
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(c,
|
|
41
|
-
</svg>`;return `data:image/svg+xml,${encodeURIComponent(F)}`},[o,s]),d=a??b;return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:i,style:r,srcSet:y,sizes:u,onError:c=>{f&&f(c),c.defaultPrevented||c.currentTarget.src!==d&&(c.currentTarget.src=d);},onLoad:c=>{I?.(c);},decoding:p,...g,...l&&{fetchpriority:l}})};pe.displayName="Img";var ce=e=>{let[t,o]=v.useState([]),[s,r]=v.useState(e),[i,a]=v.useState(!1),[l,p]=v.useState(!1);return v.useEffect(()=>{let d=()=>{let x=window.speechSynthesis.getVoices();o(x);let h=x.find(c=>c.name==="Google US English");if(h)r(h);else {let c=x.find(m=>m.lang.startsWith("en-"));c&&r(c);}};return d(),window.speechSynthesis.onvoiceschanged=d,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(d,x={},h)=>{let c=new SpeechSynthesisUtterance(d);c.lang=x.lang??"en-US",c.pitch=x.pitch??1,c.rate=x.rate??1,c.voice=s??x.voice??null,c.onend=()=>{a(!1),p(!1),h&&h();},"speechSynthesis"in window?(window.speechSynthesis.speak(c),a(!0),p(!1)):a(!1);},pause:()=>{i&&!l&&(window.speechSynthesis.pause(),p(!0));},resume:()=>{i&&l&&(window.speechSynthesis.resume(),p(!1));},cancel:()=>{i&&(window.speechSynthesis.cancel(),a(!1),p(!1));},isSpeaking:i,isPaused:l,availableVoices:t,changeVoice:d=>{r(d);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(d=>d.lang))]}};var st=({children:e,onClick:t})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),A=v__default.default.memo(st),Q=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:r,onResume:i,onCancel:a})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div","data-tts":!0},e&&v__default.default.createElement("p",null,e),!t&&v__default.default.createElement(A,{"aria-label":"Speak",onClick:s},v__default.default.createElement(chunkOZM455LO_cjs.b.PlaySolid,{size:16})),t&&!o&&v__default.default.createElement(A,{"aria-label":"Pause",onClick:r},v__default.default.createElement(chunkOZM455LO_cjs.b.PauseSolid,{size:16})),o&&v__default.default.createElement(A,{"aria-label":"Resume",onClick:i},v__default.default.createElement(chunkOZM455LO_cjs.b.ResumeSolid,{size:16})),v__default.default.createElement(A,{"aria-label":"Stop",onClick:a},v__default.default.createElement(chunkOZM455LO_cjs.b.StopSolid,{size:16})));Q.displayName="TextToSpeechControls";Q.TTSButton=A;var fe=Q;var de=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:r=1,label:i,onEnd:a})=>{let{speak:l,pause:p,resume:y,cancel:u,isSpeaking:f,isPaused:I}=ce(),[g,b]=v.useState(e);v.useEffect(()=>{b(e);},[e]);let d=()=>{g.trim()!==""&&l(g,{voice:o,pitch:s,rate:r},h);},x=c=>{b(c.target.value);},h=()=>{a&&a();};return v__default.default.createElement(v__default.default.Fragment,null,t&&v__default.default.createElement(chunkVN2CVD4H_cjs.b,{value:g,onChange:x}),v__default.default.createElement(fe,{label:i,isSpeaking:f,isPaused:I,onSpeak:d,onPause:p,onResume:y,onCancel:u}))};de.displayName="TextToSpeechComponent";var E=e=>v__default.default.createElement(v__default.default.Fragment,null,e),it=({id:e,children:t,headerBackground:o,styles:s,classes:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"header",id:e,styles:s,className:r,...i},o,v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),at=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"main",id:e,styles:o,...r,className:s},t),lt=({id:e,classes:t,children:o,styles:s={},...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"footer",id:e,className:t,styles:s,...r},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},o||"Copyright \xA9 2022")),pt=({id:e,children:t,styles:o={},classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"aside",id:e,styles:o,className:s,...r},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ct=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section",id:e,styles:o,className:s,...r},t),ft=({id:e,children:t,styles:o,classes:s,...r})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"article",id:e,styles:o,className:s,...r},t),dt=({id:e,children:t,legend:o,description:s,descriptionId:r,styles:i,classes:a,...l})=>{let p=r||(s?`${e}-desc`:void 0);return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"fieldset",id:e,styles:i,className:a,"aria-describedby":p,...l},o&&v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"legend"},o),s&&v__default.default.createElement("p",{id:p,className:"fieldset-description"},s),t)};E.displayName="Landmarks";E.Header=it;E.Main=at;E.Footer=lt;E.Aside=pt;E.Section=ct;E.Article=ft;E.Fieldset=dt;var ue=v__default.default.forwardRef(({padding:e,paddingInline:t,paddingBlock:o,margin:s,marginInline:r,marginBlock:i,width:a,maxWidth:l,radius:p,as:y="div",className:u,classes:f,children:I,...g},b)=>{let d=[];e&&d.push(`box-padding-${e}`),t&&d.push(`box-padding-inline-${t}`),o&&d.push(`box-padding-block-${o}`),s&&d.push(`box-margin-${s}`),r&&d.push(`box-margin-inline-${r}`),i&&d.push(`box-margin-block-${i}`),a&&d.push(`box-width-${a}`),l&&d.push(`box-max-width-${l}`),p&&d.push(`box-radius-${p}`);let x=[...d,u,f].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:y,ref:b,classes:x||void 0,...g},I)});ue.displayName="Box";var ye=v__default.default.forwardRef(({gap:e,direction:t="vertical",align:o,justify:s,wrap:r,as:i="div",className:a,classes:l,children:p,...y},u)=>{let f=["stack"];t==="horizontal"?f.push("stack-horizontal"):f.push("stack-vertical"),e&&f.push(`stack-gap-${e}`),o&&f.push(`stack-align-${o}`),s&&f.push(`stack-justify-${s}`),r&&f.push(`stack-${r}`);let I=[...f,a,l].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:i,ref:u,classes:I,...y},p)});ye.displayName="Stack";var ge=v__default.default.forwardRef(({gap:e,justify:t,align:o,as:s="div",className:r,classes:i,children:a,...l},p)=>{let y=["cluster"];e&&y.push(`cluster-gap-${e}`),t&&y.push(`cluster-justify-${t}`),o&&y.push(`cluster-align-${o}`);let u=[...y,r,i].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:s,ref:p,classes:u,...l},a)});ge.displayName="Cluster";var Ie=v__default.default.forwardRef(({columns:e,auto:t,minColumnWidth:o,gap:s,gapX:r,gapY:i,justifyItems:a,alignItems:l,as:p="div",className:y,classes:u,children:f,style:I,styles:g,...b},d)=>{let x=["grid"];e&&x.push(`grid-cols-${e}`),t&&x.push(`grid-auto-${t}`),s&&x.push(`grid-gap-${s}`),r&&x.push(`grid-gap-x-${r}`),i&&x.push(`grid-gap-y-${i}`),a&&x.push(`grid-justify-items-${a}`),l&&x.push(`grid-align-items-${l}`);let h=[...x,y,u].filter(Boolean).join(" "),c={...I||{},...g||{}};return t&&o&&(c.gridTemplateColumns=`repeat(auto-${t}, minmax(${o}, 1fr))`),v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:d,classes:h,style:Object.keys(c).length>0?c:void 0,...b},f)});Ie.displayName="Grid";var Y=v__default.default.forwardRef(({span:e,rowSpan:t,as:o="div",className:s,classes:r,children:i,...a},l)=>{let p=[];e&&p.push(`grid-col-span-${e}`),t&&p.push(`grid-row-span-${t}`);let y=[...p,s,r].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:l,classes:y,...a},i)});Y.displayName="GridItem";var be=Ie;be.Item=Y;var mt=be;var ve=v__default.default.forwardRef(({gap:e,justify:t,align:o,wrap:s,alwaysProportional:r=!1,as:i="div",className:a,classes:l,children:p,...y},u)=>{process.env.NODE_ENV==="development"&&r&&console.warn('[fpkit] Row: alwaysProportional is deprecated and will be removed in v5.0.0. Use responsive column utilities instead: className="col-sm-6 col-md-4"');let f=["col-row"];e&&f.push(`col-row-gap-${e}`),t&&f.push(`col-row-justify-${t}`),o&&f.push(`col-row-align-${o}`),s&&s!=="wrap"&&f.push(`col-row-${s}`),r&&f.push("col-row-proportional");let I=[...f,a,l].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:i,ref:u,classes:I,...y},p)});ve.displayName="Row";var Ce=v__default.default.forwardRef(({span:e,offset:t,order:o,auto:s=!1,as:r="div",className:i,classes:a,children:l,...p},y)=>{let u=[];s?u.push("col-auto"):e==="flex"?u.push("col-flex"):e&&u.push(`col-${e}`),t!==void 0&&u.push(`col-offset-${t}`),o!==void 0&&u.push(`col-order-${o}`);let f=[...u,i,a].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:y,classes:f,...p},l)});Ce.displayName="Col";var L=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},Te=v__default.default.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:r="div",className:i="",styles:a,children:l,sm:p,md:y,lg:u,xl:f,direction:I,wrap:g,gap:b,rowGap:d,colGap:x,justify:h,align:c,alignContent:m,...F}=e,S=[];if(S.push(s?"flex-inline":"flex"),o){let U={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};S.push(U[o]);}S.push(...L({direction:I,wrap:g,gap:b,rowGap:d,colGap:x,justify:h,align:c,alignContent:m})),p&&S.push(...L(p,"sm:")),y&&S.push(...L(y,"md:")),u&&S.push(...L(u,"lg:")),f&&S.push(...L(f,"xl:"));let w=[...S,i].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:t,classes:w,styles:a,...F},l)});Te.displayName="Flex";var we=v__default.default.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:r,flex:i,alignSelf:a,order:l,as:p="div",className:y="",styles:u,children:f,sm:I,md:g,lg:b,xl:d,...x}=e,h=[];if(i){let m={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};h.push(m[i]);}if(o!==void 0&&h.push(`flex-grow-${o}`),s!==void 0&&h.push(`flex-shrink-${s}`),r){let m={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};h.push(m[r]);}if(a){let m={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};h.push(m[a]);}if(l){let m={first:"order-first",last:"order-last",none:"order-none"};h.push(m[l]);}if(I?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`sm:${m[I.flex]}`);}if(g?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`md:${m[g.flex]}`);}if(b?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`lg:${m[b.flex]}`);}if(d?.flex){let m={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`xl:${m[d.flex]}`);}let c=[...h,y].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:t,classes:c,styles:u,...x},f)});we.displayName="Flex.Item";var $e=v__default.default.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:r,...i}=e,a=["flex-1",s].filter(Boolean).join(" ");return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:t,classes:a,styles:r,...i})});$e.displayName="Flex.Spacer";var Z=Te;Z.Item=we;Z.Spacer=$e;var ut=Z;var Ee=({id:e,styles:t,classes:o,children:s,variant:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"sup",id:e,styles:t,className:o,"data-badge":r||void 0,role:"status",...i},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"span"},s));Ee.displayName="Badge";var yt=({elm:e="span",role:t="note",variant:o,children:s,styles:r,...i})=>v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:e,role:t,"data-tag":o||void 0,styles:r,...i},s);yt.displayName="Tag";var ht=v__default.default.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:r,name:i,open:a,onPointerDown:l,onToggle:p,children:y,...u},f)=>{let I=v.useCallback(b=>{l?.(b);},[l]),g=v.useCallback(b=>{p?.(b);},[p]);return v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"details",styles:o,classes:s,onToggle:g,ref:f,open:a,"aria-label":r,name:i,...u},v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"summary",onPointerDown:I},t,e),v__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},y))});ht.displayName="Details";
|
|
37
|
+
<rect width="${c}" height="${u}" fill="url(#grad-${c}-${u})"/>
|
|
38
|
+
<circle cx="${c*.15}" cy="${u*.2}" r="${Math.min(c,u)*.08}" fill="rgba(255,255,255,0.2)"/>
|
|
39
|
+
<path d="M0,${u*.75} Q${c*.25},${u*.65} ${c*.5},${u*.75} T${c},${u*.75} L${c},${u} L0,${u} Z" fill="rgba(0,0,0,0.15)"/>
|
|
40
|
+
<text x="50%" y="50%" dominant-baseline="middle" text-anchor="middle" font-family="system-ui,-apple-system,sans-serif" font-size="${Math.max(16,Math.min(c,u)*.05)}" font-weight="500" fill="rgba(255,255,255,0.9)">${c}\xD7${u}</text>
|
|
41
|
+
</svg>`;return `data:image/svg+xml,${encodeURIComponent($)}`},[o,s]),m=a??b;return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"img",src:e,alt:t,width:o,height:s||"auto",loading:n,style:r,srcSet:y,sizes:x,onError:c=>{f&&f(c),c.defaultPrevented||c.currentTarget.src!==m&&(c.currentTarget.src=m);},onLoad:c=>{I?.(c);},decoding:p,...g,...l&&{fetchpriority:l}})};fe.displayName="Img";var de=({isAlertDialog:e=!1,onClose:t,dialogTitle:o,dialogLabel:s,btnLabel:r="Open Dialog",btnSize:n="sm",btnOnClick:a,children:l,onConfirm:p,confirmLabel:y="Confirm",cancelLabel:x="Cancel",className:f,hideFooter:I=!1,btnProps:g,icon:b})=>{let[m,d]=S.useState(!1),h=S.useRef(null),c=S.useCallback(P=>{d(P),!P&&t&&t();},[t]),u=S.useCallback(()=>{h.current=document.activeElement,d(!0),a&&a();},[a]);S.useEffect(()=>{if(!m&&h.current){let P=setTimeout(()=>{h.current?.focus();},100);return ()=>clearTimeout(P)}},[m]);let $={type:"button",onClick:u,"aria-haspopup":"dialog",...g};return S__default.default.createElement(S__default.default.Fragment,null,b?S__default.default.createElement(V,{icon:b,"aria-label":r,label:r,size:n,...$}):S__default.default.createElement(chunk25KCUE3R_cjs.b,{"data-btn":n,...$},r),S__default.default.createElement(chunkZOPHCNFD_cjs.b,{isOpen:m,onOpenChange:c,dialogTitle:o,dialogLabel:s,className:f,isAlertDialog:e,onConfirm:p,confirmLabel:y,cancelLabel:x,hideFooter:I},l))};de.displayName="DialogModal";var ue=e=>{let[t,o]=S.useState([]),[s,r]=S.useState(e),[n,a]=S.useState(!1),[l,p]=S.useState(!1);return S.useEffect(()=>{let m=()=>{let d=window.speechSynthesis.getVoices();o(d);let h=d.find(c=>c.name==="Google US English");if(h)r(h);else {let c=d.find(u=>u.lang.startsWith("en-"));c&&r(c);}};return m(),window.speechSynthesis.onvoiceschanged=m,()=>{window.speechSynthesis.onvoiceschanged=null;}},[]),{speak:(m,d={},h)=>{let c=new SpeechSynthesisUtterance(m);c.lang=d.lang??"en-US",c.pitch=d.pitch??1,c.rate=d.rate??1,c.voice=s??d.voice??null,c.onend=()=>{a(!1),p(!1),h&&h();},"speechSynthesis"in window?(window.speechSynthesis.speak(c),a(!0),p(!1)):a(!1);},pause:()=>{n&&!l&&(window.speechSynthesis.pause(),p(!0));},resume:()=>{n&&l&&(window.speechSynthesis.resume(),p(!1));},cancel:()=>{n&&(window.speechSynthesis.cancel(),a(!1),p(!1));},isSpeaking:n,isPaused:l,availableVoices:t,changeVoice:m=>{r(m);},currentVoice:s,getAvailableLanguages:()=>[...new Set(t.map(m=>m.lang))]}};var ct=({children:e,onClick:t})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"button",type:"button",className:"tts-border","data-btn":"sm text pill",onClick:t},e),A=S__default.default.memo(ct),ee=({label:e,isSpeaking:t,isPaused:o,onSpeak:s,onPause:r,onResume:n,onCancel:a})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"div","data-tts":!0},e&&S__default.default.createElement("p",null,e),!t&&S__default.default.createElement(A,{"aria-label":"Speak",onClick:s},S__default.default.createElement(chunkOZM455LO_cjs.b.PlaySolid,{size:16})),t&&!o&&S__default.default.createElement(A,{"aria-label":"Pause",onClick:r},S__default.default.createElement(chunkOZM455LO_cjs.b.PauseSolid,{size:16})),o&&S__default.default.createElement(A,{"aria-label":"Resume",onClick:n},S__default.default.createElement(chunkOZM455LO_cjs.b.ResumeSolid,{size:16})),S__default.default.createElement(A,{"aria-label":"Stop",onClick:a},S__default.default.createElement(chunkOZM455LO_cjs.b.StopSolid,{size:16})));ee.displayName="TextToSpeechControls";ee.TTSButton=A;var xe=ee;var ye=({initialText:e="",showTextInput:t=!1,voice:o,pitch:s=1,rate:r=1,label:n,onEnd:a})=>{let{speak:l,pause:p,resume:y,cancel:x,isSpeaking:f,isPaused:I}=ue(),[g,b]=S.useState(e);S.useEffect(()=>{b(e);},[e]);let m=()=>{g.trim()!==""&&l(g,{voice:o,pitch:s,rate:r},h);},d=c=>{b(c.target.value);},h=()=>{a&&a();};return S__default.default.createElement(S__default.default.Fragment,null,t&&S__default.default.createElement(chunkVN2CVD4H_cjs.b,{value:g,onChange:d}),S__default.default.createElement(xe,{label:n,isSpeaking:f,isPaused:I,onSpeak:m,onPause:p,onResume:y,onCancel:x}))};ye.displayName="TextToSpeechComponent";var F=e=>S__default.default.createElement(S__default.default.Fragment,null,e),dt=({id:e,children:t,headerBackground:o,styles:s,classes:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"header",id:e,styles:s,className:r,...n},o,S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ut=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"main",id:e,styles:o,...r,className:s},t),xt=({id:e,classes:t,children:o,styles:s={},...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"footer",id:e,className:t,styles:s,...r},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},o||"Copyright \xA9 2022")),yt=({id:e,children:t,styles:o={},classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"aside",id:e,styles:o,className:s,...r},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},t)),ht=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section",id:e,styles:o,className:s,...r},t),gt=({id:e,children:t,styles:o,classes:s,...r})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"article",id:e,styles:o,className:s,...r},t),It=({id:e,children:t,legend:o,description:s,descriptionId:r,styles:n,classes:a,...l})=>{let p=r||(s?`${e}-desc`:void 0);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"fieldset",id:e,styles:n,className:a,"aria-describedby":p,...l},o&&S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"legend"},o),s&&S__default.default.createElement("p",{id:p,className:"fieldset-description"},s),t)};F.displayName="Landmarks";F.Header=dt;F.Main=ut;F.Footer=xt;F.Aside=yt;F.Section=ht;F.Article=gt;F.Fieldset=It;var ge=S__default.default.forwardRef(({padding:e,paddingInline:t,paddingBlock:o,margin:s,marginInline:r,marginBlock:n,width:a,maxWidth:l,radius:p,as:y="div",className:x,classes:f,children:I,...g},b)=>{let m=[];e&&m.push(`box-padding-${e}`),t&&m.push(`box-padding-inline-${t}`),o&&m.push(`box-padding-block-${o}`),s&&m.push(`box-margin-${s}`),r&&m.push(`box-margin-inline-${r}`),n&&m.push(`box-margin-block-${n}`),a&&m.push(`box-width-${a}`),l&&m.push(`box-max-width-${l}`),p&&m.push(`box-radius-${p}`);let d=[...m,x,f].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:y,ref:b,classes:d||void 0,...g},I)});ge.displayName="Box";var be=S__default.default.forwardRef(({gap:e,direction:t="vertical",align:o,justify:s,wrap:r,as:n="div",className:a,classes:l,children:p,...y},x)=>{let f=["stack"];t==="horizontal"?f.push("stack-horizontal"):f.push("stack-vertical"),e&&f.push(`stack-gap-${e}`),o&&f.push(`stack-align-${o}`),s&&f.push(`stack-justify-${s}`),r&&f.push(`stack-${r}`);let I=[...f,a,l].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:n,ref:x,classes:I,...y},p)});be.displayName="Stack";var ve=S__default.default.forwardRef(({gap:e,justify:t,align:o,as:s="div",className:r,classes:n,children:a,...l},p)=>{let y=["cluster"];e&&y.push(`cluster-gap-${e}`),t&&y.push(`cluster-justify-${t}`),o&&y.push(`cluster-align-${o}`);let x=[...y,r,n].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:s,ref:p,classes:x,...l},a)});ve.displayName="Cluster";var Se=S__default.default.forwardRef(({columns:e,auto:t,minColumnWidth:o,gap:s,gapX:r,gapY:n,justifyItems:a,alignItems:l,as:p="div",className:y,classes:x,children:f,style:I,styles:g,...b},m)=>{let d=["grid"];e&&d.push(`grid-cols-${e}`),t&&d.push(`grid-auto-${t}`),s&&d.push(`grid-gap-${s}`),r&&d.push(`grid-gap-x-${r}`),n&&d.push(`grid-gap-y-${n}`),a&&d.push(`grid-justify-items-${a}`),l&&d.push(`grid-align-items-${l}`);let h=[...d,y,x].filter(Boolean).join(" "),c={...I||{},...g||{}};return t&&o&&(c.gridTemplateColumns=`repeat(auto-${t}, minmax(${o}, 1fr))`),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:m,classes:h,style:Object.keys(c).length>0?c:void 0,...b},f)});Se.displayName="Grid";var te=S__default.default.forwardRef(({span:e,rowSpan:t,as:o="div",className:s,classes:r,children:n,...a},l)=>{let p=[];e&&p.push(`grid-col-span-${e}`),t&&p.push(`grid-row-span-${t}`);let y=[...p,s,r].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:l,classes:y,...a},n)});te.displayName="GridItem";var Ce=Se;Ce.Item=te;var bt=Ce;var we=S__default.default.forwardRef(({gap:e,justify:t,align:o,wrap:s,alwaysProportional:r=!1,as:n="div",className:a,classes:l,children:p,...y},x)=>{process.env.NODE_ENV==="development"&&r&&console.warn('[fpkit] Row: alwaysProportional is deprecated and will be removed in v5.0.0. Use responsive column utilities instead: className="col-sm-6 col-md-4"');let f=["col-row"];e&&f.push(`col-row-gap-${e}`),t&&f.push(`col-row-justify-${t}`),o&&f.push(`col-row-align-${o}`),s&&s!=="wrap"&&f.push(`col-row-${s}`),r&&f.push("col-row-proportional");let I=[...f,a,l].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:n,ref:x,classes:I,...y},p)});we.displayName="Row";var Ee=S__default.default.forwardRef(({span:e,offset:t,order:o,auto:s=!1,as:r="div",className:n,classes:a,children:l,...p},y)=>{let x=[];s?x.push("col-auto"):e==="flex"?x.push("col-flex"):e&&x.push(`col-${e}`),t!==void 0&&x.push(`col-offset-${t}`),o!==void 0&&x.push(`col-order-${o}`);let f=[...x,n,a].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:y,classes:f,...p},l)});Ee.displayName="Col";var L=(e,t="")=>{let o=[];if(e.direction){let s={row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"};o.push(`${t}${s[e.direction]}`);}if(e.wrap){let s={wrap:"flex-wrap",nowrap:"flex-nowrap","wrap-reverse":"flex-wrap-reverse"};o.push(`${t}${s[e.wrap]}`);}if(e.gap&&o.push(`${t}gap-${e.gap}`),e.rowGap&&o.push(`${t}row-gap-${e.rowGap}`),e.colGap&&o.push(`${t}col-gap-${e.colGap}`),e.justify){let s={start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly"};o.push(`${t}${s[e.justify]}`);}if(e.align){let s={start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"};o.push(`${t}${s[e.align]}`);}if(e.alignContent){let s={start:"content-start",end:"content-end",center:"content-center",between:"content-between",around:"content-around",evenly:"content-evenly",stretch:"content-stretch"};o.push(`${t}${s[e.alignContent]}`);}return o},ke=S__default.default.forwardRef((e,t)=>{let{variant:o,inline:s=!1,as:r="div",className:n="",styles:a,children:l,sm:p,md:y,lg:x,xl:f,direction:I,wrap:g,gap:b,rowGap:m,colGap:d,justify:h,align:c,alignContent:u,...$}=e,P=[];if(P.push(s?"flex-inline":"flex"),o){let U={center:"flex-center",between:"flex-between",around:"flex-around",stack:"flex-stack",spread:"flex-spread"};P.push(U[o]);}P.push(...L({direction:I,wrap:g,gap:b,rowGap:m,colGap:d,justify:h,align:c,alignContent:u})),p&&P.push(...L(p,"sm:")),y&&P.push(...L(y,"md:")),x&&P.push(...L(x,"lg:")),f&&P.push(...L(f,"xl:"));let w=[...P,n].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:r,ref:t,classes:w,styles:a,...$},l)});ke.displayName="Flex";var Fe=S__default.default.forwardRef((e,t)=>{let{grow:o,shrink:s,basis:r,flex:n,alignSelf:a,order:l,as:p="div",className:y="",styles:x,children:f,sm:I,md:g,lg:b,xl:m,...d}=e,h=[];if(n){let u={1:"flex-1",auto:"flex-auto",initial:"flex-initial",none:"flex-none"};h.push(u[n]);}if(o!==void 0&&h.push(`flex-grow-${o}`),s!==void 0&&h.push(`flex-shrink-${s}`),r){let u={auto:"flex-basis-auto",0:"flex-basis-0",full:"flex-basis-full"};h.push(u[r]);}if(a){let u={auto:"self-auto",start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"};h.push(u[a]);}if(l){let u={first:"order-first",last:"order-last",none:"order-none"};h.push(u[l]);}if(I?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`sm:${u[I.flex]}`);}if(g?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`md:${u[g.flex]}`);}if(b?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`lg:${u[b.flex]}`);}if(m?.flex){let u={1:"flex-1",auto:"flex-auto",none:"flex-none"};h.push(`xl:${u[m.flex]}`);}let c=[...h,y].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:p,ref:t,classes:c,styles:x,...d},f)});Fe.displayName="Flex.Item";var Ne=S__default.default.forwardRef((e,t)=>{let{as:o="div",className:s="",styles:r,...n}=e,a=["flex-1",s].filter(Boolean).join(" ");return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:o,ref:t,classes:a,styles:r,...n})});Ne.displayName="Flex.Spacer";var oe=ke;oe.Item=Fe;oe.Spacer=Ne;var Pt=oe;var Ue=({id:e,styles:t,classes:o,children:s,variant:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"sup",id:e,styles:t,className:o,"data-badge":r||void 0,role:"status",...n},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"span"},s));Ue.displayName="Badge";var St=({elm:e="span",role:t="note",variant:o,children:s,styles:r,...n})=>S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:e,role:t,"data-tag":o||void 0,styles:r,...n},s);St.displayName="Tag";var Ct=S__default.default.forwardRef(({summary:e,icon:t,styles:o,classes:s,ariaLabel:r,name:n,open:a,onPointerDown:l,onToggle:p,children:y,...x},f)=>{let I=S.useCallback(b=>{l?.(b);},[l]),g=S.useCallback(b=>{p?.(b);},[p]);return S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"details",styles:o,classes:s,onToggle:g,ref:f,open:a,"aria-label":r,name:n,...x},S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"summary",onPointerDown:I},t,e),S__default.default.createElement(chunk66C2J4IX_cjs.a,{as:"section"},y))});Ct.displayName="Details";
|
|
42
42
|
|
|
43
43
|
Object.defineProperty(exports, 'Textarea', {
|
|
44
44
|
enumerable: true,
|
|
@@ -168,29 +168,30 @@ Object.defineProperty(exports, 'UI', {
|
|
|
168
168
|
enumerable: true,
|
|
169
169
|
get: function () { return chunk66C2J4IX_cjs.a; }
|
|
170
170
|
});
|
|
171
|
-
exports.Alert =
|
|
172
|
-
exports.Article =
|
|
173
|
-
exports.Aside =
|
|
174
|
-
exports.Badge =
|
|
175
|
-
exports.Box =
|
|
176
|
-
exports.Checkbox =
|
|
177
|
-
exports.Cluster =
|
|
178
|
-
exports.Col =
|
|
179
|
-
exports.Details =
|
|
180
|
-
exports.
|
|
181
|
-
exports.
|
|
182
|
-
exports.
|
|
183
|
-
exports.
|
|
184
|
-
exports.
|
|
185
|
-
exports.
|
|
186
|
-
exports.
|
|
187
|
-
exports.
|
|
188
|
-
exports.
|
|
189
|
-
exports.
|
|
190
|
-
exports.
|
|
191
|
-
exports.
|
|
192
|
-
exports.
|
|
193
|
-
exports.
|
|
194
|
-
exports.
|
|
171
|
+
exports.Alert = pe;
|
|
172
|
+
exports.Article = gt;
|
|
173
|
+
exports.Aside = yt;
|
|
174
|
+
exports.Badge = Ue;
|
|
175
|
+
exports.Box = ge;
|
|
176
|
+
exports.Checkbox = ce;
|
|
177
|
+
exports.Cluster = ve;
|
|
178
|
+
exports.Col = Ee;
|
|
179
|
+
exports.Details = Ct;
|
|
180
|
+
exports.DialogModal = de;
|
|
181
|
+
exports.Fieldset = It;
|
|
182
|
+
exports.Flex = Pt;
|
|
183
|
+
exports.Footer = xt;
|
|
184
|
+
exports.Grid = bt;
|
|
185
|
+
exports.GridItem = te;
|
|
186
|
+
exports.Header = dt;
|
|
187
|
+
exports.IconButton = V;
|
|
188
|
+
exports.Img = fe;
|
|
189
|
+
exports.Landmarks = F;
|
|
190
|
+
exports.Main = ut;
|
|
191
|
+
exports.Row = we;
|
|
192
|
+
exports.Section = ht;
|
|
193
|
+
exports.Stack = be;
|
|
194
|
+
exports.Tag = St;
|
|
195
|
+
exports.TextToSpeech = ye;
|
|
195
196
|
//# sourceMappingURL=out.js.map
|
|
196
197
|
//# sourceMappingURL=index.cjs.map
|