@cooperco/cooper-component-library 0.0.10
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.
- package/README.md +11 -0
- package/package.json +85 -0
- package/src/assets/main.css +155 -0
- package/src/assets/theme.css +67 -0
- package/src/assets/usercard.jpg +0 -0
- package/src/assets/vue.svg +1 -0
- package/src/components/Accordion.vue +33 -0
- package/src/components/AccordionItem.vue +53 -0
- package/src/components/CTA.vue +39 -0
- package/src/components/CarouselModule.vue +46 -0
- package/src/components/ContainerCollectionModule.vue +33 -0
- package/src/components/ContainerModule.vue +116 -0
- package/src/components/ContentAndImage.vue +34 -0
- package/src/components/ContentMediaModule.vue +50 -0
- package/src/components/ContentModule.vue +51 -0
- package/src/components/FooterNavigation.vue +57 -0
- package/src/components/IconChevron.vue +107 -0
- package/src/components/Image.vue +15 -0
- package/src/components/LogoCollectionModule.vue +30 -0
- package/src/components/LogoContainerModule.vue +30 -0
- package/src/components/NavigationElement.vue +92 -0
- package/src/components/PrimaryNavigation.vue +68 -0
- package/src/components/SplitModule.vue +42 -0
- package/src/components/Testimonial.vue +48 -0
- package/src/components/TestimonialModule.vue +48 -0
- package/src/components/TileCollection.vue +37 -0
- package/src/components/TileCollectionModule.vue +45 -0
- package/src/components/TileContent.vue +105 -0
- package/src/components/Video.vue +18 -0
- package/src/components/types/Accordion.ts +18 -0
- package/src/components/types/AccordionItem.ts +19 -0
- package/src/components/types/CTA.ts +13 -0
- package/src/components/types/CarouselModule.ts +21 -0
- package/src/components/types/ContainerCollectionModule.ts +12 -0
- package/src/components/types/ContainerModule.ts +35 -0
- package/src/components/types/ContentAndImage.ts +14 -0
- package/src/components/types/ContentMediaModule.ts +14 -0
- package/src/components/types/ContentModule.ts +21 -0
- package/src/components/types/FooterNavigation.ts +12 -0
- package/src/components/types/Image.ts +12 -0
- package/src/components/types/LogoCollectionModule.ts +12 -0
- package/src/components/types/LogoContainerModule.ts +12 -0
- package/src/components/types/NavigationElement.ts +19 -0
- package/src/components/types/PrimaryNavigation.ts +10 -0
- package/src/components/types/SplitModule.ts +16 -0
- package/src/components/types/Testimonial.ts +17 -0
- package/src/components/types/TileCollection.ts +14 -0
- package/src/components/types/TileContent.ts +34 -0
- package/src/components/types/Video.ts +8 -0
- package/src/components/types/index.ts +10 -0
- package/src/presets/aura/accordion/index.js +81 -0
- package/src/presets/aura/autocomplete/index.js +280 -0
- package/src/presets/aura/avatar/index.js +46 -0
- package/src/presets/aura/badge/index.js +43 -0
- package/src/presets/aura/badgedirective/index.js +49 -0
- package/src/presets/aura/blockui/index.js +8 -0
- package/src/presets/aura/breadcrumb/index.js +63 -0
- package/src/presets/aura/button/index.js +511 -0
- package/src/presets/aura/calendar/index.js +702 -0
- package/src/presets/aura/card/index.js +53 -0
- package/src/presets/aura/carousel/index.js +160 -0
- package/src/presets/aura/cascadeselect/index.js +220 -0
- package/src/presets/aura/checkbox/index.js +107 -0
- package/src/presets/aura/chip/index.js +45 -0
- package/src/presets/aura/chips/index.js +126 -0
- package/src/presets/aura/colorpicker/index.js +132 -0
- package/src/presets/aura/confirmpopup/index.js +111 -0
- package/src/presets/aura/contextmenu/index.js +132 -0
- package/src/presets/aura/datatable/index.js +1290 -0
- package/src/presets/aura/dataview/index.js +40 -0
- package/src/presets/aura/deferred/index.js +3 -0
- package/src/presets/aura/dialog/index.js +250 -0
- package/src/presets/aura/divider/index.js +72 -0
- package/src/presets/aura/dock/index.js +97 -0
- package/src/presets/aura/dropdown/index.js +297 -0
- package/src/presets/aura/fieldset/index.js +95 -0
- package/src/presets/aura/fileupload/index.js +175 -0
- package/src/presets/aura/floatlabel/index.js +26 -0
- package/src/presets/aura/galleria/index.js +353 -0
- package/src/presets/aura/global.js +90 -0
- package/src/presets/aura/iconfield/index.js +22 -0
- package/src/presets/aura/image/index.js +206 -0
- package/src/presets/aura/index.js +181 -0
- package/src/presets/aura/inlinemessage/index.js +46 -0
- package/src/presets/aura/inplace/index.js +27 -0
- package/src/presets/aura/inputgroup/index.js +5 -0
- package/src/presets/aura/inputgroupaddon/index.js +28 -0
- package/src/presets/aura/inputmask/index.js +47 -0
- package/src/presets/aura/inputnumber/index.js +293 -0
- package/src/presets/aura/inputotp/index.js +69 -0
- package/src/presets/aura/inputswitch/index.js +94 -0
- package/src/presets/aura/inputtext/index.js +63 -0
- package/src/presets/aura/knob/index.js +47 -0
- package/src/presets/aura/listbox/index.js +158 -0
- package/src/presets/aura/megamenu/index.js +206 -0
- package/src/presets/aura/menu/index.js +122 -0
- package/src/presets/aura/menubar/index.js +184 -0
- package/src/presets/aura/message/index.js +112 -0
- package/src/presets/aura/metergroup/index.js +110 -0
- package/src/presets/aura/multiselect/index.js +579 -0
- package/src/presets/aura/orderlist/index.js +281 -0
- package/src/presets/aura/organizationchart/index.js +142 -0
- package/src/presets/aura/overlaypanel/index.js +34 -0
- package/src/presets/aura/paginator/index.js +566 -0
- package/src/presets/aura/panel/index.js +102 -0
- package/src/presets/aura/panelmenu/index.js +130 -0
- package/src/presets/aura/password/index.js +143 -0
- package/src/presets/aura/picklist/index.js +718 -0
- package/src/presets/aura/progressbar/index.js +64 -0
- package/src/presets/aura/progressspinner/index.js +51 -0
- package/src/presets/aura/radiobutton/index.js +121 -0
- package/src/presets/aura/rating/index.js +95 -0
- package/src/presets/aura/ripple/index.js +6 -0
- package/src/presets/aura/scrollpanel/index.js +77 -0
- package/src/presets/aura/scrolltop/index.js +45 -0
- package/src/presets/aura/selectbutton/index.js +66 -0
- package/src/presets/aura/sidebar/index.js +160 -0
- package/src/presets/aura/skeleton/index.js +19 -0
- package/src/presets/aura/slider/index.js +144 -0
- package/src/presets/aura/speeddial/index.js +579 -0
- package/src/presets/aura/splitbutton/index.js +1185 -0
- package/src/presets/aura/splitter/index.js +71 -0
- package/src/presets/aura/stepper/index.js +183 -0
- package/src/presets/aura/steps/index.js +117 -0
- package/src/presets/aura/tabmenu/index.js +75 -0
- package/src/presets/aura/tabview/index.js +162 -0
- package/src/presets/aura/tag/index.js +44 -0
- package/src/presets/aura/terminal/index.js +60 -0
- package/src/presets/aura/textarea/index.js +49 -0
- package/src/presets/aura/tieredmenu/index.js +125 -0
- package/src/presets/aura/timeline/index.js +114 -0
- package/src/presets/aura/toast/index.js +151 -0
- package/src/presets/aura/togglebutton/index.js +98 -0
- package/src/presets/aura/toolbar/index.js +28 -0
- package/src/presets/aura/tooltip/index.js +73 -0
- package/src/presets/aura/tree/index.js +294 -0
- package/src/presets/aura/treeselect/index.js +404 -0
- package/src/presets/aura/treetable/index.js +513 -0
- package/src/presets/aura/tristatecheckbox/index.js +121 -0
|
@@ -0,0 +1,702 @@
|
|
|
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
|
+
}
|