@stackshift-ui/label 1.0.0-beta.4 → 1.0.0-beta.5
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/package.json +6 -6
- package/dist/chunk-JPX3LRZD.mjs +0 -1
- package/dist/chunk-LW3VKW7P.mjs +0 -27
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -2
- package/dist/index.mjs +0 -2
- package/dist/label.d.ts +0 -5
- package/dist/label.js +0 -1
- package/dist/label.mjs +0 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stackshift-ui/label",
|
|
3
3
|
"description": "Renders an accessible label associated with controls.",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.5",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"main": "./dist/index.js",
|
|
@@ -29,18 +29,18 @@
|
|
|
29
29
|
"typescript": "^5.6.2",
|
|
30
30
|
"vite-tsconfig-paths": "^5.0.1",
|
|
31
31
|
"vitest": "^2.1.1",
|
|
32
|
-
"@stackshift-ui/
|
|
33
|
-
"@stackshift-ui/
|
|
32
|
+
"@stackshift-ui/eslint-config": "6.0.10",
|
|
33
|
+
"@stackshift-ui/typescript-config": "6.0.10"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
36
|
"@radix-ui/react-label": "^2.1.7",
|
|
37
37
|
"class-variance-authority": "^0.7.1",
|
|
38
38
|
"classnames": "^2.5.1",
|
|
39
|
-
"@stackshift-ui/
|
|
40
|
-
"@stackshift-ui/
|
|
39
|
+
"@stackshift-ui/scripts": "7.0.0-beta.3",
|
|
40
|
+
"@stackshift-ui/system": "7.0.0-beta.4"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@stackshift-ui/system": ">=
|
|
43
|
+
"@stackshift-ui/system": ">=7.0.0-beta.4",
|
|
44
44
|
"@types/react": "16.8 - 19",
|
|
45
45
|
"next": "10 - 14",
|
|
46
46
|
"react": "16.8 - 19",
|
package/dist/chunk-JPX3LRZD.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import*as e from"@radix-ui/react-label";import{cva as m}from"class-variance-authority";import*as t from"react";import{cn as p,DefaultComponent as s,useStackShiftUIComponents as l}from"@stackshift-ui/system";import{jsx as b}from"react/jsx-runtime";var o="Label",f=m("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),c=t.forwardRef(({className:a,...i},r)=>{let{[o]:n=s}=l();return b(n,{as:e.Root,ref:r,className:p(f(),a),...i})});c.displayName=o;export{c as a};
|
package/dist/chunk-LW3VKW7P.mjs
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
// src/label.tsx
|
|
2
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
import { cva } from "class-variance-authority";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
import { cn, DefaultComponent, useStackShiftUIComponents } from "@stackshift-ui/system";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
var displayName = "Label";
|
|
8
|
-
var labelVariants = cva(
|
|
9
|
-
"text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
|
|
10
|
-
);
|
|
11
|
-
var Label = React.forwardRef(({ className, ...props }, ref) => {
|
|
12
|
-
const { [displayName]: Component = DefaultComponent } = useStackShiftUIComponents();
|
|
13
|
-
return /* @__PURE__ */ jsx(
|
|
14
|
-
Component,
|
|
15
|
-
{
|
|
16
|
-
as: LabelPrimitive.Root,
|
|
17
|
-
ref,
|
|
18
|
-
className: cn(labelVariants(), className),
|
|
19
|
-
...props
|
|
20
|
-
}
|
|
21
|
-
);
|
|
22
|
-
});
|
|
23
|
-
Label.displayName = displayName;
|
|
24
|
-
|
|
25
|
-
export {
|
|
26
|
-
Label
|
|
27
|
-
};
|
package/dist/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./label";
|
package/dist/index.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";var R=Object.create;var n=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,L=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var o in t)n(e,o,{get:t[o],enumerable:!0})},m=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of P(t))!L.call(e,i)&&i!==o&&n(e,i,{get:()=>t[i],enumerable:!(r=y(t,i))||r.enumerable});return e};var p=(e,t,o)=>(o=e!=null?R(u(e)):{},m(t||!e||!e.__esModule?n(o,"default",{value:e,enumerable:!0}):o,e)),C=e=>m(n({},"__esModule",{value:!0}),e);var N={};v(N,{Label:()=>b});module.exports=C(N);var s=p(require("@radix-ui/react-label")),l=require("class-variance-authority"),f=p(require("react")),a=require("@stackshift-ui/system"),d=require("react/jsx-runtime"),c="Label",V=(0,l.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),b=f.forwardRef(({className:e,...t},o)=>{let{[c]:r=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,d.jsx)(r,{as:s.Root,ref:o,className:(0,a.cn)(V(),e),...t})});b.displayName=c;0&&(module.exports={Label});
|
package/dist/index.mjs
DELETED
package/dist/label.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
|
-
import { type VariantProps } from "class-variance-authority";
|
|
3
|
-
import * as React from "react";
|
|
4
|
-
declare const Label: React.ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & React.RefAttributes<HTMLLabelElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & React.RefAttributes<HTMLLabelElement>>;
|
|
5
|
-
export { Label };
|
package/dist/label.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";var R=Object.create;var n=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var P=Object.getOwnPropertyNames;var L=Object.getPrototypeOf,u=Object.prototype.hasOwnProperty;var v=(e,t)=>{for(var o in t)n(e,o,{get:t[o],enumerable:!0})},m=(e,t,o,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of P(t))!u.call(e,i)&&i!==o&&n(e,i,{get:()=>t[i],enumerable:!(r=y(t,i))||r.enumerable});return e};var p=(e,t,o)=>(o=e!=null?R(L(e)):{},m(t||!e||!e.__esModule?n(o,"default",{value:e,enumerable:!0}):o,e)),C=e=>m(n({},"__esModule",{value:!0}),e);var N={};v(N,{Label:()=>b});module.exports=C(N);var s=p(require("@radix-ui/react-label")),l=require("class-variance-authority"),f=p(require("react")),a=require("@stackshift-ui/system"),d=require("react/jsx-runtime"),c="Label",V=(0,l.cva)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"),b=f.forwardRef(({className:e,...t},o)=>{let{[c]:r=a.DefaultComponent}=(0,a.useStackShiftUIComponents)();return(0,d.jsx)(r,{as:s.Root,ref:o,className:(0,a.cn)(V(),e),...t})});b.displayName=c;0&&(module.exports={Label});
|
package/dist/label.mjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a}from"./chunk-JPX3LRZD.mjs";export{a as Label};
|