@nextui-org/theme 0.0.0-dev-v2-20230415210725 → 0.0.0-dev-v2-20230420024722

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 (39) hide show
  1. package/dist/chunk-64MHH33S.mjs +200 -0
  2. package/dist/{chunk-7MQD7UA2.mjs → chunk-B66JRVEO.mjs} +1 -1
  3. package/dist/{chunk-Y52EXP4A.mjs → chunk-BOKISNDL.mjs} +4 -4
  4. package/dist/{chunk-KWYOTFZ4.mjs → chunk-KVW35URF.mjs} +1 -1
  5. package/dist/{chunk-XSFNJVJG.mjs → chunk-OCKSB2YQ.mjs} +11 -10
  6. package/dist/{chunk-UXBWU2G4.mjs → chunk-OS73LTIZ.mjs} +2 -2
  7. package/dist/colors/index.js +1 -1
  8. package/dist/colors/index.mjs +3 -3
  9. package/dist/colors/semantic.js +1 -1
  10. package/dist/colors/semantic.mjs +2 -2
  11. package/dist/colors.js +1 -1
  12. package/dist/colors.mjs +3 -3
  13. package/dist/components/avatar.mjs +1 -1
  14. package/dist/components/badge.mjs +1 -1
  15. package/dist/components/button.mjs +1 -1
  16. package/dist/components/chip.mjs +1 -1
  17. package/dist/components/code.mjs +1 -1
  18. package/dist/components/dropdown-item.js +1 -1
  19. package/dist/components/dropdown-item.mjs +1 -1
  20. package/dist/components/index.d.ts +1 -0
  21. package/dist/components/index.js +202 -3
  22. package/dist/components/index.mjs +46 -42
  23. package/dist/components/link.mjs +1 -1
  24. package/dist/components/navbar.d.ts +155 -0
  25. package/dist/components/navbar.js +224 -0
  26. package/dist/components/navbar.mjs +6 -0
  27. package/dist/components/pagination.mjs +1 -1
  28. package/dist/components/popover.mjs +1 -1
  29. package/dist/components/snippet.mjs +1 -1
  30. package/dist/components/toggle.js +2 -2
  31. package/dist/components/toggle.mjs +1 -1
  32. package/dist/index.d.ts +1 -0
  33. package/dist/index.js +208 -8
  34. package/dist/index.mjs +62 -58
  35. package/dist/plugin.js +3 -2
  36. package/dist/plugin.mjs +6 -6
  37. package/dist/utils/index.mjs +1 -1
  38. package/package.json +1 -1
  39. /package/dist/{chunk-XUHE5FW2.mjs → chunk-NP4SOC4S.mjs} +0 -0
@@ -42,6 +42,7 @@ __export(components_exports, {
42
42
  input: () => input,
43
43
  link: () => link,
44
44
  modal: () => modal,
45
+ navbar: () => navbar,
45
46
  pagination: () => pagination,
46
47
  popover: () => popover,
47
48
  progress: () => progress,
@@ -3394,8 +3395,8 @@ var toggle = (0, import_tailwind_variants20.tv)({
3394
3395
  thumb: "transition-none"
3395
3396
  },
3396
3397
  false: {
3397
- wrapper: "transition-background !duration-500",
3398
- thumb: "transition-all !ease-soft-spring !duration-500",
3398
+ wrapper: "transition-background",
3399
+ thumb: "transition-all",
3399
3400
  startIcon: [
3400
3401
  "opacity-0",
3401
3402
  "scale-50",
@@ -4590,7 +4591,7 @@ var dropdownItem = (0, import_tailwind_variants27.tv)({
4590
4591
  ],
4591
4592
  wrapper: "w-full flex flex-col items-start justify-center",
4592
4593
  title: "flex-1",
4593
- description: ["text-xs", "text-neutral-500", "truncate", "group-hover:text-current"],
4594
+ description: ["text-xs", "w-full", "text-neutral-500", "group-hover:text-current"],
4594
4595
  selectedIcon: ["text-inherit", "w-3", "h-3", "flex-shrink-0"],
4595
4596
  shortcut: [
4596
4597
  "px-1",
@@ -5247,6 +5248,203 @@ var modal = (0, import_tailwind_variants31.tv)({
5247
5248
  }
5248
5249
  ]
5249
5250
  });
5251
+
5252
+ // src/components/navbar.ts
5253
+ var import_tailwind_variants32 = require("tailwind-variants");
5254
+ var navbar = (0, import_tailwind_variants32.tv)({
5255
+ slots: {
5256
+ base: [
5257
+ "relative",
5258
+ "z-50",
5259
+ "w-full",
5260
+ "h-auto",
5261
+ "flex",
5262
+ "items-center",
5263
+ "justify-center",
5264
+ "border-b",
5265
+ "border-neutral-100",
5266
+ "shadow-md"
5267
+ ],
5268
+ wrapper: [
5269
+ "flex",
5270
+ "flex-row",
5271
+ "flex-nowrap",
5272
+ "items-center",
5273
+ "justify-between",
5274
+ "w-full",
5275
+ "h-[var(--navbar-height)]",
5276
+ "px-6"
5277
+ ],
5278
+ toggle: [
5279
+ "group",
5280
+ "flex",
5281
+ "items-center",
5282
+ "justify-center",
5283
+ "w-6",
5284
+ "h-10",
5285
+ "outline-none",
5286
+ "rounded-sm",
5287
+ "data-[focus-visible=true]:outline-none",
5288
+ "data-[focus-visible=true]:ring-2",
5289
+ "data-[focus-visible=true]:ring-primary",
5290
+ "data-[focus-visible=true]:ring-offset-2",
5291
+ "data-[focus-visible=true]:ring-offset-background",
5292
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
5293
+ ],
5294
+ srOnly: ["sr-only"],
5295
+ toggleIcon: [
5296
+ "w-full",
5297
+ "h-full",
5298
+ "pointer-events-none",
5299
+ "flex",
5300
+ "flex-col",
5301
+ "items-center",
5302
+ "justify-center",
5303
+ "text-foreground",
5304
+ "group-data-[pressed=true]:opacity-70",
5305
+ "transition-opacity",
5306
+ "before:content-['']",
5307
+ "before:block",
5308
+ "before:h-px",
5309
+ "before:w-6",
5310
+ "before:bg-current",
5311
+ "before:transition-transform",
5312
+ "before:duration-150",
5313
+ "before:-translate-y-1",
5314
+ "before:rotate-0",
5315
+ "group-data-[open=true]:before:translate-y-px",
5316
+ "group-data-[open=true]:before:rotate-45",
5317
+ "after:content-['']",
5318
+ "after:block",
5319
+ "after:h-px",
5320
+ "after:w-6",
5321
+ "after:bg-current",
5322
+ "after:transition-transform",
5323
+ "after:duration-150",
5324
+ "after:translate-y-1",
5325
+ "after:rotate-0",
5326
+ "group-data-[open=true]:after:translate-y-0",
5327
+ "group-data-[open=true]:after:-rotate-45"
5328
+ ],
5329
+ brand: [
5330
+ "flex",
5331
+ "flex-row",
5332
+ "flex-nowrap",
5333
+ "justify-start",
5334
+ "bg-transparent",
5335
+ "items-center",
5336
+ "no-underline",
5337
+ "text-base",
5338
+ "whitespace-nowrap",
5339
+ "box-border"
5340
+ ],
5341
+ content: ["flex", "h-full", "flex-row", "flex-nowrap", "items-center", "gap-4"],
5342
+ item: [
5343
+ "text-base",
5344
+ "whitespace-nowrap",
5345
+ "box-border",
5346
+ "data-[active=true]:font-semibold"
5347
+ ],
5348
+ menu: [
5349
+ "z-50",
5350
+ "hidden",
5351
+ "px-6",
5352
+ "pt-4",
5353
+ "absolute",
5354
+ "max-w-full",
5355
+ "top-[calc(var(--navbar-height)_+_1px)]",
5356
+ "h-[calc(100vh_-_var(--navbar-height)_-_1px)]",
5357
+ "inset-x-0",
5358
+ "bottom-0",
5359
+ "w-screen",
5360
+ "bg-background",
5361
+ "data-[open=true]:flex",
5362
+ "flex-col",
5363
+ "gap-3",
5364
+ "overflow-y-auto"
5365
+ ],
5366
+ menuItem: ["text-lg"]
5367
+ },
5368
+ variants: {
5369
+ position: {
5370
+ static: {
5371
+ base: "static"
5372
+ },
5373
+ sticky: {},
5374
+ floating: {
5375
+ base: "shadow-none border-b-0",
5376
+ wrapper: "mt-4 mx-8 shadow-md border border-neutral-100 rounded-xl",
5377
+ menu: "mt-5 mx-8 border border-neutral-100 rounded-xl max-w-[calc(100%_-_4rem)]"
5378
+ }
5379
+ },
5380
+ maxWidth: {
5381
+ sm: {
5382
+ wrapper: "max-w-[640px]"
5383
+ },
5384
+ md: {
5385
+ wrapper: "max-w-[768px]"
5386
+ },
5387
+ lg: {
5388
+ wrapper: "max-w-[1024px]"
5389
+ },
5390
+ xl: {
5391
+ wrapper: "max-w-[1280px]"
5392
+ },
5393
+ "2xl": {
5394
+ wrapper: "max-w-[1536px]"
5395
+ },
5396
+ full: {
5397
+ wrapper: "max-w-full"
5398
+ }
5399
+ },
5400
+ hideOnScroll: {
5401
+ true: {
5402
+ base: [
5403
+ "sticky",
5404
+ "top-0",
5405
+ "inset-x-0"
5406
+ ]
5407
+ }
5408
+ },
5409
+ isBordered: {
5410
+ true: {}
5411
+ },
5412
+ isBlurred: {
5413
+ false: {
5414
+ base: "bg-background"
5415
+ },
5416
+ true: {}
5417
+ }
5418
+ },
5419
+ defaultVariants: {
5420
+ maxWidth: "lg",
5421
+ position: "sticky",
5422
+ isBlurred: true
5423
+ },
5424
+ compoundVariants: [
5425
+ {
5426
+ position: ["sticky", "floating"],
5427
+ class: {
5428
+ base: "sticky top-0 inset-x-0"
5429
+ }
5430
+ },
5431
+ {
5432
+ isBlurred: true,
5433
+ position: ["static", "sticky"],
5434
+ class: {
5435
+ base: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5436
+ }
5437
+ },
5438
+ {
5439
+ isBlurred: true,
5440
+ position: "floating",
5441
+ class: {
5442
+ base: "bg-gradient-to-b from-background to-background/50",
5443
+ wrapper: "backdrop-blur-xl backdrop-saturate-200 bg-background/50 data-[menu-open=true]:bg-background"
5444
+ }
5445
+ }
5446
+ ]
5447
+ });
5250
5448
  // Annotate the CommonJS export names for ESM import in node:
5251
5449
  0 && (module.exports = {
5252
5450
  accordion,
@@ -5271,6 +5469,7 @@ var modal = (0, import_tailwind_variants31.tv)({
5271
5469
  input,
5272
5470
  link,
5273
5471
  modal,
5472
+ navbar,
5274
5473
  pagination,
5275
5474
  popover,
5276
5475
  progress,
@@ -1,13 +1,4 @@
1
- import "../chunk-XUHE5FW2.mjs";
2
- import {
3
- progress
4
- } from "../chunk-I7DM7NL7.mjs";
5
- import {
6
- radioGroup
7
- } from "../chunk-HHWXPWYN.mjs";
8
- import {
9
- radio
10
- } from "../chunk-SN6PW6NR.mjs";
1
+ import "../chunk-NP4SOC4S.mjs";
11
2
  import {
12
3
  snippet
13
4
  } from "../chunk-ANRX4UF2.mjs";
@@ -16,25 +7,19 @@ import {
16
7
  } from "../chunk-CO6ANWRA.mjs";
17
8
  import {
18
9
  toggle
19
- } from "../chunk-UXBWU2G4.mjs";
10
+ } from "../chunk-OS73LTIZ.mjs";
20
11
  import {
21
12
  user
22
13
  } from "../chunk-2QIDY5NZ.mjs";
23
- import {
24
- dropdown
25
- } from "../chunk-UNMHV7HH.mjs";
26
- import {
27
- image
28
- } from "../chunk-6GGRJ6I7.mjs";
29
- import {
30
- input
31
- } from "../chunk-DBYBIR6S.mjs";
32
14
  import {
33
15
  link
34
16
  } from "../chunk-4FNCWRTA.mjs";
35
17
  import {
36
18
  modal
37
19
  } from "../chunk-YMIOHWCD.mjs";
20
+ import {
21
+ navbar
22
+ } from "../chunk-64MHH33S.mjs";
38
23
  import {
39
24
  pagination
40
25
  } from "../chunk-FZQRP6V7.mjs";
@@ -42,23 +27,20 @@ import {
42
27
  popover
43
28
  } from "../chunk-MZ2ZBGLR.mjs";
44
29
  import {
45
- checkbox
46
- } from "../chunk-XQ3KK6F3.mjs";
47
- import {
48
- chip
49
- } from "../chunk-QRMWQXOX.mjs";
30
+ progress
31
+ } from "../chunk-I7DM7NL7.mjs";
50
32
  import {
51
- circularProgress
52
- } from "../chunk-FK5GDC67.mjs";
33
+ radioGroup
34
+ } from "../chunk-HHWXPWYN.mjs";
53
35
  import {
54
- code
55
- } from "../chunk-B5S7HT6N.mjs";
36
+ radio
37
+ } from "../chunk-SN6PW6NR.mjs";
56
38
  import {
57
39
  drip
58
40
  } from "../chunk-OIVGIOVG.mjs";
59
41
  import {
60
42
  dropdownItem
61
- } from "../chunk-KWYOTFZ4.mjs";
43
+ } from "../chunk-KVW35URF.mjs";
62
44
  import {
63
45
  dropdownMenu
64
46
  } from "../chunk-FCYNUVAR.mjs";
@@ -66,35 +48,56 @@ import {
66
48
  dropdownSection
67
49
  } from "../chunk-AVGEHFT4.mjs";
68
50
  import {
69
- accordion
70
- } from "../chunk-YYBLBQIV.mjs";
71
- import {
72
- avatarGroup
73
- } from "../chunk-MLH3XSY7.mjs";
51
+ dropdown
52
+ } from "../chunk-UNMHV7HH.mjs";
74
53
  import {
75
- avatar
76
- } from "../chunk-7GYSEREC.mjs";
54
+ image
55
+ } from "../chunk-6GGRJ6I7.mjs";
77
56
  import {
78
- badge
79
- } from "../chunk-5Z3NCB7W.mjs";
57
+ input
58
+ } from "../chunk-DBYBIR6S.mjs";
80
59
  import {
81
60
  buttonGroup
82
61
  } from "../chunk-VKFQ7EZN.mjs";
83
62
  import {
84
63
  button
85
64
  } from "../chunk-Y63UYKP7.mjs";
86
- import "../chunk-CMYR6AOY.mjs";
87
- import "../chunk-K7LK7NCE.mjs";
88
- import "../chunk-LGGZKBOO.mjs";
89
65
  import {
90
66
  card
91
67
  } from "../chunk-TDD767J7.mjs";
92
68
  import {
93
69
  checkboxGroup
94
70
  } from "../chunk-U77YMEWM.mjs";
71
+ import {
72
+ checkbox
73
+ } from "../chunk-XQ3KK6F3.mjs";
74
+ import {
75
+ chip
76
+ } from "../chunk-QRMWQXOX.mjs";
77
+ import {
78
+ circularProgress
79
+ } from "../chunk-FK5GDC67.mjs";
80
+ import {
81
+ code
82
+ } from "../chunk-B5S7HT6N.mjs";
95
83
  import {
96
84
  accordionItem
97
85
  } from "../chunk-XSFH4S4Y.mjs";
86
+ import {
87
+ accordion
88
+ } from "../chunk-YYBLBQIV.mjs";
89
+ import {
90
+ avatarGroup
91
+ } from "../chunk-MLH3XSY7.mjs";
92
+ import {
93
+ avatar
94
+ } from "../chunk-7GYSEREC.mjs";
95
+ import {
96
+ badge
97
+ } from "../chunk-5Z3NCB7W.mjs";
98
+ import "../chunk-CMYR6AOY.mjs";
99
+ import "../chunk-LGGZKBOO.mjs";
100
+ import "../chunk-K7LK7NCE.mjs";
98
101
  import "../chunk-INZK6TTL.mjs";
99
102
  export {
100
103
  accordion,
@@ -119,6 +122,7 @@ export {
119
122
  input,
120
123
  link,
121
124
  modal,
125
+ navbar,
122
126
  pagination,
123
127
  popover,
124
128
  progress,
@@ -2,8 +2,8 @@ import {
2
2
  link
3
3
  } from "../chunk-4FNCWRTA.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
- import "../chunk-K7LK7NCE.mjs";
6
5
  import "../chunk-LGGZKBOO.mjs";
6
+ import "../chunk-K7LK7NCE.mjs";
7
7
  import "../chunk-INZK6TTL.mjs";
8
8
  export {
9
9
  link
@@ -0,0 +1,155 @@
1
+ import * as tailwind_variants from 'tailwind-variants';
2
+ import { VariantProps } from 'tailwind-variants';
3
+ import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
+
5
+ /**
6
+ * Card **Tailwind Variants** component
7
+ *
8
+ * @example
9
+ * ```js
10
+ * const {
11
+ * base,
12
+ * wrapper,
13
+ * toggle,
14
+ * srOnly,
15
+ * toggleIcon,
16
+ * brand,
17
+ * content,
18
+ * item,
19
+ * menu,
20
+ * menuItem
21
+ * } = navbar({...})
22
+ *
23
+ * <nav className={base()} style={{ "--navbar-height": "4rem" }}>
24
+ * <header className={wrapper()}>
25
+ * <button className={toggle()}>
26
+ * <span className={srOnly()}>Open/Close menu</span>
27
+ * <span className={toggleIcon()} aria-hidden="true"/>
28
+ * </button>
29
+ * <div className={brand()}>Brand</div>
30
+ * <ul className={content()}>
31
+ * <li className={item()}>Item 1</li>
32
+ * <li className={item()}>Item 2</li>
33
+ * <li className={item()}>Item 3</li>
34
+ * </ul>
35
+ * <ul className={content()}>
36
+ * <li className={item()}>Login</li>
37
+ * <li className={item()}>Sign Up</li>
38
+ * </ul>
39
+ * </header>
40
+ * <ul className={menu()}>
41
+ * <li className={menuItem()}>Item 1</li>
42
+ * <li className={menuItem()}>Item 2</li>
43
+ * <li className={menuItem()}>Item 3</li>
44
+ * </ul>
45
+ * </nav>
46
+ * ```
47
+ */
48
+ declare const navbar: tailwind_variants.TVReturnType<{
49
+ position: {
50
+ static: {
51
+ base: string;
52
+ };
53
+ sticky: {};
54
+ floating: {
55
+ base: string;
56
+ wrapper: string;
57
+ menu: string;
58
+ };
59
+ };
60
+ maxWidth: {
61
+ sm: {
62
+ wrapper: string;
63
+ };
64
+ md: {
65
+ wrapper: string;
66
+ };
67
+ lg: {
68
+ wrapper: string;
69
+ };
70
+ xl: {
71
+ wrapper: string;
72
+ };
73
+ "2xl": {
74
+ wrapper: string;
75
+ };
76
+ full: {
77
+ wrapper: string;
78
+ };
79
+ };
80
+ hideOnScroll: {
81
+ true: {
82
+ base: string[];
83
+ };
84
+ };
85
+ isBordered: {
86
+ true: {};
87
+ };
88
+ isBlurred: {
89
+ false: {
90
+ base: string;
91
+ };
92
+ true: {};
93
+ };
94
+ }, unknown, {
95
+ base: string[];
96
+ wrapper: string[];
97
+ toggle: string[];
98
+ srOnly: string[];
99
+ toggleIcon: string[];
100
+ brand: string[];
101
+ content: string[];
102
+ item: string[];
103
+ menu: string[];
104
+ menuItem: string[];
105
+ }, undefined, undefined, tailwind_variants_dist_config.TVConfig<{
106
+ position: {
107
+ static: {
108
+ base: string;
109
+ };
110
+ sticky: {};
111
+ floating: {
112
+ base: string;
113
+ wrapper: string;
114
+ menu: string;
115
+ };
116
+ };
117
+ maxWidth: {
118
+ sm: {
119
+ wrapper: string;
120
+ };
121
+ md: {
122
+ wrapper: string;
123
+ };
124
+ lg: {
125
+ wrapper: string;
126
+ };
127
+ xl: {
128
+ wrapper: string;
129
+ };
130
+ "2xl": {
131
+ wrapper: string;
132
+ };
133
+ full: {
134
+ wrapper: string;
135
+ };
136
+ };
137
+ hideOnScroll: {
138
+ true: {
139
+ base: string[];
140
+ };
141
+ };
142
+ isBordered: {
143
+ true: {};
144
+ };
145
+ isBlurred: {
146
+ false: {
147
+ base: string;
148
+ };
149
+ true: {};
150
+ };
151
+ }, unknown>>;
152
+ type NavbarVariantProps = VariantProps<typeof navbar>;
153
+ type NavbarSlots = keyof ReturnType<typeof navbar>;
154
+
155
+ export { NavbarSlots, NavbarVariantProps, navbar };