@stackshift-ui/label 1.0.0-beta.1 → 1.0.0-beta.4

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,27 @@
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/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.1",
4
+ "version": "1.0.0-beta.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "main": "./dist/index.js",
@@ -36,11 +36,11 @@
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/scripts": "6.1.0-beta.0",
40
- "@stackshift-ui/system": "6.1.0-beta.0"
39
+ "@stackshift-ui/system": "6.1.0-beta.3",
40
+ "@stackshift-ui/scripts": "6.1.0-beta.2"
41
41
  },
42
42
  "peerDependencies": {
43
- "@stackshift-ui/system": ">=6.1.0-beta.0",
43
+ "@stackshift-ui/system": ">=6.1.0-beta.3",
44
44
  "@types/react": "16.8 - 19",
45
45
  "next": "10 - 14",
46
46
  "react": "16.8 - 19",