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.
- package/components/accordion-content.js +2 -2
- package/components/accordion-item.js +4 -4
- package/components/accordion-toggle.js +2 -2
- package/components/accordion.js +2 -2
- package/components/actions-button.js +3 -3
- package/components/actions-group.js +2 -2
- package/components/actions-label.js +2 -2
- package/components/actions.d.ts +1 -1
- package/components/actions.js +6 -6
- package/components/app.js +5 -5
- package/components/appbar.js +2 -2
- package/components/area-chart.js +22 -18
- package/components/badge.js +3 -3
- package/components/block-footer.js +2 -2
- package/components/block-header.js +2 -2
- package/components/block-title.js +2 -2
- package/components/block.js +3 -3
- package/components/breadcrumbs-collapsed.d.ts +16 -0
- package/components/breadcrumbs-collapsed.js +32 -0
- package/components/breadcrumbs-item.d.ts +17 -0
- package/components/breadcrumbs-item.js +33 -0
- package/components/breadcrumbs-separator.d.ts +15 -0
- package/components/breadcrumbs-separator.js +25 -0
- package/components/breadcrumbs.d.ts +15 -0
- package/components/breadcrumbs.js +26 -0
- package/components/button.js +6 -6
- package/components/card-content.js +2 -2
- package/components/card-footer.js +2 -2
- package/components/card-header.js +2 -2
- package/components/card.js +8 -8
- package/components/checkbox.js +2 -2
- package/components/chip.js +4 -4
- package/components/col.js +3 -3
- package/components/fab-backdrop.js +1 -1
- package/components/fab-button.js +3 -3
- package/components/fab-buttons.js +2 -2
- package/components/fab.js +3 -3
- package/components/gauge.js +1 -1
- package/components/icon.js +4 -4
- package/components/input.js +28 -12
- package/components/link.js +8 -8
- package/components/list-button.js +4 -4
- package/components/list-group.js +3 -3
- package/components/list-index.js +5 -5
- package/components/list-input.js +27 -11
- package/components/list-item-cell.js +2 -2
- package/components/list-item-content.js +3 -3
- package/components/list-item-row.js +2 -2
- package/components/list-item.js +10 -10
- package/components/list.d.ts +1 -0
- package/components/list.js +13 -6
- package/components/login-screen-title.js +2 -2
- package/components/login-screen.js +6 -6
- package/components/menu-dropdown-item.js +3 -3
- package/components/menu-dropdown.js +2 -2
- package/components/menu-item.js +7 -7
- package/components/menu.js +2 -2
- package/components/message.js +2 -2
- package/components/messagebar-attachment.js +2 -2
- package/components/messagebar-attachments.js +2 -2
- package/components/messagebar-sheet-image.js +2 -2
- package/components/messagebar-sheet-item.js +2 -2
- package/components/messagebar-sheet.js +2 -2
- package/components/messagebar.js +7 -7
- package/components/messages-title.js +2 -2
- package/components/messages.js +5 -5
- package/components/nav-left.js +4 -4
- package/components/nav-right.js +2 -2
- package/components/nav-title-large.js +2 -2
- package/components/nav-title.js +2 -2
- package/components/navbar.js +8 -8
- package/components/page-content.js +6 -6
- package/components/page.js +5 -5
- package/components/panel.js +10 -6
- package/components/photo-browser.js +4 -4
- package/components/pie-chart.js +8 -7
- package/components/popover.js +6 -6
- package/components/popup.js +6 -6
- package/components/preloader.js +3 -3
- package/components/progressbar.js +3 -3
- package/components/radio.js +2 -2
- package/components/range.d.ts +1 -1
- package/components/range.js +5 -5
- package/components/routable-modals.js +8 -7
- package/components/row.js +3 -3
- package/components/searchbar.js +4 -4
- package/components/segmented.js +2 -2
- package/components/sheet.js +6 -6
- package/components/skeleton-avatar.d.ts +1 -0
- package/components/skeleton-avatar.js +1 -0
- package/components/skeleton-block.d.ts +1 -0
- package/components/skeleton-block.js +1 -0
- package/components/skeleton-image.d.ts +1 -0
- package/components/skeleton-image.js +1 -0
- package/components/skeleton-text.d.ts +1 -0
- package/components/skeleton-text.js +1 -0
- package/components/stepper.js +5 -5
- package/components/subnavbar.js +2 -2
- package/components/swipeout-actions.js +2 -2
- package/components/swipeout-button.js +2 -2
- package/components/tab.js +7 -7
- package/components/tabs.js +3 -3
- package/components/text-editor.js +5 -5
- package/components/toggle.js +18 -7
- package/components/toolbar.js +6 -6
- package/components/treeview-item.js +5 -5
- package/components/treeview.js +2 -2
- package/components/view.d.ts +1 -0
- package/components/view.js +28 -23
- package/components/views.js +2 -2
- package/framework7-react.d.ts +5 -1
- package/framework7-react.js +107 -103
- package/package.json +2 -1
- package/shared/components-router.js +30 -22
- package/shared/f7.js +10 -2
- package/shared/get-router-initial-component.js +1 -1
- package/shared/mixins.js +3 -3
- package/shared/modal-state-classes.js +5 -4
- package/shared/plugin.js +7 -3
- package/shared/router-open-in.js +106 -0
- package/shared/use-icon.js +7 -3
- package/shared/use-route-props.js +4 -3
- package/shared/use-smart-select.js +2 -2
- package/shared/use-store.js +6 -6
- package/shared/use-tab.js +3 -3
- package/shared/use-theme.js +1 -1
- package/shared/use-tooltip.js +2 -2
- package/shared/utils.js +32 -6
- 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 {
|
package/components/accordion.js
CHANGED
|
@@ -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 {
|
package/components/actions.d.ts
CHANGED
|
@@ -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;
|
package/components/actions.js
CHANGED
|
@@ -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
|
|
package/components/appbar.js
CHANGED
|
@@ -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 {
|
package/components/area-chart.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
85
|
-
|
|
86
|
-
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
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>
|
package/components/badge.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 } 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 {
|
package/components/block.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 } 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;
|
package/components/button.js
CHANGED
|
@@ -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 {
|
package/components/card.js
CHANGED
|
@@ -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 {
|
package/components/checkbox.js
CHANGED
|
@@ -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 {
|
package/components/chip.js
CHANGED
|
@@ -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 {
|