@redhq/ui 2.1.0 → 3.0.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.
Files changed (181) hide show
  1. package/dist/App.d.ts +2 -0
  2. package/dist/components/base/Button/Button.d.ts +28 -0
  3. package/dist/components/base/Button/index.d.ts +1 -0
  4. package/dist/components/base/Button/styles.d.ts +51 -0
  5. package/dist/components/base/Card/Card.d.ts +38 -0
  6. package/dist/components/base/Card/CardAddress.d.ts +14 -0
  7. package/dist/components/base/Card/CardAddressWrapper.d.ts +14 -0
  8. package/dist/components/base/Card/CardBase.d.ts +14 -0
  9. package/dist/components/base/Card/CardContext.d.ts +3 -0
  10. package/dist/components/base/Card/CardDetails.d.ts +14 -0
  11. package/dist/components/base/Card/CardDetailsWrapper.d.ts +14 -0
  12. package/dist/components/base/Card/CardFeature.d.ts +20 -0
  13. package/dist/components/base/Card/CardFeatures.d.ts +14 -0
  14. package/dist/components/base/Card/CardImage.d.ts +16 -0
  15. package/dist/components/base/Card/CardImageWrapper.d.ts +16 -0
  16. package/dist/components/base/Card/CardProvider.d.ts +4 -0
  17. package/dist/components/base/Card/CardStat.d.ts +14 -0
  18. package/dist/components/base/Card/CardStats.d.ts +14 -0
  19. package/dist/components/base/Card/CardSuburb.d.ts +14 -0
  20. package/dist/components/base/Card/CardTag.d.ts +14 -0
  21. package/dist/components/base/Card/index.d.ts +1 -0
  22. package/dist/components/base/Image.d.ts +5 -0
  23. package/dist/components/base/index.d.ts +2 -0
  24. package/dist/components/digital/Cover/Cover.d.ts +21 -0
  25. package/dist/components/digital/Cover/CoverBase.d.ts +14 -0
  26. package/dist/components/digital/Cover/CoverContext.d.ts +3 -0
  27. package/dist/components/digital/Cover/CoverImage.d.ts +16 -0
  28. package/dist/components/digital/Cover/CoverOverlay.d.ts +16 -0
  29. package/dist/components/digital/Cover/CoverOverlayContainer.d.ts +14 -0
  30. package/dist/components/digital/Cover/CoverProvider.d.ts +4 -0
  31. package/dist/components/digital/Cover/CoverTitle.d.ts +14 -0
  32. package/dist/components/digital/Cover/index.d.ts +1 -0
  33. package/dist/components/digital/Drawer/Drawer.d.ts +27 -0
  34. package/dist/components/digital/Drawer/DrawerBase.d.ts +18 -0
  35. package/dist/components/digital/Drawer/DrawerClose.d.ts +16 -0
  36. package/dist/components/digital/Drawer/DrawerContext.d.ts +4 -0
  37. package/dist/components/digital/Drawer/DrawerItem.d.ts +18 -0
  38. package/dist/components/digital/Drawer/DrawerLogo.d.ts +16 -0
  39. package/dist/components/digital/Drawer/DrawerLogoWrapper.d.ts +14 -0
  40. package/dist/components/digital/Drawer/DrawerMenu.d.ts +14 -0
  41. package/dist/components/digital/Drawer/DrawerOverlay.d.ts +16 -0
  42. package/dist/components/digital/Drawer/DrawerProvider.d.ts +5 -0
  43. package/dist/components/digital/Drawer/index.d.ts +1 -0
  44. package/dist/components/digital/Header/Header.d.ts +21 -0
  45. package/dist/components/digital/Header/HeaderBase.d.ts +16 -0
  46. package/dist/components/digital/Header/HeaderBurgerMenu.d.ts +16 -0
  47. package/dist/components/digital/Header/HeaderContext.d.ts +5 -0
  48. package/dist/components/digital/Header/HeaderItem.d.ts +18 -0
  49. package/dist/components/digital/Header/HeaderLogo.d.ts +16 -0
  50. package/dist/components/digital/Header/HeaderMenu.d.ts +14 -0
  51. package/dist/components/digital/Header/HeaderProvider.d.ts +4 -0
  52. package/dist/components/digital/Header/index.d.ts +1 -0
  53. package/dist/components/digital/NextSteps/NextSteps.d.ts +21 -0
  54. package/dist/components/digital/NextSteps/NextStepsBase.d.ts +14 -0
  55. package/dist/components/digital/NextSteps/NextStepsContainer.d.ts +14 -0
  56. package/dist/components/digital/NextSteps/NextStepsContent.d.ts +14 -0
  57. package/dist/components/digital/NextSteps/NextStepsContext.d.ts +3 -0
  58. package/dist/components/digital/NextSteps/NextStepsCtaWrapper.d.ts +14 -0
  59. package/dist/components/digital/NextSteps/NextStepsProvider.d.ts +4 -0
  60. package/dist/components/digital/NextSteps/NextStepsTitle.d.ts +14 -0
  61. package/dist/components/digital/NextSteps/index.d.ts +1 -0
  62. package/dist/components/digital/Record/Record.d.ts +21 -0
  63. package/dist/components/digital/Record/RecordBase.d.ts +12 -0
  64. package/dist/components/digital/Record/RecordContext.d.ts +9 -0
  65. package/dist/components/digital/Record/RecordGrid.d.ts +22 -0
  66. package/dist/components/digital/Record/RecordItem.d.ts +12 -0
  67. package/dist/components/digital/Record/RecordProvider.d.ts +5 -0
  68. package/dist/components/digital/Record/RecordTitle.d.ts +14 -0
  69. package/dist/components/digital/Record/index.d.ts +1 -0
  70. package/dist/components/digital/Testimonials/Testimonials.d.ts +19 -0
  71. package/dist/components/digital/Testimonials/TestimonialsBase.d.ts +14 -0
  72. package/dist/components/digital/Testimonials/TestimonialsCarousel.d.ts +33 -0
  73. package/dist/components/digital/Testimonials/TestimonialsContainer.d.ts +15 -0
  74. package/dist/components/digital/Testimonials/TestimonialsContext.d.ts +9 -0
  75. package/dist/components/digital/Testimonials/TestimonialsProvider.d.ts +5 -0
  76. package/dist/components/digital/Testimonials/index.d.ts +1 -0
  77. package/dist/components/digital/index.d.ts +6 -0
  78. package/dist/components/index.d.ts +2 -0
  79. package/dist/compound/Banner/Banner.d.ts +17 -0
  80. package/dist/compound/Banner/BannerBase.d.ts +12 -0
  81. package/dist/compound/Banner/BannerContext.d.ts +5 -0
  82. package/dist/compound/Banner/BannerProvider.d.ts +6 -0
  83. package/dist/compound/Banner/index.d.ts +1 -0
  84. package/dist/compound/Banner/preview/PreviewBase.d.ts +12 -0
  85. package/dist/compound/Banner/print/PrintBase.d.ts +6 -0
  86. package/dist/compound/Calendar/Calendar.d.ts +45 -0
  87. package/dist/compound/Calendar/CalendarContainer.d.ts +13 -0
  88. package/dist/compound/Calendar/CalendarContext.d.ts +4 -0
  89. package/dist/compound/Calendar/CalendarFooter.d.ts +13 -0
  90. package/dist/compound/Calendar/CalendarFooterLogo.d.ts +15 -0
  91. package/dist/compound/Calendar/CalendarFooterText.d.ts +13 -0
  92. package/dist/compound/Calendar/CalendarGhostFooter.d.ts +13 -0
  93. package/dist/compound/Calendar/CalendarImage.d.ts +15 -0
  94. package/dist/compound/Calendar/CalendarPage.d.ts +25 -0
  95. package/dist/compound/Calendar/CalendarProvider.d.ts +5 -0
  96. package/dist/compound/Calendar/CalendarTable.d.ts +13 -0
  97. package/dist/compound/Calendar/CalendarTableBody.d.ts +13 -0
  98. package/dist/compound/Calendar/CalendarTableCell.d.ts +15 -0
  99. package/dist/compound/Calendar/CalendarTableCellDate.d.ts +13 -0
  100. package/dist/compound/Calendar/CalendarTableCellItem.d.ts +13 -0
  101. package/dist/compound/Calendar/CalendarTableCellText.d.ts +13 -0
  102. package/dist/compound/Calendar/CalendarTableHead.d.ts +13 -0
  103. package/dist/compound/Calendar/CalendarTableRow.d.ts +13 -0
  104. package/dist/compound/Calendar/CalendarTitle.d.ts +13 -0
  105. package/dist/compound/Calendar/index.d.ts +1 -0
  106. package/dist/compound/Cover/Cover.d.ts +35 -0
  107. package/dist/compound/Cover/CoverAddress.d.ts +13 -0
  108. package/dist/compound/Cover/CoverAgent.d.ts +13 -0
  109. package/dist/compound/Cover/CoverBase.d.ts +25 -0
  110. package/dist/compound/Cover/CoverContainer.d.ts +13 -0
  111. package/dist/compound/Cover/CoverContext.d.ts +4 -0
  112. package/dist/compound/Cover/CoverDetailsWrapper.d.ts +13 -0
  113. package/dist/compound/Cover/CoverFooter.d.ts +13 -0
  114. package/dist/compound/Cover/CoverFooterLogo.d.ts +15 -0
  115. package/dist/compound/Cover/CoverFooterText.d.ts +13 -0
  116. package/dist/compound/Cover/CoverImage.d.ts +15 -0
  117. package/dist/compound/Cover/CoverProvider.d.ts +5 -0
  118. package/dist/compound/Cover/CoverTitle.d.ts +13 -0
  119. package/dist/compound/Cover/CoverVendor.d.ts +13 -0
  120. package/dist/compound/Cover/index.d.ts +1 -0
  121. package/dist/compound/Letter/Letter.d.ts +51 -0
  122. package/dist/compound/Letter/LetterAgent.d.ts +13 -0
  123. package/dist/compound/Letter/LetterAgentEmail.d.ts +13 -0
  124. package/dist/compound/Letter/LetterAgentImage.d.ts +15 -0
  125. package/dist/compound/Letter/LetterAgentName.d.ts +13 -0
  126. package/dist/compound/Letter/LetterAgentOfficeLicense.d.ts +13 -0
  127. package/dist/compound/Letter/LetterAgentPhone.d.ts +13 -0
  128. package/dist/compound/Letter/LetterAgentWrapper.d.ts +13 -0
  129. package/dist/compound/Letter/LetterBase.d.ts +25 -0
  130. package/dist/compound/Letter/LetterBody.d.ts +13 -0
  131. package/dist/compound/Letter/LetterClosing.d.ts +13 -0
  132. package/dist/compound/Letter/LetterContainer.d.ts +13 -0
  133. package/dist/compound/Letter/LetterContent.d.ts +13 -0
  134. package/dist/compound/Letter/LetterContext.d.ts +4 -0
  135. package/dist/compound/Letter/LetterDetails.d.ts +13 -0
  136. package/dist/compound/Letter/LetterFooter.d.ts +13 -0
  137. package/dist/compound/Letter/LetterFooterLogo.d.ts +15 -0
  138. package/dist/compound/Letter/LetterFooterText.d.ts +13 -0
  139. package/dist/compound/Letter/LetterImage.d.ts +15 -0
  140. package/dist/compound/Letter/LetterProvider.d.ts +5 -0
  141. package/dist/compound/Letter/LetterSalutation.d.ts +13 -0
  142. package/dist/compound/Letter/LetterTitle.d.ts +13 -0
  143. package/dist/compound/Letter/index.d.ts +1 -0
  144. package/dist/compound/index.d.ts +3 -0
  145. package/dist/data.d.ts +145 -0
  146. package/dist/hooks/useContainerWidth.d.ts +2 -0
  147. package/dist/icons/CloseIcon.d.ts +1 -0
  148. package/dist/icons/MenuIcon.d.ts +1 -0
  149. package/dist/index.d.ts +1 -8
  150. package/dist/lib/aspectRatio.d.ts +1 -0
  151. package/dist/lib/cn.d.ts +5 -0
  152. package/dist/lib/gridCol.d.ts +1 -0
  153. package/dist/lib/pageDimensions.d.ts +46 -0
  154. package/dist/lib/unitFormatter.d.ts +1 -0
  155. package/dist/main.d.ts +1 -0
  156. package/dist/pages/BaseComponents.d.ts +1 -0
  157. package/dist/pages/Bayleys.d.ts +4 -0
  158. package/dist/pages/Coronis.d.ts +4 -0
  159. package/dist/pages/components/BayleysCarouselItem.d.ts +6 -0
  160. package/dist/pages/components/CompoundCard.d.ts +9 -0
  161. package/dist/pages/components/CoronisCarouselItem.d.ts +4 -0
  162. package/dist/pages/data.d.ts +6 -0
  163. package/dist/pagesV2/Bayleys.d.ts +4 -0
  164. package/dist/pagesV2/BayleysRural.d.ts +4 -0
  165. package/dist/pagesV2/Coronis.d.ts +4 -0
  166. package/dist/pagesV2/_components/BayleysCompoundCalendar.d.ts +7 -0
  167. package/dist/pagesV2/_components/BayleysCompoundCover.d.ts +7 -0
  168. package/dist/pagesV2/_components/BayleysCompoundLetter.d.ts +7 -0
  169. package/dist/pagesV2/_components/CoronisCompoundCover.d.ts +8 -0
  170. package/dist/pagesV2/_components/RuralCompoundCover.d.ts +7 -0
  171. package/dist/pagesV2/_components/Wrapper.d.ts +14 -0
  172. package/dist/pagesV2/data.d.ts +87 -0
  173. package/dist/pagesV2/styles.d.ts +285 -0
  174. package/dist/shared/argtypes/index.d.ts +232 -0
  175. package/dist/shared/index.d.ts +2 -0
  176. package/dist/shared/params/index.d.ts +9 -0
  177. package/dist/stories/base/Button.stories.d.ts +83 -0
  178. package/dist/stories/print/Calendar.stories.d.ts +337 -0
  179. package/dist/stories/print/Cover.stories.d.ts +186 -0
  180. package/dist/stories/print/Letter.stories.d.ts +277 -0
  181. package/package.json +19 -8
@@ -0,0 +1,277 @@
1
+ import { Letter } from '../../compound';
2
+ import { paramaters } from '../../shared';
3
+ declare namespace _default {
4
+ export let title: string;
5
+ export { Letter as component };
6
+ export let tags: string[];
7
+ export { paramaters as parameters };
8
+ export let argTypes: {
9
+ style: {
10
+ control: string;
11
+ description: string;
12
+ };
13
+ footerLogo: {
14
+ control: string;
15
+ description: string;
16
+ };
17
+ footerText: {
18
+ control: string;
19
+ description: string;
20
+ };
21
+ body: {
22
+ control: string;
23
+ description: string;
24
+ };
25
+ closing: {
26
+ control: string;
27
+ description: string;
28
+ };
29
+ agent1: {
30
+ control: string;
31
+ description: string;
32
+ table: {
33
+ type: {
34
+ summary: string;
35
+ detail: string;
36
+ };
37
+ };
38
+ };
39
+ agent2: {
40
+ control: string;
41
+ description: string;
42
+ table: {
43
+ type: {
44
+ summary: string;
45
+ detail: string;
46
+ };
47
+ };
48
+ };
49
+ agent3: {
50
+ control: string;
51
+ description: string;
52
+ table: {
53
+ type: {
54
+ summary: string;
55
+ detail: string;
56
+ };
57
+ };
58
+ };
59
+ vendor: {
60
+ control: string;
61
+ description: string;
62
+ type: {
63
+ name: string;
64
+ required: boolean;
65
+ };
66
+ };
67
+ title: {
68
+ control: string;
69
+ description: string;
70
+ type: {
71
+ name: string;
72
+ required: boolean;
73
+ };
74
+ };
75
+ alt: {
76
+ control: string;
77
+ description: string;
78
+ type: {
79
+ name: string;
80
+ required: boolean;
81
+ };
82
+ };
83
+ src: {
84
+ control: string;
85
+ description: string;
86
+ type: {
87
+ name: string;
88
+ required: boolean;
89
+ };
90
+ };
91
+ id: {
92
+ control: string;
93
+ description: string;
94
+ type: {
95
+ name: string;
96
+ required: boolean;
97
+ };
98
+ };
99
+ mode: {
100
+ control: string;
101
+ options: string[];
102
+ description: string;
103
+ };
104
+ size: {
105
+ control: {
106
+ type: string;
107
+ };
108
+ options: string[];
109
+ description: string;
110
+ };
111
+ orientation: {
112
+ control: string;
113
+ description: string;
114
+ table: {
115
+ readonly: boolean;
116
+ };
117
+ };
118
+ };
119
+ }
120
+ export default _default;
121
+ export namespace Bayleys {
122
+ let args: {
123
+ style: {
124
+ footer: {
125
+ position: "absolute";
126
+ left: number;
127
+ right: number;
128
+ bottom: number;
129
+ zIndex: number;
130
+ width: string;
131
+ height: string;
132
+ padding: string;
133
+ gap: string;
134
+ display: "flex";
135
+ flexDirection: "row";
136
+ alignItems: "center";
137
+ justifyContent: "space-between";
138
+ backgroundColor: string;
139
+ borderTop: string;
140
+ borderBottom: string;
141
+ };
142
+ footerLogo: {
143
+ width: string;
144
+ height: string;
145
+ };
146
+ footerText: {
147
+ fontSize: string;
148
+ };
149
+ agentWrapper: {
150
+ display: "flex";
151
+ flexDirection: "row";
152
+ columnGap: string;
153
+ marginTop: string;
154
+ };
155
+ agent: {
156
+ flexGrow: number;
157
+ width: string;
158
+ fontSize: string;
159
+ fontWeight: string;
160
+ fontStyle: "normal";
161
+ lineHeight: string;
162
+ };
163
+ agentName: {
164
+ color: string;
165
+ fontSize: string;
166
+ fontWeight: string;
167
+ };
168
+ agentPhone: {
169
+ marginTop: string;
170
+ };
171
+ agentEmail: {
172
+ marginTop: string;
173
+ };
174
+ agentOfficeLicense: {
175
+ fontSize: string;
176
+ fontWeight: string;
177
+ marginTop: string;
178
+ textTransform: "uppercase";
179
+ hyphens: string;
180
+ lineHeight: number;
181
+ };
182
+ agentImage: {
183
+ height: string;
184
+ width: string;
185
+ objectFit: string;
186
+ objectPosition: string;
187
+ marginTop: string;
188
+ };
189
+ content: {
190
+ width: string;
191
+ marginTop: string;
192
+ };
193
+ salutation: {
194
+ width: string;
195
+ color: string;
196
+ fontSize: string;
197
+ fontWeight: string;
198
+ fontStyle: "normal";
199
+ lineHeight: string;
200
+ };
201
+ body: {
202
+ [key: string]: import("@react-pdf/stylesheet").Style;
203
+ };
204
+ closing: {
205
+ [key: string]: import("@react-pdf/stylesheet").Style;
206
+ };
207
+ title: {
208
+ width: string;
209
+ color: string;
210
+ fontSize: string;
211
+ lineHeight: string;
212
+ fontWeight: string;
213
+ fontStyle: "normal";
214
+ };
215
+ titleBorder: {
216
+ width: string;
217
+ height: string;
218
+ backgroundColor: string;
219
+ marginTop: string;
220
+ };
221
+ page: import("@react-pdf/renderer").Styles;
222
+ image: {
223
+ height: string;
224
+ minHeight: string;
225
+ };
226
+ container: {
227
+ marginTop: string;
228
+ };
229
+ };
230
+ footerLogo: string;
231
+ footerText: string;
232
+ agent1: {
233
+ firstname: string;
234
+ lastname: string;
235
+ fullname: string;
236
+ phone: string;
237
+ email: string;
238
+ office: string;
239
+ license: string;
240
+ top5Image: string;
241
+ top10Image: string;
242
+ };
243
+ agent2: {
244
+ firstname: string;
245
+ lastname: string;
246
+ fullname: string;
247
+ phone: string;
248
+ email: string;
249
+ office: string;
250
+ license: string;
251
+ top5Image: string;
252
+ top10Image: string;
253
+ };
254
+ agent3: {
255
+ firstname: string;
256
+ lastname: string;
257
+ fullname: string;
258
+ phone: string;
259
+ email: string;
260
+ office: string;
261
+ license: string;
262
+ top5Image: string;
263
+ top10Image: string;
264
+ };
265
+ title: string;
266
+ vendor: string;
267
+ body: string;
268
+ closing: string;
269
+ alt: string;
270
+ src: string;
271
+ id: string;
272
+ mode: string;
273
+ size: string;
274
+ orientation: string;
275
+ };
276
+ function render(args: any): import("react/jsx-runtime").JSX.Element;
277
+ }
package/package.json CHANGED
@@ -1,28 +1,38 @@
1
1
  {
2
2
  "name": "@redhq/ui",
3
- "version": "2.1.0",
3
+ "version": "3.0.0",
4
4
  "private": false,
5
5
  "description": "A Storybook project for UI components",
6
6
  "type": "module",
7
- "main": "dist/index.cjs.js",
8
- "module": "dist/index.es.js",
9
- "types": "dist/index.d.ts",
10
- "style": "dist/style.css",
7
+ "main": "./dist/index.cjs.js",
8
+ "module": "./dist/index.es.js",
9
+ "types": "./dist/index.d.ts",
10
+ "style": "./dist/style.css",
11
11
  "exports": {
12
12
  ".": {
13
13
  "types": "./dist/index.d.ts",
14
14
  "import": "./dist/index.es.js",
15
- "require": "./dist/index.cjs.js"
15
+ "require": "./dist/index.cjs.js",
16
+ "default": "./dist/index.es.js"
16
17
  },
17
18
  "./styles.css": "./dist/style.css"
18
19
  },
20
+ "typesVersions": {
21
+ "*": {
22
+ "*": [
23
+ "dist/index.d.ts"
24
+ ]
25
+ }
26
+ },
19
27
  "files": [
20
28
  "dist"
21
29
  ],
22
- "sideEffects": false,
30
+ "sideEffects": [
31
+ "*.css"
32
+ ],
23
33
  "scripts": {
24
34
  "dev": "vite",
25
- "build": "vite build && shx cp src/index.d.ts dist/index.d.ts",
35
+ "build": "vite build",
26
36
  "lint": "eslint .",
27
37
  "preview": "vite preview",
28
38
  "storybook": "storybook dev -p 6006",
@@ -79,6 +89,7 @@
79
89
  "storybook": "^10.1.0",
80
90
  "tailwindcss": "^4.1.17",
81
91
  "vite": "^7.2.4",
92
+ "vite-plugin-dts": "^4.5.4",
82
93
  "vitest": "^4.0.14"
83
94
  }
84
95
  }