@nextui-org/theme 0.0.0-dev-v2-20230501173002 → 0.0.0-dev-v2-20230511041421

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.
@@ -102,16 +102,16 @@ var colorVariants = {
102
102
  // src/components/snippet.ts
103
103
  var snippet = (0, import_tailwind_variants.tv)({
104
104
  slots: {
105
- base: "inline-flex items-center justify-between space-x-3 rounded-md",
105
+ base: "inline-flex items-center justify-between rounded-md",
106
106
  pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
107
- copy: [
108
- "z-10 appearance-none outline-none rounded-sm",
109
- "data-[focus-visible=true]:outline-none",
110
- "data-[focus-visible=true]:ring-1",
111
- "data-[focus-visible=true]:ring-primary",
112
- "data-[focus-visible=true]:ring-offset-2",
113
- "data-[focus-visible=true]:ring-offset-transparent",
114
- "data-[focus-visible=true]:dark:ring-offset-transparent"
107
+ content: "flex flex-col",
108
+ symbol: "select-none",
109
+ copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
110
+ copyIcon: [
111
+ "absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
112
+ ],
113
+ checkIcon: [
114
+ "absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
115
115
  ]
116
116
  },
117
117
  variants: {
@@ -185,6 +185,13 @@ var snippet = (0, import_tailwind_variants.tv)({
185
185
  true: {
186
186
  base: "w-full"
187
187
  }
188
+ },
189
+ disableAnimation: {
190
+ true: {},
191
+ false: {
192
+ copyIcon: "transition-transform-opacity",
193
+ checkIcon: "transition-transform-opacity"
194
+ }
188
195
  }
189
196
  },
190
197
  defaultVariants: {
@@ -192,7 +199,8 @@ var snippet = (0, import_tailwind_variants.tv)({
192
199
  variant: "flat",
193
200
  size: "md",
194
201
  radius: "lg",
195
- fullWidth: false
202
+ fullWidth: false,
203
+ disableAnimation: false
196
204
  },
197
205
  compoundVariants: [
198
206
  {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  snippet
3
- } from "../chunk-4XSCIGTZ.mjs";
3
+ } from "../chunk-5ZJFAFZA.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-RO3WUCFF.mjs";
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { VariantProps, tv } from 'tailwind-variants';
3
3
  export { AvatarSlots, AvatarVariantProps, avatar } from './components/avatar.js';
4
4
  export { AvatarGroupVariantProps, avatarGroup } from './components/avatar-group.js';
5
5
  export { CardReturnType, CardSlots, CardVariantProps, card } from './components/card.js';
6
- export { LinkVariantProps, link } from './components/link.js';
6
+ export { LinkVariantProps, link, linkAnchorClasses } from './components/link.js';
7
7
  export { UserSlots, user } from './components/user.js';
8
8
  export { ButtonVariantProps, button } from './components/button.js';
9
9
  export { ButtonGroupVariantProps, buttonGroup } from './components/button-group.js';
@@ -37,6 +37,7 @@ export { SpacerVariantProps, spacer } from './components/spacer.js';
37
37
  export { DividerVariantProps, divider } from './components/divider.js';
38
38
  export { KbdSlots, KbdVariantProps, kbd } from './components/kbd.js';
39
39
  export { TabsReturnType, TabsSlots, TabsVariantProps, tabs } from './components/tabs.js';
40
+ export { SkeletonSlots, SkeletonVariantProps, skeleton } from './components/skeleton.js';
40
41
  export { absoluteFullClasses, baseStyles, focusVisibleClasses, ringClasses, translateCenterClasses } from './utils/classes.js';
41
42
  export { SlotsToClasses } from './utils/types.js';
42
43
  export { colorVariants } from './utils/variants.js';
package/dist/index.js CHANGED
@@ -56,6 +56,7 @@ __export(src_exports, {
56
56
  input: () => input,
57
57
  kbd: () => kbd,
58
58
  link: () => link,
59
+ linkAnchorClasses: () => linkAnchorClasses,
59
60
  modal: () => modal,
60
61
  navbar: () => navbar,
61
62
  nextui: () => nextui,
@@ -66,6 +67,7 @@ __export(src_exports, {
66
67
  radioGroup: () => radioGroup,
67
68
  ringClasses: () => ringClasses,
68
69
  semanticColors: () => semanticColors,
70
+ skeleton: () => skeleton,
69
71
  snippet: () => snippet,
70
72
  spacer: () => spacer,
71
73
  spinner: () => spinner,
@@ -73,7 +75,7 @@ __export(src_exports, {
73
75
  tabs: () => tabs,
74
76
  toggle: () => toggle,
75
77
  translateCenterClasses: () => translateCenterClasses,
76
- tv: () => import_tailwind_variants39.tv,
78
+ tv: () => import_tailwind_variants40.tv,
77
79
  user: () => user
78
80
  });
79
81
  module.exports = __toCommonJS(src_exports);
@@ -656,7 +658,7 @@ var link = (0, import_tailwind_variants4.tv)({
656
658
  {
657
659
  isBlock: true,
658
660
  color: "foreground",
659
- class: "hover:after:bg-foreground/20"
661
+ class: "hover:after:bg-foreground/10"
660
662
  },
661
663
  {
662
664
  isBlock: true,
@@ -697,6 +699,7 @@ var link = (0, import_tailwind_variants4.tv)({
697
699
  disableAnimation: false
698
700
  }
699
701
  });
702
+ var linkAnchorClasses = "flex mx-1 text-current self-center";
700
703
 
701
704
  // src/components/user.ts
702
705
  var import_tailwind_variants5 = require("tailwind-variants");
@@ -736,7 +739,6 @@ var button = (0, import_tailwind_variants6.tv)({
736
739
  "data-[pressed=true]:scale-95",
737
740
  "overflow-hidden",
738
741
  "gap-1.5",
739
- "[&>svg]:max-w-[2em]",
740
742
  "data-[focus-visible=true]:outline-none",
741
743
  "data-[focus-visible=true]:ring-2",
742
744
  "data-[focus-visible=true]:ring-primary",
@@ -747,12 +749,12 @@ var button = (0, import_tailwind_variants6.tv)({
747
749
  variants: {
748
750
  variant: {
749
751
  solid: "",
750
- bordered: "border-2 !bg-transparent",
751
- light: "!bg-transparent",
752
+ bordered: "border-2 bg-transparent",
753
+ light: "bg-transparent",
752
754
  flat: "",
753
755
  faded: "border-2",
754
756
  shadow: "",
755
- ghost: "border-2 !bg-transparent"
757
+ ghost: "border-2 bg-transparent"
756
758
  },
757
759
  size: {
758
760
  xs: "px-2 h-6 text-xs",
@@ -762,12 +764,12 @@ var button = (0, import_tailwind_variants6.tv)({
762
764
  xl: "px-8 h-14 text-lg"
763
765
  },
764
766
  color: {
765
- neutral: colorVariants.solid.neutral,
766
- primary: colorVariants.solid.primary,
767
- secondary: colorVariants.solid.secondary,
768
- success: colorVariants.solid.success,
769
- warning: colorVariants.solid.warning,
770
- danger: colorVariants.solid.danger
767
+ neutral: "",
768
+ primary: "",
769
+ secondary: "",
770
+ success: "",
771
+ warning: "",
772
+ danger: ""
771
773
  },
772
774
  radius: {
773
775
  none: "rounded-none",
@@ -790,7 +792,8 @@ var button = (0, import_tailwind_variants6.tv)({
790
792
  true: "[&:not(:first-child):not(:last-child)]:rounded-none"
791
793
  },
792
794
  isIconOnly: {
793
- true: "p-0 gap-0"
795
+ true: "p-0 gap-0",
796
+ false: "[&>svg]:max-w-[2em]"
794
797
  },
795
798
  disableAnimation: {
796
799
  true: "!transition-none",
@@ -808,6 +811,36 @@ var button = (0, import_tailwind_variants6.tv)({
808
811
  disableAnimation: false
809
812
  },
810
813
  compoundVariants: [
814
+ {
815
+ variant: "solid",
816
+ color: "neutral",
817
+ class: colorVariants.solid.neutral
818
+ },
819
+ {
820
+ variant: "solid",
821
+ color: "primary",
822
+ class: colorVariants.solid.primary
823
+ },
824
+ {
825
+ variant: "solid",
826
+ color: "secondary",
827
+ class: colorVariants.solid.secondary
828
+ },
829
+ {
830
+ variant: "solid",
831
+ color: "success",
832
+ class: colorVariants.solid.success
833
+ },
834
+ {
835
+ variant: "solid",
836
+ color: "warning",
837
+ class: colorVariants.solid.warning
838
+ },
839
+ {
840
+ variant: "solid",
841
+ color: "danger",
842
+ class: colorVariants.solid.danger
843
+ },
811
844
  {
812
845
  variant: "shadow",
813
846
  color: "neutral",
@@ -931,32 +964,32 @@ var button = (0, import_tailwind_variants6.tv)({
931
964
  {
932
965
  variant: "light",
933
966
  color: "neutral",
934
- class: [colorVariants.light.neutral, "hover:!bg-neutral-100"]
967
+ class: [colorVariants.light.neutral, "data-[hover=true]:bg-neutral-100"]
935
968
  },
936
969
  {
937
970
  variant: "light",
938
971
  color: "primary",
939
- class: [colorVariants.light.primary, "hover:!bg-primary-50"]
972
+ class: [colorVariants.light.primary, "data-[hover=true]:bg-primary-50"]
940
973
  },
941
974
  {
942
975
  variant: "light",
943
976
  color: "secondary",
944
- class: [colorVariants.light.secondary, "hover:!bg-secondary-100"]
977
+ class: [colorVariants.light.secondary, "data-[hover=true]:bg-secondary-100"]
945
978
  },
946
979
  {
947
980
  variant: "light",
948
981
  color: "success",
949
- class: [colorVariants.light.success, "hover:!bg-success-50"]
982
+ class: [colorVariants.light.success, "data-[hover=true]:bg-success-50"]
950
983
  },
951
984
  {
952
985
  variant: "light",
953
986
  color: "warning",
954
- class: [colorVariants.light.warning, "hover:!bg-warning-50"]
987
+ class: [colorVariants.light.warning, "data-[hover=true]:bg-warning-50"]
955
988
  },
956
989
  {
957
990
  variant: "light",
958
991
  color: "danger",
959
- class: [colorVariants.light.danger, "hover:!bg-danger-50"]
992
+ class: [colorVariants.light.danger, "data-[hover=true]:bg-danger-50"]
960
993
  },
961
994
  {
962
995
  variant: "ghost",
@@ -1554,16 +1587,16 @@ var popover = (0, import_tailwind_variants11.tv)({
1554
1587
  var import_tailwind_variants12 = require("tailwind-variants");
1555
1588
  var snippet = (0, import_tailwind_variants12.tv)({
1556
1589
  slots: {
1557
- base: "inline-flex items-center justify-between space-x-3 rounded-md",
1590
+ base: "inline-flex items-center justify-between rounded-md",
1558
1591
  pre: "bg-transparent text-inherit font-mono whitespace-pre-wrap",
1559
- copy: [
1560
- "z-10 appearance-none outline-none rounded-sm",
1561
- "data-[focus-visible=true]:outline-none",
1562
- "data-[focus-visible=true]:ring-1",
1563
- "data-[focus-visible=true]:ring-primary",
1564
- "data-[focus-visible=true]:ring-offset-2",
1565
- "data-[focus-visible=true]:ring-offset-transparent",
1566
- "data-[focus-visible=true]:dark:ring-offset-transparent"
1592
+ content: "flex flex-col",
1593
+ symbol: "select-none",
1594
+ copyButton: ["group", "relative", "z-10", "text-inherit", "data-[hover=true]:bg-transparent"],
1595
+ copyIcon: [
1596
+ "absolute text-inherit opacity-100 scale-100 group-data-[copied=true]:opacity-0 group-data-[copied=true]:scale-50"
1597
+ ],
1598
+ checkIcon: [
1599
+ "absolute text-inherit opacity-0 scale-50 group-data-[copied=true]:opacity-100 group-data-[copied=true]:scale-100"
1567
1600
  ]
1568
1601
  },
1569
1602
  variants: {
@@ -1637,6 +1670,13 @@ var snippet = (0, import_tailwind_variants12.tv)({
1637
1670
  true: {
1638
1671
  base: "w-full"
1639
1672
  }
1673
+ },
1674
+ disableAnimation: {
1675
+ true: {},
1676
+ false: {
1677
+ copyIcon: "transition-transform-opacity",
1678
+ checkIcon: "transition-transform-opacity"
1679
+ }
1640
1680
  }
1641
1681
  },
1642
1682
  defaultVariants: {
@@ -1644,7 +1684,8 @@ var snippet = (0, import_tailwind_variants12.tv)({
1644
1684
  variant: "flat",
1645
1685
  size: "md",
1646
1686
  radius: "lg",
1647
- fullWidth: false
1687
+ fullWidth: false,
1688
+ disableAnimation: false
1648
1689
  },
1649
1690
  compoundVariants: [
1650
1691
  {
@@ -6194,6 +6235,56 @@ var tabs = (0, import_tailwind_variants37.tv)({
6194
6235
  ]
6195
6236
  });
6196
6237
 
6238
+ // src/components/skeleton.ts
6239
+ var import_tailwind_variants38 = require("tailwind-variants");
6240
+ var skeleton = (0, import_tailwind_variants38.tv)({
6241
+ slots: {
6242
+ base: [
6243
+ "group",
6244
+ "relative",
6245
+ "space-y-5",
6246
+ "overflow-hidden",
6247
+ "bg-white/5",
6248
+ "before:opacity-100",
6249
+ "before:absolute",
6250
+ "before:inset-0",
6251
+ "before:-translate-x-full",
6252
+ "before:animate-[shimmer_2s_infinite]",
6253
+ "before:border-t",
6254
+ "before:border-content4/70",
6255
+ "before:bg-gradient-to-r",
6256
+ "before:from-transparent",
6257
+ "before:via-content4",
6258
+ "dark:before:via-neutral-700/10",
6259
+ "before:to-transparent",
6260
+ "after:opacity-100",
6261
+ "after:absolute",
6262
+ "after:inset-0",
6263
+ "after:-z-10",
6264
+ "after:bg-content3",
6265
+ "dark:after:bg-content2",
6266
+ "data-[loaded=true]:before:opacity-0",
6267
+ "data-[loaded=true]:after:opacity-0"
6268
+ ],
6269
+ content: ["opacity-0", "group-data-[loaded=true]:opacity-100"]
6270
+ },
6271
+ variants: {
6272
+ disableAnimation: {
6273
+ true: {
6274
+ base: "before:transition-none",
6275
+ content: "transition-none"
6276
+ },
6277
+ false: {
6278
+ base: "before:transition-opacity before:!duration-300",
6279
+ content: "transition-opacity motion-reduce:transition-none !duration-300"
6280
+ }
6281
+ }
6282
+ },
6283
+ defaultVariants: {
6284
+ disableAnimation: false
6285
+ }
6286
+ });
6287
+
6197
6288
  // src/colors/blue.ts
6198
6289
  var blue = {
6199
6290
  50: "#e6f1fe",
@@ -6757,9 +6848,9 @@ var nextui = (config = {}) => {
6757
6848
  };
6758
6849
 
6759
6850
  // src/index.ts
6760
- var import_tailwind_variants38 = require("tailwind-variants");
6761
6851
  var import_tailwind_variants39 = require("tailwind-variants");
6762
- var cn = (...classes) => (0, import_tailwind_variants38.cn)(classes)();
6852
+ var import_tailwind_variants40 = require("tailwind-variants");
6853
+ var cn = (...classes) => (0, import_tailwind_variants39.cn)(classes)();
6763
6854
  // Annotate the CommonJS export names for ESM import in node:
6764
6855
  0 && (module.exports = {
6765
6856
  absoluteFullClasses,
@@ -6792,6 +6883,7 @@ var cn = (...classes) => (0, import_tailwind_variants38.cn)(classes)();
6792
6883
  input,
6793
6884
  kbd,
6794
6885
  link,
6886
+ linkAnchorClasses,
6795
6887
  modal,
6796
6888
  navbar,
6797
6889
  nextui,
@@ -6802,6 +6894,7 @@ var cn = (...classes) => (0, import_tailwind_variants38.cn)(classes)();
6802
6894
  radioGroup,
6803
6895
  ringClasses,
6804
6896
  semanticColors,
6897
+ skeleton,
6805
6898
  snippet,
6806
6899
  spacer,
6807
6900
  spinner,
package/dist/index.mjs CHANGED
@@ -1,4 +1,13 @@
1
- import "./chunk-T6HAGWX5.mjs";
1
+ import "./chunk-MVXKHHAX.mjs";
2
+ import {
3
+ spacer
4
+ } from "./chunk-3B4SYPW2.mjs";
5
+ import {
6
+ spinner
7
+ } from "./chunk-XUL76UJD.mjs";
8
+ import {
9
+ table
10
+ } from "./chunk-KWWWVBJL.mjs";
2
11
  import {
3
12
  tabs
4
13
  } from "./chunk-UUJTS7XS.mjs";
@@ -8,6 +17,12 @@ import {
8
17
  import {
9
18
  user
10
19
  } from "./chunk-ZNBW4PQF.mjs";
20
+ import {
21
+ navbar
22
+ } from "./chunk-U3BMJPED.mjs";
23
+ import {
24
+ pagination
25
+ } from "./chunk-3LME35GX.mjs";
11
26
  import {
12
27
  popover
13
28
  } from "./chunk-JWVJZEAT.mjs";
@@ -21,17 +36,17 @@ import {
21
36
  radio
22
37
  } from "./chunk-OZPCO5UB.mjs";
23
38
  import {
24
- snippet
25
- } from "./chunk-4XSCIGTZ.mjs";
39
+ skeleton
40
+ } from "./chunk-G23VRPTF.mjs";
26
41
  import {
27
- spacer
28
- } from "./chunk-3B4SYPW2.mjs";
42
+ snippet
43
+ } from "./chunk-5ZJFAFZA.mjs";
29
44
  import {
30
- spinner
31
- } from "./chunk-XUL76UJD.mjs";
45
+ dropdownSection
46
+ } from "./chunk-AVGEHFT4.mjs";
32
47
  import {
33
- table
34
- } from "./chunk-KWWWVBJL.mjs";
48
+ dropdown
49
+ } from "./chunk-UNMHV7HH.mjs";
35
50
  import {
36
51
  image
37
52
  } from "./chunk-6GGRJ6I7.mjs";
@@ -42,17 +57,18 @@ import {
42
57
  kbd
43
58
  } from "./chunk-KUQBSI5S.mjs";
44
59
  import {
45
- link
46
- } from "./chunk-XICTHLAR.mjs";
60
+ link,
61
+ linkAnchorClasses
62
+ } from "./chunk-YQXYRWJP.mjs";
47
63
  import {
48
64
  modal
49
65
  } from "./chunk-YMIOHWCD.mjs";
50
66
  import {
51
- navbar
52
- } from "./chunk-U3BMJPED.mjs";
67
+ checkbox
68
+ } from "./chunk-7EKGN7JP.mjs";
53
69
  import {
54
- pagination
55
- } from "./chunk-3LME35GX.mjs";
70
+ chip
71
+ } from "./chunk-W5WYYDCM.mjs";
56
72
  import {
57
73
  circularProgress
58
74
  } from "./chunk-AU7WYHMP.mjs";
@@ -72,11 +88,11 @@ import {
72
88
  dropdownMenu
73
89
  } from "./chunk-FCYNUVAR.mjs";
74
90
  import {
75
- dropdownSection
76
- } from "./chunk-AVGEHFT4.mjs";
91
+ accordion
92
+ } from "./chunk-YYBLBQIV.mjs";
77
93
  import {
78
- dropdown
79
- } from "./chunk-UNMHV7HH.mjs";
94
+ avatarGroup
95
+ } from "./chunk-MLH3XSY7.mjs";
80
96
  import {
81
97
  avatar
82
98
  } from "./chunk-S7ZC2I7Y.mjs";
@@ -88,33 +104,21 @@ import {
88
104
  } from "./chunk-VKFQ7EZN.mjs";
89
105
  import {
90
106
  button
91
- } from "./chunk-UM54LZPC.mjs";
107
+ } from "./chunk-YMKJFSPB.mjs";
108
+ import "./chunk-CMYR6AOY.mjs";
109
+ import "./chunk-K7LK7NCE.mjs";
110
+ import {
111
+ colorVariants
112
+ } from "./chunk-RO3WUCFF.mjs";
92
113
  import {
93
114
  card
94
115
  } from "./chunk-6QKRZ3JE.mjs";
95
116
  import {
96
117
  checkboxGroup
97
118
  } from "./chunk-U77YMEWM.mjs";
98
- import {
99
- checkbox
100
- } from "./chunk-7EKGN7JP.mjs";
101
- import {
102
- chip
103
- } from "./chunk-W5WYYDCM.mjs";
104
- import "./chunk-CMYR6AOY.mjs";
105
- import "./chunk-K7LK7NCE.mjs";
106
- import {
107
- colorVariants
108
- } from "./chunk-RO3WUCFF.mjs";
109
119
  import {
110
120
  accordionItem
111
121
  } from "./chunk-XSFH4S4Y.mjs";
112
- import {
113
- accordion
114
- } from "./chunk-YYBLBQIV.mjs";
115
- import {
116
- avatarGroup
117
- } from "./chunk-MLH3XSY7.mjs";
118
122
  import {
119
123
  nextui
120
124
  } from "./chunk-WUXZWYH4.mjs";
@@ -182,6 +186,7 @@ export {
182
186
  input,
183
187
  kbd,
184
188
  link,
189
+ linkAnchorClasses,
185
190
  modal,
186
191
  navbar,
187
192
  nextui,
@@ -192,6 +197,7 @@ export {
192
197
  radioGroup,
193
198
  ringClasses,
194
199
  semanticColors,
200
+ skeleton,
195
201
  snippet,
196
202
  spacer,
197
203
  spinner,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230501173002",
3
+ "version": "0.0.0-dev-v2-20230511041421",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
File without changes