@ovotech/element-native 3.4.0-canary-2692a93-144 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { PropsWithChildren } from 'react';
|
|
2
|
-
import {
|
|
1
|
+
import { PropsWithChildren, ReactNode } from 'react';
|
|
2
|
+
import { ViewProps } from 'react-native';
|
|
3
3
|
declare const ListWrapper: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
[x: number]: any;
|
|
@@ -237,7 +237,9 @@ declare const ListWrapper: import("react").ForwardRefExoticComponent<Pick<Omit<{
|
|
|
237
237
|
as?: string | import("react").ComponentType<any> | undefined;
|
|
238
238
|
forwardedAs?: string | import("react").ComponentType<any> | undefined;
|
|
239
239
|
}, import("../../hooks").BreakpointNames>, string | number | symbol> & import("react").RefAttributes<import("react-native/types").View>>;
|
|
240
|
-
declare const Li: ({ children, ...rest }:
|
|
240
|
+
declare const Li: ({ children, ...rest }: {
|
|
241
|
+
children: ReactNode | ReactNode[];
|
|
242
|
+
}) => JSX.Element;
|
|
241
243
|
declare const Ul: ({ children, showBullets, ...rest }: PropsWithChildren<ViewProps & {
|
|
242
244
|
showBullets?: boolean | undefined;
|
|
243
245
|
}>) => JSX.Element;
|
|
@@ -25,9 +25,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
25
25
|
exports.ListWrapper = exports.Li = exports.Ol = exports.Ul = void 0;
|
|
26
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
27
27
|
var react_1 = require("react");
|
|
28
|
-
var utils_1 = require("../../utils");
|
|
29
28
|
var Stack_1 = require("../Stack");
|
|
30
29
|
var styled_1 = require("./styled");
|
|
30
|
+
var utils_1 = require("../../utils");
|
|
31
31
|
var Bullet = (0, utils_1.styledComponentWithBreakpoints)(styled_1.StyledBullet);
|
|
32
32
|
var ListWrapper = (0, utils_1.styledComponentWithBreakpoints)(styled_1.StyledList);
|
|
33
33
|
exports.ListWrapper = ListWrapper;
|
|
@@ -59,7 +59,7 @@ var TabList_1 = require("./TabList");
|
|
|
59
59
|
var TabPanel_1 = require("./TabPanel");
|
|
60
60
|
var TabsCard = (0, styled_native_1.default)(Card_1.Card)(function (_a) {
|
|
61
61
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline;
|
|
62
|
-
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
62
|
+
return (0, styled_native_1.css)(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n border: ", " solid\n ", ";\n "], ["\n padding: 0;\n border: ", " solid\n ", ";\n "])), core.borderWidth.small, inline ? semantic.border.differentiated : 'transparent');
|
|
63
63
|
});
|
|
64
64
|
var Tabs = function (_a) {
|
|
65
65
|
var children = _a.children, _b = _a.defaultSelected, defaultSelected = _b === void 0 ? 0 : _b, onSelected = _a.onSelected, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "defaultSelected", "onSelected", "fullWidth", "inline"]);
|
|
@@ -22,9 +22,9 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
22
22
|
};
|
|
23
23
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
24
24
|
import { Children } from 'react';
|
|
25
|
-
import { styledComponentWithBreakpoints } from '../../utils';
|
|
26
25
|
import { Stack } from '../Stack';
|
|
27
26
|
import { StyledBullet, StyledLi, StyledList, StyledOlItem, StyledUlItem, UlBullet, } from './styled';
|
|
27
|
+
import { styledComponentWithBreakpoints } from '../../utils';
|
|
28
28
|
var Bullet = styledComponentWithBreakpoints(StyledBullet);
|
|
29
29
|
var ListWrapper = styledComponentWithBreakpoints(StyledList);
|
|
30
30
|
var ListBulletItem = function (_a) {
|
|
@@ -33,7 +33,7 @@ import { TabList } from './TabList';
|
|
|
33
33
|
import { TabPanel } from './TabPanel';
|
|
34
34
|
var TabsCard = styled(Card)(function (_a) {
|
|
35
35
|
var _b = _a.theme, core = _b.core, semantic = _b.semantic, inline = _a.inline;
|
|
36
|
-
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n
|
|
36
|
+
return css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n padding: 0;\n border: ", " solid\n ", ";\n "], ["\n padding: 0;\n border: ", " solid\n ", ";\n "])), core.borderWidth.small, inline ? semantic.border.differentiated : 'transparent');
|
|
37
37
|
});
|
|
38
38
|
export var Tabs = function (_a) {
|
|
39
39
|
var children = _a.children, _b = _a.defaultSelected, defaultSelected = _b === void 0 ? 0 : _b, onSelected = _a.onSelected, fullWidth = _a.fullWidth, inline = _a.inline, rest = __rest(_a, ["children", "defaultSelected", "onSelected", "fullWidth", "inline"]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ovotech/element-native",
|
|
3
|
-
"version": "3.4.0
|
|
3
|
+
"version": "3.4.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"url": "@ovotech/element"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ovotech/element-core": "^2.1.0
|
|
16
|
+
"@ovotech/element-core": "^2.1.0",
|
|
17
17
|
"deepmerge": "^4.2.2",
|
|
18
18
|
"lodash.groupby": "^4.6.0"
|
|
19
19
|
},
|