@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 +69 -34
- package/dist/index.cjs +1009 -127
- package/dist/index.d.ts +154 -11
- package/dist/index.js +987 -124
- package/dist/style.css +111 -4
- package/package.json +1 -1
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
|
-
|
|
149
|
-
|
|
150
|
-
- **IconArrow** - Arrow
|
|
151
|
-
- **IconArrowCircle** - Arrow
|
|
152
|
-
- **
|
|
153
|
-
- **
|
|
154
|
-
- **
|
|
155
|
-
- **
|
|
156
|
-
- **
|
|
157
|
-
- **
|
|
158
|
-
- **
|
|
159
|
-
- **
|
|
160
|
-
- **
|
|
161
|
-
- **
|
|
162
|
-
- **
|
|
163
|
-
- **
|
|
164
|
-
- **
|
|
165
|
-
- **
|
|
166
|
-
- **
|
|
167
|
-
- **
|
|
168
|
-
- **
|
|
169
|
-
- **
|
|
170
|
-
- **
|
|
171
|
-
- **
|
|
172
|
-
- **
|
|
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
|
|
203
|
+
Some icons provide variants via Compound Components pattern, for example:
|
|
177
204
|
|
|
178
|
-
- **
|
|
179
|
-
- **IconArrowDiagonal.Up** - Upward diagonal
|
|
180
|
-
- **
|
|
181
|
-
- **
|
|
182
|
-
- **
|
|
183
|
-
- **
|
|
184
|
-
|
|
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,
|
|
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
|
}
|