@uniformdev/design-system 20.31.0 → 20.31.1-alpha.7

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/dist/esm/index.js CHANGED
@@ -5619,13 +5619,14 @@ var buttonSizeLarge = css36`
5619
5619
  --line-offset: -1px;
5620
5620
  `;
5621
5621
  var ButtonWithMenuContainer = css36`
5622
- align-items: center;
5623
5622
  border: 1px solid transparent;
5624
5623
  border-radius: var(--rounded-base);
5625
5624
  color: var(--white);
5626
- display: inline-flex;
5625
+ display: inline-grid;
5627
5626
  position: relative;
5627
+ grid-template-columns: 1fr minmax(var(--icon-padding), 2.44rem);
5628
5628
  min-height: 24px;
5629
+ max-width: max-content;
5629
5630
  transition:
5630
5631
  color var(--duration-fast) var(--timing-ease-out),
5631
5632
  border-color var(--duration-fast) var(--timing-ease-out),
@@ -5648,6 +5649,12 @@ var ButtonWithMenuContainer = css36`
5648
5649
  height: var(--svg-size);
5649
5650
  }
5650
5651
  `;
5652
+ var IconButtonContainer = css36`
5653
+ display: flex;
5654
+ align-items: center;
5655
+ justify-content: center;
5656
+ height: 100%;
5657
+ `;
5651
5658
  function ButtonWithMenuBtn(overrideHairlineColor) {
5652
5659
  return css36`
5653
5660
  position: relative;
@@ -5680,8 +5687,12 @@ function ButtonWithMenuBtn(overrideHairlineColor) {
5680
5687
  `;
5681
5688
  }
5682
5689
  var ButtonWithMenuIcon = (disabled2) => css36`
5683
- padding: var(--icon-padding);
5690
+ display: flex;
5691
+ align-items: center;
5692
+ justify-content: center;
5684
5693
  pointer-events: ${disabled2 ? "none" : "auto"};
5694
+ width: 100%;
5695
+ height: 100%;
5685
5696
  `;
5686
5697
  var buttonPrimary2 = css36`
5687
5698
  background: var(--gray-800);
@@ -5805,15 +5816,17 @@ var ButtonWithMenu = ({
5805
5816
  ]
5806
5817
  }
5807
5818
  );
5808
- const menuButton = /* @__PURE__ */ jsx49(
5809
- "div",
5819
+ const menuButton = /* @__PURE__ */ jsx49("div", { css: IconButtonContainer, children: /* @__PURE__ */ jsx49(
5820
+ "button",
5810
5821
  {
5822
+ type: "button",
5811
5823
  css: ButtonWithMenuIcon(disabledValue),
5812
5824
  "data-testid": "multioptions-button-call-menu",
5813
5825
  "aria-disabled": disabledValue,
5826
+ "aria-label": "Open menu",
5814
5827
  children: /* @__PURE__ */ jsx49(Icon, { icon: CgChevronDown3, iconColor: "currentColor" })
5815
5828
  }
5816
- );
5829
+ ) });
5817
5830
  const tip = tooltip != null ? tooltip : shortcut && !disabledValue ? getFormattedShortcut(shortcut.shortcut) : void 0;
5818
5831
  if (onButtonClickHandler) {
5819
5832
  return /* @__PURE__ */ jsxs31(
package/dist/index.js CHANGED
@@ -7379,13 +7379,14 @@ var buttonSizeLarge = import_react56.css`
7379
7379
  --line-offset: -1px;
7380
7380
  `;
7381
7381
  var ButtonWithMenuContainer = import_react56.css`
7382
- align-items: center;
7383
7382
  border: 1px solid transparent;
7384
7383
  border-radius: var(--rounded-base);
7385
7384
  color: var(--white);
7386
- display: inline-flex;
7385
+ display: inline-grid;
7387
7386
  position: relative;
7387
+ grid-template-columns: 1fr minmax(var(--icon-padding), 2.44rem);
7388
7388
  min-height: 24px;
7389
+ max-width: max-content;
7389
7390
  transition:
7390
7391
  color var(--duration-fast) var(--timing-ease-out),
7391
7392
  border-color var(--duration-fast) var(--timing-ease-out),
@@ -7408,6 +7409,12 @@ var ButtonWithMenuContainer = import_react56.css`
7408
7409
  height: var(--svg-size);
7409
7410
  }
7410
7411
  `;
7412
+ var IconButtonContainer = import_react56.css`
7413
+ display: flex;
7414
+ align-items: center;
7415
+ justify-content: center;
7416
+ height: 100%;
7417
+ `;
7411
7418
  function ButtonWithMenuBtn(overrideHairlineColor) {
7412
7419
  return import_react56.css`
7413
7420
  position: relative;
@@ -7440,8 +7447,12 @@ function ButtonWithMenuBtn(overrideHairlineColor) {
7440
7447
  `;
7441
7448
  }
7442
7449
  var ButtonWithMenuIcon = (disabled2) => import_react56.css`
7443
- padding: var(--icon-padding);
7450
+ display: flex;
7451
+ align-items: center;
7452
+ justify-content: center;
7444
7453
  pointer-events: ${disabled2 ? "none" : "auto"};
7454
+ width: 100%;
7455
+ height: 100%;
7445
7456
  `;
7446
7457
  var buttonPrimary2 = import_react56.css`
7447
7458
  background: var(--gray-800);
@@ -7565,15 +7576,17 @@ var ButtonWithMenu = ({
7565
7576
  ]
7566
7577
  }
7567
7578
  );
7568
- const menuButton = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7569
- "div",
7579
+ const menuButton = /* @__PURE__ */ (0, import_jsx_runtime49.jsx)("div", { css: IconButtonContainer, children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
7580
+ "button",
7570
7581
  {
7582
+ type: "button",
7571
7583
  css: ButtonWithMenuIcon(disabledValue),
7572
7584
  "data-testid": "multioptions-button-call-menu",
7573
7585
  "aria-disabled": disabledValue,
7586
+ "aria-label": "Open menu",
7574
7587
  children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(Icon, { icon: import_CgChevronDown4.CgChevronDown, iconColor: "currentColor" })
7575
7588
  }
7576
- );
7589
+ ) });
7577
7590
  const tip = tooltip != null ? tooltip : shortcut && !disabledValue ? getFormattedShortcut(shortcut.shortcut) : void 0;
7578
7591
  if (onButtonClickHandler) {
7579
7592
  return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/design-system",
3
- "version": "20.31.0",
3
+ "version": "20.31.1-alpha.7+9d96376c09",
4
4
  "description": "Uniform design system components",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "exports": {
@@ -38,8 +38,8 @@
38
38
  "@storybook/theming": "^8.3.3",
39
39
  "@types/react": "18.3.11",
40
40
  "@types/react-dom": "18.3.1",
41
- "@uniformdev/canvas": "^20.31.0",
42
- "@uniformdev/richtext": "^20.31.0",
41
+ "@uniformdev/canvas": "^20.31.1-alpha.7+9d96376c09",
42
+ "@uniformdev/richtext": "^20.31.1-alpha.7+9d96376c09",
43
43
  "@vitest/coverage-v8": "^3.1.2",
44
44
  "autoprefixer": "10.4.21",
45
45
  "hygen": "6.2.11",
@@ -91,5 +91,5 @@
91
91
  "publishConfig": {
92
92
  "access": "public"
93
93
  },
94
- "gitHead": "f0beedff37c21c6b6795018e82fa9ad5fe2b59fd"
94
+ "gitHead": "9d96376c09c3471f9ed1810db163c825314f9146"
95
95
  }