@spark-ui/checkbox 1.2.12 → 1.2.14
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/CHANGELOG.md +8 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +3 -2
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
5
5
|
|
6
|
+
## [1.2.14](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.13...@spark-ui/checkbox@1.2.14) (2023-04-06)
|
7
|
+
|
8
|
+
**Note:** Version bump only for package @spark-ui/checkbox
|
9
|
+
|
10
|
+
## [1.2.13](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.12...@spark-ui/checkbox@1.2.13) (2023-04-06)
|
11
|
+
|
12
|
+
**Note:** Version bump only for package @spark-ui/checkbox
|
13
|
+
|
6
14
|
## [1.2.12](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.11...@spark-ui/checkbox@1.2.12) (2023-04-05)
|
7
15
|
|
8
16
|
**Note:** Version bump only for package @spark-ui/checkbox
|
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@radix-ui/react-checkbox"),o=require("@spark-ui/icons"),a=require("react"),i=require("class-variance-authority");function
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("@radix-ui/react-checkbox"),o=require("@spark-ui/icons"),a=require("react"),i=require("@spark-ui/internal-utils"),d=require("class-variance-authority");function u(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const c=u(n),l=d.cva(["h-sz-20 w-sz-20 border-md peer items-center justify-center rounded-sm bg-transparent","spark-disabled:opacity-dim-3 spark-disabled:cursor-not-allowed spark-disabled:hover:ring-0","focus-visible:ring-outline-high focus-visible:outline-none focus-visible:ring-2","hover:border-primary-container hover:outline-none hover:ring-2"],{variants:{intent:i.makeVariants({primary:["spark-state-unchecked:border-outline","spark-state-checked:border-primary spark-state-checked:bg-primary"],success:["spark-state-unchecked:border-success","spark-state-checked:border-success spark-state-checked:bg-success"],alert:["spark-state-unchecked:border-alert","spark-state-checked:border-alert spark-state-checked:bg-alert"],error:["spark-state-unchecked:border-error","spark-state-checked:border-error spark-state-checked:bg-error"]})},defaultVariants:{intent:"primary"}}),b=a.forwardRef(({intent:e,icon:t=a.createElement(o.Check,null),...r},s)=>a.createElement(c.Root,{ref:s,className:l({intent:e}),...r},a.createElement(c.Indicator,{className:"text-surface flex items-center justify-center"},t)));exports.Checkbox=b;
|
package/dist/index.mjs
CHANGED
@@ -1,8 +1,9 @@
|
|
1
1
|
import * as r from "@radix-ui/react-checkbox";
|
2
2
|
import { Check as o } from "@spark-ui/icons";
|
3
3
|
import e from "react";
|
4
|
+
import { makeVariants as i } from "@spark-ui/internal-utils";
|
4
5
|
import { cva as n } from "class-variance-authority";
|
5
|
-
const
|
6
|
+
const d = n(["h-sz-20 w-sz-20 border-md peer items-center justify-center rounded-sm bg-transparent", "spark-disabled:opacity-dim-3 spark-disabled:cursor-not-allowed spark-disabled:hover:ring-0", "focus-visible:ring-outline-high focus-visible:outline-none focus-visible:ring-2", "hover:border-primary-container hover:outline-none hover:ring-2"], { variants: { intent: i({ primary: ["spark-state-unchecked:border-outline", "spark-state-checked:border-primary spark-state-checked:bg-primary"], success: ["spark-state-unchecked:border-success", "spark-state-checked:border-success spark-state-checked:bg-success"], alert: ["spark-state-unchecked:border-alert", "spark-state-checked:border-alert spark-state-checked:bg-alert"], error: ["spark-state-unchecked:border-error", "spark-state-checked:border-error spark-state-checked:bg-error"] }) }, defaultVariants: { intent: "primary" } }), b = e.forwardRef(({ intent: t, icon: s = e.createElement(o, null), ...a }, c) => e.createElement(r.Root, { ref: c, className: d({ intent: t }), ...a }, e.createElement(r.Indicator, { className: "text-surface flex items-center justify-center" }, s)));
|
6
7
|
export {
|
7
|
-
|
8
|
+
b as Checkbox
|
8
9
|
};
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@spark-ui/checkbox",
|
3
|
-
"version": "1.2.
|
3
|
+
"version": "1.2.14",
|
4
4
|
"description": "A control that allows the user to toggle between checked and not checked.",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -13,8 +13,9 @@
|
|
13
13
|
},
|
14
14
|
"dependencies": {
|
15
15
|
"@radix-ui/react-checkbox": "1.0.3",
|
16
|
-
"@spark-ui/icons": "^1.3.
|
16
|
+
"@spark-ui/icons": "^1.3.6",
|
17
|
+
"@spark-ui/internal-utils": "1",
|
17
18
|
"class-variance-authority": "0.4.0"
|
18
19
|
},
|
19
|
-
"gitHead": "
|
20
|
+
"gitHead": "cebdcdf74505a35aeb743933bb9b829f20bff06e"
|
20
21
|
}
|