@tokenami/config 0.0.64 → 0.0.66

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.cjs CHANGED
@@ -17,7 +17,7 @@ var gridValueRegex = /^\d+/;
17
17
  var GridValue = {
18
18
  safeParse: (input) => validate(gridValueRegex, input)
19
19
  };
20
- var tokenPropertyRegex = /(?<!var\()--(?:[\w-]+|\{[^\{\}]*\})+/g;
20
+ var tokenPropertyRegex = /(?<!var\()--(?:[^'":{}]+|{&:[^}]*})+/g;
21
21
  var TokenProperty = {
22
22
  safeParse: (input) => validate(tokenPropertyRegex, input)
23
23
  };
@@ -133,11 +133,11 @@ var shorthandsToLonghands = [
133
133
  ["border-right", ["&-width", "&-style", "&-color"]],
134
134
  ["border-bottom", ["&-width", "&-style", "&-color"]],
135
135
  ["border-left", ["&-width", "&-style", "&-color"]],
136
- ["border-color", ["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"]],
137
- ["border-style", ["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"]],
138
- ["border-width", ["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"]],
136
+ ["border-color", ["border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-inline-color", "border-block-color"]],
137
+ ["border-style", ["border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-inline-style", "border-block-style"]],
138
+ ["border-width", ["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-inline-width", "border-block-width"]],
139
139
  ["border-image", ["&-source", "&-slice", "&-width", "&-outset", "&-repeat"]],
140
- ["border-radius", ["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"]],
140
+ ["border-radius", ["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius", "border-start-start-radius", "border-start-end-radius", "border-end-start-radius", "border-end-end-radius"]],
141
141
  ["border-block", ["&-width", "&-style", "&-color", "&-start", "&-end"]],
142
142
  ["border-block-width", ["border-block-start-width", "border-block-end-width"]],
143
143
  ["border-block-style", ["border-block-start-style", "border-block-end-style"]],
@@ -164,29 +164,29 @@ var shorthandsToLonghands = [
164
164
  ["grid-column", ["&-start", "&-end"]],
165
165
  ["grid-row", ["&-start", "&-end"]],
166
166
  ["grid-template", ["&-rows", "&-columns", "&-areas"]],
167
- ["inset", ["top", "right", "bottom", "left"]],
167
+ ["inset", ["top", "right", "bottom", "left", "&-block", "&-inline"]],
168
168
  ["list-style", ["&-type", "&-position", "&-image"]],
169
169
  ["inset-block", ["&-start", "&-end"]],
170
170
  ["inset-inline", ["&-start", "&-end"]],
171
- ["margin", ["&-top", "&-right", "&-bottom", "&-left"]],
171
+ ["margin", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
172
172
  ["margin-block", ["&-start", "&-end"]],
173
173
  ["margin-inline", ["&-start", "&-end"]],
174
174
  ["mask", ["&-image", "&-mode", "&-position", "&-size", "&-repeat", "&-origin", "&-clip", "&-composite", "&-type"]],
175
175
  ["mask-border", ["&-mode", "&-outset", "&-repeat", "&-slice", "&-source", "&-width"]],
176
176
  ["offset", ["&-position", "&-path", "&-distance", "&-anchor", "&-rotate"]],
177
177
  ["outline", ["&-color", "&-style", "&-width"]],
178
- ["overflow", ["&-x", "&-y"]],
179
- ["overscroll-behavior", ["&-x", "&-y"]],
180
- ["padding", ["&-top", "&-right", "&-bottom", "&-left"]],
178
+ ["overflow", ["&-x", "&-y", "&-block", "&-inline"]],
179
+ ["overscroll-behavior", ["&-x", "&-y", "&-block", "&-inline"]],
180
+ ["padding", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
181
181
  ["padding-block", ["&-start", "&-end"]],
182
182
  ["padding-inline", ["&-start", "&-end"]],
183
183
  ["place-content", ["align-content", "justify-content"]],
184
184
  ["place-items", ["align-items", "justify-items"]],
185
185
  ["place-self", ["align-self", "justify-self"]],
186
- ["scroll-margin", ["&-top", "&-right", "&-bottom", "&-left"]],
186
+ ["scroll-margin", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
187
187
  ["scroll-margin-block", ["&-start", "&-end"]],
188
188
  ["scroll-margin-inline", ["&-start", "&-end"]],
189
- ["scroll-padding", ["&-top", "&-right", "&-bottom", "&-left"]],
189
+ ["scroll-padding", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
190
190
  ["scroll-padding-block", ["&-start", "&-end"]],
191
191
  ["scroll-padding-inline", ["&-start", "&-end"]],
192
192
  ["scroll-timeline", ["&-name", "&-axis"]],
package/dist/index.js CHANGED
@@ -15,7 +15,7 @@ var gridValueRegex = /^\d+/;
15
15
  var GridValue = {
16
16
  safeParse: (input) => validate(gridValueRegex, input)
17
17
  };
18
- var tokenPropertyRegex = /(?<!var\()--(?:[\w-]+|\{[^\{\}]*\})+/g;
18
+ var tokenPropertyRegex = /(?<!var\()--(?:[^'":{}]+|{&:[^}]*})+/g;
19
19
  var TokenProperty = {
20
20
  safeParse: (input) => validate(tokenPropertyRegex, input)
21
21
  };
@@ -131,11 +131,11 @@ var shorthandsToLonghands = [
131
131
  ["border-right", ["&-width", "&-style", "&-color"]],
132
132
  ["border-bottom", ["&-width", "&-style", "&-color"]],
133
133
  ["border-left", ["&-width", "&-style", "&-color"]],
134
- ["border-color", ["border-top-color", "border-right-color", "border-bottom-color", "border-left-color"]],
135
- ["border-style", ["border-top-style", "border-right-style", "border-bottom-style", "border-left-style"]],
136
- ["border-width", ["border-top-width", "border-right-width", "border-bottom-width", "border-left-width"]],
134
+ ["border-color", ["border-top-color", "border-right-color", "border-bottom-color", "border-left-color", "border-inline-color", "border-block-color"]],
135
+ ["border-style", ["border-top-style", "border-right-style", "border-bottom-style", "border-left-style", "border-inline-style", "border-block-style"]],
136
+ ["border-width", ["border-top-width", "border-right-width", "border-bottom-width", "border-left-width", "border-inline-width", "border-block-width"]],
137
137
  ["border-image", ["&-source", "&-slice", "&-width", "&-outset", "&-repeat"]],
138
- ["border-radius", ["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius"]],
138
+ ["border-radius", ["border-top-left-radius", "border-top-right-radius", "border-bottom-right-radius", "border-bottom-left-radius", "border-start-start-radius", "border-start-end-radius", "border-end-start-radius", "border-end-end-radius"]],
139
139
  ["border-block", ["&-width", "&-style", "&-color", "&-start", "&-end"]],
140
140
  ["border-block-width", ["border-block-start-width", "border-block-end-width"]],
141
141
  ["border-block-style", ["border-block-start-style", "border-block-end-style"]],
@@ -162,29 +162,29 @@ var shorthandsToLonghands = [
162
162
  ["grid-column", ["&-start", "&-end"]],
163
163
  ["grid-row", ["&-start", "&-end"]],
164
164
  ["grid-template", ["&-rows", "&-columns", "&-areas"]],
165
- ["inset", ["top", "right", "bottom", "left"]],
165
+ ["inset", ["top", "right", "bottom", "left", "&-block", "&-inline"]],
166
166
  ["list-style", ["&-type", "&-position", "&-image"]],
167
167
  ["inset-block", ["&-start", "&-end"]],
168
168
  ["inset-inline", ["&-start", "&-end"]],
169
- ["margin", ["&-top", "&-right", "&-bottom", "&-left"]],
169
+ ["margin", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
170
170
  ["margin-block", ["&-start", "&-end"]],
171
171
  ["margin-inline", ["&-start", "&-end"]],
172
172
  ["mask", ["&-image", "&-mode", "&-position", "&-size", "&-repeat", "&-origin", "&-clip", "&-composite", "&-type"]],
173
173
  ["mask-border", ["&-mode", "&-outset", "&-repeat", "&-slice", "&-source", "&-width"]],
174
174
  ["offset", ["&-position", "&-path", "&-distance", "&-anchor", "&-rotate"]],
175
175
  ["outline", ["&-color", "&-style", "&-width"]],
176
- ["overflow", ["&-x", "&-y"]],
177
- ["overscroll-behavior", ["&-x", "&-y"]],
178
- ["padding", ["&-top", "&-right", "&-bottom", "&-left"]],
176
+ ["overflow", ["&-x", "&-y", "&-block", "&-inline"]],
177
+ ["overscroll-behavior", ["&-x", "&-y", "&-block", "&-inline"]],
178
+ ["padding", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
179
179
  ["padding-block", ["&-start", "&-end"]],
180
180
  ["padding-inline", ["&-start", "&-end"]],
181
181
  ["place-content", ["align-content", "justify-content"]],
182
182
  ["place-items", ["align-items", "justify-items"]],
183
183
  ["place-self", ["align-self", "justify-self"]],
184
- ["scroll-margin", ["&-top", "&-right", "&-bottom", "&-left"]],
184
+ ["scroll-margin", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
185
185
  ["scroll-margin-block", ["&-start", "&-end"]],
186
186
  ["scroll-margin-inline", ["&-start", "&-end"]],
187
- ["scroll-padding", ["&-top", "&-right", "&-bottom", "&-left"]],
187
+ ["scroll-padding", ["&-top", "&-right", "&-bottom", "&-left", "&-block", "&-inline"]],
188
188
  ["scroll-padding-block", ["&-start", "&-end"]],
189
189
  ["scroll-padding-inline", ["&-start", "&-end"]],
190
190
  ["scroll-timeline", ["&-name", "&-axis"]],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tokenami/config",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -29,8 +29,7 @@
29
29
  "scripts": {
30
30
  "build": "tsup",
31
31
  "dev": "tsup --watch",
32
- "typecheck": "tsc --noEmit",
33
- "typecheck:ci": "tsc --noEmit"
32
+ "typecheck": "tsc --noEmit"
34
33
  },
35
34
  "dependencies": {
36
35
  "csstype": "^3.1.2"
@@ -39,5 +38,5 @@
39
38
  "tsup": "^7.0.0",
40
39
  "typescript": "^5.1.3"
41
40
  },
42
- "gitHead": "fd4d8ff6ba1164960836ee1df95192482ea7285d"
41
+ "gitHead": "1cc71d193a6de3a694eca1f28876219dc9b80524"
43
42
  }