@umami/react-zen 0.176.0 → 0.177.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 +23 -21
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +13 -8
- package/dist/index.mjs +13 -8
- package/package.json +1 -1
- package/styles.css +23 -21
package/dist/index.css
CHANGED
|
@@ -4170,7 +4170,7 @@ body a.Button_button__NGQyO {
|
|
|
4170
4170
|
}
|
|
4171
4171
|
|
|
4172
4172
|
/* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
|
|
4173
|
-
.
|
|
4173
|
+
.Loading_loading__M2YyY {
|
|
4174
4174
|
position: relative;
|
|
4175
4175
|
display: flex;
|
|
4176
4176
|
justify-content: center;
|
|
@@ -4178,7 +4178,7 @@ body a.Button_button__NGQyO {
|
|
|
4178
4178
|
flex: 1;
|
|
4179
4179
|
pointer-events: none;
|
|
4180
4180
|
}
|
|
4181
|
-
.
|
|
4181
|
+
.Loading_absolute__N2IxN {
|
|
4182
4182
|
position: absolute;
|
|
4183
4183
|
top: 0;
|
|
4184
4184
|
left: 0;
|
|
@@ -4186,15 +4186,15 @@ body a.Button_button__NGQyO {
|
|
|
4186
4186
|
bottom: 0;
|
|
4187
4187
|
margin: auto;
|
|
4188
4188
|
}
|
|
4189
|
-
.
|
|
4189
|
+
.Loading_center__ZmUzM {
|
|
4190
4190
|
margin: auto;
|
|
4191
4191
|
}
|
|
4192
|
-
.
|
|
4192
|
+
.Loading_inline__MTFhM {
|
|
4193
4193
|
display: inline-flex;
|
|
4194
4194
|
}
|
|
4195
4195
|
|
|
4196
4196
|
/* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
|
|
4197
|
-
.
|
|
4197
|
+
.Menu_menu__MDZlN {
|
|
4198
4198
|
min-width: 200px;
|
|
4199
4199
|
border: var(--border);
|
|
4200
4200
|
border-radius: var(--border-radius);
|
|
@@ -4203,19 +4203,19 @@ body a.Button_button__NGQyO {
|
|
|
4203
4203
|
background: var(--background-color);
|
|
4204
4204
|
overflow: hidden;
|
|
4205
4205
|
}
|
|
4206
|
-
.
|
|
4206
|
+
.Menu_separator__ZmMzZ {
|
|
4207
4207
|
border-bottom: var(--border);
|
|
4208
4208
|
margin: var(--spacing-2) calc(-1 * var(--spacing-3));
|
|
4209
4209
|
}
|
|
4210
|
-
.
|
|
4210
|
+
.Menu_section__OGU4Y:not(:last-child) {
|
|
4211
4211
|
margin-bottom: var(--spacing-4);
|
|
4212
4212
|
}
|
|
4213
|
-
.
|
|
4213
|
+
.Menu_header__YmNkN {
|
|
4214
4214
|
font-size: var(--font-size-3);
|
|
4215
4215
|
font-weight: var(--font-weight-bold);
|
|
4216
4216
|
padding: var(--padding);
|
|
4217
4217
|
}
|
|
4218
|
-
.
|
|
4218
|
+
.Menu_item__YjkxY {
|
|
4219
4219
|
display: flex;
|
|
4220
4220
|
align-items: center;
|
|
4221
4221
|
justify-content: space-between;
|
|
@@ -4229,33 +4229,34 @@ body a.Button_button__NGQyO {
|
|
|
4229
4229
|
outline: none;
|
|
4230
4230
|
width: 100%;
|
|
4231
4231
|
}
|
|
4232
|
-
.
|
|
4232
|
+
.Menu_item__YjkxY[data-disabled] {
|
|
4233
4233
|
color: var(--font-color-disabled);
|
|
4234
4234
|
}
|
|
4235
|
-
.
|
|
4236
|
-
.
|
|
4235
|
+
.Menu_item__YjkxY[data-focus],
|
|
4236
|
+
.Menu_item__YjkxY[data-focus-visible] {
|
|
4237
4237
|
outline: var(--outline);
|
|
4238
4238
|
background: var(--highlight-color);
|
|
4239
4239
|
}
|
|
4240
|
-
.
|
|
4240
|
+
.Menu_item__YjkxY:hover {
|
|
4241
4241
|
background: var(--highlight-color);
|
|
4242
4242
|
}
|
|
4243
|
-
.
|
|
4243
|
+
.Menu_item__YjkxY[data-selected] {
|
|
4244
4244
|
font-weight: bold;
|
|
4245
|
-
& .
|
|
4245
|
+
& .Menu_checkmark__OTM5Y {
|
|
4246
4246
|
display: flex;
|
|
4247
4247
|
justify-content: flex-end;
|
|
4248
4248
|
}
|
|
4249
4249
|
}
|
|
4250
|
-
.
|
|
4250
|
+
.Menu_checkmark__OTM5Y {
|
|
4251
4251
|
display: none;
|
|
4252
4252
|
}
|
|
4253
|
-
.
|
|
4253
|
+
.Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
|
|
4254
4254
|
display: none;
|
|
4255
4255
|
}
|
|
4256
|
-
.
|
|
4256
|
+
.Menu_label__YjgwY {
|
|
4257
4257
|
display: flex;
|
|
4258
4258
|
flex-direction: row;
|
|
4259
|
+
align-items: center;
|
|
4259
4260
|
gap: var(--gap);
|
|
4260
4261
|
}
|
|
4261
4262
|
|
|
@@ -4968,18 +4969,19 @@ body a.Button_button__NGQyO {
|
|
|
4968
4969
|
}
|
|
4969
4970
|
|
|
4970
4971
|
/* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
|
|
4971
|
-
.
|
|
4972
|
-
width:
|
|
4972
|
+
.ThemeButton_button__YjE1Y {
|
|
4973
|
+
width: 42px;
|
|
4973
4974
|
display: flex;
|
|
4974
4975
|
justify-content: center;
|
|
4975
4976
|
align-items: center;
|
|
4976
4977
|
cursor: pointer;
|
|
4977
4978
|
}
|
|
4978
|
-
.
|
|
4979
|
+
.ThemeButton_button__YjE1Y > div {
|
|
4979
4980
|
display: flex;
|
|
4980
4981
|
justify-content: center;
|
|
4981
4982
|
align-items: center;
|
|
4982
4983
|
position: absolute;
|
|
4984
|
+
width: 50px;
|
|
4983
4985
|
}
|
|
4984
4986
|
|
|
4985
4987
|
/* virtual-css:css:9e5c8c52b82d4f77f80ba529f88ddc39 */
|
package/dist/index.d.mts
CHANGED
|
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
|
471
471
|
interface LoadingProps {
|
|
472
472
|
size?: 'sm' | 'md' | 'lg';
|
|
473
473
|
icon?: 'dots' | 'spinner';
|
|
474
|
-
|
|
474
|
+
placement?: 'absolute' | 'center' | 'inline';
|
|
475
475
|
className?: string;
|
|
476
476
|
}
|
|
477
|
-
declare function Loading(props: LoadingProps): react.JSX.Element;
|
|
477
|
+
declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
|
|
478
478
|
|
|
479
479
|
interface MenuProps extends MenuProps$1<any> {
|
|
480
480
|
className?: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
|
|
|
471
471
|
interface LoadingProps {
|
|
472
472
|
size?: 'sm' | 'md' | 'lg';
|
|
473
473
|
icon?: 'dots' | 'spinner';
|
|
474
|
-
|
|
474
|
+
placement?: 'absolute' | 'center' | 'inline';
|
|
475
475
|
className?: string;
|
|
476
476
|
}
|
|
477
|
-
declare function Loading(props: LoadingProps): react.JSX.Element;
|
|
477
|
+
declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
|
|
478
478
|
|
|
479
479
|
interface MenuProps extends MenuProps$1<any> {
|
|
480
480
|
className?: string;
|
package/dist/index.js
CHANGED
|
@@ -33562,14 +33562,19 @@ function InlineEditField({
|
|
|
33562
33562
|
var import_classnames35 = __toESM(require_classnames());
|
|
33563
33563
|
|
|
33564
33564
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
33565
|
-
var Loading_default = { "loading": "
|
|
33565
|
+
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33566
33566
|
|
|
33567
33567
|
// src/components/Loading.tsx
|
|
33568
33568
|
var import_jsx_runtime50 = require("react/jsx-runtime");
|
|
33569
|
-
function Loading(
|
|
33570
|
-
|
|
33571
|
-
|
|
33572
|
-
|
|
33569
|
+
function Loading({
|
|
33570
|
+
size,
|
|
33571
|
+
placement = "inline",
|
|
33572
|
+
icon = "spinner",
|
|
33573
|
+
className,
|
|
33574
|
+
...props
|
|
33575
|
+
}) {
|
|
33576
|
+
return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33577
|
+
icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dots, { size }),
|
|
33573
33578
|
icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Spinner, { size })
|
|
33574
33579
|
] });
|
|
33575
33580
|
}
|
|
@@ -33578,7 +33583,7 @@ function Loading(props) {
|
|
|
33578
33583
|
var import_classnames36 = __toESM(require_classnames());
|
|
33579
33584
|
|
|
33580
33585
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
33581
|
-
var Menu_default = { "menu": "
|
|
33586
|
+
var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
|
|
33582
33587
|
|
|
33583
33588
|
// src/components/Menu.tsx
|
|
33584
33589
|
var import_jsx_runtime51 = require("react/jsx-runtime");
|
|
@@ -33983,7 +33988,7 @@ function Select2({
|
|
|
33983
33988
|
autoFocus: true
|
|
33984
33989
|
}
|
|
33985
33990
|
),
|
|
33986
|
-
isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots",
|
|
33991
|
+
isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
33987
33992
|
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
|
|
33988
33993
|
List,
|
|
33989
33994
|
{
|
|
@@ -34179,7 +34184,7 @@ function TabPanel2({ children, ...props }) {
|
|
|
34179
34184
|
var import_classnames51 = __toESM(require_classnames());
|
|
34180
34185
|
|
|
34181
34186
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
34182
|
-
var ThemeButton_default = { "button": "
|
|
34187
|
+
var ThemeButton_default = { "button": "ThemeButton_button__YjE1Y" };
|
|
34183
34188
|
|
|
34184
34189
|
// src/components/ThemeButton.tsx
|
|
34185
34190
|
var import_jsx_runtime67 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -33445,14 +33445,19 @@ function InlineEditField({
|
|
|
33445
33445
|
var import_classnames35 = __toESM(require_classnames());
|
|
33446
33446
|
|
|
33447
33447
|
// css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
|
|
33448
|
-
var Loading_default = { "loading": "
|
|
33448
|
+
var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
|
|
33449
33449
|
|
|
33450
33450
|
// src/components/Loading.tsx
|
|
33451
33451
|
import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
33452
|
-
function Loading(
|
|
33453
|
-
|
|
33454
|
-
|
|
33455
|
-
|
|
33452
|
+
function Loading({
|
|
33453
|
+
size,
|
|
33454
|
+
placement = "inline",
|
|
33455
|
+
icon = "spinner",
|
|
33456
|
+
className,
|
|
33457
|
+
...props
|
|
33458
|
+
}) {
|
|
33459
|
+
return /* @__PURE__ */ jsxs27("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
|
|
33460
|
+
icon === "dots" && /* @__PURE__ */ jsx50(Dots, { size }),
|
|
33456
33461
|
icon === "spinner" && /* @__PURE__ */ jsx50(Spinner, { size })
|
|
33457
33462
|
] });
|
|
33458
33463
|
}
|
|
@@ -33461,7 +33466,7 @@ function Loading(props) {
|
|
|
33461
33466
|
var import_classnames36 = __toESM(require_classnames());
|
|
33462
33467
|
|
|
33463
33468
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
33464
|
-
var Menu_default = { "menu": "
|
|
33469
|
+
var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
|
|
33465
33470
|
|
|
33466
33471
|
// src/components/Menu.tsx
|
|
33467
33472
|
import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
@@ -33870,7 +33875,7 @@ function Select2({
|
|
|
33870
33875
|
autoFocus: true
|
|
33871
33876
|
}
|
|
33872
33877
|
),
|
|
33873
|
-
isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots",
|
|
33878
|
+
isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots", placement: "center", size: "sm" }),
|
|
33874
33879
|
/* @__PURE__ */ jsx61(
|
|
33875
33880
|
List,
|
|
33876
33881
|
{
|
|
@@ -34066,7 +34071,7 @@ function TabPanel2({ children, ...props }) {
|
|
|
34066
34071
|
var import_classnames51 = __toESM(require_classnames());
|
|
34067
34072
|
|
|
34068
34073
|
// css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
|
|
34069
|
-
var ThemeButton_default = { "button": "
|
|
34074
|
+
var ThemeButton_default = { "button": "ThemeButton_button__YjE1Y" };
|
|
34070
34075
|
|
|
34071
34076
|
// src/components/ThemeButton.tsx
|
|
34072
34077
|
import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -4488,7 +4488,7 @@ body a.Button_button__NGQyO {
|
|
|
4488
4488
|
}
|
|
4489
4489
|
|
|
4490
4490
|
/* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
|
|
4491
|
-
.
|
|
4491
|
+
.Loading_loading__M2YyY {
|
|
4492
4492
|
position: relative;
|
|
4493
4493
|
display: flex;
|
|
4494
4494
|
justify-content: center;
|
|
@@ -4496,7 +4496,7 @@ body a.Button_button__NGQyO {
|
|
|
4496
4496
|
flex: 1;
|
|
4497
4497
|
pointer-events: none;
|
|
4498
4498
|
}
|
|
4499
|
-
.
|
|
4499
|
+
.Loading_absolute__N2IxN {
|
|
4500
4500
|
position: absolute;
|
|
4501
4501
|
top: 0;
|
|
4502
4502
|
left: 0;
|
|
@@ -4504,15 +4504,15 @@ body a.Button_button__NGQyO {
|
|
|
4504
4504
|
bottom: 0;
|
|
4505
4505
|
margin: auto;
|
|
4506
4506
|
}
|
|
4507
|
-
.
|
|
4507
|
+
.Loading_center__ZmUzM {
|
|
4508
4508
|
margin: auto;
|
|
4509
4509
|
}
|
|
4510
|
-
.
|
|
4510
|
+
.Loading_inline__MTFhM {
|
|
4511
4511
|
display: inline-flex;
|
|
4512
4512
|
}
|
|
4513
4513
|
|
|
4514
4514
|
/* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
|
|
4515
|
-
.
|
|
4515
|
+
.Menu_menu__MDZlN {
|
|
4516
4516
|
min-width: 200px;
|
|
4517
4517
|
border: var(--border);
|
|
4518
4518
|
border-radius: var(--border-radius);
|
|
@@ -4521,19 +4521,19 @@ body a.Button_button__NGQyO {
|
|
|
4521
4521
|
background: var(--background-color);
|
|
4522
4522
|
overflow: hidden;
|
|
4523
4523
|
}
|
|
4524
|
-
.
|
|
4524
|
+
.Menu_separator__ZmMzZ {
|
|
4525
4525
|
border-bottom: var(--border);
|
|
4526
4526
|
margin: var(--spacing-2) calc(-1 * var(--spacing-3));
|
|
4527
4527
|
}
|
|
4528
|
-
.
|
|
4528
|
+
.Menu_section__OGU4Y:not(:last-child) {
|
|
4529
4529
|
margin-bottom: var(--spacing-4);
|
|
4530
4530
|
}
|
|
4531
|
-
.
|
|
4531
|
+
.Menu_header__YmNkN {
|
|
4532
4532
|
font-size: var(--font-size-3);
|
|
4533
4533
|
font-weight: var(--font-weight-bold);
|
|
4534
4534
|
padding: var(--padding);
|
|
4535
4535
|
}
|
|
4536
|
-
.
|
|
4536
|
+
.Menu_item__YjkxY {
|
|
4537
4537
|
display: flex;
|
|
4538
4538
|
align-items: center;
|
|
4539
4539
|
justify-content: space-between;
|
|
@@ -4547,33 +4547,34 @@ body a.Button_button__NGQyO {
|
|
|
4547
4547
|
outline: none;
|
|
4548
4548
|
width: 100%;
|
|
4549
4549
|
}
|
|
4550
|
-
.
|
|
4550
|
+
.Menu_item__YjkxY[data-disabled] {
|
|
4551
4551
|
color: var(--font-color-disabled);
|
|
4552
4552
|
}
|
|
4553
|
-
.
|
|
4554
|
-
.
|
|
4553
|
+
.Menu_item__YjkxY[data-focus],
|
|
4554
|
+
.Menu_item__YjkxY[data-focus-visible] {
|
|
4555
4555
|
outline: var(--outline);
|
|
4556
4556
|
background: var(--highlight-color);
|
|
4557
4557
|
}
|
|
4558
|
-
.
|
|
4558
|
+
.Menu_item__YjkxY:hover {
|
|
4559
4559
|
background: var(--highlight-color);
|
|
4560
4560
|
}
|
|
4561
|
-
.
|
|
4561
|
+
.Menu_item__YjkxY[data-selected] {
|
|
4562
4562
|
font-weight: bold;
|
|
4563
|
-
& .
|
|
4563
|
+
& .Menu_checkmark__OTM5Y {
|
|
4564
4564
|
display: flex;
|
|
4565
4565
|
justify-content: flex-end;
|
|
4566
4566
|
}
|
|
4567
4567
|
}
|
|
4568
|
-
.
|
|
4568
|
+
.Menu_checkmark__OTM5Y {
|
|
4569
4569
|
display: none;
|
|
4570
4570
|
}
|
|
4571
|
-
.
|
|
4571
|
+
.Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
|
|
4572
4572
|
display: none;
|
|
4573
4573
|
}
|
|
4574
|
-
.
|
|
4574
|
+
.Menu_label__YjgwY {
|
|
4575
4575
|
display: flex;
|
|
4576
4576
|
flex-direction: row;
|
|
4577
|
+
align-items: center;
|
|
4577
4578
|
gap: var(--gap);
|
|
4578
4579
|
}
|
|
4579
4580
|
|
|
@@ -5286,18 +5287,19 @@ body a.Button_button__NGQyO {
|
|
|
5286
5287
|
}
|
|
5287
5288
|
|
|
5288
5289
|
/* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
|
|
5289
|
-
.
|
|
5290
|
-
width:
|
|
5290
|
+
.ThemeButton_button__YjE1Y {
|
|
5291
|
+
width: 42px;
|
|
5291
5292
|
display: flex;
|
|
5292
5293
|
justify-content: center;
|
|
5293
5294
|
align-items: center;
|
|
5294
5295
|
cursor: pointer;
|
|
5295
5296
|
}
|
|
5296
|
-
.
|
|
5297
|
+
.ThemeButton_button__YjE1Y > div {
|
|
5297
5298
|
display: flex;
|
|
5298
5299
|
justify-content: center;
|
|
5299
5300
|
align-items: center;
|
|
5300
5301
|
position: absolute;
|
|
5302
|
+
width: 50px;
|
|
5301
5303
|
}
|
|
5302
5304
|
|
|
5303
5305
|
/* virtual-css:css:9e5c8c52b82d4f77f80ba529f88ddc39 */
|