CatsJuice
|
c9a1a8c3b2
|
feat(component): access enviroment in components storybook (#7891)
close AF-1247
|
2024-08-21 06:04:39 +00:00 |
|
renovate[bot]
|
f324fa4719
|
chore: bump up storybook monorepo to v8 (major) (#6068)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: EYHN <cneyhn@gmail.com>
|
2024-08-16 11:42:24 +00:00 |
|
CatsJuice
|
d412635f6b
|
feat(component): new hook to open confirm modal (#6342)
new exports from `@affine/component`:
```ts
import { ConfirmModalProvider, useConfirmModal } from "@affine/component"
```
Open confirm modal with hook:
```ts
const Component = () => {
const { openConfirmModal } = useConformModal();
const open = () => {
openConfirmModal({
// props of ConfirmModal
/**
* will show loading state when confirm clicked, and close after onConfirm finished
*/
onConfirm: async () => {
await new Promise((r) => setTimeout(r, 2000));
},
});
}
return <Button onClick={open}>Open</Button>
}
```
|
2024-03-27 13:30:30 +00:00 |
|
pengx17
|
3c6983ee49
|
fix(core): storybook build issue (#6274)
1. es2022 is required and should be set separately in storybook.
2. @blocksuite/icons versions are not consistent across packages.
|
2024-03-23 06:33:25 +00:00 |
|
Cats Juice
|
2db3c933fa
|
refactor(component): move date-picker to ui, add story, support responsive (#5468)
- move to `component/ui`
- add `AFFiNEDatePicker` & `BlocksuiteDatePicker` story
- inline mode support
- responsive support
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://github.com/toeverything/AFFiNE/assets/39363750/320bef49-380f-40a2-b3b2-4b74dd2d8da4">
<img alt="" src="https://github.com/toeverything/AFFiNE/assets/39363750/fc9e7808-02fe-49a1-aa78-aea254fb1f9d">
</picture>
|
2024-01-17 09:16:46 +00:00 |
|
Cats Juice
|
d911d21d1c
|
feat(component): add storybook (#5079)
|
2023-12-04 08:32:19 +00:00 |
|