@sproutsocial/racine 25.9.3 → 25.10.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.
- package/CHANGELOG.md +11 -0
- package/commonjs/Breadcrumb/Breadcrumb.js +7 -0
- package/commonjs/Listbox/Listbox.js +11 -0
- package/commonjs/Menu/Menu.js +49 -0
- package/commonjs/ToggleHint/ToggleHint.js +6 -3
- package/dist/dynamicProps.json +1 -1
- package/dist/dynamicPropsRaw.json +1 -1
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -0
- package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/Listbox/Listbox.d.ts +9 -0
- package/dist/types/Listbox/Listbox.d.ts.map +1 -1
- package/dist/types/Menu/Menu.d.ts +27 -0
- package/dist/types/Menu/Menu.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/ToggleHint/ToggleHint.d.ts +3 -0
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
- package/lib/Breadcrumb/Breadcrumb.js +7 -0
- package/lib/Listbox/Listbox.js +11 -0
- package/lib/Menu/Menu.js +49 -0
- package/lib/ToggleHint/ToggleHint.js +4 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 25.10.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- fdad8df: **Deprecations**
|
|
8
|
+
|
|
9
|
+
- Menu is now deprecated. Menu you will be removed in a future 2025 release in favor of the seeds-react-menu ecosystem. It's a good time to create a migration plan.
|
|
10
|
+
- Listbox is now deprecated. Listbox you will be removed in a future 2025 release in favor of the seeds-react-menu ecosystem. It's a good time to create a migration plan.
|
|
11
|
+
- Breadcrumb is now deprecated. Breadcrumb will be removed in a future 2025 release in favor of seeds-react-breadcrumb which utilizes the new seeds-react-menu ecosystem.
|
|
12
|
+
- ToggleHint is now deprecated. ToggleHint is no longer supported and will be removed in a future 2025 release.
|
|
13
|
+
|
|
3
14
|
## 25.9.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -23,6 +23,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
23
23
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
24
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
25
25
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated BreadcrumbItem is deprecated. BreadcrumbItem will be removed in 2025 in favor of seeds-react-breadcrumb which utilizes the new Menu ecosystem. Please create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-breadcrumb | seeds-react-breadcrumb}.
|
|
28
|
+
*/
|
|
26
29
|
var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
27
30
|
var children = _ref.children,
|
|
28
31
|
href = _ref.href,
|
|
@@ -35,6 +38,10 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
|
35
38
|
}))
|
|
36
39
|
});
|
|
37
40
|
};
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Breadcrumb is deprecated. This iteration of Breadcrumb will be removed in 2025 in favor of seeds-react-breadcrumb which utilizes the new Menu ecosystem. Please create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-breadcrumb | seeds-react-breadcrumb}.
|
|
44
|
+
*/
|
|
38
45
|
var Breadcrumb = function Breadcrumb(_ref2) {
|
|
39
46
|
var ariaLabel = _ref2.ariaLabel,
|
|
40
47
|
overflow = _ref2.overflow,
|
|
@@ -24,6 +24,9 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
24
24
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
25
25
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
26
26
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
27
|
+
/**
|
|
28
|
+
* @deprecated Listbox is deprecated. Listbox will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
29
|
+
*/
|
|
27
30
|
var Listbox = exports.Listbox = function Listbox(_ref) {
|
|
28
31
|
var _ref$role = _ref.role,
|
|
29
32
|
role = _ref$role === void 0 ? _constants.MENU_ROLES.LISTBOX : _ref$role,
|
|
@@ -90,6 +93,10 @@ var ListboxButtonContainer = exports.ListboxButtonContainer = (0, _styledCompone
|
|
|
90
93
|
return props.theme.colors.icon.error;
|
|
91
94
|
});
|
|
92
95
|
});
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @deprecated ListboxButton is deprecated. ListboxButton will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
99
|
+
*/
|
|
93
100
|
var ListboxButton = exports.ListboxButton = function ListboxButton(_ref2) {
|
|
94
101
|
var children = _ref2.children,
|
|
95
102
|
restProps = _objectWithoutProperties(_ref2, _excluded2);
|
|
@@ -114,4 +121,8 @@ Listbox.Switch = _Menu.default.Switch;
|
|
|
114
121
|
Listbox.Group = _Menu.default.Group;
|
|
115
122
|
Listbox.Divider = _Menu.default.Divider;
|
|
116
123
|
Listbox.FilterInput = _Menu.default.FilterInput;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Listbox is deprecated. Listbox will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
127
|
+
*/
|
|
117
128
|
var _default = exports.default = Listbox;
|
package/commonjs/Menu/Menu.js
CHANGED
|
@@ -68,6 +68,10 @@ function isValueSelected(menuValue, value) {
|
|
|
68
68
|
}
|
|
69
69
|
return false;
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @deprecated MenuItem is deprecated. MenuItem will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
74
|
+
*/
|
|
71
75
|
var MenuItem = exports.MenuItem = function MenuItem(_ref) {
|
|
72
76
|
var idProp = _ref.id,
|
|
73
77
|
indexProp = _ref.index,
|
|
@@ -244,16 +248,28 @@ var MenuItem = exports.MenuItem = function MenuItem(_ref) {
|
|
|
244
248
|
})
|
|
245
249
|
}));
|
|
246
250
|
};
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* @deprecated MenuCheckbox is deprecated. MenuCheckbox will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
254
|
+
*/
|
|
247
255
|
var MenuCheckbox = exports.MenuCheckbox = function MenuCheckbox(props) {
|
|
248
256
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuItem, _objectSpread({
|
|
249
257
|
role: _utils.MENU_ITEM_ROLES.CHECKBOX
|
|
250
258
|
}, props));
|
|
251
259
|
};
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* @deprecated MenuRadio is deprecated. MenuRadio will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
263
|
+
*/
|
|
252
264
|
var MenuRadio = exports.MenuRadio = function MenuRadio(props) {
|
|
253
265
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(MenuItem, _objectSpread({
|
|
254
266
|
role: _utils.MENU_ITEM_ROLES.RADIO
|
|
255
267
|
}, props));
|
|
256
268
|
};
|
|
269
|
+
|
|
270
|
+
/**
|
|
271
|
+
* @deprecated MenuSwitch is deprecated. MenuSwitch will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
272
|
+
*/
|
|
257
273
|
var MenuSwitch = exports.MenuSwitch = function MenuSwitch(props) {
|
|
258
274
|
var _useContext3 = (0, _react.useContext)(_utils.MenuContext),
|
|
259
275
|
menuValue = _useContext3.value;
|
|
@@ -297,6 +313,7 @@ var MenuSwitch = exports.MenuSwitch = function MenuSwitch(props) {
|
|
|
297
313
|
}, labelProps), {}, {
|
|
298
314
|
// This prop is passed after labelProps to disallow overrides.
|
|
299
315
|
// Fall back to the label prop if children is falsy.
|
|
316
|
+
// eslint-disable-next-line react/no-children-prop
|
|
300
317
|
children: children || label
|
|
301
318
|
}))
|
|
302
319
|
}));
|
|
@@ -317,6 +334,10 @@ var MenuTitle = (0, _styledComponents.default)(_seedsReactText.default).withConf
|
|
|
317
334
|
var theme = _ref5.theme;
|
|
318
335
|
return theme.colors.text.headline;
|
|
319
336
|
});
|
|
337
|
+
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated MenuGroup is deprecated. MenuGroup will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
340
|
+
*/
|
|
320
341
|
var _StyledMenuTitle = (0, _styledComponents.default)(MenuTitle).withConfig({
|
|
321
342
|
displayName: "Menu___StyledMenuTitle",
|
|
322
343
|
componentId: "sc-1jmjosz-1"
|
|
@@ -352,6 +373,10 @@ var MenuGroup = exports.MenuGroup = function MenuGroup(_ref6) {
|
|
|
352
373
|
}))
|
|
353
374
|
});
|
|
354
375
|
};
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* @deprecated MenuDivider is deprecated. MenuDivider will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
379
|
+
*/
|
|
355
380
|
var MenuDivider = exports.MenuDivider = function MenuDivider(props) {
|
|
356
381
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactBox.default, _objectSpread({
|
|
357
382
|
as: "li",
|
|
@@ -360,6 +385,10 @@ var MenuDivider = exports.MenuDivider = function MenuDivider(props) {
|
|
|
360
385
|
borderColor: "container.border.base"
|
|
361
386
|
}, props));
|
|
362
387
|
};
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* @deprecated MenuFilterInput is deprecated. MenuFilterInput will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
391
|
+
*/
|
|
363
392
|
var MenuFilterInput = function MenuFilterInput(_ref7) {
|
|
364
393
|
var _ref7$type = _ref7.type,
|
|
365
394
|
type = _ref7$type === void 0 ? "search" : _ref7$type,
|
|
@@ -396,6 +425,10 @@ var MenuFilterInput = function MenuFilterInput(_ref7) {
|
|
|
396
425
|
onBlur: handleOnBlur
|
|
397
426
|
}));
|
|
398
427
|
};
|
|
428
|
+
|
|
429
|
+
/**
|
|
430
|
+
* @deprecated MenuItems are deprecated. MenuItems will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
431
|
+
*/
|
|
399
432
|
var MenuItems = function MenuItems(_ref8) {
|
|
400
433
|
var children = _ref8.children,
|
|
401
434
|
role = _ref8.role,
|
|
@@ -422,6 +455,10 @@ var MenuItems = function MenuItems(_ref8) {
|
|
|
422
455
|
children: children
|
|
423
456
|
}));
|
|
424
457
|
};
|
|
458
|
+
|
|
459
|
+
/**
|
|
460
|
+
* @deprecated MenuFooter is deprecated. MenuFooter will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
461
|
+
*/
|
|
425
462
|
var MenuFooter = function MenuFooter(_ref9) {
|
|
426
463
|
var children = _ref9.children;
|
|
427
464
|
var _useContext5 = (0, _react.useContext)(_utils.MenuContext),
|
|
@@ -442,6 +479,10 @@ var MenuFooter = function MenuFooter(_ref9) {
|
|
|
442
479
|
children: children
|
|
443
480
|
});
|
|
444
481
|
};
|
|
482
|
+
|
|
483
|
+
/**
|
|
484
|
+
* @deprecated Menu is deprecated. Menu will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
485
|
+
*/
|
|
445
486
|
var Menu = exports.Menu = function Menu(_ref10) {
|
|
446
487
|
var _ref10$role = _ref10.role,
|
|
447
488
|
role = _ref10$role === void 0 ? _utils.MENU_ROLES.MENU : _ref10$role,
|
|
@@ -518,6 +559,10 @@ var CustomPopoutContent = (0, _styledComponents.default)(_seedsReactPopout.defau
|
|
|
518
559
|
displayName: "Menu__CustomPopoutContent",
|
|
519
560
|
componentId: "sc-1jmjosz-2"
|
|
520
561
|
})(["padding:0;margin-left:0;margin-right:0;"]);
|
|
562
|
+
|
|
563
|
+
/**
|
|
564
|
+
* @deprecated MenuButton is deprecated. MenuButton will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
565
|
+
*/
|
|
521
566
|
var MenuButton = exports.MenuButton = function MenuButton(_ref11) {
|
|
522
567
|
var content = _ref11.content,
|
|
523
568
|
popoutProps = _ref11.popoutProps,
|
|
@@ -583,4 +628,8 @@ var MenuButton = exports.MenuButton = function MenuButton(_ref11) {
|
|
|
583
628
|
}))
|
|
584
629
|
});
|
|
585
630
|
};
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* @deprecated Menu is deprecated. Menu will be removed in 2025 in favor of seeds-react-menu ecosystem. Create a plan to migrate to {@link https://github.com/sproutsocial/seeds/tree/dev/seeds-react/seeds-react-menu/src | seeds-react-menu}.
|
|
634
|
+
*/
|
|
586
635
|
var _default = exports.default = Menu;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var React = _interopRequireWildcard(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _seedsReactIcon = _interopRequireDefault(require("@sproutsocial/seeds-react-icon"));
|
|
9
9
|
var _styles = _interopRequireWildcard(require("./styles"));
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
var _excluded = ["icon", "isOpen", "openString", "closeString", "qa", "className", "color"];
|
|
@@ -33,6 +33,9 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
33
33
|
/**
|
|
34
34
|
* Icon (either chevron or plus/minus) indicating whether an element is open or closed.
|
|
35
35
|
*/
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated ToggleHint is deprecated. ToggleHint is no longer supported and will be removed in 2025.
|
|
38
|
+
*/
|
|
36
39
|
var ToggleHint = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
37
40
|
_inherits(ToggleHint, _React$Component);
|
|
38
41
|
function ToggleHint() {
|
|
@@ -44,12 +47,12 @@ var ToggleHint = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
44
47
|
_this = _callSuper(this, ToggleHint, [].concat(args));
|
|
45
48
|
_defineProperty(_assertThisInitialized(_this), "getIcon", function () {
|
|
46
49
|
if (_this.props.icon === "chevron") {
|
|
47
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
50
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactIcon.default, {
|
|
48
51
|
name: "chevron-down-outline",
|
|
49
52
|
"aria-hidden": true
|
|
50
53
|
});
|
|
51
54
|
}
|
|
52
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
55
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_seedsReactIcon.default, {
|
|
53
56
|
name: _this.props.isOpen ? "minus-outline" : "plus-outline",
|
|
54
57
|
"aria-hidden": true
|
|
55
58
|
});
|