@spark-ui/checkbox 1.2.11 → 1.2.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.
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.13](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.12...@spark-ui/checkbox@1.2.13) (2023-04-06)
7
+
8
+ **Note:** Version bump only for package @spark-ui/checkbox
9
+
10
+ ## [1.2.12](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.11...@spark-ui/checkbox@1.2.12) (2023-04-05)
11
+
12
+ **Note:** Version bump only for package @spark-ui/checkbox
13
+
6
14
  ## [1.2.11](https://github.com/adevinta/spark/compare/@spark-ui/checkbox@1.2.10...@spark-ui/checkbox@1.2.11) (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 d(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=d(n),u=i.cva(["peer h-sz-20 w-sz-20 rounded-sm border-md bg-transparent items-center justify-center","spark-disabled:opacity-dim-3 spark-disabled:cursor-not-allowed spark-disabled:hover:ring-0","focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-outline-high","hover:outline-none hover:ring-2 hover:border-primary-container"],{variants:{intent:{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"}}),l=a.forwardRef(({intent:e,icon:t=a.createElement(o.Check,null),...r},s)=>a.createElement(c.Root,{ref:s,className:u({intent:e}),...r},a.createElement(c.Indicator,{className:"flex items-center justify-center text-surface"},t)));exports.Checkbox=l;
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 d(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=d(n),u=i.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:{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"}}),l=a.forwardRef(({intent:e,icon:t=a.createElement(o.Check,null),...r},s)=>a.createElement(c.Root,{ref:s,className:u({intent:e}),...r},a.createElement(c.Indicator,{className:"text-surface flex items-center justify-center"},t)));exports.Checkbox=l;
package/dist/index.mjs CHANGED
@@ -2,7 +2,7 @@ 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
4
  import { cva as n } from "class-variance-authority";
5
- const i = n(["peer h-sz-20 w-sz-20 rounded-sm border-md bg-transparent items-center justify-center", "spark-disabled:opacity-dim-3 spark-disabled:cursor-not-allowed spark-disabled:hover:ring-0", "focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-outline-high", "hover:outline-none hover:ring-2 hover:border-primary-container"], { variants: { intent: { 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" } }), l = e.forwardRef(({ intent: t, icon: s = e.createElement(o, null), ...a }, c) => e.createElement(r.Root, { ref: c, className: i({ intent: t }), ...a }, e.createElement(r.Indicator, { className: "flex items-center justify-center text-surface" }, s)));
5
+ const i = 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: { 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" } }), l = e.forwardRef(({ intent: t, icon: s = e.createElement(o, null), ...a }, c) => e.createElement(r.Root, { ref: c, className: i({ intent: t }), ...a }, e.createElement(r.Indicator, { className: "text-surface flex items-center justify-center" }, s)));
6
6
  export {
7
7
  l as Checkbox
8
8
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/checkbox",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
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,8 @@
13
13
  },
14
14
  "dependencies": {
15
15
  "@radix-ui/react-checkbox": "1.0.3",
16
- "@spark-ui/icons": "^1.3.3",
16
+ "@spark-ui/icons": "^1.3.5",
17
17
  "class-variance-authority": "0.4.0"
18
18
  },
19
- "gitHead": "be4be93b3baf802f0bf5b47753377a64269b35c6"
19
+ "gitHead": "a5a87741408264a57672bf562f14b97a3a63582a"
20
20
  }