@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
|
+
# <BottomSheet /> — TTDK Component Reference
|
|
2
|
+
|
|
3
|
+
BottomSheet — Komponen lembar geser bawah ramah sentuhan (touch-friendly) untuk in-app webview & mobile. Mendukung safe-area-inset perangkat mobile, gesture swipe-down to dismiss, header, footer, dan mode iOS / Material.
|
|
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>/webview/bottomsheet/bottomsheet.css";`
|
|
8
|
+
|
|
9
|
+
## 2. Subpath Component Import
|
|
10
|
+
```ts
|
|
11
|
+
// React
|
|
12
|
+
import BottomSheet from "@ttdk-design-system/library-react/webview/bottomsheet";
|
|
13
|
+
|
|
14
|
+
// Vue 3
|
|
15
|
+
import BottomSheet from "@ttdk-design-system/library-vue/webview/bottomsheet";
|
|
16
|
+
|
|
17
|
+
// Svelte
|
|
18
|
+
import BottomSheet from "@ttdk-design-system/library-svelte/webview/bottomsheet";
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## 3. Props & API Reference
|
|
22
|
+
|
|
23
|
+
| Prop | Type | Default | Description |
|
|
24
|
+
| :--- | :--- | :--- | :--- |
|
|
25
|
+
|
|
26
|
+
### Sub-interface: `BottomSheetProps`
|
|
27
|
+
|
|
28
|
+
| Field | Type | Default | Description |
|
|
29
|
+
| :--- | :--- | :--- | :--- |
|
|
30
|
+
| `open?` | `boolean` | `-` | Status visibilitas bottom sheet (mode controlled). Mendukung `v-model:open` / `v-model` pada Vue dan controlled prop `open` pada React. |
|
|
31
|
+
| `defaultOpen?` | `boolean` | `false` | Status visibilitas awal bottom sheet saat pertama kali dimuat (uncontrolled initial state). |
|
|
32
|
+
| `title?` | `string` | `-` | Judul teks di bagian header bottom sheet. |
|
|
33
|
+
| `description?` | `string` | `-` | Deskripsi penjelasan di bagian header di bawah judul. |
|
|
34
|
+
| `height?` | `BottomSheetHeight` | `auto` | Skala ukuran tinggi bottom sheet: - `'auto'`: Menyesuaikan tinggi isi konten (maksimal 90vh). - `'sm'`: Lembar ringkas (~35% tinggi layar). - `'md'`: Lembar proporsional standar (~55% tinggi layar). - `'lg'`: Lembar luas (~85% tinggi layar). - `'full'`: Tampilan penuh (100% tinggi layar). |
|
|
35
|
+
| `maxHeight?` | `string` | `-` | Batas tinggi maksimum lembar sheet (contoh: '90vh', '600px'). |
|
|
36
|
+
| `mode?` | `BottomSheetMode` | `auto` | Cita rasa / gaya platform mobile: - `'auto'`: Desain netral adaptif khas TTDK Design System. - `'ios'`: Cita rasa Apple Human Interface (frosted glass, sudut kurva halus 20px). - `'material'`: Cita rasa Material Design 3 (sudut 28px, elevated shadow). |
|
|
37
|
+
| `handle?` | `boolean` | `true` | Menampilkan bilah pegangan geser (drag handle indicator) di bagian atas lembar. |
|
|
38
|
+
| `swipeable?` | `boolean` | `true` | Mengaktifkan gestur sentuh geser ke bawah (swipe-down) untuk menutup lembar. |
|
|
39
|
+
| `close?` | `boolean` | `false` | Menampilkan tombol tutup 'X' di pojok kanan atas header. |
|
|
40
|
+
| `closeIcon?` | `any` | `-` | Ikon kustom untuk tombol tutup. |
|
|
41
|
+
| `dismissible?` | `boolean` | `true` | Mengizinkan lembar ditutup saat pengguna mengeklik backdrop overlay atau menekan tombol Escape. |
|
|
42
|
+
| `preventClose?` | `boolean` | `false` | Mencegah lembar ditutup saat klik di luar atau saat digeser (prevent close). Jika bernilai `true`, lembar hanya dapat ditutup via aksi eksplisit. |
|
|
43
|
+
| `overlay?` | `boolean` | `true` | Menampilkan lapisan latar belakang redup (backdrop overlay). |
|
|
44
|
+
| `preventScroll?` | `boolean` | `true` | Mengunci scrolling pada halaman web di latar belakang saat lembar terbuka (body scroll lock). |
|
|
45
|
+
| `header?` | `any` | `-` | Konten kustom untuk bagian header lembar. |
|
|
46
|
+
| `body?` | `any` | `-` | Konten kustom untuk bagian isi utama (body) lembar. |
|
|
47
|
+
| `footer?` | `any` | `-` | Konten kustom untuk bagian footer aksi di bawah lembar (misal: tombol konfirmasi / CTA). |
|
|
48
|
+
| `content?` | `any` | `-` | Penggantian seluruh konten lembar (mengabaikan layout header, body, footer bawaan). |
|
|
49
|
+
| `children?` | `any` | `-` | Konten utama lembar bottom sheet (body content). |
|
|
50
|
+
| `onOpenChange?` | `(open: boolean) => void` | `-` | Callback event saat status terbuka/tertutup berubah (standar React). |
|
|
51
|
+
| `onUpdateOpen?` | `(open: boolean) => void` | `-` | Callback event saat status terbuka/tertutup berubah untuk two-way binding `v-model:open` (Vue). |
|
|
52
|
+
| `onOpen?` | `() => void` | `-` | Callback event saat lembar bottom sheet terbuka. |
|
|
53
|
+
| `onClose?` | `() => void` | `-` | Callback event saat lembar bottom sheet ditutup. |
|
|
54
|
+
| `onClosePrevent?` | `() => void` | `-` | Callback event saat pengguna mencoba menutup lembar tetapi dicegah karena `preventClose={true}`. |
|
|
55
|
+
| `ui?` | `BottomSheetUiProps` | `-` | Kustomisasi visual granular pada elemen root melalui style-like object. |
|
|
56
|
+
| `className?` | `string` | `-` | |
|
|
57
|
+
| `overlayClass?` | `string` | `-` | |
|
|
58
|
+
| `overlayStyle?` | `any` | `-` | |
|
|
59
|
+
| `contentClass?` | `string` | `-` | |
|
|
60
|
+
| `contentStyle?` | `any` | `-` | |
|
|
61
|
+
| `headerClass?` | `string` | `-` | |
|
|
62
|
+
| `headerStyle?` | `any` | `-` | |
|
|
63
|
+
| `bodyClass?` | `string` | `-` | |
|
|
64
|
+
| `bodyStyle?` | `any` | `-` | |
|
|
65
|
+
| `footerClass?` | `string` | `-` | |
|
|
66
|
+
| `footerStyle?` | `any` | `-` | |
|
|
67
|
+
| `handleClass?` | `string` | `-` | |
|
|
68
|
+
| `handleStyle?` | `any` | `-` | |
|
|
69
|
+
|
|
70
|
+
## 4. Usage Examples
|
|
71
|
+
|
|
72
|
+
### React Example
|
|
73
|
+
```tsx
|
|
74
|
+
import { useState } from 'react';
|
|
75
|
+
import { BottomSheet } from "@ttdk-design-system/library-react/webview/bottomsheet";
|
|
76
|
+
import "@ttdk-design-system/library-react/webview/bottomsheet/bottomsheet.css";
|
|
77
|
+
|
|
78
|
+
export function Example() {
|
|
79
|
+
const [open, setOpen] = useState(false);
|
|
80
|
+
|
|
81
|
+
return (
|
|
82
|
+
<div>
|
|
83
|
+
<button onClick={() => setOpen(true)}>Buka Bottom Sheet</button>
|
|
84
|
+
<BottomSheet
|
|
85
|
+
open={open}
|
|
86
|
+
title="Konfirmasi Tindakan Medis"
|
|
87
|
+
description="Pastikan data pasien dan resep obat sudah sesuai"
|
|
88
|
+
onClose={() => setOpen(false)}
|
|
89
|
+
>
|
|
90
|
+
<p>Konten rincian pemeriksaan pasien dalam webview.</p>
|
|
91
|
+
</BottomSheet>
|
|
92
|
+
</div>
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### Vue 3 Example
|
|
98
|
+
```vue
|
|
99
|
+
<script setup lang="ts">
|
|
100
|
+
import { ref } from 'vue';
|
|
101
|
+
import { BottomSheet } from "@ttdk-design-system/library-vue/webview/bottomsheet";
|
|
102
|
+
import "@ttdk-design-system/library-vue/webview/bottomsheet/bottomsheet.css";
|
|
103
|
+
|
|
104
|
+
const open = ref(false);
|
|
105
|
+
</script>
|
|
106
|
+
|
|
107
|
+
<template>
|
|
108
|
+
<div>
|
|
109
|
+
<button @click="open = true">Buka Bottom Sheet</button>
|
|
110
|
+
<BottomSheet
|
|
111
|
+
v-model:open="open"
|
|
112
|
+
title="Konfirmasi Tindakan Medis"
|
|
113
|
+
description="Pastikan data pasien dan resep obat sudah sesuai"
|
|
114
|
+
>
|
|
115
|
+
<p>Konten rincian pemeriksaan pasien dalam webview.</p>
|
|
116
|
+
</BottomSheet>
|
|
117
|
+
</div>
|
|
118
|
+
</template>
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Svelte Example
|
|
122
|
+
```svelte
|
|
123
|
+
<script lang="ts">
|
|
124
|
+
import { BottomSheet } from "@ttdk-design-system/library-svelte/webview/bottomsheet";
|
|
125
|
+
import "@ttdk-design-system/library-svelte/webview/bottomsheet/bottomsheet.css";
|
|
126
|
+
|
|
127
|
+
let open = false;
|
|
128
|
+
</script>
|
|
129
|
+
|
|
130
|
+
<div>
|
|
131
|
+
<button on:click={() => open = true}>Buka Bottom Sheet</button>
|
|
132
|
+
<BottomSheet
|
|
133
|
+
open={open}
|
|
134
|
+
title="Konfirmasi Tindakan Medis"
|
|
135
|
+
description="Pastikan data pasien dan resep obat sudah sesuai"
|
|
136
|
+
onClose={() => open = false}
|
|
137
|
+
>
|
|
138
|
+
<p>Konten rincian pemeriksaan pasien dalam webview.</p>
|
|
139
|
+
</BottomSheet>
|
|
140
|
+
</div>
|
|
141
|
+
```
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ttdk-bottomsheet-portal{z-index:1000;pointer-events:none;font-family:var(--ttdk-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);flex-direction:column;justify-content:flex-end;display:flex;position:fixed;inset:0}.ttdk-bottomsheet-overlay{z-index:1000;pointer-events:auto;background-color:var(--ttdk-bg-overlay,#14131380);animation:.25s ease-out forwards ttdk-bottomsheet-fade-in;position:fixed;inset:0}.ttdk-bottomsheet-portal[data-mode=ios] .ttdk-bottomsheet-overlay{-webkit-backdrop-filter:blur(8px)}.ttdk-bottomsheet-sheet{z-index:1001;pointer-events:auto;background-color:var(--ttdk-bg-base-primary,#fff);width:100%;color:var(--ttdk-text-icon-primary,#141313);box-shadow:var(--ttdk-shadow-lg,0px -4px 20px #00000026);box-sizing:border-box;padding-bottom:max(16px, env(safe-area-inset-bottom,16px));border-top-left-radius:20px;border-top-right-radius:20px;flex-direction:column;transition:transform .25s cubic-bezier(.16,1,.3,1);animation:.32s cubic-bezier(.16,1,.3,1) forwards ttdk-bottomsheet-slide-up;display:flex;position:relative;overflow:hidden}.ttdk-bottomsheet-sheet.ttdk-bottomsheet-anim-done{animation:none!important}.ttdk-bottomsheet-sheet[data-dragging=true]{cursor:grabbing!important;transition:none!important;animation:none!important}.ttdk-bottomsheet-sheet[data-dragging=true] *{-webkit-user-select:none!important;user-select:none!important}.ttdk-bottomsheet-sheet.ttdk-bottomsheet-closing{transition:transform .22s cubic-bezier(.16,1,.3,1)!important;animation:none!important;transform:translateY(100%)!important}.ttdk-bottomsheet-portal.ttdk-bottomsheet-closing .ttdk-bottomsheet-overlay{opacity:0;transition:opacity .2s ease-out}.ttdk-bottomsheet-sheet[data-mode=ios]{border-top-left-radius:22px;border-top-right-radius:22px}.ttdk-bottomsheet-sheet[data-mode=material]{border-top-left-radius:28px;border-top-right-radius:28px;box-shadow:0 8px 36px #0000003d}.ttdk-bottomsheet-sheet[data-height=auto]{max-height:90vh}.ttdk-bottomsheet-sheet[data-height=sm]{height:35vh;max-height:40vh}.ttdk-bottomsheet-sheet[data-height=md]{height:55vh;max-height:60vh}.ttdk-bottomsheet-sheet[data-height=lg]{height:85vh;max-height:90vh}.ttdk-bottomsheet-sheet[data-height=full]{border-top-left-radius:0;border-top-right-radius:0;height:100vh;max-height:100vh}.ttdk-bottomsheet-handle-wrapper{cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none;justify-content:center;align-items:center;width:100%;padding-top:12px;padding-bottom:8px;display:flex}.ttdk-bottomsheet-handle-wrapper:active,.ttdk-bottomsheet-sheet[data-dragging=true] .ttdk-bottomsheet-handle-wrapper{cursor:grabbing}.ttdk-bottomsheet-handle{background-color:var(--ttdk-border-subtle,#d1d5db);border-radius:9999px;width:36px;height:4.5px;transition:background-color .2s,transform .15s}.ttdk-bottomsheet-handle-wrapper:active .ttdk-bottomsheet-handle,.ttdk-bottomsheet-sheet[data-dragging=true] .ttdk-bottomsheet-handle{background-color:var(--ttdk-color-neutral-400,#9ca3af);transform:scaleX(1.15)}.ttdk-bottomsheet-sheet[data-mode=material] .ttdk-bottomsheet-handle{width:32px;height:4px}.ttdk-bottomsheet-header{touch-action:none;-webkit-user-select:none;user-select:none;cursor:grab;border-bottom:1px solid #0000;justify-content:space-between;align-items:flex-start;gap:16px;padding:8px 20px 12px;display:flex}.ttdk-bottomsheet-header:active,.ttdk-bottomsheet-sheet[data-dragging=true] .ttdk-bottomsheet-header{cursor:grabbing}.ttdk-bottomsheet-header-info{flex:1;min-width:0}.ttdk-bottomsheet-title{color:var(--ttdk-text-icon-primary,#141313);margin:0;font-size:18px;font-weight:600;line-height:1.4}.ttdk-bottomsheet-description{color:var(--ttdk-text-icon-secondary,#6b7280);margin:4px 0 0;font-size:14px;line-height:1.45}.ttdk-bottomsheet-close{width:32px;height:32px;color:var(--ttdk-text-icon-secondary,#6b7280);cursor:pointer;background:0 0;border:none;border-radius:9999px;flex-shrink:0;justify-content:center;align-items:center;padding:0;transition:background-color .15s,color .15s;display:inline-flex}.ttdk-bottomsheet-close svg{stroke-width:2px;stroke-linecap:round;stroke-linejoin:round}.ttdk-bottomsheet-close:hover{background-color:var(--ttdk-bg-secondary-hover,#0000000d);color:var(--ttdk-text-icon-primary,#141313)}.ttdk-bottomsheet-close:active{background-color:var(--ttdk-bg-secondary-active,#0000001a)}.ttdk-bottomsheet-body{-webkit-overflow-scrolling:touch;color:var(--ttdk-text-icon-primary,#141313);flex:auto;padding:8px 20px 16px;font-size:15px;line-height:1.5;overflow-y:auto}.ttdk-bottomsheet-footer{border-top:1px solid var(--ttdk-border-subtle,#f3f4f6);flex-shrink:0;align-items:center;gap:12px;padding:12px 20px 0;display:flex}.ttdk-bottomsheet-shake{animation:.35s ease-in-out ttdk-bottomsheet-bounce}.dark .ttdk-bottomsheet-sheet,[data-theme=dark] .ttdk-bottomsheet-sheet{background-color:var(--ttdk-bg-base-primary,#18181b);color:var(--ttdk-text-icon-primary,#f4f4f5);box-shadow:0 -4px 24px #00000073}.dark .ttdk-bottomsheet-handle,[data-theme=dark] .ttdk-bottomsheet-handle{background-color:var(--ttdk-border-subtle,#3f3f46)}.dark .ttdk-bottomsheet-title,[data-theme=dark] .ttdk-bottomsheet-title{color:var(--ttdk-text-icon-primary,#f4f4f5)}.dark .ttdk-bottomsheet-description,[data-theme=dark] .ttdk-bottomsheet-description{color:var(--ttdk-text-icon-secondary,#a1a1aa)}.dark .ttdk-bottomsheet-body,[data-theme=dark] .ttdk-bottomsheet-body{color:var(--ttdk-text-icon-primary,#f4f4f5)}.dark .ttdk-bottomsheet-footer,[data-theme=dark] .ttdk-bottomsheet-footer{border-top-color:var(--ttdk-border-subtle,#27272a)}.dark .ttdk-bottomsheet-close:hover,[data-theme=dark] .ttdk-bottomsheet-close:hover{color:#f4f4f5;background-color:#ffffff14}@keyframes ttdk-bottomsheet-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ttdk-bottomsheet-slide-up{0%{transform:translateY(100%)}to{transform:translateY(0)}}@keyframes ttdk-bottomsheet-bounce{0%,to{transform:translateY(0)}30%{transform:translateY(-8px)}60%{transform:translateY(-2px)}}
|