@uniformdev/design-system 20.31.0 → 20.32.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/dist/esm/index.js +20 -7
- package/dist/index.js +20 -7
- package/package.json +4 -4
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-
|
|
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
|
-
|
|
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
|
-
"
|
|
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(
|
|
@@ -6485,7 +6498,7 @@ var ChipContainer = css45`
|
|
|
6485
6498
|
cursor: pointer;
|
|
6486
6499
|
}
|
|
6487
6500
|
|
|
6488
|
-
|
|
6501
|
+
:where(button):hover {
|
|
6489
6502
|
[role='presentation'] {
|
|
6490
6503
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
6491
6504
|
opacity: var(--opacity-100);
|
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-
|
|
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
|
-
|
|
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
|
-
"
|
|
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)(
|
|
@@ -8264,7 +8277,7 @@ var ChipContainer = import_react67.css`
|
|
|
8264
8277
|
cursor: pointer;
|
|
8265
8278
|
}
|
|
8266
8279
|
|
|
8267
|
-
|
|
8280
|
+
:where(button):hover {
|
|
8268
8281
|
[role='presentation'] {
|
|
8269
8282
|
transition: opacity var(--duration-fast) var(--timing-ease-out);
|
|
8270
8283
|
opacity: var(--opacity-100);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/design-system",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.32.0",
|
|
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.
|
|
42
|
-
"@uniformdev/richtext": "^20.
|
|
41
|
+
"@uniformdev/canvas": "^20.32.0",
|
|
42
|
+
"@uniformdev/richtext": "^20.32.0",
|
|
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": "
|
|
94
|
+
"gitHead": "5e94bba0b8d4295cdb77a7f72196849412da96c6"
|
|
95
95
|
}
|