@grandbazar/ui-baza 1.0.4 → 1.1.0
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 +24 -3
- package/dist/index.cjs +845 -73
- package/dist/index.d.ts +381 -4
- package/dist/index.js +827 -71
- package/dist/style.css +698 -37
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -124,10 +124,17 @@ npm run build:lib
|
|
|
124
124
|
|
|
125
125
|
Currently available components:
|
|
126
126
|
|
|
127
|
+
- **Badge** - Compact label component for statuses, counts, and tags with various visual styles.
|
|
128
|
+
- **Breadcrumbs** - Navigation component showing the user's location within the site hierarchy with support for custom separators. Implemented using Compound Components pattern.
|
|
127
129
|
- **Button** - Flexible button component with various styles and states.
|
|
128
130
|
- **Checkbox** - Custom checkbox with state support, custom labels, and full styling.
|
|
131
|
+
- **Chip** - Compact element for displaying tags, filters, or selections.
|
|
132
|
+
- **DatePicker** - Flexible date picker component with calendar interface, date ranges, and internationalization support. Implemented using Compound Components pattern.
|
|
133
|
+
- **DropdownMenu** - Flexible dropdown menu with support for submenus, custom triggers, and rich content. Implemented using Compound Components pattern.
|
|
129
134
|
- **RadioButton** - Radio button component for single selection from multiple options.
|
|
130
135
|
- **Switch** - Toggle switch component for binary on/off states with smooth animations.
|
|
136
|
+
- **Tag** - Elements for visual marking using keywords. Help with quick recognition, differentiation, and sorting or navigation through content.
|
|
137
|
+
- **TextField** - Input field component with validation, labels, and various input types support. Implemented using Compound Components pattern.
|
|
131
138
|
- **Pagination** - Navigation component for multi-page content with customizable appearance and behavior.
|
|
132
139
|
|
|
133
140
|
More components coming soon! 🎉
|
|
@@ -136,19 +143,33 @@ More components coming soon! 🎉
|
|
|
136
143
|
|
|
137
144
|
Basic set of SVG icons for common UI needs:
|
|
138
145
|
|
|
146
|
+
- **IconCalendar** - Calendar icon for date pickers and scheduling
|
|
139
147
|
- **IconCheck** - Checkmark icon for confirmations and completed states
|
|
140
|
-
- **IconChevron** - Arrow/chevron icon for navigation and dropdowns
|
|
148
|
+
- **IconChevron** - Arrow/chevron icon for navigation and dropdowns
|
|
149
|
+
- **IconGear** - Settings/gear icon for configuration and preferences
|
|
141
150
|
- **IconMinus** - Minus icon for decrements and removal actions
|
|
142
151
|
- **IconPlus** - Plus icon for increments and add actions
|
|
152
|
+
- **IconShopping** - Shopping bag/cart icon for e-commerce and shopping features
|
|
153
|
+
- **IconXMark** - Close/remove icon for dismissing and deleting
|
|
154
|
+
|
|
155
|
+
### Icon Variants
|
|
156
|
+
|
|
157
|
+
Some icons provide multiple variants using Compound Components pattern:
|
|
158
|
+
|
|
159
|
+
- **IconShopping.Filled** - Filled version of the shopping icon for active/selected states
|
|
160
|
+
- **IconXMark.Small** - Smaller version of the close icon for compact UI elements
|
|
143
161
|
|
|
144
162
|
```tsx
|
|
145
|
-
import { IconCheck,
|
|
163
|
+
import { IconCheck, IconShopping, IconXMark } from '@grandbazar/ui-baza';
|
|
146
164
|
|
|
147
165
|
function Example() {
|
|
148
166
|
return (
|
|
149
167
|
<div>
|
|
150
168
|
<IconCheck style={{ color: 'green', width: 16, height: 16 }} />
|
|
151
|
-
<
|
|
169
|
+
<IconShopping style={{ color: 'blue', width: 24, height: 24 }} />
|
|
170
|
+
<IconShopping.Filled style={{ color: 'blue', width: 24, height: 24 }} />
|
|
171
|
+
<IconXMark style={{ width: 24, height: 24 }} />
|
|
172
|
+
<IconXMark.Small style={{ width: 20, height: 20 }} />
|
|
152
173
|
</div>
|
|
153
174
|
);
|
|
154
175
|
}
|