@bigtablet/design-system 4.4.0 → 4.5.0
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/esm/ui/display/table/index.js +1 -1
- package/dist/esm/ui/display/table/style.css +1 -1
- package/dist/esm/ui/feedback/alert/index.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +46 -5
- package/dist/styles/breakpoints/_index.scss +7 -0
- package/dist/styles/layout/_index.scss +10 -5
- package/dist/vanilla/bigtablet.min.css +1 -1
- package/dist/vanilla/bigtablet.min.js +11 -11
- package/docs/AGENT_GUIDE.md +6 -4
- package/package.json +3 -3
package/docs/AGENT_GUIDE.md
CHANGED
|
@@ -263,7 +263,7 @@ Organized by category. **Always** import from the package root (`@bigtablet/desi
|
|
|
263
263
|
| `Badge` | Number/status pill. | `shape` (dot/count/label), `tone` (accent/neutral/info/success/warning/error), `appearance` (solid/soft - soft = tint bg + dark text, both WCAG AA), `count` |
|
|
264
264
|
| `Chip` | Tag/category pill. | `type` (interactive/static), `tone` (neutral/accent/info/success/warning/error - static only), `size` (sm/md), `selected`, `removable`, `leadingIcon` |
|
|
265
265
|
| `ListItem` | Single row in a list. | `label`, `overline`, `supportingText`, `metadata` (all accept string **or ReactNode** - inline `<strong>`/`<a>`/`Badge`), `leadingElement`, `trailingElement`, `alignment` (auto-detects OneLine → middle), `onClick`, `selected` |
|
|
266
|
-
| `Table` | Data table. | `columns`, `data`, `keyExtractor`, `size` (sm/md/lg), `isLoading`, `stickyHeader`, `onRowClick`, `emptyMessage
|
|
266
|
+
| `Table` | Data table. | `columns`, `data`, `keyExtractor`, `size` (sm/md/lg), `isLoading`, `stickyHeader`, `onRowClick`, `emptyMessage`, `layout` (auto/fixed - fixed keeps column positions across pages), `minWidth`, `cards` (stack rows as cards on compact). Column `truncate` for one-line ellipsis. Clickable rows get keyboard support automatically. |
|
|
267
267
|
| `Divider` | Horizontal rule. | `weight` (standard/heavy). Horizontal only - there is no vertical variant. |
|
|
268
268
|
| `Icon` | Lucide icon wrapper. | `icon` (lucide-react component), `size`, `strokeWidth`, `aria-label` |
|
|
269
269
|
| `Accordion` | Expandable disclosure. | `items` array with `key`/`title`/`content`, `multiple`, `defaultOpenKeys` or `openKeys` + `onValueChange`. Hover bg works in any open state. |
|
|
@@ -272,7 +272,7 @@ Organized by category. **Always** import from the package root (`@bigtablet/desi
|
|
|
272
272
|
|
|
273
273
|
| Component | Purpose | Key props |
|
|
274
274
|
|-----------|---------|-----------|
|
|
275
|
-
| `Alert` (via `useAlert`) | Confirm/alert dialog. | `showAlert({ title, message, tone, showCancel, destructive, onConfirm, onCancel })` |
|
|
275
|
+
| `Alert` (via `useAlert`) | Confirm/alert dialog. | `showAlert({ title, message, tone, showCancel, destructive, confirmDisabled, onConfirm, onCancel })` → handle `{ update(patch) }` (e.g. lock confirm until a reason is typed). `confirmDisabled` uses `aria-disabled` and blocks click/Enter. |
|
|
276
276
|
| `useConfirm` | Promise-based confirm on the same `AlertProvider`. | `const ok = await confirm({ title, message, tone, destructive, confirmText, cancelText, onConfirm })` → `true` on confirm, `false` on cancel/Escape/overlay (exactly once). A new confirm replaces an open one (old → `false`). Async `onConfirm` keeps it open with a spinner and blocks double submit; reject keeps it open for retry. |
|
|
277
277
|
| `Toast` (via `useToast`) | Transient notification. | `toast.success("...")` / `.error(...)` / `.warning(...)` / `.info(...)` / `.message(...)`. Second arg = duration ms. |
|
|
278
278
|
| `InlineAlert` | Persistent in-page notice (expiring plan, maintenance, dev env, save result). Not transient (`Toast`) or confirm (`AlertProvider`). | `tone` (neutral/info/success/warning/error), `title`, `children`, `icon` (`null` hides), `action`, `onDismiss` (shows close button; parent removes it), `dismissLabel`. No live region by default - pass `role="status"`/`role="alert"` only when it appears later. |
|
|
@@ -520,7 +520,7 @@ For non-React contexts (Thymeleaf, JSP, PHP, Django):
|
|
|
520
520
|
|
|
521
521
|
Class naming: `.bt-{component}` + `--{modifier}` + `.is-{state}` (BEM-like).
|
|
522
522
|
|
|
523
|
-
Components available: Button, TextField, Checkbox, Radio, Toggle, Dropdown, Modal, Card, Spinner, Pagination, DatePicker, FileInput.
|
|
523
|
+
Components available: Button, TextField, Checkbox, Radio, Toggle, Dropdown, Modal, Alert, Toast, InlineAlert (CSS only), Badge (CSS only), Table (CSS only), CopyButton, Card, Spinner, Pagination, DatePicker, FileInput.
|
|
524
524
|
|
|
525
525
|
Class names and JS option names mirror the React API exactly - there are no deprecated aliases. See [MIGRATION.md](./MIGRATION.md#v380-vanilla-패키지-정리) for the v3.8.0 old → new map.
|
|
526
526
|
|
|
@@ -529,8 +529,10 @@ JS API (auto-init on DOMContentLoaded, or manual):
|
|
|
529
529
|
const dropdown = Bigtablet.Dropdown("#my-dropdown", { options, onValueChange });
|
|
530
530
|
// React 와 동일한 이름의 multiple / searchable 도 지원 (data-multiple / data-searchable 로도 가능)
|
|
531
531
|
Bigtablet.Dropdown("#multi", { multiple: true, searchable: true, selectedSummary: (n) => `${n}개 선택` });
|
|
532
|
-
const modal = Bigtablet.Modal("#my-modal", { onOpen, onClose });
|
|
532
|
+
const modal = Bigtablet.Modal("#my-modal", { onOpen, onClose, onExited });
|
|
533
533
|
Bigtablet.Alert({ title, message, showCancel: true, onConfirm });
|
|
534
|
+
Bigtablet.CopyButton("#copy", { text: () => input.value, onCopy }); // 또는 <button data-bt-copy="값">
|
|
535
|
+
const toast = Bigtablet.Toast("저장했습니다", "success", { duration: 3000, action: { label, onClick } }); // → { dismiss }
|
|
534
536
|
```
|
|
535
537
|
|
|
536
538
|
Dark mode: same `[data-theme="dark"]` attribute works. CSS custom properties expose all tokens with `--bt-` prefix.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bigtablet/design-system",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0",
|
|
4
4
|
"description": "Bigtablet Design System UI Components",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -145,8 +145,8 @@
|
|
|
145
145
|
"disablePlugins": [
|
|
146
146
|
"@size-limit/esbuild"
|
|
147
147
|
],
|
|
148
|
-
"limit": "
|
|
149
|
-
"message": "Raised 7 kB -> 8 kB on 2026-09-10: baseline was 6.83 kB, leaving 0.17 kB (2.4%) under the old 7 kB limit. Re-measured 2026-09-18 without esbuild: 6.54 kB raw brotli, leaving 1.46 kB. esbuild is disabled for this entry: the file is a pre-minified
|
|
148
|
+
"limit": "10 kB",
|
|
149
|
+
"message": "Raised 8 kB -> 10 kB on 2026-11-05 for Bigtablet.Toast (#910): develop measured 7.98 kB raw brotli (0.02 kB under 8 kB after the Alert exit motion), Toast adds 0.79 kB -> 8.77 kB, leaving 1.23 kB. Raised 7 kB -> 8 kB on 2026-09-10: baseline was 6.83 kB, leaving 0.17 kB (2.4%) under the old 7 kB limit. Re-measured 2026-09-18 without esbuild: 6.54 kB raw brotli, leaving 1.46 kB. esbuild is disabled for this entry: the file is a pre-minified IIFE loaded via <script> (tsup bundles src/vanilla/js/*.js since #926) - the raw file size is the number consumers actually download. Re-measure before raising again."
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"path": "dist/index.css",
|