@nextui-org/theme 0.0.0-dev-v2-20230326201634 → 0.0.0-dev-v2-20230328182900

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.
@@ -0,0 +1,9 @@
1
+ // src/components/drip.ts
2
+ import { tv } from "tailwind-variants";
3
+ var drip = tv({
4
+ base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
5
+ });
6
+
7
+ export {
8
+ drip
9
+ };
@@ -124,6 +124,9 @@ var corePlugin = (config = {}, defaultTheme) => {
124
124
  0: "0ms",
125
125
  250: "250ms"
126
126
  },
127
+ transitionTimingFunction: {
128
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
129
+ },
127
130
  ...animations
128
131
  }
129
132
  }
@@ -125,11 +125,7 @@ var toggle = tv({
125
125
  },
126
126
  false: {
127
127
  wrapper: "transition-background",
128
- thumb: [
129
- "transition",
130
- "group-active:translate-x-1",
131
- "data-[checked=true]:group-active:translate-x-[90%]"
132
- ],
128
+ thumb: ["transition !soft-spring"],
133
129
  leftIcon: [
134
130
  "opacity-0",
135
131
  "scale-50",
@@ -148,7 +144,7 @@ var toggle = tv({
148
144
  },
149
145
  defaultVariants: {
150
146
  color: "primary",
151
- size: "md",
147
+ size: "lg",
152
148
  isDisabled: false,
153
149
  disableAnimation: false
154
150
  }
@@ -25,17 +25,7 @@ __export(drip_exports, {
25
25
  module.exports = __toCommonJS(drip_exports);
26
26
  var import_tailwind_variants = require("tailwind-variants");
27
27
  var drip = (0, import_tailwind_variants.tv)({
28
- base: [
29
- "hidden",
30
- "absolute",
31
- "opacity-0",
32
- "will-change-transform",
33
- "bg-current",
34
- "rounded-full",
35
- "animate-drip-expand",
36
- "data-[visible='true']:block",
37
- "data-[visible='true']:opacity-20"
38
- ]
28
+ base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
39
29
  });
40
30
  // Annotate the CommonJS export names for ESM import in node:
41
31
  0 && (module.exports = {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  drip
3
- } from "../chunk-TJJ5WRVA.mjs";
3
+ } from "../chunk-OIVGIOVG.mjs";
4
4
  export {
5
5
  drip
6
6
  };
@@ -994,17 +994,7 @@ var buttonGroup = (0, import_tailwind_variants7.tv)({
994
994
  // src/components/drip.ts
995
995
  var import_tailwind_variants8 = require("tailwind-variants");
996
996
  var drip = (0, import_tailwind_variants8.tv)({
997
- base: [
998
- "hidden",
999
- "absolute",
1000
- "opacity-0",
1001
- "will-change-transform",
1002
- "bg-current",
1003
- "rounded-full",
1004
- "animate-drip-expand",
1005
- "data-[visible='true']:block",
1006
- "data-[visible='true']:opacity-20"
1007
- ]
997
+ base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
1008
998
  });
1009
999
 
1010
1000
  // src/components/spinner.ts
@@ -3331,11 +3321,7 @@ var toggle = (0, import_tailwind_variants20.tv)({
3331
3321
  },
3332
3322
  false: {
3333
3323
  wrapper: "transition-background",
3334
- thumb: [
3335
- "transition",
3336
- "group-active:translate-x-1",
3337
- "data-[checked=true]:group-active:translate-x-[90%]"
3338
- ],
3324
+ thumb: ["transition !soft-spring"],
3339
3325
  leftIcon: [
3340
3326
  "opacity-0",
3341
3327
  "scale-50",
@@ -3354,7 +3340,7 @@ var toggle = (0, import_tailwind_variants20.tv)({
3354
3340
  },
3355
3341
  defaultVariants: {
3356
3342
  color: "primary",
3357
- size: "md",
3343
+ size: "lg",
3358
3344
  isDisabled: false,
3359
3345
  disableAnimation: false
3360
3346
  }
@@ -10,7 +10,7 @@ import {
10
10
  } from "../chunk-CO6ANWRA.mjs";
11
11
  import {
12
12
  toggle
13
- } from "../chunk-VB4T62HR.mjs";
13
+ } from "../chunk-UUG6QXXN.mjs";
14
14
  import {
15
15
  tooltip
16
16
  } from "../chunk-QIC7EALL.mjs";
@@ -28,7 +28,7 @@ import {
28
28
  } from "../chunk-B5S7HT6N.mjs";
29
29
  import {
30
30
  drip
31
- } from "../chunk-TJJ5WRVA.mjs";
31
+ } from "../chunk-OIVGIOVG.mjs";
32
32
  import {
33
33
  link
34
34
  } from "../chunk-5OE5CWK6.mjs";
@@ -157,11 +157,7 @@ var toggle = (0, import_tailwind_variants.tv)({
157
157
  },
158
158
  false: {
159
159
  wrapper: "transition-background",
160
- thumb: [
161
- "transition",
162
- "group-active:translate-x-1",
163
- "data-[checked=true]:group-active:translate-x-[90%]"
164
- ],
160
+ thumb: ["transition !soft-spring"],
165
161
  leftIcon: [
166
162
  "opacity-0",
167
163
  "scale-50",
@@ -180,7 +176,7 @@ var toggle = (0, import_tailwind_variants.tv)({
180
176
  },
181
177
  defaultVariants: {
182
178
  color: "primary",
183
- size: "md",
179
+ size: "lg",
184
180
  isDisabled: false,
185
181
  disableAnimation: false
186
182
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  toggle
3
- } from "../chunk-VB4T62HR.mjs";
3
+ } from "../chunk-UUG6QXXN.mjs";
4
4
  import "../chunk-CMYR6AOY.mjs";
5
5
  import "../chunk-K7LK7NCE.mjs";
6
6
  import "../chunk-LGGZKBOO.mjs";
package/dist/index.js CHANGED
@@ -1017,17 +1017,7 @@ var buttonGroup = (0, import_tailwind_variants7.tv)({
1017
1017
  // src/components/drip.ts
1018
1018
  var import_tailwind_variants8 = require("tailwind-variants");
1019
1019
  var drip = (0, import_tailwind_variants8.tv)({
1020
- base: [
1021
- "hidden",
1022
- "absolute",
1023
- "opacity-0",
1024
- "will-change-transform",
1025
- "bg-current",
1026
- "rounded-full",
1027
- "animate-drip-expand",
1028
- "data-[visible='true']:block",
1029
- "data-[visible='true']:opacity-20"
1030
- ]
1020
+ base: ["absolute", "will-change-transform", "bg-current", "rounded-full", "animate-drip-expand"]
1031
1021
  });
1032
1022
 
1033
1023
  // src/components/spinner.ts
@@ -3354,11 +3344,7 @@ var toggle = (0, import_tailwind_variants20.tv)({
3354
3344
  },
3355
3345
  false: {
3356
3346
  wrapper: "transition-background",
3357
- thumb: [
3358
- "transition",
3359
- "group-active:translate-x-1",
3360
- "data-[checked=true]:group-active:translate-x-[90%]"
3361
- ],
3347
+ thumb: ["transition !soft-spring"],
3362
3348
  leftIcon: [
3363
3349
  "opacity-0",
3364
3350
  "scale-50",
@@ -3377,7 +3363,7 @@ var toggle = (0, import_tailwind_variants20.tv)({
3377
3363
  },
3378
3364
  defaultVariants: {
3379
3365
  color: "primary",
3380
- size: "md",
3366
+ size: "lg",
3381
3367
  isDisabled: false,
3382
3368
  disableAnimation: false
3383
3369
  }
@@ -3990,6 +3976,9 @@ var corePlugin = (config = {}, defaultTheme) => {
3990
3976
  0: "0ms",
3991
3977
  250: "250ms"
3992
3978
  },
3979
+ transitionTimingFunction: {
3980
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
3981
+ },
3993
3982
  ...animations
3994
3983
  }
3995
3984
  }
package/dist/index.mjs CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-CO6ANWRA.mjs";
11
11
  import {
12
12
  toggle
13
- } from "./chunk-VB4T62HR.mjs";
13
+ } from "./chunk-UUG6QXXN.mjs";
14
14
  import {
15
15
  tooltip
16
16
  } from "./chunk-QIC7EALL.mjs";
@@ -28,7 +28,7 @@ import {
28
28
  } from "./chunk-B5S7HT6N.mjs";
29
29
  import {
30
30
  drip
31
- } from "./chunk-TJJ5WRVA.mjs";
31
+ } from "./chunk-OIVGIOVG.mjs";
32
32
  import {
33
33
  link
34
34
  } from "./chunk-5OE5CWK6.mjs";
@@ -72,7 +72,7 @@ import {
72
72
  } from "./chunk-LGGZKBOO.mjs";
73
73
  import {
74
74
  nextui
75
- } from "./chunk-FLLBEBQ3.mjs";
75
+ } from "./chunk-SCSMWJOJ.mjs";
76
76
  import "./chunk-45FXWIO6.mjs";
77
77
  import {
78
78
  absoluteFullClasses,
package/dist/plugin.js CHANGED
@@ -545,6 +545,9 @@ var corePlugin = (config = {}, defaultTheme) => {
545
545
  0: "0ms",
546
546
  250: "250ms"
547
547
  },
548
+ transitionTimingFunction: {
549
+ "soft-spring": "cubic-bezier(0.155, 1.105, 0.295, 1.12)"
550
+ },
548
551
  ...animations
549
552
  }
550
553
  }
package/dist/plugin.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  nextui
3
- } from "./chunk-FLLBEBQ3.mjs";
3
+ } from "./chunk-SCSMWJOJ.mjs";
4
4
  import "./chunk-45FXWIO6.mjs";
5
5
  import "./chunk-IJCHUO4J.mjs";
6
6
  import "./chunk-WQEDQHKX.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nextui-org/theme",
3
- "version": "0.0.0-dev-v2-20230326201634",
3
+ "version": "0.0.0-dev-v2-20230328182900",
4
4
  "description": "The default theme for NextUI components",
5
5
  "keywords": [
6
6
  "theme",
@@ -1,19 +0,0 @@
1
- // src/components/drip.ts
2
- import { tv } from "tailwind-variants";
3
- var drip = tv({
4
- base: [
5
- "hidden",
6
- "absolute",
7
- "opacity-0",
8
- "will-change-transform",
9
- "bg-current",
10
- "rounded-full",
11
- "animate-drip-expand",
12
- "data-[visible='true']:block",
13
- "data-[visible='true']:opacity-20"
14
- ]
15
- });
16
-
17
- export {
18
- drip
19
- };