@grandbazar/ui-baza 1.2.1 → 1.2.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -140,51 +140,84 @@ Currently available components:
140
140
  - **TextField** - Input field component with validation, labels, and various input types support. Implemented using Compound Components pattern.
141
141
  - **Pagination** - Navigation component for multi-page content with customizable appearance and behavior.
142
142
  - **ProgressBar** - Progress indicator component with linear and step-based variants. Supports multiple sizes and full ARIA accessibility. Implemented using Compound Components pattern.
143
+ - **Tooltip** - Lightweight tooltip component for contextual hints and helper text.
143
144
 
144
145
  More components coming soon! 🎉
145
146
 
146
147
  ## 🎨 Icons
147
148
 
148
- Basic set of SVG icons for common UI needs:
149
-
150
- - **IconArrow** - Arrow icon for navigation and directional indicators
151
- - **IconArrowCircle** - Arrow inside circle for navigation buttons
152
- - **IconArrowDiagonal** - Diagonal arrow for external links and redirects
153
- - **IconArrowUTurn** - U-turn arrow for undo/return actions
154
- - **IconCalendar** - Calendar icon for date pickers and scheduling
155
- - **IconCharacteristic** - Pattern icon for characteristics and properties
156
- - **IconCheck** - Checkmark icon for confirmations and completed states
157
- - **IconChevron** - Arrow/chevron icon for navigation and dropdowns
158
- - **IconChevronDouble** - Double chevron for fast navigation (first/last page)
159
- - **IconCollapse** - Collapse icon for expanding/collapsing content
160
- - **IconFilters** - Filter icon for filtering and sorting options
161
- - **IconGear** - Settings/gear icon for configuration and preferences
162
- - **IconLogOut** - Logout icon for sign out actions
163
- - **IconMinus** - Minus icon for decrements and removal actions
164
- - **IconPerson** - Person/user icon for profiles and accounts
165
- - **IconPlus** - Plus icon for increments and add actions
166
- - **IconPrize** - Prize/gift icon for rewards and bonuses
167
- - **IconProject** - Project/layers icon for project management
168
- - **IconQRCode** - QR code icon for scanning and sharing
169
- - **IconRequest** - Request/branch icon for requests and workflows
170
- - **IconShopping** - Shopping bag/cart icon for e-commerce and shopping features
171
- - **IconSort** - Sort icon for sorting options
172
- - **IconXMark** - Close/remove icon for dismissing and deleting
149
+ All icons are exported from `@grandbazar/ui-baza` and accept standard SVG props (`React.SVGProps<SVGSVGElement>`):
150
+
151
+ - **IconArrow** - Arrow for direction and navigation.
152
+ - **IconArrowCircle** - Arrow in a circle for compact actions.
153
+ - **IconArrowCircleUp** - Up arrow in a circle for scroll-to-top actions.
154
+ - **IconArrowDiagonal** - Diagonal arrow for external links.
155
+ - **IconArrowUTurn** - U-turn arrow for return/undo style actions.
156
+ - **IconBell** - Notification icon.
157
+ - **IconBox** - Box/package icon for products and inventory.
158
+ - **IconCalendar** - Date and schedule icon.
159
+ - **IconCharacteristic** - Generic attribute/specification marker.
160
+ - **IconCheck** - Confirmation checkmark.
161
+ - **IconCheckCircle** - Checkmark in a circle for success states.
162
+ - **IconChevron** - Chevron for dropdowns and directional hints.
163
+ - **IconChevronDouble** - Double chevron for fast navigation.
164
+ - **IconClock** - Time/duration icon.
165
+ - **IconCollapse** - Collapse/expand state icon.
166
+ - **IconCopy** - Copy/duplicate action icon.
167
+ - **IconDots** - "More actions" menu icon.
168
+ - **IconDownload** - Download action icon.
169
+ - **IconEye** - Visibility and preview icon.
170
+ - **IconFace** - Face/emotion icon for feedback states.
171
+ - **IconFile** - File/document icon.
172
+ - **IconFilters** - Filter controls icon.
173
+ - **IconGear** - Settings/configuration icon.
174
+ - **IconHanger** - Catalog/fashion category icon.
175
+ - **IconHome** - Main page/navigation root icon.
176
+ - **IconInfo** - Informational hint icon.
177
+ - **IconLogOut** - Sign-out action icon.
178
+ - **IconMail** - Email/message icon.
179
+ - **IconMinus** - Remove/decrease action icon.
180
+ - **IconOneCircle** - Number marker in a circle.
181
+ - **IconPerson** - User/profile icon.
182
+ - **IconPhone** - Phone/call icon.
183
+ - **IconPlus** - Add/increase action icon.
184
+ - **IconPrize** - Reward/bonus icon.
185
+ - **IconProject** - Project/layers icon.
186
+ - **IconQRCode** - QR code icon.
187
+ - **IconRequest** - Request/workflow icon.
188
+ - **IconResizeCorner** - Corner resize handle icon.
189
+ - **IconScan** - Scan/recognition icon.
190
+ - **IconSearch** - Search icon.
191
+ - **IconShopping** - Shopping/cart icon.
192
+ - **IconSort** - Sort icon.
193
+ - **IconStar** - Favorite/rating icon.
194
+ - **IconSticker** - Label/sticker icon.
195
+ - **IconStop** - Stop/cancel action icon.
196
+ - **IconSwitch** - Toggle/switch state icon.
197
+ - **IconXMark** - Close/remove icon.
198
+ - **IconXMarkCircle** - Close icon in a circle.
199
+ - **IconLogo** - Brand icons namespace.
173
200
 
174
201
  ### Icon Variants
175
202
 
176
- Some icons provide multiple variants using Compound Components pattern:
203
+ Some icons provide variants via Compound Components pattern, for example:
177
204
 
178
- - **IconArrowCircle.Filled** - Filled version of the arrow circle icon
179
- - **IconArrowDiagonal.Up** - Upward diagonal arrow variant
180
- - **IconArrowUTurn.Up** - Upward U-turn arrow variant
181
- - **IconPerson.Filled** - Filled version of the person icon for active states
182
- - **IconPrize.Filled** - Filled version of the prize icon for active states
183
- - **IconShopping.Filled** - Filled version of the shopping icon for active/selected states
184
- - **IconXMark.Small** - Smaller version of the close icon for compact UI elements
205
+ - **IconArrowCircleUp.Filled** - Filled scroll-up action variant.
206
+ - **IconArrowDiagonal.Up** - Upward diagonal direction variant.
207
+ - **IconEye.Off** - Visibility-off/hidden state variant.
208
+ - **IconFace.Sad** - Negative feedback/emotion variant.
209
+ - **IconFace.Smile** - Positive feedback/emotion variant.
210
+ - **IconXMark.Small** - Compact close icon for tight layouts.
211
+
212
+ Brand icons are available under `IconLogo`:
213
+
214
+ - **IconLogo.Google** - Google brand mark.
215
+ - **IconLogo.Telegram** - Telegram brand mark.
216
+ - **IconLogo.VK** - VK brand mark.
217
+ - **IconLogo.Yandex** - Yandex brand mark.
185
218
 
186
219
  ```tsx
187
- import { IconCheck, IconShopping, IconPerson, IconArrowCircle } from '@grandbazar/ui-baza';
220
+ import { IconCheck, IconShopping, IconFace, IconLogo } from '@grandbazar/ui-baza';
188
221
 
189
222
  function Example() {
190
223
  return (
@@ -192,6 +225,8 @@ function Example() {
192
225
  <IconCheck style={{ color: 'green', width: 16, height: 16 }} />
193
226
  <IconShopping style={{ color: 'blue', width: 20, height: 20 }} />
194
227
  <IconShopping.Filled style={{ color: 'red', width: 24, height: 24 }} />
228
+ <IconFace.Sad style={{ color: '#6b7280', width: 24, height: 24 }} />
229
+ <IconLogo.Google style={{ width: 24, height: 24 }} />
195
230
  </div>
196
231
  );
197
232
  }