framework7-react 7.0.0-beta.2 → 7.0.0-beta.20

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 (129) hide show
  1. package/components/accordion-content.js +2 -2
  2. package/components/accordion-item.js +4 -4
  3. package/components/accordion-toggle.js +2 -2
  4. package/components/accordion.js +2 -2
  5. package/components/actions-button.js +3 -3
  6. package/components/actions-group.js +2 -2
  7. package/components/actions-label.js +2 -2
  8. package/components/actions.d.ts +1 -1
  9. package/components/actions.js +6 -6
  10. package/components/app.js +5 -5
  11. package/components/appbar.js +2 -2
  12. package/components/area-chart.js +22 -18
  13. package/components/badge.js +3 -3
  14. package/components/block-footer.js +2 -2
  15. package/components/block-header.js +2 -2
  16. package/components/block-title.js +2 -2
  17. package/components/block.js +3 -3
  18. package/components/breadcrumbs-collapsed.d.ts +16 -0
  19. package/components/breadcrumbs-collapsed.js +32 -0
  20. package/components/breadcrumbs-item.d.ts +17 -0
  21. package/components/breadcrumbs-item.js +33 -0
  22. package/components/breadcrumbs-separator.d.ts +15 -0
  23. package/components/breadcrumbs-separator.js +25 -0
  24. package/components/breadcrumbs.d.ts +15 -0
  25. package/components/breadcrumbs.js +26 -0
  26. package/components/button.js +6 -6
  27. package/components/card-content.js +2 -2
  28. package/components/card-footer.js +2 -2
  29. package/components/card-header.js +2 -2
  30. package/components/card.js +8 -8
  31. package/components/checkbox.js +2 -2
  32. package/components/chip.js +4 -4
  33. package/components/col.js +3 -3
  34. package/components/fab-backdrop.js +1 -1
  35. package/components/fab-button.js +3 -3
  36. package/components/fab-buttons.js +2 -2
  37. package/components/fab.js +3 -3
  38. package/components/gauge.js +1 -1
  39. package/components/icon.js +4 -4
  40. package/components/input.js +28 -12
  41. package/components/link.js +8 -8
  42. package/components/list-button.js +4 -4
  43. package/components/list-group.js +3 -3
  44. package/components/list-index.js +5 -5
  45. package/components/list-input.js +27 -11
  46. package/components/list-item-cell.js +2 -2
  47. package/components/list-item-content.js +3 -3
  48. package/components/list-item-row.js +2 -2
  49. package/components/list-item.js +10 -10
  50. package/components/list.d.ts +1 -0
  51. package/components/list.js +13 -6
  52. package/components/login-screen-title.js +2 -2
  53. package/components/login-screen.js +6 -6
  54. package/components/menu-dropdown-item.js +3 -3
  55. package/components/menu-dropdown.js +2 -2
  56. package/components/menu-item.js +7 -7
  57. package/components/menu.js +2 -2
  58. package/components/message.js +2 -2
  59. package/components/messagebar-attachment.js +2 -2
  60. package/components/messagebar-attachments.js +2 -2
  61. package/components/messagebar-sheet-image.js +2 -2
  62. package/components/messagebar-sheet-item.js +2 -2
  63. package/components/messagebar-sheet.js +2 -2
  64. package/components/messagebar.js +7 -7
  65. package/components/messages-title.js +2 -2
  66. package/components/messages.js +5 -5
  67. package/components/nav-left.js +4 -4
  68. package/components/nav-right.js +2 -2
  69. package/components/nav-title-large.js +2 -2
  70. package/components/nav-title.js +2 -2
  71. package/components/navbar.js +8 -8
  72. package/components/page-content.js +6 -6
  73. package/components/page.js +5 -5
  74. package/components/panel.js +10 -6
  75. package/components/photo-browser.js +4 -4
  76. package/components/pie-chart.js +8 -7
  77. package/components/popover.js +6 -6
  78. package/components/popup.js +6 -6
  79. package/components/preloader.js +3 -3
  80. package/components/progressbar.js +3 -3
  81. package/components/radio.js +2 -2
  82. package/components/range.d.ts +1 -1
  83. package/components/range.js +5 -5
  84. package/components/routable-modals.js +8 -7
  85. package/components/row.js +3 -3
  86. package/components/searchbar.js +4 -4
  87. package/components/segmented.js +2 -2
  88. package/components/sheet.js +6 -6
  89. package/components/skeleton-avatar.d.ts +1 -0
  90. package/components/skeleton-avatar.js +1 -0
  91. package/components/skeleton-block.d.ts +1 -0
  92. package/components/skeleton-block.js +1 -0
  93. package/components/skeleton-image.d.ts +1 -0
  94. package/components/skeleton-image.js +1 -0
  95. package/components/skeleton-text.d.ts +1 -0
  96. package/components/skeleton-text.js +1 -0
  97. package/components/stepper.js +5 -5
  98. package/components/subnavbar.js +2 -2
  99. package/components/swipeout-actions.js +2 -2
  100. package/components/swipeout-button.js +2 -2
  101. package/components/tab.js +7 -7
  102. package/components/tabs.js +3 -3
  103. package/components/text-editor.js +5 -5
  104. package/components/toggle.js +18 -7
  105. package/components/toolbar.js +6 -6
  106. package/components/treeview-item.js +5 -5
  107. package/components/treeview.js +2 -2
  108. package/components/view.d.ts +1 -0
  109. package/components/view.js +28 -23
  110. package/components/views.js +2 -2
  111. package/framework7-react.d.ts +5 -1
  112. package/framework7-react.js +107 -103
  113. package/package.json +2 -1
  114. package/shared/components-router.js +30 -22
  115. package/shared/f7.js +10 -2
  116. package/shared/get-router-initial-component.js +1 -1
  117. package/shared/mixins.js +3 -3
  118. package/shared/modal-state-classes.js +5 -4
  119. package/shared/plugin.js +7 -3
  120. package/shared/router-open-in.js +106 -0
  121. package/shared/use-icon.js +7 -3
  122. package/shared/use-route-props.js +4 -3
  123. package/shared/use-smart-select.js +2 -2
  124. package/shared/use-store.js +6 -6
  125. package/shared/use-tab.js +3 -3
  126. package/shared/use-theme.js +1 -1
  127. package/shared/use-tooltip.js +2 -2
  128. package/shared/utils.js +32 -6
  129. package/shared/watch-prop.js +1 -1
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const AccordionContent = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,10 +1,10 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7, f7ready } from '../shared/f7';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7, f7ready } from '../shared/f7.js';
8
8
 
9
9
  const AccordionItem = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const AccordionToggle = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useImperativeHandle, useRef } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const Accordion = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,9 +1,9 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { f7 } from '../shared/f7';
4
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { f7 } from '../shared/f7.js';
7
7
 
8
8
  const ComponentName = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const ActionsGroup = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const ActionsLabel = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -25,7 +25,7 @@ interface ActionsProps {
25
25
  onActionsClose ?: (instance?: Actions.Actions) => void;
26
26
  onActionsClosed ?: (instance?: Actions.Actions) => void;
27
27
  containerEl ?: string | object;
28
- ref?: React.MutableRefObject<{el: HTMLElement | null; f7Actions: () => Actions}>;
28
+ ref?: React.MutableRefObject<{el: HTMLElement | null; f7Actions: () => Actions.Actions}>;
29
29
  color?: string;
30
30
  colorTheme?: string;
31
31
  textColor?: string;
@@ -1,12 +1,12 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import { f7, f7ready } from '../shared/f7';
8
- import { watchProp } from '../shared/watch-prop';
9
- import { modalStateClasses } from '../shared/modal-state-classes';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import { f7, f7ready } from '../shared/f7.js';
8
+ import { watchProp } from '../shared/watch-prop.js';
9
+ import { modalStateClasses } from '../shared/modal-state-classes.js';
10
10
 
11
11
 
12
12
  const Actions = /*#__PURE__*/forwardRef((props, ref) => {
package/components/app.js CHANGED
@@ -1,11 +1,11 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import { classNames, getExtraAttrs } from '../shared/utils';
6
- import { colorClasses } from '../shared/mixins';
7
- import RoutableModals from './routable-modals';
8
- import { f7init, f7 } from '../shared/f7';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
6
+ import { colorClasses } from '../shared/mixins.js';
7
+ import RoutableModals from './routable-modals.js';
8
+ import { f7init, f7 } from '../shared/f7.js';
9
9
 
10
10
 
11
11
 
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, getSlots } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, getSlots } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const Appbar = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useState, useEffect } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { f7 } from '../shared/f7';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { f7 } from '../shared/f7.js';
6
6
 
7
7
  const AreaChart = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -48,9 +48,10 @@ const AreaChart = /*#__PURE__*/forwardRef((props, ref) => {
48
48
 
49
49
  const getSummValues = () => {
50
50
  const summValues = [];
51
- datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(({
52
- values
53
- }) => {
51
+ datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(_ref => {
52
+ let {
53
+ values
54
+ } = _ref;
54
55
  values.forEach((value, valueIndex) => {
55
56
  if (!summValues[valueIndex]) summValues[valueIndex] = 0;
56
57
  summValues[valueIndex] += value;
@@ -70,9 +71,10 @@ const AreaChart = /*#__PURE__*/forwardRef((props, ref) => {
70
71
  let maxValue = 0;
71
72
 
72
73
  if (lineChart) {
73
- datasets.forEach(({
74
- values
75
- }) => {
74
+ datasets.forEach(_ref2 => {
75
+ let {
76
+ values
77
+ } = _ref2;
76
78
  const datasetMaxValue = Math.max(...values);
77
79
  if (datasetMaxValue > maxValue) maxValue = datasetMaxValue;
78
80
  });
@@ -80,11 +82,12 @@ const AreaChart = /*#__PURE__*/forwardRef((props, ref) => {
80
82
  maxValue = Math.max(...getSummValues());
81
83
  }
82
84
 
83
- datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(({
84
- label,
85
- values,
86
- color
87
- }) => {
85
+ datasets.filter((dataset, index) => !hiddenDatasets.includes(index)).forEach(_ref3 => {
86
+ let {
87
+ label,
88
+ values,
89
+ color
90
+ } = _ref3;
88
91
  const points = values.map((originalValue, valueIndex) => {
89
92
  lastValues[valueIndex] += originalValue;
90
93
  const value = lineChart ? originalValue : lastValues[valueIndex];
@@ -183,11 +186,12 @@ const AreaChart = /*#__PURE__*/forwardRef((props, ref) => {
183
186
 
184
187
  const datasetsText = currentValues.length > 0 ? `
185
188
  <ul class="area-chart-tooltip-list">
186
- ${currentValues.map(({
187
- label,
188
- color,
189
- value
190
- }) => {
189
+ ${currentValues.map(_ref4 => {
190
+ let {
191
+ label,
192
+ color,
193
+ value
194
+ } = _ref4;
191
195
  const valueText = formatTooltipDataset ? formatTooltipDataset(label, value, color) : `${label}: ${value}`;
192
196
  return `
193
197
  <li><span style="background-color: ${color};"></span>${valueText}</li>
@@ -1,9 +1,9 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
7
 
8
8
  /* dts-instance
9
9
  f7Tooltip: Tooltip.Tooltip
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const BlockFooter = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const BlockHeader = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const BlockTitle = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,9 +1,9 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTab } from '../shared/use-tab';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTab } from '../shared/use-tab.js';
7
7
 
8
8
  const Block = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -0,0 +1,16 @@
1
+
2
+ import * as React from 'react';
3
+
4
+
5
+ interface BreadcrumbsCollapsedProps {
6
+ slot?: string;
7
+ id?: string | number;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ onClick ?: (event?: any) => void;
11
+ ref?: React.MutableRefObject<{el: HTMLElement | null}>;
12
+ }
13
+ declare const BreadcrumbsCollapsed: React.FunctionComponent<BreadcrumbsCollapsedProps>;
14
+
15
+ export default BreadcrumbsCollapsed;
16
+
@@ -0,0 +1,32 @@
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
+
3
+ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+
6
+ const BreadcrumbsCollapsed = /*#__PURE__*/forwardRef((props, ref) => {
7
+ const {
8
+ className,
9
+ id,
10
+ style,
11
+ children
12
+ } = props;
13
+ const extraAttrs = getExtraAttrs(props);
14
+ const elRef = useRef(null);
15
+ useImperativeHandle(ref, () => ({
16
+ el: elRef.current
17
+ }));
18
+
19
+ const onClick = e => {
20
+ emit(props, 'click', e);
21
+ };
22
+
23
+ return /*#__PURE__*/React.createElement("div", _extends({
24
+ className: classNames('breadcrumbs-collapsed', className),
25
+ ref: elRef,
26
+ id: id,
27
+ style: style,
28
+ onClick: onClick
29
+ }, extraAttrs), /*#__PURE__*/React.createElement("span", null), children);
30
+ });
31
+ BreadcrumbsCollapsed.displayName = 'f7-breadcrumbs-collapsed';
32
+ export default BreadcrumbsCollapsed;
@@ -0,0 +1,17 @@
1
+
2
+ import * as React from 'react';
3
+
4
+
5
+ interface BreadcrumbsItemProps {
6
+ slot?: string;
7
+ id?: string | number;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ onClick ?: (event?: any) => void;
11
+ active?: boolean;
12
+ ref?: React.MutableRefObject<{el: HTMLElement | null}>;
13
+ }
14
+ declare const BreadcrumbsItem: React.FunctionComponent<BreadcrumbsItemProps>;
15
+
16
+ export default BreadcrumbsItem;
17
+
@@ -0,0 +1,33 @@
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
+
3
+ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+
6
+ const BreadcrumbsItem = /*#__PURE__*/forwardRef((props, ref) => {
7
+ const {
8
+ className,
9
+ id,
10
+ style,
11
+ active,
12
+ children
13
+ } = props;
14
+ const extraAttrs = getExtraAttrs(props);
15
+ const elRef = useRef(null);
16
+ useImperativeHandle(ref, () => ({
17
+ el: elRef.current
18
+ }));
19
+
20
+ const onClick = e => {
21
+ emit(props, 'click', e);
22
+ };
23
+
24
+ return /*#__PURE__*/React.createElement("div", _extends({
25
+ className: classNames('breadcrumbs-item', className, active && 'breadcrumbs-item-active'),
26
+ ref: elRef,
27
+ id: id,
28
+ style: style,
29
+ onClick: onClick
30
+ }, extraAttrs), children);
31
+ });
32
+ BreadcrumbsItem.displayName = 'f7-breadcrumbs-item';
33
+ export default BreadcrumbsItem;
@@ -0,0 +1,15 @@
1
+
2
+ import * as React from 'react';
3
+
4
+
5
+ interface BreadcrumbsSeparatorProps {
6
+ slot?: string;
7
+ id?: string | number;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ ref?: React.MutableRefObject<{el: HTMLElement | null}>;
11
+ }
12
+ declare const BreadcrumbsSeparator: React.FunctionComponent<BreadcrumbsSeparatorProps>;
13
+
14
+ export default BreadcrumbsSeparator;
15
+
@@ -0,0 +1,25 @@
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
+
3
+ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+
6
+ const BreadcrumbsSeparator = /*#__PURE__*/forwardRef((props, ref) => {
7
+ const {
8
+ className,
9
+ id,
10
+ style
11
+ } = props;
12
+ const extraAttrs = getExtraAttrs(props);
13
+ const elRef = useRef(null);
14
+ useImperativeHandle(ref, () => ({
15
+ el: elRef.current
16
+ }));
17
+ return /*#__PURE__*/React.createElement("div", _extends({
18
+ className: classNames('breadcrumbs-separator', className),
19
+ ref: elRef,
20
+ id: id,
21
+ style: style
22
+ }, extraAttrs));
23
+ });
24
+ BreadcrumbsSeparator.displayName = 'f7-breadcrumbs-separator';
25
+ export default BreadcrumbsSeparator;
@@ -0,0 +1,15 @@
1
+
2
+ import * as React from 'react';
3
+
4
+
5
+ interface BreadcrumbsProps {
6
+ slot?: string;
7
+ id?: string | number;
8
+ className?: string;
9
+ style?: React.CSSProperties;
10
+ ref?: React.MutableRefObject<{el: HTMLElement | null}>;
11
+ }
12
+ declare const Breadcrumbs: React.FunctionComponent<BreadcrumbsProps>;
13
+
14
+ export default Breadcrumbs;
15
+
@@ -0,0 +1,26 @@
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
+
3
+ import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+
6
+ const Breadcrumbs = /*#__PURE__*/forwardRef((props, ref) => {
7
+ const {
8
+ className,
9
+ id,
10
+ style,
11
+ children
12
+ } = props;
13
+ const extraAttrs = getExtraAttrs(props);
14
+ const elRef = useRef(null);
15
+ useImperativeHandle(ref, () => ({
16
+ el: elRef.current
17
+ }));
18
+ return /*#__PURE__*/React.createElement("div", _extends({
19
+ className: classNames('breadcrumbs', className),
20
+ ref: elRef,
21
+ id: id,
22
+ style: style
23
+ }, extraAttrs), children);
24
+ });
25
+ Breadcrumbs.displayName = 'f7-breadcrumbs';
26
+ export default Breadcrumbs;
@@ -1,12 +1,12 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, extend, isStringProp, emit } from '../shared/utils';
5
- import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
7
- import { useIcon } from '../shared/use-icon';
8
- import { useRouteProps } from '../shared/use-route-props';
9
- import Preloader from './preloader';
4
+ import { classNames, getExtraAttrs, extend, isStringProp, emit } from '../shared/utils.js';
5
+ import { colorClasses, actionsAttrs, actionsClasses, routerAttrs, routerClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
+ import { useIcon } from '../shared/use-icon.js';
8
+ import { useRouteProps } from '../shared/use-route-props.js';
9
+ import Preloader from './preloader.js';
10
10
 
11
11
  const Button = /*#__PURE__*/forwardRef((props, ref) => {
12
12
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const CardContent = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const CardFooter = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const CardHeader = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,14 +1,14 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect';
5
- import CardHeader from './card-header';
6
- import CardContent from './card-content';
7
- import CardFooter from './card-footer';
8
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
9
- import { colorClasses } from '../shared/mixins';
10
- import { f7, f7ready } from '../shared/f7';
11
- import { watchProp } from '../shared/watch-prop';
4
+ import { useIsomorphicLayoutEffect } from '../shared/use-isomorphic-layout-effect.js';
5
+ import CardHeader from './card-header.js';
6
+ import CardContent from './card-content.js';
7
+ import CardFooter from './card-footer.js';
8
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
9
+ import { colorClasses } from '../shared/mixins.js';
10
+ import { f7, f7ready } from '../shared/f7.js';
11
+ import { watchProp } from '../shared/watch-prop.js';
12
12
 
13
13
  const Card = /*#__PURE__*/forwardRef((props, ref) => {
14
14
  const {
@@ -1,8 +1,8 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
6
 
7
7
  const Checkbox = /*#__PURE__*/forwardRef((props, ref) => {
8
8
  const {
@@ -1,10 +1,10 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { useTooltip } from '../shared/use-tooltip';
7
- import { useIcon } from '../shared/use-icon';
4
+ import { classNames, getExtraAttrs, getSlots, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { useTooltip } from '../shared/use-tooltip.js';
7
+ import { useIcon } from '../shared/use-icon.js';
8
8
 
9
9
  const Chip = /*#__PURE__*/forwardRef((props, ref) => {
10
10
  const {
package/components/col.js CHANGED
@@ -1,9 +1,9 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle, useEffect } from 'react';
4
- import { classNames, getExtraAttrs, emit } from '../shared/utils';
5
- import { colorClasses } from '../shared/mixins';
6
- import { f7ready, f7 } from '../shared/f7';
4
+ import { classNames, getExtraAttrs, emit } from '../shared/utils.js';
5
+ import { colorClasses } from '../shared/mixins.js';
6
+ import { f7ready, f7 } from '../shared/f7.js';
7
7
 
8
8
  const Col = /*#__PURE__*/forwardRef((props, ref) => {
9
9
  const {
@@ -1,7 +1,7 @@
1
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
2
 
3
3
  import React, { forwardRef, useRef, useImperativeHandle } from 'react';
4
- import { getExtraAttrs, classNames } from '../shared/utils';
4
+ import { getExtraAttrs, classNames } from '../shared/utils.js';
5
5
 
6
6
  const FabBackdrop = /*#__PURE__*/forwardRef((props, ref) => {
7
7
  const {