about summary refs log tree commit diff
path: root/src/components/Dialog/types.ts
Commit message (Collapse)AuthorAgeFilesLines
* Upgrade `@types/react` to 19 and run codemod (attempt 2) (#8918)Samuel Newman2025-09-091-2/+1
| | | | | | | | | | | | | * update dependencies * rm `import type React from 'react'` * run codemods * patch discord types * update types/react-dom * Update yarn.lock
* Web: fix Edit Profile discard warning when pressing backdrop (#8824)Bartosz Kaszubowski2025-08-261-10/+11
| | | | | * Web: fix Edit Profile discard warning * cleanup imports
* Add report dialog e2e tests (#7913)Eric Bailey2025-03-051-1/+4
|
* Better tablet layout (#7656)Samuel Newman2025-02-251-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * better tablet layout * adjust left nav spacing * add right nav to pwi * clearer logic * fix a couple screens that don't need the tablet layout * fix horiz scroll bar * fix double trending * fix ts-ignore * fix labeller screen * don't offset things within dialogs * fix load latest button (and add scale animation) * center loader on home screen * adjust break points * adjust left nav spacing * fix load latest btn (again) * add lang select to right nav if left nav is minimal * fix double scrollbar on tiny screens * fix scrollbar * fix type errors
* [APP-1054] Add option to align web dialogs to top (#7760)Eric Bailey2025-02-181-1/+3
| | | | | | | * Add option to align web dialogs to top * Format * Align all dialogs to top, with relative spacing on larger screens for better balance
* Edit profile dialog ALF refresh (#5633)Samuel Newman2024-10-151-0/+6
|
* Cleanup unused props from dialogs (#5665)Hailey2024-10-091-2/+0
|
* [Sheets] [Pt. 1] Root PR (#5557)Hailey2024-10-041-4/+9
| | | | | | | Co-authored-by: Samuel Newman <mozzius@protonmail.com> Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: dan <dan.abramov@gmail.com> Co-authored-by: Hailey <me@haileyok.com>
* Fix problems with `BottomSheet` and the report dialog (#3297)Hailey2024-03-201-1/+1
| | | | | | | | | | | | | | | | | | | | | * use @discord/bottom-sheet * add @types/invariant * some progress on keyboard dialog * rework rework add a comment use discord bottom sheet * remove `@gorhom/bottom-sheet` * remove android specific code * organize imports
* Set keyboardDismisMode to interactive on the report dialog (#3288)Paul Frazee2024-03-191-1/+7
|
* add `Partial<GestureResponderEvent>` to `.open()` (#3227)Hailey2024-03-191-2/+8
|
* ALF confirmation dialogs (Dialogs Pt. 3) (#3143)Hailey2024-03-121-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Improve a11y on ios * Format * Remove android * Fix android * ALF confirmation dialog * Use ALF for Delete Post confirmation organize diff fix text minimize change copy alternative confirm prompt revert type changes add ButtonColor param * small adjustment to buttons in prompt * full width below gtmobile * update hide post dialog * space out dialogs * update dialogs for lists * add example * add to app passwords * Revert some changes * use sharedvalue for `importantForAccessibility` * add back `isOpen` * fix some more types * small adjustment to buttons in prompt * full width below gtmobile * update the rest of the prompts rm old confirm modal rm update prompt feed error prompt feed source card and profile block/unblock composer discard * Update src/view/screens/AppPasswords.tsx Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> * lint * How about a default * Reverse reverse * Port over confirm dialogs * Add some comments * Remove unused file * complete merge * add testID where needed --------- Co-authored-by: Eric Bailey <git@esb.lol> Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com>
* Fix reactivity of dialogs (Dialogs Pt. 1) (#3146)Hailey2024-03-081-1/+1
| | | | | | | | | | | | | | | | | | | | | * Improve a11y on ios * Format * Remove android * Fix android * Revert some changes * use sharedvalue for `importantForAccessibility` * add back `isOpen` * fix some more types --------- Co-authored-by: Eric Bailey <git@esb.lol>
* Add `Menu` component (#3097)Eric Bailey2024-03-051-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add POC menu abstraction * Better platform handling * Remove ignore * Add some menu items * Add controlled dropdown * Pass through a11y props * Ignore uninitialized context * Tweaks * Usability improvements * Rename handlers to props * Add radix comment * Ignore known type * Remove todo * Move storybook item * Improve Group matching * Adjust theming
* Integrate new dialogs into old back handling (#3023)Eric Bailey2024-02-281-4/+15
|
* Protect against non functions being passed to close callback (#3019)Eric Bailey2024-02-281-6/+6
|
* Add optional close callback to Dialog (#2947)Eric Bailey2024-02-201-4/+2
| | | | | * Add optional close callback * No emitter
* Improve dialogs (#2933)Eric Bailey2024-02-191-6/+15
| | | | | | | | | * Improve dialogs * Remove comment, revert storybook * Hacky fix * Comments
* New component library based on ALF (#2459)Eric Bailey2024-01-181-0/+43
* Install on native as well * Add button and link components * Comments * Use new prop * Add some form elements * Add labels to input * Fix line height, add suffix * Date inputs * Autofill styles * Clean up InputDate types * Improve types for InputText, value handling * Enforce a11y props on buttons * Add Dialog, Portal * Dialog contents * Native dialog * Clean up * Fix animations * Improvements to web modal, exiting still broken * Clean up dialog types * Add Prompt, Dialog refinement, mobile refinement * Integrate new design tokens, reorg storybook * Button colors * Dim mode * Reorg * Some styles * Toggles * Improve a11y * Autosize dialog, handle max height, Dialog.ScrolLView not working * Try to use BottomSheet's own APIs * Scrollable dialogs * Add web shadow * Handle overscroll * Styles * Dialog text input * Shadows * Button focus states * Button pressed states * Gradient poc * Gradient colors and hovers * Add hrefAttrs to Link * Some more a11y * Toggle invalid states * Update dialog descriptions for demo * Icons * WIP Toggle cleanup * Refactor toggle to not rely on immediate children * Make Toggle controlled * Clean up Toggles storybook * ToggleButton styles * Improve a11y labels * ToggleButton hover darkmode * Some i18n * Refactor input * Allow extension of input * Remove old input * Improve icons, add CalendarDays * Refactor DateField, web done * Add label example * Clean up old InputDate, DateField android, text area example * Consistent imports * Button context, icons * Add todo * Add closeAllDialogs control * Alignment * Expand color palette * Hitslops, add shortcut to Storybook in dev * Fix multiline on ios * Mark dialog close button as unused