@umami/react-zen 0.6.0 → 0.7.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/index.css +2 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.js +7 -6
- package/dist/index.mjs +7 -6
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -894,6 +894,7 @@
|
|
|
894
894
|
gap: var(--gap);
|
|
895
895
|
min-width: 120px;
|
|
896
896
|
cursor: pointer;
|
|
897
|
+
outline: none;
|
|
897
898
|
}
|
|
898
899
|
.ListItem_item:hover {
|
|
899
900
|
background: var(--highlight-bg-color);
|
|
@@ -1481,6 +1482,7 @@
|
|
|
1481
1482
|
color: var(--font-color);
|
|
1482
1483
|
background: var(--background-color);
|
|
1483
1484
|
box-shadow: var(--box-shadow);
|
|
1485
|
+
min-width: 160px;
|
|
1484
1486
|
}
|
|
1485
1487
|
.Select_button {
|
|
1486
1488
|
display: flex;
|
package/dist/index.d.ts
CHANGED
|
@@ -567,15 +567,15 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
567
567
|
}
|
|
568
568
|
|
|
569
569
|
declare module '@umami/react-zen/Select' {
|
|
570
|
-
import {
|
|
571
|
-
|
|
570
|
+
import { SelectProps as AriaSelectProps } from 'react-aria-components';
|
|
571
|
+
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
572
572
|
items: any[];
|
|
573
573
|
value: string;
|
|
574
|
-
|
|
575
|
-
children?: ReactNode;
|
|
574
|
+
label?: string;
|
|
576
575
|
}
|
|
577
|
-
function Select({ children, items, value, className, ...props }: SelectProps): import("react").JSX.Element;
|
|
576
|
+
function Select({ children, items, value, label, className, ...props }: SelectProps): import("react").JSX.Element;
|
|
578
577
|
export { Select };
|
|
578
|
+
export type { SelectProps };
|
|
579
579
|
}
|
|
580
580
|
|
|
581
581
|
declare module '@umami/react-zen/Slider' {
|
package/dist/index.js
CHANGED
|
@@ -27242,13 +27242,14 @@ var Select_default = {
|
|
|
27242
27242
|
|
|
27243
27243
|
// src/components/Select.tsx
|
|
27244
27244
|
var import_jsx_runtime44 = require("react/jsx-runtime");
|
|
27245
|
-
function Select({ children, items = [], value, className, ...props }) {
|
|
27246
|
-
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames39.default)(
|
|
27247
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.
|
|
27245
|
+
function Select({ children, items = [], value, label, className, ...props }) {
|
|
27246
|
+
return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames39.default)(Input_default.field, className), children: [
|
|
27247
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime44.jsx)($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: Input_default.label, children: label }),
|
|
27248
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames39.default)(Input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(Row, { justifyContent: "space-between", gap: "md", children: [
|
|
27248
27249
|
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
27249
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { rotate: 90, size: "xs", className:
|
|
27250
|
-
] }),
|
|
27251
|
-
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(List, { items, className: Select_default.list, children
|
|
27250
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Icons.Chevron, {}) }) })
|
|
27251
|
+
] }) }),
|
|
27252
|
+
/* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Popover, { children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(List, { items, className: Select_default.list, children }) })
|
|
27252
27253
|
] });
|
|
27253
27254
|
}
|
|
27254
27255
|
|
package/dist/index.mjs
CHANGED
|
@@ -27304,13 +27304,14 @@ var Select_default = {
|
|
|
27304
27304
|
|
|
27305
27305
|
// src/components/Select.tsx
|
|
27306
27306
|
import { jsx as jsx44, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
27307
|
-
function Select({ children, items = [], value, className, ...props }) {
|
|
27308
|
-
return /* @__PURE__ */ jsxs25($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames39.default)(
|
|
27309
|
-
/* @__PURE__ */
|
|
27307
|
+
function Select({ children, items = [], value, label, className, ...props }) {
|
|
27308
|
+
return /* @__PURE__ */ jsxs25($82d7e5349645de74$export$ef9b1a59e592288f, { ...props, className: (0, import_classnames39.default)(Input_default.field, className), children: [
|
|
27309
|
+
label && /* @__PURE__ */ jsx44($01b77f81d0f07f68$export$b04be29aa201d4f5, { className: Input_default.label, children: label }),
|
|
27310
|
+
/* @__PURE__ */ jsx44($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames39.default)(Input_default.input, className), children: /* @__PURE__ */ jsxs25(Row, { justifyContent: "space-between", gap: "md", children: [
|
|
27310
27311
|
/* @__PURE__ */ jsx44($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
27311
|
-
/* @__PURE__ */ jsx44("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx44(Icon, { rotate: 90, size: "xs", className:
|
|
27312
|
-
] }),
|
|
27313
|
-
/* @__PURE__ */ jsx44(Popover, { children: /* @__PURE__ */ jsx44(List, { items, className: Select_default.list, children
|
|
27312
|
+
/* @__PURE__ */ jsx44("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx44(Icon, { rotate: 90, size: "xs", className: Input_default.icon, children: /* @__PURE__ */ jsx44(Icons.Chevron, {}) }) })
|
|
27313
|
+
] }) }),
|
|
27314
|
+
/* @__PURE__ */ jsx44(Popover, { children: /* @__PURE__ */ jsx44(List, { items, className: Select_default.list, children }) })
|
|
27314
27315
|
] });
|
|
27315
27316
|
}
|
|
27316
27317
|
|