Skip to content

Commit ad66b80

Browse files
committed
refactor: timeslice -> chrono
BREAKING CHANGE: all timeslice imports and names have changed
1 parent 3db0d0f commit ad66b80

28 files changed

Lines changed: 414 additions & 378 deletions

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
### Bug Fixes
6262

63-
* **types:** correct TimeSlice type declaration path in exports field ([c8838f2](https://github.com/bizarre/ui/commit/c8838f2a1350477a5192f63f2e6c23af5857d147))
63+
* **types:** correct Chrono type declaration path in exports field ([c8838f2](https://github.com/bizarre/ui/commit/c8838f2a1350477a5192f63f2e6c23af5857d147))
6464

6565
## [1.1.1](https://github.com/bizarre/ui/compare/v1.1.0...v1.1.1) (2025-05-08)
6666

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Or use `npm`, `yarn`, or `pnpm`. Whatever you like.
2121

2222
## 🧩 Components
2323

24-
### `TimeSlice`
24+
### `Chrono`
2525

2626
A smart, headless time range picker that speaks human.
2727

@@ -38,27 +38,27 @@ A smart, headless time range picker that speaks human.
3838
#### 🛠 Basic Usage
3939

4040
```tsx
41-
import { TimeSlice } from '@bizarre/ui'
41+
import { Chrono } from '@bizarre/ui'
4242

4343
function MyComponent() {
4444
const handleConfirm = (range) => {
4545
console.log('Selected range:', range)
4646
}
4747

4848
return (
49-
<TimeSlice.Root onDateRangeConfirm={handleConfirm}>
50-
<TimeSlice.Input />
51-
<TimeSlice.Portal>
52-
<TimeSlice.Shortcut duration={{ minutes: 15 }}>
49+
<Chrono.Root onDateRangeConfirm={handleConfirm}>
50+
<Chrono.Input />
51+
<Chrono.Portal>
52+
<Chrono.Shortcut duration={{ minutes: 15 }}>
5353
15 minutes
54-
</TimeSlice.Shortcut>
55-
<TimeSlice.Shortcut duration={{ hours: 1 }}>1 hour</TimeSlice.Shortcut>
56-
<TimeSlice.Shortcut duration={{ days: 1 }}>1 day</TimeSlice.Shortcut>
57-
<TimeSlice.Shortcut duration={{ months: 1 }}>
54+
</Chrono.Shortcut>
55+
<Chrono.Shortcut duration={{ hours: 1 }}>1 hour</Chrono.Shortcut>
56+
<Chrono.Shortcut duration={{ days: 1 }}>1 day</Chrono.Shortcut>
57+
<Chrono.Shortcut duration={{ months: 1 }}>
5858
1 month
59-
</TimeSlice.Shortcut>
60-
</TimeSlice.Portal>
61-
</TimeSlice.Root>
59+
</Chrono.Shortcut>
60+
</Chrono.Portal>
61+
</Chrono.Root>
6262
)
6363
}
6464
```

bun.lock

Lines changed: 64 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

landing/bun.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)