@cooperco/cooper-component-library 0.0.10 → 0.1.1

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/component-lib.js +6960 -0
  2. package/dist/component-lib.umd.cjs +98 -0
  3. package/dist/style.css +1 -0
  4. package/dist/vite.svg +16 -0
  5. package/package.json +93 -84
  6. package/src/assets/fonts/GT-Walsheim-Bold.woff +0 -0
  7. package/src/assets/fonts/GT-Walsheim-Bold.woff2 +0 -0
  8. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff +0 -0
  9. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
  10. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff +0 -0
  11. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
  12. package/src/assets/fonts/GT-Walsheim-Medium.woff +0 -0
  13. package/src/assets/fonts/GT-Walsheim-Medium.woff2 +0 -0
  14. package/src/assets/fonts/GT-Walsheim-Regular.woff +0 -0
  15. package/src/assets/fonts/GT-Walsheim-Regular.woff2 +0 -0
  16. package/src/assets/fonts/fonts.scss +60 -0
  17. package/src/assets/fonts/notosanssc-bold-webfont.woff +0 -0
  18. package/src/assets/fonts/notosanssc-bold-webfont.woff2 +0 -0
  19. package/src/assets/fonts/notosanssc-regular-webfont.woff +0 -0
  20. package/src/assets/fonts/notosanssc-regular-webfont.woff2 +0 -0
  21. package/src/assets/main.css +18 -114
  22. package/src/assets/theme.css +5 -1
  23. package/src/components/{types → Accordion}/Accordion.ts +8 -6
  24. package/src/components/Accordion/Accordion.vue +66 -0
  25. package/src/components/Accordion/AccordionItem.ts +25 -0
  26. package/src/components/Accordion/AccordionItem.vue +104 -0
  27. package/src/components/{AccordionItem.vue → Accordion/AccordionListItem.vue} +22 -14
  28. package/src/components/Accordion/AccordionTileItem.vue +75 -0
  29. package/src/components/CTA/CTA.ts +22 -0
  30. package/src/components/CTA/CTA.vue +65 -0
  31. package/src/components/CarouselModule/CarouselModule.ts +20 -0
  32. package/src/components/{CarouselModule.vue → CarouselModule/CarouselModule.vue} +25 -7
  33. package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +12 -0
  34. package/src/components/{ContainerCollectionModule.vue → ContainerCollectionModule/ContainerCollectionModule.vue} +12 -3
  35. package/src/components/ContainerModule/ContainerModule.ts +69 -0
  36. package/src/components/{ContainerModule.vue → ContainerModule/ContainerModule.vue} +33 -36
  37. package/src/components/ContentModule/ContentModule.ts +31 -0
  38. package/src/components/ContentModule/ContentModule.vue +65 -0
  39. package/src/components/{types → FooterNavigation}/FooterNavigation.ts +3 -2
  40. package/src/components/{FooterNavigation.vue → FooterNavigation/FooterNavigation.vue} +4 -2
  41. package/src/components/Image/Image.vue +17 -0
  42. package/src/components/{types → LogoCollectionModule}/LogoCollectionModule.ts +3 -3
  43. package/src/components/{LogoCollectionModule.vue → LogoCollectionModule/LogoCollectionModule.vue} +13 -3
  44. package/src/components/{types → NavigationElement}/NavigationElement.ts +6 -3
  45. package/src/components/{NavigationElement.vue → NavigationElement/NavigationElement.vue} +18 -9
  46. package/src/components/{types → PrimaryNavigation}/PrimaryNavigation.ts +2 -2
  47. package/src/components/{PrimaryNavigation.vue → PrimaryNavigation/PrimaryNavigation.vue} +7 -4
  48. package/src/components/{types → SplitModule}/SplitModule.ts +6 -5
  49. package/src/components/SplitModule/SplitModule.vue +57 -0
  50. package/src/components/TestimonialModule/TestimonialModule.ts +22 -0
  51. package/src/components/TestimonialModule/TestimonialModule.vue +51 -0
  52. package/src/components/TileCollectionModule/TileCollectionModule.ts +18 -0
  53. package/src/components/TileCollectionModule/TileCollectionModule.vue +58 -0
  54. package/src/components/TileContent/TileContent.ts +60 -0
  55. package/src/components/{TileContent.vue → TileContent/TileContent.vue} +25 -14
  56. package/src/components/TileContent/TileContentIconTile.vue +83 -0
  57. package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +121 -0
  58. package/src/components/TileContent/TileContentImageTile.vue +80 -0
  59. package/src/components/TileContent/TileContentTextTile.vue +63 -0
  60. package/src/components/TileContent/TileContentVideoTile.vue +81 -0
  61. package/src/components/{types → Video}/Video.ts +1 -1
  62. package/src/components/{Video.vue → Video/Video.vue} +1 -1
  63. package/src/config/defaultPassthrough.ts +261 -0
  64. package/src/assets/usercard.jpg +0 -0
  65. package/src/assets/vue.svg +0 -1
  66. package/src/components/Accordion.vue +0 -33
  67. package/src/components/CTA.vue +0 -39
  68. package/src/components/ContentAndImage.vue +0 -34
  69. package/src/components/ContentMediaModule.vue +0 -50
  70. package/src/components/ContentModule.vue +0 -51
  71. package/src/components/IconChevron.vue +0 -107
  72. package/src/components/Image.vue +0 -15
  73. package/src/components/LogoContainerModule.vue +0 -30
  74. package/src/components/SplitModule.vue +0 -42
  75. package/src/components/Testimonial.vue +0 -48
  76. package/src/components/TestimonialModule.vue +0 -48
  77. package/src/components/TileCollection.vue +0 -37
  78. package/src/components/TileCollectionModule.vue +0 -45
  79. package/src/components/types/AccordionItem.ts +0 -19
  80. package/src/components/types/CTA.ts +0 -13
  81. package/src/components/types/CarouselModule.ts +0 -21
  82. package/src/components/types/ContainerCollectionModule.ts +0 -12
  83. package/src/components/types/ContainerModule.ts +0 -35
  84. package/src/components/types/ContentAndImage.ts +0 -14
  85. package/src/components/types/ContentMediaModule.ts +0 -14
  86. package/src/components/types/ContentModule.ts +0 -21
  87. package/src/components/types/LogoContainerModule.ts +0 -12
  88. package/src/components/types/Testimonial.ts +0 -17
  89. package/src/components/types/TileCollection.ts +0 -14
  90. package/src/components/types/TileContent.ts +0 -34
  91. package/src/components/types/index.ts +0 -10
  92. package/src/presets/aura/accordion/index.js +0 -81
  93. package/src/presets/aura/autocomplete/index.js +0 -280
  94. package/src/presets/aura/avatar/index.js +0 -46
  95. package/src/presets/aura/badge/index.js +0 -43
  96. package/src/presets/aura/badgedirective/index.js +0 -49
  97. package/src/presets/aura/blockui/index.js +0 -8
  98. package/src/presets/aura/breadcrumb/index.js +0 -63
  99. package/src/presets/aura/button/index.js +0 -511
  100. package/src/presets/aura/calendar/index.js +0 -702
  101. package/src/presets/aura/card/index.js +0 -53
  102. package/src/presets/aura/carousel/index.js +0 -160
  103. package/src/presets/aura/cascadeselect/index.js +0 -220
  104. package/src/presets/aura/checkbox/index.js +0 -107
  105. package/src/presets/aura/chip/index.js +0 -45
  106. package/src/presets/aura/chips/index.js +0 -126
  107. package/src/presets/aura/colorpicker/index.js +0 -132
  108. package/src/presets/aura/confirmpopup/index.js +0 -111
  109. package/src/presets/aura/contextmenu/index.js +0 -132
  110. package/src/presets/aura/datatable/index.js +0 -1290
  111. package/src/presets/aura/dataview/index.js +0 -40
  112. package/src/presets/aura/deferred/index.js +0 -3
  113. package/src/presets/aura/dialog/index.js +0 -250
  114. package/src/presets/aura/divider/index.js +0 -72
  115. package/src/presets/aura/dock/index.js +0 -97
  116. package/src/presets/aura/dropdown/index.js +0 -297
  117. package/src/presets/aura/fieldset/index.js +0 -95
  118. package/src/presets/aura/fileupload/index.js +0 -175
  119. package/src/presets/aura/floatlabel/index.js +0 -26
  120. package/src/presets/aura/galleria/index.js +0 -353
  121. package/src/presets/aura/global.js +0 -90
  122. package/src/presets/aura/iconfield/index.js +0 -22
  123. package/src/presets/aura/image/index.js +0 -206
  124. package/src/presets/aura/index.js +0 -181
  125. package/src/presets/aura/inlinemessage/index.js +0 -46
  126. package/src/presets/aura/inplace/index.js +0 -27
  127. package/src/presets/aura/inputgroup/index.js +0 -5
  128. package/src/presets/aura/inputgroupaddon/index.js +0 -28
  129. package/src/presets/aura/inputmask/index.js +0 -47
  130. package/src/presets/aura/inputnumber/index.js +0 -293
  131. package/src/presets/aura/inputotp/index.js +0 -69
  132. package/src/presets/aura/inputswitch/index.js +0 -94
  133. package/src/presets/aura/inputtext/index.js +0 -63
  134. package/src/presets/aura/knob/index.js +0 -47
  135. package/src/presets/aura/listbox/index.js +0 -158
  136. package/src/presets/aura/megamenu/index.js +0 -206
  137. package/src/presets/aura/menu/index.js +0 -122
  138. package/src/presets/aura/menubar/index.js +0 -184
  139. package/src/presets/aura/message/index.js +0 -112
  140. package/src/presets/aura/metergroup/index.js +0 -110
  141. package/src/presets/aura/multiselect/index.js +0 -579
  142. package/src/presets/aura/orderlist/index.js +0 -281
  143. package/src/presets/aura/organizationchart/index.js +0 -142
  144. package/src/presets/aura/overlaypanel/index.js +0 -34
  145. package/src/presets/aura/paginator/index.js +0 -566
  146. package/src/presets/aura/panel/index.js +0 -102
  147. package/src/presets/aura/panelmenu/index.js +0 -130
  148. package/src/presets/aura/password/index.js +0 -143
  149. package/src/presets/aura/picklist/index.js +0 -718
  150. package/src/presets/aura/progressbar/index.js +0 -64
  151. package/src/presets/aura/progressspinner/index.js +0 -51
  152. package/src/presets/aura/radiobutton/index.js +0 -121
  153. package/src/presets/aura/rating/index.js +0 -95
  154. package/src/presets/aura/ripple/index.js +0 -6
  155. package/src/presets/aura/scrollpanel/index.js +0 -77
  156. package/src/presets/aura/scrolltop/index.js +0 -45
  157. package/src/presets/aura/selectbutton/index.js +0 -66
  158. package/src/presets/aura/sidebar/index.js +0 -160
  159. package/src/presets/aura/skeleton/index.js +0 -19
  160. package/src/presets/aura/slider/index.js +0 -144
  161. package/src/presets/aura/speeddial/index.js +0 -579
  162. package/src/presets/aura/splitbutton/index.js +0 -1185
  163. package/src/presets/aura/splitter/index.js +0 -71
  164. package/src/presets/aura/stepper/index.js +0 -183
  165. package/src/presets/aura/steps/index.js +0 -117
  166. package/src/presets/aura/tabmenu/index.js +0 -75
  167. package/src/presets/aura/tabview/index.js +0 -162
  168. package/src/presets/aura/tag/index.js +0 -44
  169. package/src/presets/aura/terminal/index.js +0 -60
  170. package/src/presets/aura/textarea/index.js +0 -49
  171. package/src/presets/aura/tieredmenu/index.js +0 -125
  172. package/src/presets/aura/timeline/index.js +0 -114
  173. package/src/presets/aura/toast/index.js +0 -151
  174. package/src/presets/aura/togglebutton/index.js +0 -98
  175. package/src/presets/aura/toolbar/index.js +0 -28
  176. package/src/presets/aura/tooltip/index.js +0 -73
  177. package/src/presets/aura/tree/index.js +0 -294
  178. package/src/presets/aura/treeselect/index.js +0 -404
  179. package/src/presets/aura/treetable/index.js +0 -513
  180. package/src/presets/aura/tristatecheckbox/index.js +0 -121
  181. /package/src/components/{types → Image}/Image.ts +0 -0
@@ -1,566 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Flex & Alignment
5
- 'flex items-center justify-center flex-wrap',
6
-
7
- // Spacing
8
- 'px-4 py-2',
9
-
10
- // Shape
11
- 'border-0 rounded-md',
12
-
13
- // Color
14
- 'bg-surface-0 dark:bg-surface-900',
15
- 'text-surface-500 dark:text-white/60',
16
- ],
17
- },
18
- firstpagebutton: ({ context }) => ({
19
- class: [
20
- 'relative',
21
-
22
- // Flex & Alignment
23
- 'inline-flex items-center justify-center',
24
-
25
- // Shape
26
- 'border-0 rounded-full',
27
-
28
- // Size
29
- 'min-w-[2.5rem] h-10 m-[0.143rem]',
30
- 'leading-none',
31
-
32
- // Color
33
- 'text-surface-500 dark:text-white/60',
34
-
35
- // State
36
- {
37
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]':
38
- !context.disabled,
39
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
40
- !context.disabled,
41
- },
42
-
43
- // Transition
44
- 'transition duration-200',
45
-
46
- // Misc
47
- 'user-none overflow-hidden',
48
- { 'cursor-default pointer-events-none opacity-60': context.disabled },
49
- ],
50
- }),
51
- previouspagebutton: ({ context }) => ({
52
- class: [
53
- 'relative',
54
-
55
- // Flex & Alignment
56
- 'inline-flex items-center justify-center',
57
-
58
- // Shape
59
- 'border-0 rounded-full',
60
-
61
- // Size
62
- 'min-w-[2.5rem] h-10 m-[0.143rem]',
63
- 'leading-none',
64
-
65
- // Color
66
- 'text-surface-500 dark:text-white/60',
67
-
68
- // State
69
- {
70
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]':
71
- !context.disabled,
72
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
73
- !context.disabled,
74
- },
75
-
76
- // Transition
77
- 'transition duration-200',
78
-
79
- // Misc
80
- 'user-none overflow-hidden',
81
- { 'cursor-default pointer-events-none opacity-60': context.disabled },
82
- ],
83
- }),
84
- nextpagebutton: ({ context }) => ({
85
- class: [
86
- 'relative',
87
-
88
- // Flex & Alignment
89
- 'inline-flex items-center justify-center',
90
-
91
- // Shape
92
- 'border-0 rounded-full',
93
-
94
- // Size
95
- 'min-w-[2.5rem] h-10 m-[0.143rem]',
96
- 'leading-none',
97
-
98
- // Color
99
- 'text-surface-500 dark:text-white/60',
100
-
101
- // State
102
- {
103
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]':
104
- !context.disabled,
105
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
106
- !context.disabled,
107
- },
108
-
109
- // Transition
110
- 'transition duration-200',
111
-
112
- // Misc
113
- 'user-none overflow-hidden',
114
- { 'cursor-default pointer-events-none opacity-60': context.disabled },
115
- ],
116
- }),
117
- lastpagebutton: ({ context }) => ({
118
- class: [
119
- 'relative',
120
-
121
- // Flex & Alignment
122
- 'inline-flex items-center justify-center',
123
-
124
- // Shape
125
- 'border-0 rounded-full',
126
-
127
- // Size
128
- 'min-w-[2.5rem] h-10 m-[0.143rem]',
129
- 'leading-none',
130
-
131
- // Color
132
- 'text-surface-500 dark:text-white/60',
133
-
134
- // State
135
- {
136
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]':
137
- !context.disabled,
138
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
139
- !context.disabled,
140
- },
141
-
142
- // Transition
143
- 'transition duration-200',
144
-
145
- // Misc
146
- 'user-none overflow-hidden',
147
- { 'cursor-default pointer-events-none opacity-60': context.disabled },
148
- ],
149
- }),
150
- pagebutton: ({ context }) => ({
151
- class: [
152
- 'relative',
153
-
154
- // Flex & Alignment
155
- 'inline-flex items-center justify-center',
156
-
157
- // Shape
158
- 'border-0 rounded-full',
159
-
160
- // Size
161
- 'min-w-[2.5rem] h-10 m-[0.143rem]',
162
- 'leading-none',
163
-
164
- // Color
165
- 'text-surface-500 dark:text-white/60',
166
-
167
- // State
168
- {
169
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]':
170
- !context.disabled,
171
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
172
- !context.disabled,
173
- },
174
-
175
- // Transition
176
- 'transition duration-200',
177
-
178
- // Misc
179
- 'user-none overflow-hidden',
180
- { 'cursor-default pointer-events-none opacity-60': context.disabled },
181
- ],
182
- }),
183
- rowperpagedropdown: {
184
- root: ({ props, state }) => ({
185
- class: [
186
- // Display and Position
187
- 'inline-flex',
188
- 'relative',
189
-
190
- // Shape
191
- 'h-10',
192
- 'rounded-md',
193
-
194
- // Spacing
195
- 'mx-2',
196
-
197
- // Color and Background
198
- 'bg-surface-0 dark:bg-surface-950',
199
- 'border border-surface-300 dark:border-surface-700',
200
-
201
- // Transitions
202
- 'transition-all',
203
- 'duration-200',
204
-
205
- // States
206
- 'hover:border-surface-400 dark:hover:border-surface-600',
207
- {
208
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
209
- !state.focused,
210
- },
211
-
212
- // Misc
213
- 'cursor-pointer',
214
- 'select-none',
215
- {
216
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
217
- props.disabled,
218
- },
219
- ],
220
- }),
221
- input: {
222
- class: [
223
- //Font
224
- 'leading-[normal]',
225
-
226
- // Display
227
- 'block',
228
- 'flex-auto',
229
-
230
- // Color and Background
231
- 'bg-transparent',
232
- 'border-0',
233
- 'text-surface-800 dark:text-white/80',
234
-
235
- // Sizing and Spacing
236
- 'w-[1%]',
237
- 'py-2 pl-3 pr-0',
238
-
239
- //Shape
240
- 'rounded-none',
241
-
242
- // Transitions
243
- 'transition',
244
- 'duration-200',
245
-
246
- // States
247
- 'focus:outline-none focus:shadow-none',
248
-
249
- // Misc
250
- 'relative',
251
- 'cursor-pointer',
252
- 'overflow-hidden overflow-ellipsis',
253
- 'whitespace-nowrap',
254
- 'appearance-none',
255
- ],
256
- },
257
- trigger: {
258
- class: [
259
- // Flexbox
260
- 'flex items-center justify-center',
261
- 'shrink-0',
262
-
263
- // Color and Background
264
- 'bg-transparent',
265
- 'text-surface-500',
266
-
267
- // Size
268
- 'w-10',
269
-
270
- // Shape
271
- 'rounded-tr-md',
272
- 'rounded-br-md',
273
- ],
274
- },
275
- panel: {
276
- class: [
277
- // Colors
278
- 'bg-surface-0 dark:bg-surface-900',
279
- 'text-surface-700 dark:text-white/80',
280
-
281
- // Shape
282
- 'border border-surface-300 dark:border-surface-700',
283
- 'rounded-md',
284
- 'shadow-md',
285
- ],
286
- },
287
- wrapper: {
288
- class: [
289
- // Sizing
290
- 'max-h-[200px]',
291
-
292
- // Misc
293
- 'overflow-auto',
294
- ],
295
- },
296
- list: {
297
- class: 'p-1 list-none m-0',
298
- },
299
- item: ({ context }) => ({
300
- class: [
301
- 'relative',
302
-
303
- // Font
304
- 'leading-none',
305
-
306
- // Spacing
307
- 'm-0 px-3 py-2',
308
- 'first:mt-0 mt-[2px]',
309
-
310
- // Shape
311
- 'border-0 rounded',
312
-
313
- // Colors
314
- {
315
- 'text-surface-700 dark:text-white/80':
316
- !context.focused && !context.selected,
317
- 'bg-surface-200 dark:bg-surface-600/60':
318
- context.focused && !context.selected,
319
- 'text-surface-700 dark:text-white/80':
320
- context.focused && !context.selected,
321
-
322
- 'text-primary-highlight-inverse': context.selected,
323
- 'bg-primary-highlight': context.selected,
324
- },
325
-
326
- //States
327
- {
328
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
329
- !context.focused && !context.selected,
330
- },
331
- { 'hover:bg-primary-highlight-hover': context.selected },
332
- {
333
- 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-[rgba(255,255,255,0.03)]':
334
- context.focused && !context.selected,
335
- },
336
-
337
- // Transitions
338
- 'transition-shadow',
339
- 'duration-200',
340
-
341
- // Misc
342
- 'cursor-pointer',
343
- 'overflow-hidden',
344
- 'whitespace-nowrap',
345
- ],
346
- }),
347
- },
348
- jumptopageinput: {
349
- root: {
350
- class: 'inline-flex mx-2',
351
- },
352
- input: {
353
- root: {
354
- class: [
355
- 'relative',
356
-
357
- //Font
358
- 'leading-none',
359
-
360
- // Display
361
- 'block',
362
- 'flex-auto',
363
-
364
- // Colors
365
- 'text-surface-600 dark:text-surface-200',
366
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
367
- 'bg-surface-0 dark:bg-surface-950',
368
- 'border border-surface-300 dark:border-surface-700',
369
-
370
- // Sizing and Spacing
371
- 'w-[1%] max-w-[3rem]',
372
- 'py-2 px-3 m-0',
373
-
374
- //Shape
375
- 'rounded-md',
376
-
377
- // Transitions
378
- 'transition',
379
- 'duration-200',
380
-
381
- // States
382
- 'hover:border-surface-400 dark:hover:border-surface-600',
383
- 'focus:outline-none focus:shadow-none',
384
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
385
-
386
- // Misc
387
- 'cursor-pointer',
388
- 'overflow-hidden overflow-ellipsis',
389
- 'whitespace-nowrap',
390
- 'appearance-none',
391
- ],
392
- },
393
- },
394
- },
395
- jumptopagedropdown: {
396
- root: ({ props, state }) => ({
397
- class: [
398
- // Display and Position
399
- 'inline-flex',
400
- 'relative',
401
-
402
- // Shape
403
- 'h-10',
404
- 'rounded-md',
405
-
406
- // Spacing
407
- 'mx-2',
408
-
409
- // Color and Background
410
- 'bg-surface-0 dark:bg-surface-950',
411
- 'border border-surface-300 dark:border-surface-700',
412
-
413
- // Transitions
414
- 'transition-all',
415
- 'duration-200',
416
-
417
- // States
418
- 'hover:border-surface-400 dark:hover:border-surface-600',
419
- {
420
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400':
421
- !state.focused,
422
- },
423
-
424
- // Misc
425
- 'cursor-pointer',
426
- 'select-none',
427
- {
428
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
429
- props.disabled,
430
- },
431
- ],
432
- }),
433
- input: {
434
- class: [
435
- //Font
436
- 'leading-[normal]',
437
-
438
- // Display
439
- 'block',
440
- 'flex-auto',
441
-
442
- // Color and Background
443
- 'bg-transparent',
444
- 'border-0',
445
- 'text-surface-800 dark:text-white/80',
446
-
447
- // Sizing and Spacing
448
- 'w-[1%]',
449
- 'py-2 pl-3 pr-0',
450
-
451
- //Shape
452
- 'rounded-none',
453
-
454
- // Transitions
455
- 'transition',
456
- 'duration-200',
457
-
458
- // States
459
- 'focus:outline-none focus:shadow-none',
460
-
461
- // Misc
462
- 'relative',
463
- 'cursor-pointer',
464
- 'overflow-hidden overflow-ellipsis',
465
- 'whitespace-nowrap',
466
- 'appearance-none',
467
- ],
468
- },
469
- trigger: {
470
- class: [
471
- // Flexbox
472
- 'flex items-center justify-center',
473
- 'shrink-0',
474
-
475
- // Color and Background
476
- 'bg-transparent',
477
- 'text-surface-500',
478
-
479
- // Size
480
- 'w-10',
481
-
482
- // Shape
483
- 'rounded-tr-md',
484
- 'rounded-br-md',
485
- ],
486
- },
487
- panel: {
488
- class: [
489
- // Colors
490
- 'bg-surface-0 dark:bg-surface-900',
491
- 'text-surface-700 dark:text-white/80',
492
-
493
- // Shape
494
- 'border border-surface-300 dark:border-surface-700',
495
- 'rounded-md',
496
- 'shadow-md',
497
- ],
498
- },
499
- wrapper: {
500
- class: [
501
- // Sizing
502
- 'max-h-[200px]',
503
-
504
- // Misc
505
- 'overflow-auto',
506
- ],
507
- },
508
- list: {
509
- class: 'p-1 list-none m-0',
510
- },
511
- item: ({ context }) => ({
512
- class: [
513
- 'relative',
514
-
515
- // Font
516
- 'leading-none',
517
-
518
- // Spacing
519
- 'm-0 px-3 py-2',
520
- 'first:mt-0 mt-[2px]',
521
-
522
- // Shape
523
- 'border-0 rounded',
524
-
525
- // Colors
526
- {
527
- 'text-surface-700 dark:text-white/80':
528
- !context.focused && !context.selected,
529
- 'bg-surface-200 dark:bg-surface-600/60':
530
- context.focused && !context.selected,
531
- 'text-surface-700 dark:text-white/80':
532
- context.focused && !context.selected,
533
-
534
- 'text-primary-highlight-inverse': context.selected,
535
- 'bg-primary-highlight': context.selected,
536
- },
537
-
538
- //States
539
- {
540
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
541
- !context.focused && !context.selected,
542
- },
543
- { 'hover:bg-primary-highlight-hover': context.selected },
544
- {
545
- 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-[rgba(255,255,255,0.03)]':
546
- context.focused && !context.selected,
547
- },
548
-
549
- // Transitions
550
- 'transition-shadow',
551
- 'duration-200',
552
-
553
- // Misc
554
- 'cursor-pointer',
555
- 'overflow-hidden',
556
- 'whitespace-nowrap',
557
- ],
558
- }),
559
- },
560
- start: {
561
- class: 'mr-auto',
562
- },
563
- end: {
564
- class: 'ml-auto',
565
- },
566
- }
@@ -1,102 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- //Shape
5
- 'rounded-md',
6
-
7
- //Colors
8
- 'border border-surface-200 dark:border-surface-700',
9
- 'bg-surface-0 dark:bg-surface-900',
10
- ],
11
- },
12
- header: ({ props }) => ({
13
- class: [
14
- // Flex
15
- 'flex items-center justify-between',
16
-
17
- // Colors
18
- 'text-surface-700 dark:text-surface-0/80',
19
- 'bg-transparent',
20
-
21
- //Shape
22
- 'rounded-tl-md rounded-tr-md',
23
- 'border-0',
24
-
25
- // Conditional Spacing
26
- {
27
- 'p-[1.125rem]': !props.toggleable,
28
- 'py-3 px-[1.125rem]': props.toggleable,
29
- },
30
- ],
31
- }),
32
- title: {
33
- class: 'leading-none font-semibold',
34
- },
35
- toggler: {
36
- class: [
37
- // Alignments
38
- 'inline-flex items-center justify-center',
39
- 'relative',
40
-
41
- // Sized
42
- 'w-7 h-7',
43
- 'm-0 p-0',
44
-
45
- //Shape
46
- 'border-0 rounded-full',
47
-
48
- //Color
49
- 'bg-transparent',
50
- 'text-surface-600 dark:text-surface-0/80',
51
-
52
- // States
53
- 'hover:text-surface-800 dark:hover:text-surface-0',
54
- 'hover:bg-surface-50 dark:hover:bg-[rgba(255,255,255,0.03)]',
55
- 'focus:outline-none focus:outline-offset-0 focus-visible:ring-1 focus-visible:ring-primary-400 dark:focus-visible:ring-primary-300',
56
-
57
- // Transitions
58
- 'transition-all duration-200 ease-in-out',
59
-
60
- // Misc
61
- 'overflow-hidden no-underline',
62
- 'cursor-pointer',
63
- ],
64
- },
65
- togglerIcon: {
66
- class: 'inline-block w-4 h-4',
67
- },
68
- content: {
69
- class: [
70
- // Spacing
71
- 'p-[1.125rem] pt-0',
72
-
73
- // Shape
74
- 'border-0 border-t-0 last:rounded-br-md last:rounded-bl-md',
75
-
76
- //Color
77
- 'text-surface-700 dark:text-surface-0/80',
78
- ],
79
- },
80
- footer: {
81
- class: [
82
- // Spacing
83
- 'p-[1.125rem] pt-0',
84
-
85
- // Shape
86
- 'border-0 border-t-0 rounded-br-lg rounded-bl-lg',
87
-
88
- //Color
89
- 'text-surface-700 dark:text-surface-0/80',
90
- ],
91
- },
92
- transition: {
93
- enterFromClass: 'max-h-0',
94
- enterActiveClass:
95
- 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
96
- enterToClass: 'max-h-[1000px]',
97
- leaveFromClass: 'max-h-[1000px]',
98
- leaveActiveClass:
99
- 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
100
- leaveToClass: 'max-h-0',
101
- },
102
- }