@veevarts/design-system 0.1.22 → 0.1.24

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.
Files changed (68) hide show
  1. package/README.md +59 -0
  2. package/dist/components/index.d.ts +13 -0
  3. package/dist/index.cjs +12 -12
  4. package/dist/index.d.ts +8 -12
  5. package/dist/index.js +6244 -2788
  6. package/dist/patterns/DonationAmounts/DonationAmounts.d.ts +7 -0
  7. package/dist/patterns/DonationAmounts/__test__/DonationAmounts.test.d.ts +4 -0
  8. package/dist/patterns/DonationAmounts/index.d.ts +9 -0
  9. package/dist/patterns/DonationAmounts/types.d.ts +145 -0
  10. package/dist/patterns/DonationAmounts/utils/currency.d.ts +25 -0
  11. package/dist/patterns/EventDetails/EventDetails.d.ts +37 -0
  12. package/dist/patterns/EventDetails/__test__/EventDetails.test.d.ts +1 -0
  13. package/dist/patterns/EventDetails/index.d.ts +2 -0
  14. package/dist/patterns/ExpireCartTimer/ExpireCartTimer.d.ts +249 -0
  15. package/dist/patterns/ExpireCartTimer/__test__/ExpireCartTimer.test.d.ts +4 -0
  16. package/dist/patterns/ExpireCartTimer/index.d.ts +1 -0
  17. package/dist/patterns/Footer/Footer.d.ts +4 -21
  18. package/dist/patterns/Footer/__test__/Footer.test.d.ts +1 -0
  19. package/dist/patterns/Footer/index.d.ts +0 -1
  20. package/dist/patterns/Navbar/Navbar.d.ts +23 -7
  21. package/dist/patterns/Navbar/__test__/Navbar.test.d.ts +1 -0
  22. package/dist/patterns/OfferCard/OfferCard.d.ts +12 -0
  23. package/dist/patterns/OfferCard/__test__/OfferCard.test.d.ts +1 -0
  24. package/dist/patterns/OfferCard/examples/CustomQuantitySelectorExample.d.ts +1 -0
  25. package/dist/patterns/OfferCard/examples/ListWithEurosCurrencyExample.d.ts +1 -0
  26. package/dist/patterns/OfferCard/examples/ListWithoutAnimationExample.d.ts +1 -0
  27. package/dist/patterns/OfferCard/examples/index.d.ts +3 -0
  28. package/dist/patterns/OfferCard/index.d.ts +10 -0
  29. package/dist/patterns/OfferCard/types.d.ts +483 -0
  30. package/dist/patterns/OfferCard/utils/animations.d.ts +42 -0
  31. package/dist/patterns/OfferCard/utils/currency.d.ts +26 -0
  32. package/dist/patterns/OfferCard/utils/index.d.ts +3 -0
  33. package/dist/patterns/OfferCard/utils/offers.d.ts +3 -0
  34. package/dist/patterns/OfferCard/variants/OfferCardEmpty.d.ts +12 -0
  35. package/dist/patterns/OfferCard/variants/OfferCardError.d.ts +12 -0
  36. package/dist/patterns/OfferCard/variants/OfferCardList.d.ts +12 -0
  37. package/dist/patterns/OfferCard/variants/OfferCardSkeleton.d.ts +12 -0
  38. package/dist/patterns/OfferCard/variants/index.d.ts +4 -0
  39. package/dist/patterns/RevenueDistribution/RevenueDistributionCard.d.ts +16 -0
  40. package/dist/patterns/RevenueDistribution/__test__/RevenueDistributionCard.test.d.ts +1 -0
  41. package/dist/patterns/RevenueDistribution/examples/InteractiveExample.d.ts +8 -0
  42. package/dist/patterns/RevenueDistribution/examples/MultipleDistributionsFormExample.d.ts +10 -0
  43. package/dist/patterns/RevenueDistribution/examples/WithGlAccountSearchExample.d.ts +7 -0
  44. package/dist/patterns/RevenueDistribution/examples/index.d.ts +9 -0
  45. package/dist/patterns/RevenueDistribution/index.d.ts +12 -0
  46. package/dist/patterns/RevenueDistribution/types.d.ts +394 -0
  47. package/dist/patterns/RevenueDistribution/utils/amount.d.ts +56 -0
  48. package/dist/patterns/RevenueDistribution/utils/data.d.ts +4 -0
  49. package/dist/patterns/RevenueDistribution/utils/index.d.ts +5 -0
  50. package/dist/patterns/RevenueDistribution/variants/RevenueDistributionEmpty.d.ts +11 -0
  51. package/dist/patterns/RevenueDistribution/variants/RevenueDistributionError.d.ts +11 -0
  52. package/dist/patterns/RevenueDistribution/variants/RevenueDistributionSkeleton.d.ts +11 -0
  53. package/dist/patterns/RevenueDistribution/variants/index.d.ts +3 -0
  54. package/dist/patterns/RichText/RichText.d.ts +1 -0
  55. package/dist/patterns/RichText/TipTapArea/TipTapArea.d.ts +1 -1
  56. package/dist/patterns/RichText/toolbar/Toolbar.d.ts +8 -1
  57. package/dist/patterns/RichText/toolbar/hooks/useToolbarCommands.d.ts +5 -1
  58. package/dist/patterns/RichText/toolbar/sections/TextFormattingSection.d.ts +5 -1
  59. package/dist/patterns/RichText/types/props.d.ts +9 -1
  60. package/dist/patterns/Stepper/Stepper.d.ts +1 -1
  61. package/dist/patterns/index.d.ts +13 -4
  62. package/dist/tailwind/index.d.ts +541 -0
  63. package/dist/tailwind/index.js +293 -0
  64. package/dist/templates/ConfirmationPageTemplate/ConfirmationPageTemplate.d.ts +0 -2
  65. package/dist/templates/EventDetailsTemplate/EventDetailsTemplate.d.ts +0 -2
  66. package/dist/theme/index.d.ts +26 -2
  67. package/dist/tokens/colors.d.ts +72 -7
  68. package/package.json +31 -13
package/README.md CHANGED
@@ -149,6 +149,65 @@ import { Card, Input, Modal, Dropdown } from '@veevarts/design-system';
149
149
 
150
150
  For complete HeroUI documentation, visit: [HeroUI Storybook](https://storybook.heroui.com/)
151
151
 
152
+ ### Configure Tailwind CSS
153
+
154
+ To use the Veevart design tokens and HeroUI theme in your project, update your `tailwind.config.js`:
155
+
156
+ ```js
157
+ const { heroui } = require('@heroui/react');
158
+ const { veevartPreset, createHeroUIConfig } = require('@veevarts/design-system/tailwind');
159
+
160
+ module.exports = {
161
+ presets: [veevartPreset],
162
+ content: [
163
+ './src/**/*.{js,ts,jsx,tsx}',
164
+ './node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}',
165
+ ],
166
+ darkMode: 'class',
167
+ plugins: [heroui(createHeroUIConfig())],
168
+ };
169
+ ```
170
+
171
+ #### Custom Primary Color (Client Branding)
172
+
173
+ Override the primary color for client-specific branding:
174
+
175
+ ```js
176
+ const { heroui } = require('@heroui/react');
177
+ const { veevartPreset, createHeroUIConfig } = require('@veevarts/design-system/tailwind');
178
+
179
+ // Color from API, environment variable, or configuration
180
+ const clientPrimaryColor = process.env.CLIENT_PRIMARY_COLOR || '#C14615';
181
+
182
+ module.exports = {
183
+ presets: [veevartPreset],
184
+ content: [
185
+ './src/**/*.{js,ts,jsx,tsx}',
186
+ './node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}',
187
+ ],
188
+ darkMode: 'class',
189
+ plugins: [
190
+ heroui(createHeroUIConfig({
191
+ colors: {
192
+ primary: clientPrimaryColor,
193
+ // You can also override: secondary, success, warning, danger
194
+ },
195
+ })),
196
+ ],
197
+ };
198
+ ```
199
+
200
+ #### Available Tailwind Exports
201
+
202
+ | Export | Description |
203
+ |--------|-------------|
204
+ | `veevartPreset` | Complete Tailwind preset with all design tokens |
205
+ | `createHeroUIConfig(overrides?)` | Creates HeroUI plugin config with optional color overrides |
206
+ | `tokens` | All tokens: `{ colors, typography, spacing, tailwindTheme }` |
207
+ | `colors` | Color tokens (brand, semantic, neutral, palettes) |
208
+ | `typography` | Typography tokens (fontFamily, fontSize, fontWeight, lineHeight) |
209
+ | `spacing` | Spacing tokens |
210
+
152
211
  ---
153
212
 
154
213
  ## 🏗️ Project Structure
@@ -1,2 +1,15 @@
1
+ /**
2
+ * Components Index
3
+ *
4
+ * Re-exports all HeroUI components and overrides with custom implementations.
5
+ * Import from this file instead of @heroui/react to ensure custom components are used.
6
+ *
7
+ * Example:
8
+ * import { Button, Card, Input } from '../../components';
9
+ *
10
+ * When a component is customized, it will automatically be used instead of the HeroUI version.
11
+ */
12
+ export * from '@heroui/react';
13
+ export type * from '@heroui/react';
1
14
  export { Button } from './Button';
2
15
  export type { ButtonProps } from './Button';