framework7-react 7.1.5 → 8.0.0-beta.2

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 (148) hide show
  1. package/components/accordion-content.js +2 -2
  2. package/components/accordion-item.js +2 -11
  3. package/components/accordion-toggle.js +2 -2
  4. package/components/accordion.js +2 -2
  5. package/components/actions-button.d.ts +1 -1
  6. package/components/actions-button.js +4 -8
  7. package/components/actions-group.js +2 -2
  8. package/components/actions-label.js +4 -6
  9. package/components/actions.js +4 -14
  10. package/components/app.js +4 -8
  11. package/components/area-chart.js +6 -45
  12. package/components/badge.js +2 -2
  13. package/components/block-footer.js +2 -2
  14. package/components/block-header.js +2 -2
  15. package/components/block-title.js +2 -2
  16. package/components/block.d.ts +17 -4
  17. package/components/block.js +37 -11
  18. package/components/breadcrumbs-collapsed.js +2 -4
  19. package/components/breadcrumbs-item.js +2 -4
  20. package/components/breadcrumbs-separator.js +2 -2
  21. package/components/breadcrumbs.js +2 -2
  22. package/components/button.d.ts +3 -7
  23. package/components/button.js +8 -24
  24. package/components/card-content.js +2 -2
  25. package/components/card-footer.js +2 -2
  26. package/components/card-header.js +2 -2
  27. package/components/card.d.ts +5 -2
  28. package/components/card.js +14 -23
  29. package/components/checkbox.js +2 -4
  30. package/components/chip.d.ts +0 -1
  31. package/components/chip.js +2 -9
  32. package/components/fab-backdrop.js +2 -2
  33. package/components/fab-button.js +2 -6
  34. package/components/fab-buttons.js +2 -2
  35. package/components/fab.js +2 -10
  36. package/components/gauge.js +2 -2
  37. package/components/icon.d.ts +0 -1
  38. package/components/icon.js +3 -17
  39. package/components/input.js +1 -57
  40. package/components/link.d.ts +0 -1
  41. package/components/link.js +5 -12
  42. package/components/list-button.js +2 -4
  43. package/components/list-group.js +2 -2
  44. package/components/list-index.d.ts +0 -1
  45. package/components/list-index.js +3 -13
  46. package/components/list-input.d.ts +0 -1
  47. package/components/list-input.js +1 -55
  48. package/components/list-item-content.js +9 -20
  49. package/components/list-item.d.ts +1 -1
  50. package/components/list-item.js +6 -35
  51. package/components/list.d.ts +21 -9
  52. package/components/list.js +43 -37
  53. package/components/login-screen-title.js +2 -2
  54. package/components/login-screen.js +3 -15
  55. package/components/message.js +2 -10
  56. package/components/messagebar-attachment.js +2 -5
  57. package/components/messagebar-attachments.js +2 -2
  58. package/components/messagebar-sheet-image.js +4 -5
  59. package/components/messagebar-sheet-item.js +2 -2
  60. package/components/messagebar-sheet.js +2 -2
  61. package/components/messagebar.js +1 -19
  62. package/components/messages-title.js +2 -2
  63. package/components/messages.js +2 -15
  64. package/components/nav-left.js +2 -6
  65. package/components/nav-right.js +2 -2
  66. package/components/nav-title-large.js +2 -2
  67. package/components/nav-title.js +2 -4
  68. package/components/navbar.d.ts +1 -2
  69. package/components/navbar.js +5 -31
  70. package/components/page-content.js +2 -16
  71. package/components/page.d.ts +0 -1
  72. package/components/page.js +4 -62
  73. package/components/panel.d.ts +1 -0
  74. package/components/panel.js +6 -26
  75. package/components/photo-browser.js +1 -17
  76. package/components/pie-chart.js +6 -18
  77. package/components/popover.d.ts +1 -0
  78. package/components/popover.js +4 -14
  79. package/components/popup.js +3 -19
  80. package/components/preloader.js +5 -14
  81. package/components/progressbar.js +2 -4
  82. package/components/radio.js +2 -4
  83. package/components/range.js +2 -9
  84. package/components/routable-modals.js +2 -7
  85. package/components/searchbar.d.ts +1 -2
  86. package/components/searchbar.js +5 -30
  87. package/components/segmented.d.ts +0 -3
  88. package/components/segmented.js +4 -10
  89. package/components/sheet.js +2 -22
  90. package/components/stepper.d.ts +0 -5
  91. package/components/stepper.js +3 -33
  92. package/components/subnavbar.js +2 -2
  93. package/components/swipeout-actions.js +2 -4
  94. package/components/swipeout-button.js +2 -4
  95. package/components/tab.js +4 -15
  96. package/components/tabs.js +1 -4
  97. package/components/text-editor.js +1 -18
  98. package/components/toggle.js +1 -13
  99. package/components/toolbar.d.ts +2 -6
  100. package/components/toolbar.js +9 -20
  101. package/components/treeview-item.d.ts +0 -1
  102. package/components/treeview-item.js +2 -11
  103. package/components/treeview.js +2 -2
  104. package/components/view.d.ts +0 -6
  105. package/components/view.js +3 -30
  106. package/components/views.js +2 -2
  107. package/framework7-react.d.ts +2 -14
  108. package/framework7-react.js +3 -14
  109. package/package.json +1 -1
  110. package/shared/components-router.js +0 -32
  111. package/shared/f7.js +5 -19
  112. package/shared/get-router-initial-component.js +0 -4
  113. package/shared/mixins.js +2 -8
  114. package/shared/plugin.js +2 -8
  115. package/shared/router-open-in.js +4 -15
  116. package/shared/tabbar-context.js +1 -1
  117. package/shared/use-icon.js +1 -6
  118. package/shared/use-isomorphic-layout-effect.js +0 -2
  119. package/shared/use-route-props.js +0 -1
  120. package/shared/use-smart-select.js +0 -3
  121. package/shared/use-store.js +4 -8
  122. package/shared/use-tab.js +0 -4
  123. package/shared/use-theme.js +0 -2
  124. package/shared/use-tooltip.js +0 -5
  125. package/shared/utils.js +0 -18
  126. package/shared/watch-prop.js +0 -1
  127. package/components/appbar.d.ts +0 -28
  128. package/components/appbar.js +0 -45
  129. package/components/col.d.ts +0 -36
  130. package/components/col.js +0 -75
  131. package/components/list-item-cell.d.ts +0 -23
  132. package/components/list-item-cell.js +0 -28
  133. package/components/list-item-row.d.ts +0 -23
  134. package/components/list-item-row.js +0 -28
  135. package/components/menu-dropdown-item.d.ts +0 -68
  136. package/components/menu-dropdown-item.js +0 -59
  137. package/components/menu-dropdown.d.ts +0 -28
  138. package/components/menu-dropdown.js +0 -42
  139. package/components/menu-item.d.ts +0 -81
  140. package/components/menu-item.js +0 -101
  141. package/components/menu.d.ts +0 -23
  142. package/components/menu.js +0 -30
  143. package/components/row.d.ts +0 -31
  144. package/components/row.js +0 -64
  145. package/components/swiper-slide.d.ts +0 -4
  146. package/components/swiper-slide.js +0 -3
  147. package/components/swiper.d.ts +0 -4
  148. package/components/swiper.js +0 -3
@@ -8,21 +8,34 @@ export interface BlockProps {
8
8
  className?: string;
9
9
  style?: React.CSSProperties;
10
10
  inset?: boolean;
11
+ insetIos?: boolean;
12
+ insetMd?: boolean;
11
13
  xsmallInset?: boolean;
14
+ xsmallInsetIos?: boolean;
15
+ xsmallInsetMd?: boolean;
12
16
  smallInset?: boolean;
17
+ smallInsetIos?: boolean;
18
+ smallInsetMd?: boolean;
13
19
  mediumInset?: boolean;
20
+ mediumInsetIos?: boolean;
21
+ mediumInsetMd?: boolean;
14
22
  largeInset?: boolean;
23
+ largeInsetIos?: boolean;
24
+ largeInsetMd?: boolean;
15
25
  xlargeInset?: boolean;
26
+ xlargeInsetIos?: boolean;
27
+ xlargeInsetMd?: boolean;
16
28
  strong?: boolean;
29
+ strongIos?: boolean;
30
+ strongMd?: boolean;
31
+ outline?: boolean;
32
+ outlineIos?: boolean;
33
+ outlineMd?: boolean;
17
34
  tabs?: boolean;
18
35
  tab?: boolean;
19
36
  tabActive?: boolean;
20
37
  accordionList?: boolean;
21
38
  accordionOpposite?: boolean;
22
- noHairlines?: boolean;
23
- noHairlinesMd?: boolean;
24
- noHairlinesIos?: boolean;
25
- noHairlinesAurora?: boolean;
26
39
  onTabShow?: (el?: HTMLElement) => void;
27
40
  onTabHide?: (el?: HTMLElement) => void;
28
41
  ref?: React.MutableRefObject<{el: HTMLElement | null}>;
@@ -1,29 +1,42 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
  import { useTab } from '../shared/use-tab.js';
7
6
 
7
+
8
8
  const Block = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
10
10
  className,
11
11
  inset,
12
+ insetIos,
13
+ insetMd,
12
14
  xsmallInset,
15
+ xsmallInsetIos,
16
+ xsmallInsetMd,
13
17
  smallInset,
18
+ smallInsetIos,
19
+ smallInsetMd,
14
20
  mediumInset,
21
+ mediumInsetIos,
22
+ mediumInsetMd,
15
23
  largeInset,
24
+ largeInsetIos,
25
+ largeInsetMd,
16
26
  xlargeInset,
27
+ xlargeInsetIos,
28
+ xlargeInsetMd,
17
29
  strong,
30
+ strongIos,
31
+ strongMd,
32
+ outline,
33
+ outlineIos,
34
+ outlineMd,
18
35
  accordionList,
19
36
  accordionOpposite,
20
37
  tabs,
21
38
  tab,
22
39
  tabActive,
23
- noHairlines,
24
- noHairlinesIos,
25
- noHairlinesMd,
26
- noHairlinesAurora,
27
40
  id,
28
41
  style,
29
42
  children
@@ -36,21 +49,34 @@ const Block = /*#__PURE__*/forwardRef((props, ref) => {
36
49
  useTab(elRef, props);
37
50
  const classes = classNames(className, 'block', {
38
51
  inset,
52
+ 'inset-ios': insetIos,
53
+ 'inset-md': insetMd,
39
54
  'xsmall-inset': xsmallInset,
55
+ 'xsmall-inset-ios': xsmallInsetIos,
56
+ 'xsmall-inset-md': xsmallInsetMd,
40
57
  'small-inset': smallInset,
58
+ 'small-inset-ios': smallInsetIos,
59
+ 'small-inset-md': smallInsetMd,
41
60
  'medium-inset': mediumInset,
61
+ 'medium-inset-ios': mediumInsetIos,
62
+ 'medium-inset-md': mediumInsetMd,
42
63
  'large-inset': largeInset,
64
+ 'large-inset-ios': largeInsetIos,
65
+ 'large-inset-md': largeInsetMd,
43
66
  'xlarge-inset': xlargeInset,
67
+ 'xlarge-inset-ios': xlargeInsetIos,
68
+ 'xlarge-inset-md': xlargeInsetMd,
44
69
  'block-strong': strong,
70
+ 'block-strong-ios': strongIos,
71
+ 'block-strong-md': strongMd,
72
+ 'block-outline': outline,
73
+ 'block-outline-ios': outlineIos,
74
+ 'block-outline-md': outlineMd,
45
75
  'accordion-list': accordionList,
46
76
  'accordion-opposite': accordionOpposite,
47
77
  tabs,
48
78
  tab,
49
- 'tab-active': tabActive,
50
- 'no-hairlines': noHairlines,
51
- 'no-hairlines-md': noHairlinesMd,
52
- 'no-hairlines-ios': noHairlinesIos,
53
- 'no-hairlines-aurora': noHairlinesAurora
79
+ 'tab-active': tabActive
54
80
  }, colorClasses(props));
55
81
  return /*#__PURE__*/React.createElement("div", _extends({
56
82
  id: id,
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
4
 
5
+
6
6
  const BreadcrumbsCollapsed = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {
8
8
  className,
@@ -15,11 +15,9 @@ const BreadcrumbsCollapsed = /*#__PURE__*/forwardRef((props, ref) => {
15
15
  useImperativeHandle(ref, () => ({
16
16
  el: elRef.current
17
17
  }));
18
-
19
18
  const onClick = e => {
20
19
  emit(props, 'click', e);
21
20
  };
22
-
23
21
  return /*#__PURE__*/React.createElement("div", _extends({
24
22
  className: classNames('breadcrumbs-collapsed', className),
25
23
  ref: elRef,
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
4
 
5
+
6
6
  const BreadcrumbsItem = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {
8
8
  className,
@@ -16,11 +16,9 @@ const BreadcrumbsItem = /*#__PURE__*/forwardRef((props, ref) => {
16
16
  useImperativeHandle(ref, () => ({
17
17
  el: elRef.current
18
18
  }));
19
-
20
19
  const onClick = e => {
21
20
  emit(props, 'click', e);
22
21
  };
23
-
24
22
  return /*#__PURE__*/React.createElement("div", _extends({
25
23
  className: classNames('breadcrumbs-item', className, active && 'breadcrumbs-item-active'),
26
24
  ref: elRef,
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
 
5
+
6
6
  const BreadcrumbsSeparator = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {
8
8
  className,
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
 
5
+
6
6
  const Breadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {
8
8
  className,
@@ -16,27 +16,24 @@ export interface ButtonProps {
16
16
  round ?: boolean;
17
17
  roundMd ?: boolean;
18
18
  roundIos ?: boolean;
19
- roundAurora ?: boolean;
20
19
  fill ?: boolean;
21
20
  fillMd ?: boolean;
22
21
  fillIos ?: boolean;
23
- fillAurora ?: boolean;
22
+ tonal ?: boolean;
23
+ tonalMd ?: boolean;
24
+ tonalIos ?: boolean;
24
25
  large ?: boolean;
25
26
  largeMd ?: boolean;
26
27
  largeIos ?: boolean;
27
- largeAurora ?: boolean;
28
28
  small ?: boolean;
29
29
  smallMd ?: boolean;
30
30
  smallIos ?: boolean;
31
- smallAurora ?: boolean;
32
31
  raised ?: boolean;
33
32
  raisedMd ?: boolean;
34
33
  raisedIos ?: boolean;
35
- raisedAurora ?: boolean;
36
34
  outline ?: boolean;
37
35
  outlineMd ?: boolean;
38
36
  outlineIos ?: boolean;
39
- outlineAurora ?: boolean;
40
37
  active ?: boolean;
41
38
  disabled ?: boolean;
42
39
  tooltip ?: string;
@@ -60,7 +57,6 @@ export interface ButtonProps {
60
57
  iconF7?: string;
61
58
  iconIos?: string;
62
59
  iconMd?: string;
63
- iconAurora?: string;
64
60
  iconColor?: string;
65
61
  iconSize?: string | number;
66
62
  back?: boolean;
@@ -1,5 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs, extend, isStringProp, emit } from '../shared/utils.js';
5
4
  import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins.js';
@@ -8,6 +7,7 @@ import { useIcon } from '../shared/use-icon.js';
8
7
  import { useRouteProps } from '../shared/use-route-props.js';
9
8
  import Preloader from './preloader.js';
10
9
 
10
+
11
11
  const Button = /*#__PURE__*/forwardRef((props, ref) => {
12
12
  const {
13
13
  className,
@@ -22,28 +22,25 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
22
22
  tabLinkActive,
23
23
  round,
24
24
  roundIos,
25
- roundAurora,
26
25
  roundMd,
27
26
  fill,
28
27
  fillIos,
29
- fillAurora,
30
28
  fillMd,
29
+ tonal,
30
+ tonalIos,
31
+ tonalMd,
31
32
  large,
32
33
  largeIos,
33
- largeAurora,
34
34
  largeMd,
35
35
  small,
36
36
  smallIos,
37
- smallAurora,
38
37
  smallMd,
39
38
  raised,
40
39
  raisedIos,
41
- raisedAurora,
42
40
  raisedMd,
43
41
  active,
44
42
  outline,
45
43
  outlineIos,
46
- outlineAurora,
47
44
  outlineMd,
48
45
  disabled,
49
46
  preloader,
@@ -53,59 +50,50 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
53
50
  } = props;
54
51
  const extraAttrs = getExtraAttrs(props);
55
52
  const elRef = useRef(null);
56
-
57
53
  const onClick = e => {
58
54
  emit(props, 'click', e);
59
55
  };
60
-
61
56
  useImperativeHandle(ref, () => ({
62
57
  el: elRef.current
63
58
  }));
64
59
  useTooltip(elRef, props);
65
60
  useRouteProps(elRef, props);
66
-
67
61
  const getClasses = () => {
68
62
  return classNames(className, 'button', {
69
63
  'tab-link': tabLink || tabLink === '',
70
64
  'tab-link-active': tabLinkActive,
71
65
  'button-round': round,
72
66
  'button-round-ios': roundIos,
73
- 'button-round-aurora': roundAurora,
74
67
  'button-round-md': roundMd,
75
68
  'button-fill': fill,
76
69
  'button-fill-ios': fillIos,
77
- 'button-fill-aurora': fillAurora,
78
70
  'button-fill-md': fillMd,
71
+ 'button-tonal': tonal,
72
+ 'button-tonal-ios': tonalIos,
73
+ 'button-tonal-md': tonalMd,
79
74
  'button-large': large,
80
75
  'button-large-ios': largeIos,
81
- 'button-large-aurora': largeAurora,
82
76
  'button-large-md': largeMd,
83
77
  'button-small': small,
84
78
  'button-small-ios': smallIos,
85
- 'button-small-aurora': smallAurora,
86
79
  'button-small-md': smallMd,
87
80
  'button-raised': raised,
88
81
  'button-raised-ios': raisedIos,
89
- 'button-raised-aurora': raisedAurora,
90
82
  'button-raised-md': raisedMd,
91
83
  'button-active': active,
92
84
  'button-outline': outline,
93
85
  'button-outline-ios': outlineIos,
94
- 'button-outline-aurora': outlineAurora,
95
86
  'button-outline-md': outlineMd,
96
87
  'button-preloader': preloader,
97
88
  'button-loading': loading,
98
89
  disabled
99
90
  }, colorClasses(props), routerClasses(props), actionsClasses(props));
100
91
  };
101
-
102
92
  const ButtonTag = type === 'submit' || type === 'reset' || type === 'button' ? 'button' : 'a';
103
-
104
93
  const getAttrs = () => {
105
94
  let hrefComputed = href;
106
95
  if (href === true) hrefComputed = '#';
107
96
  if (href === false || ButtonTag === 'button') hrefComputed = undefined; // no href attribute
108
-
109
97
  return extend({
110
98
  href: hrefComputed,
111
99
  target,
@@ -113,14 +101,11 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
113
101
  'data-tab': isStringProp(tabLink) && tabLink || undefined
114
102
  }, routerAttrs(props), actionsAttrs(props));
115
103
  };
116
-
117
104
  const iconEl = useIcon(props);
118
105
  let textEl;
119
-
120
106
  if (text) {
121
107
  textEl = /*#__PURE__*/React.createElement("span", null, text);
122
108
  }
123
-
124
109
  if (preloader) {
125
110
  return /*#__PURE__*/React.createElement(ButtonTag, _extends({
126
111
  ref: elRef,
@@ -134,7 +119,6 @@ const Button = /*#__PURE__*/forwardRef((props, ref) => {
134
119
  color: preloaderColor
135
120
  }), /*#__PURE__*/React.createElement("span", null, iconEl, textEl, children));
136
121
  }
137
-
138
122
  return /*#__PURE__*/React.createElement(ButtonTag, _extends({
139
123
  ref: elRef,
140
124
  id: id,
@@ -1,9 +1,9 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
 
6
+
7
7
  const CardContent = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
9
9
  className,
@@ -1,9 +1,9 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
 
6
+
7
7
  const CardFooter = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
9
9
  className,
@@ -1,9 +1,9 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
 
6
+
7
7
  const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
9
9
  className,
@@ -10,7 +10,12 @@ export interface CardProps {
10
10
  title ?: string | number;
11
11
  content ?: string | number;
12
12
  footer ?: string | number;
13
+ raised?: boolean;
13
14
  outline ?: boolean;
15
+ outlineIos ?: boolean;
16
+ outlineMd ?: boolean;
17
+ headerDivider ?: boolean;
18
+ footerDivider ?: boolean;
14
19
  expandable ?: boolean;
15
20
  expandableAnimateWidth ?: boolean;
16
21
  expandableOpened ?: boolean;
@@ -23,8 +28,6 @@ export interface CardProps {
23
28
  closeByBackdropClick ?: boolean;
24
29
  backdrop ?: boolean;
25
30
  backdropEl ?: string;
26
- noShadow ?: boolean;
27
- noBorder ?: boolean;
28
31
  padding ?: boolean;
29
32
  onCardBeforeOpen ?: (el?: HTMLElement, prevent?: any) => void;
30
33
  onCardOpen ?: (el?: HTMLElement) => void;
@@ -1,5 +1,4 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
4
  import CardHeader from './card-header.js';
@@ -10,6 +9,7 @@ import { colorClasses } from '../shared/mixins.js';
10
9
  import { f7, f7ready } from '../shared/f7.js';
11
10
  import { watchProp } from '../shared/watch-prop.js';
12
11
 
12
+
13
13
  const Card = /*#__PURE__*/forwardRef((props, ref) => {
14
14
  const {
15
15
  className,
@@ -19,7 +19,12 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
19
19
  content,
20
20
  footer,
21
21
  padding,
22
+ raised,
22
23
  outline,
24
+ outlineIos,
25
+ outlineMd,
26
+ headerDivider,
27
+ footerDivider,
23
28
  expandable,
24
29
  expandableAnimateWidth,
25
30
  expandableOpened,
@@ -31,48 +36,38 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
31
36
  swipeToClose,
32
37
  closeByBackdropClick,
33
38
  backdrop,
34
- backdropEl,
35
- noShadow,
36
- noBorder
39
+ backdropEl
37
40
  } = props;
38
41
  const extraAttrs = getExtraAttrs(props);
39
42
  const elRef = useRef(null);
40
-
41
43
  const open = () => {
42
44
  if (!elRef.current) return;
43
45
  f7.card.open(elRef.current);
44
46
  };
45
-
46
47
  const close = () => {
47
48
  if (!elRef.current) return;
48
49
  f7.card.close(elRef.current);
49
50
  };
50
-
51
51
  const onBeforeOpen = (el, prevent) => {
52
52
  if (elRef.current !== el) return;
53
53
  emit(props, 'cardBeforeOpen', el, prevent);
54
54
  };
55
-
56
55
  const onOpen = el => {
57
56
  if (elRef.current !== el) return;
58
57
  emit(props, 'cardOpen', el);
59
58
  };
60
-
61
59
  const onOpened = (el, pageEl) => {
62
60
  if (elRef.current !== el) return;
63
61
  emit(props, 'cardOpened', el, pageEl);
64
62
  };
65
-
66
63
  const onClose = el => {
67
64
  if (elRef.current !== el) return;
68
65
  emit(props, 'cardClose', el);
69
66
  };
70
-
71
67
  const onClosed = (el, pageEl) => {
72
68
  if (elRef.current !== el) return;
73
69
  emit(props, 'cardClosed', el, pageEl);
74
70
  };
75
-
76
71
  const attachEvents = () => {
77
72
  if (!expandable || !elRef.current) return;
78
73
  f7ready(() => {
@@ -83,7 +78,6 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
83
78
  f7.on('cardClosed', onClosed);
84
79
  });
85
80
  };
86
-
87
81
  const detachEvents = () => {
88
82
  f7.off('cardBeforeOpen', onBeforeOpen);
89
83
  f7.off('cardOpen', onOpen);
@@ -91,7 +85,6 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
91
85
  f7.off('cardClose', onClose);
92
86
  f7.off('cardClosed', onClosed);
93
87
  };
94
-
95
88
  const onMount = () => {
96
89
  if (!expandable || !elRef.current) return;
97
90
  f7ready(() => {
@@ -100,7 +93,6 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
100
93
  }
101
94
  });
102
95
  };
103
-
104
96
  useIsomorphicLayoutEffect(() => {
105
97
  onMount();
106
98
  }, []);
@@ -124,28 +116,27 @@ const Card = /*#__PURE__*/forwardRef((props, ref) => {
124
116
  let contentEl;
125
117
  let footerEl;
126
118
  const classes = classNames(className, 'card', {
119
+ 'card-raised': raised,
120
+ 'card-header-divider': headerDivider,
121
+ 'card-footer-divider': footerDivider,
127
122
  'card-outline': outline,
123
+ 'card-outline-ios': outlineIos,
124
+ 'card-outline-md': outlineMd,
128
125
  'card-expandable': expandable,
129
- 'card-expandable-animate-width': expandableAnimateWidth,
130
- 'no-shadow': noShadow,
131
- 'no-border': noBorder
126
+ 'card-expandable-animate-width': expandableAnimateWidth
132
127
  }, colorClasses(props));
133
128
  const slots = getSlots(props);
134
-
135
129
  if (title || slots.header) {
136
130
  headerEl = /*#__PURE__*/React.createElement(CardHeader, null, title, slots.header);
137
131
  }
138
-
139
132
  if (content || slots.content) {
140
133
  contentEl = /*#__PURE__*/React.createElement(CardContent, {
141
134
  padding: padding
142
135
  }, content, slots.content);
143
136
  }
144
-
145
137
  if (footer || slots.footer) {
146
138
  footerEl = /*#__PURE__*/React.createElement(CardFooter, null, footer, slots.footer);
147
139
  }
148
-
149
140
  return /*#__PURE__*/React.createElement("div", _extends({
150
141
  id: id,
151
142
  style: style,
@@ -1,9 +1,9 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';
4
3
  import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
 
6
+
7
7
  const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
9
9
  className,
@@ -25,11 +25,9 @@ const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
25
25
  el: elRef.current,
26
26
  inputEl: inputElRef.current
27
27
  }));
28
-
29
28
  const onChange = event => {
30
29
  emit(props, 'change', event);
31
30
  };
32
-
33
31
  useEffect(() => {
34
32
  if (inputElRef.current) {
35
33
  inputElRef.current.indeterminate = !!indeterminate;
@@ -31,7 +31,6 @@ export interface ChipProps {
31
31
  iconF7?: string;
32
32
  iconIos?: string;
33
33
  iconMd?: string;
34
- iconAurora?: string;
35
34
  iconColor?: string;
36
35
  iconSize?: string | number;
37
36
  }
@@ -1,11 +1,11 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
5
4
  import { colorClasses } from '../shared/mixins.js';
6
5
  import { useTooltip } from '../shared/use-tooltip.js';
7
6
  import { useIcon } from '../shared/use-icon.js';
8
7
 
8
+
9
9
  const Chip = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  const {
11
11
  className,
@@ -19,15 +19,12 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
19
19
  outline
20
20
  } = props;
21
21
  const extraAttrs = getExtraAttrs(props);
22
-
23
22
  const onClick = event => {
24
23
  emit(props, 'click', event);
25
24
  };
26
-
27
25
  const onDeleteClick = event => {
28
26
  emit(props, 'delete', event);
29
27
  };
30
-
31
28
  const elRef = useRef(null);
32
29
  useImperativeHandle(ref, () => ({
33
30
  el: elRef.current
@@ -38,27 +35,23 @@ const Chip = /*#__PURE__*/forwardRef((props, ref) => {
38
35
  let mediaEl;
39
36
  let labelEl;
40
37
  let deleteEl;
41
-
42
38
  if (media || iconEl || slots && slots.media) {
43
39
  const mediaClasses = classNames('chip-media', mediaTextColor && `text-color-${mediaTextColor}`, mediaBgColor && `bg-color-${mediaBgColor}`);
44
40
  mediaEl = /*#__PURE__*/React.createElement("div", {
45
41
  className: mediaClasses
46
42
  }, iconEl, media, slots.media);
47
43
  }
48
-
49
44
  if (text || slots && (slots.text || slots.default && slots.default.length)) {
50
45
  labelEl = /*#__PURE__*/React.createElement("div", {
51
46
  className: "chip-label"
52
47
  }, text, slots.text, slots.default);
53
48
  }
54
-
55
49
  if (deleteable) {
56
50
  deleteEl = /*#__PURE__*/React.createElement("a", {
57
51
  className: "chip-delete",
58
52
  onClick: onDeleteClick
59
53
  });
60
54
  }
61
-
62
55
  const classes = classNames(className, 'chip', {
63
56
  'chip-outline': outline
64
57
  }, colorClasses(props));
@@ -1,8 +1,8 @@
1
- function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
-
1
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
3
2
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
3
  import { getExtraAttrs, classNames } from '../shared/utils.js';
5
4
 
5
+
6
6
  const FabBackdrop = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {
8
8
  className,