0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-08 12:08:40 +00:00
Commit Graph

56 Commits

Author SHA1 Message Date
Trevor Buckner 719edd82c5 Moving splitPane over to the components folder
Just to reduce the number of changes needed to review on the UI overhaul #4122 PR
2025-07-29 16:35:25 -04:00
Víctor Losada Hernández 163e3927b5 style lint 2025-03-18 19:38:58 +01:00
Trevor Buckner bf297939dc Debounce validation popup 2025-02-13 15:01:35 -05:00
Trevor Buckner e584eec8c2 When clicked, combobox textbox clears 2025-02-13 14:51:45 -05:00
Trevor Buckner 6cfdfad7d3 Clean up combobox component 2025-02-10 00:33:33 -05:00
G.Ambatte 37d00f1255 Remove dismissKeys check before displaying dialog 2025-01-07 18:01:58 +13:00
Gazook89 4bad047f93 Merge branch 'master' into Intersection-Observer 2024-11-10 15:56:03 -06:00
Gazook89 b7b1981bde lint 2024-11-08 21:56:45 -06:00
Gazook89 2e8368d08c give dismisskeys a default 2024-11-08 21:56:35 -06:00
Gazook89 a0e88bb24f Add comment about future Popover API use 2024-11-06 21:55:30 -06:00
Gazook89 89a16956b9 Merge branch 'master' into View-Modes 2024-11-04 14:22:54 -06:00
Gazook89 b098d28407 linting 2024-11-04 14:08:06 -06:00
Víctor Losada Hernández 999a96b5ce "Rename dismissKeys to dismisskeys in Dialog component and its usage" 2024-10-22 21:46:57 +02:00
Gazook89 810c2140c9 move some toolbar specific styling to toolbar.less 2024-10-13 20:45:05 -05:00
Gazook89 b33d9264d3 unify terms to 'spreads'
This commit only renames things, changes no logic.  Any mention of "book", "view", or "mode" is renamed in relation to "spreads".

The AnchoredBox.jsx file is renamed to Anchored.jsx

Extra icons are deleted, and the remaining ones are renamed.
2024-10-12 23:25:14 -05:00
Gazook89 1741abc3fe Refactor AnchoredBox for greater flexibility
Big change to how the AnchoredBox component is structured so that it can be used in more than just one spot.  Now composed of the wrapper Anchored, with two children AnchoredTrigger and AnchoredBox, each of which can have their own arbitrary children.

Next steps will involve renaming the component file to Anchored.jsx, moving most styling out of the attached stylesheet (and into brewRenderer.less), and adding props to pass in Anchor Positioning properties.
2024-10-12 23:12:27 -05:00
Gazook89 a3dbaf9e6a refactor anchoredBox to handle focus
Refactoring the AnchoredBox component because I wanted to set focus on the trigger button when the expanded box was closed.  Wrapping the trigger into it's own component, with forwardRef, allows for passing the `ref` to the actual DOM node.  Then the `.focus()` method will work on it.
2024-10-11 22:34:40 -05:00
Víctor Losada Hernández 2d8874acaf move back to conditional showing instead of conditional rendering 2024-10-10 13:17:24 +02:00
Víctor Losada Hernández f8c995e59e remove comments 2024-10-10 02:09:11 +02:00
Víctor Losada Hernández 656c9399ef initial commit 2024-10-10 02:06:00 +02:00
Gazook89 68c75fbfd2 adjust CSS to support Firefox
Set's a non-ideal but functional css style for the box when using Firefox so the box is at least visible.
2024-10-06 22:16:46 -05:00
Gazook89 d6d6cc1e29 Add View Mode Options
Adds a new AnchoredBox component that is functionally a clone of the "saving error" notifications, but drops a lot of the JS in favor of the new (chrome-only!) CSS Anchor Positioning API.  In subsequent commits, either alternate styling or a polyfill will be added non-supported browsers.

The box contains a few inputs that modify the CSS applied to `.pages`, most critically a "start on right" toggle for the Facing Pages mode.
2024-10-06 21:51:44 -05:00
Trevor Buckner 08b61a6bb4 Cleanup comments. Fix Indentation. 2024-06-07 11:26:47 -04:00
G.Ambatte 33c2bee873 Remove unused useState 2024-06-07 16:05:14 +12:00
G.Ambatte 54ec1b8827 Comment out dialog.less reference 2024-06-07 10:50:57 +12:00
Trevor Buckner 7bb92bc790 Refactor slightly 2024-06-06 18:10:04 -04:00
G.Ambatte ed39852a8f Move dialog[open] to Dialog component styling 2024-06-06 22:00:28 +12:00
G.Ambatte fa7b3ea2a0 Shift dismiss button, tweak local storage check 2024-06-06 21:41:33 +12:00
G.Ambatte 556ded9b08 Tweak Dialog to work with showModal and show LockNotifications 2024-06-06 12:01:55 +12:00
G.Ambatte 31b6e0c4f6 Show dialog when dismissKey prop is not specified 2024-06-05 12:33:13 +12:00
G.Ambatte ec514cdb51 Set local storage only if dismissKey prop exists 2024-06-05 07:49:29 +12:00
Trevor Buckner 491b38c330 Small cleanup of Dialog component
Reduce number of `useEffects` needed
2024-06-04 12:29:13 -04:00
G.Ambatte 865c5678bc Change all Modal references to Dialog 2024-06-04 17:34:26 +12:00
G.Ambatte e7735e242a Add closeText prop 2024-06-04 17:28:29 +12:00
G.Ambatte f3b01bc75c Fix for modals 2024-06-04 16:51:43 +12:00
G.Ambatte 8685c5cae4 Break Dialog out of NotificationPopup, restore NotificationPopup to original position 2024-06-04 16:26:51 +12:00
G.Ambatte a6ce36689c Shift NotificationPopup to shared components & update BrewRenderer ref 2024-06-01 12:38:01 +12:00
Víctor Losada Hernández 92e27cda6c "Removed unused imports of 'classnames' and 'create-react-class' from various JSX files. in the Client folder" 2024-05-17 22:31:55 +02:00
Trevor Buckner 33d8d51956 Tweak combobox style 2023-03-20 14:04:20 -04:00
Trevor Buckner 0a7ccfb89e Debounce validation on Lang field 2023-03-20 13:17:51 -04:00
Gazook89 461487534d add onBlur to lang input to reset to valid 2023-03-08 14:24:15 -06:00
Gazook89 76d73e0e02 prevent crash if desired attr is not available. 2022-11-29 12:25:58 -06:00
Gazook89 9e289ad6d1 remove unused require 2022-11-29 12:12:10 -06:00
Gazook89 914a4586b9 set dropdown list scroll to auto 2022-11-29 12:08:52 -06:00
Gazook89 12fe787ab4 allow strings for filterOn 2022-11-29 12:06:38 -06:00
Gazook89 fc7c46cfec add ability to filter options on any number of attributes 2022-11-28 21:39:41 -06:00
Gazook89 e1ff34ebaa add placeholder to input 2022-11-24 23:33:04 -06:00
Gazook89 ce732778bb add .value div for consistency and styling 2022-11-24 23:21:47 -06:00
Gazook89 b54d225f11 add autoSuggest option to filter on chosen attribute 2022-11-24 23:08:41 -06:00
Gazook89 fb95039368 edit/add autoSuggest options 2022-11-24 22:51:16 -06:00