@sproutsocial/racine 27.0.3 → 27.1.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 +7 -0
- package/dist/esm/index.js +45 -221
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.mts +7 -55
- package/dist/index.d.ts +7 -55
- package/dist/index.js +48 -224
- package/dist/index.js.map +1 -1
- package/package.json +4 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
export { EnumIconNames } from '@sproutsocial/seeds-icons';
|
|
2
2
|
export { EnumIllustrationNames, IllustrationNames as SpotIllustrationNames } from '@sproutsocial/seeds-illustrations';
|
|
3
3
|
export { EnumLogoNamesWithoutVariants as EnumLogoNames, LogoNamesWithoutVariants as PartnerLogoNames } from '@sproutsocial/seeds-partner-logos';
|
|
4
|
-
import { TypeStyledComponentsCommonProps
|
|
4
|
+
import { TypeStyledComponentsCommonProps } from '@sproutsocial/seeds-react-system-props';
|
|
5
5
|
export * from '@sproutsocial/seeds-react-system-props';
|
|
6
6
|
export * from '@sproutsocial/seeds-react-theme';
|
|
7
7
|
export { default as ThemeProvider } from '@sproutsocial/seeds-react-theme-provider';
|
|
8
8
|
export { useInteractiveColor, useMeasure, useMultiselect, useSelect, useTextContent } from '@sproutsocial/seeds-react-hooks';
|
|
9
9
|
export * from '@sproutsocial/seeds-react-mixins';
|
|
10
|
+
export * from '@sproutsocial/seeds-react-accordion';
|
|
10
11
|
export * from '@sproutsocial/seeds-react-avatar';
|
|
11
12
|
export * from '@sproutsocial/seeds-react-badge';
|
|
12
13
|
export * from '@sproutsocial/seeds-react-banner';
|
|
@@ -14,11 +15,7 @@ export { Banner as Alert } from '@sproutsocial/seeds-react-banner';
|
|
|
14
15
|
import * as _sproutsocial_seeds_react_box from '@sproutsocial/seeds-react-box';
|
|
15
16
|
import { TypeBoxProps } from '@sproutsocial/seeds-react-box';
|
|
16
17
|
export * from '@sproutsocial/seeds-react-box';
|
|
17
|
-
|
|
18
|
-
import * as React from 'react';
|
|
19
|
-
import { TypeLinkProps } from '@sproutsocial/seeds-react-link';
|
|
20
|
-
export * from '@sproutsocial/seeds-react-link';
|
|
21
|
-
export { TypeLinkProps as TypeBreadcrumbItemProps } from '@sproutsocial/seeds-react-link';
|
|
18
|
+
export * from '@sproutsocial/seeds-react-breadcrumb';
|
|
22
19
|
import { TypeButtonProps } from '@sproutsocial/seeds-react-button';
|
|
23
20
|
export * from '@sproutsocial/seeds-react-button';
|
|
24
21
|
export * from '@sproutsocial/seeds-react-card';
|
|
@@ -40,6 +37,9 @@ import { TypeInputProps } from '@sproutsocial/seeds-react-input';
|
|
|
40
37
|
export * from '@sproutsocial/seeds-react-input';
|
|
41
38
|
export * from '@sproutsocial/seeds-react-keyboard-key';
|
|
42
39
|
export * from '@sproutsocial/seeds-react-label';
|
|
40
|
+
export * from '@sproutsocial/seeds-react-link';
|
|
41
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
42
|
+
import * as React from 'react';
|
|
43
43
|
import { TypePopoutProps } from '@sproutsocial/seeds-react-popout';
|
|
44
44
|
export * from '@sproutsocial/seeds-react-popout';
|
|
45
45
|
import { TypeTextProps } from '@sproutsocial/seeds-react-text';
|
|
@@ -74,28 +74,6 @@ export * from '@sproutsocial/seeds-react-tooltip';
|
|
|
74
74
|
export * from '@sproutsocial/seeds-react-visually-hidden';
|
|
75
75
|
export * from '@sproutsocial/seeds-react-data-table';
|
|
76
76
|
|
|
77
|
-
interface TypeBreadcrumbProps extends TypeStyledComponentsCommonProps, TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<"nav">, "color"> {
|
|
78
|
-
children: React.ReactNode;
|
|
79
|
-
/** Description of the type of navigation being provided by the breadcrumb (i.e. "Asset library breadcrumb") */
|
|
80
|
-
ariaLabel: string;
|
|
81
|
-
/** optional */
|
|
82
|
-
overflow?: {
|
|
83
|
-
label: string;
|
|
84
|
-
menu: React.ReactNode;
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/**
|
|
89
|
-
* @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/main/seeds-react/seeds-react-breadcrumb | seeds-react-breadcrumb}.
|
|
90
|
-
*/
|
|
91
|
-
declare const Breadcrumb: {
|
|
92
|
-
({ ariaLabel, overflow, children, ...rest }: TypeBreadcrumbProps): react_jsx_runtime.JSX.Element;
|
|
93
|
-
Item: {
|
|
94
|
-
({ children, href, ...rest }: TypeLinkProps): react_jsx_runtime.JSX.Element;
|
|
95
|
-
displayName: string;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
|
|
99
77
|
declare const MENU_ROLES: Readonly<{
|
|
100
78
|
readonly MENU: "menu";
|
|
101
79
|
readonly LIST: "list";
|
|
@@ -403,30 +381,4 @@ declare function useMenuKeyDown(): {
|
|
|
403
381
|
handleKeyDown: (event: React.KeyboardEvent<Element>) => any;
|
|
404
382
|
};
|
|
405
383
|
|
|
406
|
-
type
|
|
407
|
-
|
|
408
|
-
interface TypeToggleHintProps extends TypeSystemCommonProps, Omit<React.ComponentPropsWithoutRef<"div">, "color"> {
|
|
409
|
-
isOpen: boolean;
|
|
410
|
-
icon: "chevron" | "plus";
|
|
411
|
-
openString: string;
|
|
412
|
-
closeString: string;
|
|
413
|
-
className?: string;
|
|
414
|
-
qa?: TypeQaProps;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
/**
|
|
418
|
-
* Icon (either chevron or plus/minus) indicating whether an element is open or closed.
|
|
419
|
-
*/
|
|
420
|
-
/**
|
|
421
|
-
* @deprecated ToggleHint is deprecated. ToggleHint is no longer supported and will be removed in 2025.
|
|
422
|
-
*/
|
|
423
|
-
declare class ToggleHint extends React.Component<TypeToggleHintProps> {
|
|
424
|
-
static defaultProps: {
|
|
425
|
-
isOpen: boolean;
|
|
426
|
-
icon: string;
|
|
427
|
-
};
|
|
428
|
-
getIcon: () => react_jsx_runtime.JSX.Element;
|
|
429
|
-
render(): react_jsx_runtime.JSX.Element;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
export { Breadcrumb, DescendantProvider, Listbox, ListboxButton, MENU_ITEM_ROLES, MENU_ROLES, Menu, MenuButton, MenuButtonContext, MenuContext, MenuDescendantContext, MenuItemContainer, MenuItemsContainer, ToggleHint, type TypeBreadcrumbProps, type TypeDescendant, type TypeListboxButtonProps, type TypeListboxProps, type TypeMenuButtonContext, type TypeMenuButtonProps, type TypeMenuContext, type TypeMenuDescendantProps, type TypeMenuGroupProps, type TypeMenuItemContainerProps, type TypeMenuItemProps, type TypeMenuItemRoles, type TypeMenuProps, type TypeMenuRoles, type TypeMenuSharedProps, type TypeMenuState, type TypeMenuSwitchProps, type TypeToggleHintProps, canUseDOM, createDescendantContext, createNamedContext, useDescendant, useDescendantKeyDown, useDescendants, useMenuKeyDown, usePrevious, wrapEvent };
|
|
384
|
+
export { DescendantProvider, Listbox, ListboxButton, MENU_ITEM_ROLES, MENU_ROLES, Menu, MenuButton, MenuButtonContext, MenuContext, MenuDescendantContext, MenuItemContainer, MenuItemsContainer, type TypeDescendant, type TypeListboxButtonProps, type TypeListboxProps, type TypeMenuButtonContext, type TypeMenuButtonProps, type TypeMenuContext, type TypeMenuDescendantProps, type TypeMenuGroupProps, type TypeMenuItemContainerProps, type TypeMenuItemProps, type TypeMenuItemRoles, type TypeMenuProps, type TypeMenuRoles, type TypeMenuSharedProps, type TypeMenuState, type TypeMenuSwitchProps, canUseDOM, createDescendantContext, createNamedContext, useDescendant, useDescendantKeyDown, useDescendants, useMenuKeyDown, usePrevious, wrapEvent };
|
package/dist/index.js
CHANGED
|
@@ -32,7 +32,6 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
32
32
|
var src_exports = {};
|
|
33
33
|
__export(src_exports, {
|
|
34
34
|
Alert: () => import_seeds_react_banner.Banner,
|
|
35
|
-
Breadcrumb: () => Breadcrumb_default,
|
|
36
35
|
DescendantProvider: () => DescendantProvider,
|
|
37
36
|
Listbox: () => Listbox_default,
|
|
38
37
|
ListboxButton: () => ListboxButton,
|
|
@@ -48,7 +47,6 @@ __export(src_exports, {
|
|
|
48
47
|
PartnerLogoNames: () => import_seeds_partner_logos.LogoNamesWithoutVariants,
|
|
49
48
|
SpotIllustrationNames: () => import_seeds_illustrations.IllustrationNames,
|
|
50
49
|
ThemeProvider: () => import_seeds_react_theme_provider.default,
|
|
51
|
-
ToggleHint: () => ToggleHint,
|
|
52
50
|
canUseDOM: () => canUseDOM,
|
|
53
51
|
createDescendantContext: () => createDescendantContext,
|
|
54
52
|
createNamedContext: () => createNamedContext,
|
|
@@ -72,15 +70,52 @@ __reExport(src_exports, require("@sproutsocial/seeds-react-theme"), module.expor
|
|
|
72
70
|
var import_seeds_react_theme_provider = __toESM(require("@sproutsocial/seeds-react-theme-provider"));
|
|
73
71
|
var import_seeds_react_hooks2 = require("@sproutsocial/seeds-react-hooks");
|
|
74
72
|
__reExport(src_exports, require("@sproutsocial/seeds-react-mixins"), module.exports);
|
|
73
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-accordion"), module.exports);
|
|
75
74
|
__reExport(src_exports, require("@sproutsocial/seeds-react-avatar"), module.exports);
|
|
76
75
|
__reExport(src_exports, require("@sproutsocial/seeds-react-badge"), module.exports);
|
|
77
76
|
__reExport(src_exports, require("@sproutsocial/seeds-react-banner"), module.exports);
|
|
78
77
|
__reExport(src_exports, require("@sproutsocial/seeds-react-box"), module.exports);
|
|
78
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-breadcrumb"), module.exports);
|
|
79
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-button"), module.exports);
|
|
80
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-card"), module.exports);
|
|
81
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-character-counter"), module.exports);
|
|
82
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-chart-legend"), module.exports);
|
|
83
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-checkbox"), module.exports);
|
|
84
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-collapsible"), module.exports);
|
|
85
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-datepicker"), module.exports);
|
|
86
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-drawer"), module.exports);
|
|
87
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-duration"), module.exports);
|
|
88
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-empty-state"), module.exports);
|
|
89
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-fieldset"), module.exports);
|
|
90
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-form-field"), module.exports);
|
|
91
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-icon"), module.exports);
|
|
92
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-image"), module.exports);
|
|
93
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-indicator"), module.exports);
|
|
94
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-input"), module.exports);
|
|
95
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-keyboard-key"), module.exports);
|
|
96
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-label"), module.exports);
|
|
97
|
+
__reExport(src_exports, require("@sproutsocial/seeds-react-link"), module.exports);
|
|
98
|
+
|
|
99
|
+
// src/Listbox/Listbox.tsx
|
|
100
|
+
var import_styled_components3 = __toESM(require("styled-components"));
|
|
79
101
|
|
|
80
|
-
// src/
|
|
81
|
-
var
|
|
102
|
+
// src/Menu/utils/constants.ts
|
|
103
|
+
var MENU_ROLES = Object.freeze({
|
|
104
|
+
MENU: "menu",
|
|
105
|
+
LIST: "list",
|
|
106
|
+
LISTBOX: "listbox"
|
|
107
|
+
});
|
|
108
|
+
var MENU_ITEM_ROLES = Object.freeze({
|
|
109
|
+
MENUITEM: "menuitem",
|
|
110
|
+
LISTITEM: "listitem",
|
|
111
|
+
OPTION: "option",
|
|
112
|
+
RADIO: "menuitemradio",
|
|
113
|
+
CHECKBOX: "menuitemcheckbox"
|
|
114
|
+
});
|
|
115
|
+
|
|
116
|
+
// src/Listbox/Listbox.tsx
|
|
117
|
+
var import_seeds_react_select = require("@sproutsocial/seeds-react-select");
|
|
82
118
|
var import_seeds_react_icon2 = __toESM(require("@sproutsocial/seeds-react-icon"));
|
|
83
|
-
var import_seeds_react_link = __toESM(require("@sproutsocial/seeds-react-link"));
|
|
84
119
|
|
|
85
120
|
// src/Menu/Menu.tsx
|
|
86
121
|
var import_react3 = require("react");
|
|
@@ -131,20 +166,6 @@ var import_seeds_react_radio = __toESM(require("@sproutsocial/seeds-react-radio"
|
|
|
131
166
|
var import_seeds_react_switch2 = __toESM(require("@sproutsocial/seeds-react-switch"));
|
|
132
167
|
var import_seeds_react_text = __toESM(require("@sproutsocial/seeds-react-text"));
|
|
133
168
|
|
|
134
|
-
// src/Menu/utils/constants.ts
|
|
135
|
-
var MENU_ROLES = Object.freeze({
|
|
136
|
-
MENU: "menu",
|
|
137
|
-
LIST: "list",
|
|
138
|
-
LISTBOX: "listbox"
|
|
139
|
-
});
|
|
140
|
-
var MENU_ITEM_ROLES = Object.freeze({
|
|
141
|
-
MENUITEM: "menuitem",
|
|
142
|
-
LISTITEM: "listitem",
|
|
143
|
-
OPTION: "option",
|
|
144
|
-
RADIO: "menuitemradio",
|
|
145
|
-
CHECKBOX: "menuitemcheckbox"
|
|
146
|
-
});
|
|
147
|
-
|
|
148
169
|
// src/Menu/utils/descendants.tsx
|
|
149
170
|
var import_react = require("react");
|
|
150
171
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -1156,132 +1177,16 @@ var Menu_default = Menu;
|
|
|
1156
1177
|
// src/Menu/index.ts
|
|
1157
1178
|
var Menu_default2 = Menu_default;
|
|
1158
1179
|
|
|
1159
|
-
// src/Breadcrumb/styles.ts
|
|
1160
|
-
var import_styled_components3 = __toESM(require("styled-components"));
|
|
1161
|
-
var Nav = import_styled_components3.default.nav`
|
|
1162
|
-
ol {
|
|
1163
|
-
${(props) => props.theme.typography[200]};
|
|
1164
|
-
margin: 0;
|
|
1165
|
-
font-family: ${(props) => props.theme.fontFamily};
|
|
1166
|
-
padding: 0;
|
|
1167
|
-
display: flex;
|
|
1168
|
-
}
|
|
1169
|
-
|
|
1170
|
-
li {
|
|
1171
|
-
margin-right: ${(props) => props.theme.space[200]};
|
|
1172
|
-
display: flex;
|
|
1173
|
-
}
|
|
1174
|
-
|
|
1175
|
-
a,
|
|
1176
|
-
button {
|
|
1177
|
-
${(props) => props.theme.typography[200]};
|
|
1178
|
-
max-width: 200px;
|
|
1179
|
-
overflow: hidden;
|
|
1180
|
-
text-overflow: ellipsis;
|
|
1181
|
-
white-space: nowrap;
|
|
1182
|
-
|
|
1183
|
-
&:not(.overflow--menu) {
|
|
1184
|
-
margin: 0;
|
|
1185
|
-
padding: 0;
|
|
1186
|
-
}
|
|
1187
|
-
}
|
|
1188
|
-
|
|
1189
|
-
ol > div + li::before {
|
|
1190
|
-
content: "/";
|
|
1191
|
-
margin-right: ${(props) => props.theme.space[200]};
|
|
1192
|
-
}
|
|
1193
|
-
|
|
1194
|
-
li:last-child a,
|
|
1195
|
-
li:last-child button {
|
|
1196
|
-
color: ${(props) => props.theme.colors.text.body};
|
|
1197
|
-
font-weight: bold;
|
|
1198
|
-
}
|
|
1199
|
-
|
|
1200
|
-
li:not(:last-child)::after {
|
|
1201
|
-
content: "/";
|
|
1202
|
-
color: ${(props) => props.theme.colors.text.body};
|
|
1203
|
-
margin-left: ${(props) => props.theme.space[200]};
|
|
1204
|
-
}
|
|
1205
|
-
`;
|
|
1206
|
-
var styles_default = Nav;
|
|
1207
|
-
|
|
1208
|
-
// src/Breadcrumb/Breadcrumb.tsx
|
|
1209
|
-
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1210
|
-
var BreadcrumbItem = ({
|
|
1211
|
-
children,
|
|
1212
|
-
href,
|
|
1213
|
-
...rest
|
|
1214
|
-
}) => {
|
|
1215
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_seeds_react_link.default, { href, ...rest, children }) });
|
|
1216
|
-
};
|
|
1217
|
-
var Breadcrumb = ({
|
|
1218
|
-
ariaLabel,
|
|
1219
|
-
overflow,
|
|
1220
|
-
children,
|
|
1221
|
-
...rest
|
|
1222
|
-
}) => {
|
|
1223
|
-
const listItems = React.Children.toArray(children);
|
|
1224
|
-
const lastItem = listItems[listItems.length - 1];
|
|
1225
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(styles_default, { "aria-label": ariaLabel, "data-qa-breadcrumb": ariaLabel, ...rest, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)("ol", { children: [
|
|
1226
|
-
overflow && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(
|
|
1227
|
-
MenuButton,
|
|
1228
|
-
{
|
|
1229
|
-
appearance: "secondary",
|
|
1230
|
-
content: overflow.menu,
|
|
1231
|
-
"aria-label": overflow.label,
|
|
1232
|
-
className: "overflow--menu",
|
|
1233
|
-
px: 200,
|
|
1234
|
-
py: 0,
|
|
1235
|
-
children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_seeds_react_icon2.default, { name: "ellipsis-horizontal-solid", "aria-hidden": true })
|
|
1236
|
-
}
|
|
1237
|
-
) }),
|
|
1238
|
-
listItems.map((item, i) => {
|
|
1239
|
-
const itemElem = typeof item === "object" && "props" in item ? item : /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("span", { children: "item" });
|
|
1240
|
-
return React.cloneElement(itemElem, {
|
|
1241
|
-
...itemElem.props,
|
|
1242
|
-
"aria-current": listItems[i] === lastItem ? "page" : void 0
|
|
1243
|
-
});
|
|
1244
|
-
})
|
|
1245
|
-
] }) });
|
|
1246
|
-
};
|
|
1247
|
-
BreadcrumbItem.displayName = "Breadcrumb.Item";
|
|
1248
|
-
Breadcrumb.Item = BreadcrumbItem;
|
|
1249
|
-
var Breadcrumb_default = Breadcrumb;
|
|
1250
|
-
|
|
1251
|
-
// src/index.ts
|
|
1252
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-button"), module.exports);
|
|
1253
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-card"), module.exports);
|
|
1254
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-character-counter"), module.exports);
|
|
1255
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-chart-legend"), module.exports);
|
|
1256
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-checkbox"), module.exports);
|
|
1257
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-collapsible"), module.exports);
|
|
1258
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-datepicker"), module.exports);
|
|
1259
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-drawer"), module.exports);
|
|
1260
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-duration"), module.exports);
|
|
1261
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-empty-state"), module.exports);
|
|
1262
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-fieldset"), module.exports);
|
|
1263
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-form-field"), module.exports);
|
|
1264
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-icon"), module.exports);
|
|
1265
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-image"), module.exports);
|
|
1266
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-indicator"), module.exports);
|
|
1267
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-input"), module.exports);
|
|
1268
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-keyboard-key"), module.exports);
|
|
1269
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-label"), module.exports);
|
|
1270
|
-
__reExport(src_exports, require("@sproutsocial/seeds-react-link"), module.exports);
|
|
1271
|
-
|
|
1272
1180
|
// src/Listbox/Listbox.tsx
|
|
1273
|
-
var
|
|
1274
|
-
var import_seeds_react_select = require("@sproutsocial/seeds-react-select");
|
|
1275
|
-
var import_seeds_react_icon3 = __toESM(require("@sproutsocial/seeds-react-icon"));
|
|
1276
|
-
var import_jsx_runtime4 = require("react/jsx-runtime");
|
|
1181
|
+
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
1277
1182
|
var Listbox = ({
|
|
1278
1183
|
role = MENU_ROLES.LISTBOX,
|
|
1279
1184
|
children,
|
|
1280
1185
|
...rest
|
|
1281
1186
|
}) => {
|
|
1282
|
-
return /* @__PURE__ */ (0,
|
|
1187
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(Menu_default2, { ...rest, role, children });
|
|
1283
1188
|
};
|
|
1284
|
-
var ListboxButtonContainer = (0,
|
|
1189
|
+
var ListboxButtonContainer = (0, import_styled_components3.default)(MenuButton)`
|
|
1285
1190
|
position: relative;
|
|
1286
1191
|
width: 100%;
|
|
1287
1192
|
border: 1px solid ${(props) => props.theme.colors.form.border.base};
|
|
@@ -1325,7 +1230,7 @@ var ListboxButtonContainer = (0, import_styled_components4.default)(MenuButton)`
|
|
|
1325
1230
|
}
|
|
1326
1231
|
}};
|
|
1327
1232
|
|
|
1328
|
-
${(props) => props.invalid &&
|
|
1233
|
+
${(props) => props.invalid && import_styled_components3.css`
|
|
1329
1234
|
border-color: ${(props2) => props2.theme.colors.form.border.error};
|
|
1330
1235
|
${import_seeds_react_select.Arrow} {
|
|
1331
1236
|
color: ${(props2) => props2.theme.colors.icon.error};
|
|
@@ -1335,7 +1240,7 @@ var ListboxButtonContainer = (0, import_styled_components4.default)(MenuButton)`
|
|
|
1335
1240
|
var ListboxButton = ({
|
|
1336
1241
|
children,
|
|
1337
1242
|
...restProps
|
|
1338
|
-
}) => /* @__PURE__ */ (0,
|
|
1243
|
+
}) => /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(
|
|
1339
1244
|
ListboxButtonContainer,
|
|
1340
1245
|
{
|
|
1341
1246
|
...restProps,
|
|
@@ -1345,7 +1250,7 @@ var ListboxButton = ({
|
|
|
1345
1250
|
},
|
|
1346
1251
|
children: [
|
|
1347
1252
|
children,
|
|
1348
|
-
/* @__PURE__ */ (0,
|
|
1253
|
+
/* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_seeds_react_select.Arrow, { size: restProps.size, children: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_seeds_react_icon2.default, { name: "chevron-down-outline", fixedWidth: true, "aria-hidden": true }) })
|
|
1349
1254
|
]
|
|
1350
1255
|
}
|
|
1351
1256
|
);
|
|
@@ -1383,87 +1288,6 @@ __reExport(src_exports, require("@sproutsocial/seeds-react-tabs"), module.export
|
|
|
1383
1288
|
__reExport(src_exports, require("@sproutsocial/seeds-react-text"), module.exports);
|
|
1384
1289
|
__reExport(src_exports, require("@sproutsocial/seeds-react-textarea"), module.exports);
|
|
1385
1290
|
__reExport(src_exports, require("@sproutsocial/seeds-react-toast"), module.exports);
|
|
1386
|
-
|
|
1387
|
-
// src/ToggleHint/ToggleHint.tsx
|
|
1388
|
-
var React2 = __toESM(require("react"));
|
|
1389
|
-
var import_seeds_react_icon4 = __toESM(require("@sproutsocial/seeds-react-icon"));
|
|
1390
|
-
|
|
1391
|
-
// src/ToggleHint/styles.ts
|
|
1392
|
-
var import_styled_components5 = __toESM(require("styled-components"));
|
|
1393
|
-
var import_seeds_react_system_props = require("@sproutsocial/seeds-react-system-props");
|
|
1394
|
-
var import_seeds_react_mixins3 = require("@sproutsocial/seeds-react-mixins");
|
|
1395
|
-
var Container = import_styled_components5.default.div`
|
|
1396
|
-
position: relative;
|
|
1397
|
-
display: inline-block;
|
|
1398
|
-
padding: ${(props) => props.theme.space[100]};
|
|
1399
|
-
color: currentColor;
|
|
1400
|
-
|
|
1401
|
-
${(props) => props.icon === "chevron" && import_styled_components5.css`
|
|
1402
|
-
transition: transform
|
|
1403
|
-
${(props2) => `${props2.theme.duration.medium} ${props2.theme.easing.ease_inout}`};
|
|
1404
|
-
|
|
1405
|
-
${props.isOpen && import_styled_components5.css`
|
|
1406
|
-
transform: rotateX(180deg);
|
|
1407
|
-
`}
|
|
1408
|
-
`}
|
|
1409
|
-
|
|
1410
|
-
${import_seeds_react_system_props.COMMON}
|
|
1411
|
-
`;
|
|
1412
|
-
var IconText = import_styled_components5.default.div`
|
|
1413
|
-
${import_seeds_react_mixins3.visuallyHidden}
|
|
1414
|
-
`;
|
|
1415
|
-
var styles_default2 = Container;
|
|
1416
|
-
|
|
1417
|
-
// src/ToggleHint/ToggleHint.tsx
|
|
1418
|
-
var import_jsx_runtime5 = require("react/jsx-runtime");
|
|
1419
|
-
var ToggleHint = class extends React2.Component {
|
|
1420
|
-
static defaultProps = {
|
|
1421
|
-
isOpen: false,
|
|
1422
|
-
icon: "chevron"
|
|
1423
|
-
};
|
|
1424
|
-
getIcon = () => {
|
|
1425
|
-
if (this.props.icon === "chevron") {
|
|
1426
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_seeds_react_icon4.default, { name: "chevron-down-outline", "aria-hidden": true });
|
|
1427
|
-
}
|
|
1428
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
|
|
1429
|
-
import_seeds_react_icon4.default,
|
|
1430
|
-
{
|
|
1431
|
-
name: this.props.isOpen ? "minus-outline" : "plus-outline",
|
|
1432
|
-
"aria-hidden": true
|
|
1433
|
-
}
|
|
1434
|
-
);
|
|
1435
|
-
};
|
|
1436
|
-
render() {
|
|
1437
|
-
const {
|
|
1438
|
-
icon,
|
|
1439
|
-
isOpen,
|
|
1440
|
-
openString,
|
|
1441
|
-
closeString,
|
|
1442
|
-
qa,
|
|
1443
|
-
className,
|
|
1444
|
-
color,
|
|
1445
|
-
...rest
|
|
1446
|
-
} = this.props;
|
|
1447
|
-
return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
|
|
1448
|
-
styles_default2,
|
|
1449
|
-
{
|
|
1450
|
-
icon,
|
|
1451
|
-
isOpen,
|
|
1452
|
-
className: `ToggleHint ${className}`,
|
|
1453
|
-
"data-qa-togglehint-isopen": isOpen,
|
|
1454
|
-
color,
|
|
1455
|
-
...qa,
|
|
1456
|
-
...rest,
|
|
1457
|
-
children: [
|
|
1458
|
-
this.getIcon(),
|
|
1459
|
-
/* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconText, { children: isOpen ? closeString : openString })
|
|
1460
|
-
]
|
|
1461
|
-
}
|
|
1462
|
-
);
|
|
1463
|
-
}
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
// src/index.ts
|
|
1467
1291
|
__reExport(src_exports, require("@sproutsocial/seeds-react-token"), module.exports);
|
|
1468
1292
|
__reExport(src_exports, require("@sproutsocial/seeds-react-token-input"), module.exports);
|
|
1469
1293
|
__reExport(src_exports, require("@sproutsocial/seeds-react-tooltip"), module.exports);
|
|
@@ -1473,7 +1297,6 @@ var import_seeds_react_banner = require("@sproutsocial/seeds-react-banner");
|
|
|
1473
1297
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1474
1298
|
0 && (module.exports = {
|
|
1475
1299
|
Alert,
|
|
1476
|
-
Breadcrumb,
|
|
1477
1300
|
DescendantProvider,
|
|
1478
1301
|
Listbox,
|
|
1479
1302
|
ListboxButton,
|
|
@@ -1489,7 +1312,6 @@ var import_seeds_react_banner = require("@sproutsocial/seeds-react-banner");
|
|
|
1489
1312
|
PartnerLogoNames,
|
|
1490
1313
|
SpotIllustrationNames,
|
|
1491
1314
|
ThemeProvider,
|
|
1492
|
-
ToggleHint,
|
|
1493
1315
|
canUseDOM,
|
|
1494
1316
|
createDescendantContext,
|
|
1495
1317
|
createNamedContext,
|
|
@@ -1507,10 +1329,12 @@ var import_seeds_react_banner = require("@sproutsocial/seeds-react-banner");
|
|
|
1507
1329
|
...require("@sproutsocial/seeds-react-system-props"),
|
|
1508
1330
|
...require("@sproutsocial/seeds-react-theme"),
|
|
1509
1331
|
...require("@sproutsocial/seeds-react-mixins"),
|
|
1332
|
+
...require("@sproutsocial/seeds-react-accordion"),
|
|
1510
1333
|
...require("@sproutsocial/seeds-react-avatar"),
|
|
1511
1334
|
...require("@sproutsocial/seeds-react-badge"),
|
|
1512
1335
|
...require("@sproutsocial/seeds-react-banner"),
|
|
1513
1336
|
...require("@sproutsocial/seeds-react-box"),
|
|
1337
|
+
...require("@sproutsocial/seeds-react-breadcrumb"),
|
|
1514
1338
|
...require("@sproutsocial/seeds-react-button"),
|
|
1515
1339
|
...require("@sproutsocial/seeds-react-card"),
|
|
1516
1340
|
...require("@sproutsocial/seeds-react-character-counter"),
|