@vinyasa/navigation 1.0.26

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 (98) hide show
  1. package/README.md +45 -0
  2. package/dist/cjs/breadcrumbs.cjs +240 -0
  3. package/dist/cjs/breadcrumbs.css +58 -0
  4. package/dist/cjs/command-navigation.cjs +215 -0
  5. package/dist/cjs/command-navigation.css +46 -0
  6. package/dist/cjs/index.cjs +2681 -0
  7. package/dist/cjs/index.css +1162 -0
  8. package/dist/cjs/navigation-menu.cjs +302 -0
  9. package/dist/cjs/navigation-menu.css +197 -0
  10. package/dist/cjs/pagination.cjs +462 -0
  11. package/dist/cjs/pagination.css +79 -0
  12. package/dist/cjs/sidebar.cjs +476 -0
  13. package/dist/cjs/sidebar.css +171 -0
  14. package/dist/cjs/stepper.cjs +270 -0
  15. package/dist/cjs/stepper.css +153 -0
  16. package/dist/cjs/tabs.cjs +260 -0
  17. package/dist/cjs/tabs.css +122 -0
  18. package/dist/cjs/top-navigation.cjs +363 -0
  19. package/dist/cjs/top-navigation.css +127 -0
  20. package/dist/cjs/tree-view.cjs +373 -0
  21. package/dist/cjs/tree-view.css +109 -0
  22. package/dist/cjs/workspace-switcher.cjs +249 -0
  23. package/dist/cjs/workspace-switcher.css +100 -0
  24. package/dist/esm/217.css +79 -0
  25. package/dist/esm/217.js +202 -0
  26. package/dist/esm/294.css +100 -0
  27. package/dist/esm/294.js +114 -0
  28. package/dist/esm/375.css +153 -0
  29. package/dist/esm/375.js +120 -0
  30. package/dist/esm/555.css +171 -0
  31. package/dist/esm/555.js +232 -0
  32. package/dist/esm/655.css +58 -0
  33. package/dist/esm/655.js +87 -0
  34. package/dist/esm/66.css +46 -0
  35. package/dist/esm/66.js +92 -0
  36. package/dist/esm/694.css +109 -0
  37. package/dist/esm/694.js +227 -0
  38. package/dist/esm/814.css +197 -0
  39. package/dist/esm/814.js +146 -0
  40. package/dist/esm/862.css +127 -0
  41. package/dist/esm/862.js +130 -0
  42. package/dist/esm/913.css +119 -0
  43. package/dist/esm/913.js +121 -0
  44. package/dist/esm/953.js +87 -0
  45. package/dist/esm/breadcrumbs.d.ts +2 -0
  46. package/dist/esm/breadcrumbs.js +1 -0
  47. package/dist/esm/command-navigation.d.ts +2 -0
  48. package/dist/esm/command-navigation.js +1 -0
  49. package/dist/esm/components/breadcrumbs/Breadcrumbs.css.d.ts +6 -0
  50. package/dist/esm/components/breadcrumbs/Breadcrumbs.d.ts +58 -0
  51. package/dist/esm/components/breadcrumbs/index.d.ts +1 -0
  52. package/dist/esm/components/command-navigation/CommandNavigation.css.d.ts +4 -0
  53. package/dist/esm/components/command-navigation/CommandNavigation.d.ts +50 -0
  54. package/dist/esm/components/command-navigation/index.d.ts +1 -0
  55. package/dist/esm/components/navigation-menu/NavigationMenu.css.d.ts +13 -0
  56. package/dist/esm/components/navigation-menu/NavigationMenu.d.ts +69 -0
  57. package/dist/esm/components/navigation-menu/index.d.ts +1 -0
  58. package/dist/esm/components/pagination/Pagination.css.d.ts +13 -0
  59. package/dist/esm/components/pagination/Pagination.d.ts +69 -0
  60. package/dist/esm/components/pagination/getPaginationRange.d.ts +15 -0
  61. package/dist/esm/components/pagination/index.d.ts +2 -0
  62. package/dist/esm/components/sidebar/Sidebar.css.d.ts +60 -0
  63. package/dist/esm/components/sidebar/Sidebar.d.ts +82 -0
  64. package/dist/esm/components/sidebar/index.d.ts +1 -0
  65. package/dist/esm/components/stepper/Stepper.css.d.ts +10 -0
  66. package/dist/esm/components/stepper/Stepper.d.ts +57 -0
  67. package/dist/esm/components/stepper/index.d.ts +1 -0
  68. package/dist/esm/components/tabs/Tabs.css.d.ts +6 -0
  69. package/dist/esm/components/tabs/Tabs.d.ts +39 -0
  70. package/dist/esm/components/tabs/index.d.ts +1 -0
  71. package/dist/esm/components/top-navigation/TopNavigation.css.d.ts +13 -0
  72. package/dist/esm/components/top-navigation/TopNavigation.d.ts +67 -0
  73. package/dist/esm/components/top-navigation/index.d.ts +1 -0
  74. package/dist/esm/components/tree-view/TreeView.css.d.ts +8 -0
  75. package/dist/esm/components/tree-view/TreeView.d.ts +43 -0
  76. package/dist/esm/components/tree-view/index.d.ts +1 -0
  77. package/dist/esm/components/workspace-switcher/WorkspaceSwitcher.css.d.ts +9 -0
  78. package/dist/esm/components/workspace-switcher/WorkspaceSwitcher.d.ts +43 -0
  79. package/dist/esm/components/workspace-switcher/index.d.ts +1 -0
  80. package/dist/esm/index.d.ts +10 -0
  81. package/dist/esm/index.js +10 -0
  82. package/dist/esm/navigation-menu.d.ts +2 -0
  83. package/dist/esm/navigation-menu.js +1 -0
  84. package/dist/esm/pagination.d.ts +2 -0
  85. package/dist/esm/pagination.js +1 -0
  86. package/dist/esm/sidebar.d.ts +2 -0
  87. package/dist/esm/sidebar.js +1 -0
  88. package/dist/esm/stepper.d.ts +2 -0
  89. package/dist/esm/stepper.js +1 -0
  90. package/dist/esm/tabs.d.ts +2 -0
  91. package/dist/esm/tabs.js +1 -0
  92. package/dist/esm/top-navigation.d.ts +2 -0
  93. package/dist/esm/top-navigation.js +1 -0
  94. package/dist/esm/tree-view.d.ts +2 -0
  95. package/dist/esm/tree-view.js +1 -0
  96. package/dist/esm/workspace-switcher.d.ts +2 -0
  97. package/dist/esm/workspace-switcher.js +1 -0
  98. package/package.json +146 -0
@@ -0,0 +1,122 @@
1
+ @keyframes _1n0eqzz4 {
2
+ from {
3
+ opacity: 0;
4
+ transform: translateY(.25rem);
5
+ }
6
+
7
+ to {
8
+ opacity: 1;
9
+ transform: translateY(0);
10
+ }
11
+ }
12
+
13
+ ._1n0eqzz0[data-orientation="vertical"] {
14
+ gap: var(--vinyasa-space5);
15
+ display: flex;
16
+ }
17
+
18
+ ._1n0eqzz1 {
19
+ align-items: center;
20
+ gap: var(--vinyasa-space1);
21
+ border-bottom: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
22
+ display: flex;
23
+ position: relative;
24
+ }
25
+
26
+ ._1n0eqzz1[data-orientation="vertical"] {
27
+ border-bottom: none;
28
+ border-right: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
29
+ flex-direction: column;
30
+ flex-shrink: 0;
31
+ align-items: stretch;
32
+ min-width: 10rem;
33
+ }
34
+
35
+ ._1n0eqzz2 {
36
+ background-color: var(--vinyasa-primary);
37
+ opacity: 0;
38
+ height: 2px;
39
+ transition: transform var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard), width var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard), height var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard), opacity var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard);
40
+ position: absolute;
41
+ bottom: -1px;
42
+ left: 0;
43
+ }
44
+
45
+ [data-orientation="vertical"] ._1n0eqzz2 {
46
+ width: 2px;
47
+ height: 0;
48
+ top: 0;
49
+ bottom: auto;
50
+ left: auto;
51
+ right: -1px;
52
+ }
53
+
54
+ ._1n0eqzz3 {
55
+ height: 2.5rem;
56
+ padding: 0 var(--vinyasa-space3);
57
+ color: var(--vinyasa-text-muted);
58
+ font-family: var(--vinyasa-font-family-sans);
59
+ font-size: var(--vinyasa-font-size-sm);
60
+ font-weight: var(--vinyasa-font-weight-medium);
61
+ cursor: pointer;
62
+ transition: color var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard);
63
+ background-color: rgba(0, 0, 0, 0);
64
+ border: none;
65
+ align-items: center;
66
+ display: inline-flex;
67
+ }
68
+
69
+ ._1n0eqzz3:hover:not([data-disabled]) {
70
+ color: var(--vinyasa-text-default);
71
+ }
72
+
73
+ ._1n0eqzz3:focus-visible {
74
+ outline: 2px solid var(--vinyasa-focus);
75
+ outline-offset: -2px;
76
+ }
77
+
78
+ ._1n0eqzz3[data-disabled] {
79
+ opacity: var(--vinyasa-opacity-disabled);
80
+ cursor: not-allowed;
81
+ }
82
+
83
+ ._1n0eqzz3[data-state="active"] {
84
+ color: var(--vinyasa-text-default);
85
+ }
86
+
87
+ [data-orientation="vertical"] ._1n0eqzz3 {
88
+ justify-content: flex-start;
89
+ }
90
+
91
+ ._1n0eqzz5 {
92
+ padding-top: var(--vinyasa-space4);
93
+ grid-area: 1 / 1;
94
+ }
95
+
96
+ ._1n0eqzz5:focus-visible {
97
+ outline: 2px solid var(--vinyasa-focus);
98
+ outline-offset: 2px;
99
+ }
100
+
101
+ [data-orientation="vertical"] ._1n0eqzz5 {
102
+ padding-top: 0;
103
+ }
104
+
105
+ ._1n0eqzz5[data-state="active"] {
106
+ animation: _1n0eqzz4 var(--vinyasa-motion-duration-fast) var(--vinyasa-motion-easing-standard);
107
+ }
108
+
109
+ ._1n0eqzz5[data-state="inactive"] {
110
+ visibility: hidden;
111
+ pointer-events: none;
112
+ }
113
+
114
+ ._1n0eqzz6 {
115
+ display: grid;
116
+ position: relative;
117
+ }
118
+
119
+ [data-orientation="vertical"] ._1n0eqzz6 {
120
+ flex: 1;
121
+ }
122
+
@@ -0,0 +1,363 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = (exports1, getters, values)=>{
5
+ var define = (defs, kind)=>{
6
+ for(var key in defs)if (__webpack_require__.o(defs, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
7
+ enumerable: true,
8
+ [kind]: defs[key]
9
+ });
10
+ };
11
+ define(getters, "get");
12
+ define(values, "value");
13
+ };
14
+ })();
15
+ (()=>{
16
+ __webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
17
+ })();
18
+ (()=>{
19
+ __webpack_require__.r = (exports1)=>{
20
+ if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
21
+ value: 'Module'
22
+ });
23
+ Object.defineProperty(exports1, '__esModule', {
24
+ value: true
25
+ });
26
+ };
27
+ })();
28
+ var __webpack_exports__ = {};
29
+ __webpack_require__.r(__webpack_exports__);
30
+ __webpack_require__.d(__webpack_exports__, {
31
+ TopNavigation: ()=>TopNavigation
32
+ });
33
+ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
34
+ const icons_namespaceObject = require("@vinyasa/icons");
35
+ const tokens_namespaceObject = require("@vinyasa/tokens");
36
+ const external_react_namespaceObject = require("react");
37
+ function toPrimitive(t, r) {
38
+ if ("object" != typeof t || !t) return t;
39
+ var e = t[Symbol.toPrimitive];
40
+ if (void 0 !== e) {
41
+ var i = e.call(t, r || "default");
42
+ if ("object" != typeof i) return i;
43
+ throw new TypeError("@@toPrimitive must return a primitive value.");
44
+ }
45
+ return ("string" === r ? String : Number)(t);
46
+ }
47
+ function toPropertyKey(t) {
48
+ var i = toPrimitive(t, "string");
49
+ return "symbol" == typeof i ? i : String(i);
50
+ }
51
+ function _defineProperty(obj, key, value) {
52
+ key = toPropertyKey(key);
53
+ if (key in obj) Object.defineProperty(obj, key, {
54
+ value: value,
55
+ enumerable: true,
56
+ configurable: true,
57
+ writable: true
58
+ });
59
+ else obj[key] = value;
60
+ return obj;
61
+ }
62
+ function createRuntimeFn_62c9670f_esm_ownKeys(e, r) {
63
+ var t = Object.keys(e);
64
+ if (Object.getOwnPropertySymbols) {
65
+ var o = Object.getOwnPropertySymbols(e);
66
+ r && (o = o.filter(function(r) {
67
+ return Object.getOwnPropertyDescriptor(e, r).enumerable;
68
+ })), t.push.apply(t, o);
69
+ }
70
+ return t;
71
+ }
72
+ function _objectSpread2(e) {
73
+ for(var r = 1; r < arguments.length; r++){
74
+ var t = null != arguments[r] ? arguments[r] : {};
75
+ r % 2 ? createRuntimeFn_62c9670f_esm_ownKeys(Object(t), !0).forEach(function(r) {
76
+ _defineProperty(e, r, t[r]);
77
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : createRuntimeFn_62c9670f_esm_ownKeys(Object(t)).forEach(function(r) {
78
+ Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
79
+ });
80
+ }
81
+ return e;
82
+ }
83
+ function mapValues(input, fn) {
84
+ var result = {};
85
+ for(var _key in input)result[_key] = fn(input[_key], _key);
86
+ return result;
87
+ }
88
+ var shouldApplyCompound = (compoundCheck, selections, defaultVariants)=>{
89
+ for (var key of Object.keys(compoundCheck)){
90
+ var _selections$key;
91
+ if (compoundCheck[key] !== (null != (_selections$key = selections[key]) ? _selections$key : defaultVariants[key])) return false;
92
+ }
93
+ return true;
94
+ };
95
+ var createRuntimeFn = (config)=>{
96
+ var runtimeFn = (options)=>{
97
+ var className = config.defaultClassName;
98
+ var selections = _objectSpread2(_objectSpread2({}, config.defaultVariants), options);
99
+ for(var variantName in selections){
100
+ var _selections$variantNa;
101
+ var variantSelection = null != (_selections$variantNa = selections[variantName]) ? _selections$variantNa : config.defaultVariants[variantName];
102
+ if (null != variantSelection) {
103
+ var selection = variantSelection;
104
+ if ('boolean' == typeof selection) selection = true === selection ? 'true' : 'false';
105
+ var selectionClassName = config.variantClassNames[variantName][selection];
106
+ if (selectionClassName) className += ' ' + selectionClassName;
107
+ }
108
+ }
109
+ for (var [compoundCheck, compoundClassName] of config.compoundVariants)if (shouldApplyCompound(compoundCheck, selections, config.defaultVariants)) className += ' ' + compoundClassName;
110
+ return className;
111
+ };
112
+ runtimeFn.variants = ()=>Object.keys(config.variantClassNames);
113
+ runtimeFn.classNames = {
114
+ get base () {
115
+ return config.defaultClassName.split(' ')[0];
116
+ },
117
+ get variants () {
118
+ return mapValues(config.variantClassNames, (classNames)=>mapValues(classNames, (className)=>className.split(' ')[0]));
119
+ }
120
+ };
121
+ return runtimeFn;
122
+ };
123
+ var actions = '_383lbb3';
124
+ var brand = '_383lbb1';
125
+ var content = '_383lbb2';
126
+ var item = createRuntimeFn({
127
+ defaultClassName: '_383lbb4',
128
+ variantClassNames: {
129
+ active: {
130
+ true: '_383lbb5'
131
+ }
132
+ },
133
+ defaultVariants: {},
134
+ compoundVariants: []
135
+ });
136
+ var mobileTrigger = '_383lbb6';
137
+ var root = '_383lbb0';
138
+ function _define_property(obj, key, value) {
139
+ if (key in obj) Object.defineProperty(obj, key, {
140
+ value: value,
141
+ enumerable: true,
142
+ configurable: true,
143
+ writable: true
144
+ });
145
+ else obj[key] = value;
146
+ return obj;
147
+ }
148
+ function _object_spread(target) {
149
+ for(var i = 1; i < arguments.length; i++){
150
+ var source = null != arguments[i] ? arguments[i] : {};
151
+ var ownKeys = Object.keys(source);
152
+ if ("function" == typeof Object.getOwnPropertySymbols) ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
153
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
154
+ }));
155
+ ownKeys.forEach(function(key) {
156
+ _define_property(target, key, source[key]);
157
+ });
158
+ }
159
+ return target;
160
+ }
161
+ function TopNavigation_ownKeys(object, enumerableOnly) {
162
+ var keys = Object.keys(object);
163
+ if (Object.getOwnPropertySymbols) {
164
+ var symbols = Object.getOwnPropertySymbols(object);
165
+ if (enumerableOnly) symbols = symbols.filter(function(sym) {
166
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
167
+ });
168
+ keys.push.apply(keys, symbols);
169
+ }
170
+ return keys;
171
+ }
172
+ function _object_spread_props(target, source) {
173
+ source = null != source ? source : {};
174
+ if (Object.getOwnPropertyDescriptors) Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
175
+ else TopNavigation_ownKeys(Object(source)).forEach(function(key) {
176
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
177
+ });
178
+ return target;
179
+ }
180
+ function _object_without_properties(source, excluded) {
181
+ if (null == source) return {};
182
+ var target = {}, sourceKeys, key, i;
183
+ if ("u" > typeof Reflect && Reflect.ownKeys) {
184
+ sourceKeys = Reflect.ownKeys(Object(source));
185
+ for(i = 0; i < sourceKeys.length; i++){
186
+ key = sourceKeys[i];
187
+ if (!(excluded.indexOf(key) >= 0)) {
188
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
189
+ }
190
+ }
191
+ return target;
192
+ }
193
+ target = _object_without_properties_loose(source, excluded);
194
+ if (Object.getOwnPropertySymbols) {
195
+ sourceKeys = Object.getOwnPropertySymbols(source);
196
+ for(i = 0; i < sourceKeys.length; i++){
197
+ key = sourceKeys[i];
198
+ if (!(excluded.indexOf(key) >= 0)) {
199
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
200
+ }
201
+ }
202
+ }
203
+ return target;
204
+ }
205
+ function _object_without_properties_loose(source, excluded) {
206
+ if (null == source) return {};
207
+ var target = {}, sourceKeys = Object.getOwnPropertyNames(source), key, i;
208
+ for(i = 0; i < sourceKeys.length; i++){
209
+ key = sourceKeys[i];
210
+ if (!(excluded.indexOf(key) >= 0)) {
211
+ if (Object.prototype.propertyIsEnumerable.call(source, key)) target[key] = source[key];
212
+ }
213
+ }
214
+ return target;
215
+ }
216
+ const TopNavigationContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(null);
217
+ const useTopNavigationContext = ()=>{
218
+ const context = (0, external_react_namespaceObject.useContext)(TopNavigationContext);
219
+ if (!context) throw new Error('TopNavigation parts must be rendered inside <TopNavigation.Root>.');
220
+ return context;
221
+ };
222
+ const TopNavigationRoot = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
223
+ let _ref = [
224
+ _0,
225
+ _1
226
+ ], [_ref1, ..._rest] = _ref, { open: openProp, defaultOpen = false, onOpenChange, className, children } = _ref1, rest = _object_without_properties(_ref1, [
227
+ "open",
228
+ "defaultOpen",
229
+ "onOpenChange",
230
+ "className",
231
+ "children"
232
+ ]), [ref] = _rest;
233
+ const [internalOpen, setInternalOpen] = (0, external_react_namespaceObject.useState)(defaultOpen);
234
+ const isControlled = void 0 !== openProp;
235
+ const open = isControlled ? openProp : internalOpen;
236
+ const themedRef = (0, tokens_namespaceObject.useThemedRef)(ref);
237
+ const setOpen = (next)=>{
238
+ if (!isControlled) setInternalOpen(next);
239
+ null == onOpenChange || onOpenChange(next);
240
+ };
241
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationContext.Provider, {
242
+ value: {
243
+ open,
244
+ setOpen
245
+ },
246
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("nav", _object_spread_props(_object_spread({
247
+ ref: themedRef,
248
+ className: className ? `${root} ${className}` : root
249
+ }, rest), {
250
+ children: children
251
+ }))
252
+ });
253
+ });
254
+ TopNavigationRoot.displayName = 'TopNavigationRoot';
255
+ const TopNavigationBrand = (_0)=>{
256
+ let { as: Component = 'a', className } = _0, rest = _object_without_properties(_0, [
257
+ "as",
258
+ "className"
259
+ ]);
260
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, _object_spread({
261
+ className: className ? `${brand} ${className}` : brand
262
+ }, rest));
263
+ };
264
+ TopNavigationBrand.displayName = 'TopNavigationBrand';
265
+ const TopNavigationContent = (_0)=>{
266
+ let { className } = _0, rest = _object_without_properties(_0, [
267
+ "className"
268
+ ]);
269
+ const { open } = useTopNavigationContext();
270
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
271
+ "data-open": open,
272
+ className: className ? `${content} ${className}` : content
273
+ }, rest));
274
+ };
275
+ TopNavigationContent.displayName = 'TopNavigationContent';
276
+ const TopNavigationActions = (_0)=>{
277
+ let { className } = _0, rest = _object_without_properties(_0, [
278
+ "className"
279
+ ]);
280
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", _object_spread({
281
+ className: className ? `${actions} ${className}` : actions
282
+ }, rest));
283
+ };
284
+ TopNavigationActions.displayName = 'TopNavigationActions';
285
+ const TopNavigationItem = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)((_0, _1)=>{
286
+ let _ref = [
287
+ _0,
288
+ _1
289
+ ], [_ref1, ..._rest] = _ref, { as: Component = 'button', active, className } = _ref1, rest = _object_without_properties(_ref1, [
290
+ "as",
291
+ "active",
292
+ "className"
293
+ ]), [ref] = _rest;
294
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, _object_spread({
295
+ ref: ref,
296
+ className: className ? `${item({
297
+ active
298
+ })} ${className}` : item({
299
+ active
300
+ })
301
+ }, rest));
302
+ });
303
+ TopNavigationItem.displayName = 'TopNavigationItem';
304
+ const TopNavigationMobileTrigger = (_0)=>{
305
+ let { className } = _0, rest = _object_without_properties(_0, [
306
+ "className"
307
+ ]);
308
+ const { open, setOpen } = useTopNavigationContext();
309
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("button", _object_spread_props(_object_spread({
310
+ type: "button",
311
+ className: className ? `${mobileTrigger} ${className}` : mobileTrigger,
312
+ "aria-label": open ? 'Close menu' : 'Open menu',
313
+ "aria-expanded": open,
314
+ onClick: ()=>{
315
+ setOpen(!open);
316
+ }
317
+ }, rest), {
318
+ children: open ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.XIcon, {}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.MenuIcon, {})
319
+ }));
320
+ };
321
+ TopNavigationMobileTrigger.displayName = 'TopNavigationMobileTrigger';
322
+ const TopNavigationImpl = ({ brand: brandContent, brandHref, items, actions: actionsContent, linkComponent, open, defaultOpen, onOpenChange })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(TopNavigationRoot, {
323
+ open: open,
324
+ defaultOpen: defaultOpen,
325
+ onOpenChange: onOpenChange,
326
+ children: [
327
+ brandContent ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationBrand, {
328
+ as: linkComponent,
329
+ href: brandHref,
330
+ children: brandContent
331
+ }) : null,
332
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationContent, {
333
+ children: items.map((itemSpec)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationItem, {
334
+ as: itemSpec.href ? null != linkComponent ? linkComponent : 'a' : 'button',
335
+ href: itemSpec.href,
336
+ active: itemSpec.active,
337
+ disabled: itemSpec.disabled,
338
+ onClick: itemSpec.onClick,
339
+ children: itemSpec.label
340
+ }, itemSpec.key))
341
+ }),
342
+ actionsContent ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationActions, {
343
+ children: actionsContent
344
+ }) : null,
345
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TopNavigationMobileTrigger, {})
346
+ ]
347
+ });
348
+ TopNavigationImpl.displayName = 'TopNavigation';
349
+ const TopNavigation = Object.assign(TopNavigationImpl, {
350
+ Root: TopNavigationRoot,
351
+ Brand: TopNavigationBrand,
352
+ Content: TopNavigationContent,
353
+ Item: TopNavigationItem,
354
+ Actions: TopNavigationActions,
355
+ MobileTrigger: TopNavigationMobileTrigger
356
+ });
357
+ exports.TopNavigation = __webpack_exports__.TopNavigation;
358
+ for(var __rspack_i in __webpack_exports__)if (-1 === [
359
+ "TopNavigation"
360
+ ].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
361
+ Object.defineProperty(exports, '__esModule', {
362
+ value: true
363
+ });
@@ -0,0 +1,127 @@
1
+ ._383lbb0 {
2
+ align-items: center;
3
+ gap: var(--vinyasa-space4);
4
+ height: 3.5rem;
5
+ padding: 0 var(--vinyasa-space4);
6
+ background-color: var(--vinyasa-surface);
7
+ border-bottom: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
8
+ display: flex;
9
+ position: relative;
10
+ }
11
+
12
+ ._383lbb1 {
13
+ font-family: var(--vinyasa-font-family-sans);
14
+ font-size: var(--vinyasa-font-size-md);
15
+ font-weight: var(--vinyasa-font-weight-semibold);
16
+ color: var(--vinyasa-text-default);
17
+ flex-shrink: 0;
18
+ align-items: center;
19
+ text-decoration: none;
20
+ display: flex;
21
+ }
22
+
23
+ ._383lbb2 {
24
+ align-items: center;
25
+ gap: var(--vinyasa-space1);
26
+ flex: 1;
27
+ display: flex;
28
+ }
29
+
30
+ ._383lbb3 {
31
+ align-items: center;
32
+ gap: var(--vinyasa-space2);
33
+ flex-shrink: 0;
34
+ display: flex;
35
+ }
36
+
37
+ ._383lbb4 {
38
+ height: 100%;
39
+ padding: 0 var(--vinyasa-space3);
40
+ color: var(--vinyasa-text-muted);
41
+ font-family: var(--vinyasa-font-family-sans);
42
+ font-size: var(--vinyasa-font-size-sm);
43
+ font-weight: var(--vinyasa-font-weight-medium);
44
+ cursor: pointer;
45
+ white-space: nowrap;
46
+ background-color: rgba(0, 0, 0, 0);
47
+ border: none;
48
+ border-bottom: 2px solid rgba(0, 0, 0, 0);
49
+ align-items: center;
50
+ text-decoration: none;
51
+ display: inline-flex;
52
+ }
53
+
54
+ ._383lbb4:hover:not(:disabled) {
55
+ color: var(--vinyasa-text-default);
56
+ }
57
+
58
+ ._383lbb4:focus-visible {
59
+ outline: 2px solid var(--vinyasa-focus);
60
+ outline-offset: -2px;
61
+ }
62
+
63
+ ._383lbb4:disabled {
64
+ opacity: var(--vinyasa-opacity-disabled);
65
+ cursor: not-allowed;
66
+ }
67
+
68
+ ._383lbb5 {
69
+ border-bottom-color: var(--vinyasa-primary);
70
+ color: var(--vinyasa-text-default);
71
+ }
72
+
73
+ ._383lbb6 {
74
+ border-radius: var(--vinyasa-radius-sm);
75
+ width: 2rem;
76
+ height: 2rem;
77
+ color: var(--vinyasa-text-default);
78
+ cursor: pointer;
79
+ background-color: rgba(0, 0, 0, 0);
80
+ border: none;
81
+ flex-shrink: 0;
82
+ justify-content: center;
83
+ align-items: center;
84
+ margin-left: auto;
85
+ display: none;
86
+ }
87
+
88
+ ._383lbb6:hover {
89
+ background-color: var(--vinyasa-secondary);
90
+ }
91
+
92
+ ._383lbb6:focus-visible {
93
+ outline: 2px solid var(--vinyasa-focus);
94
+ outline-offset: 2px;
95
+ }
96
+
97
+ @media (max-width: 768px) {
98
+ ._383lbb2 {
99
+ padding: var(--vinyasa-space2);
100
+ background-color: var(--vinyasa-surface);
101
+ border-bottom: var(--vinyasa-border-width-thin) solid var(--vinyasa-border-color-default);
102
+ box-shadow: var(--vinyasa-elevation-overlay);
103
+ flex-direction: column;
104
+ align-items: stretch;
105
+ gap: 0;
106
+ position: absolute;
107
+ top: 100%;
108
+ left: 0;
109
+ right: 0;
110
+ }
111
+
112
+ ._383lbb2:not([data-open="true"]) {
113
+ display: none;
114
+ }
115
+
116
+ ._383lbb4 {
117
+ height: auto;
118
+ padding: var(--vinyasa-space3) var(--vinyasa-space3);
119
+ border-radius: var(--vinyasa-radius-sm);
120
+ border-bottom: none;
121
+ }
122
+
123
+ ._383lbb6 {
124
+ display: inline-flex;
125
+ }
126
+ }
127
+