@itera-web/react-ui-toggle 1.20.0 → 1.21.0
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.
- package/es/index.js +1 -1
- package/package.json +4 -4
package/es/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import*as e from"class-variance-authority";import*as t from"react";import*as r from"@itera-web/utils-cn";import*as
|
|
1
|
+
import*as e from"class-variance-authority";import*as t from"react";import*as r from"@itera-web/utils-cn";import*as a from"@radix-ui/react-toggle";var n={d:(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t)},o={};n.d(o,{Z:()=>v,E:()=>d});const i=(e=>{var t={};return n.d(t,e),t})({cva:()=>e.cva});const s=(e=>{var t={};return n.d(t,e),t})({createElement:()=>t.createElement,forwardRef:()=>t.forwardRef});const c=(e=>{var t={};return n.d(t,e),t})({cn:()=>r.cn});const l=(e=>{var t={};return n.d(t,e),t})({Root:()=>a.Root});var f=function(){return f=Object.assign||function(e){for(var t,r=1,a=arguments.length;r<a;r++)for(var n in t=arguments[r])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},f.apply(this,arguments)},u=function(e,t){var r={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(r[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(e);n<a.length;n++)t.indexOf(a[n])<0&&Object.prototype.propertyIsEnumerable.call(e,a[n])&&(r[a[n]]=e[a[n]])}return r},d=(0,i.cva)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-0 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg]:min-w-4 [&_svg]:min-h-4 gap-2",{variants:{variant:{default:"bg-transparent",outline:"border border-input bg-transparent hover:bg-accent hover:text-accent-foreground"},size:{default:"h-10 px-3 min-w-10",sm:"h-9 px-2.5 min-w-9",lg:"h-11 px-5 min-w-11"}},defaultVariants:{variant:"default",size:"default"}}),v=s.forwardRef(function(e,t){var r=e.className,a=e.variant,n=e.size,o=u(e,["className","variant","size"]);return s.createElement(l.Root,f({className:(0,c.cn)(d({variant:a,size:n,className:r})),ref:t},o))});v.displayName=l.Root.displayName;var p=o.Z,m=o.E;export{p as Toggle,m as toggleVariants};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itera-web/react-ui-toggle",
|
|
3
3
|
"description": "切换",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.21.0",
|
|
5
5
|
"main": "es/index.js",
|
|
6
6
|
"types": "es/index.d.ts",
|
|
7
7
|
"publishConfig": {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"up": "npm publish"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@itera-web/utils-cn": "^1.
|
|
16
|
+
"@itera-web/utils-cn": "^1.22.0",
|
|
17
17
|
"@radix-ui/react-toggle": "^1.1.3",
|
|
18
18
|
"class-variance-authority": "^0.7.1"
|
|
19
19
|
},
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"react-dom": ">=17.0.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@itera-web/cli": "^1.1.
|
|
25
|
+
"@itera-web/cli": "^1.1.54"
|
|
26
26
|
},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "9a809b3a00c6244a566f85279a82a29b25dc48eb"
|
|
28
28
|
}
|