Commit f3dec15
authored
feat: Add ImageDialog component with advanced image cropping function… (#32)
* feat: Add ImageDialog component with advanced image cropping functionality
- Introduce new ImageDialog component for image selection and cropping
- Update Dialog component with optional click outside closing
- Modify ImageCrop to support Blob input and improved image handling
- Add ImageDialog story for component demonstration
- Enhance ImageInput with file input reset functionality
* Updates
* chore: Minor styling and configuration updates across components
- Update Mastodon icon color to match new primary color scheme
- Add Tailwind PostCSS plugin configuration
- Modify ESLint and Vite configuration files
- Update Storybook preview and theme settings
- Adjust various component stories and styling classes
- Refactor export order in index.ts
- Minor logo and icon updates
* refactor: Update Icons and DomainInput stories
- Modify Icons story to dynamically render all available icons
- Simplify icon rendering and improve type handling
- Update DomainInput story to optimize onChange event handling
* refactor: Migrate color scheme to OKLCH color space
- Remove tailwind.config.js configuration
- Update Select component styles to use OKLCH color values
- Replace RGB color variables with OKLCH color representation
- Minor styling adjustments in Select component
* feat: Add data-testid attributes to Icons across components
- Enhance Icon component with optional dataTestId prop
- Update Icon component to support data-testid attribute
- Add data-testid attributes to icons in Accordion, CTA, ContentWidget, Error, ImageSelector, and other components
- Modify test setup to mock Icon component with data-testid support
- Improve test coverage and component testability
* refactor: Remove Button color variants and related CSS
* refactor: Improve ImageDialog and ImageCrop component functionality
- Remove unnecessary props from ImageCrop and ImageDialog
- Add state management for cropping and saving images
- Enhance error handling in image saving process
- Update ImageDialog to support loading state during save
- Simplify image cropping and dialog interaction
* refactor: Simplify image handling and remove unnecessary props
- Extract blobToBase64 utility method to ImageUtils
- Remove unused crop state and props from ImageCrop components
- Update ImageDialog to pass both blob and base64 to onSave handler
- Remove console.log statements and unnecessary code
- Streamline image-related components and stories1 parent ab53a50 commit f3dec15
File tree
158 files changed
+4783
-6764
lines changed- .storybook
- assets
- icons
- images
- src
- Components
- Accordion
- __snapshots__
- AddSocialPlatform
- Alert
- AuthorCard
- __snapshots__
- Avatar
- __snapshots__
- Badge
- __snapshots__
- Bookmark
- __snapshots__
- Button
- __snapshots__
- CTA
- __snapshots__
- Cards
- Card
- CharacterCounter
- __snapshots__
- ContentWidget
- Dialog
- Divider
- __snapshots__
- DraggableList
- Dropdown
- Error
- __snapshots__
- HTMLRendering
- Icons
- Icon
- ImageCrop
- ImageDialog
- ImageSelector
- __snapshots__
- Inputs
- AsyncSelect
- Checkbox
- Common
- InputError
- InputHeader
- DatePicker
- DomainInput
- __snapshots__
- ImageInput
- Input
- Select
- Switch
- Textarea
- Tiptap
- Components
- Actions
- ImageUpload
- Mention
- ModalInput
- Suggestion
- Toolbar
- TiptapToHTML
- ItemActions
- Pagination
- Reactions
- Spinner
- Stars
- Tag
- __snapshots__
- TextOverLine
- ThemeBuilder
- ThemeBuilderUtils
- __snapshots__
- Tooltip
- Examples/Forms
- Utils
- Array
- Canvas
- Image
- String
- URL
- Views
- Authentication/SuccessfulSignup
- Onboarding
- Step1
- Step2
- Step3
- PasswordReset/PasswordChanged
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
158 files changed
+4783
-6764
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
| 7 | + | |
9 | 8 | | |
10 | | - | |
11 | | - | |
12 | | - | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | 19 | | |
21 | 20 | | |
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
119 | 125 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
148 | 155 | | |
| 156 | + | |
149 | 157 | | |
150 | 158 | | |
151 | 159 | | |
152 | | - | |
| 160 | + | |
153 | 161 | | |
154 | | - | |
155 | | - | |
| 162 | + | |
| 163 | + | |
156 | 164 | | |
157 | | - | |
158 | | - | |
| 165 | + | |
| 166 | + | |
159 | 167 | | |
160 | 168 | | |
161 | 169 | | |
162 | | - | |
163 | | - | |
164 | | - | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
165 | 173 | | |
166 | 174 | | |
0 commit comments