Skip to content

Commit 6cb91ae

Browse files
committed
chore: revamp styles and fix errors in kendo-unstyled-tailwind
1 parent 4a77694 commit 6cb91ae

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

examples/kendo-unstyled-tailwind/src/components/Form/Form.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ import {
1616
InputClearValue,
1717
RadioGroup,
1818
TextBox,
19+
type TextBoxChangeEvent,
1920
} from '@progress/kendo-react-inputs';
2021
import { Label } from '@progress/kendo-react-labels';
2122
import { xIcon } from '@progress/kendo-svg-icons';
@@ -28,8 +29,8 @@ const radioData = [
2829

2930
const FormTextBox = (fieldRenderProps: FieldRenderProps) => {
3031
const { name, label, placeholder } = fieldRenderProps;
31-
const [value, setValue] = React.useState('');
32-
const handleChange = (e) => {
32+
const [value, setValue] = React.useState<string | number | readonly string[] | undefined>('');
33+
const handleChange = (e: TextBoxChangeEvent) => {
3334
setValue(e.value);
3435
};
3536
const clearClick = () => {

examples/kendo-unstyled-tailwind/src/components/Form/tailwind-preset.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,8 +425,8 @@ const tailwindForm: AllClassStructure = {
425425
rangeSplitEnd: `relative after:content-[""] after:block after:absolute after:top-[0] after:bottom-[0] after:w-[5px]`,
426426
rangeSplitStart: `relative after:content-[""] after:block after:absolute after:top-[0] after:bottom-[0] after:w-[5px]`,
427427
active: ``,
428-
focused: `!border-solid-border !border-[1] !text-focused-text bg-focused rounded`,
429-
selected: `border-solid-border bg-primary rounded`,
428+
focused: `!border-solid-border !border-[1] text-focused-text bg-focused rounded`,
429+
selected: `border-solid-border bg-primary !text-primary-text rounded`,
430430
today: `[&>span]:text-primary`,
431431
weekend: ``,
432432
disabled: `outline-[none] cursor-default opacity-60 grayscale-[10%] pointer-events-none [box-shadow:none]`,
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
/// <reference path="../.astro/types.d.ts" />
12
/// <reference types="astro/client" />

examples/kendo-unstyled-tailwind/src/layouts/Layout.astro

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@ interface Props {
44
}
55
66
const { title } = Astro.props;
7-
import colors from "tailwindcss/colors"
87
// TODO delete the kendo theme import
98
import "@progress/kendo-theme-default/dist/all.css";
10-
import tailwindConfig from "../../tailwind.config.mjs";
119
---
1210

1311
<!doctype html>
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
---
22
import Layout from '../layouts/Layout.astro';
33
import Template from '../components/Form/Form.tsx';
4-
import Home from '../components/Home';
54
---
65

76
<Layout title="Welcome to Astro.">
87
<main>
9-
<Home client:load />
8+
<Template client:load />
109
</main>
1110
</Layout>

0 commit comments

Comments
 (0)