@ttdk-design-system/library-react 0.0.0-stage → 1.0.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/AI_GUIDE.md +6518 -0
- package/README.md +106 -2
- package/llms.txt +6518 -0
- package/package.json +1099 -4
- package/src/core/index.ts +2 -0
- package/src/core/tailwind-preset.cjs +62 -0
- package/src/core/tailwind-preset.ts +85 -0
- package/src/core/theme/tokens.css +663 -0
- package/src/core/types.ts +836 -0
- package/src/index.ts +17 -0
- package/src/tailwind-preset.cjs +62 -0
- package/src/tailwind-preset.ts +85 -0
- package/src/types.ts +1 -0
- package/src/web/accordion/AI_GUIDE.md +149 -0
- package/src/web/accordion/accordion.css +1 -0
- package/src/web/accordion/accordion.tsx +430 -0
- package/src/web/accordion/index.ts +3 -0
- package/src/web/accordion/manifest.json +351 -0
- package/src/web/alert/AI_GUIDE.md +139 -0
- package/src/web/alert/alert.css +1 -0
- package/src/web/alert/alert.tsx +318 -0
- package/src/web/alert/index.ts +3 -0
- package/src/web/alert/manifest.json +240 -0
- package/src/web/avatar/AI_GUIDE.md +118 -0
- package/src/web/avatar/avatar.css +1 -0
- package/src/web/avatar/avatar.tsx +233 -0
- package/src/web/avatar/index.ts +3 -0
- package/src/web/avatar/manifest.json +195 -0
- package/src/web/badge/AI_GUIDE.md +94 -0
- package/src/web/badge/badge.css +1 -0
- package/src/web/badge/badge.tsx +140 -0
- package/src/web/badge/index.ts +2 -0
- package/src/web/badge/manifest.json +141 -0
- package/src/web/banner/AI_GUIDE.md +130 -0
- package/src/web/banner/banner.css +1 -0
- package/src/web/banner/banner.tsx +334 -0
- package/src/web/banner/index.ts +3 -0
- package/src/web/banner/manifest.json +240 -0
- package/src/web/breadcrumb/AI_GUIDE.md +120 -0
- package/src/web/breadcrumb/breadcrumb.css +1 -0
- package/src/web/breadcrumb/breadcrumb.tsx +306 -0
- package/src/web/breadcrumb/index.ts +3 -0
- package/src/web/breadcrumb/manifest.json +225 -0
- package/src/web/button/AI_GUIDE.md +121 -0
- package/src/web/button/button.css +1 -0
- package/src/web/button/button.tsx +287 -0
- package/src/web/button/index.ts +2 -0
- package/src/web/button/manifest.json +177 -0
- package/src/web/calendar/AI_GUIDE.md +151 -0
- package/src/web/calendar/calendar.css +1 -0
- package/src/web/calendar/calendar.tsx +1611 -0
- package/src/web/calendar/index.ts +3 -0
- package/src/web/calendar/manifest.json +470 -0
- package/src/web/card/AI_GUIDE.md +133 -0
- package/src/web/card/card.css +1 -0
- package/src/web/card/card.tsx +408 -0
- package/src/web/card/index.ts +4 -0
- package/src/web/card/manifest.json +357 -0
- package/src/web/checkbox/AI_GUIDE.md +146 -0
- package/src/web/checkbox/checkbox.css +1 -0
- package/src/web/checkbox/checkbox.tsx +307 -0
- package/src/web/checkbox/index.ts +2 -0
- package/src/web/checkbox/manifest.json +294 -0
- package/src/web/chip/AI_GUIDE.md +186 -0
- package/src/web/chip/chip.css +1 -0
- package/src/web/chip/chip.tsx +230 -0
- package/src/web/chip/index.ts +2 -0
- package/src/web/chip/manifest.json +186 -0
- package/src/web/dropdown/AI_GUIDE.md +167 -0
- package/src/web/dropdown/dropdown.css +1 -0
- package/src/web/dropdown/dropdown.tsx +1274 -0
- package/src/web/dropdown/index.ts +3 -0
- package/src/web/dropdown/manifest.json +576 -0
- package/src/web/flex/AI_GUIDE.md +113 -0
- package/src/web/flex/flex-item.tsx +97 -0
- package/src/web/flex/flex.css +1 -0
- package/src/web/flex/flex.tsx +108 -0
- package/src/web/flex/index.ts +5 -0
- package/src/web/flex/manifest.json +162 -0
- package/src/web/form/index.ts +7 -0
- package/src/web/grid/AI_GUIDE.md +112 -0
- package/src/web/grid/grid-item.tsx +112 -0
- package/src/web/grid/grid.css +1 -0
- package/src/web/grid/grid.tsx +99 -0
- package/src/web/grid/index.ts +5 -0
- package/src/web/grid/manifest.json +153 -0
- package/src/web/index.ts +86 -0
- package/src/web/input/AI_GUIDE.md +159 -0
- package/src/web/input/index.ts +3 -0
- package/src/web/input/input.css +1 -0
- package/src/web/input/input.tsx +537 -0
- package/src/web/input/manifest.json +465 -0
- package/src/web/input-number/AI_GUIDE.md +164 -0
- package/src/web/input-number/index.ts +3 -0
- package/src/web/input-number/input-number.css +1 -0
- package/src/web/input-number/input-number.tsx +1193 -0
- package/src/web/input-number/manifest.json +575 -0
- package/src/web/modal/AI_GUIDE.md +171 -0
- package/src/web/modal/index.ts +3 -0
- package/src/web/modal/manifest.json +375 -0
- package/src/web/modal/modal.css +1 -0
- package/src/web/modal/modal.tsx +571 -0
- package/src/web/pagination/AI_GUIDE.md +148 -0
- package/src/web/pagination/index.ts +21 -0
- package/src/web/pagination/manifest.json +432 -0
- package/src/web/pagination/pagination-content.tsx +45 -0
- package/src/web/pagination/pagination-ellipsis.tsx +54 -0
- package/src/web/pagination/pagination-first.tsx +155 -0
- package/src/web/pagination/pagination-item.tsx +45 -0
- package/src/web/pagination/pagination-last.tsx +155 -0
- package/src/web/pagination/pagination-link.tsx +121 -0
- package/src/web/pagination/pagination-next.tsx +158 -0
- package/src/web/pagination/pagination-previous.tsx +158 -0
- package/src/web/pagination/pagination.css +1 -0
- package/src/web/pagination/pagination.tsx +687 -0
- package/src/web/popover/AI_GUIDE.md +163 -0
- package/src/web/popover/index.ts +3 -0
- package/src/web/popover/manifest.json +396 -0
- package/src/web/popover/popover.css +1 -0
- package/src/web/popover/popover.tsx +702 -0
- package/src/web/radio/AI_GUIDE.md +155 -0
- package/src/web/radio/index.ts +2 -0
- package/src/web/radio/manifest.json +294 -0
- package/src/web/radio/radio.css +1 -0
- package/src/web/radio/radio.tsx +290 -0
- package/src/web/selectbox/AI_GUIDE.md +216 -0
- package/src/web/selectbox/index.ts +3 -0
- package/src/web/selectbox/manifest.json +477 -0
- package/src/web/selectbox/selectbox.css +1 -0
- package/src/web/selectbox/selectbox.tsx +1048 -0
- package/src/web/sonner/AI_GUIDE.md +98 -0
- package/src/web/sonner/index.ts +114 -0
- package/src/web/sonner/manifest.json +132 -0
- package/src/web/sonner/sonner.css +1 -0
- package/src/web/sonner/sonner.tsx +177 -0
- package/src/web/table/AI_GUIDE.md +145 -0
- package/src/web/table/index.ts +35 -0
- package/src/web/table/manifest.json +168 -0
- package/src/web/table/table-body.tsx +45 -0
- package/src/web/table/table-caption.tsx +45 -0
- package/src/web/table/table-cell.tsx +74 -0
- package/src/web/table/table-empty.tsx +108 -0
- package/src/web/table/table-footer.tsx +45 -0
- package/src/web/table/table-head.tsx +80 -0
- package/src/web/table/table-header.tsx +45 -0
- package/src/web/table/table-row.tsx +69 -0
- package/src/web/table/table.css +1 -0
- package/src/web/table/table.tsx +305 -0
- package/src/web/tabs/AI_GUIDE.md +150 -0
- package/src/web/tabs/index.ts +3 -0
- package/src/web/tabs/manifest.json +315 -0
- package/src/web/tabs/tabs.css +1 -0
- package/src/web/tabs/tabs.tsx +332 -0
- package/src/web/text/AI_GUIDE.md +129 -0
- package/src/web/text/index.ts +3 -0
- package/src/web/text/manifest.json +195 -0
- package/src/web/text/text.css +1 -0
- package/src/web/text/text.tsx +689 -0
- package/src/web/textarea/AI_GUIDE.md +141 -0
- package/src/web/textarea/index.ts +3 -0
- package/src/web/textarea/manifest.json +438 -0
- package/src/web/textarea/textarea.css +1 -0
- package/src/web/textarea/textarea.tsx +467 -0
- package/src/web/tooltip/AI_GUIDE.md +110 -0
- package/src/web/tooltip/index.ts +3 -0
- package/src/web/tooltip/manifest.json +222 -0
- package/src/web/tooltip/tooltip.css +1 -0
- package/src/web/tooltip/tooltip.tsx +423 -0
- package/src/webview/bottomsheet/AI_GUIDE.md +141 -0
- package/src/webview/bottomsheet/bottomsheet.css +1 -0
- package/src/webview/bottomsheet/bottomsheet.tsx +603 -0
- package/src/webview/bottomsheet/index.ts +4 -0
- package/src/webview/bottomsheet/manifest.json +377 -0
- package/src/webview/button/AI_GUIDE.md +79 -0
- package/src/webview/button/button-ios.css +1 -0
- package/src/webview/button/button-ios.tsx +138 -0
- package/src/webview/button/button-material.css +1 -0
- package/src/webview/button/button-material.tsx +138 -0
- package/src/webview/button/index.ts +7 -0
- package/src/webview/button/manifest.json +148 -0
- package/src/webview/index.ts +7 -0
- package/tailwind-preset.cjs +62 -0
- package/tailwind-preset.js +62 -0
- package/ttdk-manifest.json +10188 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# <Textarea /> — TTDK Component Reference
|
|
2
|
+
|
|
3
|
+
Komponen Textarea TTDK sesuai spesifikasi Anatomy Desain: 1. Field title (14px Semibold, #141313) 2. (Opsional) label (12px Regular, #9698A2) 3. Border radius 8px 4. Field content (14px Regular, #141313, placeholder #9698A2) 5. Additional information / Helper text (12px Regular, #3C4245)
|
|
4
|
+
|
|
5
|
+
## 1. Stylesheets & Theming (Pure CSS)
|
|
6
|
+
Import the corresponding stylesheet for the theme you wish to use:
|
|
7
|
+
- **COMMON Theme**: `import "@ttdk-design-system/library-<react|vue|svelte>/web/textarea/textarea.css";`
|
|
8
|
+
|
|
9
|
+
## 2. Subpath Component Import
|
|
10
|
+
```ts
|
|
11
|
+
// React
|
|
12
|
+
import Textarea from "@ttdk-design-system/library-react/web/textarea";
|
|
13
|
+
|
|
14
|
+
// Vue 3
|
|
15
|
+
import Textarea from "@ttdk-design-system/library-vue/web/textarea";
|
|
16
|
+
|
|
17
|
+
// Svelte
|
|
18
|
+
import Textarea from "@ttdk-design-system/library-svelte/web/textarea";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 3. Props & API Reference
|
|
22
|
+
|
|
23
|
+
| Prop | Type | Default | Description |
|
|
24
|
+
| :--- | :--- | :--- | :--- |
|
|
25
|
+
| `label?` | `string` | `-` | Teks label judul field yang ditampilkan di atas textarea (14px Semibold, #141313). |
|
|
26
|
+
| `labelStyle?` | `UiProps` | `-` | Style kustom untuk elemen label judul field (UiProps). |
|
|
27
|
+
| `labelClass?` | `string` | `-` | Class CSS kustom untuk elemen label judul field. |
|
|
28
|
+
| `wrapperStyle?` | `UiProps` | `-` | Style kustom untuk elemen kontainer textarea wrapper (UiProps). |
|
|
29
|
+
| `wrapperClass?` | `string` | `-` | Class CSS kustom untuk elemen kontainer textarea wrapper. |
|
|
30
|
+
| `textareaStyle?` | `UiProps` | `-` | Style kustom untuk elemen textarea control HTML (UiProps). |
|
|
31
|
+
| `textareaClass?` | `string` | `-` | Class CSS kustom untuk elemen textarea control HTML. |
|
|
32
|
+
| `errorMessageStyle?` | `UiProps` | `-` | Style kustom untuk elemen pesan error validasi (UiProps). |
|
|
33
|
+
| `errorMessageClass?` | `string` | `-` | Class CSS kustom untuk elemen pesan error validasi. |
|
|
34
|
+
| `helperTextStyle?` | `UiProps` | `-` | Style kustom untuk elemen helper text (UiProps). |
|
|
35
|
+
| `helperTextClass?` | `string` | `-` | Class CSS kustom untuk elemen helper text. |
|
|
36
|
+
| `charCountStyle?` | `UiProps` | `-` | Style kustom untuk elemen penghitung karakter (UiProps). |
|
|
37
|
+
| `charCountClass?` | `string` | `-` | Class CSS kustom untuk elemen penghitung karakter. |
|
|
38
|
+
| `optional?` | `boolean` | `-` | Menandai field sebagai opsi opsional dengan menambahkan teks '(Opsional)' (12px Regular, #9698A2). |
|
|
39
|
+
| `optionalText?` | `string` | `(Opsional)` | Kustomisasi teks keterangan opsional. |
|
|
40
|
+
| `placeholder?` | `string` | `-` | Nilai teks placeholder saat textarea kosong (#9698A2). |
|
|
41
|
+
| `value?` | `string` | `-` | Nilai terkontrol (controlled value) pada textarea. |
|
|
42
|
+
| `defaultValue?` | `string` | `-` | Nilai awal tidak terkontrol (uncontrolled initial value). |
|
|
43
|
+
| `rows?` | `number` | `4` | Jumlah baris default yang ditampilkan. |
|
|
44
|
+
| `name?` | `string` | `-` | Nama form field HTML untuk integrasi formulir. |
|
|
45
|
+
| `id?` | `string` | `-` | Identifier unik elemen textarea. |
|
|
46
|
+
| `resize?` | `'none' | 'vertical' | 'horizontal' | 'both'` | `vertical` | Kontrol orientasi resize oleh pengguna. - `'none'`: Tidak dapat di-resize - `'vertical'`: Hanya dapat di-resize vertikal (standar) - `'horizontal'`: Hanya dapat di-resize horizontal - `'both'`: Bebas di-resize kedua arah |
|
|
47
|
+
| `error?` | `boolean` | `false` | Status apakah textarea sedang dalam kondisi error / tidak valid. |
|
|
48
|
+
| `errorMessage?` | `string` | `-` | Pesan teks penjelasan kesalahan validasi di bawah field. |
|
|
49
|
+
| `helperText?` | `string` | `-` | Teks petunjuk atau keterangan bantuan di bawah field (12px Regular, #3C4245). |
|
|
50
|
+
| `helperTextPosition?` | `'top' | 'bottom'` | `-` | Posisi teks helper |
|
|
51
|
+
| `size?` | `'sm' | 'md' | 'lg'` | `md` | Skala ukuran textarea. - `'sm'`: Padding rapat - `'md'`: Standar - `'lg'`: Padding lapang |
|
|
52
|
+
| `rounded?` | `'none' | 'sm' | 'md' | 'lg' | 'full'` | `md` | Bentuk sudut kelengkungan textarea. - `'none'`: 0px - `'sm'`: 4px - `'md'`: 8px (standar desain) - `'lg'`: 12px - `'full'`: 16px |
|
|
53
|
+
| `block?` | `boolean` | `false` | Menjadikan lebar field textarea memenuhi kontainer penuh (full-width 100%). |
|
|
54
|
+
| `disabled?` | `boolean` | `false` | Status apakah field dinonaktifkan (disabled). |
|
|
55
|
+
| `readOnly?` | `boolean` | `false` | Status apakah field bersifat hanya-baca (readonly). |
|
|
56
|
+
| `required?` | `boolean` | `false` | Menandai field sebagai input wajib diisi (menampilkan tanda bintang merah *). |
|
|
57
|
+
| `autoComplete?` | `string` | `-` | Konfigurasi atribut autocomplete HTML. |
|
|
58
|
+
| `maxLength?` | `number` | `-` | Batas maksimum panjang karakter. |
|
|
59
|
+
| `minLength?` | `number` | `-` | Batas minimum panjang karakter. |
|
|
60
|
+
| `style?` | `any` | `-` | Inline CSS style object native. |
|
|
61
|
+
| `ui?` | `UiProps` | `-` | Kustomisasi visual granular root / form-item (UiProps). |
|
|
62
|
+
| `onChange?` | `(event: any) => void` | `-` | Callback event saat nilai textarea berubah. |
|
|
63
|
+
| `onInput?` | `(event: any) => void` | `-` | Callback event saat pengguna mengetik (input event). |
|
|
64
|
+
| `onBlur?` | `(event: any) => void` | `-` | Callback event saat textarea kehilangan fokus (blur). |
|
|
65
|
+
| `onFocus?` | `(event: any) => void` | `-` | Callback event saat textarea mendapatkan fokus. |
|
|
66
|
+
| `inputRef?` | `any` | `-` | Ref instance elemen textarea HTML untuk akses kontrol DOM langsung (focus, blur, select). |
|
|
67
|
+
| `className?` | `string` | `-` | Class CSS kustom. |
|
|
68
|
+
| `onKeyDown?` | `(event: any) => void` | `-` | Callback event tombol keyboard ditekan. |
|
|
69
|
+
| `onKeyUp?` | `(event: any) => void` | `-` | Callback event tombol keyboard dilepaskan. |
|
|
70
|
+
| `showCount?` | `boolean` | `false` | Menampilkan penghitung karakter di bawah textarea (format: `x / maxLength`). Memerlukan prop `maxLength` untuk berfungsi. |
|
|
71
|
+
|
|
72
|
+
## 4. Usage Examples
|
|
73
|
+
|
|
74
|
+
### React Example
|
|
75
|
+
```tsx
|
|
76
|
+
import { useState } from "react";
|
|
77
|
+
import Textarea from "@ttdk-design-system/library-react/web/textarea";
|
|
78
|
+
import "@ttdk-design-system/library-react/web/textarea/textarea.css";
|
|
79
|
+
|
|
80
|
+
export function Example() {
|
|
81
|
+
const [notes, setNotes] = useState("");
|
|
82
|
+
|
|
83
|
+
return (
|
|
84
|
+
<div style={{ maxWidth: '500px' }}>
|
|
85
|
+
<Textarea
|
|
86
|
+
label="Catatan Diagnosa Medis"
|
|
87
|
+
placeholder="Tuliskan catatan rekam medis atau diagnosa pasien..."
|
|
88
|
+
rows={4}
|
|
89
|
+
value={notes}
|
|
90
|
+
helperText="Maksimal 1000 karakter."
|
|
91
|
+
onChange={(e) => setNotes(e.target.value)}
|
|
92
|
+
/>
|
|
93
|
+
</div>
|
|
94
|
+
);
|
|
95
|
+
}
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Vue 3 Example
|
|
99
|
+
```vue
|
|
100
|
+
<script setup lang="ts">
|
|
101
|
+
import { ref } from "vue";
|
|
102
|
+
import Textarea from "@ttdk-design-system/library-vue/web/textarea";
|
|
103
|
+
import "@ttdk-design-system/library-vue/web/textarea/textarea.css";
|
|
104
|
+
|
|
105
|
+
const notes = ref("");
|
|
106
|
+
</script>
|
|
107
|
+
|
|
108
|
+
<template>
|
|
109
|
+
<div style="max-width: 500px;">
|
|
110
|
+
<Textarea
|
|
111
|
+
label="Catatan Diagnosa Medis"
|
|
112
|
+
placeholder="Tuliskan catatan rekam medis atau diagnosa pasien..."
|
|
113
|
+
:rows="4"
|
|
114
|
+
:value="notes"
|
|
115
|
+
helper-text="Maksimal 1000 karakter."
|
|
116
|
+
@input="(e: any) => (notes = e.target.value)"
|
|
117
|
+
/>
|
|
118
|
+
</div>
|
|
119
|
+
</template>
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
### Svelte Example
|
|
123
|
+
```svelte
|
|
124
|
+
<script lang="ts">
|
|
125
|
+
import Textarea from "@ttdk-design-system/library-svelte/web/textarea";
|
|
126
|
+
import "@ttdk-design-system/library-svelte/web/textarea/textarea.css";
|
|
127
|
+
|
|
128
|
+
let notes = "";
|
|
129
|
+
</script>
|
|
130
|
+
|
|
131
|
+
<div style="max-width: 500px;">
|
|
132
|
+
<Textarea
|
|
133
|
+
label="Catatan Diagnosa Medis"
|
|
134
|
+
placeholder="Tuliskan catatan rekam medis atau diagnosa pasien..."
|
|
135
|
+
rows={4}
|
|
136
|
+
value={notes}
|
|
137
|
+
helperText="Maksimal 1000 karakter."
|
|
138
|
+
on:input={(e) => (notes = e.target.value)}
|
|
139
|
+
/>
|
|
140
|
+
</div>
|
|
141
|
+
```
|
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@ttdk-design-system/textarea",
|
|
3
|
+
"component": "Textarea",
|
|
4
|
+
"folder": "textarea",
|
|
5
|
+
"description": "Komponen Textarea TTDK sesuai spesifikasi Anatomy Desain: 1. Field title (14px Semibold, #141313) 2. (Opsional) label (12px Regular, #9698A2) 3. Border radius 8px 4. Field content (14px Regular, #141313, placeholder #9698A2) 5. Additional information / Helper text (12px Regular, #3C4245)",
|
|
6
|
+
"stylesheets": [
|
|
7
|
+
{
|
|
8
|
+
"theme": "common",
|
|
9
|
+
"file": "textarea.css",
|
|
10
|
+
"importPath": "web/textarea/textarea.css"
|
|
11
|
+
}
|
|
12
|
+
],
|
|
13
|
+
"props": {
|
|
14
|
+
"label": {
|
|
15
|
+
"name": "label",
|
|
16
|
+
"type": "string",
|
|
17
|
+
"optional": true,
|
|
18
|
+
"default": null,
|
|
19
|
+
"description": "Teks label judul field yang ditampilkan di atas textarea (14px Semibold, #141313).",
|
|
20
|
+
"example": null,
|
|
21
|
+
"param": null
|
|
22
|
+
},
|
|
23
|
+
"labelStyle": {
|
|
24
|
+
"name": "labelStyle",
|
|
25
|
+
"type": "UiProps",
|
|
26
|
+
"optional": true,
|
|
27
|
+
"default": null,
|
|
28
|
+
"description": "Style kustom untuk elemen label judul field (UiProps).",
|
|
29
|
+
"example": null,
|
|
30
|
+
"param": null
|
|
31
|
+
},
|
|
32
|
+
"labelClass": {
|
|
33
|
+
"name": "labelClass",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"optional": true,
|
|
36
|
+
"default": null,
|
|
37
|
+
"description": "Class CSS kustom untuk elemen label judul field.",
|
|
38
|
+
"example": null,
|
|
39
|
+
"param": null
|
|
40
|
+
},
|
|
41
|
+
"wrapperStyle": {
|
|
42
|
+
"name": "wrapperStyle",
|
|
43
|
+
"type": "UiProps",
|
|
44
|
+
"optional": true,
|
|
45
|
+
"default": null,
|
|
46
|
+
"description": "Style kustom untuk elemen kontainer textarea wrapper (UiProps).",
|
|
47
|
+
"example": null,
|
|
48
|
+
"param": null
|
|
49
|
+
},
|
|
50
|
+
"wrapperClass": {
|
|
51
|
+
"name": "wrapperClass",
|
|
52
|
+
"type": "string",
|
|
53
|
+
"optional": true,
|
|
54
|
+
"default": null,
|
|
55
|
+
"description": "Class CSS kustom untuk elemen kontainer textarea wrapper.",
|
|
56
|
+
"example": null,
|
|
57
|
+
"param": null
|
|
58
|
+
},
|
|
59
|
+
"textareaStyle": {
|
|
60
|
+
"name": "textareaStyle",
|
|
61
|
+
"type": "UiProps",
|
|
62
|
+
"optional": true,
|
|
63
|
+
"default": null,
|
|
64
|
+
"description": "Style kustom untuk elemen textarea control HTML (UiProps).",
|
|
65
|
+
"example": null,
|
|
66
|
+
"param": null
|
|
67
|
+
},
|
|
68
|
+
"textareaClass": {
|
|
69
|
+
"name": "textareaClass",
|
|
70
|
+
"type": "string",
|
|
71
|
+
"optional": true,
|
|
72
|
+
"default": null,
|
|
73
|
+
"description": "Class CSS kustom untuk elemen textarea control HTML.",
|
|
74
|
+
"example": null,
|
|
75
|
+
"param": null
|
|
76
|
+
},
|
|
77
|
+
"errorMessageStyle": {
|
|
78
|
+
"name": "errorMessageStyle",
|
|
79
|
+
"type": "UiProps",
|
|
80
|
+
"optional": true,
|
|
81
|
+
"default": null,
|
|
82
|
+
"description": "Style kustom untuk elemen pesan error validasi (UiProps).",
|
|
83
|
+
"example": null,
|
|
84
|
+
"param": null
|
|
85
|
+
},
|
|
86
|
+
"errorMessageClass": {
|
|
87
|
+
"name": "errorMessageClass",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"optional": true,
|
|
90
|
+
"default": null,
|
|
91
|
+
"description": "Class CSS kustom untuk elemen pesan error validasi.",
|
|
92
|
+
"example": null,
|
|
93
|
+
"param": null
|
|
94
|
+
},
|
|
95
|
+
"helperTextStyle": {
|
|
96
|
+
"name": "helperTextStyle",
|
|
97
|
+
"type": "UiProps",
|
|
98
|
+
"optional": true,
|
|
99
|
+
"default": null,
|
|
100
|
+
"description": "Style kustom untuk elemen helper text (UiProps).",
|
|
101
|
+
"example": null,
|
|
102
|
+
"param": null
|
|
103
|
+
},
|
|
104
|
+
"helperTextClass": {
|
|
105
|
+
"name": "helperTextClass",
|
|
106
|
+
"type": "string",
|
|
107
|
+
"optional": true,
|
|
108
|
+
"default": null,
|
|
109
|
+
"description": "Class CSS kustom untuk elemen helper text.",
|
|
110
|
+
"example": null,
|
|
111
|
+
"param": null
|
|
112
|
+
},
|
|
113
|
+
"charCountStyle": {
|
|
114
|
+
"name": "charCountStyle",
|
|
115
|
+
"type": "UiProps",
|
|
116
|
+
"optional": true,
|
|
117
|
+
"default": null,
|
|
118
|
+
"description": "Style kustom untuk elemen penghitung karakter (UiProps).",
|
|
119
|
+
"example": null,
|
|
120
|
+
"param": null
|
|
121
|
+
},
|
|
122
|
+
"charCountClass": {
|
|
123
|
+
"name": "charCountClass",
|
|
124
|
+
"type": "string",
|
|
125
|
+
"optional": true,
|
|
126
|
+
"default": null,
|
|
127
|
+
"description": "Class CSS kustom untuk elemen penghitung karakter.",
|
|
128
|
+
"example": null,
|
|
129
|
+
"param": null
|
|
130
|
+
},
|
|
131
|
+
"optional": {
|
|
132
|
+
"name": "optional",
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"optional": true,
|
|
135
|
+
"default": null,
|
|
136
|
+
"description": "Menandai field sebagai opsi opsional dengan menambahkan teks '(Opsional)' (12px Regular, #9698A2).",
|
|
137
|
+
"example": null,
|
|
138
|
+
"param": null
|
|
139
|
+
},
|
|
140
|
+
"optionalText": {
|
|
141
|
+
"name": "optionalText",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"optional": true,
|
|
144
|
+
"default": "(Opsional)",
|
|
145
|
+
"description": "Kustomisasi teks keterangan opsional.",
|
|
146
|
+
"example": null,
|
|
147
|
+
"param": null
|
|
148
|
+
},
|
|
149
|
+
"placeholder": {
|
|
150
|
+
"name": "placeholder",
|
|
151
|
+
"type": "string",
|
|
152
|
+
"optional": true,
|
|
153
|
+
"default": null,
|
|
154
|
+
"description": "Nilai teks placeholder saat textarea kosong (#9698A2).",
|
|
155
|
+
"example": null,
|
|
156
|
+
"param": null
|
|
157
|
+
},
|
|
158
|
+
"value": {
|
|
159
|
+
"name": "value",
|
|
160
|
+
"type": "string",
|
|
161
|
+
"optional": true,
|
|
162
|
+
"default": null,
|
|
163
|
+
"description": "Nilai terkontrol (controlled value) pada textarea.",
|
|
164
|
+
"example": null,
|
|
165
|
+
"param": null
|
|
166
|
+
},
|
|
167
|
+
"defaultValue": {
|
|
168
|
+
"name": "defaultValue",
|
|
169
|
+
"type": "string",
|
|
170
|
+
"optional": true,
|
|
171
|
+
"default": null,
|
|
172
|
+
"description": "Nilai awal tidak terkontrol (uncontrolled initial value).",
|
|
173
|
+
"example": null,
|
|
174
|
+
"param": null
|
|
175
|
+
},
|
|
176
|
+
"rows": {
|
|
177
|
+
"name": "rows",
|
|
178
|
+
"type": "number",
|
|
179
|
+
"optional": true,
|
|
180
|
+
"default": "4",
|
|
181
|
+
"description": "Jumlah baris default yang ditampilkan.",
|
|
182
|
+
"example": null,
|
|
183
|
+
"param": null
|
|
184
|
+
},
|
|
185
|
+
"name": {
|
|
186
|
+
"name": "name",
|
|
187
|
+
"type": "string",
|
|
188
|
+
"optional": true,
|
|
189
|
+
"default": null,
|
|
190
|
+
"description": "Nama form field HTML untuk integrasi formulir.",
|
|
191
|
+
"example": null,
|
|
192
|
+
"param": null
|
|
193
|
+
},
|
|
194
|
+
"id": {
|
|
195
|
+
"name": "id",
|
|
196
|
+
"type": "string",
|
|
197
|
+
"optional": true,
|
|
198
|
+
"default": null,
|
|
199
|
+
"description": "Identifier unik elemen textarea.",
|
|
200
|
+
"example": null,
|
|
201
|
+
"param": null
|
|
202
|
+
},
|
|
203
|
+
"resize": {
|
|
204
|
+
"name": "resize",
|
|
205
|
+
"type": "'none' | 'vertical' | 'horizontal' | 'both'",
|
|
206
|
+
"optional": true,
|
|
207
|
+
"default": "vertical",
|
|
208
|
+
"description": "Kontrol orientasi resize oleh pengguna. - `'none'`: Tidak dapat di-resize - `'vertical'`: Hanya dapat di-resize vertikal (standar) - `'horizontal'`: Hanya dapat di-resize horizontal - `'both'`: Bebas di-resize kedua arah",
|
|
209
|
+
"example": null,
|
|
210
|
+
"param": null
|
|
211
|
+
},
|
|
212
|
+
"error": {
|
|
213
|
+
"name": "error",
|
|
214
|
+
"type": "boolean",
|
|
215
|
+
"optional": true,
|
|
216
|
+
"default": "false",
|
|
217
|
+
"description": "Status apakah textarea sedang dalam kondisi error / tidak valid.",
|
|
218
|
+
"example": null,
|
|
219
|
+
"param": null
|
|
220
|
+
},
|
|
221
|
+
"errorMessage": {
|
|
222
|
+
"name": "errorMessage",
|
|
223
|
+
"type": "string",
|
|
224
|
+
"optional": true,
|
|
225
|
+
"default": null,
|
|
226
|
+
"description": "Pesan teks penjelasan kesalahan validasi di bawah field.",
|
|
227
|
+
"example": null,
|
|
228
|
+
"param": null
|
|
229
|
+
},
|
|
230
|
+
"helperText": {
|
|
231
|
+
"name": "helperText",
|
|
232
|
+
"type": "string",
|
|
233
|
+
"optional": true,
|
|
234
|
+
"default": null,
|
|
235
|
+
"description": "Teks petunjuk atau keterangan bantuan di bawah field (12px Regular, #3C4245).",
|
|
236
|
+
"example": null,
|
|
237
|
+
"param": null
|
|
238
|
+
},
|
|
239
|
+
"helperTextPosition": {
|
|
240
|
+
"name": "helperTextPosition",
|
|
241
|
+
"type": "'top' | 'bottom'",
|
|
242
|
+
"optional": true,
|
|
243
|
+
"default": null,
|
|
244
|
+
"description": "Posisi teks helper",
|
|
245
|
+
"example": null,
|
|
246
|
+
"param": null
|
|
247
|
+
},
|
|
248
|
+
"size": {
|
|
249
|
+
"name": "size",
|
|
250
|
+
"type": "'sm' | 'md' | 'lg'",
|
|
251
|
+
"optional": true,
|
|
252
|
+
"default": "md",
|
|
253
|
+
"description": "Skala ukuran textarea. - `'sm'`: Padding rapat - `'md'`: Standar - `'lg'`: Padding lapang",
|
|
254
|
+
"example": null,
|
|
255
|
+
"param": null
|
|
256
|
+
},
|
|
257
|
+
"rounded": {
|
|
258
|
+
"name": "rounded",
|
|
259
|
+
"type": "'none' | 'sm' | 'md' | 'lg' | 'full'",
|
|
260
|
+
"optional": true,
|
|
261
|
+
"default": "md",
|
|
262
|
+
"description": "Bentuk sudut kelengkungan textarea. - `'none'`: 0px - `'sm'`: 4px - `'md'`: 8px (standar desain) - `'lg'`: 12px - `'full'`: 16px",
|
|
263
|
+
"example": null,
|
|
264
|
+
"param": null
|
|
265
|
+
},
|
|
266
|
+
"block": {
|
|
267
|
+
"name": "block",
|
|
268
|
+
"type": "boolean",
|
|
269
|
+
"optional": true,
|
|
270
|
+
"default": "false",
|
|
271
|
+
"description": "Menjadikan lebar field textarea memenuhi kontainer penuh (full-width 100%).",
|
|
272
|
+
"example": null,
|
|
273
|
+
"param": null
|
|
274
|
+
},
|
|
275
|
+
"disabled": {
|
|
276
|
+
"name": "disabled",
|
|
277
|
+
"type": "boolean",
|
|
278
|
+
"optional": true,
|
|
279
|
+
"default": "false",
|
|
280
|
+
"description": "Status apakah field dinonaktifkan (disabled).",
|
|
281
|
+
"example": null,
|
|
282
|
+
"param": null
|
|
283
|
+
},
|
|
284
|
+
"readOnly": {
|
|
285
|
+
"name": "readOnly",
|
|
286
|
+
"type": "boolean",
|
|
287
|
+
"optional": true,
|
|
288
|
+
"default": "false",
|
|
289
|
+
"description": "Status apakah field bersifat hanya-baca (readonly).",
|
|
290
|
+
"example": null,
|
|
291
|
+
"param": null
|
|
292
|
+
},
|
|
293
|
+
"required": {
|
|
294
|
+
"name": "required",
|
|
295
|
+
"type": "boolean",
|
|
296
|
+
"optional": true,
|
|
297
|
+
"default": "false",
|
|
298
|
+
"description": "Menandai field sebagai input wajib diisi (menampilkan tanda bintang merah *).",
|
|
299
|
+
"example": null,
|
|
300
|
+
"param": null
|
|
301
|
+
},
|
|
302
|
+
"autoComplete": {
|
|
303
|
+
"name": "autoComplete",
|
|
304
|
+
"type": "string",
|
|
305
|
+
"optional": true,
|
|
306
|
+
"default": null,
|
|
307
|
+
"description": "Konfigurasi atribut autocomplete HTML.",
|
|
308
|
+
"example": null,
|
|
309
|
+
"param": null
|
|
310
|
+
},
|
|
311
|
+
"maxLength": {
|
|
312
|
+
"name": "maxLength",
|
|
313
|
+
"type": "number",
|
|
314
|
+
"optional": true,
|
|
315
|
+
"default": null,
|
|
316
|
+
"description": "Batas maksimum panjang karakter.",
|
|
317
|
+
"example": null,
|
|
318
|
+
"param": null
|
|
319
|
+
},
|
|
320
|
+
"minLength": {
|
|
321
|
+
"name": "minLength",
|
|
322
|
+
"type": "number",
|
|
323
|
+
"optional": true,
|
|
324
|
+
"default": null,
|
|
325
|
+
"description": "Batas minimum panjang karakter.",
|
|
326
|
+
"example": null,
|
|
327
|
+
"param": null
|
|
328
|
+
},
|
|
329
|
+
"style": {
|
|
330
|
+
"name": "style",
|
|
331
|
+
"type": "any",
|
|
332
|
+
"optional": true,
|
|
333
|
+
"default": null,
|
|
334
|
+
"description": "Inline CSS style object native.",
|
|
335
|
+
"example": null,
|
|
336
|
+
"param": null
|
|
337
|
+
},
|
|
338
|
+
"ui": {
|
|
339
|
+
"name": "ui",
|
|
340
|
+
"type": "UiProps",
|
|
341
|
+
"optional": true,
|
|
342
|
+
"default": null,
|
|
343
|
+
"description": "Kustomisasi visual granular root / form-item (UiProps).",
|
|
344
|
+
"example": null,
|
|
345
|
+
"param": null
|
|
346
|
+
},
|
|
347
|
+
"onChange": {
|
|
348
|
+
"name": "onChange",
|
|
349
|
+
"type": "(event: any) => void",
|
|
350
|
+
"optional": true,
|
|
351
|
+
"default": null,
|
|
352
|
+
"description": "Callback event saat nilai textarea berubah.",
|
|
353
|
+
"example": null,
|
|
354
|
+
"param": null
|
|
355
|
+
},
|
|
356
|
+
"onInput": {
|
|
357
|
+
"name": "onInput",
|
|
358
|
+
"type": "(event: any) => void",
|
|
359
|
+
"optional": true,
|
|
360
|
+
"default": null,
|
|
361
|
+
"description": "Callback event saat pengguna mengetik (input event).",
|
|
362
|
+
"example": null,
|
|
363
|
+
"param": null
|
|
364
|
+
},
|
|
365
|
+
"onBlur": {
|
|
366
|
+
"name": "onBlur",
|
|
367
|
+
"type": "(event: any) => void",
|
|
368
|
+
"optional": true,
|
|
369
|
+
"default": null,
|
|
370
|
+
"description": "Callback event saat textarea kehilangan fokus (blur).",
|
|
371
|
+
"example": null,
|
|
372
|
+
"param": null
|
|
373
|
+
},
|
|
374
|
+
"onFocus": {
|
|
375
|
+
"name": "onFocus",
|
|
376
|
+
"type": "(event: any) => void",
|
|
377
|
+
"optional": true,
|
|
378
|
+
"default": null,
|
|
379
|
+
"description": "Callback event saat textarea mendapatkan fokus.",
|
|
380
|
+
"example": null,
|
|
381
|
+
"param": null
|
|
382
|
+
},
|
|
383
|
+
"inputRef": {
|
|
384
|
+
"name": "inputRef",
|
|
385
|
+
"type": "any",
|
|
386
|
+
"optional": true,
|
|
387
|
+
"default": null,
|
|
388
|
+
"description": "Ref instance elemen textarea HTML untuk akses kontrol DOM langsung (focus, blur, select).",
|
|
389
|
+
"example": null,
|
|
390
|
+
"param": null
|
|
391
|
+
},
|
|
392
|
+
"className": {
|
|
393
|
+
"name": "className",
|
|
394
|
+
"type": "string",
|
|
395
|
+
"optional": true,
|
|
396
|
+
"default": null,
|
|
397
|
+
"description": "Class CSS kustom.",
|
|
398
|
+
"example": null,
|
|
399
|
+
"param": null
|
|
400
|
+
},
|
|
401
|
+
"onKeyDown": {
|
|
402
|
+
"name": "onKeyDown",
|
|
403
|
+
"type": "(event: any) => void",
|
|
404
|
+
"optional": true,
|
|
405
|
+
"default": null,
|
|
406
|
+
"description": "Callback event tombol keyboard ditekan.",
|
|
407
|
+
"example": null,
|
|
408
|
+
"param": null
|
|
409
|
+
},
|
|
410
|
+
"onKeyUp": {
|
|
411
|
+
"name": "onKeyUp",
|
|
412
|
+
"type": "(event: any) => void",
|
|
413
|
+
"optional": true,
|
|
414
|
+
"default": null,
|
|
415
|
+
"description": "Callback event tombol keyboard dilepaskan.",
|
|
416
|
+
"example": null,
|
|
417
|
+
"param": null
|
|
418
|
+
},
|
|
419
|
+
"showCount": {
|
|
420
|
+
"name": "showCount",
|
|
421
|
+
"type": "boolean",
|
|
422
|
+
"optional": true,
|
|
423
|
+
"default": "false",
|
|
424
|
+
"description": "Menampilkan penghitung karakter di bawah textarea (format: `x / maxLength`). Memerlukan prop `maxLength` untuk berfungsi.",
|
|
425
|
+
"example": null,
|
|
426
|
+
"param": null
|
|
427
|
+
}
|
|
428
|
+
},
|
|
429
|
+
"subInterfaces": {},
|
|
430
|
+
"supportedFrameworks": [
|
|
431
|
+
"react",
|
|
432
|
+
"vue",
|
|
433
|
+
"svelte"
|
|
434
|
+
],
|
|
435
|
+
"themes": [
|
|
436
|
+
"tw"
|
|
437
|
+
]
|
|
438
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ttdk-form-item{gap:var(--ttdk-spacing-xxs);box-sizing:border-box;width:100%;font-family:var(--ttdk-font-sans);flex-direction:column;display:flex}.ttdk-form-item[data-block=true]{width:100%}.ttdk-form-label{font-size:var(--ttdk-font-size-14);font-weight:var(--ttdk-font-weight-semibold);line-height:var(--ttdk-font-size-20);color:var(--ttdk-ui-color,var(--ttdk-text-icon-primary));align-items:center;gap:var(--ttdk-spacing-xxs);user-select:none;display:flex}.dark .ttdk-form-label{color:var(--ttdk-ui-color,var(--ttdk-text-icon-primary))}.ttdk-form-required{color:var(--ttdk-stroke-status-error);font-weight:var(--ttdk-font-weight-bold)}.dark .ttdk-form-required{color:var(--ttdk-stroke-status-error)}.ttdk-form-optional{font-size:var(--ttdk-font-size-12);font-weight:var(--ttdk-font-weight-regular);line-height:var(--ttdk-font-size-18);color:var(--ttdk-text-icon-disabled);margin-left:var(--ttdk-spacing-none)}.dark .ttdk-form-optional{color:var(--ttdk-text-icon-disabled)}.ttdk-textarea-wrapper{background:var(--ttdk-bg-base-primary);border:var(--ttdk-stroke-width-thin) solid var(--ttdk-stroke-subtle);border-radius:var(--ttdk-radius-input-lg);box-sizing:border-box;width:100%;height:112px;min-height:48px;font-family:var(--ttdk-font-sans);transition:border-color .15s,box-shadow .15s,background-color .15s;display:flex;position:relative;overflow:hidden}.dark .ttdk-textarea-wrapper{background:var(--ttdk-bg-base-primary);border-color:var(--ttdk-stroke-subtle)}.ttdk-textarea-wrapper[data-filled=true],.dark .ttdk-textarea-wrapper[data-filled=true]{border-color:var(--ttdk-stroke-strong)}.ttdk-textarea-wrapper:focus-within{box-shadow:0 0 0 3px color-mix(in srgb, var(--ttdk-stroke-border-focus) 15%, transparent);border-color:var(--ttdk-stroke-border-focus)!important}.dark .ttdk-textarea-wrapper:focus-within{box-shadow:0 0 0 3px color-mix(in srgb, var(--ttdk-stroke-border-focus) 25%, transparent);border-color:var(--ttdk-stroke-border-focus)!important}.ttdk-textarea-wrapper[data-error=true]{border-color:var(--ttdk-stroke-status-error)!important}.ttdk-textarea-wrapper[data-error=true]:focus-within{box-shadow:0 0 0 3px color-mix(in srgb, var(--ttdk-stroke-status-error) 15%, transparent);border-color:var(--ttdk-stroke-status-error)!important}.dark .ttdk-textarea-wrapper[data-error=true]{border-color:var(--ttdk-stroke-status-error)!important}.ttdk-form-item[data-error=true] .ttdk-form-label,.dark .ttdk-form-item[data-error=true] .ttdk-form-label{color:var(--ttdk-text-icon-status-error)!important}.ttdk-textarea-wrapper[data-disabled=true],.ttdk-form-item[data-disabled=true] .ttdk-textarea-wrapper{cursor:not-allowed;opacity:.85;background:var(--ttdk-bg-secondary-disabled)!important;border-color:var(--ttdk-stroke-subtle)!important}.dark .ttdk-textarea-wrapper[data-disabled=true],.dark .ttdk-form-item[data-disabled=true] .ttdk-textarea-wrapper{opacity:.75;background:var(--ttdk-bg-secondary-disabled)!important;border-color:var(--ttdk-stroke-subtle)!important}.ttdk-textarea-control{width:100%;height:100%;padding:var(--ttdk-spacing-sm) var(--ttdk-spacing-md);font-size:var(--ttdk-font-size-14);font-weight:var(--ttdk-font-weight-regular);line-height:var(--ttdk-line-height-body);color:var(--ttdk-ui-color,var(--ttdk-text-icon-primary));box-sizing:border-box;font-family:var(--ttdk-font-sans);background:0 0;border:none;outline:none;transition:color .15s}.dark .ttdk-textarea-control{color:var(--ttdk-ui-color,var(--ttdk-text-icon-primary))}.ttdk-textarea-control::placeholder{color:var(--ttdk-text-icon-disabled);opacity:1}.dark .ttdk-textarea-control::placeholder{color:var(--ttdk-text-icon-disabled)}.ttdk-textarea-control:disabled{cursor:not-allowed;color:var(--ttdk-text-icon-disabled)}.dark .ttdk-textarea-control:disabled{color:var(--ttdk-text-icon-disabled)}.ttdk-textarea-wrapper[data-size=sm]{height:80px}.ttdk-textarea-wrapper[data-size=sm] .ttdk-textarea-control{padding:var(--ttdk-spacing-xs) var(--ttdk-spacing-sm);font-size:var(--ttdk-font-size-12)}.ttdk-textarea-wrapper[data-size=md]{height:112px}.ttdk-textarea-wrapper[data-size=md] .ttdk-textarea-control{padding:var(--ttdk-spacing-sm) var(--ttdk-spacing-md);font-size:var(--ttdk-font-size-14)}.ttdk-textarea-wrapper[data-size=lg]{height:144px}.ttdk-textarea-wrapper[data-size=lg] .ttdk-textarea-control{padding:var(--ttdk-spacing-md) var(--ttdk-spacing-lg);font-size:var(--ttdk-font-size-16)}.ttdk-textarea-wrapper[data-rounded=none]{border-radius:var(--ttdk-radius-input-none)}.ttdk-textarea-wrapper[data-rounded=xs]{border-radius:var(--ttdk-radius-input-xs)}.ttdk-textarea-wrapper[data-rounded=sm]{border-radius:var(--ttdk-radius-input-sm)}.ttdk-textarea-wrapper[data-rounded=md]{border-radius:var(--ttdk-radius-input-lg)}.ttdk-textarea-wrapper[data-rounded=lg]{border-radius:var(--ttdk-radius-input-xl)}.ttdk-textarea-wrapper[data-rounded=full]{border-radius:var(--ttdk-radius-input-2xl)}.ttdk-form-helper-text{font-size:var(--ttdk-font-size-12);font-weight:var(--ttdk-font-weight-regular);color:var(--ttdk-text-icon-secondary);line-height:var(--ttdk-font-size-18);min-height:var(--ttdk-font-size-18);font-family:var(--ttdk-font-sans)}.dark .ttdk-form-helper-text{color:var(--ttdk-text-icon-secondary)}.ttdk-form-error-msg{align-items:center;gap:var(--ttdk-spacing-xxs);font-size:var(--ttdk-font-size-12);color:var(--ttdk-text-icon-status-error);font-weight:var(--ttdk-font-weight-medium);line-height:var(--ttdk-font-size-18);min-height:var(--ttdk-font-size-18);font-family:var(--ttdk-font-sans);display:flex}.dark .ttdk-form-error-msg{color:var(--ttdk-text-icon-status-error)}.ttdk-form-error-icon{width:var(--ttdk-font-size-14);height:var(--ttdk-font-size-14);flex-shrink:0}.ttdk-form-error-icon path{fill-rule:evenodd;clip-rule:evenodd}.ttdk-form-footer{justify-content:space-between;align-items:start;gap:var(--ttdk-spacing-xxs) var(--ttdk-spacing-sm);box-sizing:border-box;flex-wrap:wrap-reverse;width:100%;display:flex}.ttdk-form-footer-message{gap:var(--ttdk-spacing-xxs);flex-direction:column;flex:180px;min-width:0;display:flex}.ttdk-form-char-count{font-size:var(--ttdk-font-size-12);font-weight:var(--ttdk-font-weight-regular);color:var(--ttdk-text-icon-disabled);text-align:right;font-family:var(--ttdk-font-sans);line-height:var(--ttdk-font-size-18);white-space:nowrap;flex-shrink:0;margin-left:auto}.dark .ttdk-form-char-count{color:var(--ttdk-text-icon-disabled)}
|