@sproutsocial/seeds-react-menu 1.9.2 → 1.10.1

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.
@@ -8,22 +8,22 @@ $ tsup --dts
8
8
  CLI Cleaning output folder
9
9
  CJS Build start
10
10
  ESM Build start
11
- CJS dist/index.js 90.52 KB
11
+ CJS dist/index.js 91.81 KB
12
12
  CJS dist/v2/index.js 72.63 KB
13
- CJS dist/index.js.map 176.37 KB
13
+ CJS dist/index.js.map 178.88 KB
14
14
  CJS dist/v2/index.js.map 151.20 KB
15
- CJS ⚡️ Build success in 65ms
16
- ESM dist/esm/index.js 71.41 KB
15
+ CJS ⚡️ Build success in 52ms
16
+ ESM dist/esm/index.js 72.69 KB
17
17
  ESM dist/esm/chunk-ROQATIB7.js 9.15 KB
18
18
  ESM dist/esm/v2/index.js 62.08 KB
19
- ESM dist/esm/index.js.map 152.38 KB
19
+ ESM dist/esm/index.js.map 154.90 KB
20
20
  ESM dist/esm/chunk-ROQATIB7.js.map 22.93 KB
21
21
  ESM dist/esm/v2/index.js.map 131.58 KB
22
- ESM ⚡️ Build success in 65ms
22
+ ESM ⚡️ Build success in 53ms
23
23
  DTS Build start
24
- DTS ⚡️ Build success in 4976ms
25
- DTS dist/index.d.ts 39.04 KB
24
+ DTS ⚡️ Build success in 5472ms
25
+ DTS dist/index.d.ts 39.08 KB
26
26
  DTS dist/v2/index.d.ts 5.43 KB
27
- DTS dist/index.d.mts 39.04 KB
27
+ DTS dist/index.d.mts 39.08 KB
28
28
  DTS dist/v2/index.d.mts 5.43 KB
29
- Done in 5.66s.
29
+ Done in 6.19s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @sproutsocial/seeds-react-menu
2
2
 
3
+ ## 1.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - @sproutsocial/seeds-react-icon@2.2.6
8
+ - @sproutsocial/seeds-react-button@1.4.1
9
+ - @sproutsocial/seeds-react-checkbox@1.3.25
10
+ - @sproutsocial/seeds-react-input@1.5.8
11
+ - @sproutsocial/seeds-react-switch@1.2.24
12
+ - @sproutsocial/seeds-react-token-input@1.4.29
13
+ - @sproutsocial/seeds-react-popout@2.4.29
14
+
15
+ ## 1.10.0
16
+
17
+ ### Minor Changes
18
+
19
+ - 1432504: Update ListboxToggleButton styles to match legacy listbox
20
+
21
+ ### Patch Changes
22
+
23
+ - c29d7d4: Add background color to listboxToggleButton after updating styles
24
+
3
25
  ## 1.9.2
4
26
 
5
27
  ### Patch Changes
package/dist/esm/index.js CHANGED
@@ -1253,6 +1253,40 @@ import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
1253
1253
  var StyledListboxToggleButton = styled7(
1254
1254
  MenuToggleButton
1255
1255
  )`
1256
+ background-color: ${(props) => props.theme.colors.form.background.base};
1257
+ border: 1px solid ${(props) => props.theme.colors.form.border.base};
1258
+ border-radius: ${(props) => props.theme.radii[500]};
1259
+ transition: border-color ${(props) => props.theme.duration.fast}
1260
+ ${(props) => props.theme.easing.ease_in},
1261
+ box-shadow ${(props) => props.theme.duration.fast}
1262
+ ${(props) => props.theme.easing.ease_in};
1263
+ font-weight: ${(props) => props.theme.fontWeights.normal};
1264
+ &:active {
1265
+ transform: none;
1266
+ }
1267
+
1268
+ padding: ${(props) => {
1269
+ switch (props.size) {
1270
+ case "large":
1271
+ return `${props.theme.space[400]} ${props.theme.space[400]} ${props.theme.space[400]} ${props.theme.space[400]}`;
1272
+ case "small":
1273
+ return `${props.theme.space[200]} ${props.theme.space[200]} ${props.theme.space[200]} ${props.theme.space[200]}`;
1274
+ case "default":
1275
+ default:
1276
+ return `${props.theme.space[300]} ${props.theme.space[300]} ${props.theme.space[300]} ${props.theme.space[300]}`;
1277
+ }
1278
+ }};
1279
+ font-size: ${(props) => {
1280
+ switch (props.size) {
1281
+ case "large":
1282
+ return props.theme.typography[300].fontSize;
1283
+ case "small":
1284
+ case "default":
1285
+ default:
1286
+ return props.theme.typography[200].fontSize;
1287
+ }
1288
+ }};
1289
+
1256
1290
  ${(props) => props.invalid && css`
1257
1291
  border-color: ${(props2) => props2.theme.colors.form.border.error};
1258
1292
  `}
@@ -1274,13 +1308,22 @@ var StyledInnerButton = styled7.div`
1274
1308
  `;
1275
1309
  var ListboxToggleButton = ({
1276
1310
  children,
1311
+ size = "default",
1277
1312
  ...buttonProps
1278
1313
  }) => {
1279
1314
  const { isOpen } = useMenuToggleContext();
1280
- return /* @__PURE__ */ jsx15(StyledListboxToggleButton, { appearance: "secondary", ...buttonProps, children: /* @__PURE__ */ jsxs5(StyledInnerButton, { children: [
1281
- children,
1282
- /* @__PURE__ */ jsx15(StyledChevron, { $isOpen: isOpen, invalid: buttonProps.invalid, children: /* @__PURE__ */ jsx15(Icon3, { name: "chevron-down-outline", fixedWidth: true, "aria-hidden": true }) })
1283
- ] }) });
1315
+ return /* @__PURE__ */ jsx15(
1316
+ StyledListboxToggleButton,
1317
+ {
1318
+ appearance: "unstyled",
1319
+ size,
1320
+ ...buttonProps,
1321
+ children: /* @__PURE__ */ jsxs5(StyledInnerButton, { children: [
1322
+ children,
1323
+ /* @__PURE__ */ jsx15(StyledChevron, { $isOpen: isOpen, invalid: buttonProps.invalid, children: /* @__PURE__ */ jsx15(Icon3, { name: "chevron-down-outline", fixedWidth: true, "aria-hidden": true }) })
1324
+ ] })
1325
+ }
1326
+ );
1284
1327
  };
1285
1328
 
1286
1329
  // src/ActionMenu/ActionMenu.tsx