@umami/react-zen 0.86.0 → 0.88.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 +10 -8
- package/dist/index.d.ts +6 -2
- package/dist/index.js +3 -2
- package/dist/index.mjs +3 -2
- package/package.json +1 -1
- package/styles.css +16 -14
package/dist/index.css
CHANGED
|
@@ -4217,8 +4217,8 @@ body a.Button_button__NDYwM {
|
|
|
4217
4217
|
}
|
|
4218
4218
|
|
|
4219
4219
|
/* virtual-css:css:a7fa90aea7daca4292e76cc01f7615ea */
|
|
4220
|
-
.
|
|
4221
|
-
font-size: var(--font-size);
|
|
4220
|
+
.ToggleGroup_group__OWVhM {
|
|
4221
|
+
font-size: var(--font-size-1);
|
|
4222
4222
|
color: var(--font-color);
|
|
4223
4223
|
background-color: var(--background-color);
|
|
4224
4224
|
box-shadow: var(--box-shadow);
|
|
@@ -4226,12 +4226,12 @@ body a.Button_button__NDYwM {
|
|
|
4226
4226
|
border-radius: var(--border-radius);
|
|
4227
4227
|
overflow: hidden;
|
|
4228
4228
|
}
|
|
4229
|
-
.
|
|
4229
|
+
.ToggleGroup_list__NWU3Y {
|
|
4230
4230
|
display: flex;
|
|
4231
4231
|
flex-direction: row;
|
|
4232
4232
|
align-items: center;
|
|
4233
4233
|
}
|
|
4234
|
-
.
|
|
4234
|
+
.ToggleGroup_item__OTAwZ {
|
|
4235
4235
|
background-color: var(--background-color);
|
|
4236
4236
|
display: flex;
|
|
4237
4237
|
align-items: center;
|
|
@@ -4240,14 +4240,16 @@ body a.Button_button__NDYwM {
|
|
|
4240
4240
|
cursor: pointer;
|
|
4241
4241
|
outline: none;
|
|
4242
4242
|
}
|
|
4243
|
-
.
|
|
4243
|
+
.ToggleGroup_item__OTAwZ:not(:first-child) {
|
|
4244
4244
|
border-left: var(--border);
|
|
4245
4245
|
}
|
|
4246
|
-
.
|
|
4246
|
+
.ToggleGroup_item__OTAwZ:hover {
|
|
4247
4247
|
background-color: var(--highlight-color);
|
|
4248
4248
|
}
|
|
4249
|
-
.
|
|
4249
|
+
.ToggleGroup_item__OTAwZ[data-selected] {
|
|
4250
4250
|
font-weight: 700;
|
|
4251
4251
|
background-color: var(--highlight-color);
|
|
4252
|
-
|
|
4252
|
+
}
|
|
4253
|
+
.ToggleGroup_item__OTAwZ[data-disabled] {
|
|
4254
|
+
color: var(--font-color-disabled);
|
|
4253
4255
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -764,7 +764,8 @@ declare module '@umami/react-zen/SearchField' {
|
|
|
764
764
|
}
|
|
765
765
|
|
|
766
766
|
declare module '@umami/react-zen/Select' {
|
|
767
|
-
import {
|
|
767
|
+
import { ReactNode } from 'react';
|
|
768
|
+
import { PopoverProps, SelectProps as AriaSelectProps, SelectValueRenderProps } from 'react-aria-components';
|
|
768
769
|
import { ListProps } from '@umami/react-zen/List';
|
|
769
770
|
interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
|
|
770
771
|
items?: any[];
|
|
@@ -777,6 +778,9 @@ declare module '@umami/react-zen/Select' {
|
|
|
777
778
|
onChange?: (e: any) => void;
|
|
778
779
|
listProps?: ListProps;
|
|
779
780
|
popoverProps?: PopoverProps;
|
|
781
|
+
renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
|
|
782
|
+
defaultChildren: ReactNode;
|
|
783
|
+
}) => ReactNode);
|
|
780
784
|
}
|
|
781
785
|
const Select: import("react").ForwardRefExoticComponent<SelectProps & import("react").RefAttributes<any>>;
|
|
782
786
|
export { Select };
|
|
@@ -967,7 +971,7 @@ declare module '@umami/react-zen/ToggleGroup' {
|
|
|
967
971
|
label?: string;
|
|
968
972
|
value?: string[];
|
|
969
973
|
defaultValue?: string[];
|
|
970
|
-
onChange?: (value: string
|
|
974
|
+
onChange?: (value: string[]) => void;
|
|
971
975
|
}
|
|
972
976
|
function ToggleGroup({ label, value, defaultValue, onChange, className, children, selectionMode, selectedKeys, defaultSelectedKeys, onSelectionChange, ...props }: ToggleGroupProps): import("react").JSX.Element;
|
|
973
977
|
export interface ToggleGroupItemProps extends TagProps {
|
package/dist/index.js
CHANGED
|
@@ -31026,6 +31026,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31026
31026
|
onChange,
|
|
31027
31027
|
listProps,
|
|
31028
31028
|
popoverProps,
|
|
31029
|
+
renderValue,
|
|
31029
31030
|
className,
|
|
31030
31031
|
children,
|
|
31031
31032
|
...props
|
|
@@ -31045,7 +31046,7 @@ var Select2 = (0, import_react189.forwardRef)(
|
|
|
31045
31046
|
children: [
|
|
31046
31047
|
label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
|
|
31047
31048
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
31048
|
-
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
31049
|
+
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
31049
31050
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Chevron, {}) }) })
|
|
31050
31051
|
] }) }),
|
|
31051
31052
|
/* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Column, { className: Select_default.popover, children: [
|
|
@@ -31371,7 +31372,7 @@ var Toggle = (0, import_react194.forwardRef)(
|
|
|
31371
31372
|
var import_classnames51 = __toESM(require_classnames());
|
|
31372
31373
|
|
|
31373
31374
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31374
|
-
var ToggleGroup_default = { "group": "
|
|
31375
|
+
var ToggleGroup_default = { "group": "ToggleGroup_group__OWVhM", "list": "ToggleGroup_list__NWU3Y", "item": "ToggleGroup_item__OTAwZ" };
|
|
31375
31376
|
|
|
31376
31377
|
// src/components/ToggleGroup.tsx
|
|
31377
31378
|
var import_jsx_runtime62 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -30919,6 +30919,7 @@ var Select2 = forwardRef9(
|
|
|
30919
30919
|
onChange,
|
|
30920
30920
|
listProps,
|
|
30921
30921
|
popoverProps,
|
|
30922
|
+
renderValue,
|
|
30922
30923
|
className,
|
|
30923
30924
|
children,
|
|
30924
30925
|
...props
|
|
@@ -30938,7 +30939,7 @@ var Select2 = forwardRef9(
|
|
|
30938
30939
|
children: [
|
|
30939
30940
|
label && /* @__PURE__ */ jsx53(Label2, { children: label }),
|
|
30940
30941
|
/* @__PURE__ */ jsx53($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ jsxs30(Row, { justifyContent: "space-between", gap: "3", children: [
|
|
30941
|
-
/* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, {}),
|
|
30942
|
+
/* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
|
|
30942
30943
|
/* @__PURE__ */ jsx53("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx53(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx53(Icons.Chevron, {}) }) })
|
|
30943
30944
|
] }) }),
|
|
30944
30945
|
/* @__PURE__ */ jsx53(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs30(Column, { className: Select_default.popover, children: [
|
|
@@ -31264,7 +31265,7 @@ var Toggle = forwardRef13(
|
|
|
31264
31265
|
var import_classnames51 = __toESM(require_classnames());
|
|
31265
31266
|
|
|
31266
31267
|
// css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
|
|
31267
|
-
var ToggleGroup_default = { "group": "
|
|
31268
|
+
var ToggleGroup_default = { "group": "ToggleGroup_group__OWVhM", "list": "ToggleGroup_list__NWU3Y", "item": "ToggleGroup_item__OTAwZ" };
|
|
31268
31269
|
|
|
31269
31270
|
// src/components/ToggleGroup.tsx
|
|
31270
31271
|
import { jsx as jsx62, jsxs as jsxs37 } from "react/jsx-runtime";
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
--letter-spacing-4: 0.025em;
|
|
31
31
|
--letter-spacing-5: 0.05em;
|
|
32
32
|
|
|
33
|
-
--heading-size-1:
|
|
34
|
-
--heading-size-2:
|
|
35
|
-
--heading-size-3:
|
|
36
|
-
--heading-size-4:
|
|
37
|
-
--heading-size-5:
|
|
38
|
-
--heading-size-6:
|
|
33
|
+
--heading-size-1: 16px;
|
|
34
|
+
--heading-size-2: 20px;
|
|
35
|
+
--heading-size-3: 24px;
|
|
36
|
+
--heading-size-4: 32px;
|
|
37
|
+
--heading-size-5: 42px;
|
|
38
|
+
--heading-size-6: 60px;
|
|
39
39
|
|
|
40
40
|
/* Spacing */
|
|
41
41
|
|
|
@@ -4537,8 +4537,8 @@ body a.Button_button__NDYwM {
|
|
|
4537
4537
|
}
|
|
4538
4538
|
|
|
4539
4539
|
/* virtual-css:css:a7fa90aea7daca4292e76cc01f7615ea */
|
|
4540
|
-
.
|
|
4541
|
-
font-size: var(--font-size);
|
|
4540
|
+
.ToggleGroup_group__OWVhM {
|
|
4541
|
+
font-size: var(--font-size-1);
|
|
4542
4542
|
color: var(--font-color);
|
|
4543
4543
|
background-color: var(--background-color);
|
|
4544
4544
|
box-shadow: var(--box-shadow);
|
|
@@ -4546,12 +4546,12 @@ body a.Button_button__NDYwM {
|
|
|
4546
4546
|
border-radius: var(--border-radius);
|
|
4547
4547
|
overflow: hidden;
|
|
4548
4548
|
}
|
|
4549
|
-
.
|
|
4549
|
+
.ToggleGroup_list__NWU3Y {
|
|
4550
4550
|
display: flex;
|
|
4551
4551
|
flex-direction: row;
|
|
4552
4552
|
align-items: center;
|
|
4553
4553
|
}
|
|
4554
|
-
.
|
|
4554
|
+
.ToggleGroup_item__OTAwZ {
|
|
4555
4555
|
background-color: var(--background-color);
|
|
4556
4556
|
display: flex;
|
|
4557
4557
|
align-items: center;
|
|
@@ -4560,14 +4560,16 @@ body a.Button_button__NDYwM {
|
|
|
4560
4560
|
cursor: pointer;
|
|
4561
4561
|
outline: none;
|
|
4562
4562
|
}
|
|
4563
|
-
.
|
|
4563
|
+
.ToggleGroup_item__OTAwZ:not(:first-child) {
|
|
4564
4564
|
border-left: var(--border);
|
|
4565
4565
|
}
|
|
4566
|
-
.
|
|
4566
|
+
.ToggleGroup_item__OTAwZ:hover {
|
|
4567
4567
|
background-color: var(--highlight-color);
|
|
4568
4568
|
}
|
|
4569
|
-
.
|
|
4569
|
+
.ToggleGroup_item__OTAwZ[data-selected] {
|
|
4570
4570
|
font-weight: 700;
|
|
4571
4571
|
background-color: var(--highlight-color);
|
|
4572
|
-
|
|
4572
|
+
}
|
|
4573
|
+
.ToggleGroup_item__OTAwZ[data-disabled] {
|
|
4574
|
+
color: var(--font-color-disabled);
|
|
4573
4575
|
}
|