@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,702 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Display and Position
5
- 'inline-flex',
6
- 'max-w-full',
7
- 'relative',
8
- ],
9
- },
10
- input: ({ props, parent, context }) => ({
11
- class: [
12
- // Display
13
- 'flex flex-auto',
14
-
15
- // Font
16
- 'leading-none',
17
-
18
- // Colors
19
- 'text-surface-600 dark:text-surface-200',
20
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
21
- { 'bg-surface-0 dark:bg-surface-950': !props.disabled },
22
- 'border',
23
- { 'border-surface-300 dark:border-surface-600': !props.invalid },
24
-
25
- // Invalid State
26
- 'invalid:focus:ring-red-200',
27
- 'invalid:hover:border-red-500',
28
- { 'border-red-500 dark:border-red-400': props.invalid },
29
-
30
- // Spacing
31
- 'm-0 py-2 px-3',
32
-
33
- // Shape
34
- 'appearance-none',
35
- { 'rounded-md': !props.showIcon || props.iconDisplay == 'input' },
36
- {
37
- 'rounded-l-md flex-1 pr-9':
38
- props.showIcon && props.iconDisplay !== 'input',
39
- },
40
- {
41
- 'rounded-md flex-1 pr-9':
42
- props.showIcon && props.iconDisplay === 'input',
43
- },
44
-
45
- // Transitions
46
- 'transition-colors',
47
- 'duration-200',
48
-
49
- // States
50
- {
51
- 'hover:border-surface-400 dark:hover:border-surface-600':
52
- !props.disabled && !props.invalid,
53
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10':
54
- !props.disabled,
55
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
56
- props.disabled,
57
- },
58
-
59
- // Filled State *for FloatLabel
60
- {
61
- filled:
62
- parent.instance?.$name == 'FloatLabel' && props.modelValue !== null,
63
- },
64
- ],
65
- }),
66
- inputicon: {
67
- class: [
68
- 'absolute top-[50%] -mt-2',
69
- 'text-surface-600 dark:text-surface-200',
70
- 'right-[.75rem]',
71
- ],
72
- },
73
- dropdownbutton: {
74
- root: {
75
- class: [
76
- 'relative',
77
-
78
- // Alignments
79
- 'items-center inline-flex text-center align-bottom justify-center',
80
-
81
- // Shape
82
- 'rounded-r-md',
83
-
84
- // Size
85
- 'py-2 px-0',
86
- 'w-10',
87
- 'leading-[normal]',
88
-
89
- // Colors
90
- 'text-primary-inverse',
91
- 'bg-primary',
92
- 'border border-primary',
93
-
94
- // States
95
- 'focus:outline-none focus:outline-offset-0 focus:ring-1',
96
- 'hover:bg-primary-hover hover:border-primary-hover',
97
- 'focus:ring-primary-500 dark:focus:ring-primary-400',
98
- ],
99
- },
100
- },
101
- panel: ({ props }) => ({
102
- class: [
103
- // Display & Position
104
- {
105
- absolute: !props.inline,
106
- 'inline-block': props.inline,
107
- },
108
-
109
- // Size
110
- { 'w-auto p-3 ': !props.inline },
111
- { 'min-w-[80vw] w-auto p-3 ': props.touchUI },
112
- { 'p-3 min-w-full': props.inline },
113
-
114
- // Shape
115
- 'border rounded-lg',
116
- {
117
- 'shadow-md': !props.inline,
118
- },
119
-
120
- // Colors
121
- 'bg-surface-0 dark:bg-surface-900',
122
- 'border-surface-200 dark:border-surface-700',
123
-
124
- //misc
125
- { 'overflow-x-auto': props.inline },
126
- ],
127
- }),
128
- datepickerMask: {
129
- class: [
130
- 'fixed top-0 left-0 w-full h-full',
131
- 'flex items-center justify-center',
132
- 'bg-black bg-opacity-90',
133
- ],
134
- },
135
- header: {
136
- class: [
137
- //Font
138
- 'font-medium',
139
-
140
- // Flexbox and Alignment
141
- 'flex items-center justify-between',
142
-
143
- // Spacing
144
- 'p-0 pb-2',
145
- 'm-0',
146
-
147
- // Shape
148
- 'border-b',
149
- 'rounded-t-md',
150
-
151
- // Colors
152
- 'text-surface-700 dark:text-white/80',
153
- 'bg-surface-0 dark:bg-surface-900',
154
- 'border-surface-200 dark:border-surface-700',
155
- ],
156
- },
157
- previousbutton: {
158
- class: [
159
- 'relative',
160
-
161
- // Flexbox and Alignment
162
- 'inline-flex items-center justify-center',
163
-
164
- // Size
165
- 'w-7 h-7',
166
- 'p-0 m-0',
167
-
168
- // Shape
169
- 'rounded-full',
170
-
171
- // Colors
172
- 'text-surface-600 dark:text-white/70',
173
- 'border-0',
174
- 'bg-transparent',
175
-
176
- // Transitions
177
- 'transition-colors duration-200 ease-in-out',
178
-
179
- // States
180
- 'hover:text-surface-700 dark:hover:text-white/80',
181
- 'hover:bg-surface-100 dark:hover:bg-surface-500/10 ',
182
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
183
-
184
- // Misc
185
- 'cursor-pointer overflow-hidden',
186
- ],
187
- },
188
- title: {
189
- class: [
190
- // Text
191
- 'leading-7',
192
- 'mx-auto my-0',
193
- ],
194
- },
195
- monthTitle: {
196
- class: [
197
- // Font
198
- 'text-base leading-[normal]',
199
- 'font-medium',
200
-
201
- //shape
202
- 'rounded-md',
203
-
204
- // Colors
205
- 'text-surface-700 dark:text-white/80',
206
-
207
- // Transitions
208
- 'transition duration-200',
209
-
210
- // Spacing
211
- 'p-1',
212
- 'm-0 mr-2',
213
-
214
- // States
215
- 'hover:text-primary-500 dark:hover:text-primary-400',
216
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
217
-
218
- // Misc
219
- 'cursor-pointer',
220
- ],
221
- },
222
- yearTitle: {
223
- class: [
224
- // Font
225
- 'text-base leading-[normal]',
226
- 'font-medium',
227
-
228
- //shape
229
- 'rounded-md',
230
-
231
- // Colors
232
- 'text-surface-700 dark:text-white/80',
233
-
234
- // Transitions
235
- 'transition duration-200',
236
-
237
- // Spacing
238
- 'p-1',
239
- 'm-0 mr-2',
240
-
241
- // States
242
- 'hover:text-primary-500 dark:hover:text-primary-400',
243
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
244
-
245
- // Misc
246
- 'cursor-pointer',
247
- ],
248
- },
249
- nextbutton: {
250
- class: [
251
- 'relative',
252
-
253
- // Flexbox and Alignment
254
- 'inline-flex items-center justify-center',
255
-
256
- // Size
257
- 'w-7 h-7',
258
- 'p-0 m-0',
259
-
260
- // Shape
261
- 'rounded-full',
262
-
263
- // Colors
264
- 'text-surface-600 dark:text-white/70',
265
- 'border-0',
266
- 'bg-transparent',
267
-
268
- // Transitions
269
- 'transition-colors duration-200 ease-in-out',
270
-
271
- // States
272
- 'hover:text-surface-700 dark:hover:text-white/80',
273
- 'hover:bg-surface-100 dark:hover:bg-surface-500/10 ',
274
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
275
-
276
- // Misc
277
- 'cursor-pointer overflow-hidden',
278
- ],
279
- },
280
- table: {
281
- class: [
282
- // Font
283
- 'text-base leading-[normal]',
284
- // Size & Shape
285
- 'border-collapse',
286
- 'w-full',
287
-
288
- // Spacing
289
- 'm-0 mt-2',
290
- ],
291
- },
292
- tableheadercell: {
293
- class: [
294
- // Spacing
295
- 'p-1',
296
- 'font-medium',
297
- ],
298
- },
299
- weekheader: {
300
- class: [
301
- 'leading-5',
302
- 'text-surface-600 dark:text-white/70',
303
- 'opacity-60 cursor-default',
304
- ],
305
- },
306
- weeknumber: {
307
- class: ['text-surface-600 dark:text-white/70', 'opacity-60 cursor-default'],
308
- },
309
- weekday: {
310
- class: [
311
- // Colors
312
- 'text-surface-500 dark:text-white/60',
313
- 'p-1',
314
- ],
315
- },
316
- day: {
317
- class: [
318
- // Spacing
319
- 'p-1',
320
- ],
321
- },
322
- weeklabelcontainer: ({ context }) => ({
323
- class: [
324
- // Flexbox and Alignment
325
- 'flex items-center justify-center',
326
- 'mx-auto',
327
-
328
- // Shape & Size
329
- 'w-8 h-8',
330
- 'rounded-full',
331
- 'border-transparent border',
332
- 'leading-[normal]',
333
-
334
- // Colors
335
- {
336
- 'text-surface-600 dark:text-white/70 bg-transparent':
337
- !context.selected && !context.disabled,
338
- 'text-primary-highlight-inverse bg-primary-highlight':
339
- context.selected && !context.disabled,
340
- },
341
-
342
- // States
343
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
344
- {
345
- 'hover:bg-surface-50 dark:hover:bg-surface-500/10':
346
- !context.selected && !context.disabled,
347
- 'hover:bg-primary-highlight-hover':
348
- context.selected && !context.disabled,
349
- },
350
- {
351
- 'opacity-60 cursor-default': context.disabled,
352
- 'cursor-pointer': !context.disabled,
353
- },
354
- ],
355
- }),
356
- daylabel: ({ context }) => ({
357
- class: [
358
- // Flexbox and Alignment
359
- 'flex items-center justify-center',
360
- 'mx-auto',
361
-
362
- // Shape & Size
363
- 'w-8 h-8',
364
- 'rounded-full',
365
- 'border-transparent border',
366
- 'leading-[normal]',
367
-
368
- // Colors
369
- {
370
- 'bg-surface-100 dark:bg-surface-800 text-surface-600 dark:text-white/70':
371
- context.date.today && !context.selected && !context.disabled,
372
- 'bg-transparent text-surface-600 dark:text-white/70':
373
- !context.selected && !context.disabled && !context.date.today,
374
- 'text-primary-highlight-inverse bg-primary-highlight':
375
- context.selected && !context.disabled,
376
- },
377
-
378
- // States
379
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
380
- {
381
- 'hover:bg-surface-50 dark:hover:bg-surface-500/10':
382
- !context.selected && !context.disabled,
383
- },
384
- {
385
- 'opacity-60 cursor-default': context.disabled,
386
- 'cursor-pointer': !context.disabled,
387
- },
388
- ],
389
- }),
390
- monthpicker: {
391
- class: [
392
- // Spacing
393
- 'mt-2',
394
- ],
395
- },
396
- month: ({ context }) => ({
397
- class: [
398
- // Flexbox and Alignment
399
- 'inline-flex items-center justify-center',
400
-
401
- // Size
402
- 'w-1/3',
403
- 'p-1',
404
-
405
- // Shape
406
- 'rounded-md',
407
-
408
- // Colors
409
- {
410
- 'text-surface-600 dark:text-white/70 bg-transparent':
411
- !context.selected && !context.disabled,
412
- 'text-primary-highlight-inverse bg-primary-highlight':
413
- context.selected && !context.disabled,
414
- },
415
-
416
- // States
417
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
418
- {
419
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
420
- !context.selected && !context.disabled,
421
- },
422
-
423
- // Misc
424
- 'cursor-pointer',
425
- ],
426
- }),
427
- yearpicker: {
428
- class: [
429
- // Spacing
430
- 'mt-2',
431
- ],
432
- },
433
- year: ({ context }) => ({
434
- class: [
435
- // Flexbox and Alignment
436
- 'inline-flex items-center justify-center',
437
-
438
- // Size
439
- 'w-1/2',
440
- 'p-1',
441
-
442
- // Shape
443
- 'rounded-md',
444
-
445
- // Colors
446
- {
447
- 'text-surface-600 dark:text-white/70 bg-transparent':
448
- !context.selected && !context.disabled,
449
- 'text-primary-highlight-inverse bg-primary-highlight':
450
- context.selected && !context.disabled,
451
- },
452
-
453
- // States
454
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
455
- {
456
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
457
- !context.selected && !context.disabled,
458
- },
459
-
460
- // Misc
461
- 'cursor-pointer',
462
- ],
463
- }),
464
- timepicker: {
465
- class: [
466
- // Flexbox
467
- 'flex',
468
- 'justify-center items-center',
469
-
470
- // Borders
471
- 'border-t-1',
472
- 'border-solid border-surface-200',
473
-
474
- // Spacing
475
- 'pt-2 mt-2',
476
- ],
477
- },
478
- separatorcontainer: {
479
- class: [
480
- // Flexbox and Alignment
481
- 'flex',
482
- 'items-center',
483
- 'flex-col',
484
-
485
- // Spacing
486
- 'px-2',
487
- ],
488
- },
489
- separator: {
490
- class: [
491
- // Text
492
- 'text-xl',
493
- ],
494
- },
495
- hourpicker: {
496
- class: [
497
- // Flexbox and Alignment
498
- 'flex',
499
- 'items-center',
500
- 'flex-col',
501
-
502
- // Spacing
503
- 'px-2',
504
- ],
505
- },
506
- minutepicker: {
507
- class: [
508
- // Flexbox and Alignment
509
- 'flex',
510
- 'items-center',
511
- 'flex-col',
512
-
513
- // Spacing
514
- 'px-2',
515
- ],
516
- },
517
- secondPicker: {
518
- class: [
519
- // Flexbox and Alignment
520
- 'flex',
521
- 'items-center',
522
- 'flex-col',
523
-
524
- // Spacing
525
- 'px-2',
526
- ],
527
- },
528
- ampmpicker: {
529
- class: [
530
- // Flexbox and Alignment
531
- 'flex',
532
- 'items-center',
533
- 'flex-col',
534
-
535
- // Spacing
536
- 'px-2',
537
- ],
538
- },
539
- incrementbutton: {
540
- class: [
541
- 'relative',
542
-
543
- // Flexbox and Alignment
544
- 'inline-flex items-center justify-center',
545
-
546
- // Size
547
- 'w-7 h-7',
548
- 'p-0 m-0',
549
-
550
- // Shape
551
- 'rounded-full',
552
-
553
- // Colors
554
- 'text-surface-600 dark:text-white/70',
555
- 'border-0',
556
- 'bg-transparent',
557
-
558
- // Transitions
559
- 'transition-colors duration-200 ease-in-out',
560
-
561
- // States
562
- 'hover:text-surface-700 dark:hover:text-white/80',
563
- 'hover:bg-surface-100 dark:hover:bg-surface-500/10 ',
564
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
565
-
566
- // Misc
567
- 'cursor-pointer overflow-hidden',
568
- ],
569
- },
570
- decrementbutton: {
571
- class: [
572
- 'relative',
573
-
574
- // Flexbox and Alignment
575
- 'inline-flex items-center justify-center',
576
-
577
- // Size
578
- 'w-7 h-7',
579
- 'p-0 m-0',
580
-
581
- // Shape
582
- 'rounded-full',
583
-
584
- // Colors
585
- 'text-surface-600 dark:text-white/70',
586
- 'border-0',
587
- 'bg-transparent',
588
-
589
- // Transitions
590
- 'transition-colors duration-200 ease-in-out',
591
-
592
- // States
593
- 'hover:text-surface-700 dark:hover:text-white/80',
594
- 'hover:bg-surface-100 dark:hover:bg-surface-500/10 ',
595
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
596
-
597
- // Misc
598
- 'cursor-pointer overflow-hidden',
599
- ],
600
- },
601
- groupcontainer: {
602
- class: [
603
- // Flexbox
604
- 'flex',
605
- ],
606
- },
607
- group: {
608
- class: [
609
- // Flexbox and Sizing
610
- 'flex-1',
611
-
612
- // Borders
613
- 'border-l',
614
- 'border-surface-200',
615
-
616
- // Spacing
617
- 'pr-0.5',
618
- 'pl-0.5',
619
- 'pt-0',
620
- 'pb-0',
621
-
622
- // Pseudo-Classes
623
- 'first:pl-0',
624
- 'first:border-l-0',
625
- ],
626
- },
627
- buttonbar: {
628
- class: [
629
- // Flexbox
630
- 'flex justify-between items-center',
631
-
632
- // Spacing
633
- 'pt-2',
634
-
635
- // Shape
636
- 'border-t border-surface-200 dark:border-surface-700',
637
- ],
638
- },
639
- todaybutton: {
640
- root: {
641
- class: [
642
- // Flexbox and Alignment
643
- 'inline-flex items-center justify-center',
644
-
645
- // Spacing
646
- 'px-3 py-1 text-sm leading-[normal]',
647
-
648
- // Shape
649
- 'rounded-md',
650
-
651
- // Colors
652
- 'bg-transparent border-transparent',
653
- 'text-primary',
654
-
655
- // Transitions
656
- 'transition-colors duration-200 ease-in-out',
657
-
658
- // States
659
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
660
- 'hover:bg-primary-300/20',
661
-
662
- // Misc
663
- 'cursor-pointer',
664
- ],
665
- },
666
- },
667
- clearbutton: {
668
- root: {
669
- class: [
670
- // Flexbox and Alignment
671
- 'inline-flex items-center justify-center',
672
-
673
- // Spacing
674
- 'px-3 py-1 text-sm leading-[normal]',
675
-
676
- // Shape
677
- 'rounded-md',
678
-
679
- // Colors
680
- 'bg-transparent border-transparent',
681
- 'text-primary',
682
-
683
- // Transitions
684
- 'transition-colors duration-200 ease-in-out',
685
-
686
- // States
687
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
688
- 'hover:bg-primary-300/20',
689
-
690
- // Misc
691
- 'cursor-pointer',
692
- ],
693
- },
694
- },
695
- transition: {
696
- enterFromClass: 'opacity-0 scale-y-[0.8]',
697
- enterActiveClass:
698
- 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
699
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
700
- leaveToClass: 'opacity-0',
701
- },
702
- }