@spark-ui/internal-utils 1.6.1-contrast → 2.0.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/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),r=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost"],intents:["current","primary","secondary","success","error","info","alert","danger","neutral","surface","contrast"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));exports.VariantTypes=t,exports.makeVariants=function(e){return e},exports.tw=function(e){return e},exports.variantConstants=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),r=Object.freeze(Object.defineProperty({__proto__:null,designs:["filled","outlined","tinted","ghost","contrast"],intents:["current","main","support","success","error","info","alert","danger","neutral","surface","accent","basic"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg","xl"]},Symbol.toStringTag,{value:"Module"}));exports.VariantTypes=t,exports.makeVariants=function(e){return e},exports.tw=function(e){return e},exports.variantConstants=r;
package/dist/index.mjs CHANGED
@@ -4,7 +4,7 @@ function t(e) {
4
4
  function r(e) {
5
5
  return e;
6
6
  }
7
- const n = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), a = Object.freeze(Object.defineProperty({ __proto__: null, designs: ["filled", "outlined", "tinted", "ghost"], intents: ["current", "primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface", "contrast"], shapes: ["rounded", "square", "pill"], sizes: ["current", "sm", "md", "lg", "xl"] }, Symbol.toStringTag, { value: "Module" }));
7
+ const n = Object.freeze(Object.defineProperty({ __proto__: null }, Symbol.toStringTag, { value: "Module" })), a = Object.freeze(Object.defineProperty({ __proto__: null, designs: ["filled", "outlined", "tinted", "ghost", "contrast"], intents: ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "accent", "basic"], shapes: ["rounded", "square", "pill"], sizes: ["current", "sm", "md", "lg", "xl"] }, Symbol.toStringTag, { value: "Module" }));
8
8
  export {
9
9
  n as VariantTypes,
10
10
  r as makeVariants,
@@ -7,7 +7,7 @@
7
7
  * @example
8
8
  *
9
9
  * // before
10
- * const styles: cva(['flex bg-primary', 'cursor-pointer'], {
10
+ * const styles: cva(['flex bg-main', 'cursor-pointer'], {
11
11
  * variants: {
12
12
  * size: {
13
13
  * small: "h-sz-24",
@@ -17,7 +17,7 @@
17
17
  * })
18
18
  *
19
19
  * // after
20
- * const styles = cva(tw(['flex bg-primary', 'cursor-pointer']), {
20
+ * const styles = cva(tw(['flex bg-main', 'cursor-pointer']), {
21
21
  * variants: {
22
22
  * size: {
23
23
  * small: tw("h-sz-24"),
@@ -1,5 +1,5 @@
1
1
  declare const sizes: readonly ["current", "sm", "md", "lg", "xl"];
2
- declare const intents: readonly ["current", "primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface", "contrast"];
3
- declare const designs: readonly ["filled", "outlined", "tinted", "ghost"];
2
+ declare const intents: readonly ["current", "main", "support", "success", "error", "info", "alert", "danger", "neutral", "surface", "accent", "basic"];
3
+ declare const designs: readonly ["filled", "outlined", "tinted", "ghost", "contrast"];
4
4
  declare const shapes: readonly ["rounded", "square", "pill"];
5
5
  export { sizes, intents, designs, shapes };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spark-ui/internal-utils",
3
- "version": "1.6.1-contrast",
3
+ "version": "2.0.0",
4
4
  "description": "package for sharing reusable code and resources across the codebase",
5
5
  "publishConfig": {
6
6
  "access": "public"