@spark-ui/internal-utils 1.4.0 → 1.5.1
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 +10 -0
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/variants/constants.d.ts +2 -2
- package/dist/variants/index.d.ts +2 -2
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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.5.1](https://github.com/adevinta/spark/compare/@spark-ui/internal-utils@1.5.0...@spark-ui/internal-utils@1.5.1) (2023-04-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @spark-ui/internal-utils
|
|
9
|
+
|
|
10
|
+
# [1.5.0](https://github.com/adevinta/spark/compare/@spark-ui/internal-utils@1.4.0...@spark-ui/internal-utils@1.5.0) (2023-04-19)
|
|
11
|
+
|
|
12
|
+
### Features
|
|
13
|
+
|
|
14
|
+
- **internal-utils:** add current values and make variants partial ([5b1eb81](https://github.com/adevinta/spark/commit/5b1eb817fcbf1f05143e919fb4d37864828c257c))
|
|
15
|
+
|
|
6
16
|
# [1.4.0](https://github.com/adevinta/spark/compare/@spark-ui/internal-utils@1.3.0...@spark-ui/internal-utils@1.4.0) (2023-04-06)
|
|
7
17
|
|
|
8
18
|
### Features
|
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","contrast"],intents:["primary","secondary","success","error","info","alert","danger","neutral","surface"],shapes:["rounded","square","pill"],sizes:["sm","md","lg"]},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","primary","secondary","success","error","info","alert","danger","neutral","surface"],shapes:["rounded","square","pill"],sizes:["current","sm","md","lg"]},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", "contrast"], intents: ["primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface"], shapes: ["rounded", "square", "pill"], sizes: ["sm", "md", "lg"] }, 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", "primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface"], shapes: ["rounded", "square", "pill"], sizes: ["current", "sm", "md", "lg"] }, Symbol.toStringTag, { value: "Module" }));
|
|
8
8
|
export {
|
|
9
9
|
n as VariantTypes,
|
|
10
10
|
r as makeVariants,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare const sizes: readonly ["sm", "md", "lg"];
|
|
2
|
-
declare const intents: readonly ["primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface"];
|
|
1
|
+
declare const sizes: readonly ["current", "sm", "md", "lg"];
|
|
2
|
+
declare const intents: readonly ["current", "primary", "secondary", "success", "error", "info", "alert", "danger", "neutral", "surface"];
|
|
3
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/dist/variants/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare function makeVariants<Variant extends 'design' | 'intent' | 'shape' | 'size'
|
|
1
|
+
import { VariantLookup } from './types';
|
|
2
|
+
declare function makeVariants<Variant extends 'design' | 'intent' | 'shape' | 'size'>(variants: Partial<VariantLookup[Variant]>): Partial<VariantLookup[Variant]>;
|
|
3
3
|
export { makeVariants };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spark-ui/internal-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1",
|
|
4
4
|
"description": "package for sharing reusable code and resources across the codebase",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -11,5 +11,10 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "vite build"
|
|
13
13
|
},
|
|
14
|
-
"
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git@github.com:adevinta/spark.git",
|
|
17
|
+
"directory": "packages/utils/internal-utils"
|
|
18
|
+
},
|
|
19
|
+
"gitHead": "6ac8a30fcc1b265923a881263c6de954202a8d24"
|
|
15
20
|
}
|