@frollo/frollo-web-ui 3.0.1 → 4.0.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.
Files changed (35) hide show
  1. package/cjs/index.js +531 -328
  2. package/esm/fw-animations.js +2 -2
  3. package/esm/{fw-button-1486e2d9.js → fw-button-e8b1bd62.js} +9 -6
  4. package/esm/fw-button.js +3 -3
  5. package/esm/fw-dropdown.js +1 -1
  6. package/esm/{fw-image-4727ac61.js → fw-image-3fa960e1.js} +1 -1
  7. package/esm/fw-image.js +2 -2
  8. package/esm/{fw-loading-spinner-df1627c0.js → fw-loading-spinner-304e2f95.js} +1 -1
  9. package/esm/fw-modal.js +3 -3
  10. package/esm/fw-navigation-menu.js +3 -3
  11. package/esm/fw-sidebar-menu.js +131 -0
  12. package/esm/fw-table.js +91 -46
  13. package/esm/fw-toast.js +1 -1
  14. package/esm/fw-transactions-card.js +2 -2
  15. package/esm/{index-4605e00e.js → index-c6458115.js} +153 -97
  16. package/esm/index.js +32 -29
  17. package/frollo-web-ui.esm.js +580 -358
  18. package/icons/arrow-down.svg +3 -0
  19. package/icons/arrow-sort.svg +3 -0
  20. package/icons/chevron-left.svg +3 -0
  21. package/icons/chevron-right.svg +3 -0
  22. package/icons/index.ts +9 -1
  23. package/index.d.ts +108 -18
  24. package/package.json +1 -1
  25. package/types/components/fw-button/fw-button.vue.d.ts +2 -2
  26. package/types/components/fw-button/index.types.d.ts +1 -1
  27. package/types/components/fw-sidebar-menu/fw-sidebar-menu.vue.d.ts +71 -0
  28. package/types/components/fw-sidebar-menu/index.d.ts +2 -0
  29. package/types/components/fw-sidebar-menu/index.types.d.ts +6 -0
  30. package/types/components/fw-table/fw-table.vue.d.ts +18 -5
  31. package/types/components/fw-table/index.types.d.ts +1 -0
  32. package/types/components/index.d.ts +1 -0
  33. package/types/components/index.types.d.ts +1 -0
  34. package/types/icons/index.d.ts +5 -1
  35. package/web-components/index.js +583 -361
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 16 16" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M13.7936 9.26844L8.54361 14.7684C8.39986 14.9153 8.20611 14.9997 7.99986 14.9997C7.79361 14.9997 7.59861 14.9157 7.45673 14.7673L2.20673 9.26725C1.92173 8.94031 1.93248 8.49344 2.2323 8.20594C2.52917 7.91981 3.00573 7.93056 3.29292 8.23133L7.24986 12.3778V1.75031C7.24986 1.33625 7.5858 1 7.97174 1C8.35767 1 8.74986 1.33625 8.74986 1.75031V12.3784L12.7061 8.23156C12.9922 7.93078 13.4689 7.92003 13.7667 8.20617C14.0686 8.49344 14.078 8.94031 13.7936 9.26844Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 20 20" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M9.4497 12.472L7.7497 14.3407V3.7507C7.7497 3.33633 7.41533 3.00008 6.9997 3.00008C6.58408 3.00008 6.2497 3.33633 6.2497 3.7507V14.3413L4.55064 12.4991C4.40317 12.339 4.20189 12.2579 4.00001 12.2579C3.81839 12.2579 3.63564 12.3234 3.49126 12.4571C3.18658 12.7377 3.16814 13.2128 3.44926 13.5178L6.42114 16.7709C6.70433 17.0778 7.23958 17.0778 7.5227 16.7709L10.4946 13.5178C10.7758 13.2128 10.7573 12.7378 10.4526 12.4571C10.2028 12.172 9.72783 12.1938 9.4497 12.472ZM16.5497 6.48133L13.5778 3.2282C13.2946 2.92133 12.7594 2.92133 12.4763 3.2282L9.4497 6.48133C9.16845 6.78627 9.18701 7.26133 9.4917 7.54195C9.63617 7.67573 9.81889 7.74117 10.0005 7.74117C10.2026 7.74117 10.4039 7.66011 10.5511 7.49995L12.2497 5.65945V16.2501C12.2497 16.6626 12.5872 17.0001 12.9997 17.0001C13.4122 17.0001 13.7497 16.6638 13.7497 16.2495V5.65945L15.4488 7.50164C15.7281 7.80658 16.2025 7.82695 16.5081 7.54364C16.8122 7.26258 16.831 6.78758 16.5497 6.48133Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 56 56" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M39.6812 3.96479C40.0572 4.30834 40.2451 4.77832 40.2451 5.24995C40.2451 5.67552 40.0913 6.10099 39.7803 6.43776L19.881 27.9999L39.6888 49.5578C40.3451 50.2687 40.3041 51.3777 39.5897 52.0307C38.8788 52.687 37.7752 52.6426 37.1189 51.9333L16.1189 29.1833C15.4968 28.51 15.4968 27.4814 16.1189 26.8077L37.1189 4.05769C37.8655 3.35338 38.9702 3.30854 39.6812 3.96479Z" />
3
+ </svg>
@@ -0,0 +1,3 @@
1
+ <svg viewBox="0 0 56 56" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
2
+ <path d="M18.6454 52.0406C18.2693 51.6971 18.0814 51.2271 18.0814 50.7555C18.0814 50.3299 18.2352 49.9044 18.5463 49.5677L38.3541 28.0098L18.5458 6.4378C17.8896 5.72686 17.9306 4.6178 18.645 3.96483C19.3559 3.30858 20.4595 3.35299 21.1157 4.06224L42.1158 26.8123C42.7379 27.4856 42.7379 28.5141 42.1158 29.1879L21.1157 51.9379C20.4566 52.6422 19.3563 52.6969 18.6454 52.0406Z" />
3
+ </svg>
package/icons/index.ts CHANGED
@@ -16,6 +16,8 @@ import EnvelopeSvg from './envelope.svg';
16
16
  import CheckSvg from './check.svg';
17
17
  import ChevronUpSvg from './chevron-up.svg';
18
18
  import ChevronDownSvg from './chevron-down.svg';
19
+ import ChevronRightSvg from './chevron-right.svg';
20
+ import ChevronLeftSvg from './chevron-left.svg';
19
21
  import ErrorFilledSvg from './error-filled.svg';
20
22
  import LightBulbSvg from './light-bulb.svg';
21
23
  import LandmarkSvg from './landmark.svg';
@@ -28,6 +30,8 @@ import LoadingSvg from './loading.svg';
28
30
  import BullseyeSvg from './bullseye.svg';
29
31
  import SolidCheckSvg from './solid-check.svg';
30
32
  import SolidXMarkSvg from './solid-xmark.svg';
33
+ import ArrowSortSvg from './arrow-sort.svg';
34
+ import ArrowDownSvg from './arrow-down.svg';
31
35
 
32
36
  export {
33
37
  ViewSvg,
@@ -48,6 +52,8 @@ export {
48
52
  CheckSvg,
49
53
  ChevronUpSvg,
50
54
  ChevronDownSvg,
55
+ ChevronRightSvg,
56
+ ChevronLeftSvg,
51
57
  ErrorFilledSvg,
52
58
  LightBulbSvg,
53
59
  LandmarkSvg,
@@ -59,5 +65,7 @@ export {
59
65
  LoadingSvg,
60
66
  BullseyeSvg,
61
67
  SolidCheckSvg,
62
- SolidXMarkSvg
68
+ SolidXMarkSvg,
69
+ ArrowSortSvg,
70
+ ArrowDownSvg
63
71
  };
package/index.d.ts CHANGED
@@ -434,7 +434,7 @@ declare const _default$j: vue.DefineComponent<{
434
434
  isBordered: boolean;
435
435
  }>;
436
436
 
437
- declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
437
+ declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text' | 'transparent';
438
438
  declare interface ButtonDefinition {
439
439
  text: string;
440
440
  background: string;
@@ -482,7 +482,7 @@ declare const _default$i: vue.DefineComponent<{
482
482
  };
483
483
  /**
484
484
  * The colour variant of the button.
485
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
485
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
486
486
  */
487
487
  variant: {
488
488
  type: PropType<ButtonVariantName>;
@@ -575,7 +575,7 @@ declare const _default$i: vue.DefineComponent<{
575
575
  };
576
576
  /**
577
577
  * The colour variant of the button.
578
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
578
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
579
579
  */
580
580
  variant: {
581
581
  type: PropType<ButtonVariantName>;
@@ -1057,9 +1057,10 @@ declare interface FwTableProps {
1057
1057
  items: FwTableItem[];
1058
1058
  options?: FwTableItemOptions;
1059
1059
  loading?: boolean;
1060
+ clickableRows?: boolean;
1060
1061
  }
1061
1062
 
1062
- declare const _default$b: vue.DefineComponent<{
1063
+ declare const __default__$2: vue.DefineComponent<{
1063
1064
  items: {
1064
1065
  type: PropType<FwTableItem[]>;
1065
1066
  required: true;
@@ -1072,6 +1073,10 @@ declare const _default$b: vue.DefineComponent<{
1072
1073
  type: BooleanConstructor;
1073
1074
  default: boolean;
1074
1075
  };
1076
+ clickableRows: {
1077
+ type: BooleanConstructor;
1078
+ default: boolean;
1079
+ };
1075
1080
  }, {
1076
1081
  columns: vue.ComputedRef<string[]>;
1077
1082
  sortBy: vue.Ref<string>;
@@ -1079,11 +1084,13 @@ declare const _default$b: vue.DefineComponent<{
1079
1084
  sortColumn: (column: string) => void;
1080
1085
  sortedData: vue.ComputedRef<FwTableItem[]>;
1081
1086
  currentSortedColumn: vue.Ref<string>;
1082
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
1087
+ sortedIcon: (sortDir: string, column: string) => boolean;
1083
1088
  formattedText: (row: FwTableItem, column: string) => string | number;
1084
1089
  isColumnSortable: (column: string) => boolean | undefined;
1085
1090
  isDisabled: (column: string) => boolean;
1086
- }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, Record<string, any>, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1091
+ rowClicked: (row: FwTableItem) => void;
1092
+ bgHoverColor: string;
1093
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "rowClicked"[], "rowClicked", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1087
1094
  items: {
1088
1095
  type: PropType<FwTableItem[]>;
1089
1096
  required: true;
@@ -1096,15 +1103,22 @@ declare const _default$b: vue.DefineComponent<{
1096
1103
  type: BooleanConstructor;
1097
1104
  default: boolean;
1098
1105
  };
1099
- }>>, {
1106
+ clickableRows: {
1107
+ type: BooleanConstructor;
1108
+ default: boolean;
1109
+ };
1110
+ }>> & {
1111
+ onRowClicked?: ((...args: any[]) => any) | undefined;
1112
+ }, {
1100
1113
  loading: boolean;
1114
+ clickableRows: boolean;
1101
1115
  }>;
1102
1116
 
1103
- declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1117
+ declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1104
1118
 
1105
- declare const _default$9: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1119
+ declare const _default$a: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1106
1120
 
1107
- declare const _default$8: vue.DefineComponent<{
1121
+ declare const _default$9: vue.DefineComponent<{
1108
1122
  /**
1109
1123
  * The header title of the accordion
1110
1124
  */
@@ -1152,7 +1166,7 @@ declare const _default$8: vue.DefineComponent<{
1152
1166
  isOpened: boolean;
1153
1167
  }>;
1154
1168
 
1155
- declare const _default$7: vue.DefineComponent<{
1169
+ declare const _default$8: vue.DefineComponent<{
1156
1170
  /**
1157
1171
  * The src attribute of the image
1158
1172
  */
@@ -1235,11 +1249,11 @@ declare const _default$7: vue.DefineComponent<{
1235
1249
  threshold: number;
1236
1250
  }>;
1237
1251
 
1238
- declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1252
+ declare const _default$7: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1239
1253
 
1240
- declare const _default$5: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1254
+ declare const _default$6: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
1241
1255
 
1242
- declare const _default$4: vue.DefineComponent<{
1256
+ declare const _default$5: vue.DefineComponent<{
1243
1257
  columns: {
1244
1258
  type: NumberConstructor;
1245
1259
  default: number;
@@ -1278,7 +1292,7 @@ declare interface FwToastProps {
1278
1292
  timeout?: number;
1279
1293
  }
1280
1294
 
1281
- declare const _default$3: vue.DefineComponent<{
1295
+ declare const _default$4: vue.DefineComponent<{
1282
1296
  /**
1283
1297
  * The toast's v-model. Controls the visibility of the toast.
1284
1298
  */
@@ -1397,7 +1411,7 @@ declare const _default$3: vue.DefineComponent<{
1397
1411
  timeout: number;
1398
1412
  }>;
1399
1413
 
1400
- declare const _default$2: vue.DefineComponent<{
1414
+ declare const _default$3: vue.DefineComponent<{
1401
1415
  /**
1402
1416
  * The transaction title of the card
1403
1417
  */
@@ -1467,7 +1481,7 @@ declare interface FwBarChartProps {
1467
1481
  graphData?: FwBarGraphData[] | string;
1468
1482
  }
1469
1483
 
1470
- declare const _default$1: vue.DefineComponent<{
1484
+ declare const _default$2: vue.DefineComponent<{
1471
1485
  /**
1472
1486
  * The transaction title of the chart
1473
1487
  */
@@ -1548,6 +1562,82 @@ declare const _default$1: vue.DefineComponent<{
1548
1562
  };
1549
1563
  }>>, {}>;
1550
1564
 
1565
+ declare interface SidebarMenuItem {
1566
+ to?: string | object;
1567
+ href?: string;
1568
+ label: string;
1569
+ external?: boolean;
1570
+ }
1571
+
1572
+ declare const _default$1: vue.DefineComponent<{
1573
+ /**
1574
+ * An array of menu items
1575
+ * `{ to?: string | object; href?: string; label: string; }`
1576
+ */
1577
+ menuItems: {
1578
+ type: PropType<SidebarMenuItem[]>;
1579
+ };
1580
+ /**
1581
+ * The class for the open/close toggle button
1582
+ */
1583
+ toggleButtonClass: {
1584
+ type: StringConstructor;
1585
+ default: string;
1586
+ };
1587
+ /**
1588
+ * The width class for the sidebar when opened
1589
+ */
1590
+ openWidth: {
1591
+ type: StringConstructor;
1592
+ default: string;
1593
+ };
1594
+ /**
1595
+ * The width class for the sidebar when opened
1596
+ */
1597
+ closedWidth: {
1598
+ type: StringConstructor;
1599
+ default: string;
1600
+ };
1601
+ }, {
1602
+ isMenuOpen: vue.Ref<boolean>;
1603
+ toggleMenu: () => void;
1604
+ }, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "toggled"[], "toggled", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
1605
+ /**
1606
+ * An array of menu items
1607
+ * `{ to?: string | object; href?: string; label: string; }`
1608
+ */
1609
+ menuItems: {
1610
+ type: PropType<SidebarMenuItem[]>;
1611
+ };
1612
+ /**
1613
+ * The class for the open/close toggle button
1614
+ */
1615
+ toggleButtonClass: {
1616
+ type: StringConstructor;
1617
+ default: string;
1618
+ };
1619
+ /**
1620
+ * The width class for the sidebar when opened
1621
+ */
1622
+ openWidth: {
1623
+ type: StringConstructor;
1624
+ default: string;
1625
+ };
1626
+ /**
1627
+ * The width class for the sidebar when opened
1628
+ */
1629
+ closedWidth: {
1630
+ type: StringConstructor;
1631
+ default: string;
1632
+ };
1633
+ }>> & {
1634
+ onToggled?: ((...args: any[]) => any) | undefined;
1635
+ }, {
1636
+ toggleButtonClass: string;
1637
+ openWidth: string;
1638
+ closedWidth: string;
1639
+ }>;
1640
+
1551
1641
  declare const __default__$1: vue.DefineComponent<{
1552
1642
  /**
1553
1643
  * The animation-iteration-count CSS property of the pulse animation.
@@ -1672,4 +1762,4 @@ declare interface FwTransactionsCardProps {
1672
1762
 
1673
1763
  declare module '@frollo/frollo-web-ui/icons' { }
1674
1764
 
1675
- export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$8 as FwAccordion, FwAccordionProps, _default$1 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$7 as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$6 as FwLoadingBar, _default$5 as FwLoadingCard, _default as FwLoadingSpinner, _default$4 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, __default__ as FwSuccessPulse, _default$f as FwTab, _default$b as FwTable, FwTableFormatFunction, _default$a as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$9 as FwTableRow, FwTableSort, _default$g as FwTabs, _default$c as FwTag, FwTagProps, _default$3 as FwToast, FwToastProps, _default$2 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
1765
+ export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, _default$9 as FwAccordion, FwAccordionProps, _default$2 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$8 as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$7 as FwLoadingBar, _default$6 as FwLoadingCard, _default as FwLoadingSpinner, _default$5 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, _default$1 as FwSidebarMenu, __default__ as FwSuccessPulse, _default$f as FwTab, __default__$2 as FwTable, FwTableFormatFunction, _default$b as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$a as FwTableRow, FwTableSort, _default$g as FwTabs, _default$c as FwTag, FwTagProps, _default$4 as FwToast, FwToastProps, _default$3 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, SidebarMenuItem, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frollo/frollo-web-ui",
3
- "version": "3.0.1",
3
+ "version": "4.0.0",
4
4
  "description": "Frollo's UI library for components, utilities and configs",
5
5
  "exports": {
6
6
  "./icons": "./icons/index.ts",
@@ -21,7 +21,7 @@ declare const _default: import("vue").DefineComponent<{
21
21
  };
22
22
  /**
23
23
  * The colour variant of the button.
24
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
24
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
25
25
  */
26
26
  variant: {
27
27
  type: PropType<ButtonVariantName>;
@@ -114,7 +114,7 @@ declare const _default: import("vue").DefineComponent<{
114
114
  };
115
115
  /**
116
116
  * The colour variant of the button.
117
- * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success'
117
+ * Accepts 'primary', 'secondary', 'tertiary', 'error', 'success', 'link', 'text', 'transparent'
118
118
  */
119
119
  variant: {
120
120
  type: PropType<ButtonVariantName>;
@@ -1,4 +1,4 @@
1
- export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text';
1
+ export declare type ButtonVariantName = 'primary' | 'secondary' | 'tertiary' | 'error' | 'success' | 'link' | 'text' | 'transparent';
2
2
  export declare interface ButtonDefinition {
3
3
  text: string;
4
4
  background: string;
@@ -0,0 +1,71 @@
1
+ import { PropType } from 'vue';
2
+ import { SidebarMenuItem } from './index.types';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ /**
5
+ * An array of menu items
6
+ * `{ to?: string | object; href?: string; label: string; }`
7
+ */
8
+ menuItems: {
9
+ type: PropType<SidebarMenuItem[]>;
10
+ };
11
+ /**
12
+ * The class for the open/close toggle button
13
+ */
14
+ toggleButtonClass: {
15
+ type: StringConstructor;
16
+ default: string;
17
+ };
18
+ /**
19
+ * The width class for the sidebar when opened
20
+ */
21
+ openWidth: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ /**
26
+ * The width class for the sidebar when opened
27
+ */
28
+ closedWidth: {
29
+ type: StringConstructor;
30
+ default: string;
31
+ };
32
+ }, {
33
+ isMenuOpen: import("vue").Ref<boolean>;
34
+ toggleMenu: () => void;
35
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "toggled"[], "toggled", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
36
+ /**
37
+ * An array of menu items
38
+ * `{ to?: string | object; href?: string; label: string; }`
39
+ */
40
+ menuItems: {
41
+ type: PropType<SidebarMenuItem[]>;
42
+ };
43
+ /**
44
+ * The class for the open/close toggle button
45
+ */
46
+ toggleButtonClass: {
47
+ type: StringConstructor;
48
+ default: string;
49
+ };
50
+ /**
51
+ * The width class for the sidebar when opened
52
+ */
53
+ openWidth: {
54
+ type: StringConstructor;
55
+ default: string;
56
+ };
57
+ /**
58
+ * The width class for the sidebar when opened
59
+ */
60
+ closedWidth: {
61
+ type: StringConstructor;
62
+ default: string;
63
+ };
64
+ }>> & {
65
+ onToggled?: ((...args: any[]) => any) | undefined;
66
+ }, {
67
+ toggleButtonClass: string;
68
+ openWidth: string;
69
+ closedWidth: string;
70
+ }>;
71
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import FwSidebarMenu from './fw-sidebar-menu.vue';
2
+ export { FwSidebarMenu };
@@ -0,0 +1,6 @@
1
+ export declare interface SidebarMenuItem {
2
+ to?: string | object;
3
+ href?: string;
4
+ label: string;
5
+ external?: boolean;
6
+ }
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import { FwTableItem, FwTableSort } from './index.types';
3
- declare const _default: import("vue").DefineComponent<{
3
+ declare const __default__: import("vue").DefineComponent<{
4
4
  items: {
5
5
  type: PropType<FwTableItem[]>;
6
6
  required: true;
@@ -13,6 +13,10 @@ declare const _default: import("vue").DefineComponent<{
13
13
  type: BooleanConstructor;
14
14
  default: boolean;
15
15
  };
16
+ clickableRows: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
16
20
  }, {
17
21
  columns: import("vue").ComputedRef<string[]>;
18
22
  sortBy: import("vue").Ref<string>;
@@ -20,11 +24,13 @@ declare const _default: import("vue").DefineComponent<{
20
24
  sortColumn: (column: string) => void;
21
25
  sortedData: import("vue").ComputedRef<FwTableItem[]>;
22
26
  currentSortedColumn: import("vue").Ref<string>;
23
- sortedIcon: (sortDir: string, column: string) => "text-body" | "text-grey-light";
27
+ sortedIcon: (sortDir: string, column: string) => boolean;
24
28
  formattedText: (row: FwTableItem, column: string) => string | number;
25
29
  isColumnSortable: (column: string) => boolean | undefined;
26
30
  isDisabled: (column: string) => boolean;
27
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
31
+ rowClicked: (row: FwTableItem) => void;
32
+ bgHoverColor: string;
33
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "rowClicked"[], "rowClicked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
34
  items: {
29
35
  type: PropType<FwTableItem[]>;
30
36
  required: true;
@@ -37,7 +43,14 @@ declare const _default: import("vue").DefineComponent<{
37
43
  type: BooleanConstructor;
38
44
  default: boolean;
39
45
  };
40
- }>>, {
46
+ clickableRows: {
47
+ type: BooleanConstructor;
48
+ default: boolean;
49
+ };
50
+ }>> & {
51
+ onRowClicked?: ((...args: any[]) => any) | undefined;
52
+ }, {
41
53
  loading: boolean;
54
+ clickableRows: boolean;
42
55
  }>;
43
- export default _default;
56
+ export default __default__;
@@ -10,4 +10,5 @@ export declare interface FwTableProps {
10
10
  items: FwTableItem[];
11
11
  options?: FwTableItemOptions;
12
12
  loading?: boolean;
13
+ clickableRows?: boolean;
13
14
  }
@@ -16,4 +16,5 @@ export * from './fw-loading';
16
16
  export * from './fw-toast';
17
17
  export * from './fw-transactions-card';
18
18
  export * from './fw-bar-chart';
19
+ export * from './fw-sidebar-menu';
19
20
  export * from './fw-animations';
@@ -13,3 +13,4 @@ export * from '../components/fw-image/index.types';
13
13
  export * from '../components/fw-toast/index.types';
14
14
  export * from '../components/fw-transactions-card/index.types';
15
15
  export * from '../components/fw-bar-chart/index.types';
16
+ export * from '../components/fw-sidebar-menu/index.types';
@@ -16,6 +16,8 @@ import EnvelopeSvg from './envelope.svg';
16
16
  import CheckSvg from './check.svg';
17
17
  import ChevronUpSvg from './chevron-up.svg';
18
18
  import ChevronDownSvg from './chevron-down.svg';
19
+ import ChevronRightSvg from './chevron-right.svg';
20
+ import ChevronLeftSvg from './chevron-left.svg';
19
21
  import ErrorFilledSvg from './error-filled.svg';
20
22
  import LightBulbSvg from './light-bulb.svg';
21
23
  import LandmarkSvg from './landmark.svg';
@@ -28,4 +30,6 @@ import LoadingSvg from './loading.svg';
28
30
  import BullseyeSvg from './bullseye.svg';
29
31
  import SolidCheckSvg from './solid-check.svg';
30
32
  import SolidXMarkSvg from './solid-xmark.svg';
31
- export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg };
33
+ import ArrowSortSvg from './arrow-sort.svg';
34
+ import ArrowDownSvg from './arrow-down.svg';
35
+ 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 };