@bunnyapp/components 1.8.0-beta.27 → 1.8.0-beta.29

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 (39) hide show
  1. package/README.md +51 -0
  2. package/dist/cjs/index.js +100 -31005
  3. package/dist/cjs/types/src/components/BillingDetails/BillingDetails.d.ts +2 -5
  4. package/dist/cjs/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -4
  5. package/dist/cjs/types/src/components/BunnyProvider/BunnyProvider.d.ts +2 -1
  6. package/dist/cjs/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +2 -0
  7. package/dist/cjs/types/src/components/Invoice/Invoice.stories.d.ts +1 -1
  8. package/dist/cjs/types/src/components/Quote/Quote.stories.d.ts +1 -1
  9. package/dist/cjs/types/src/components/Quotes/Quotes.stories.d.ts +1 -1
  10. package/dist/cjs/types/src/components/Signup/Signup.stories.d.ts +1 -2
  11. package/dist/cjs/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +1 -1
  12. package/dist/cjs/types/src/components/Subscriptions/Subscriptions.stories.d.ts +1 -1
  13. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +2 -1
  14. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +9 -0
  15. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +6 -0
  16. package/dist/cjs/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +12 -0
  17. package/dist/cjs/types/src/components/Transactions/Transactions.stories.d.ts +1 -1
  18. package/dist/cjs/types/src/hooks/useAllErrorFormats.d.ts +2 -1
  19. package/dist/esm/index.js +100 -30992
  20. package/dist/esm/types/src/components/BillingDetails/BillingDetails.d.ts +2 -5
  21. package/dist/esm/types/src/components/BillingDetails/BillingDetails.stories.d.ts +2 -4
  22. package/dist/esm/types/src/components/BunnyProvider/BunnyProvider.d.ts +2 -1
  23. package/dist/esm/types/src/components/BunnyProvider/contexts/BunnyProviderCallbacksProvider.d.ts +2 -0
  24. package/dist/esm/types/src/components/Invoice/Invoice.stories.d.ts +1 -1
  25. package/dist/esm/types/src/components/Quote/Quote.stories.d.ts +1 -1
  26. package/dist/esm/types/src/components/Quotes/Quotes.stories.d.ts +1 -1
  27. package/dist/esm/types/src/components/Signup/Signup.stories.d.ts +1 -2
  28. package/dist/esm/types/src/components/Signup/hooks/useSignupQuoteQueryData.d.ts +1 -1
  29. package/dist/esm/types/src/components/Subscriptions/Subscriptions.stories.d.ts +1 -1
  30. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/GridTemplateColumnsWrapper.d.ts +2 -1
  31. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureGroup.d.ts +9 -0
  32. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/PlanFeatures/components/FeatureTitle.d.ts +6 -0
  33. package/dist/esm/types/src/components/Subscriptions/Upgrade/Upgrade.stories.d.ts +12 -0
  34. package/dist/esm/types/src/components/Transactions/Transactions.stories.d.ts +1 -1
  35. package/dist/esm/types/src/hooks/useAllErrorFormats.d.ts +2 -1
  36. package/dist/index.d.ts +4 -5
  37. package/package.json +16 -13
  38. package/dist/cjs/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/{PlanFeatures.d.ts → PlanFeatures/PlanFeatures.d.ts} +1 -1
  39. package/dist/esm/types/src/components/Subscriptions/Upgrade/PlanPicker/planPickerDesktop/{PlanFeatures.d.ts → PlanFeatures/PlanFeatures.d.ts} +1 -1
package/README.md CHANGED
@@ -146,6 +146,57 @@ setFruitQueryData('123', { id: '123', name: 'Apple' });
146
146
 
147
147
  For a more complete example in the codebase, see the `useSetQuoteQueryData` hook in the `quantityChangeDrawer` module.
148
148
 
149
+ ### Styling components
150
+
151
+ Components are styled through two complementary layers:
152
+
153
+ 1. **Ant Design tokens** — for properties that drive antd primitives (Button, Input, Card, etc.). Set globally or per-component via `ConfigProvider`. See antd's [Customize Theme docs](https://ant.design/docs/react/customize-theme) for the full token reference.
154
+ 2. **Bunny CSS classes** — custom surfaces (e.g. PlanPicker, PlanFeatures, PriceListCard) expose stable class names you can target with plain CSS.
155
+
156
+ #### Antd tokens
157
+
158
+ ```tsx
159
+ import { ConfigProvider } from 'antd';
160
+
161
+ <ConfigProvider
162
+ theme={{
163
+ token: { colorPrimary: '#9B59B6', borderRadius: 16 },
164
+ components: {
165
+ Button: { defaultBorderColor: '#FF8C00' },
166
+ },
167
+ }}
168
+ >
169
+ <Upgrade ... />
170
+ </ConfigProvider>
171
+ ```
172
+
173
+ #### Bunny CSS classes
174
+
175
+ No special API — just target the class with plain CSS. Defaults live in `src/styles/*-tokens.less`.
176
+
177
+ ```css
178
+ .bunny-feature-group {
179
+ background-color: #00E5FF;
180
+ border-radius: 24px;
181
+ }
182
+
183
+ .bunny-price-list-card-price-description {
184
+ color: #E91E63;
185
+ font-weight: 700;
186
+ }
187
+ ```
188
+
189
+ Currently exposed for the Upgrade component:
190
+
191
+ - `.bunny-feature-group` — feature-list group surface
192
+ - `.bunny-plan-features-feature-title-group` — group title text
193
+ - `.bunny-plan-picker-grid-cell-divider` — divider between plan columns
194
+ - `.bunny-plan-picker-price-list-cards` — price-list cards surface
195
+ - `.bunny-plan-picker-checkout-bar` — checkout bar surface
196
+ - `.bunny-price-list-card-price-description` — price description text
197
+
198
+ For a live example combining both layers, see the `PrideTheme` story in `Upgrade.stories.tsx`.
199
+
149
200
  ### Deprecating @bunnyapp/common
150
201
 
151
202
  We are gradually deprecating `@bunnyapp/common` and moving types and enums locally to this repository. When something is moved from `@bunnyapp/common`, follow this pattern: