@gympass/yoga 7.127.2 → 7.127.4
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/cjs/Accordion/web/Accordion.js +4 -12
- package/cjs/Accordion/web/Small.js +0 -1
- package/cjs/ActionRequirement/web/ActionRequirement.js +1 -8
- package/cjs/AutoComplete/web/AutoComplete.js +11 -25
- package/cjs/Avatar/web/Avatar.js +15 -14
- package/cjs/Avatar/web/AvatarCircle.js +0 -1
- package/cjs/Banner/web/Banner.js +13 -7
- package/cjs/Button/web/Button.js +10 -22
- package/cjs/Button/web/Icon.js +9 -12
- package/cjs/Button/web/Link.js +10 -8
- package/cjs/Button/web/Text.js +1 -5
- package/cjs/Card/web/Card/Card.js +15 -17
- package/cjs/Card/web/PlanCard/Content.js +9 -20
- package/cjs/Card/web/PlanCard/List.js +3 -9
- package/cjs/Card/web/PlanCard/PlanCard.js +1 -6
- package/cjs/Checkbox/web/Checkbox.js +4 -17
- package/cjs/Checkbox/web/Switch.js +13 -9
- package/cjs/Chips/web/Chips.js +6 -14
- package/cjs/Datepicker/web/Calendar.js +4 -14
- package/cjs/Datepicker/web/Datepicker.js +5 -22
- package/cjs/Dialog/web/Dialog.js +3 -12
- package/cjs/Divider/web/Divider.js +6 -8
- package/cjs/Drawer/web/Drawer.js +16 -4
- package/cjs/Dropdown/web/Dropdown.js +20 -11
- package/cjs/Feedback/web/Feedback.js +13 -6
- package/cjs/Grid/web/Col.js +0 -19
- package/cjs/Grid/web/Hide.js +19 -1
- package/cjs/Header/web/Header.js +1 -6
- package/cjs/Header/web/Logo.js +1 -4
- package/cjs/Heading/web/Heading.js +1 -6
- package/cjs/Icon/Icon.js +1 -11
- package/cjs/Input/web/Helper.js +0 -9
- package/cjs/Input/web/Input.js +12 -36
- package/cjs/Input/web/Password.js +2 -10
- package/cjs/Input/web/Phone.js +15 -25
- package/cjs/List/web/List.js +6 -8
- package/cjs/Menu/web/Menu.js +1 -4
- package/cjs/Menu/web/MenuItem.js +2 -10
- package/cjs/Menu/web/MenuList.js +8 -8
- package/cjs/Popover/web/Popover.js +5 -14
- package/cjs/Progress/web/Progress.js +6 -15
- package/cjs/RadioGroup/web/Button/RadioButton.js +4 -7
- package/cjs/RadioGroup/web/Radio/Radio.js +12 -17
- package/cjs/RadioGroup/web/RadioGroup.js +10 -17
- package/cjs/Rating/web/Rating.js +16 -25
- package/cjs/Skeleton/web/Skeleton.js +18 -7
- package/cjs/Slider/web/Marker.js +14 -9
- package/cjs/Slider/web/Slider.js +7 -14
- package/cjs/Slider/web/Tooltip.js +5 -10
- package/cjs/Snackbar/web/Snackbar.js +11 -22
- package/cjs/Spinner/web/Spinner.js +24 -26
- package/cjs/Stepper/web/Dots.js +2 -6
- package/cjs/Stepper/web/Line.js +0 -4
- package/cjs/Stepper/web/Stepper.js +1 -6
- package/cjs/Tag/web/Informative.js +3 -9
- package/cjs/Tag/web/Tag.js +11 -6
- package/cjs/Text/web/Text.js +37 -10
- package/cjs/TextArea/web/TextArea.js +11 -21
- package/cjs/Theme/Provider/Provider.js +1 -4
- package/esm/Accordion/web/Accordion.js +4 -12
- package/esm/Accordion/web/Small.js +0 -1
- package/esm/ActionRequirement/web/ActionRequirement.js +1 -8
- package/esm/AutoComplete/web/AutoComplete.js +11 -25
- package/esm/Avatar/web/Avatar.js +15 -14
- package/esm/Avatar/web/AvatarCircle.js +0 -1
- package/esm/Banner/web/Banner.js +13 -7
- package/esm/Button/web/Button.js +10 -22
- package/esm/Button/web/Icon.js +9 -12
- package/esm/Button/web/Link.js +10 -8
- package/esm/Button/web/Text.js +1 -5
- package/esm/Card/web/Card/Card.js +15 -17
- package/esm/Card/web/PlanCard/Content.js +9 -20
- package/esm/Card/web/PlanCard/List.js +3 -9
- package/esm/Card/web/PlanCard/PlanCard.js +1 -6
- package/esm/Checkbox/web/Checkbox.js +4 -17
- package/esm/Checkbox/web/Switch.js +13 -9
- package/esm/Chips/web/Chips.js +6 -14
- package/esm/Datepicker/web/Calendar.js +4 -14
- package/esm/Datepicker/web/Datepicker.js +5 -22
- package/esm/Dialog/web/Dialog.js +3 -12
- package/esm/Divider/web/Divider.js +6 -8
- package/esm/Drawer/web/Drawer.js +16 -4
- package/esm/Dropdown/web/Dropdown.js +20 -11
- package/esm/Feedback/web/Feedback.js +13 -6
- package/esm/Grid/web/Col.js +0 -19
- package/esm/Grid/web/Hide.js +19 -1
- package/esm/Header/web/Header.js +1 -6
- package/esm/Header/web/Logo.js +1 -4
- package/esm/Heading/web/Heading.js +1 -6
- package/esm/Icon/Icon.js +1 -11
- package/esm/Input/web/Helper.js +0 -9
- package/esm/Input/web/Input.js +12 -36
- package/esm/Input/web/Password.js +2 -10
- package/esm/Input/web/Phone.js +15 -25
- package/esm/List/web/List.js +6 -8
- package/esm/Menu/web/Menu.js +1 -4
- package/esm/Menu/web/MenuItem.js +2 -10
- package/esm/Menu/web/MenuList.js +8 -8
- package/esm/Popover/web/Popover.js +5 -14
- package/esm/Progress/web/Progress.js +6 -15
- package/esm/RadioGroup/web/Button/RadioButton.js +4 -7
- package/esm/RadioGroup/web/Radio/Radio.js +12 -17
- package/esm/RadioGroup/web/RadioGroup.js +10 -17
- package/esm/Rating/web/Rating.js +16 -25
- package/esm/Skeleton/web/Skeleton.js +18 -7
- package/esm/Slider/web/Marker.js +14 -9
- package/esm/Slider/web/Slider.js +7 -14
- package/esm/Slider/web/Tooltip.js +5 -10
- package/esm/Snackbar/web/Snackbar.js +11 -22
- package/esm/Spinner/web/Spinner.js +24 -26
- package/esm/Stepper/web/Dots.js +2 -6
- package/esm/Stepper/web/Line.js +0 -4
- package/esm/Stepper/web/Stepper.js +1 -6
- package/esm/Tag/web/Informative.js +3 -9
- package/esm/Tag/web/Tag.js +11 -6
- package/esm/Text/web/Text.js +37 -10
- package/esm/TextArea/web/TextArea.js +11 -21
- package/esm/Theme/Provider/Provider.js +1 -4
- package/package.json +2 -2
- package/typings/NavigationMenu/web/Item/styles.d.ts +3 -8
- package/typings/index.d.ts +40 -138
|
@@ -89,22 +89,22 @@ const StyledSnackbar = styled.div`
|
|
|
89
89
|
align-items: center;
|
|
90
90
|
justify-content: space-between;
|
|
91
91
|
box-sizing: border-box;
|
|
92
|
-
|
|
92
|
+
|
|
93
93
|
position: fixed;
|
|
94
94
|
bottom: ${snackbar.position.mobile.bottom}px;
|
|
95
95
|
right: ${snackbar.position.mobile.right}px;
|
|
96
96
|
left: ${snackbar.position.mobile.left}px;
|
|
97
|
-
|
|
97
|
+
|
|
98
98
|
min-width: ${snackbar.minWidth.mobile}px;
|
|
99
99
|
max-width: ${snackbar.maxWidth.default}px;
|
|
100
|
-
|
|
100
|
+
|
|
101
101
|
min-height: ${snackbar.height.min}px;
|
|
102
102
|
max-height: ${snackbar.height.max}px;
|
|
103
|
-
|
|
103
|
+
|
|
104
104
|
padding: ${snackbar.padding.default}px;
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
border-radius: ${snackbar.border.radius}px;
|
|
107
|
-
|
|
107
|
+
|
|
108
108
|
box-shadow: ${snackbar.shadow.default};
|
|
109
109
|
|
|
110
110
|
background-color: ${snackbar.variant.color[variant]};
|
|
@@ -134,17 +134,17 @@ const AnimatedSnackbar = styled(StyledSnackbar)`
|
|
|
134
134
|
const Snackbar = React.forwardRef(
|
|
135
135
|
(_a, ref) => {
|
|
136
136
|
var _b = _a, {
|
|
137
|
-
open,
|
|
137
|
+
open = false,
|
|
138
138
|
duration,
|
|
139
|
-
variant,
|
|
140
|
-
hideIcon,
|
|
139
|
+
variant = "success",
|
|
140
|
+
hideIcon = false,
|
|
141
141
|
message,
|
|
142
142
|
actionLabel,
|
|
143
143
|
onAction,
|
|
144
144
|
onClose,
|
|
145
|
-
hideCloseButton,
|
|
145
|
+
hideCloseButton = false,
|
|
146
146
|
ariaLabelClose,
|
|
147
|
-
dataTestId,
|
|
147
|
+
dataTestId = "snackbar",
|
|
148
148
|
theme: {
|
|
149
149
|
yoga: {
|
|
150
150
|
components: { snackbar }
|
|
@@ -247,17 +247,6 @@ Snackbar.propTypes = {
|
|
|
247
247
|
/* A unique identifier for the Snackbar component, used for testing purposes with tools like Jest and Testing Library. */
|
|
248
248
|
dataTestId: string
|
|
249
249
|
};
|
|
250
|
-
Snackbar.defaultProps = {
|
|
251
|
-
open: false,
|
|
252
|
-
duration: void 0,
|
|
253
|
-
actionLabel: void 0,
|
|
254
|
-
hideIcon: false,
|
|
255
|
-
onAction: void 0,
|
|
256
|
-
variant: "success",
|
|
257
|
-
hideCloseButton: false,
|
|
258
|
-
ariaLabelClose: void 0,
|
|
259
|
-
dataTestId: "snackbar"
|
|
260
|
-
};
|
|
261
250
|
var Snackbar_default = memo(withTheme(Snackbar));
|
|
262
251
|
export {
|
|
263
252
|
Snackbar_default as default
|
|
@@ -49,28 +49,30 @@ const StyledSpinner = styled.span`
|
|
|
49
49
|
}
|
|
50
50
|
`}
|
|
51
51
|
`;
|
|
52
|
-
const Spinner = React.forwardRef(
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
52
|
+
const Spinner = React.forwardRef(
|
|
53
|
+
({ size = "medium", color = "primary", theme }, ref) => {
|
|
54
|
+
return /* @__PURE__ */ jsx(
|
|
55
|
+
StyledSpinner,
|
|
56
|
+
{
|
|
57
|
+
color: get(theme.yoga.colors, color, color),
|
|
58
|
+
size: get(theme.yoga.spacing, size, size),
|
|
59
|
+
ref,
|
|
60
|
+
"aria-label": "loading-icon",
|
|
61
|
+
children: /* @__PURE__ */ jsx("span", { className: "spinner", children: /* @__PURE__ */ jsx("svg", { className: "circular", viewBox: "22 22 44 44", children: /* @__PURE__ */ jsx(
|
|
62
|
+
"circle",
|
|
63
|
+
{
|
|
64
|
+
className: "path",
|
|
65
|
+
fill: "none",
|
|
66
|
+
strokeWidth: "3.6",
|
|
67
|
+
cx: "44",
|
|
68
|
+
cy: "44",
|
|
69
|
+
r: "20.2"
|
|
70
|
+
}
|
|
71
|
+
) }) })
|
|
72
|
+
}
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
);
|
|
74
76
|
const commonSizes = [
|
|
75
77
|
"xxxsmall",
|
|
76
78
|
"xxsmall",
|
|
@@ -88,10 +90,6 @@ Spinner.propTypes = {
|
|
|
88
90
|
size: oneOfType([oneOf(commonSizes), string, number]),
|
|
89
91
|
color: string
|
|
90
92
|
};
|
|
91
|
-
Spinner.defaultProps = {
|
|
92
|
-
size: "medium",
|
|
93
|
-
color: "primary"
|
|
94
|
-
};
|
|
95
93
|
var Spinner_default = withTheme(Spinner);
|
|
96
94
|
export {
|
|
97
95
|
Spinner_default as default
|
package/esm/Stepper/web/Dots.js
CHANGED
|
@@ -61,7 +61,8 @@ const Wrapper = styled.div`
|
|
|
61
61
|
display: flex;
|
|
62
62
|
justify-content: space-between;
|
|
63
63
|
`;
|
|
64
|
-
|
|
64
|
+
const emptyArr = [];
|
|
65
|
+
function Dots({ activeStep = 0, labels = emptyArr, secondary = false }) {
|
|
65
66
|
return /* @__PURE__ */ jsx(Wrapper, { children: labels.map((label, index) => /* @__PURE__ */ jsxs(
|
|
66
67
|
DotWrapper,
|
|
67
68
|
{
|
|
@@ -80,11 +81,6 @@ Dots.propTypes = {
|
|
|
80
81
|
labels: arrayOf(string),
|
|
81
82
|
secondary: bool
|
|
82
83
|
};
|
|
83
|
-
Dots.defaultProps = {
|
|
84
|
-
activeStep: 0,
|
|
85
|
-
labels: [],
|
|
86
|
-
secondary: false
|
|
87
|
-
};
|
|
88
84
|
var Dots_default = Dots;
|
|
89
85
|
export {
|
|
90
86
|
Dots_default as default
|
package/esm/Stepper/web/Line.js
CHANGED
|
@@ -59,7 +59,7 @@ const LineWrapper = styled.div`
|
|
|
59
59
|
`}
|
|
60
60
|
`;
|
|
61
61
|
function Stepper(_a) {
|
|
62
|
-
var _b = _a, { children, activeStep, secondary } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
|
|
62
|
+
var _b = _a, { children, activeStep = 0, secondary = false } = _b, rest = __objRest(_b, ["children", "activeStep", "secondary"]);
|
|
63
63
|
return /* @__PURE__ */ jsxs(Root, __spreadProps(__spreadValues({}, rest), { children: [
|
|
64
64
|
/* @__PURE__ */ jsxs(LineWrapper, { children: [
|
|
65
65
|
/* @__PURE__ */ jsx(
|
|
@@ -90,11 +90,6 @@ Stepper.propTypes = {
|
|
|
90
90
|
activeStep: limitChildren,
|
|
91
91
|
secondary: bool
|
|
92
92
|
};
|
|
93
|
-
Stepper.defaultProps = {
|
|
94
|
-
children: void 0,
|
|
95
|
-
activeStep: 0,
|
|
96
|
-
secondary: false
|
|
97
|
-
};
|
|
98
93
|
var Stepper_default = Stepper;
|
|
99
94
|
export {
|
|
100
95
|
Stepper_default as default
|
|
@@ -58,15 +58,15 @@ const TagInformative = (_a) => {
|
|
|
58
58
|
var _b = _a, {
|
|
59
59
|
children,
|
|
60
60
|
icon,
|
|
61
|
-
variant,
|
|
61
|
+
variant = "neutral",
|
|
62
62
|
theme: {
|
|
63
63
|
yoga: {
|
|
64
64
|
colors: { text },
|
|
65
65
|
components: { tag }
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
|
-
small,
|
|
69
|
-
ellipsis
|
|
68
|
+
small = false,
|
|
69
|
+
ellipsis = false
|
|
70
70
|
} = _b, rest = __objRest(_b, [
|
|
71
71
|
"children",
|
|
72
72
|
"icon",
|
|
@@ -100,12 +100,6 @@ TagInformative.propTypes = {
|
|
|
100
100
|
/** After set a max-width can put ellipses for large texts */
|
|
101
101
|
ellipsis: bool
|
|
102
102
|
};
|
|
103
|
-
TagInformative.defaultProps = {
|
|
104
|
-
icon: void 0,
|
|
105
|
-
small: false,
|
|
106
|
-
variant: "neutral",
|
|
107
|
-
ellipsis: false
|
|
108
|
-
};
|
|
109
103
|
TagInformative.displayName = "Tag.Informative";
|
|
110
104
|
var Informative_default = withTheme(TagInformative);
|
|
111
105
|
export {
|
package/esm/Tag/web/Tag.js
CHANGED
|
@@ -94,7 +94,17 @@ const StyledText = styled(Text.Overline)`
|
|
|
94
94
|
`}
|
|
95
95
|
`;
|
|
96
96
|
const Tag = (_a) => {
|
|
97
|
-
var _b = _a, {
|
|
97
|
+
var _b = _a, {
|
|
98
|
+
children,
|
|
99
|
+
variant = "",
|
|
100
|
+
small = false,
|
|
101
|
+
ellipsis = false
|
|
102
|
+
} = _b, rest = __objRest(_b, [
|
|
103
|
+
"children",
|
|
104
|
+
"variant",
|
|
105
|
+
"small",
|
|
106
|
+
"ellipsis"
|
|
107
|
+
]);
|
|
98
108
|
return /* @__PURE__ */ jsx(StyledTag, __spreadProps(__spreadValues({ variant, small }, rest), { children: /* @__PURE__ */ jsx(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children }) }));
|
|
99
109
|
};
|
|
100
110
|
Tag.propTypes = {
|
|
@@ -106,11 +116,6 @@ Tag.propTypes = {
|
|
|
106
116
|
/** After set a max-width can put ellipses for large texts */
|
|
107
117
|
ellipsis: bool
|
|
108
118
|
};
|
|
109
|
-
Tag.defaultProps = {
|
|
110
|
-
variant: "",
|
|
111
|
-
small: false,
|
|
112
|
-
ellipsis: false
|
|
113
|
-
};
|
|
114
119
|
var Tag_default = Tag;
|
|
115
120
|
export {
|
|
116
121
|
StyledTag,
|
package/esm/Text/web/Text.js
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
var __defProp = Object.defineProperty;
|
|
2
|
+
var __defProps = Object.defineProperties;
|
|
3
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
2
4
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
3
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
4
6
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
@@ -14,6 +16,19 @@ var __spreadValues = (a, b) => {
|
|
|
14
16
|
}
|
|
15
17
|
return a;
|
|
16
18
|
};
|
|
19
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
+
var __objRest = (source, exclude) => {
|
|
21
|
+
var target = {};
|
|
22
|
+
for (var prop in source)
|
|
23
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
24
|
+
target[prop] = source[prop];
|
|
25
|
+
if (source != null && __getOwnPropSymbols)
|
|
26
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
27
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
28
|
+
target[prop] = source[prop];
|
|
29
|
+
}
|
|
30
|
+
return target;
|
|
31
|
+
};
|
|
17
32
|
import { jsx } from "react/jsx-runtime";
|
|
18
33
|
import React from "react";
|
|
19
34
|
import styled from "styled-components";
|
|
@@ -74,7 +89,28 @@ Bold.displayName = "Text.Bold";
|
|
|
74
89
|
const Black = styledText("black");
|
|
75
90
|
Black.displayName = "Text.Black";
|
|
76
91
|
const TextRenderer = styledText("p");
|
|
77
|
-
const Text = (
|
|
92
|
+
const Text = (_a) => {
|
|
93
|
+
var _b = _a, {
|
|
94
|
+
inverted = false,
|
|
95
|
+
fontSize = "medium",
|
|
96
|
+
light = false,
|
|
97
|
+
bold = false
|
|
98
|
+
} = _b, rest = __objRest(_b, [
|
|
99
|
+
"inverted",
|
|
100
|
+
"fontSize",
|
|
101
|
+
"light",
|
|
102
|
+
"bold"
|
|
103
|
+
]);
|
|
104
|
+
return /* @__PURE__ */ jsx(
|
|
105
|
+
TextRenderer,
|
|
106
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
107
|
+
inverted,
|
|
108
|
+
fontSize,
|
|
109
|
+
light,
|
|
110
|
+
bold
|
|
111
|
+
})
|
|
112
|
+
);
|
|
113
|
+
};
|
|
78
114
|
Text.displayName = "Text";
|
|
79
115
|
Text.Display1 = Display1;
|
|
80
116
|
Text.Display2 = Display2;
|
|
@@ -142,15 +178,6 @@ Text.propTypes = {
|
|
|
142
178
|
bold: bool,
|
|
143
179
|
fontSize: fontSizes
|
|
144
180
|
};
|
|
145
|
-
Text.defaultProps = {
|
|
146
|
-
inverted: false,
|
|
147
|
-
variant: void 0,
|
|
148
|
-
size: void 0,
|
|
149
|
-
fontSize: "medium",
|
|
150
|
-
numberOfLines: void 0,
|
|
151
|
-
light: false,
|
|
152
|
-
bold: false
|
|
153
|
-
};
|
|
154
181
|
export {
|
|
155
182
|
Black,
|
|
156
183
|
Body1,
|
|
@@ -55,19 +55,22 @@ const StyledField = styled(Field)`
|
|
|
55
55
|
resize: none;
|
|
56
56
|
height: 100%;
|
|
57
57
|
`;
|
|
58
|
+
const noop = () => {
|
|
59
|
+
};
|
|
58
60
|
const TextArea = React.forwardRef(
|
|
59
61
|
(_a, ref) => {
|
|
60
62
|
var _b = _a, {
|
|
61
|
-
disabled,
|
|
63
|
+
disabled = false,
|
|
62
64
|
error,
|
|
63
|
-
full,
|
|
65
|
+
full = false,
|
|
64
66
|
helper,
|
|
65
|
-
label,
|
|
67
|
+
label = "",
|
|
66
68
|
maxLength,
|
|
67
69
|
className,
|
|
68
70
|
style,
|
|
69
|
-
value,
|
|
70
|
-
onChange
|
|
71
|
+
value = "",
|
|
72
|
+
onChange = noop,
|
|
73
|
+
readOnly = false
|
|
71
74
|
} = _b, props = __objRest(_b, [
|
|
72
75
|
"disabled",
|
|
73
76
|
"error",
|
|
@@ -78,7 +81,8 @@ const TextArea = React.forwardRef(
|
|
|
78
81
|
"className",
|
|
79
82
|
"style",
|
|
80
83
|
"value",
|
|
81
|
-
"onChange"
|
|
84
|
+
"onChange",
|
|
85
|
+
"readOnly"
|
|
82
86
|
]);
|
|
83
87
|
const [textAreaValue, setTextAreaValue] = useState(value);
|
|
84
88
|
const [typed, setTyped] = useState(Boolean(value));
|
|
@@ -106,6 +110,7 @@ const TextArea = React.forwardRef(
|
|
|
106
110
|
/* @__PURE__ */ jsx(
|
|
107
111
|
StyledField,
|
|
108
112
|
__spreadProps(__spreadValues({}, props), {
|
|
113
|
+
readOnly,
|
|
109
114
|
disabled,
|
|
110
115
|
full,
|
|
111
116
|
label,
|
|
@@ -160,21 +165,6 @@ TextArea.propTypes = {
|
|
|
160
165
|
value: string,
|
|
161
166
|
onChange: func
|
|
162
167
|
};
|
|
163
|
-
TextArea.defaultProps = {
|
|
164
|
-
className: void 0,
|
|
165
|
-
disabled: false,
|
|
166
|
-
error: void 0,
|
|
167
|
-
full: false,
|
|
168
|
-
helper: void 0,
|
|
169
|
-
label: "",
|
|
170
|
-
maxLength: void 0,
|
|
171
|
-
placeholder: void 0,
|
|
172
|
-
readOnly: false,
|
|
173
|
-
style: void 0,
|
|
174
|
-
value: "",
|
|
175
|
-
onChange: () => {
|
|
176
|
-
}
|
|
177
|
-
};
|
|
178
168
|
var TextArea_default = TextArea;
|
|
179
169
|
export {
|
|
180
170
|
TextArea_default as default
|
|
@@ -60,15 +60,12 @@ const getTheme = ({ locale, theme }) => {
|
|
|
60
60
|
return yogaThemeBuilder(tokens, customTokens);
|
|
61
61
|
};
|
|
62
62
|
const Provider = (_a) => {
|
|
63
|
-
var _b = _a, { locale, theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
|
|
63
|
+
var _b = _a, { locale = "pt-BR", theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
|
|
64
64
|
return /* @__PURE__ */ jsx(ThemeProvider, __spreadValues({ theme: { yoga: getTheme({ locale, theme }) } }, rest));
|
|
65
65
|
};
|
|
66
66
|
Provider.propTypes = {
|
|
67
67
|
locale: PropTypes.string
|
|
68
68
|
};
|
|
69
|
-
Provider.defaultProps = {
|
|
70
|
-
locale: "pt-BR"
|
|
71
|
-
};
|
|
72
69
|
var Provider_default = Provider;
|
|
73
70
|
export {
|
|
74
71
|
Provider_default as default
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gympass/yoga",
|
|
3
|
-
"version": "7.127.
|
|
3
|
+
"version": "7.127.4",
|
|
4
4
|
"description": "Gympass component library",
|
|
5
5
|
"main": "./cjs",
|
|
6
6
|
"types": "./typings/index.d.ts",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"react-native": "0.72.3",
|
|
59
59
|
"styled-components": "^4.4.0"
|
|
60
60
|
},
|
|
61
|
-
"gitHead": "
|
|
61
|
+
"gitHead": "3bb60c107e1ad8945f71e3e0a73dc1622af9dd11",
|
|
62
62
|
"module": "./esm",
|
|
63
63
|
"private": false,
|
|
64
64
|
"react-native": "./cjs/index.native.js"
|
|
@@ -9,9 +9,9 @@ declare const StyledTag: styled_components.StyledComponent<{
|
|
|
9
9
|
({ children, variant, small, ellipsis, ...rest }: {
|
|
10
10
|
[x: string]: any;
|
|
11
11
|
children: any;
|
|
12
|
-
variant
|
|
13
|
-
small
|
|
14
|
-
ellipsis
|
|
12
|
+
variant?: string | undefined;
|
|
13
|
+
small?: boolean | undefined;
|
|
14
|
+
ellipsis?: boolean | undefined;
|
|
15
15
|
}): JSX.Element;
|
|
16
16
|
propTypes: {
|
|
17
17
|
variant: prop_types.Requireable<string>;
|
|
@@ -19,11 +19,6 @@ declare const StyledTag: styled_components.StyledComponent<{
|
|
|
19
19
|
small: prop_types.Requireable<boolean>;
|
|
20
20
|
ellipsis: prop_types.Requireable<boolean>;
|
|
21
21
|
};
|
|
22
|
-
defaultProps: {
|
|
23
|
-
variant: string;
|
|
24
|
-
small: boolean;
|
|
25
|
-
ellipsis: boolean;
|
|
26
|
-
};
|
|
27
22
|
}, any, {}, never>;
|
|
28
23
|
declare const StyledText: styled_components.StyledComponent<string, any, {}, never>;
|
|
29
24
|
declare const StyledItem: styled_components.StyledComponent<string, any, {
|