@gympass/yoga 7.88.1 → 7.89.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.
Files changed (55) hide show
  1. package/cjs/NavigationMenu/NavigationMenu.theme.js +80 -0
  2. package/cjs/NavigationMenu/index.js +35 -0
  3. package/cjs/NavigationMenu/web/BottomItems/BottomItem.js +165 -0
  4. package/cjs/NavigationMenu/web/BottomItems/BottomItems.js +66 -0
  5. package/cjs/NavigationMenu/web/BottomItems/index.js +41 -0
  6. package/cjs/NavigationMenu/web/Item/Item.js +55 -0
  7. package/cjs/NavigationMenu/web/Item/Subitem.js +39 -0
  8. package/cjs/NavigationMenu/web/Item/index.js +41 -0
  9. package/cjs/NavigationMenu/web/Item/styles.js +188 -0
  10. package/cjs/NavigationMenu/web/Menu/Menu.js +109 -0
  11. package/cjs/NavigationMenu/web/Menu/index.js +35 -0
  12. package/cjs/NavigationMenu/web/NavigationMenu.js +155 -0
  13. package/cjs/NavigationMenu/web/NavigationMenu.test.js +178 -0
  14. package/cjs/NavigationMenu/web/Switcher/Actions.js +72 -0
  15. package/cjs/NavigationMenu/web/Switcher/Switcher.js +105 -0
  16. package/cjs/NavigationMenu/web/Switcher/index.js +35 -0
  17. package/cjs/NavigationMenu/web/index.js +35 -0
  18. package/cjs/Theme/theme/componentThemes.js +114 -0
  19. package/cjs/Theme/theme/theme.js +3 -3
  20. package/cjs/index.js +3 -0
  21. package/cjs/yoga.d.js +1 -0
  22. package/esm/NavigationMenu/NavigationMenu.theme.js +60 -0
  23. package/esm/NavigationMenu/index.js +5 -0
  24. package/esm/NavigationMenu/web/BottomItems/BottomItem.js +135 -0
  25. package/esm/NavigationMenu/web/BottomItems/BottomItems.js +36 -0
  26. package/esm/NavigationMenu/web/BottomItems/index.js +6 -0
  27. package/esm/NavigationMenu/web/Item/Item.js +25 -0
  28. package/esm/NavigationMenu/web/Item/Subitem.js +9 -0
  29. package/esm/NavigationMenu/web/Item/index.js +6 -0
  30. package/esm/NavigationMenu/web/Item/styles.js +151 -0
  31. package/esm/NavigationMenu/web/Menu/Menu.js +79 -0
  32. package/esm/NavigationMenu/web/Menu/index.js +5 -0
  33. package/esm/NavigationMenu/web/NavigationMenu.js +125 -0
  34. package/esm/NavigationMenu/web/NavigationMenu.test.js +155 -0
  35. package/esm/NavigationMenu/web/Switcher/Actions.js +42 -0
  36. package/esm/NavigationMenu/web/Switcher/Switcher.js +75 -0
  37. package/esm/NavigationMenu/web/Switcher/index.js +5 -0
  38. package/esm/NavigationMenu/web/index.js +5 -0
  39. package/esm/Theme/theme/componentThemes.js +84 -0
  40. package/esm/Theme/theme/theme.js +2 -2
  41. package/esm/index.js +2 -0
  42. package/esm/yoga.d.js +0 -0
  43. package/package.json +2 -2
  44. package/typings/Icon-4557ae6b.d.ts +3 -0
  45. package/typings/NavigationMenu/NavigationMenu.theme.d.ts +73 -0
  46. package/typings/NavigationMenu/index.d.ts +7 -0
  47. package/typings/NavigationMenu/web/BottomItems/index.d.ts +16 -0
  48. package/typings/NavigationMenu/web/Item/index.d.ts +23 -0
  49. package/typings/NavigationMenu/web/Item/styles.d.ts +6 -0
  50. package/typings/NavigationMenu/web/Menu/index.d.ts +11 -0
  51. package/typings/NavigationMenu/web/Switcher/index.d.ts +6 -0
  52. package/typings/NavigationMenu/web/index.d.ts +7 -0
  53. package/typings/NavigationMenu-7f690c1e.d.ts +55 -0
  54. package/typings/Switcher-cab05b9f.d.ts +18 -0
  55. package/typings/index.d.ts +10 -9
@@ -0,0 +1,80 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+ var NavigationMenu_theme_exports = {};
20
+ __export(NavigationMenu_theme_exports, {
21
+ default: () => NavigationMenu_theme_default
22
+ });
23
+ module.exports = __toCommonJS(NavigationMenu_theme_exports);
24
+ const NavigationMenu = ({ colors, fontWeights, radii, spacing }) => ({
25
+ avatar: {
26
+ height: spacing.xlarge,
27
+ width: spacing.xlarge
28
+ },
29
+ backgroundColor: {
30
+ default: colors.clear,
31
+ hover: colors.light,
32
+ stamina: colors.stamina,
33
+ yoga: colors.yoga,
34
+ white: colors.white
35
+ },
36
+ border: {
37
+ color: {
38
+ default: colors.light,
39
+ white: colors.white
40
+ },
41
+ radius: {
42
+ default: radii.small,
43
+ circle: radii.circle
44
+ }
45
+ },
46
+ font: {
47
+ color: {
48
+ default: colors.deep,
49
+ active: colors.vibin,
50
+ hover: colors.stamina
51
+ },
52
+ weight: { medium: fontWeights.medium }
53
+ },
54
+ gap: {
55
+ xxxsmall: spacing.xxxsmall,
56
+ xxsmall: spacing.xxsmall,
57
+ medium: spacing.medium
58
+ },
59
+ height: { xxlarge: spacing.xxlarge, xlarge: spacing.xlarge },
60
+ icon: {
61
+ height: spacing.medium,
62
+ width: spacing.medium,
63
+ fill: {
64
+ default: colors.deep,
65
+ active: colors.vibin,
66
+ hover: colors.stamina
67
+ }
68
+ },
69
+ padding: {
70
+ xxxsmall: spacing.xxxsmall,
71
+ xxsmall: spacing.xxsmall,
72
+ xsmall: spacing.xsmall,
73
+ small: spacing.small
74
+ },
75
+ tag: {
76
+ color: { default: colors.white }
77
+ },
78
+ width: { xxlarge: spacing.xxlarge, xlarge: spacing.xlarge }
79
+ });
80
+ var NavigationMenu_theme_default = NavigationMenu;
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var NavigationMenu_exports = {};
30
+ __export(NavigationMenu_exports, {
31
+ default: () => NavigationMenu_default
32
+ });
33
+ module.exports = __toCommonJS(NavigationMenu_exports);
34
+ var import_web = __toESM(require("./web"));
35
+ var NavigationMenu_default = import_web.default;
@@ -0,0 +1,165 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var BottomItem_exports = {};
30
+ __export(BottomItem_exports, {
31
+ default: () => BottomItem_default
32
+ });
33
+ module.exports = __toCommonJS(BottomItem_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_styled_components = __toESM(require("styled-components"));
36
+ var import_Icon = __toESM(require("../../../Icon"));
37
+ var import_Box = __toESM(require("../../../Box"));
38
+ var import_Text = __toESM(require("../../../Text"));
39
+ const StyledText = (0, import_styled_components.default)(import_Text.default)`
40
+ ${({
41
+ theme: {
42
+ yoga: {
43
+ components: {
44
+ navigationmenu: { font }
45
+ }
46
+ }
47
+ }
48
+ }) => import_styled_components.css`
49
+ color: ${font.color.default};
50
+ max-width: 100%;
51
+ white-space: nowrap;
52
+ text-overflow: ellipsis;
53
+ overflow: hidden;
54
+ `}
55
+ `;
56
+ const Active = import_styled_components.css`
57
+ ${({
58
+ theme: {
59
+ yoga: {
60
+ components: {
61
+ navigationmenu: { backgroundColor, icon, font }
62
+ }
63
+ }
64
+ }
65
+ }) => import_styled_components.css`
66
+ :not(:last-child) {
67
+ pointer-events: none;
68
+ }
69
+
70
+ div {
71
+ background-color: ${backgroundColor.default};
72
+
73
+ ${StyledText} {
74
+ color: ${font.color.active};
75
+ }
76
+
77
+ svg {
78
+ fill: ${icon.fill.active};
79
+ }
80
+ }
81
+ `}
82
+ `;
83
+ const StyledItem = import_styled_components.default.li`
84
+ ${({
85
+ isActive,
86
+ theme: {
87
+ yoga: {
88
+ components: {
89
+ navigationmenu: { backgroundColor, border, icon, font }
90
+ }
91
+ }
92
+ }
93
+ }) => import_styled_components.css`
94
+ transition: background-color 300ms ease-in-out;
95
+
96
+ background-color: transparent;
97
+ border-radius: ${border.radius.default}px;
98
+ list-style-type: none;
99
+ cursor: pointer;
100
+
101
+ svg {
102
+ height: ${icon.height}px;
103
+ width: ${icon.width}px;
104
+ fill: ${icon.fill.default};
105
+ }
106
+
107
+ &:hover,
108
+ &:focus {
109
+ ${!isActive && import_styled_components.css`
110
+ background-color: ${backgroundColor.hover};
111
+
112
+ ${StyledText} {
113
+ color: ${font.color.hover};
114
+ }
115
+
116
+ svg {
117
+ fill: ${icon.fill.hover};
118
+ }
119
+ `};
120
+ }
121
+
122
+ a {
123
+ text-decoration: none;
124
+
125
+ &.active {
126
+ cursor: auto;
127
+
128
+ ${Active}
129
+ }
130
+ }
131
+
132
+ ${isActive && Active};
133
+ `}
134
+ `;
135
+ const StyledTextContainer = (0, import_styled_components.default)(import_Box.default)`
136
+ ${({
137
+ theme: {
138
+ yoga: {
139
+ components: {
140
+ navigationmenu: { border, gap, padding }
141
+ }
142
+ }
143
+ }
144
+ }) => import_styled_components.css`
145
+ display: flex;
146
+ flex-direction: column;
147
+ align-items: center;
148
+ justify-content: center;
149
+ gap: ${gap.xxxsmall}px;
150
+ padding: ${padding.xxsmall}px ${padding.xxxsmall}px;
151
+ border-radius: ${border.radius.default}px;
152
+ `}
153
+ `;
154
+ const BottomItem = ({
155
+ active = false,
156
+ icon,
157
+ label,
158
+ wrapper: Wrapper
159
+ }) => {
160
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItem, { isActive: active, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(StyledTextContainer, { children: [
161
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Icon.default, { as: icon }),
162
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledText, { children: label })
163
+ ] }) }) });
164
+ };
165
+ var BottomItem_default = BottomItem;
@@ -0,0 +1,66 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var BottomItems_exports = {};
30
+ __export(BottomItems_exports, {
31
+ default: () => BottomItems_default
32
+ });
33
+ module.exports = __toCommonJS(BottomItems_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var import_styled_components = __toESM(require("styled-components"));
36
+ var import_yoga_helpers = require("@gympass/yoga-helpers");
37
+ const StyledItemsContainer = import_styled_components.default.nav`
38
+ ${import_yoga_helpers.media.lg`display: none`}
39
+ `;
40
+ const StyledItems = import_styled_components.default.ul`
41
+ ${({
42
+ theme: {
43
+ yoga: {
44
+ components: {
45
+ navigationmenu: { backgroundColor, border, gap, padding }
46
+ }
47
+ }
48
+ }
49
+ }) => import_styled_components.css`
50
+ display: grid;
51
+ grid-auto-columns: minmax(0, 1fr);
52
+ grid-auto-flow: column;
53
+ align-items: center;
54
+ width: 100%;
55
+ height: 74px;
56
+ background-color: ${backgroundColor.default};
57
+ margin: 0;
58
+ padding: ${padding.xxxsmall}px;
59
+ border: 1px solid ${border.color.default};
60
+ gap: ${gap.xxxsmall}px;
61
+ `}
62
+ `;
63
+ const BottomItems = ({ children }) => {
64
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItemsContainer, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(StyledItems, { children }) });
65
+ };
66
+ var BottomItems_default = BottomItems;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var BottomItems_exports = {};
30
+ __export(BottomItems_exports, {
31
+ BottomItem: () => import_BottomItem.default,
32
+ BottomItems: () => import_BottomItems.default
33
+ });
34
+ module.exports = __toCommonJS(BottomItems_exports);
35
+ var import_BottomItems = __toESM(require("./BottomItems"));
36
+ var import_BottomItem = __toESM(require("./BottomItem"));
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ BottomItem,
40
+ BottomItems
41
+ });
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Item_exports = {};
30
+ __export(Item_exports, {
31
+ default: () => Item_default
32
+ });
33
+ module.exports = __toCommonJS(Item_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var Styles = __toESM(require("./styles"));
36
+ const Item = ({
37
+ active = false,
38
+ children,
39
+ expanded = false,
40
+ icon: Icon2,
41
+ label,
42
+ responsive = true,
43
+ tag,
44
+ wrapper: Wrapper
45
+ }) => {
46
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
47
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledItem, { isActive: active, isResponsive: responsive, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Styles.StyledTextContainer, { children: [
48
+ Icon2,
49
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledText, { children: label }),
50
+ tag && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledTag, { children: tag })
51
+ ] }) }) }),
52
+ expanded && children
53
+ ] });
54
+ };
55
+ var Item_default = Item;
@@ -0,0 +1,39 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Subitem_exports = {};
30
+ __export(Subitem_exports, {
31
+ default: () => Subitem_default
32
+ });
33
+ module.exports = __toCommonJS(Subitem_exports);
34
+ var import_jsx_runtime = require("react/jsx-runtime");
35
+ var Styles = __toESM(require("./styles"));
36
+ const Subitem = ({ active = false, label, wrapper: Wrapper }) => {
37
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledItem, { isActive: active, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Wrapper, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledTextContainer, { isSubItem: true, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Styles.StyledText, { children: label }) }) }) });
38
+ };
39
+ var Subitem_default = Subitem;
@@ -0,0 +1,41 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __export = (target, all) => {
9
+ for (var name in all)
10
+ __defProp(target, name, { get: all[name], enumerable: true });
11
+ };
12
+ var __copyProps = (to, from, except, desc) => {
13
+ if (from && typeof from === "object" || typeof from === "function") {
14
+ for (let key of __getOwnPropNames(from))
15
+ if (!__hasOwnProp.call(to, key) && key !== except)
16
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
17
+ }
18
+ return to;
19
+ };
20
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
21
+ // If the importer is in node compatibility mode or this is not an ESM
22
+ // file that has been converted to a CommonJS file using a Babel-
23
+ // compatible transform (i.e. "__esModule" has not been set), then set
24
+ // "default" to the CommonJS "module.exports" for node compatibility.
25
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
26
+ mod
27
+ ));
28
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
29
+ var Item_exports = {};
30
+ __export(Item_exports, {
31
+ Item: () => import_Item.default,
32
+ Subitem: () => import_Subitem.default
33
+ });
34
+ module.exports = __toCommonJS(Item_exports);
35
+ var import_Item = __toESM(require("./Item"));
36
+ var import_Subitem = __toESM(require("./Subitem"));
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ Item,
40
+ Subitem
41
+ });