@frollo/frollo-web-ui 5.0.5 → 6.0.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/cjs/index.js +917 -303
- package/esm/defineProperty-b85f2e0f.js +42 -0
- package/esm/fw-animations.js +2 -2
- package/esm/{fw-button-99dba2bc.js → fw-button-b00853dd.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-date-picker.js +17 -1814
- package/esm/fw-drawer.js +3 -3
- package/esm/{fw-dropdown-b476e015.js → fw-dropdown-1c89f793.js} +1 -1
- package/esm/fw-dropdown.js +2 -2
- package/esm/{fw-image-ae643123.js → fw-image-af8c5745.js} +1 -1
- package/esm/fw-image.js +2 -2
- package/esm/{fw-input-fdc8fe1b.js → fw-input-46dd3134.js} +1 -1
- package/esm/fw-input.js +2 -2
- package/esm/{fw-loading-spinner-cc1ca2fa.js → fw-loading-spinner-72d70258.js} +1 -1
- package/esm/fw-modal.js +4 -4
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-popover.js +630 -0
- package/esm/fw-provider-list.js +381 -22
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/{fw-table-row-e8520a1d.js → fw-table-row-1050a386.js} +1 -1
- package/esm/fw-table.js +2 -2
- package/esm/{fw-tag-a8a83c0a.js → fw-tag-fdcaf92c.js} +2 -2
- package/esm/fw-tag.js +4 -4
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +2 -2
- package/esm/index-0c5cae4f.js +1800 -0
- package/esm/{index-0a63f2c3.js → index-bced3b35.js} +123 -109
- package/esm/index.js +25 -20
- package/frollo-web-ui.esm.js +955 -324
- package/icons/ellipsis.svg +3 -0
- package/icons/index.ts +3 -1
- package/index.d.ts +173 -5
- package/package.json +1 -1
- package/types/components/fw-popover/fw-popover.vue.d.ts +157 -0
- package/types/components/fw-popover/index.d.ts +2 -0
- package/types/components/fw-popover/index.types.d.ts +11 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/icons/index.d.ts +2 -1
- package/web-components/index.js +959 -328
- package/esm/index-6423a6ab.js +0 -422
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M13.5 10C13.5 9.17188 14.1719 8.5 15 8.5C15.8281 8.5 16.5 9.17188 16.5 10C16.5 10.8281 15.8281 11.5 15 11.5C14.1719 11.5 13.5 10.8281 13.5 10ZM8.5 10C8.5 9.17188 9.17188 8.5 10 8.5C10.8281 8.5 11.5 9.17188 11.5 10C11.5 10.8281 10.8281 11.5 10 11.5C9.17188 11.5 8.5 10.8281 8.5 10ZM6.5 10C6.5 10.8281 5.82844 11.5 5 11.5C4.17156 11.5 3.5 10.8281 3.5 10C3.5 9.17188 4.17156 8.5 5 8.5C5.82844 8.5 6.5 9.17188 6.5 10Z" />
|
|
3
|
+
</svg>
|
package/icons/index.ts
CHANGED
|
@@ -37,6 +37,7 @@ import XMarkSvg from './xmark.svg';
|
|
|
37
37
|
import PenSvg from './pen.svg';
|
|
38
38
|
import CalendarSvg from './calendar.svg';
|
|
39
39
|
import CalendarDaySvg from './calendar-day.svg';
|
|
40
|
+
import EllipsisSvg from './ellipsis.svg';
|
|
40
41
|
|
|
41
42
|
export {
|
|
42
43
|
ViewSvg,
|
|
@@ -77,5 +78,6 @@ export {
|
|
|
77
78
|
XMarkSvg,
|
|
78
79
|
PenSvg,
|
|
79
80
|
CalendarSvg,
|
|
80
|
-
CalendarDaySvg
|
|
81
|
+
CalendarDaySvg,
|
|
82
|
+
EllipsisSvg
|
|
81
83
|
};
|
package/index.d.ts
CHANGED
|
@@ -1265,7 +1265,19 @@ declare interface FwDatePickerProps {
|
|
|
1265
1265
|
rounded?: boolean;
|
|
1266
1266
|
}
|
|
1267
1267
|
|
|
1268
|
-
|
|
1268
|
+
interface FwPopoverProps {
|
|
1269
|
+
title: string;
|
|
1270
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'auto' | 'auto-start' | 'auto-end' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
1271
|
+
trigger: 'click' | 'hover' | 'focus';
|
|
1272
|
+
position: 'fixed' | 'absolute';
|
|
1273
|
+
closeOnClick?: boolean;
|
|
1274
|
+
closeOnClickOutside?: boolean;
|
|
1275
|
+
showOnTop?: boolean;
|
|
1276
|
+
showArrow?: boolean;
|
|
1277
|
+
textAlign?: 'center' | 'left' | 'right';
|
|
1278
|
+
}
|
|
1279
|
+
|
|
1280
|
+
declare const __default__$6: vue.DefineComponent<{
|
|
1269
1281
|
/**
|
|
1270
1282
|
* The size of the tag. Accepts: 'xs', 'sm' & 'md'
|
|
1271
1283
|
*/
|
|
@@ -1333,7 +1345,7 @@ declare const __default__$5: vue.DefineComponent<{
|
|
|
1333
1345
|
dismissable: boolean;
|
|
1334
1346
|
}>;
|
|
1335
1347
|
|
|
1336
|
-
declare const __default__$
|
|
1348
|
+
declare const __default__$5: vue.DefineComponent<{
|
|
1337
1349
|
items: {
|
|
1338
1350
|
type: PropType<FwTableItem[]>;
|
|
1339
1351
|
required: true;
|
|
@@ -1405,7 +1417,7 @@ declare const _default$c: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentO
|
|
|
1405
1417
|
|
|
1406
1418
|
declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1407
1419
|
|
|
1408
|
-
declare const __default__$
|
|
1420
|
+
declare const __default__$4: vue.DefineComponent<{
|
|
1409
1421
|
/**
|
|
1410
1422
|
* The header title of the accordion
|
|
1411
1423
|
*/
|
|
@@ -2140,7 +2152,7 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
2140
2152
|
tableHeaderName: string;
|
|
2141
2153
|
}>;
|
|
2142
2154
|
|
|
2143
|
-
declare const __default__$
|
|
2155
|
+
declare const __default__$3: vue.DefineComponent<{
|
|
2144
2156
|
/**
|
|
2145
2157
|
* The date-picker v-model
|
|
2146
2158
|
*/
|
|
@@ -2315,6 +2327,162 @@ declare const __default__$2: vue.DefineComponent<{
|
|
|
2315
2327
|
rounded: boolean;
|
|
2316
2328
|
}>;
|
|
2317
2329
|
|
|
2330
|
+
declare const __default__$2: vue.DefineComponent<{
|
|
2331
|
+
/**
|
|
2332
|
+
* The title of the popover
|
|
2333
|
+
*/
|
|
2334
|
+
title: StringConstructor;
|
|
2335
|
+
/**
|
|
2336
|
+
* The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
|
|
2337
|
+
*/
|
|
2338
|
+
placement: {
|
|
2339
|
+
type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
|
|
2340
|
+
default: string;
|
|
2341
|
+
validator: (value: string) => boolean;
|
|
2342
|
+
};
|
|
2343
|
+
/**
|
|
2344
|
+
* Whether to use `fixed` or `absolute` positioning.
|
|
2345
|
+
* Absolute is more performant if you have a lot of popovers; fixed is more robust
|
|
2346
|
+
*/
|
|
2347
|
+
position: {
|
|
2348
|
+
type: StringConstructor;
|
|
2349
|
+
default: string;
|
|
2350
|
+
validator: (value: string) => boolean;
|
|
2351
|
+
};
|
|
2352
|
+
/**
|
|
2353
|
+
* The input event which causes the popover to show. Accepts 'click' and 'hover'
|
|
2354
|
+
*/
|
|
2355
|
+
trigger: {
|
|
2356
|
+
type: StringConstructor;
|
|
2357
|
+
default: string;
|
|
2358
|
+
validator: (value: string) => boolean;
|
|
2359
|
+
};
|
|
2360
|
+
/**
|
|
2361
|
+
* Whether to show component on top of all components by setting the highest z-index
|
|
2362
|
+
*/
|
|
2363
|
+
showOnTop: {
|
|
2364
|
+
type: BooleanConstructor;
|
|
2365
|
+
default: boolean;
|
|
2366
|
+
};
|
|
2367
|
+
/**
|
|
2368
|
+
* Close the popover automatically when the user clicks inside of the popover
|
|
2369
|
+
*/
|
|
2370
|
+
closeOnClick: {
|
|
2371
|
+
type: BooleanConstructor;
|
|
2372
|
+
default: boolean;
|
|
2373
|
+
};
|
|
2374
|
+
/**
|
|
2375
|
+
* Close the popover automatically when the user clicks outside of the popover
|
|
2376
|
+
*/
|
|
2377
|
+
closeOnClickOutside: {
|
|
2378
|
+
type: BooleanConstructor;
|
|
2379
|
+
default: boolean;
|
|
2380
|
+
};
|
|
2381
|
+
/**
|
|
2382
|
+
* The text alignment of the popover content should be placed against. Accepts 'center', 'right' and 'left'
|
|
2383
|
+
*/
|
|
2384
|
+
textAlign: {
|
|
2385
|
+
type: StringConstructor;
|
|
2386
|
+
default: string;
|
|
2387
|
+
validator: (value: string) => boolean;
|
|
2388
|
+
};
|
|
2389
|
+
/**
|
|
2390
|
+
* Whether to show the arrow
|
|
2391
|
+
**/
|
|
2392
|
+
showArrow: {
|
|
2393
|
+
type: BooleanConstructor;
|
|
2394
|
+
default: boolean;
|
|
2395
|
+
};
|
|
2396
|
+
}, {
|
|
2397
|
+
targetElement: vue.Ref<HTMLElement | undefined>;
|
|
2398
|
+
contentElement: vue.Ref<HTMLElement | undefined>;
|
|
2399
|
+
contentElementId: string;
|
|
2400
|
+
computedVisible: vue.ComputedRef<string | false | vue.Slot | undefined>;
|
|
2401
|
+
onHover: () => void;
|
|
2402
|
+
onClick: () => void;
|
|
2403
|
+
onLeave: () => void;
|
|
2404
|
+
autoCloseContent: (e: Event) => void;
|
|
2405
|
+
visible: vue.Ref<boolean>;
|
|
2406
|
+
spacingSize: vue.ComputedRef<"12px" | "2px">;
|
|
2407
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "closed"[], "closed", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
2408
|
+
/**
|
|
2409
|
+
* The title of the popover
|
|
2410
|
+
*/
|
|
2411
|
+
title: StringConstructor;
|
|
2412
|
+
/**
|
|
2413
|
+
* The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
|
|
2414
|
+
*/
|
|
2415
|
+
placement: {
|
|
2416
|
+
type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
|
|
2417
|
+
default: string;
|
|
2418
|
+
validator: (value: string) => boolean;
|
|
2419
|
+
};
|
|
2420
|
+
/**
|
|
2421
|
+
* Whether to use `fixed` or `absolute` positioning.
|
|
2422
|
+
* Absolute is more performant if you have a lot of popovers; fixed is more robust
|
|
2423
|
+
*/
|
|
2424
|
+
position: {
|
|
2425
|
+
type: StringConstructor;
|
|
2426
|
+
default: string;
|
|
2427
|
+
validator: (value: string) => boolean;
|
|
2428
|
+
};
|
|
2429
|
+
/**
|
|
2430
|
+
* The input event which causes the popover to show. Accepts 'click' and 'hover'
|
|
2431
|
+
*/
|
|
2432
|
+
trigger: {
|
|
2433
|
+
type: StringConstructor;
|
|
2434
|
+
default: string;
|
|
2435
|
+
validator: (value: string) => boolean;
|
|
2436
|
+
};
|
|
2437
|
+
/**
|
|
2438
|
+
* Whether to show component on top of all components by setting the highest z-index
|
|
2439
|
+
*/
|
|
2440
|
+
showOnTop: {
|
|
2441
|
+
type: BooleanConstructor;
|
|
2442
|
+
default: boolean;
|
|
2443
|
+
};
|
|
2444
|
+
/**
|
|
2445
|
+
* Close the popover automatically when the user clicks inside of the popover
|
|
2446
|
+
*/
|
|
2447
|
+
closeOnClick: {
|
|
2448
|
+
type: BooleanConstructor;
|
|
2449
|
+
default: boolean;
|
|
2450
|
+
};
|
|
2451
|
+
/**
|
|
2452
|
+
* Close the popover automatically when the user clicks outside of the popover
|
|
2453
|
+
*/
|
|
2454
|
+
closeOnClickOutside: {
|
|
2455
|
+
type: BooleanConstructor;
|
|
2456
|
+
default: boolean;
|
|
2457
|
+
};
|
|
2458
|
+
/**
|
|
2459
|
+
* The text alignment of the popover content should be placed against. Accepts 'center', 'right' and 'left'
|
|
2460
|
+
*/
|
|
2461
|
+
textAlign: {
|
|
2462
|
+
type: StringConstructor;
|
|
2463
|
+
default: string;
|
|
2464
|
+
validator: (value: string) => boolean;
|
|
2465
|
+
};
|
|
2466
|
+
/**
|
|
2467
|
+
* Whether to show the arrow
|
|
2468
|
+
**/
|
|
2469
|
+
showArrow: {
|
|
2470
|
+
type: BooleanConstructor;
|
|
2471
|
+
default: boolean;
|
|
2472
|
+
};
|
|
2473
|
+
}>> & {
|
|
2474
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
2475
|
+
}, {
|
|
2476
|
+
placement: "top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
2477
|
+
position: string;
|
|
2478
|
+
trigger: string;
|
|
2479
|
+
showOnTop: boolean;
|
|
2480
|
+
closeOnClick: boolean;
|
|
2481
|
+
closeOnClickOutside: boolean;
|
|
2482
|
+
textAlign: string;
|
|
2483
|
+
showArrow: boolean;
|
|
2484
|
+
}>;
|
|
2485
|
+
|
|
2318
2486
|
declare const __default__$1: vue.DefineComponent<{
|
|
2319
2487
|
/**
|
|
2320
2488
|
* The animation-iteration-count CSS property of the pulse animation.
|
|
@@ -2387,4 +2555,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
|
|
|
2387
2555
|
|
|
2388
2556
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
2389
2557
|
|
|
2390
|
-
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, __default__$
|
|
2558
|
+
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, __default__$4 as FwAccordion, FwAccordionProps, _default$4 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, __default__$3 as FwDatePicker, FwDatePickerProps, _default$2 as FwDrawer, FwDrawerProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$a as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$9 as FwLoadingBar, _default$8 as FwLoadingCard, _default as FwLoadingSpinner, _default$7 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, __default__$2 as FwPopover, FwPopoverProps, _default$d as FwProgressBar, _default$1 as FwProviderList, FwProviderListProps, _default$3 as FwSidebarMenu, FwSidebarMenuItem, __default__ as FwSuccessPulse, _default$f as FwTab, __default__$5 as FwTable, FwTableFormatFunction, _default$c as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$b as FwTableRow, FwTableSort, _default$g as FwTabs, __default__$6 as FwTag, FwTagProps, _default$6 as FwToast, FwToastProps, _default$5 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
|
package/package.json
CHANGED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const __default__: import("vue").DefineComponent<{
|
|
3
|
+
/**
|
|
4
|
+
* The title of the popover
|
|
5
|
+
*/
|
|
6
|
+
title: StringConstructor;
|
|
7
|
+
/**
|
|
8
|
+
* The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
|
|
9
|
+
*/
|
|
10
|
+
placement: {
|
|
11
|
+
type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
|
|
12
|
+
default: string;
|
|
13
|
+
validator: (value: string) => boolean;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* Whether to use `fixed` or `absolute` positioning.
|
|
17
|
+
* Absolute is more performant if you have a lot of popovers; fixed is more robust
|
|
18
|
+
*/
|
|
19
|
+
position: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
default: string;
|
|
22
|
+
validator: (value: string) => boolean;
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* The input event which causes the popover to show. Accepts 'click' and 'hover'
|
|
26
|
+
*/
|
|
27
|
+
trigger: {
|
|
28
|
+
type: StringConstructor;
|
|
29
|
+
default: string;
|
|
30
|
+
validator: (value: string) => boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* Whether to show component on top of all components by setting the highest z-index
|
|
34
|
+
*/
|
|
35
|
+
showOnTop: {
|
|
36
|
+
type: BooleanConstructor;
|
|
37
|
+
default: boolean;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Close the popover automatically when the user clicks inside of the popover
|
|
41
|
+
*/
|
|
42
|
+
closeOnClick: {
|
|
43
|
+
type: BooleanConstructor;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
/**
|
|
47
|
+
* Close the popover automatically when the user clicks outside of the popover
|
|
48
|
+
*/
|
|
49
|
+
closeOnClickOutside: {
|
|
50
|
+
type: BooleanConstructor;
|
|
51
|
+
default: boolean;
|
|
52
|
+
};
|
|
53
|
+
/**
|
|
54
|
+
* The text alignment of the popover content should be placed against. Accepts 'center', 'right' and 'left'
|
|
55
|
+
*/
|
|
56
|
+
textAlign: {
|
|
57
|
+
type: StringConstructor;
|
|
58
|
+
default: string;
|
|
59
|
+
validator: (value: string) => boolean;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Whether to show the arrow
|
|
63
|
+
**/
|
|
64
|
+
showArrow: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
}, {
|
|
69
|
+
targetElement: import("vue").Ref<HTMLElement | undefined>;
|
|
70
|
+
contentElement: import("vue").Ref<HTMLElement | undefined>;
|
|
71
|
+
contentElementId: string;
|
|
72
|
+
computedVisible: import("vue").ComputedRef<string | false | import("vue").Slot | undefined>;
|
|
73
|
+
onHover: () => void;
|
|
74
|
+
onClick: () => void;
|
|
75
|
+
onLeave: () => void;
|
|
76
|
+
autoCloseContent: (e: Event) => void;
|
|
77
|
+
visible: import("vue").Ref<boolean>;
|
|
78
|
+
spacingSize: import("vue").ComputedRef<"12px" | "2px">;
|
|
79
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "closed"[], "closed", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
/**
|
|
81
|
+
* The title of the popover
|
|
82
|
+
*/
|
|
83
|
+
title: StringConstructor;
|
|
84
|
+
/**
|
|
85
|
+
* The side of the target element the popover should be placed against. Accepts 'top', 'right', 'bottom' and 'left'
|
|
86
|
+
*/
|
|
87
|
+
placement: {
|
|
88
|
+
type: PropType<"top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end">;
|
|
89
|
+
default: string;
|
|
90
|
+
validator: (value: string) => boolean;
|
|
91
|
+
};
|
|
92
|
+
/**
|
|
93
|
+
* Whether to use `fixed` or `absolute` positioning.
|
|
94
|
+
* Absolute is more performant if you have a lot of popovers; fixed is more robust
|
|
95
|
+
*/
|
|
96
|
+
position: {
|
|
97
|
+
type: StringConstructor;
|
|
98
|
+
default: string;
|
|
99
|
+
validator: (value: string) => boolean;
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* The input event which causes the popover to show. Accepts 'click' and 'hover'
|
|
103
|
+
*/
|
|
104
|
+
trigger: {
|
|
105
|
+
type: StringConstructor;
|
|
106
|
+
default: string;
|
|
107
|
+
validator: (value: string) => boolean;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* Whether to show component on top of all components by setting the highest z-index
|
|
111
|
+
*/
|
|
112
|
+
showOnTop: {
|
|
113
|
+
type: BooleanConstructor;
|
|
114
|
+
default: boolean;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* Close the popover automatically when the user clicks inside of the popover
|
|
118
|
+
*/
|
|
119
|
+
closeOnClick: {
|
|
120
|
+
type: BooleanConstructor;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* Close the popover automatically when the user clicks outside of the popover
|
|
125
|
+
*/
|
|
126
|
+
closeOnClickOutside: {
|
|
127
|
+
type: BooleanConstructor;
|
|
128
|
+
default: boolean;
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* The text alignment of the popover content should be placed against. Accepts 'center', 'right' and 'left'
|
|
132
|
+
*/
|
|
133
|
+
textAlign: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
validator: (value: string) => boolean;
|
|
137
|
+
};
|
|
138
|
+
/**
|
|
139
|
+
* Whether to show the arrow
|
|
140
|
+
**/
|
|
141
|
+
showArrow: {
|
|
142
|
+
type: BooleanConstructor;
|
|
143
|
+
default: boolean;
|
|
144
|
+
};
|
|
145
|
+
}>> & {
|
|
146
|
+
onClosed?: ((...args: any[]) => any) | undefined;
|
|
147
|
+
}, {
|
|
148
|
+
placement: "top" | "right" | "bottom" | "left" | "auto" | "auto-start" | "auto-end" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
|
|
149
|
+
position: string;
|
|
150
|
+
trigger: string;
|
|
151
|
+
showOnTop: boolean;
|
|
152
|
+
closeOnClick: boolean;
|
|
153
|
+
closeOnClickOutside: boolean;
|
|
154
|
+
textAlign: string;
|
|
155
|
+
showArrow: boolean;
|
|
156
|
+
}>;
|
|
157
|
+
export default __default__;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export interface FwPopoverProps {
|
|
2
|
+
title: string;
|
|
3
|
+
placement: 'top' | 'right' | 'bottom' | 'left' | 'auto' | 'auto-start' | 'auto-end' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end' | 'right-start' | 'right-end' | 'left-start' | 'left-end';
|
|
4
|
+
trigger: 'click' | 'hover' | 'focus';
|
|
5
|
+
position: 'fixed' | 'absolute';
|
|
6
|
+
closeOnClick?: boolean;
|
|
7
|
+
closeOnClickOutside?: boolean;
|
|
8
|
+
showOnTop?: boolean;
|
|
9
|
+
showArrow?: boolean;
|
|
10
|
+
textAlign?: 'center' | 'left' | 'right';
|
|
11
|
+
}
|
|
@@ -17,3 +17,4 @@ export * from '../components/fw-sidebar-menu/index.types';
|
|
|
17
17
|
export * from '../components/fw-drawer/index.types';
|
|
18
18
|
export * from '../components/fw-provider-list/index.types';
|
|
19
19
|
export * from '../components/fw-date-picker/index.types';
|
|
20
|
+
export * from '../components/fw-popover/index.types';
|
package/types/icons/index.d.ts
CHANGED
|
@@ -37,4 +37,5 @@ import XMarkSvg from './xmark.svg';
|
|
|
37
37
|
import PenSvg from './pen.svg';
|
|
38
38
|
import CalendarSvg from './calendar.svg';
|
|
39
39
|
import CalendarDaySvg from './calendar-day.svg';
|
|
40
|
-
|
|
40
|
+
import EllipsisSvg from './ellipsis.svg';
|
|
41
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg, PenSvg, CalendarSvg, CalendarDaySvg, EllipsisSvg };
|