@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
package/cjs/Tag/web/Tag.js
CHANGED
|
@@ -127,7 +127,17 @@ const StyledText = (0, import_styled_components.default)(import_Text.default.Ove
|
|
|
127
127
|
`}
|
|
128
128
|
`;
|
|
129
129
|
const Tag = (_a) => {
|
|
130
|
-
var _b = _a, {
|
|
130
|
+
var _b = _a, {
|
|
131
|
+
children,
|
|
132
|
+
variant = "",
|
|
133
|
+
small = false,
|
|
134
|
+
ellipsis = false
|
|
135
|
+
} = _b, rest = __objRest(_b, [
|
|
136
|
+
"children",
|
|
137
|
+
"variant",
|
|
138
|
+
"small",
|
|
139
|
+
"ellipsis"
|
|
140
|
+
]);
|
|
131
141
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledTag, __spreadProps(__spreadValues({ variant, small }, rest), { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledText, { numberOfLines: ellipsis ? 1 : void 0, children }) }));
|
|
132
142
|
};
|
|
133
143
|
Tag.propTypes = {
|
|
@@ -139,11 +149,6 @@ Tag.propTypes = {
|
|
|
139
149
|
/** After set a max-width can put ellipses for large texts */
|
|
140
150
|
ellipsis: import_prop_types.bool
|
|
141
151
|
};
|
|
142
|
-
Tag.defaultProps = {
|
|
143
|
-
variant: "",
|
|
144
|
-
small: false,
|
|
145
|
-
ellipsis: false
|
|
146
|
-
};
|
|
147
152
|
var Tag_default = Tag;
|
|
148
153
|
// Annotate the CommonJS export names for ESM import in node:
|
|
149
154
|
0 && (module.exports = {
|
package/cjs/Text/web/Text.js
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __create = Object.create;
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
|
+
var __defProps = Object.defineProperties;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
5
7
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
8
|
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
9
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -19,6 +21,19 @@ var __spreadValues = (a, b) => {
|
|
|
19
21
|
}
|
|
20
22
|
return a;
|
|
21
23
|
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
22
37
|
var __export = (target, all) => {
|
|
23
38
|
for (var name in all)
|
|
24
39
|
__defProp(target, name, { get: all[name], enumerable: true });
|
|
@@ -129,7 +144,28 @@ Bold.displayName = "Text.Bold";
|
|
|
129
144
|
const Black = styledText("black");
|
|
130
145
|
Black.displayName = "Text.Black";
|
|
131
146
|
const TextRenderer = styledText("p");
|
|
132
|
-
const Text = (
|
|
147
|
+
const Text = (_a) => {
|
|
148
|
+
var _b = _a, {
|
|
149
|
+
inverted = false,
|
|
150
|
+
fontSize = "medium",
|
|
151
|
+
light = false,
|
|
152
|
+
bold = false
|
|
153
|
+
} = _b, rest = __objRest(_b, [
|
|
154
|
+
"inverted",
|
|
155
|
+
"fontSize",
|
|
156
|
+
"light",
|
|
157
|
+
"bold"
|
|
158
|
+
]);
|
|
159
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
160
|
+
TextRenderer,
|
|
161
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
162
|
+
inverted,
|
|
163
|
+
fontSize,
|
|
164
|
+
light,
|
|
165
|
+
bold
|
|
166
|
+
})
|
|
167
|
+
);
|
|
168
|
+
};
|
|
133
169
|
Text.displayName = "Text";
|
|
134
170
|
Text.Display1 = Display1;
|
|
135
171
|
Text.Display2 = Display2;
|
|
@@ -197,15 +233,6 @@ Text.propTypes = {
|
|
|
197
233
|
bold: import_prop_types.bool,
|
|
198
234
|
fontSize: fontSizes
|
|
199
235
|
};
|
|
200
|
-
Text.defaultProps = {
|
|
201
|
-
inverted: false,
|
|
202
|
-
variant: void 0,
|
|
203
|
-
size: void 0,
|
|
204
|
-
fontSize: "medium",
|
|
205
|
-
numberOfLines: void 0,
|
|
206
|
-
light: false,
|
|
207
|
-
bold: false
|
|
208
|
-
};
|
|
209
236
|
// Annotate the CommonJS export names for ESM import in node:
|
|
210
237
|
0 && (module.exports = {
|
|
211
238
|
Black,
|
|
@@ -86,19 +86,22 @@ const StyledField = (0, import_styled_components.default)(import_Field.default)`
|
|
|
86
86
|
resize: none;
|
|
87
87
|
height: 100%;
|
|
88
88
|
`;
|
|
89
|
+
const noop = () => {
|
|
90
|
+
};
|
|
89
91
|
const TextArea = import_react.default.forwardRef(
|
|
90
92
|
(_a, ref) => {
|
|
91
93
|
var _b = _a, {
|
|
92
|
-
disabled,
|
|
94
|
+
disabled = false,
|
|
93
95
|
error,
|
|
94
|
-
full,
|
|
96
|
+
full = false,
|
|
95
97
|
helper,
|
|
96
|
-
label,
|
|
98
|
+
label = "",
|
|
97
99
|
maxLength,
|
|
98
100
|
className,
|
|
99
101
|
style,
|
|
100
|
-
value,
|
|
101
|
-
onChange
|
|
102
|
+
value = "",
|
|
103
|
+
onChange = noop,
|
|
104
|
+
readOnly = false
|
|
102
105
|
} = _b, props = __objRest(_b, [
|
|
103
106
|
"disabled",
|
|
104
107
|
"error",
|
|
@@ -109,7 +112,8 @@ const TextArea = import_react.default.forwardRef(
|
|
|
109
112
|
"className",
|
|
110
113
|
"style",
|
|
111
114
|
"value",
|
|
112
|
-
"onChange"
|
|
115
|
+
"onChange",
|
|
116
|
+
"readOnly"
|
|
113
117
|
]);
|
|
114
118
|
const [textAreaValue, setTextAreaValue] = (0, import_react.useState)(value);
|
|
115
119
|
const [typed, setTyped] = (0, import_react.useState)(Boolean(value));
|
|
@@ -137,6 +141,7 @@ const TextArea = import_react.default.forwardRef(
|
|
|
137
141
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
138
142
|
StyledField,
|
|
139
143
|
__spreadProps(__spreadValues({}, props), {
|
|
144
|
+
readOnly,
|
|
140
145
|
disabled,
|
|
141
146
|
full,
|
|
142
147
|
label,
|
|
@@ -191,19 +196,4 @@ TextArea.propTypes = {
|
|
|
191
196
|
value: import_prop_types.string,
|
|
192
197
|
onChange: import_prop_types.func
|
|
193
198
|
};
|
|
194
|
-
TextArea.defaultProps = {
|
|
195
|
-
className: void 0,
|
|
196
|
-
disabled: false,
|
|
197
|
-
error: void 0,
|
|
198
|
-
full: false,
|
|
199
|
-
helper: void 0,
|
|
200
|
-
label: "",
|
|
201
|
-
maxLength: void 0,
|
|
202
|
-
placeholder: void 0,
|
|
203
|
-
readOnly: false,
|
|
204
|
-
style: void 0,
|
|
205
|
-
value: "",
|
|
206
|
-
onChange: () => {
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
199
|
var TextArea_default = TextArea;
|
|
@@ -91,13 +91,10 @@ const getTheme = ({ locale, theme }) => {
|
|
|
91
91
|
return (0, import_theme.default)(tokens, customTokens);
|
|
92
92
|
};
|
|
93
93
|
const Provider = (_a) => {
|
|
94
|
-
var _b = _a, { locale, theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
|
|
94
|
+
var _b = _a, { locale = "pt-BR", theme } = _b, rest = __objRest(_b, ["locale", "theme"]);
|
|
95
95
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styled_components.ThemeProvider, __spreadValues({ theme: { yoga: getTheme({ locale, theme }) } }, rest));
|
|
96
96
|
};
|
|
97
97
|
Provider.propTypes = {
|
|
98
98
|
locale: import_prop_types.default.string
|
|
99
99
|
};
|
|
100
|
-
Provider.defaultProps = {
|
|
101
|
-
locale: "pt-BR"
|
|
102
|
-
};
|
|
103
100
|
var Provider_default = Provider;
|
|
@@ -219,10 +219,10 @@ const Accordion = (_a) => {
|
|
|
219
219
|
title,
|
|
220
220
|
subtitle,
|
|
221
221
|
children,
|
|
222
|
-
disabled,
|
|
223
|
-
expanded,
|
|
224
|
-
small,
|
|
225
|
-
hasHorizontalPadding
|
|
222
|
+
disabled = false,
|
|
223
|
+
expanded = false,
|
|
224
|
+
small = false,
|
|
225
|
+
hasHorizontalPadding = true
|
|
226
226
|
} = _b, props = __objRest(_b, [
|
|
227
227
|
"title",
|
|
228
228
|
"subtitle",
|
|
@@ -282,14 +282,6 @@ Accordion.propTypes = {
|
|
|
282
282
|
small: bool,
|
|
283
283
|
hasHorizontalPadding: bool
|
|
284
284
|
};
|
|
285
|
-
Accordion.defaultProps = {
|
|
286
|
-
title: void 0,
|
|
287
|
-
subtitle: void 0,
|
|
288
|
-
disabled: false,
|
|
289
|
-
expanded: false,
|
|
290
|
-
small: false,
|
|
291
|
-
hasHorizontalPadding: true
|
|
292
|
-
};
|
|
293
285
|
var Accordion_default = Accordion;
|
|
294
286
|
export {
|
|
295
287
|
Accordion_default as default
|
|
@@ -24,7 +24,6 @@ function AccordionSmall(props) {
|
|
|
24
24
|
return /* @__PURE__ */ jsx(Accordion, __spreadProps(__spreadValues({}, props), { small: true }));
|
|
25
25
|
}
|
|
26
26
|
AccordionSmall.propTypes = Accordion.propTypes;
|
|
27
|
-
AccordionSmall.defaultProps = Accordion.defaultProps;
|
|
28
27
|
var Small_default = AccordionSmall;
|
|
29
28
|
export {
|
|
30
29
|
Small_default as default
|
|
@@ -72,7 +72,7 @@ function ActionRequirement(props) {
|
|
|
72
72
|
checkable,
|
|
73
73
|
illustration,
|
|
74
74
|
list,
|
|
75
|
-
titleAsTextDisplay
|
|
75
|
+
titleAsTextDisplay = false
|
|
76
76
|
} = props;
|
|
77
77
|
let primaryButton;
|
|
78
78
|
let secondaryButton;
|
|
@@ -108,13 +108,6 @@ ActionRequirement.propTypes = {
|
|
|
108
108
|
list: oneOfType([arrayOf(node), node]),
|
|
109
109
|
titleAsTextDisplay: bool
|
|
110
110
|
};
|
|
111
|
-
ActionRequirement.defaultProps = {
|
|
112
|
-
children: void 0,
|
|
113
|
-
checkable: void 0,
|
|
114
|
-
illustration: void 0,
|
|
115
|
-
list: void 0,
|
|
116
|
-
titleAsTextDisplay: false
|
|
117
|
-
};
|
|
118
111
|
var ActionRequirement_default = ActionRequirement;
|
|
119
112
|
export {
|
|
120
113
|
ActionRequirement_default as default
|
|
@@ -162,21 +162,24 @@ const Match = styled.mark`
|
|
|
162
162
|
font-weight: ${autocomplete.list.font.weight.matched};
|
|
163
163
|
`}
|
|
164
164
|
`;
|
|
165
|
+
const noop = () => {
|
|
166
|
+
};
|
|
167
|
+
const emptyArr = [];
|
|
165
168
|
const AutoComplete = React.forwardRef(
|
|
166
169
|
(_a, ref) => {
|
|
167
170
|
var _b = _a, {
|
|
168
171
|
className,
|
|
169
172
|
style,
|
|
170
|
-
full,
|
|
171
|
-
options,
|
|
172
|
-
onChange,
|
|
173
|
-
onClean,
|
|
174
|
-
onSelect,
|
|
173
|
+
full = false,
|
|
174
|
+
options = emptyArr,
|
|
175
|
+
onChange = noop,
|
|
176
|
+
onClean = noop,
|
|
177
|
+
onSelect = noop,
|
|
175
178
|
value,
|
|
176
179
|
error,
|
|
177
|
-
openSuggestionsAriaLabel,
|
|
178
|
-
closeSuggestionsAriaLabel,
|
|
179
|
-
shouldFilterOptions
|
|
180
|
+
openSuggestionsAriaLabel = "Open suggestions",
|
|
181
|
+
closeSuggestionsAriaLabel = "Close suggestions",
|
|
182
|
+
shouldFilterOptions = true
|
|
180
183
|
} = _b, props = __objRest(_b, [
|
|
181
184
|
"className",
|
|
182
185
|
"style",
|
|
@@ -328,23 +331,6 @@ AutoComplete.propTypes = {
|
|
|
328
331
|
/** flag to enable options filtering */
|
|
329
332
|
shouldFilterOptions: bool
|
|
330
333
|
};
|
|
331
|
-
AutoComplete.defaultProps = {
|
|
332
|
-
className: void 0,
|
|
333
|
-
full: false,
|
|
334
|
-
options: [],
|
|
335
|
-
style: void 0,
|
|
336
|
-
onSelect: () => {
|
|
337
|
-
},
|
|
338
|
-
onChange: () => {
|
|
339
|
-
},
|
|
340
|
-
onClean: () => {
|
|
341
|
-
},
|
|
342
|
-
value: void 0,
|
|
343
|
-
error: void 0,
|
|
344
|
-
openSuggestionsAriaLabel: "Open suggestions",
|
|
345
|
-
closeSuggestionsAriaLabel: "Close suggestions",
|
|
346
|
-
shouldFilterOptions: true
|
|
347
|
-
};
|
|
348
334
|
var AutoComplete_default = AutoComplete;
|
|
349
335
|
export {
|
|
350
336
|
AutoComplete_default as default
|
package/esm/Avatar/web/Avatar.js
CHANGED
|
@@ -50,7 +50,21 @@ const Content = ({ icon, alt, src, fill, content, stroke }) => {
|
|
|
50
50
|
};
|
|
51
51
|
const Avatar = forwardRef(
|
|
52
52
|
(_a, ref) => {
|
|
53
|
-
var _b = _a, {
|
|
53
|
+
var _b = _a, {
|
|
54
|
+
src,
|
|
55
|
+
alt,
|
|
56
|
+
fill = "white",
|
|
57
|
+
stroke,
|
|
58
|
+
icon = BuildingFilled,
|
|
59
|
+
children
|
|
60
|
+
} = _b, otherProps = __objRest(_b, [
|
|
61
|
+
"src",
|
|
62
|
+
"alt",
|
|
63
|
+
"fill",
|
|
64
|
+
"stroke",
|
|
65
|
+
"icon",
|
|
66
|
+
"children"
|
|
67
|
+
]);
|
|
54
68
|
return /* @__PURE__ */ jsx(
|
|
55
69
|
Box,
|
|
56
70
|
__spreadProps(__spreadValues({
|
|
@@ -86,12 +100,6 @@ Content.propTypes = __spreadValues({
|
|
|
86
100
|
fill: string,
|
|
87
101
|
alt: string
|
|
88
102
|
}, Box.propTypes);
|
|
89
|
-
Content.defaultProps = {
|
|
90
|
-
src: void 0,
|
|
91
|
-
fill: "white",
|
|
92
|
-
alt: void 0,
|
|
93
|
-
icon: void 0
|
|
94
|
-
};
|
|
95
103
|
Avatar.propTypes = __spreadValues({
|
|
96
104
|
src: string,
|
|
97
105
|
/** Required if src is true */
|
|
@@ -121,13 +129,6 @@ Avatar.propTypes = __spreadValues({
|
|
|
121
129
|
fill: string,
|
|
122
130
|
stroke: string
|
|
123
131
|
}, Box.propTypes);
|
|
124
|
-
Avatar.defaultProps = __spreadValues({
|
|
125
|
-
src: void 0,
|
|
126
|
-
alt: void 0,
|
|
127
|
-
icon: void 0,
|
|
128
|
-
fill: "white",
|
|
129
|
-
stroke: void 0
|
|
130
|
-
}, Box.defaultProps);
|
|
131
132
|
Avatar.displayName = "Avatar";
|
|
132
133
|
var Avatar_default = Avatar;
|
|
133
134
|
export {
|
package/esm/Banner/web/Banner.js
CHANGED
|
@@ -92,7 +92,19 @@ BannerActionButton.propTypes = {
|
|
|
92
92
|
}).isRequired
|
|
93
93
|
};
|
|
94
94
|
const Banner = forwardRef((props, ref) => {
|
|
95
|
-
const _a = props, {
|
|
95
|
+
const _a = props, {
|
|
96
|
+
icon,
|
|
97
|
+
variant = "informative",
|
|
98
|
+
message,
|
|
99
|
+
primaryButton,
|
|
100
|
+
secondaryButton
|
|
101
|
+
} = _a, rest = __objRest(_a, [
|
|
102
|
+
"icon",
|
|
103
|
+
"variant",
|
|
104
|
+
"message",
|
|
105
|
+
"primaryButton",
|
|
106
|
+
"secondaryButton"
|
|
107
|
+
]);
|
|
96
108
|
return /* @__PURE__ */ jsxs(StyledBanner, __spreadProps(__spreadValues({ ref, variant }, rest), { children: [
|
|
97
109
|
/* @__PURE__ */ jsxs(Box, { display: "flex", flex: 1, alignItems: "center", children: [
|
|
98
110
|
icon && /* @__PURE__ */ jsx(
|
|
@@ -151,12 +163,6 @@ Banner.propTypes = {
|
|
|
151
163
|
);
|
|
152
164
|
}
|
|
153
165
|
};
|
|
154
|
-
Banner.defaultProps = {
|
|
155
|
-
icon: void 0,
|
|
156
|
-
variant: "informative",
|
|
157
|
-
primaryButton: void 0,
|
|
158
|
-
secondaryButton: void 0
|
|
159
|
-
};
|
|
160
166
|
var Banner_default = Banner;
|
|
161
167
|
export {
|
|
162
168
|
Banner_default as default
|
package/esm/Button/web/Button.js
CHANGED
|
@@ -41,18 +41,20 @@ const SpinnerContainer = styled.div`
|
|
|
41
41
|
left: 50%;
|
|
42
42
|
transform: translate(-50%, -50%);
|
|
43
43
|
`;
|
|
44
|
+
const noop = () => {
|
|
45
|
+
};
|
|
44
46
|
const Button = forwardRef(
|
|
45
47
|
(_a, ref) => {
|
|
46
48
|
var _b = _a, {
|
|
47
|
-
children,
|
|
48
|
-
onClick,
|
|
49
|
-
full,
|
|
50
|
-
disabled,
|
|
51
|
-
inverted,
|
|
52
|
-
small,
|
|
53
|
-
secondary,
|
|
49
|
+
children = "Button",
|
|
50
|
+
onClick = noop,
|
|
51
|
+
full = false,
|
|
52
|
+
disabled = void 0,
|
|
53
|
+
inverted = false,
|
|
54
|
+
small = false,
|
|
55
|
+
secondary = false,
|
|
54
56
|
icon: Icon,
|
|
55
|
-
isLoading
|
|
57
|
+
isLoading = false
|
|
56
58
|
} = _b, props = __objRest(_b, [
|
|
57
59
|
"children",
|
|
58
60
|
"onClick",
|
|
@@ -104,20 +106,6 @@ Button.propTypes = {
|
|
|
104
106
|
icon: oneOfType([node, func]),
|
|
105
107
|
href: string
|
|
106
108
|
};
|
|
107
|
-
Button.defaultProps = {
|
|
108
|
-
ariaLabel: void 0,
|
|
109
|
-
children: "Button",
|
|
110
|
-
disabled: void 0,
|
|
111
|
-
full: false,
|
|
112
|
-
inverted: false,
|
|
113
|
-
isLoading: false,
|
|
114
|
-
onClick: () => {
|
|
115
|
-
},
|
|
116
|
-
small: false,
|
|
117
|
-
secondary: false,
|
|
118
|
-
icon: void 0,
|
|
119
|
-
href: void 0
|
|
120
|
-
};
|
|
121
109
|
Button.displayName = "Button";
|
|
122
110
|
var Button_default = Button;
|
|
123
111
|
export {
|
package/esm/Button/web/Icon.js
CHANGED
|
@@ -67,23 +67,28 @@ const ButtonIcon = forwardRef(
|
|
|
67
67
|
components: { button }
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
|
-
small,
|
|
70
|
+
small = false,
|
|
71
71
|
disabled,
|
|
72
|
-
isLoading
|
|
72
|
+
isLoading = false,
|
|
73
|
+
secondary = false,
|
|
74
|
+
inverted = false
|
|
73
75
|
} = _b, props = __objRest(_b, [
|
|
74
76
|
"icon",
|
|
75
77
|
"theme",
|
|
76
78
|
"small",
|
|
77
79
|
"disabled",
|
|
78
|
-
"isLoading"
|
|
80
|
+
"isLoading",
|
|
81
|
+
"secondary",
|
|
82
|
+
"inverted"
|
|
79
83
|
]);
|
|
80
84
|
return /* @__PURE__ */ jsx(
|
|
81
85
|
IconStyled,
|
|
82
86
|
__spreadProps(__spreadValues({}, props), {
|
|
87
|
+
secondary,
|
|
88
|
+
inverted,
|
|
83
89
|
ref,
|
|
84
90
|
small,
|
|
85
91
|
disabled: disabled || isLoading,
|
|
86
|
-
"aria-disabled": disabled,
|
|
87
92
|
isLoading,
|
|
88
93
|
children: isLoading ? /* @__PURE__ */ jsx(Spinner, { color: "deep", size: small ? "small" : "medium" }) : /* @__PURE__ */ jsx(
|
|
89
94
|
Icon,
|
|
@@ -105,14 +110,6 @@ ButtonIcon.propTypes = {
|
|
|
105
110
|
icon: oneOfType([node, func]),
|
|
106
111
|
isLoading: bool
|
|
107
112
|
};
|
|
108
|
-
ButtonIcon.defaultProps = {
|
|
109
|
-
small: false,
|
|
110
|
-
disabled: void 0,
|
|
111
|
-
secondary: false,
|
|
112
|
-
inverted: false,
|
|
113
|
-
icon: void 0,
|
|
114
|
-
isLoading: false
|
|
115
|
-
};
|
|
116
113
|
ButtonIcon.displayName = "Button.Icon";
|
|
117
114
|
var Icon_default = withTheme(ButtonIcon);
|
|
118
115
|
export {
|
package/esm/Button/web/Link.js
CHANGED
|
@@ -115,12 +115,20 @@ const Link = styled(Button)`
|
|
|
115
115
|
}}
|
|
116
116
|
`;
|
|
117
117
|
const ButtonLink = forwardRef((_a, ref) => {
|
|
118
|
-
var rest = __objRest(
|
|
118
|
+
var _b = _a, { secondary = false } = _b, rest = __objRest(_b, ["secondary"]);
|
|
119
119
|
const props = Object.fromEntries(
|
|
120
120
|
Object.entries(rest).filter(([key]) => key !== "isLoading")
|
|
121
121
|
);
|
|
122
122
|
const { disabled } = props;
|
|
123
|
-
return /* @__PURE__ */ jsx(
|
|
123
|
+
return /* @__PURE__ */ jsx(
|
|
124
|
+
Link,
|
|
125
|
+
__spreadProps(__spreadValues({}, props), {
|
|
126
|
+
secondary,
|
|
127
|
+
disabled,
|
|
128
|
+
"aria-disabled": disabled,
|
|
129
|
+
ref
|
|
130
|
+
})
|
|
131
|
+
);
|
|
124
132
|
});
|
|
125
133
|
ButtonLink.propTypes = {
|
|
126
134
|
disabled: bool,
|
|
@@ -129,12 +137,6 @@ ButtonLink.propTypes = {
|
|
|
129
137
|
/** an Icon from yoga-icons package */
|
|
130
138
|
icon: oneOfType([node, func])
|
|
131
139
|
};
|
|
132
|
-
ButtonLink.defaultProps = {
|
|
133
|
-
disabled: void 0,
|
|
134
|
-
secondary: false,
|
|
135
|
-
href: void 0,
|
|
136
|
-
icon: void 0
|
|
137
|
-
};
|
|
138
140
|
ButtonLink.displayName = "Button.Link";
|
|
139
141
|
var Link_default = ButtonLink;
|
|
140
142
|
export {
|
package/esm/Button/web/Text.js
CHANGED
|
@@ -137,7 +137,7 @@ const ButtonText = forwardRef((_a, ref) => {
|
|
|
137
137
|
const props = Object.fromEntries(
|
|
138
138
|
Object.entries(rest).filter(([key]) => key !== "isLoading")
|
|
139
139
|
);
|
|
140
|
-
const { secondary, inverted } = props;
|
|
140
|
+
const { secondary = false, inverted = false } = props;
|
|
141
141
|
return /* @__PURE__ */ jsx(
|
|
142
142
|
StyledButton,
|
|
143
143
|
__spreadProps(__spreadValues({}, props), {
|
|
@@ -151,10 +151,6 @@ ButtonText.propTypes = {
|
|
|
151
151
|
inverted: bool,
|
|
152
152
|
secondary: bool
|
|
153
153
|
};
|
|
154
|
-
ButtonText.defaultProps = {
|
|
155
|
-
inverted: false,
|
|
156
|
-
secondary: false
|
|
157
|
-
};
|
|
158
154
|
ButtonText.displayName = "Button.Text";
|
|
159
155
|
var Text_default = ButtonText;
|
|
160
156
|
export {
|
|
@@ -47,10 +47,10 @@ const CardStyled = styled.section`
|
|
|
47
47
|
}
|
|
48
48
|
}) => `
|
|
49
49
|
${hasShadow ? `
|
|
50
|
-
padding:
|
|
51
|
-
${card.padding.top}px
|
|
50
|
+
padding:
|
|
51
|
+
${card.padding.top}px
|
|
52
52
|
${card.padding.right}px
|
|
53
|
-
${card.padding.bottom}px
|
|
53
|
+
${card.padding.bottom}px
|
|
54
54
|
${card.padding.left}px;
|
|
55
55
|
box-shadow: ${card.elevation};
|
|
56
56
|
` : `
|
|
@@ -79,12 +79,12 @@ const Ribbon = styled(Text.Tiny)`
|
|
|
79
79
|
margin-left: -${card.padding.left}px;
|
|
80
80
|
margin-bottom: ${card.padding.bottom}px;
|
|
81
81
|
|
|
82
|
-
padding:
|
|
82
|
+
padding:
|
|
83
83
|
${spacing.xxxsmall}px
|
|
84
84
|
${spacing.xsmall}px
|
|
85
85
|
${spacing.xxxsmall}px
|
|
86
86
|
${spacing.small}px;
|
|
87
|
-
|
|
87
|
+
|
|
88
88
|
border-top-right-radius: ${card.ribbon.radius}px;
|
|
89
89
|
border-bottom-right-radius: ${card.ribbon.radius}px;
|
|
90
90
|
|
|
@@ -93,13 +93,16 @@ const Ribbon = styled(Text.Tiny)`
|
|
|
93
93
|
color: ${variant ? white : text.primary};
|
|
94
94
|
`}
|
|
95
95
|
`;
|
|
96
|
-
const
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
children
|
|
101
|
-
|
|
102
|
-
|
|
96
|
+
const emptyObj = {};
|
|
97
|
+
const Card = React.forwardRef(
|
|
98
|
+
(_a, ref) => {
|
|
99
|
+
var _b = _a, { ribbon = emptyObj, children = null, hasShadow = true } = _b, rest = __objRest(_b, ["ribbon", "children", "hasShadow"]);
|
|
100
|
+
return /* @__PURE__ */ jsxs(CardStyled, __spreadProps(__spreadValues({ ref, hasShadow }, rest), { children: [
|
|
101
|
+
Object.keys(ribbon).length > 0 && /* @__PURE__ */ jsx(Ribbon, { variant: ribbon.variant, as: "span", children: ribbon.text }),
|
|
102
|
+
children
|
|
103
|
+
] }));
|
|
104
|
+
}
|
|
105
|
+
);
|
|
103
106
|
Card.propTypes = {
|
|
104
107
|
/** text: the content inside the Card Ribbon.
|
|
105
108
|
* variant: style the card following the theme (primary, secondary, vibin, hope,
|
|
@@ -132,11 +135,6 @@ Card.propTypes = {
|
|
|
132
135
|
/** applies a shadow to the card (enabled by default) */
|
|
133
136
|
hasShadow: bool
|
|
134
137
|
};
|
|
135
|
-
Card.defaultProps = {
|
|
136
|
-
ribbon: {},
|
|
137
|
-
children: null,
|
|
138
|
-
hasShadow: true
|
|
139
|
-
};
|
|
140
138
|
Card.displayName = "Card";
|
|
141
139
|
var Card_default = Card;
|
|
142
140
|
export {
|
|
@@ -99,15 +99,15 @@ const EnhancePrice = styled(Text.Medium)`
|
|
|
99
99
|
const PlanCardContent = (_a) => {
|
|
100
100
|
var _b = _a, {
|
|
101
101
|
title,
|
|
102
|
-
badgeColor,
|
|
103
|
-
subtitle,
|
|
104
|
-
description,
|
|
105
|
-
currency,
|
|
106
|
-
suffix,
|
|
107
|
-
price,
|
|
108
|
-
period,
|
|
109
|
-
extra,
|
|
110
|
-
children
|
|
102
|
+
badgeColor = null,
|
|
103
|
+
subtitle = null,
|
|
104
|
+
description = null,
|
|
105
|
+
currency = null,
|
|
106
|
+
suffix = null,
|
|
107
|
+
price = null,
|
|
108
|
+
period = null,
|
|
109
|
+
extra = null,
|
|
110
|
+
children = null
|
|
111
111
|
} = _b, rest = __objRest(_b, [
|
|
112
112
|
"title",
|
|
113
113
|
"badgeColor",
|
|
@@ -152,17 +152,6 @@ PlanCardContent.propTypes = {
|
|
|
152
152
|
/** color of the badge attached to the title */
|
|
153
153
|
badgeColor: string
|
|
154
154
|
};
|
|
155
|
-
PlanCardContent.defaultProps = {
|
|
156
|
-
children: null,
|
|
157
|
-
description: null,
|
|
158
|
-
subtitle: null,
|
|
159
|
-
currency: null,
|
|
160
|
-
suffix: null,
|
|
161
|
-
price: null,
|
|
162
|
-
period: null,
|
|
163
|
-
extra: null,
|
|
164
|
-
badgeColor: null
|
|
165
|
-
};
|
|
166
155
|
PlanCardContent.displayName = "PlanCard.Content";
|
|
167
156
|
var Content_default = PlanCardContent;
|
|
168
157
|
export {
|