Skip to content

Commit 97738b9

Browse files
rob-balfreclaude
andcommitted
Allow raw <button> in date-picker for form-control trigger
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9933044 commit 97738b9

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.changeset/polish-visual-primitives.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,5 @@ Polish visual primitives and rewrite date-picker trigger.
1414
- `DatePicker.Trigger`: rewritten as a self-styled button (no longer wraps `Button`); exposes `--dry-date-picker-trigger-*` CSS vars and `data-content`/`data-date-picker-trigger` hooks.
1515
- `Select.Trigger`: `size` prop added; type extends `HTMLButtonAttributes`.
1616
- `TimeInput`: type now extends `HTMLAttributes<HTMLDivElement>` to match the segmented group implementation.
17+
- `@dryui/lint`: `date-picker` joins the form-control-trigger carve-out for raw `<button>` (alongside `select` and `date-range-picker`).
1718
- Dep bumps across the workspace (svelte 5.55.7, svelte-check 4.4.8, vite 8.0.13, @sveltejs/kit 2.60.1, vite-plugin-svelte 7.1.2).

packages/lint/src/rules.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ const NATIVE_ELEMENT_RULES: NativeElementRule[] = [
123123
// --dry-form-control-* token family so they stay visually consistent
124124
// with <Input>/<Textarea> (and immune to ambient --dry-btn-* nesting).
125125
'select',
126+
'date-picker',
126127
'date-range-picker'
127128
]),
128129
re: /<button(\s|>|\/)/g

0 commit comments

Comments
 (0)