@umami/react-zen 0.160.0 → 0.162.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 +21 -23
- package/dist/index.js +3 -8
- package/dist/index.mjs +3 -8
- package/package.json +1 -1
- package/styles.css +21 -23
package/dist/index.css
CHANGED
|
@@ -4631,7 +4631,7 @@ body a.Button_button__ZGNlZ {
|
|
|
4631
4631
|
}
|
|
4632
4632
|
|
|
4633
4633
|
/* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
|
|
4634
|
-
.
|
|
4634
|
+
.Sidebar_sidebar__MDdkM {
|
|
4635
4635
|
height: 100%;
|
|
4636
4636
|
font-size: var(--font-size);
|
|
4637
4637
|
border-right: 1px solid var(--border-color);
|
|
@@ -4641,29 +4641,29 @@ body a.Button_button__ZGNlZ {
|
|
|
4641
4641
|
--sidebar-expanded-width: 260px;
|
|
4642
4642
|
--sidebar-collapsed-width: 68px;
|
|
4643
4643
|
}
|
|
4644
|
-
.
|
|
4644
|
+
.Sidebar_header__YzgwY {
|
|
4645
4645
|
display: flex;
|
|
4646
4646
|
align-items: center;
|
|
4647
4647
|
gap: var(--gap);
|
|
4648
4648
|
padding: var(--padding);
|
|
4649
4649
|
}
|
|
4650
|
-
.
|
|
4650
|
+
.Sidebar_header__YzgwY .Sidebar_label__ZWRjN {
|
|
4651
4651
|
font-weight: var(--font-weight-bold);
|
|
4652
4652
|
}
|
|
4653
|
-
.
|
|
4653
|
+
.Sidebar_section__N2E1Y {
|
|
4654
4654
|
padding: var(--spacing-3);
|
|
4655
4655
|
overflow: hidden;
|
|
4656
4656
|
}
|
|
4657
|
-
.
|
|
4657
|
+
.Sidebar_title__ZjM4Z {
|
|
4658
4658
|
font-weight: var(--font-weight-bold);
|
|
4659
4659
|
}
|
|
4660
|
-
.
|
|
4660
|
+
.Sidebar_content__ZTA1O {
|
|
4661
4661
|
display: grid;
|
|
4662
4662
|
min-height: 40px;
|
|
4663
4663
|
gap: var(--gap);
|
|
4664
4664
|
overflow: hidden;
|
|
4665
4665
|
}
|
|
4666
|
-
.
|
|
4666
|
+
.Sidebar_item__ZWVjN {
|
|
4667
4667
|
display: flex;
|
|
4668
4668
|
align-items: center;
|
|
4669
4669
|
justify-content: flex-start;
|
|
@@ -4677,39 +4677,37 @@ body a.Button_button__ZGNlZ {
|
|
|
4677
4677
|
white-space: nowrap;
|
|
4678
4678
|
overflow: hidden;
|
|
4679
4679
|
}
|
|
4680
|
-
.
|
|
4680
|
+
.Sidebar_item__ZWVjN.Sidebar_selected__NjU5Z {
|
|
4681
4681
|
font-weight: var(--font-weight-bold);
|
|
4682
4682
|
}
|
|
4683
|
-
.
|
|
4684
|
-
gap: 0;
|
|
4685
|
-
}
|
|
4686
|
-
.Sidebar_item__N2M3M:hover {
|
|
4683
|
+
.Sidebar_item__ZWVjN:hover {
|
|
4687
4684
|
color: var(--font-color);
|
|
4688
4685
|
}
|
|
4689
|
-
.
|
|
4686
|
+
.Sidebar_label__ZWRjN {
|
|
4690
4687
|
opacity: 1;
|
|
4691
4688
|
width: 100%;
|
|
4692
4689
|
transition: all 0.3s;
|
|
4693
4690
|
}
|
|
4694
|
-
.
|
|
4695
|
-
opacity: 0;
|
|
4696
|
-
width: 0;
|
|
4697
|
-
transition: all 0.3s;
|
|
4698
|
-
}
|
|
4699
|
-
.Sidebar_collapsed__OWQ2O {
|
|
4691
|
+
.Sidebar_collapsed__ZGQyN {
|
|
4700
4692
|
width: var(--sidebar-collapsed-width);
|
|
4701
4693
|
transition: width 0.2s ease-in-out;
|
|
4702
4694
|
}
|
|
4703
|
-
.
|
|
4695
|
+
.Sidebar_collapsed__ZGQyN .Sidebar_item__ZWVjN {
|
|
4696
|
+
gap: 0;
|
|
4697
|
+
}
|
|
4698
|
+
.Sidebar_collapsed__ZGQyN .Sidebar_label__ZWRjN {
|
|
4699
|
+
display: none;
|
|
4700
|
+
}
|
|
4701
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN {
|
|
4704
4702
|
color: var(--font-color-muted);
|
|
4705
4703
|
}
|
|
4706
|
-
.
|
|
4704
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN:hover {
|
|
4707
4705
|
color: var(--font-color);
|
|
4708
4706
|
}
|
|
4709
|
-
.
|
|
4707
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN.Sidebar_selected__NjU5Z {
|
|
4710
4708
|
color: var(--font-color);
|
|
4711
4709
|
}
|
|
4712
|
-
.
|
|
4710
|
+
.Sidebar_sidebar__MDdkM.Sidebar_noborder__ZTFmM {
|
|
4713
4711
|
border: 0;
|
|
4714
4712
|
}
|
|
4715
4713
|
|
package/dist/index.js
CHANGED
|
@@ -31778,7 +31778,7 @@ var import_react189 = require("react");
|
|
|
31778
31778
|
var import_classnames46 = __toESM(require_classnames());
|
|
31779
31779
|
|
|
31780
31780
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31781
|
-
var Sidebar_default = { "sidebar": "
|
|
31781
|
+
var Sidebar_default = { "sidebar": "Sidebar_sidebar__MDdkM", "header": "Sidebar_header__YzgwY", "label": "Sidebar_label__ZWRjN", "section": "Sidebar_section__N2E1Y", "title": "Sidebar_title__ZjM4Z", "content": "Sidebar_content__ZTA1O", "item": "Sidebar_item__ZWVjN", "selected": "Sidebar_selected__NjU5Z", "collapsed": "Sidebar_collapsed__ZGQyN", "muted": "Sidebar_muted__MTI3O", "noborder": "Sidebar_noborder__ZTFmM" };
|
|
31782
31782
|
|
|
31783
31783
|
// src/components/Sidebar.tsx
|
|
31784
31784
|
var import_jsx_runtime61 = require("react/jsx-runtime");
|
|
@@ -31827,7 +31827,7 @@ function SidebarHeader({
|
|
|
31827
31827
|
}) {
|
|
31828
31828
|
return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31829
31829
|
icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31830
|
-
/* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className:
|
|
31830
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: Sidebar_default.label, children: label }),
|
|
31831
31831
|
children
|
|
31832
31832
|
] });
|
|
31833
31833
|
}
|
|
@@ -31847,12 +31847,7 @@ function SidebarItem({
|
|
|
31847
31847
|
...props,
|
|
31848
31848
|
backgroundColor: isSelected && itemBackgroundColor,
|
|
31849
31849
|
hoverBackgroundColor: itemBackgroundColor,
|
|
31850
|
-
className: (0, import_classnames46.default)(
|
|
31851
|
-
Sidebar_default.item,
|
|
31852
|
-
className,
|
|
31853
|
-
isSelected && Sidebar_default.selected,
|
|
31854
|
-
isCollapsed && Sidebar_default.collapsed
|
|
31855
|
-
),
|
|
31850
|
+
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31856
31851
|
children: [
|
|
31857
31852
|
icon && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Icon2, { size: "sm", children: icon }),
|
|
31858
31853
|
label && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
package/dist/index.mjs
CHANGED
|
@@ -31666,7 +31666,7 @@ var import_classnames46 = __toESM(require_classnames());
|
|
|
31666
31666
|
import { createContext as createContext5, useContext as useContext7 } from "react";
|
|
31667
31667
|
|
|
31668
31668
|
// css-modules:E:\dev\umami-react-zen\src\components\Sidebar.module.css
|
|
31669
|
-
var Sidebar_default = { "sidebar": "
|
|
31669
|
+
var Sidebar_default = { "sidebar": "Sidebar_sidebar__MDdkM", "header": "Sidebar_header__YzgwY", "label": "Sidebar_label__ZWRjN", "section": "Sidebar_section__N2E1Y", "title": "Sidebar_title__ZjM4Z", "content": "Sidebar_content__ZTA1O", "item": "Sidebar_item__ZWVjN", "selected": "Sidebar_selected__NjU5Z", "collapsed": "Sidebar_collapsed__ZGQyN", "muted": "Sidebar_muted__MTI3O", "noborder": "Sidebar_noborder__ZTFmM" };
|
|
31670
31670
|
|
|
31671
31671
|
// src/components/Sidebar.tsx
|
|
31672
31672
|
import { jsx as jsx61, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
@@ -31715,7 +31715,7 @@ function SidebarHeader({
|
|
|
31715
31715
|
}) {
|
|
31716
31716
|
return /* @__PURE__ */ jsxs36(Row, { ...props, className: (0, import_classnames46.default)(Sidebar_default.header, className), children: [
|
|
31717
31717
|
icon && /* @__PURE__ */ jsx61(Icon2, { size: "sm", children: icon }),
|
|
31718
|
-
/* @__PURE__ */ jsx61("div", { className:
|
|
31718
|
+
label && /* @__PURE__ */ jsx61("div", { className: Sidebar_default.label, children: label }),
|
|
31719
31719
|
children
|
|
31720
31720
|
] });
|
|
31721
31721
|
}
|
|
@@ -31735,12 +31735,7 @@ function SidebarItem({
|
|
|
31735
31735
|
...props,
|
|
31736
31736
|
backgroundColor: isSelected && itemBackgroundColor,
|
|
31737
31737
|
hoverBackgroundColor: itemBackgroundColor,
|
|
31738
|
-
className: (0, import_classnames46.default)(
|
|
31739
|
-
Sidebar_default.item,
|
|
31740
|
-
className,
|
|
31741
|
-
isSelected && Sidebar_default.selected,
|
|
31742
|
-
isCollapsed && Sidebar_default.collapsed
|
|
31743
|
-
),
|
|
31738
|
+
className: (0, import_classnames46.default)(Sidebar_default.item, className, isSelected && Sidebar_default.selected),
|
|
31744
31739
|
children: [
|
|
31745
31740
|
icon && /* @__PURE__ */ jsx61(Icon2, { size: "sm", children: icon }),
|
|
31746
31741
|
label && /* @__PURE__ */ jsx61(Text, { className: (0, import_classnames46.default)(Sidebar_default.label), children: label }),
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -4949,7 +4949,7 @@ body a.Button_button__ZGNlZ {
|
|
|
4949
4949
|
}
|
|
4950
4950
|
|
|
4951
4951
|
/* virtual-css:css:844962527a8f0e375161b58db0fc39ed */
|
|
4952
|
-
.
|
|
4952
|
+
.Sidebar_sidebar__MDdkM {
|
|
4953
4953
|
height: 100%;
|
|
4954
4954
|
font-size: var(--font-size);
|
|
4955
4955
|
border-right: 1px solid var(--border-color);
|
|
@@ -4959,29 +4959,29 @@ body a.Button_button__ZGNlZ {
|
|
|
4959
4959
|
--sidebar-expanded-width: 260px;
|
|
4960
4960
|
--sidebar-collapsed-width: 68px;
|
|
4961
4961
|
}
|
|
4962
|
-
.
|
|
4962
|
+
.Sidebar_header__YzgwY {
|
|
4963
4963
|
display: flex;
|
|
4964
4964
|
align-items: center;
|
|
4965
4965
|
gap: var(--gap);
|
|
4966
4966
|
padding: var(--padding);
|
|
4967
4967
|
}
|
|
4968
|
-
.
|
|
4968
|
+
.Sidebar_header__YzgwY .Sidebar_label__ZWRjN {
|
|
4969
4969
|
font-weight: var(--font-weight-bold);
|
|
4970
4970
|
}
|
|
4971
|
-
.
|
|
4971
|
+
.Sidebar_section__N2E1Y {
|
|
4972
4972
|
padding: var(--spacing-3);
|
|
4973
4973
|
overflow: hidden;
|
|
4974
4974
|
}
|
|
4975
|
-
.
|
|
4975
|
+
.Sidebar_title__ZjM4Z {
|
|
4976
4976
|
font-weight: var(--font-weight-bold);
|
|
4977
4977
|
}
|
|
4978
|
-
.
|
|
4978
|
+
.Sidebar_content__ZTA1O {
|
|
4979
4979
|
display: grid;
|
|
4980
4980
|
min-height: 40px;
|
|
4981
4981
|
gap: var(--gap);
|
|
4982
4982
|
overflow: hidden;
|
|
4983
4983
|
}
|
|
4984
|
-
.
|
|
4984
|
+
.Sidebar_item__ZWVjN {
|
|
4985
4985
|
display: flex;
|
|
4986
4986
|
align-items: center;
|
|
4987
4987
|
justify-content: flex-start;
|
|
@@ -4995,39 +4995,37 @@ body a.Button_button__ZGNlZ {
|
|
|
4995
4995
|
white-space: nowrap;
|
|
4996
4996
|
overflow: hidden;
|
|
4997
4997
|
}
|
|
4998
|
-
.
|
|
4998
|
+
.Sidebar_item__ZWVjN.Sidebar_selected__NjU5Z {
|
|
4999
4999
|
font-weight: var(--font-weight-bold);
|
|
5000
5000
|
}
|
|
5001
|
-
.
|
|
5002
|
-
gap: 0;
|
|
5003
|
-
}
|
|
5004
|
-
.Sidebar_item__N2M3M:hover {
|
|
5001
|
+
.Sidebar_item__ZWVjN:hover {
|
|
5005
5002
|
color: var(--font-color);
|
|
5006
5003
|
}
|
|
5007
|
-
.
|
|
5004
|
+
.Sidebar_label__ZWRjN {
|
|
5008
5005
|
opacity: 1;
|
|
5009
5006
|
width: 100%;
|
|
5010
5007
|
transition: all 0.3s;
|
|
5011
5008
|
}
|
|
5012
|
-
.
|
|
5013
|
-
opacity: 0;
|
|
5014
|
-
width: 0;
|
|
5015
|
-
transition: all 0.3s;
|
|
5016
|
-
}
|
|
5017
|
-
.Sidebar_collapsed__OWQ2O {
|
|
5009
|
+
.Sidebar_collapsed__ZGQyN {
|
|
5018
5010
|
width: var(--sidebar-collapsed-width);
|
|
5019
5011
|
transition: width 0.2s ease-in-out;
|
|
5020
5012
|
}
|
|
5021
|
-
.
|
|
5013
|
+
.Sidebar_collapsed__ZGQyN .Sidebar_item__ZWVjN {
|
|
5014
|
+
gap: 0;
|
|
5015
|
+
}
|
|
5016
|
+
.Sidebar_collapsed__ZGQyN .Sidebar_label__ZWRjN {
|
|
5017
|
+
display: none;
|
|
5018
|
+
}
|
|
5019
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN {
|
|
5022
5020
|
color: var(--font-color-muted);
|
|
5023
5021
|
}
|
|
5024
|
-
.
|
|
5022
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN:hover {
|
|
5025
5023
|
color: var(--font-color);
|
|
5026
5024
|
}
|
|
5027
|
-
.
|
|
5025
|
+
.Sidebar_muted__MTI3O .Sidebar_item__ZWVjN.Sidebar_selected__NjU5Z {
|
|
5028
5026
|
color: var(--font-color);
|
|
5029
5027
|
}
|
|
5030
|
-
.
|
|
5028
|
+
.Sidebar_sidebar__MDdkM.Sidebar_noborder__ZTFmM {
|
|
5031
5029
|
border: 0;
|
|
5032
5030
|
}
|
|
5033
5031
|
|