@nextui-org/theme 2.3.0-beta.12 → 2.3.0-beta.13

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.
@@ -1,157 +0,0 @@
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/circular-progress.ts
21
- var circular_progress_exports = {};
22
- __export(circular_progress_exports, {
23
- circularProgress: () => circularProgress
24
- });
25
- module.exports = __toCommonJS(circular_progress_exports);
26
-
27
- // src/utils/tv.ts
28
- var import_tailwind_variants = require("tailwind-variants");
29
-
30
- // src/utils/tw-merge-config.ts
31
- var COMMON_UNITS = ["small", "medium", "large"];
32
- var twMergeConfig = {
33
- theme: {
34
- opacity: ["disabled"],
35
- spacing: ["divider"],
36
- borderWidth: COMMON_UNITS,
37
- borderRadius: COMMON_UNITS
38
- },
39
- classGroups: {
40
- shadow: [{ shadow: COMMON_UNITS }],
41
- "font-size": [{ text: ["tiny", ...COMMON_UNITS] }],
42
- "bg-image": [
43
- "bg-stripe-gradient-default",
44
- "bg-stripe-gradient-primary",
45
- "bg-stripe-gradient-secondary",
46
- "bg-stripe-gradient-success",
47
- "bg-stripe-gradient-warning",
48
- "bg-stripe-gradient-danger"
49
- ]
50
- }
51
- };
52
-
53
- // src/utils/tv.ts
54
- var tv = (options, config) => {
55
- var _a, _b, _c;
56
- return (0, import_tailwind_variants.tv)(options, {
57
- ...config,
58
- twMerge: (_a = config == null ? void 0 : config.twMerge) != null ? _a : true,
59
- twMergeConfig: {
60
- ...config == null ? void 0 : config.twMergeConfig,
61
- theme: {
62
- ...(_b = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _b.theme,
63
- ...twMergeConfig.theme
64
- },
65
- classGroups: {
66
- ...(_c = config == null ? void 0 : config.twMergeConfig) == null ? void 0 : _c.classGroups,
67
- ...twMergeConfig.classGroups
68
- }
69
- }
70
- });
71
- };
72
-
73
- // src/components/circular-progress.ts
74
- var circularProgress = tv({
75
- slots: {
76
- base: "flex flex-col justify-center gap-1 max-w-fit items-center",
77
- label: "",
78
- svgWrapper: "relative block",
79
- svg: "z-0 relative overflow-hidden",
80
- track: "h-full stroke-default-300/50",
81
- indicator: "h-full stroke-current",
82
- value: "absolute font-normal inset-0 flex items-center justify-center"
83
- },
84
- variants: {
85
- color: {
86
- default: {
87
- svg: "text-default-400"
88
- },
89
- primary: {
90
- svg: "text-primary"
91
- },
92
- secondary: {
93
- svg: "text-secondary"
94
- },
95
- success: {
96
- svg: "text-success"
97
- },
98
- warning: {
99
- svg: "text-warning"
100
- },
101
- danger: {
102
- svg: "text-danger"
103
- }
104
- },
105
- size: {
106
- sm: {
107
- svg: "w-8 h-8",
108
- label: "text-small",
109
- value: "text-[0.5rem]"
110
- },
111
- md: {
112
- svg: "w-10 h-10",
113
- label: "text-small",
114
- value: "text-[0.55rem]"
115
- },
116
- lg: {
117
- svg: "w-12 h-12",
118
- label: "text-medium",
119
- value: "text-[0.6rem]"
120
- }
121
- },
122
- isIndeterminate: {
123
- true: {
124
- svg: "animate-spinner-ease-spin"
125
- }
126
- },
127
- isDisabled: {
128
- true: {
129
- base: "opacity-disabled cursor-not-allowed"
130
- }
131
- },
132
- disableAnimation: {
133
- true: {},
134
- false: {
135
- indicator: "transition-all !duration-500"
136
- }
137
- }
138
- },
139
- defaultVariants: {
140
- color: "primary",
141
- size: "md",
142
- isDisabled: false
143
- },
144
- compoundVariants: [
145
- {
146
- disableAnimation: true,
147
- isIndeterminate: false,
148
- class: {
149
- svg: "!transition-none motion-reduce:transition-none"
150
- }
151
- }
152
- ]
153
- });
154
- // Annotate the CommonJS export names for ESM import in node:
155
- 0 && (module.exports = {
156
- circularProgress
157
- });
@@ -1,8 +0,0 @@
1
- import {
2
- circularProgress
3
- } from "../chunk-AUN4SP2F.mjs";
4
- import "../chunk-UWE6H66T.mjs";
5
- import "../chunk-GIXI35A3.mjs";
6
- export {
7
- circularProgress
8
- };
File without changes
@@ -1,12 +1,12 @@
1
- import {
2
- transition_default
3
- } from "./chunk-WN6AL2BX.mjs";
4
1
  import {
5
2
  custom_default
6
3
  } from "./chunk-W5UU3F46.mjs";
7
4
  import {
8
5
  scrollbar_hide_default
9
6
  } from "./chunk-4Z22WXZX.mjs";
7
+ import {
8
+ transition_default
9
+ } from "./chunk-WN6AL2BX.mjs";
10
10
 
11
11
  // src/utilities/index.ts
12
12
  var utilities = {