@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
@@ -49,7 +49,9 @@ __export(components_exports, {
49
49
  radio: () => radio,
50
50
  radioGroup: () => radioGroup,
51
51
  snippet: () => snippet,
52
+ spacer: () => spacer,
52
53
  spinner: () => spinner,
54
+ table: () => table,
53
55
  toggle: () => toggle,
54
56
  user: () => user
55
57
  });
@@ -630,8 +632,8 @@ var user = (0, import_tailwind_variants5.tv)({
630
632
  "data-[focus-visible=true]:dark:ring-offset-background-dark"
631
633
  ],
632
634
  wrapper: "inline-flex flex-col items-start",
633
- name: "text-sm text-foreground dark:text-foreground-dark",
634
- description: "text-xs text-neutral-500"
635
+ name: "text-sm text-inherit",
636
+ description: "text-xs text-neutral-400"
635
637
  }
636
638
  });
637
639
 
@@ -644,6 +646,7 @@ var button = (0, import_tailwind_variants6.tv)({
644
646
  "inline-flex",
645
647
  "items-center",
646
648
  "justify-center",
649
+ "max-w-fit",
647
650
  "box-border",
648
651
  "appearance-none",
649
652
  "outline-none",
@@ -1007,7 +1010,7 @@ var drip = (0, import_tailwind_variants8.tv)({
1007
1010
  var import_tailwind_variants9 = require("tailwind-variants");
1008
1011
  var spinner = (0, import_tailwind_variants9.tv)({
1009
1012
  slots: {
1010
- base: "flex flex-col items-center justify-center relative",
1013
+ base: "inline-flex flex-col items-center justify-center relative",
1011
1014
  circle1: [
1012
1015
  "absolute",
1013
1016
  "w-full",
@@ -1717,10 +1720,10 @@ var chip = (0, import_tailwind_variants13.tv)({
1717
1720
  variant: {
1718
1721
  solid: {},
1719
1722
  bordered: {
1720
- base: "border-1.5 !bg-transparent"
1723
+ base: "border-1.5 bg-transparent"
1721
1724
  },
1722
1725
  light: {
1723
- base: "!bg-transparent"
1726
+ base: "bg-transparent"
1724
1727
  },
1725
1728
  flat: {},
1726
1729
  faded: {
@@ -1728,7 +1731,7 @@ var chip = (0, import_tailwind_variants13.tv)({
1728
1731
  },
1729
1732
  shadow: {},
1730
1733
  dot: {
1731
- base: "border-1.5 border-neutral text-foreground !bg-transparent"
1734
+ base: "border-1.5 border-neutral text-foreground bg-transparent"
1732
1735
  }
1733
1736
  },
1734
1737
  color: {
@@ -3164,7 +3167,7 @@ var pagination = (0, import_tailwind_variants19.tv)({
3164
3167
  "data-[focus-visible=true]:ring-offset-2",
3165
3168
  "data-[focus-visible=true]:ring-offset-background",
3166
3169
  "data-[focus-visible=true]:dark:ring-offset-background-dark",
3167
- "data-[disabled=true]:opacity-50",
3170
+ "data-[disabled=true]:text-neutral-300",
3168
3171
  "data-[disabled=true]:pointer-events-none"
3169
3172
  ]
3170
3173
  },
@@ -5464,6 +5467,230 @@ var navbar = (0, import_tailwind_variants32.tv)({
5464
5467
  }
5465
5468
  ]
5466
5469
  });
5470
+
5471
+ // src/components/table.ts
5472
+ var import_tailwind_variants33 = require("tailwind-variants");
5473
+ var focusRing = [
5474
+ "data-[focus-visible=true]:outline-none",
5475
+ "data-[focus-visible=true]:ring-2",
5476
+ "data-[focus-visible=true]:ring-primary",
5477
+ "data-[focus-visible=true]:ring-offset-2",
5478
+ "data-[focus-visible=true]:ring-offset-background",
5479
+ "data-[focus-visible=true]:dark:ring-offset-background-dark"
5480
+ ];
5481
+ var table = (0, import_tailwind_variants33.tv)({
5482
+ slots: {
5483
+ base: [
5484
+ "p-4",
5485
+ "flex",
5486
+ "flex-col",
5487
+ "relative",
5488
+ "justify-between",
5489
+ "gap-4",
5490
+ "border",
5491
+ "border-neutral-100",
5492
+ "overflow-auto"
5493
+ ],
5494
+ table: "min-w-full h-auto",
5495
+ thead: "[&>tr]:first:rounded-lg",
5496
+ tbody: "",
5497
+ tr: ["group", "outline-none", ...focusRing],
5498
+ th: [
5499
+ "group",
5500
+ "px-3",
5501
+ "h-10",
5502
+ "text-left",
5503
+ "align-middle",
5504
+ "bg-neutral-100",
5505
+ "text-neutral-500",
5506
+ "text-xs",
5507
+ "font-semibold",
5508
+ "first:rounded-l-lg",
5509
+ "last:rounded-r-lg",
5510
+ "outline-none",
5511
+ "data-[sortable=true]:transition-colors",
5512
+ "data-[sortable=true]:cursor-pointer",
5513
+ "data-[hover=true]:text-neutral-400",
5514
+ ...focusRing
5515
+ ],
5516
+ td: [
5517
+ "py-2",
5518
+ "px-3",
5519
+ "relative",
5520
+ "align-middle",
5521
+ "whitespace-normal",
5522
+ "text-sm",
5523
+ "font-normal",
5524
+ "outline-none",
5525
+ ...focusRing,
5526
+ "before:content-['']",
5527
+ "before:absolute",
5528
+ "before:-z-[1]",
5529
+ "before:inset-0",
5530
+ "before:opacity-0",
5531
+ "data-[selected=true]:before:opacity-100",
5532
+ "group-data-[disabled=true]:text-neutral-300"
5533
+ ],
5534
+ tfoot: "",
5535
+ sortIcon: [
5536
+ "ml-2",
5537
+ "mb-px",
5538
+ "opacity-0",
5539
+ "text-inherit",
5540
+ "inline-block",
5541
+ "transition-transform-opacity",
5542
+ "data-[visible=true]:opacity-100",
5543
+ "group-data-[hover=true]:opacity-100",
5544
+ "data-[direction=ascending]:rotate-180"
5545
+ ],
5546
+ emptyWrapper: "text-neutral-400 align-middle text-center h-40",
5547
+ loadingWrapper: "absolute inset-0 flex items-center justify-center"
5548
+ },
5549
+ variants: {
5550
+ color: {
5551
+ neutral: {
5552
+ td: "before:bg-neutral-200 dark:before:bg-neutral-100 data-[selected=true]:text-neutral-foreground"
5553
+ },
5554
+ primary: {
5555
+ td: "before:bg-primary-50 data-[selected=true]:text-primary"
5556
+ },
5557
+ secondary: {
5558
+ td: "before:bg-secondary-100 data-[selected=true]:text-secondary"
5559
+ },
5560
+ success: {
5561
+ td: "before:bg-success-50 data-[selected=true]:text-success"
5562
+ },
5563
+ warning: {
5564
+ td: "before:bg-warning-50 data-[selected=true]:text-warning"
5565
+ },
5566
+ danger: {
5567
+ td: "before:bg-danger-50 data-[selected=true]:text-danger"
5568
+ }
5569
+ },
5570
+ layout: {
5571
+ auto: {
5572
+ table: "table-auto"
5573
+ },
5574
+ fixed: {
5575
+ table: "table-fixed"
5576
+ }
5577
+ },
5578
+ radius: {
5579
+ none: {
5580
+ base: "rounded-none"
5581
+ },
5582
+ base: {
5583
+ base: "rounded"
5584
+ },
5585
+ sm: {
5586
+ base: "rounded-sm"
5587
+ },
5588
+ md: {
5589
+ base: "rounded-md"
5590
+ },
5591
+ lg: {
5592
+ base: "rounded-lg"
5593
+ },
5594
+ xl: {
5595
+ base: "rounded-xl"
5596
+ },
5597
+ "2xl": {
5598
+ base: "rounded-2xl"
5599
+ }
5600
+ },
5601
+ shadow: {
5602
+ none: {
5603
+ base: "shadow-none"
5604
+ },
5605
+ sm: {
5606
+ base: "shadow-sm"
5607
+ },
5608
+ md: {
5609
+ base: "shadow-md"
5610
+ },
5611
+ lg: {
5612
+ base: "shadow-lg"
5613
+ },
5614
+ xl: {
5615
+ base: "shadow-xl"
5616
+ },
5617
+ "2xl": {
5618
+ base: "shadow-2xl"
5619
+ },
5620
+ inner: {
5621
+ base: "shadow-inner"
5622
+ }
5623
+ },
5624
+ hideHeader: {
5625
+ true: {
5626
+ thead: "hidden"
5627
+ }
5628
+ },
5629
+ isStriped: {
5630
+ true: {
5631
+ td: [
5632
+ "group-data-[odd=true]:before:bg-neutral-100",
5633
+ "group-data-[odd=true]:before:opacity-100"
5634
+ ]
5635
+ }
5636
+ },
5637
+ isHeaderSticky: {
5638
+ true: {
5639
+ thead: "sticky top-0 z-10 [&>tr]:first:shadow"
5640
+ }
5641
+ },
5642
+ isSelectable: {
5643
+ true: {
5644
+ tr: "cursor-default",
5645
+ td: ["group-data-[hover=true]:before:opacity-70"]
5646
+ }
5647
+ },
5648
+ isMultiSelectable: {
5649
+ true: {
5650
+ td: [
5651
+ "group-data-[first=true]:first:before:rounded-tl-lg",
5652
+ "group-data-[first=true]:last:before:rounded-tr-lg",
5653
+ "group-data-[middle=true]:before:rounded-none",
5654
+ "group-data-[last=true]:first:before:rounded-bl-lg",
5655
+ "group-data-[last=true]:last:before:rounded-br-lg"
5656
+ ]
5657
+ },
5658
+ false: {
5659
+ td: ["first:before:rounded-l-lg", "last:before:rounded-r-lg"]
5660
+ }
5661
+ },
5662
+ fullWidth: {
5663
+ true: {
5664
+ base: "w-full",
5665
+ table: "w-full"
5666
+ }
5667
+ }
5668
+ },
5669
+ defaultVariants: {
5670
+ layout: "auto",
5671
+ shadow: "lg",
5672
+ radius: "xl",
5673
+ color: "neutral",
5674
+ hideHeader: false,
5675
+ isStriped: false,
5676
+ fullWidth: true
5677
+ }
5678
+ });
5679
+
5680
+ // src/components/spacer.ts
5681
+ var import_tailwind_variants34 = require("tailwind-variants");
5682
+ var spacer = (0, import_tailwind_variants34.tv)({
5683
+ base: "w-px h-px inline-block",
5684
+ variants: {
5685
+ isInline: {
5686
+ true: "inline-block",
5687
+ false: "block"
5688
+ }
5689
+ },
5690
+ defaultVariants: {
5691
+ isInline: false
5692
+ }
5693
+ });
5467
5694
  // Annotate the CommonJS export names for ESM import in node:
5468
5695
  0 && (module.exports = {
5469
5696
  accordion,
@@ -5495,7 +5722,9 @@ var navbar = (0, import_tailwind_variants32.tv)({
5495
5722
  radio,
5496
5723
  radioGroup,
5497
5724
  snippet,
5725
+ spacer,
5498
5726
  spinner,
5727
+ table,
5499
5728
  toggle,
5500
5729
  user
5501
5730
  });
@@ -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 "../chunk-RO3WUCFF.mjs";
@@ -129,7 +135,9 @@ export {
129
135
  radio,
130
136
  radioGroup,
131
137
  snippet,
138
+ spacer,
132
139
  spinner,
140
+ table,
133
141
  toggle,
134
142
  user
135
143
  };
@@ -3,7 +3,7 @@ import { VariantProps } from 'tailwind-variants';
3
3
  import * as tailwind_variants_dist_config from 'tailwind-variants/dist/config';
4
4
 
5
5
  /**
6
- * Card **Tailwind Variants** component
6
+ * Modal **Tailwind Variants** component
7
7
  *
8
8
  * @example
9
9
  * ```js
@@ -400,7 +400,7 @@ var pagination = (0, import_tailwind_variants.tv)({
400
400
  "data-[focus-visible=true]:ring-offset-2",
401
401
  "data-[focus-visible=true]:ring-offset-background",
402
402
  "data-[focus-visible=true]:dark:ring-offset-background-dark",
403
- "data-[disabled=true]:opacity-50",
403
+ "data-[disabled=true]:text-neutral-300",
404
404
  "data-[disabled=true]:pointer-events-none"
405
405
  ]
406
406
  },
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  pagination
3
- } from "../chunk-CJ7TG72B.mjs";
3
+ } from "../chunk-TYA6TT57.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
@@ -0,0 +1,27 @@
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
+ * Spacer wrapper **Tailwind Variants** component
7
+ *
8
+ * @example
9
+ *
10
+ * const styles = spacer()
11
+ *
12
+ * <span className={styles} />
13
+ */
14
+ declare const spacer: tailwind_variants.TVReturnType<{
15
+ isInline: {
16
+ true: string;
17
+ false: string;
18
+ };
19
+ }, unknown, undefined, undefined, "w-px h-px inline-block", tailwind_variants_dist_config.TVConfig<{
20
+ isInline: {
21
+ true: string;
22
+ false: string;
23
+ };
24
+ }, unknown>>;
25
+ type SpacerVariantProps = VariantProps<typeof spacer>;
26
+
27
+ export { SpacerVariantProps, spacer };
@@ -0,0 +1,42 @@
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
+
20
+ // src/components/spacer.ts
21
+ var spacer_exports = {};
22
+ __export(spacer_exports, {
23
+ spacer: () => spacer
24
+ });
25
+ module.exports = __toCommonJS(spacer_exports);
26
+ var import_tailwind_variants = require("tailwind-variants");
27
+ var spacer = (0, import_tailwind_variants.tv)({
28
+ base: "w-px h-px inline-block",
29
+ variants: {
30
+ isInline: {
31
+ true: "inline-block",
32
+ false: "block"
33
+ }
34
+ },
35
+ defaultVariants: {
36
+ isInline: false
37
+ }
38
+ });
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ spacer
42
+ });
@@ -0,0 +1,6 @@
1
+ import {
2
+ spacer
3
+ } from "../chunk-3B4SYPW2.mjs";
4
+ export {
5
+ spacer
6
+ };
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(spinner_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var spinner = (0, import_tailwind_variants.tv)({
28
28
  slots: {
29
- base: "flex flex-col items-center justify-center relative",
29
+ base: "inline-flex flex-col items-center justify-center relative",
30
30
  circle1: [
31
31
  "absolute",
32
32
  "w-full",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  spinner
3
- } from "../chunk-CO6ANWRA.mjs";
3
+ } from "../chunk-XUL76UJD.mjs";
4
4
  export {
5
5
  spinner
6
6
  };