@nextui-org/theme 0.0.0-dev-v2-20230421004240 → 0.0.0-dev-v2-20230423212921

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 (43) hide show
  1. package/dist/chunk-3B4SYPW2.mjs +18 -0
  2. package/dist/{chunk-7WADY6QI.mjs → chunk-6U5W7RS7.mjs} +1 -1
  3. package/dist/{chunk-5GRQZPPR.mjs → chunk-BLEVU2FW.mjs} +1 -1
  4. package/dist/{chunk-U45XCA4S.mjs → chunk-FJNSTLAL.mjs} +1 -1
  5. package/dist/chunk-KWWWVBJL.mjs +212 -0
  6. package/dist/{chunk-2QIDY5NZ.mjs → chunk-MW7UVOSP.mjs} +2 -2
  7. package/dist/{chunk-YYN3SHJ5.mjs → chunk-NQJBJXX3.mjs} +3 -3
  8. package/dist/{chunk-W2RCO7SN.mjs → chunk-R47OQZR5.mjs} +1 -0
  9. package/dist/{chunk-CJ7TG72B.mjs → chunk-TYA6TT57.mjs} +1 -1
  10. package/dist/{chunk-CO6ANWRA.mjs → chunk-XUL76UJD.mjs} +1 -1
  11. package/dist/colors/index.js +1 -1
  12. package/dist/colors/index.mjs +2 -2
  13. package/dist/colors/semantic.js +1 -1
  14. package/dist/colors/semantic.mjs +1 -1
  15. package/dist/colors.js +1 -1
  16. package/dist/colors.mjs +2 -2
  17. package/dist/components/button.js +1 -0
  18. package/dist/components/button.mjs +1 -1
  19. package/dist/components/chip.js +3 -3
  20. package/dist/components/chip.mjs +1 -1
  21. package/dist/components/index.d.ts +2 -0
  22. package/dist/components/index.js +236 -7
  23. package/dist/components/index.mjs +18 -10
  24. package/dist/components/modal.d.ts +1 -1
  25. package/dist/components/pagination.js +1 -1
  26. package/dist/components/pagination.mjs +1 -1
  27. package/dist/components/spacer.d.ts +27 -0
  28. package/dist/components/spacer.js +42 -0
  29. package/dist/components/spacer.mjs +6 -0
  30. package/dist/components/spinner.js +1 -1
  31. package/dist/components/spinner.mjs +1 -1
  32. package/dist/components/table.d.ts +277 -0
  33. package/dist/components/table.js +236 -0
  34. package/dist/components/table.mjs +6 -0
  35. package/dist/components/user.js +2 -2
  36. package/dist/components/user.mjs +1 -1
  37. package/dist/index.d.ts +5 -2
  38. package/dist/index.js +241 -12
  39. package/dist/index.mjs +21 -13
  40. package/dist/plugin.js +1 -1
  41. package/dist/plugin.mjs +3 -3
  42. package/package.json +2 -2
  43. /package/dist/{chunk-NP4SOC4S.mjs → chunk-RH7YHIQY.mjs} +0 -0
package/dist/index.js CHANGED
@@ -65,10 +65,12 @@ __export(src_exports, {
65
65
  ringClasses: () => ringClasses,
66
66
  semanticColors: () => semanticColors,
67
67
  snippet: () => snippet,
68
+ spacer: () => spacer,
68
69
  spinner: () => spinner,
70
+ table: () => table,
69
71
  toggle: () => toggle,
70
72
  translateCenterClasses: () => translateCenterClasses,
71
- tv: () => import_tailwind_variants34.tv,
73
+ tv: () => import_tailwind_variants36.tv,
72
74
  user: () => user
73
75
  });
74
76
  module.exports = __toCommonJS(src_exports);
@@ -653,8 +655,8 @@ var user = (0, import_tailwind_variants5.tv)({
653
655
  "data-[focus-visible=true]:dark:ring-offset-background-dark"
654
656
  ],
655
657
  wrapper: "inline-flex flex-col items-start",
656
- name: "text-sm text-foreground dark:text-foreground-dark",
657
- description: "text-xs text-neutral-500"
658
+ name: "text-sm text-inherit",
659
+ description: "text-xs text-neutral-400"
658
660
  }
659
661
  });
660
662
 
@@ -667,6 +669,7 @@ var button = (0, import_tailwind_variants6.tv)({
667
669
  "inline-flex",
668
670
  "items-center",
669
671
  "justify-center",
672
+ "max-w-fit",
670
673
  "box-border",
671
674
  "appearance-none",
672
675
  "outline-none",
@@ -1030,7 +1033,7 @@ var drip = (0, import_tailwind_variants8.tv)({
1030
1033
  var import_tailwind_variants9 = require("tailwind-variants");
1031
1034
  var spinner = (0, import_tailwind_variants9.tv)({
1032
1035
  slots: {
1033
- base: "flex flex-col items-center justify-center relative",
1036
+ base: "inline-flex flex-col items-center justify-center relative",
1034
1037
  circle1: [
1035
1038
  "absolute",
1036
1039
  "w-full",
@@ -1740,10 +1743,10 @@ var chip = (0, import_tailwind_variants13.tv)({
1740
1743
  variant: {
1741
1744
  solid: {},
1742
1745
  bordered: {
1743
- base: "border-1.5 !bg-transparent"
1746
+ base: "border-1.5 bg-transparent"
1744
1747
  },
1745
1748
  light: {
1746
- base: "!bg-transparent"
1749
+ base: "bg-transparent"
1747
1750
  },
1748
1751
  flat: {},
1749
1752
  faded: {
@@ -1751,7 +1754,7 @@ var chip = (0, import_tailwind_variants13.tv)({
1751
1754
  },
1752
1755
  shadow: {},
1753
1756
  dot: {
1754
- base: "border-1.5 border-neutral text-foreground !bg-transparent"
1757
+ base: "border-1.5 border-neutral text-foreground bg-transparent"
1755
1758
  }
1756
1759
  },
1757
1760
  color: {
@@ -3187,7 +3190,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3187
3190
  "data-[focus-visible=true]:ring-offset-2",
3188
3191
  "data-[focus-visible=true]:ring-offset-background",
3189
3192
  "data-[focus-visible=true]:dark:ring-offset-background-dark",
3190
- "data-[disabled=true]:opacity-50",
3193
+ "data-[disabled=true]:text-neutral-300",
3191
3194
  "data-[disabled=true]:pointer-events-none"
3192
3195
  ]
3193
3196
  },
@@ -5488,6 +5491,230 @@ var navbar = (0, import_tailwind_variants32.tv)({
5488
5491
  ]
5489
5492
  });
5490
5493
 
5494
+ // src/components/table.ts
5495
+ var import_tailwind_variants33 = require("tailwind-variants");
5496
+ var focusRing = [
5497
+ "data-[focus-visible=true]:outline-none",
5498
+ "data-[focus-visible=true]:ring-2",
5499
+ "data-[focus-visible=true]:ring-primary",
5500
+ "data-[focus-visible=true]:ring-offset-2",
5501
+ "data-[focus-visible=true]:ring-offset-background",
5502
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
5503
+ ];
5504
+ var table = (0, import_tailwind_variants33.tv)({
5505
+ slots: {
5506
+ base: [
5507
+ "p-4",
5508
+ "flex",
5509
+ "flex-col",
5510
+ "relative",
5511
+ "justify-between",
5512
+ "gap-4",
5513
+ "border",
5514
+ "border-neutral-100",
5515
+ "overflow-auto"
5516
+ ],
5517
+ table: "min-w-full h-auto",
5518
+ thead: "[&>tr]:first:rounded-lg",
5519
+ tbody: "",
5520
+ tr: ["group", "outline-none", ...focusRing],
5521
+ th: [
5522
+ "group",
5523
+ "px-3",
5524
+ "h-10",
5525
+ "text-left",
5526
+ "align-middle",
5527
+ "bg-neutral-100",
5528
+ "text-neutral-500",
5529
+ "text-xs",
5530
+ "font-semibold",
5531
+ "first:rounded-l-lg",
5532
+ "last:rounded-r-lg",
5533
+ "outline-none",
5534
+ "data-[sortable=true]:transition-colors",
5535
+ "data-[sortable=true]:cursor-pointer",
5536
+ "data-[hover=true]:text-neutral-400",
5537
+ ...focusRing
5538
+ ],
5539
+ td: [
5540
+ "py-2",
5541
+ "px-3",
5542
+ "relative",
5543
+ "align-middle",
5544
+ "whitespace-normal",
5545
+ "text-sm",
5546
+ "font-normal",
5547
+ "outline-none",
5548
+ ...focusRing,
5549
+ "before:content-['']",
5550
+ "before:absolute",
5551
+ "before:-z-[1]",
5552
+ "before:inset-0",
5553
+ "before:opacity-0",
5554
+ "data-[selected=true]:before:opacity-100",
5555
+ "group-data-[disabled=true]:text-neutral-300"
5556
+ ],
5557
+ tfoot: "",
5558
+ sortIcon: [
5559
+ "ml-2",
5560
+ "mb-px",
5561
+ "opacity-0",
5562
+ "text-inherit",
5563
+ "inline-block",
5564
+ "transition-transform-opacity",
5565
+ "data-[visible=true]:opacity-100",
5566
+ "group-data-[hover=true]:opacity-100",
5567
+ "data-[direction=ascending]:rotate-180"
5568
+ ],
5569
+ emptyWrapper: "text-neutral-400 align-middle text-center h-40",
5570
+ loadingWrapper: "absolute inset-0 flex items-center justify-center"
5571
+ },
5572
+ variants: {
5573
+ color: {
5574
+ neutral: {
5575
+ td: "before:bg-neutral-200 dark:before:bg-neutral-100 data-[selected=true]:text-neutral-foreground"
5576
+ },
5577
+ primary: {
5578
+ td: "before:bg-primary-50 data-[selected=true]:text-primary"
5579
+ },
5580
+ secondary: {
5581
+ td: "before:bg-secondary-100 data-[selected=true]:text-secondary"
5582
+ },
5583
+ success: {
5584
+ td: "before:bg-success-50 data-[selected=true]:text-success"
5585
+ },
5586
+ warning: {
5587
+ td: "before:bg-warning-50 data-[selected=true]:text-warning"
5588
+ },
5589
+ danger: {
5590
+ td: "before:bg-danger-50 data-[selected=true]:text-danger"
5591
+ }
5592
+ },
5593
+ layout: {
5594
+ auto: {
5595
+ table: "table-auto"
5596
+ },
5597
+ fixed: {
5598
+ table: "table-fixed"
5599
+ }
5600
+ },
5601
+ radius: {
5602
+ none: {
5603
+ base: "rounded-none"
5604
+ },
5605
+ base: {
5606
+ base: "rounded"
5607
+ },
5608
+ sm: {
5609
+ base: "rounded-sm"
5610
+ },
5611
+ md: {
5612
+ base: "rounded-md"
5613
+ },
5614
+ lg: {
5615
+ base: "rounded-lg"
5616
+ },
5617
+ xl: {
5618
+ base: "rounded-xl"
5619
+ },
5620
+ "2xl": {
5621
+ base: "rounded-2xl"
5622
+ }
5623
+ },
5624
+ shadow: {
5625
+ none: {
5626
+ base: "shadow-none"
5627
+ },
5628
+ sm: {
5629
+ base: "shadow-sm"
5630
+ },
5631
+ md: {
5632
+ base: "shadow-md"
5633
+ },
5634
+ lg: {
5635
+ base: "shadow-lg"
5636
+ },
5637
+ xl: {
5638
+ base: "shadow-xl"
5639
+ },
5640
+ "2xl": {
5641
+ base: "shadow-2xl"
5642
+ },
5643
+ inner: {
5644
+ base: "shadow-inner"
5645
+ }
5646
+ },
5647
+ hideHeader: {
5648
+ true: {
5649
+ thead: "hidden"
5650
+ }
5651
+ },
5652
+ isStriped: {
5653
+ true: {
5654
+ td: [
5655
+ "group-data-[odd=true]:before:bg-neutral-100",
5656
+ "group-data-[odd=true]:before:opacity-100"
5657
+ ]
5658
+ }
5659
+ },
5660
+ isHeaderSticky: {
5661
+ true: {
5662
+ thead: "sticky top-0 z-10 [&>tr]:first:shadow"
5663
+ }
5664
+ },
5665
+ isSelectable: {
5666
+ true: {
5667
+ tr: "cursor-default",
5668
+ td: ["group-data-[hover=true]:before:opacity-70"]
5669
+ }
5670
+ },
5671
+ isMultiSelectable: {
5672
+ true: {
5673
+ td: [
5674
+ "group-data-[first=true]:first:before:rounded-tl-lg",
5675
+ "group-data-[first=true]:last:before:rounded-tr-lg",
5676
+ "group-data-[middle=true]:before:rounded-none",
5677
+ "group-data-[last=true]:first:before:rounded-bl-lg",
5678
+ "group-data-[last=true]:last:before:rounded-br-lg"
5679
+ ]
5680
+ },
5681
+ false: {
5682
+ td: ["first:before:rounded-l-lg", "last:before:rounded-r-lg"]
5683
+ }
5684
+ },
5685
+ fullWidth: {
5686
+ true: {
5687
+ base: "w-full",
5688
+ table: "w-full"
5689
+ }
5690
+ }
5691
+ },
5692
+ defaultVariants: {
5693
+ layout: "auto",
5694
+ shadow: "lg",
5695
+ radius: "xl",
5696
+ color: "neutral",
5697
+ hideHeader: false,
5698
+ isStriped: false,
5699
+ fullWidth: true
5700
+ }
5701
+ });
5702
+
5703
+ // src/components/spacer.ts
5704
+ var import_tailwind_variants34 = require("tailwind-variants");
5705
+ var spacer = (0, import_tailwind_variants34.tv)({
5706
+ base: "w-px h-px inline-block",
5707
+ variants: {
5708
+ isInline: {
5709
+ true: "inline-block",
5710
+ false: "block"
5711
+ }
5712
+ },
5713
+ defaultVariants: {
5714
+ isInline: false
5715
+ }
5716
+ });
5717
+
5491
5718
  // src/colors/blue.ts
5492
5719
  var blue = {
5493
5720
  50: "#e6f1fe",
@@ -5663,7 +5890,7 @@ var base = {
5663
5890
  },
5664
5891
  dark: {
5665
5892
  background: {
5666
- DEFAULT: "#0B0B0C"
5893
+ DEFAULT: "#000000"
5667
5894
  },
5668
5895
  foreground: {
5669
5896
  DEFAULT: "#ECEDEE"
@@ -6045,9 +6272,9 @@ var nextui = (config = {}) => {
6045
6272
  };
6046
6273
 
6047
6274
  // src/index.ts
6048
- var import_tailwind_variants33 = require("tailwind-variants");
6049
- var import_tailwind_variants34 = require("tailwind-variants");
6050
- var cn = (...classes) => (0, import_tailwind_variants33.cn)(classes)();
6275
+ var import_tailwind_variants35 = require("tailwind-variants");
6276
+ var import_tailwind_variants36 = require("tailwind-variants");
6277
+ var cn = (...classes) => (0, import_tailwind_variants35.cn)(classes)();
6051
6278
  // Annotate the CommonJS export names for ESM import in node:
6052
6279
  0 && (module.exports = {
6053
6280
  absoluteFullClasses,
@@ -6089,7 +6316,9 @@ var cn = (...classes) => (0, import_tailwind_variants33.cn)(classes)();
6089
6316
  ringClasses,
6090
6317
  semanticColors,
6091
6318
  snippet,
6319
+ spacer,
6092
6320
  spinner,
6321
+ table,
6093
6322
  toggle,
6094
6323
  translateCenterClasses,
6095
6324
  tv,
package/dist/index.mjs CHANGED
@@ -1,4 +1,10 @@
1
- import "./chunk-NP4SOC4S.mjs";
1
+ import "./chunk-RH7YHIQY.mjs";
2
+ import {
3
+ toggle
4
+ } from "./chunk-NCFXYR7C.mjs";
5
+ import {
6
+ user
7
+ } from "./chunk-MW7UVOSP.mjs";
2
8
  import {
3
9
  popover
4
10
  } from "./chunk-JWVJZEAT.mjs";
@@ -15,14 +21,14 @@ import {
15
21
  snippet
16
22
  } from "./chunk-4XSCIGTZ.mjs";
17
23
  import {
18
- spinner
19
- } from "./chunk-CO6ANWRA.mjs";
24
+ spacer
25
+ } from "./chunk-3B4SYPW2.mjs";
20
26
  import {
21
- toggle
22
- } from "./chunk-NCFXYR7C.mjs";
27
+ spinner
28
+ } from "./chunk-XUL76UJD.mjs";
23
29
  import {
24
- user
25
- } from "./chunk-2QIDY5NZ.mjs";
30
+ table
31
+ } from "./chunk-KWWWVBJL.mjs";
26
32
  import {
27
33
  dropdown
28
34
  } from "./chunk-UNMHV7HH.mjs";
@@ -43,13 +49,13 @@ import {
43
49
  } from "./chunk-VS5PMCQU.mjs";
44
50
  import {
45
51
  pagination
46
- } from "./chunk-CJ7TG72B.mjs";
52
+ } from "./chunk-TYA6TT57.mjs";
47
53
  import {
48
54
  checkbox
49
55
  } from "./chunk-7EKGN7JP.mjs";
50
56
  import {
51
57
  chip
52
- } from "./chunk-YYN3SHJ5.mjs";
58
+ } from "./chunk-NQJBJXX3.mjs";
53
59
  import {
54
60
  circularProgress
55
61
  } from "./chunk-FK5GDC67.mjs";
@@ -85,7 +91,7 @@ import {
85
91
  } from "./chunk-VKFQ7EZN.mjs";
86
92
  import {
87
93
  button
88
- } from "./chunk-W2RCO7SN.mjs";
94
+ } from "./chunk-R47OQZR5.mjs";
89
95
  import "./chunk-CMYR6AOY.mjs";
90
96
  import "./chunk-K7LK7NCE.mjs";
91
97
  import {
@@ -102,7 +108,7 @@ import {
102
108
  } from "./chunk-XSFH4S4Y.mjs";
103
109
  import {
104
110
  nextui
105
- } from "./chunk-7WADY6QI.mjs";
111
+ } from "./chunk-6U5W7RS7.mjs";
106
112
  import "./chunk-XLATS5QU.mjs";
107
113
  import {
108
114
  absoluteFullClasses,
@@ -114,10 +120,10 @@ import {
114
120
  import "./chunk-WQEDQHKX.mjs";
115
121
  import {
116
122
  colors
117
- } from "./chunk-5GRQZPPR.mjs";
123
+ } from "./chunk-BLEVU2FW.mjs";
118
124
  import {
119
125
  semanticColors
120
- } from "./chunk-U45XCA4S.mjs";
126
+ } from "./chunk-FJNSTLAL.mjs";
121
127
  import "./chunk-37PIXVP4.mjs";
122
128
  import "./chunk-M63AFAHO.mjs";
123
129
  import "./chunk-DMASP6FA.mjs";
@@ -176,7 +182,9 @@ export {
176
182
  ringClasses,
177
183
  semanticColors,
178
184
  snippet,
185
+ spacer,
179
186
  spinner,
187
+ table,
180
188
  toggle,
181
189
  translateCenterClasses,
182
190
  tv,
package/dist/plugin.js CHANGED
@@ -211,7 +211,7 @@ var base = {
211
211
  },
212
212
  dark: {
213
213
  background: {
214
- DEFAULT: "#0B0B0C"
214
+ DEFAULT: "#000000"
215
215
  },
216
216
  foreground: {
217
217
  DEFAULT: "#ECEDEE"
package/dist/plugin.mjs CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-7WADY6QI.mjs";
3
+ } from "./chunk-6U5W7RS7.mjs";
4
4
  import "./chunk-XLATS5QU.mjs";
5
5
  import "./chunk-INZK6TTL.mjs";
6
6
  import "./chunk-WQEDQHKX.mjs";
7
- import "./chunk-5GRQZPPR.mjs";
8
- import "./chunk-U45XCA4S.mjs";
7
+ import "./chunk-BLEVU2FW.mjs";
8
+ import "./chunk-FJNSTLAL.mjs";
9
9
  import "./chunk-37PIXVP4.mjs";
10
10
  import "./chunk-M63AFAHO.mjs";
11
11
  import "./chunk-DMASP6FA.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230421004240",
3
+ "version": "0.0.0-dev-v2-20230423212921",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -44,7 +44,7 @@
44
44
  "lodash.foreach": "^4.5.0",
45
45
  "lodash.get": "^4.4.2",
46
46
  "lodash.isempty": "^4.4.0",
47
- "tailwind-variants": "^0.1.2",
47
+ "tailwind-variants": "^0.1.3",
48
48
  "tailwindcss": "^3.2.7"
49
49
  },
50
50
  "peerDependencies": {
File without changes