Skip to content

Commit 8ab8d9a

Browse files
fix: Update radius scale and add npmignore
1 parent 9cc1857 commit 8ab8d9a

File tree

9 files changed

+23
-6
lines changed

9 files changed

+23
-6
lines changed

.npmignore

Whitespace-only changes.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"lint": "eslint"
2929
},
3030
"files": [
31-
"dist"
31+
"dist/**/*"
3232
],
3333
"dependencies": {
3434
"@formkit/theme-creator": "latest"

src/inputs/checkbox.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export default {
22
// inherits family:box classes
33
decorator: `
4-
$radius(0,rounded-none,rounded)
4+
$radius(0,rounded-none,rounded-sm)
55
`,
66
decoratorIcon: `
77
max-w-[66.66%]

src/inputs/pro/colorpicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export default {
302302
p-1
303303
mt-0.5
304304
text-$colorTemperature-600
305-
$radius(0,rounded-none,rounded)
305+
$radius(0,rounded-none,rounded-sm)
306306
select-none
307307
dark:text-$colorTemperature-400
308308
`,

src/inputs/pro/datepicker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ export default {
318318
py-$spacing(-3,*)
319319
$radius
320320
hover:bg-$colorTemperature-100
321-
hover:rounded
321+
hover:rounded-sm
322322
col-start-3
323323
col-end-3
324324
focus-visible:outline-hidden

src/inputs/pro/repeater.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export default {
133133
w-full
134134
mb-$spacing
135135
bg-white
136-
rounded
136+
rounded-sm
137137
border
138138
border-$colorTemperature-$borderShadeLightMode(-1,200,600)
139139
$radius(0,rounded-none,rounded-2xl)

src/inputs/pro/slider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ export default {
112112
text-xs
113113
leading-none
114114
whitespace-nowrap
115-
$radius(0,rounded-none,rounded)
115+
$radius(0,rounded-none,rounded-sm)
116116
opacity-0
117117
pointer-events-none
118118
transition-opacity

src/theme.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ export default createTheme({
100100
value: "rounded-sm",
101101
scale: [
102102
"rounded-none",
103+
"rounded-xs",
103104
"rounded-sm",
105+
"rounded-md",
104106
"rounded-lg",
105107
"rounded-xl",
106108
"rounded-2xl",

tests/index.spec.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,19 @@ describe("theme", () => {
55
it("has metadata", () => {
66
expect(theme.meta.name).toBe("Regenesis");
77
});
8+
9+
it("can generate tailwind classes", () => {
10+
const result = theme();
11+
expect(result.tailwind).toBeDefined();
12+
const classes = result.tailwind();
13+
expect(classes).toBeDefined();
14+
});
15+
16+
it("can generate editor controls without error", () => {
17+
const result = theme();
18+
expect(result.editorControls).toBeDefined();
19+
// This is where the "rounded not in scale" error occurs
20+
const controls = result.editorControls();
21+
expect(controls).toBeDefined();
22+
});
823
});

0 commit comments

Comments
 (0)