@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,353 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
content: ({ parent, props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'flex',
|
|
5
|
+
{
|
|
6
|
+
'flex-col': props.fullScreen,
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
'flex-col':
|
|
10
|
+
parent.props.thumbnailsPosition === 'top' ||
|
|
11
|
+
parent.props.thumbnailsPosition === 'bottom',
|
|
12
|
+
'flex-row':
|
|
13
|
+
parent.props.thumbnailsPosition === 'right' ||
|
|
14
|
+
parent.props.thumbnailsPosition === 'left',
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
}),
|
|
18
|
+
itemwrapper: ({ parent, props }) => ({
|
|
19
|
+
class: [
|
|
20
|
+
'group',
|
|
21
|
+
'flex relative',
|
|
22
|
+
{
|
|
23
|
+
'grow shrink w-0 justify-center': props.fullScreen,
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
'flex-col':
|
|
27
|
+
parent.props.indicatorsPosition === 'bottom' ||
|
|
28
|
+
parent.props.indicatorsPosition === 'top',
|
|
29
|
+
'flex-row items-center':
|
|
30
|
+
parent.props.indicatorsPosition === 'left' ||
|
|
31
|
+
parent.props.indicatorsPosition === 'right',
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
'order-2':
|
|
35
|
+
parent.props.thumbnailsPosition === 'top' ||
|
|
36
|
+
parent.props.thumbnailsPosition === 'left',
|
|
37
|
+
'flex-row': parent.props.thumbnailsPosition === 'right',
|
|
38
|
+
},
|
|
39
|
+
],
|
|
40
|
+
}),
|
|
41
|
+
|
|
42
|
+
itemcontainer: ({ parent }) => ({
|
|
43
|
+
class: [
|
|
44
|
+
'flex h-full relative',
|
|
45
|
+
{
|
|
46
|
+
'order-1':
|
|
47
|
+
parent.props.indicatorsPosition === 'bottom' ||
|
|
48
|
+
parent.props.indicatorsPosition === 'right',
|
|
49
|
+
'order-2':
|
|
50
|
+
parent.props.indicatorsPosition === 'top' ||
|
|
51
|
+
parent.props.indicatorsPosition === 'left',
|
|
52
|
+
},
|
|
53
|
+
],
|
|
54
|
+
}),
|
|
55
|
+
item: {
|
|
56
|
+
class: [
|
|
57
|
+
// Flex
|
|
58
|
+
'flex justify-center items-center h-full w-full',
|
|
59
|
+
|
|
60
|
+
// Sizing
|
|
61
|
+
'h-full w-full',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
thumbnailwrapper: ({ parent }) => ({
|
|
65
|
+
class: [
|
|
66
|
+
// Flex
|
|
67
|
+
'flex flex-col shrink-0',
|
|
68
|
+
|
|
69
|
+
{
|
|
70
|
+
'order-1':
|
|
71
|
+
parent.props.thumbnailsPosition === 'top' ||
|
|
72
|
+
parent.props.thumbnailsPosition === 'left',
|
|
73
|
+
},
|
|
74
|
+
|
|
75
|
+
// Misc
|
|
76
|
+
'overflow-auto',
|
|
77
|
+
],
|
|
78
|
+
}),
|
|
79
|
+
thumbnailcontainer: ({ parent }) => ({
|
|
80
|
+
class: [
|
|
81
|
+
// Flex
|
|
82
|
+
'flex',
|
|
83
|
+
|
|
84
|
+
// Spacing
|
|
85
|
+
'p-4',
|
|
86
|
+
|
|
87
|
+
// Colors
|
|
88
|
+
'bg-black/90',
|
|
89
|
+
|
|
90
|
+
{
|
|
91
|
+
'flex-row':
|
|
92
|
+
parent.props.thumbnailsPosition === 'top' ||
|
|
93
|
+
parent.props.thumbnailsPosition === 'bottom',
|
|
94
|
+
'flex-col grow':
|
|
95
|
+
parent.props.thumbnailsPosition === 'right' ||
|
|
96
|
+
parent.props.thumbnailsPosition === 'left',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
}),
|
|
100
|
+
previousthumbnailbutton: {
|
|
101
|
+
class: [
|
|
102
|
+
// Positioning
|
|
103
|
+
'self-center relative',
|
|
104
|
+
|
|
105
|
+
// Display & Flexbox
|
|
106
|
+
'flex shrink-0 justify-center items-center overflow-hidden',
|
|
107
|
+
|
|
108
|
+
// Spacing
|
|
109
|
+
'm-2',
|
|
110
|
+
|
|
111
|
+
// Appearance
|
|
112
|
+
'bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out',
|
|
113
|
+
|
|
114
|
+
// Hover Effects
|
|
115
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
116
|
+
|
|
117
|
+
// Focus Effects
|
|
118
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
thumbnailitemscontainer: {
|
|
122
|
+
class: 'overflow-hidden w-full',
|
|
123
|
+
},
|
|
124
|
+
thumbnailitems: ({ parent }) => ({
|
|
125
|
+
class: [
|
|
126
|
+
'flex',
|
|
127
|
+
{
|
|
128
|
+
'flex-col h-full':
|
|
129
|
+
parent.props.thumbnailsPosition === 'right' ||
|
|
130
|
+
parent.props.thumbnailsPosition === 'left',
|
|
131
|
+
},
|
|
132
|
+
],
|
|
133
|
+
}),
|
|
134
|
+
thumbnailitem: ({ parent }) => ({
|
|
135
|
+
class: [
|
|
136
|
+
// Flexbox
|
|
137
|
+
'flex items-center justify-center',
|
|
138
|
+
'grow shrink-0',
|
|
139
|
+
|
|
140
|
+
// Sizing
|
|
141
|
+
{
|
|
142
|
+
'w-full md:w-[25%] lg:w-[20%]':
|
|
143
|
+
parent.props.thumbnailsPosition === 'top' ||
|
|
144
|
+
parent.props.thumbnailsPosition === 'bottom',
|
|
145
|
+
},
|
|
146
|
+
|
|
147
|
+
// Misc
|
|
148
|
+
'overflow-auto',
|
|
149
|
+
'cursor-pointer',
|
|
150
|
+
'opacity-50',
|
|
151
|
+
|
|
152
|
+
// States
|
|
153
|
+
'[&[data-p-active="true"]]:opacity-100',
|
|
154
|
+
'hover:opacity-100',
|
|
155
|
+
|
|
156
|
+
// Transitions
|
|
157
|
+
'transition-opacity duration-300',
|
|
158
|
+
],
|
|
159
|
+
}),
|
|
160
|
+
nextthumbnailbutton: {
|
|
161
|
+
class: [
|
|
162
|
+
// Positioning
|
|
163
|
+
'self-center relative',
|
|
164
|
+
|
|
165
|
+
// Display & Flexbox
|
|
166
|
+
'flex shrink-0 justify-center items-center overflow-hidden',
|
|
167
|
+
|
|
168
|
+
// Spacing
|
|
169
|
+
'm-2',
|
|
170
|
+
|
|
171
|
+
// Appearance
|
|
172
|
+
'bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out',
|
|
173
|
+
|
|
174
|
+
// Hover Effects
|
|
175
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
176
|
+
|
|
177
|
+
// Focus Effects
|
|
178
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
179
|
+
],
|
|
180
|
+
},
|
|
181
|
+
indicators: ({ parent }) => ({
|
|
182
|
+
class: [
|
|
183
|
+
// flex
|
|
184
|
+
'flex items-center justify-center',
|
|
185
|
+
|
|
186
|
+
// Spacing
|
|
187
|
+
'p-4',
|
|
188
|
+
|
|
189
|
+
// Indicators Position
|
|
190
|
+
{
|
|
191
|
+
'order-2': parent.props.indicatorsPosition == 'bottom',
|
|
192
|
+
'order-1': parent.props.indicatorsPosition == 'top',
|
|
193
|
+
'order-1 flex-col': parent.props.indicatorsPosition == 'left',
|
|
194
|
+
'flex-col order-2': parent.props.indicatorsPosition == 'right',
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
'absolute z-10 bg-black/50': parent.props.showIndicatorsOnItem,
|
|
198
|
+
},
|
|
199
|
+
|
|
200
|
+
{
|
|
201
|
+
'bottom-0 left-0 w-full items-start':
|
|
202
|
+
parent.props.indicatorsPosition == 'bottom' &&
|
|
203
|
+
parent.props.showIndicatorsOnItem,
|
|
204
|
+
'top-0 left-0 w-full items-start':
|
|
205
|
+
parent.props.indicatorsPosition == 'top' &&
|
|
206
|
+
parent.props.showIndicatorsOnItem,
|
|
207
|
+
'left-0 top-0 h-full items-start':
|
|
208
|
+
parent.props.indicatorsPosition == 'left' &&
|
|
209
|
+
parent.props.showIndicatorsOnItem,
|
|
210
|
+
'right-0 top-0 h-full items-start':
|
|
211
|
+
parent.props.indicatorsPosition == 'right' &&
|
|
212
|
+
parent.props.showIndicatorsOnItem,
|
|
213
|
+
},
|
|
214
|
+
],
|
|
215
|
+
}),
|
|
216
|
+
indicator: ({ parent }) => ({
|
|
217
|
+
class: [
|
|
218
|
+
{
|
|
219
|
+
'mr-2':
|
|
220
|
+
parent.props.indicatorsPosition == 'bottom' ||
|
|
221
|
+
parent.props.indicatorsPosition == 'top',
|
|
222
|
+
'mb-2':
|
|
223
|
+
parent.props.indicatorsPosition == 'left' ||
|
|
224
|
+
parent.props.indicatorsPosition == 'right',
|
|
225
|
+
},
|
|
226
|
+
],
|
|
227
|
+
}),
|
|
228
|
+
indicatorbutton: ({ context }) => ({
|
|
229
|
+
class: [
|
|
230
|
+
// Size
|
|
231
|
+
'w-4 h-4',
|
|
232
|
+
|
|
233
|
+
// Appearance
|
|
234
|
+
'rounded-full transition duration-200',
|
|
235
|
+
|
|
236
|
+
// Focus Effects
|
|
237
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
238
|
+
|
|
239
|
+
// Conditional Appearance: Not Highlighted
|
|
240
|
+
{
|
|
241
|
+
'bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600':
|
|
242
|
+
!context.highlighted,
|
|
243
|
+
},
|
|
244
|
+
|
|
245
|
+
// Conditional Appearance: Highlighted
|
|
246
|
+
{ 'bg-primary hover:bg-primary-hover': context.highlighted },
|
|
247
|
+
],
|
|
248
|
+
}),
|
|
249
|
+
mask: {
|
|
250
|
+
class: [
|
|
251
|
+
'fixed top-0 left-0 w-full h-full',
|
|
252
|
+
'flex items-center justify-center',
|
|
253
|
+
'bg-black/90',
|
|
254
|
+
],
|
|
255
|
+
},
|
|
256
|
+
closebutton: {
|
|
257
|
+
class: [
|
|
258
|
+
// Positioning
|
|
259
|
+
'!absolute top-0 right-0',
|
|
260
|
+
|
|
261
|
+
// Display & Flexbox
|
|
262
|
+
'flex justify-center items-center overflow-hidden',
|
|
263
|
+
|
|
264
|
+
// Spacing
|
|
265
|
+
'm-2',
|
|
266
|
+
|
|
267
|
+
// Appearance
|
|
268
|
+
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out',
|
|
269
|
+
|
|
270
|
+
// Hover Effect
|
|
271
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
272
|
+
|
|
273
|
+
// Focus Effects
|
|
274
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
275
|
+
],
|
|
276
|
+
},
|
|
277
|
+
closeicon: {
|
|
278
|
+
class: 'w-6 h-6',
|
|
279
|
+
},
|
|
280
|
+
previousitembutton: ({ parent }) => ({
|
|
281
|
+
class: [
|
|
282
|
+
// Display & Flexbox
|
|
283
|
+
'inline-flex justify-center items-center overflow-hidden',
|
|
284
|
+
|
|
285
|
+
// Appearance
|
|
286
|
+
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md',
|
|
287
|
+
{
|
|
288
|
+
'opacity-0 group-hover:opacity-100':
|
|
289
|
+
parent.props.showItemNavigatorsOnHover,
|
|
290
|
+
},
|
|
291
|
+
|
|
292
|
+
// Spacing
|
|
293
|
+
'mx-2',
|
|
294
|
+
|
|
295
|
+
// Positioning
|
|
296
|
+
'top-1/2 mt-[-0.5rem] left-0',
|
|
297
|
+
{
|
|
298
|
+
'!absolute': parent.props.showItemNavigators,
|
|
299
|
+
'!fixed': !parent.props.showItemNavigators,
|
|
300
|
+
},
|
|
301
|
+
|
|
302
|
+
// Hover Effect
|
|
303
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
304
|
+
|
|
305
|
+
// Focus Effects
|
|
306
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
307
|
+
],
|
|
308
|
+
}),
|
|
309
|
+
nextitembutton: ({ parent }) => ({
|
|
310
|
+
class: [
|
|
311
|
+
// Display & Flexbox
|
|
312
|
+
'inline-flex justify-center items-center overflow-hidden',
|
|
313
|
+
|
|
314
|
+
// Appearance
|
|
315
|
+
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md',
|
|
316
|
+
{
|
|
317
|
+
'opacity-0 group-hover:opacity-100':
|
|
318
|
+
parent.props.showItemNavigatorsOnHover,
|
|
319
|
+
},
|
|
320
|
+
|
|
321
|
+
// Spacing
|
|
322
|
+
'mx-2',
|
|
323
|
+
|
|
324
|
+
// Positioning
|
|
325
|
+
'top-1/2 mt-[-0.5rem] right-0',
|
|
326
|
+
{
|
|
327
|
+
'!absolute': parent.props.showItemNavigators,
|
|
328
|
+
'!fixed': !parent.props.showItemNavigators,
|
|
329
|
+
},
|
|
330
|
+
|
|
331
|
+
// Hover Effect
|
|
332
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
333
|
+
|
|
334
|
+
// Focus Effects
|
|
335
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
336
|
+
],
|
|
337
|
+
}),
|
|
338
|
+
caption: {
|
|
339
|
+
class: [
|
|
340
|
+
// Positioning
|
|
341
|
+
'absolute bottom-0 left-0 w-full',
|
|
342
|
+
|
|
343
|
+
// Appearance
|
|
344
|
+
'bg-black/50 text-white p-4',
|
|
345
|
+
],
|
|
346
|
+
},
|
|
347
|
+
transition: {
|
|
348
|
+
enterFromClass: 'opacity-0 scale-75',
|
|
349
|
+
enterActiveClass: 'transition-all duration-150 ease-in-out',
|
|
350
|
+
leaveActiveClass: 'transition-all duration-150 ease-in',
|
|
351
|
+
leaveToClass: 'opacity-0 scale-75',
|
|
352
|
+
},
|
|
353
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
css: `
|
|
3
|
+
*[data-pd-ripple="true"]{
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
span[data-p-ink-active="true"]{
|
|
8
|
+
animation: ripple 0.4s linear;
|
|
9
|
+
}
|
|
10
|
+
@keyframes ripple {
|
|
11
|
+
100% {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: scale(2.5);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.progress-spinner-circle {
|
|
18
|
+
stroke-dasharray: 89, 200;
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
|
|
21
|
+
stroke-linecap: round;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes p-progress-spinner-dash{
|
|
25
|
+
0% {
|
|
26
|
+
stroke-dasharray: 1, 200;
|
|
27
|
+
stroke-dashoffset: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
50% {
|
|
31
|
+
stroke-dasharray: 89, 200;
|
|
32
|
+
stroke-dashoffset: -35px;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
stroke-dasharray: 89, 200;
|
|
36
|
+
stroke-dashoffset: -124px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes p-progress-spinner-color {
|
|
40
|
+
100%, 0% {
|
|
41
|
+
stroke: #ff5757;
|
|
42
|
+
}
|
|
43
|
+
40% {
|
|
44
|
+
stroke: #696cff;
|
|
45
|
+
}
|
|
46
|
+
66% {
|
|
47
|
+
stroke: #1ea97c;
|
|
48
|
+
}
|
|
49
|
+
80%, 90% {
|
|
50
|
+
stroke: #cc8925;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.progressbar-value-animate::after {
|
|
55
|
+
will-change: left, right;
|
|
56
|
+
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
57
|
+
}
|
|
58
|
+
.progressbar-value-animate::before {
|
|
59
|
+
will-change: left, right;
|
|
60
|
+
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
61
|
+
}
|
|
62
|
+
@keyframes p-progressbar-indeterminate-anim {
|
|
63
|
+
0% {
|
|
64
|
+
left: -35%;
|
|
65
|
+
right: 100%;
|
|
66
|
+
}
|
|
67
|
+
60% {
|
|
68
|
+
left: 100%;
|
|
69
|
+
right: -90%;
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
left: 100%;
|
|
73
|
+
right: -90%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-fadein {
|
|
78
|
+
animation: p-fadein 250ms linear;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes p-fadein {
|
|
82
|
+
0% {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
100% {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`,
|
|
90
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
'[&>input]:w-full',
|
|
6
|
+
|
|
7
|
+
'[&>*:first-child]:absolute',
|
|
8
|
+
'[&>*:first-child]:top-1/2',
|
|
9
|
+
'[&>*:first-child]:-mt-2',
|
|
10
|
+
'[&>*:first-child]:leading-none',
|
|
11
|
+
'[&>*:first-child]:text-surface-900/60 dark:[&>*:first-child]:text-white/60',
|
|
12
|
+
{
|
|
13
|
+
'[&>*:first-child]:right-3': props.iconPosition === 'right',
|
|
14
|
+
'[&>*:first-child]:left-3': props.iconPosition === 'left',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
'[&>*:last-child]:pr-10': props.iconPosition === 'right',
|
|
18
|
+
'[&>*:last-child]:pl-10': props.iconPosition === 'left',
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
}),
|
|
22
|
+
}
|
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: 'relative inline-block',
|
|
4
|
+
},
|
|
5
|
+
button: {
|
|
6
|
+
class: [
|
|
7
|
+
// Flexbox & Alignment
|
|
8
|
+
'flex items-center justify-center',
|
|
9
|
+
|
|
10
|
+
// Positioning
|
|
11
|
+
'absolute',
|
|
12
|
+
|
|
13
|
+
// Shape
|
|
14
|
+
'inset-0 opacity-0 transition-opacity duration-300',
|
|
15
|
+
|
|
16
|
+
// Color
|
|
17
|
+
'bg-transparent text-surface-100',
|
|
18
|
+
|
|
19
|
+
// States
|
|
20
|
+
'hover:opacity-100 hover:cursor-pointer hover:bg-black/50 hover:bg-opacity-50',
|
|
21
|
+
],
|
|
22
|
+
},
|
|
23
|
+
mask: {
|
|
24
|
+
class: [
|
|
25
|
+
// Flexbox & Alignment
|
|
26
|
+
'flex items-center justify-center',
|
|
27
|
+
|
|
28
|
+
// Positioning
|
|
29
|
+
'fixed top-0 left-0',
|
|
30
|
+
|
|
31
|
+
// Sizing
|
|
32
|
+
'w-full h-full',
|
|
33
|
+
|
|
34
|
+
// Color
|
|
35
|
+
'bg-black/90',
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
toolbar: {
|
|
39
|
+
class: [
|
|
40
|
+
// Flexbox
|
|
41
|
+
'flex',
|
|
42
|
+
|
|
43
|
+
// Positioning
|
|
44
|
+
'absolute top-0 right-0',
|
|
45
|
+
|
|
46
|
+
// Spacing
|
|
47
|
+
'p-4',
|
|
48
|
+
],
|
|
49
|
+
},
|
|
50
|
+
rotaterightbutton: {
|
|
51
|
+
class: [
|
|
52
|
+
'z-20',
|
|
53
|
+
|
|
54
|
+
// Flexbox & Alignment
|
|
55
|
+
'flex justify-center items-center',
|
|
56
|
+
|
|
57
|
+
// Size
|
|
58
|
+
'w-12 h-12',
|
|
59
|
+
|
|
60
|
+
// Spacing
|
|
61
|
+
'mr-2',
|
|
62
|
+
|
|
63
|
+
// Shape
|
|
64
|
+
'rounded-full',
|
|
65
|
+
|
|
66
|
+
// Color
|
|
67
|
+
'text-white bg-transparent',
|
|
68
|
+
|
|
69
|
+
// States
|
|
70
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
71
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
72
|
+
|
|
73
|
+
// Transition
|
|
74
|
+
'transition duration-200 ease-in-out',
|
|
75
|
+
],
|
|
76
|
+
},
|
|
77
|
+
rotaterighticon: {
|
|
78
|
+
class: 'w-6 h-6',
|
|
79
|
+
},
|
|
80
|
+
rotateleftbutton: {
|
|
81
|
+
class: [
|
|
82
|
+
'z-20',
|
|
83
|
+
|
|
84
|
+
// Flexbox & Alignment
|
|
85
|
+
'flex justify-center items-center',
|
|
86
|
+
|
|
87
|
+
// Size
|
|
88
|
+
'w-12 h-12',
|
|
89
|
+
|
|
90
|
+
// Spacing
|
|
91
|
+
'mr-2',
|
|
92
|
+
|
|
93
|
+
// Shape
|
|
94
|
+
'rounded-full',
|
|
95
|
+
|
|
96
|
+
// Color
|
|
97
|
+
'text-white bg-transparent',
|
|
98
|
+
|
|
99
|
+
// States
|
|
100
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
101
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
102
|
+
|
|
103
|
+
// Transition
|
|
104
|
+
'transition duration-200 ease-in-out',
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
rotatelefticon: {
|
|
108
|
+
class: 'w-6 h-6',
|
|
109
|
+
},
|
|
110
|
+
zoomoutbutton: {
|
|
111
|
+
class: [
|
|
112
|
+
'z-20',
|
|
113
|
+
|
|
114
|
+
// Flexbox & Alignment
|
|
115
|
+
'flex justify-center items-center',
|
|
116
|
+
|
|
117
|
+
// Size
|
|
118
|
+
'w-12 h-12',
|
|
119
|
+
|
|
120
|
+
// Spacing
|
|
121
|
+
'mr-2',
|
|
122
|
+
|
|
123
|
+
// Shape
|
|
124
|
+
'rounded-full',
|
|
125
|
+
|
|
126
|
+
// Color
|
|
127
|
+
'text-white bg-transparent',
|
|
128
|
+
|
|
129
|
+
// States
|
|
130
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
131
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
132
|
+
|
|
133
|
+
// Transition
|
|
134
|
+
'transition duration-200 ease-in-out',
|
|
135
|
+
],
|
|
136
|
+
},
|
|
137
|
+
zoomouticon: {
|
|
138
|
+
class: 'w-6 h-6',
|
|
139
|
+
},
|
|
140
|
+
zoominbutton: {
|
|
141
|
+
class: [
|
|
142
|
+
'z-20',
|
|
143
|
+
|
|
144
|
+
// Flexbox & Alignment
|
|
145
|
+
'flex justify-center items-center',
|
|
146
|
+
|
|
147
|
+
// Size
|
|
148
|
+
'w-12 h-12',
|
|
149
|
+
|
|
150
|
+
// Spacing
|
|
151
|
+
'mr-2',
|
|
152
|
+
|
|
153
|
+
// Shape
|
|
154
|
+
'rounded-full',
|
|
155
|
+
|
|
156
|
+
// Color
|
|
157
|
+
'text-white bg-transparent',
|
|
158
|
+
|
|
159
|
+
// States
|
|
160
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
161
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
162
|
+
|
|
163
|
+
// Transition
|
|
164
|
+
'transition duration-200 ease-in-out',
|
|
165
|
+
],
|
|
166
|
+
},
|
|
167
|
+
zoominicon: {
|
|
168
|
+
class: 'w-6 h-6',
|
|
169
|
+
},
|
|
170
|
+
closebutton: {
|
|
171
|
+
class: [
|
|
172
|
+
'z-20',
|
|
173
|
+
|
|
174
|
+
// Flexbox & Alignment
|
|
175
|
+
'flex justify-center items-center',
|
|
176
|
+
|
|
177
|
+
// Size
|
|
178
|
+
'w-12 h-12',
|
|
179
|
+
|
|
180
|
+
// Spacing
|
|
181
|
+
'mr-2',
|
|
182
|
+
|
|
183
|
+
// Shape
|
|
184
|
+
'rounded-full',
|
|
185
|
+
|
|
186
|
+
// Color
|
|
187
|
+
'text-white bg-transparent',
|
|
188
|
+
|
|
189
|
+
// States
|
|
190
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
191
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
192
|
+
|
|
193
|
+
// Transition
|
|
194
|
+
'transition duration-200 ease-in-out',
|
|
195
|
+
],
|
|
196
|
+
},
|
|
197
|
+
closeicon: {
|
|
198
|
+
class: 'w-6 h-6',
|
|
199
|
+
},
|
|
200
|
+
transition: {
|
|
201
|
+
enterFromClass: 'opacity-0 scale-75',
|
|
202
|
+
enterActiveClass: 'transition-all duration-150 ease-in-out',
|
|
203
|
+
leaveActiveClass: 'transition-all duration-150 ease-in',
|
|
204
|
+
leaveToClass: 'opacity-0 scale-75',
|
|
205
|
+
},
|
|
206
|
+
}
|