@feminab/box-ui 0.1.0 → 0.1.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.
Files changed (189) hide show
  1. package/.storybook/main.ts +40 -2
  2. package/README.md +59 -26
  3. package/dist/@interfaces/Badge.d.d.ts.map +1 -1
  4. package/dist/@interfaces/Button.d.d.ts.map +1 -1
  5. package/dist/@interfaces/Color.d.d.ts.map +1 -1
  6. package/dist/@interfaces/IButtonItem.d.d.ts.map +1 -1
  7. package/dist/@interfaces/ISubNavItem.d.d.ts.map +1 -1
  8. package/dist/@interfaces/MobileNavProps.d.d.ts.map +1 -1
  9. package/dist/@interfaces/NavItem.d.d.ts.map +1 -1
  10. package/dist/@interfaces/Pagination.d.d.ts.map +1 -1
  11. package/dist/@interfaces/Select.d.d.ts.map +1 -1
  12. package/dist/@interfaces/SideNavProps.d.d.ts.map +1 -1
  13. package/dist/@interfaces/TextInput.d.d.ts.map +1 -1
  14. package/dist/@interfaces/index.d.ts.map +1 -1
  15. package/dist/Badge.d.ts.map +1 -1
  16. package/dist/Button.d.ts.map +1 -1
  17. package/dist/ButtonGroup.d.ts.map +1 -1
  18. package/dist/ColorBox.d.ts.map +1 -1
  19. package/dist/Header.d.ts.map +1 -1
  20. package/dist/Nav/MobileNav.d.ts.map +1 -1
  21. package/dist/Nav/NavItem.d.ts.map +1 -1
  22. package/dist/Nav/SideNav.d.ts.map +1 -1
  23. package/dist/Nav/SubNavItem.d.ts.map +1 -1
  24. package/dist/Paginate.d.ts.map +1 -1
  25. package/dist/Select.d.ts.map +1 -1
  26. package/dist/StoryLayout.d.ts.map +1 -1
  27. package/dist/TextInput.d.ts.map +1 -1
  28. package/dist/Typography.d.ts.map +1 -1
  29. package/dist/box-ui.cjs.development.js +17 -11
  30. package/dist/box-ui.cjs.development.js.map +1 -1
  31. package/dist/box-ui.cjs.production.min.js +1 -1
  32. package/dist/box-ui.cjs.production.min.js.map +1 -1
  33. package/dist/box-ui.esm.js +17 -11
  34. package/dist/box-ui.esm.js.map +1 -1
  35. package/dist/data/colors.d.ts.map +1 -1
  36. package/dist/data/countries.d.ts.map +1 -1
  37. package/dist/data/images/index.d.ts.map +1 -1
  38. package/dist/data/index.d.ts.map +1 -1
  39. package/dist/data/navItems.d.ts.map +1 -1
  40. package/dist/data/options.d.ts.map +1 -1
  41. package/dist/data/prices.d.ts.map +1 -1
  42. package/dist/hooks/useIconClassName.d.ts.map +1 -1
  43. package/dist/hooks/useIconProps.d.ts.map +1 -1
  44. package/dist/index.d.ts.map +1 -1
  45. package/dist/jest.config.d.ts +9 -0
  46. package/dist/jest.config.d.ts.map +1 -0
  47. package/dist/reportWebVitals.d.ts.map +1 -1
  48. package/dist/setupTests.d.ts.map +1 -1
  49. package/dist/stories/Badge.stories.d.ts +3 -4
  50. package/dist/stories/Badge.stories.d.ts.map +1 -1
  51. package/dist/stories/Button.stories.d.ts +3 -4
  52. package/dist/stories/Button.stories.d.ts.map +1 -1
  53. package/dist/stories/ButtonGroup.stories.d.ts +4 -4
  54. package/dist/stories/ButtonGroup.stories.d.ts.map +1 -1
  55. package/dist/stories/Colors.stories.d.ts +3 -3
  56. package/dist/stories/Colors.stories.d.ts.map +1 -1
  57. package/dist/stories/MobileNav.stories.d.ts +3 -4
  58. package/dist/stories/MobileNav.stories.d.ts.map +1 -1
  59. package/dist/stories/Paginate.stories.d.ts +3 -4
  60. package/dist/stories/Paginate.stories.d.ts.map +1 -1
  61. package/dist/stories/Select.stories.d.ts +3 -4
  62. package/dist/stories/Select.stories.d.ts.map +1 -1
  63. package/dist/stories/SideNav.stories.d.ts +3 -4
  64. package/dist/stories/SideNav.stories.d.ts.map +1 -1
  65. package/dist/stories/TextInput.stories.d.ts +3 -4
  66. package/dist/stories/TextInput.stories.d.ts.map +1 -1
  67. package/dist/stories/Typography.stories.d.ts +4 -4
  68. package/dist/stories/Typography.stories.d.ts.map +1 -1
  69. package/dist/utils/IconWrapper.d.ts +8 -0
  70. package/dist/utils/IconWrapper.d.ts.map +1 -0
  71. package/jest.config.js +13 -0
  72. package/jest.setup.ts +3 -0
  73. package/netlify.toml +3 -0
  74. package/package.json +25 -26
  75. package/src/Nav/MobileNav.tsx +2 -0
  76. package/src/Nav/SideNav.tsx +1 -0
  77. package/src/Paginate.tsx +2 -0
  78. package/src/Select.tsx +1 -1
  79. package/src/TextInput.tsx +23 -27
  80. package/src/index.js +1 -1
  81. package/src/stories/Badge.stories.tsx +6 -8
  82. package/src/stories/Button.stories.tsx +21 -8
  83. package/src/stories/ButtonGroup.stories.tsx +48 -48
  84. package/src/stories/Colors.stories.tsx +2 -4
  85. package/src/stories/MobileNav.stories.tsx +29 -19
  86. package/src/stories/Paginate.stories.tsx +36 -35
  87. package/src/stories/Select.stories.tsx +46 -43
  88. package/src/stories/SideNav.stories.tsx +18 -19
  89. package/src/stories/TextInput.stories.tsx +81 -71
  90. package/src/stories/Typography.stories.tsx +2 -4
  91. package/src/styles/global.css +1 -181
  92. package/src/tests/Badge.test.tsx +48 -0
  93. package/src/tests/Button.test.tsx +69 -0
  94. package/src/tests/ButtonGroup.test.tsx +51 -0
  95. package/src/tests/MobileNav.test.tsx +66 -0
  96. package/src/tests/Paginate.test.tsx +86 -0
  97. package/src/tests/Select.test.tsx +63 -0
  98. package/src/tests/SideNav.test.tsx +43 -0
  99. package/src/tests/TextInput.test.tsx +42 -0
  100. package/src/tests/Typography.test.tsx +41 -0
  101. package/src/tests/__snapshots__/Badge.test.tsx.snap +13 -0
  102. package/src/tests/__snapshots__/Button.test.tsx.snap +106 -0
  103. package/src/tests/__snapshots__/ButtonGroup.test.tsx.snap +228 -0
  104. package/src/tests/__snapshots__/Paginate.test.tsx.snap +580 -0
  105. package/src/tests/__snapshots__/Select.test.tsx.snap +119 -0
  106. package/src/tests/__snapshots__/TextInput.test.tsx.snap +323 -0
  107. package/src/utils/IconWrapper.tsx +11 -0
  108. package/storybook-static/{125.65b26339.iframe.bundle.js → 125.df7cc93e.iframe.bundle.js} +3 -3
  109. package/storybook-static/125.df7cc93e.iframe.bundle.js.map +1 -0
  110. package/storybook-static/13.d4c3993e.iframe.bundle.js +2 -0
  111. package/storybook-static/161.f5193502.iframe.bundle.js +2 -0
  112. package/storybook-static/167.89fa6ac2.iframe.bundle.js +1 -0
  113. package/storybook-static/294.eccdc80d.iframe.bundle.js +1 -0
  114. package/storybook-static/314.c9f9245e.iframe.bundle.js +2 -0
  115. package/storybook-static/364.1cfcaebe.iframe.bundle.js +1 -0
  116. package/storybook-static/735.c396ee77.iframe.bundle.js +2 -0
  117. package/storybook-static/742.52c662a4.iframe.bundle.js +1 -0
  118. package/storybook-static/{844.aec20bdb.iframe.bundle.js → 844.3bb89aad.iframe.bundle.js} +3 -3
  119. package/storybook-static/844.3bb89aad.iframe.bundle.js.map +1 -0
  120. package/storybook-static/936.c827da74.iframe.bundle.js +1 -0
  121. package/storybook-static/961.c3df469f.iframe.bundle.js +2 -0
  122. package/storybook-static/iframe.html +3 -3
  123. package/storybook-static/main.179173d1.iframe.bundle.js +1 -0
  124. package/storybook-static/project.json +1 -1
  125. package/storybook-static/{runtime~main.295ddda4.iframe.bundle.js → runtime~main.70344601.iframe.bundle.js} +1 -1
  126. package/storybook-static/static/css/main.08036cd2.css.map +1 -1
  127. package/storybook-static/stories-Badge-stories.a924d6d5.iframe.bundle.js +1 -0
  128. package/storybook-static/stories-Button-stories.a3c88a14.iframe.bundle.js +1 -0
  129. package/storybook-static/stories-ButtonGroup-stories.2c74e4c4.iframe.bundle.js +1 -0
  130. package/storybook-static/stories-Colors-stories.424256b4.iframe.bundle.js +2 -0
  131. package/storybook-static/stories-Configure-mdx.46ebbf59.iframe.bundle.js +1 -0
  132. package/storybook-static/stories-Header-stories.df09e844.iframe.bundle.js +2 -0
  133. package/storybook-static/stories-MobileNav-stories.eb9a0ca6.iframe.bundle.js +1 -0
  134. package/storybook-static/stories-Page-stories.ab66c885.iframe.bundle.js +2 -0
  135. package/storybook-static/stories-Paginate-stories.086f736a.iframe.bundle.js +1 -0
  136. package/storybook-static/stories-Select-stories.4c04edb3.iframe.bundle.js +1 -0
  137. package/storybook-static/stories-SideNav-stories.272a4362.iframe.bundle.js +1 -0
  138. package/storybook-static/stories-TextInput-stories.cfa81131.iframe.bundle.js +1 -0
  139. package/storybook-static/stories-Typography-stories.a31da7ce.iframe.bundle.js +2 -0
  140. package/tailwind.config.js +1 -1
  141. package/tsconfig.json +6 -3
  142. package/tsdx.config.js +14 -0
  143. package/dist/Page.d.ts +0 -3
  144. package/dist/Page.d.ts.map +0 -1
  145. package/dist/stories/Header.stories.d.ts +0 -20
  146. package/dist/stories/Header.stories.d.ts.map +0 -1
  147. package/dist/stories/Page.stories.d.ts +0 -14
  148. package/dist/stories/Page.stories.d.ts.map +0 -1
  149. package/src/Page.tsx +0 -72
  150. package/src/stories/Configure.mdx +0 -364
  151. package/src/stories/Header.stories.ts +0 -33
  152. package/src/stories/Page.stories.ts +0 -32
  153. package/storybook-static/125.65b26339.iframe.bundle.js.map +0 -1
  154. package/storybook-static/13.0638081a.iframe.bundle.js +0 -2
  155. package/storybook-static/161.a19908ac.iframe.bundle.js +0 -2
  156. package/storybook-static/167.3fa3a909.iframe.bundle.js +0 -1
  157. package/storybook-static/294.ce38f65c.iframe.bundle.js +0 -1
  158. package/storybook-static/314.568bd9af.iframe.bundle.js +0 -2
  159. package/storybook-static/364.0b18ef67.iframe.bundle.js +0 -1
  160. package/storybook-static/735.1625d9f4.iframe.bundle.js +0 -2
  161. package/storybook-static/742.597501f6.iframe.bundle.js +0 -1
  162. package/storybook-static/844.aec20bdb.iframe.bundle.js.map +0 -1
  163. package/storybook-static/936.fd850a3f.iframe.bundle.js +0 -1
  164. package/storybook-static/961.0e5457c5.iframe.bundle.js +0 -2
  165. package/storybook-static/main.069281cf.iframe.bundle.js +0 -1
  166. package/storybook-static/stories-Badge-stories.484f7206.iframe.bundle.js +0 -1
  167. package/storybook-static/stories-Button-stories.5e29be85.iframe.bundle.js +0 -1
  168. package/storybook-static/stories-ButtonGroup-stories.cc89968c.iframe.bundle.js +0 -1
  169. package/storybook-static/stories-Colors-stories.f892dc75.iframe.bundle.js +0 -2
  170. package/storybook-static/stories-Configure-mdx.81346d97.iframe.bundle.js +0 -1
  171. package/storybook-static/stories-Header-stories.cf691094.iframe.bundle.js +0 -2
  172. package/storybook-static/stories-MobileNav-stories.f04cccdd.iframe.bundle.js +0 -1
  173. package/storybook-static/stories-Page-stories.0c9aa29d.iframe.bundle.js +0 -2
  174. package/storybook-static/stories-Paginate-stories.3b161781.iframe.bundle.js +0 -1
  175. package/storybook-static/stories-Select-stories.7556ae0d.iframe.bundle.js +0 -1
  176. package/storybook-static/stories-SideNav-stories.093fac6a.iframe.bundle.js +0 -1
  177. package/storybook-static/stories-TextInput-stories.6d3e15c6.iframe.bundle.js +0 -1
  178. package/storybook-static/stories-Typography-stories.6640f7ac.iframe.bundle.js +0 -2
  179. /package/storybook-static/{125.65b26339.iframe.bundle.js.LICENSE.txt → 125.df7cc93e.iframe.bundle.js.LICENSE.txt} +0 -0
  180. /package/storybook-static/{13.0638081a.iframe.bundle.js.LICENSE.txt → 13.d4c3993e.iframe.bundle.js.LICENSE.txt} +0 -0
  181. /package/storybook-static/{161.a19908ac.iframe.bundle.js.LICENSE.txt → 161.f5193502.iframe.bundle.js.LICENSE.txt} +0 -0
  182. /package/storybook-static/{314.568bd9af.iframe.bundle.js.LICENSE.txt → 314.c9f9245e.iframe.bundle.js.LICENSE.txt} +0 -0
  183. /package/storybook-static/{735.1625d9f4.iframe.bundle.js.LICENSE.txt → 735.c396ee77.iframe.bundle.js.LICENSE.txt} +0 -0
  184. /package/storybook-static/{844.aec20bdb.iframe.bundle.js.LICENSE.txt → 844.3bb89aad.iframe.bundle.js.LICENSE.txt} +0 -0
  185. /package/storybook-static/{961.0e5457c5.iframe.bundle.js.LICENSE.txt → 961.c3df469f.iframe.bundle.js.LICENSE.txt} +0 -0
  186. /package/storybook-static/{stories-Colors-stories.f892dc75.iframe.bundle.js.LICENSE.txt → stories-Colors-stories.424256b4.iframe.bundle.js.LICENSE.txt} +0 -0
  187. /package/storybook-static/{stories-Header-stories.cf691094.iframe.bundle.js.LICENSE.txt → stories-Header-stories.df09e844.iframe.bundle.js.LICENSE.txt} +0 -0
  188. /package/storybook-static/{stories-Page-stories.0c9aa29d.iframe.bundle.js.LICENSE.txt → stories-Page-stories.ab66c885.iframe.bundle.js.LICENSE.txt} +0 -0
  189. /package/storybook-static/{stories-Typography-stories.6640f7ac.iframe.bundle.js.LICENSE.txt → stories-Typography-stories.a31da7ce.iframe.bundle.js.LICENSE.txt} +0 -0
@@ -0,0 +1,580 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`📘 Pagination Storybook Stories renders DesktopPagination component 1`] = `
4
+ <div>
5
+ <div
6
+ class="-m-4"
7
+ >
8
+ <div
9
+ class="p-4"
10
+ >
11
+ <div
12
+ class="flex w-full items-center h-10 text-sm select-none"
13
+ >
14
+ <button
15
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none opacity-50"
16
+ disabled=""
17
+ tabindex="-1"
18
+ >
19
+ <svg
20
+ class="mr-3"
21
+ fill="none"
22
+ height="20"
23
+ stroke="currentColor"
24
+ stroke-linecap="round"
25
+ stroke-linejoin="round"
26
+ stroke-width="2"
27
+ viewBox="0 0 24 24"
28
+ width="20"
29
+ xmlns="http://www.w3.org/2000/svg"
30
+ >
31
+ <line
32
+ x1="19"
33
+ x2="5"
34
+ y1="12"
35
+ y2="12"
36
+ />
37
+ <polyline
38
+ points="12 19 5 12 12 5"
39
+ />
40
+ </svg>
41
+ Previous
42
+ </button>
43
+ <div
44
+ class="flex items-center justify-center flex-grow list-none"
45
+ >
46
+ <li>
47
+ <a
48
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium bg-primary-50 dark:bg-opacity-0 text-primary-600 dark:text-white"
49
+ tabindex="0"
50
+ >
51
+ 1
52
+ </a>
53
+ </li>
54
+ <li>
55
+ <a
56
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
57
+ tabindex="0"
58
+ >
59
+ 2
60
+ </a>
61
+ </li>
62
+ <li>
63
+ <a
64
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
65
+ tabindex="0"
66
+ >
67
+ 3
68
+ </a>
69
+ </li>
70
+ <li>
71
+ <a
72
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
73
+ tabindex="0"
74
+ >
75
+ 4
76
+ </a>
77
+ </li>
78
+ <li>
79
+ <a
80
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
81
+ tabindex="0"
82
+ >
83
+ 5
84
+ </a>
85
+ </li>
86
+ <li
87
+ class="w-10 px-0.5 text-center dark:text-gray-500"
88
+ >
89
+ ...
90
+ </li>
91
+ <li>
92
+ <a
93
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
94
+ tabindex="0"
95
+ >
96
+ 9
97
+ </a>
98
+ </li>
99
+ <li>
100
+ <a
101
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
102
+ tabindex="0"
103
+ >
104
+ 10
105
+ </a>
106
+ </li>
107
+ </div>
108
+ <button
109
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
110
+ tabindex="0"
111
+ >
112
+ Next
113
+ <svg
114
+ class="ml-3"
115
+ fill="none"
116
+ height="20"
117
+ stroke="currentColor"
118
+ stroke-linecap="round"
119
+ stroke-linejoin="round"
120
+ stroke-width="2"
121
+ viewBox="0 0 24 24"
122
+ width="20"
123
+ xmlns="http://www.w3.org/2000/svg"
124
+ >
125
+ <line
126
+ x1="5"
127
+ x2="19"
128
+ y1="12"
129
+ y2="12"
130
+ />
131
+ <polyline
132
+ points="12 5 19 12 12 19"
133
+ />
134
+ </svg>
135
+ </button>
136
+ </div>
137
+ </div>
138
+ </div>
139
+ </div>
140
+ `;
141
+
142
+ exports[`📘 Pagination Storybook Stories renders DesktopPagination in dark mode 1`] = `
143
+ <div>
144
+ <div
145
+ class="dark bg-gray-900 -m-4"
146
+ >
147
+ <div
148
+ class="p-4"
149
+ >
150
+ <div
151
+ class="flex w-full items-center h-10 text-sm select-none"
152
+ >
153
+ <button
154
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none opacity-50"
155
+ disabled=""
156
+ tabindex="-1"
157
+ >
158
+ <svg
159
+ class="mr-3"
160
+ fill="none"
161
+ height="20"
162
+ stroke="currentColor"
163
+ stroke-linecap="round"
164
+ stroke-linejoin="round"
165
+ stroke-width="2"
166
+ viewBox="0 0 24 24"
167
+ width="20"
168
+ xmlns="http://www.w3.org/2000/svg"
169
+ >
170
+ <line
171
+ x1="19"
172
+ x2="5"
173
+ y1="12"
174
+ y2="12"
175
+ />
176
+ <polyline
177
+ points="12 19 5 12 12 5"
178
+ />
179
+ </svg>
180
+ Previous
181
+ </button>
182
+ <div
183
+ class="flex items-center justify-center flex-grow list-none"
184
+ >
185
+ <li>
186
+ <a
187
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium bg-primary-50 dark:bg-opacity-0 text-primary-600 dark:text-white"
188
+ tabindex="0"
189
+ >
190
+ 1
191
+ </a>
192
+ </li>
193
+ <li>
194
+ <a
195
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
196
+ tabindex="0"
197
+ >
198
+ 2
199
+ </a>
200
+ </li>
201
+ <li>
202
+ <a
203
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
204
+ tabindex="0"
205
+ >
206
+ 3
207
+ </a>
208
+ </li>
209
+ <li>
210
+ <a
211
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
212
+ tabindex="0"
213
+ >
214
+ 4
215
+ </a>
216
+ </li>
217
+ <li>
218
+ <a
219
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
220
+ tabindex="0"
221
+ >
222
+ 5
223
+ </a>
224
+ </li>
225
+ </div>
226
+ <button
227
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
228
+ tabindex="0"
229
+ >
230
+ Next
231
+ <svg
232
+ class="ml-3"
233
+ fill="none"
234
+ height="20"
235
+ stroke="currentColor"
236
+ stroke-linecap="round"
237
+ stroke-linejoin="round"
238
+ stroke-width="2"
239
+ viewBox="0 0 24 24"
240
+ width="20"
241
+ xmlns="http://www.w3.org/2000/svg"
242
+ >
243
+ <line
244
+ x1="5"
245
+ x2="19"
246
+ y1="12"
247
+ y2="12"
248
+ />
249
+ <polyline
250
+ points="12 5 19 12 12 19"
251
+ />
252
+ </svg>
253
+ </button>
254
+ </div>
255
+ </div>
256
+ </div>
257
+ </div>
258
+ `;
259
+
260
+ exports[`📘 Pagination Storybook Stories renders DesktopPagination with total pages 1`] = `
261
+ <div>
262
+ <div
263
+ class="-m-4"
264
+ >
265
+ <div
266
+ class="p-4"
267
+ >
268
+ <div
269
+ class="flex w-full items-center h-10 text-sm select-none"
270
+ >
271
+ <button
272
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none opacity-50"
273
+ disabled=""
274
+ tabindex="-1"
275
+ >
276
+ <svg
277
+ class="mr-3"
278
+ fill="none"
279
+ height="20"
280
+ stroke="currentColor"
281
+ stroke-linecap="round"
282
+ stroke-linejoin="round"
283
+ stroke-width="2"
284
+ viewBox="0 0 24 24"
285
+ width="20"
286
+ xmlns="http://www.w3.org/2000/svg"
287
+ >
288
+ <line
289
+ x1="19"
290
+ x2="5"
291
+ y1="12"
292
+ y2="12"
293
+ />
294
+ <polyline
295
+ points="12 19 5 12 12 5"
296
+ />
297
+ </svg>
298
+ Previous
299
+ </button>
300
+ <div
301
+ class="flex items-center justify-center flex-grow list-none"
302
+ >
303
+ <li>
304
+ <a
305
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium bg-primary-50 dark:bg-opacity-0 text-primary-600 dark:text-white"
306
+ tabindex="0"
307
+ >
308
+ 1
309
+ </a>
310
+ </li>
311
+ <li>
312
+ <a
313
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
314
+ tabindex="0"
315
+ >
316
+ 2
317
+ </a>
318
+ </li>
319
+ <li>
320
+ <a
321
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
322
+ tabindex="0"
323
+ >
324
+ 3
325
+ </a>
326
+ </li>
327
+ <li>
328
+ <a
329
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
330
+ tabindex="0"
331
+ >
332
+ 4
333
+ </a>
334
+ </li>
335
+ <li>
336
+ <a
337
+ class="flex items-center justify-center h-10 w-10 rounded-full cursor-pointer font-medium text-gray-500"
338
+ tabindex="0"
339
+ >
340
+ 5
341
+ </a>
342
+ </li>
343
+ </div>
344
+ <button
345
+ class="h-10 font-medium flex items-center mr-2 text-gray-500 dark:text-white hover:text-gray-600 dark:hover:text-gray-200 focus:outline-none cursor-pointer"
346
+ tabindex="0"
347
+ >
348
+ Next
349
+ <svg
350
+ class="ml-3"
351
+ fill="none"
352
+ height="20"
353
+ stroke="currentColor"
354
+ stroke-linecap="round"
355
+ stroke-linejoin="round"
356
+ stroke-width="2"
357
+ viewBox="0 0 24 24"
358
+ width="20"
359
+ xmlns="http://www.w3.org/2000/svg"
360
+ >
361
+ <line
362
+ x1="5"
363
+ x2="19"
364
+ y1="12"
365
+ y2="12"
366
+ />
367
+ <polyline
368
+ points="12 5 19 12 12 19"
369
+ />
370
+ </svg>
371
+ </button>
372
+ </div>
373
+ </div>
374
+ </div>
375
+ </div>
376
+ `;
377
+
378
+ exports[`📘 Pagination Storybook Stories renders MobilePagination component 1`] = `
379
+ <div>
380
+ <div
381
+ class="-m-4"
382
+ >
383
+ <div
384
+ class="p-4"
385
+ >
386
+ <div
387
+ class="flex w-full h-10 items-center"
388
+ >
389
+ <svg
390
+ class="mr-3 text-gray-500 dark:text-white opacity-50"
391
+ data-testid="prevBtn"
392
+ fill="none"
393
+ height="20"
394
+ stroke="currentColor"
395
+ stroke-linecap="round"
396
+ stroke-linejoin="round"
397
+ stroke-width="2"
398
+ viewBox="0 0 24 24"
399
+ width="20"
400
+ xmlns="http://www.w3.org/2000/svg"
401
+ >
402
+ <line
403
+ x1="19"
404
+ x2="5"
405
+ y1="12"
406
+ y2="12"
407
+ />
408
+ <polyline
409
+ points="12 19 5 12 12 5"
410
+ />
411
+ </svg>
412
+ <div
413
+ class="flex justify-center flex-grow text-sm text-gray-700 select-none dark:text-white"
414
+ >
415
+ Page 0 of 10
416
+ </div>
417
+ <svg
418
+ class="ml-3 text-gray-500 dark:text-white cursor-pointer"
419
+ data-testid="nextBtn"
420
+ fill="none"
421
+ height="20"
422
+ stroke="currentColor"
423
+ stroke-linecap="round"
424
+ stroke-linejoin="round"
425
+ stroke-width="2"
426
+ viewBox="0 0 24 24"
427
+ width="20"
428
+ xmlns="http://www.w3.org/2000/svg"
429
+ >
430
+ <line
431
+ x1="5"
432
+ x2="19"
433
+ y1="12"
434
+ y2="12"
435
+ />
436
+ <polyline
437
+ points="12 5 19 12 12 19"
438
+ />
439
+ </svg>
440
+ </div>
441
+ </div>
442
+ </div>
443
+ </div>
444
+ `;
445
+
446
+ exports[`📘 Pagination Storybook Stories renders MobilePagination in dark mode 1`] = `
447
+ <div>
448
+ <div
449
+ class="dark bg-gray-900 -m-4"
450
+ >
451
+ <div
452
+ class="p-4"
453
+ >
454
+ <div
455
+ class="flex w-full h-10 items-center"
456
+ >
457
+ <svg
458
+ class="mr-3 text-gray-500 dark:text-white opacity-50"
459
+ data-testid="prevBtn"
460
+ fill="none"
461
+ height="20"
462
+ stroke="currentColor"
463
+ stroke-linecap="round"
464
+ stroke-linejoin="round"
465
+ stroke-width="2"
466
+ viewBox="0 0 24 24"
467
+ width="20"
468
+ xmlns="http://www.w3.org/2000/svg"
469
+ >
470
+ <line
471
+ x1="19"
472
+ x2="5"
473
+ y1="12"
474
+ y2="12"
475
+ />
476
+ <polyline
477
+ points="12 19 5 12 12 5"
478
+ />
479
+ </svg>
480
+ <div
481
+ class="flex justify-center flex-grow text-sm text-gray-700 select-none dark:text-white"
482
+ >
483
+ Page 0 of 5
484
+ </div>
485
+ <svg
486
+ class="ml-3 text-gray-500 dark:text-white cursor-pointer"
487
+ data-testid="nextBtn"
488
+ fill="none"
489
+ height="20"
490
+ stroke="currentColor"
491
+ stroke-linecap="round"
492
+ stroke-linejoin="round"
493
+ stroke-width="2"
494
+ viewBox="0 0 24 24"
495
+ width="20"
496
+ xmlns="http://www.w3.org/2000/svg"
497
+ >
498
+ <line
499
+ x1="5"
500
+ x2="19"
501
+ y1="12"
502
+ y2="12"
503
+ />
504
+ <polyline
505
+ points="12 5 19 12 12 19"
506
+ />
507
+ </svg>
508
+ </div>
509
+ </div>
510
+ </div>
511
+ </div>
512
+ `;
513
+
514
+ exports[`📘 Pagination Storybook Stories renders MobilePagination with page information 1`] = `
515
+ <div>
516
+ <div
517
+ class="-m-4"
518
+ >
519
+ <div
520
+ class="p-4"
521
+ >
522
+ <div
523
+ class="flex w-full h-10 items-center"
524
+ >
525
+ <svg
526
+ class="mr-3 text-gray-500 dark:text-white opacity-50"
527
+ data-testid="prevBtn"
528
+ fill="none"
529
+ height="20"
530
+ stroke="currentColor"
531
+ stroke-linecap="round"
532
+ stroke-linejoin="round"
533
+ stroke-width="2"
534
+ viewBox="0 0 24 24"
535
+ width="20"
536
+ xmlns="http://www.w3.org/2000/svg"
537
+ >
538
+ <line
539
+ x1="19"
540
+ x2="5"
541
+ y1="12"
542
+ y2="12"
543
+ />
544
+ <polyline
545
+ points="12 19 5 12 12 5"
546
+ />
547
+ </svg>
548
+ <div
549
+ class="flex justify-center flex-grow text-sm text-gray-700 select-none dark:text-white"
550
+ >
551
+ Page 0 of 5
552
+ </div>
553
+ <svg
554
+ class="ml-3 text-gray-500 dark:text-white cursor-pointer"
555
+ data-testid="nextBtn"
556
+ fill="none"
557
+ height="20"
558
+ stroke="currentColor"
559
+ stroke-linecap="round"
560
+ stroke-linejoin="round"
561
+ stroke-width="2"
562
+ viewBox="0 0 24 24"
563
+ width="20"
564
+ xmlns="http://www.w3.org/2000/svg"
565
+ >
566
+ <line
567
+ x1="5"
568
+ x2="19"
569
+ y1="12"
570
+ y2="12"
571
+ />
572
+ <polyline
573
+ points="12 5 19 12 12 19"
574
+ />
575
+ </svg>
576
+ </div>
577
+ </div>
578
+ </div>
579
+ </div>
580
+ `;
@@ -0,0 +1,119 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`🧪 Select Story Tests (Direct function call style) Default story renders with a default country and placeholder 1`] = `
4
+ <div>
5
+ <div
6
+ class="-m-4"
7
+ >
8
+ <div
9
+ class="flex p-4"
10
+ >
11
+ <div
12
+ class="relative inline-block w-50"
13
+ >
14
+ <button
15
+ aria-expanded="false"
16
+ aria-haspopup="listbox"
17
+ class="shadow-sm flex items-center text-md border border-gray-300 dark:border-gray-500 h-11 px-3.5 rounded-lg bg-white dark:bg-gray-800 focus:ring-4 focus:border-primary-300 dark:focus:border-gray-100 focus:ring-primary-100 dark:focus:ring-gray-100 dark:focus:ring-opacity-20 whitespace-nowrap text-gray-900 dark:text-white w-50"
18
+ data-headlessui-state=""
19
+ id="headlessui-listbox-button-:r2:"
20
+ type="button"
21
+ >
22
+ <img
23
+ alt="in"
24
+ class="w-5 h-5 mr-2"
25
+ src="https://kapowaz.github.io/circle-flags/flags/in.svg"
26
+ />
27
+
28
+ Ahmedabad, IN
29
+ <svg
30
+ class="text-gray-500 dark:text-gray-300 transform duration-100 ease-out ml-auto"
31
+ fill="none"
32
+ height="20"
33
+ stroke="currentColor"
34
+ stroke-linecap="round"
35
+ stroke-linejoin="round"
36
+ stroke-width="2"
37
+ viewBox="0 0 24 24"
38
+ width="20"
39
+ xmlns="http://www.w3.org/2000/svg"
40
+ >
41
+ <polyline
42
+ points="6 9 12 15 18 9"
43
+ />
44
+ </svg>
45
+ </button>
46
+ </div>
47
+ </div>
48
+ </div>
49
+ </div>
50
+ `;
51
+
52
+ exports[`🧪 Select Story Tests (Direct function call style) SelectWithIcon story renders with a leading dollar sign icon and price 1`] = `
53
+ <div>
54
+ <div
55
+ class="-m-4"
56
+ >
57
+ <div
58
+ class="flex p-4"
59
+ >
60
+ <div
61
+ class="relative inline-block w-50"
62
+ >
63
+ <button
64
+ aria-expanded="false"
65
+ aria-haspopup="listbox"
66
+ class="shadow-sm flex items-center text-md border border-gray-300 dark:border-gray-500 h-11 px-3.5 rounded-lg bg-white dark:bg-gray-800 focus:ring-4 focus:border-primary-300 dark:focus:border-gray-100 focus:ring-primary-100 dark:focus:ring-gray-100 dark:focus:ring-opacity-20 whitespace-nowrap text-gray-900 dark:text-white w-50"
67
+ data-headlessui-state=""
68
+ id="headlessui-listbox-button-:r8:"
69
+ type="button"
70
+ >
71
+ <div
72
+ class="w-5 h-5 mr-2 overflow-hidden"
73
+ data-testid="leading-icon"
74
+ >
75
+ <svg
76
+ fill="none"
77
+ height="1em"
78
+ stroke="currentColor"
79
+ stroke-linecap="round"
80
+ stroke-linejoin="round"
81
+ stroke-width="2"
82
+ viewBox="0 0 24 24"
83
+ width="1em"
84
+ xmlns="http://www.w3.org/2000/svg"
85
+ >
86
+ <line
87
+ x1="12"
88
+ x2="12"
89
+ y1="1"
90
+ y2="23"
91
+ />
92
+ <path
93
+ d="M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6"
94
+ />
95
+ </svg>
96
+ </div>
97
+ Any price
98
+ <svg
99
+ class="text-gray-500 dark:text-gray-300 transform duration-100 ease-out ml-auto"
100
+ fill="none"
101
+ height="20"
102
+ stroke="currentColor"
103
+ stroke-linecap="round"
104
+ stroke-linejoin="round"
105
+ stroke-width="2"
106
+ viewBox="0 0 24 24"
107
+ width="20"
108
+ xmlns="http://www.w3.org/2000/svg"
109
+ >
110
+ <polyline
111
+ points="6 9 12 15 18 9"
112
+ />
113
+ </svg>
114
+ </button>
115
+ </div>
116
+ </div>
117
+ </div>
118
+ </div>
119
+ `;