@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,281 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
'flex xl:flex-row flex-col',
|
|
6
|
+
],
|
|
7
|
+
},
|
|
8
|
+
controls: {
|
|
9
|
+
class: [
|
|
10
|
+
// Flexbox & Alignment
|
|
11
|
+
'flex xl:flex-col justify-center gap-2',
|
|
12
|
+
|
|
13
|
+
// Spacing
|
|
14
|
+
'p-[1.125rem]',
|
|
15
|
+
],
|
|
16
|
+
},
|
|
17
|
+
moveupbutton: {
|
|
18
|
+
root: ({ context }) => ({
|
|
19
|
+
class: [
|
|
20
|
+
// Flexbox & Alignment
|
|
21
|
+
'relative inline-flex items-center justify-center',
|
|
22
|
+
|
|
23
|
+
// Shape
|
|
24
|
+
'rounded-md',
|
|
25
|
+
|
|
26
|
+
// Color
|
|
27
|
+
'text-surface-700 dark:text-surface-0',
|
|
28
|
+
'bg-surface-100 dark:bg-surface-800',
|
|
29
|
+
'border border-surface-100 dark:border-surface-800',
|
|
30
|
+
|
|
31
|
+
// Spacing & Size
|
|
32
|
+
'w-10',
|
|
33
|
+
'm-0',
|
|
34
|
+
'px-0 py-2',
|
|
35
|
+
|
|
36
|
+
// Transitions
|
|
37
|
+
'transition duration-200 ease-in-out',
|
|
38
|
+
|
|
39
|
+
// State
|
|
40
|
+
'hover:bg-surface-200 dark:hover:bg-[rgba(255,255,255,0.03)] hover:border-surface-200 dark:hover:border-surface-700',
|
|
41
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
42
|
+
'focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
43
|
+
{ 'cursor-default pointer-events-none opacity-60': context.disabled },
|
|
44
|
+
|
|
45
|
+
// Interactivity
|
|
46
|
+
'cursor-pointer user-select-none',
|
|
47
|
+
],
|
|
48
|
+
}),
|
|
49
|
+
label: {
|
|
50
|
+
class: [
|
|
51
|
+
//Font
|
|
52
|
+
'leading-[normal]',
|
|
53
|
+
|
|
54
|
+
// Flexbox
|
|
55
|
+
'flex-initial',
|
|
56
|
+
|
|
57
|
+
// Size
|
|
58
|
+
'w-0',
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
movedownbutton: {
|
|
63
|
+
root: ({ context }) => ({
|
|
64
|
+
class: [
|
|
65
|
+
// Flexbox & Alignment
|
|
66
|
+
'relative inline-flex items-center justify-center',
|
|
67
|
+
|
|
68
|
+
// Shape
|
|
69
|
+
'rounded-md',
|
|
70
|
+
|
|
71
|
+
// Color
|
|
72
|
+
'text-surface-700 dark:text-surface-0',
|
|
73
|
+
'bg-surface-100 dark:bg-surface-800',
|
|
74
|
+
'border border-surface-100 dark:border-surface-800',
|
|
75
|
+
|
|
76
|
+
// Spacing & Size
|
|
77
|
+
'w-10',
|
|
78
|
+
'm-0',
|
|
79
|
+
'px-0 py-2',
|
|
80
|
+
|
|
81
|
+
// Transitions
|
|
82
|
+
'transition duration-200 ease-in-out',
|
|
83
|
+
|
|
84
|
+
// State
|
|
85
|
+
'hover:bg-surface-200 dark:hover:bg-[rgba(255,255,255,0.03)] hover:border-surface-200 dark:hover:border-surface-700',
|
|
86
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
87
|
+
'focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
88
|
+
{ 'cursor-default pointer-events-none opacity-60': context.disabled },
|
|
89
|
+
|
|
90
|
+
// Interactivity
|
|
91
|
+
'cursor-pointer user-select-none',
|
|
92
|
+
],
|
|
93
|
+
}),
|
|
94
|
+
label: {
|
|
95
|
+
class: [
|
|
96
|
+
//Font
|
|
97
|
+
'leading-[normal]',
|
|
98
|
+
|
|
99
|
+
// Flexbox
|
|
100
|
+
'flex-initial',
|
|
101
|
+
|
|
102
|
+
// Size
|
|
103
|
+
'w-0',
|
|
104
|
+
],
|
|
105
|
+
},
|
|
106
|
+
},
|
|
107
|
+
movetopbutton: {
|
|
108
|
+
root: ({ context }) => ({
|
|
109
|
+
class: [
|
|
110
|
+
// Flexbox & Alignment
|
|
111
|
+
'relative inline-flex items-center justify-center',
|
|
112
|
+
|
|
113
|
+
// Shape
|
|
114
|
+
'rounded-md',
|
|
115
|
+
|
|
116
|
+
// Color
|
|
117
|
+
'text-surface-700 dark:text-surface-0',
|
|
118
|
+
'bg-surface-100 dark:bg-surface-800',
|
|
119
|
+
'border border-surface-100 dark:border-surface-800',
|
|
120
|
+
|
|
121
|
+
// Spacing & Size
|
|
122
|
+
'w-10',
|
|
123
|
+
'm-0',
|
|
124
|
+
'px-0 py-2',
|
|
125
|
+
|
|
126
|
+
// Transitions
|
|
127
|
+
'transition duration-200 ease-in-out',
|
|
128
|
+
|
|
129
|
+
// State
|
|
130
|
+
'hover:bg-surface-200 dark:hover:bg-[rgba(255,255,255,0.03)] hover:border-surface-200 dark:hover:border-surface-700',
|
|
131
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
132
|
+
'focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
133
|
+
{ 'cursor-default pointer-events-none opacity-60': context.disabled },
|
|
134
|
+
|
|
135
|
+
// Interactivity
|
|
136
|
+
'cursor-pointer user-select-none',
|
|
137
|
+
],
|
|
138
|
+
}),
|
|
139
|
+
label: {
|
|
140
|
+
class: [
|
|
141
|
+
//Font
|
|
142
|
+
'leading-[normal]',
|
|
143
|
+
|
|
144
|
+
// Flexbox
|
|
145
|
+
'flex-initial',
|
|
146
|
+
|
|
147
|
+
// Size
|
|
148
|
+
'w-0',
|
|
149
|
+
],
|
|
150
|
+
},
|
|
151
|
+
},
|
|
152
|
+
movebottombutton: {
|
|
153
|
+
root: ({ context }) => ({
|
|
154
|
+
class: [
|
|
155
|
+
// Flexbox & Alignment
|
|
156
|
+
'relative inline-flex items-center justify-center',
|
|
157
|
+
|
|
158
|
+
// Shape
|
|
159
|
+
'rounded-md',
|
|
160
|
+
|
|
161
|
+
// Color
|
|
162
|
+
'text-surface-700 dark:text-surface-0',
|
|
163
|
+
'bg-surface-100 dark:bg-surface-800',
|
|
164
|
+
'border border-surface-100 dark:border-surface-800',
|
|
165
|
+
|
|
166
|
+
// Spacing & Size
|
|
167
|
+
'w-10',
|
|
168
|
+
'm-0',
|
|
169
|
+
'px-0 py-2',
|
|
170
|
+
|
|
171
|
+
// Transitions
|
|
172
|
+
'transition duration-200 ease-in-out',
|
|
173
|
+
|
|
174
|
+
// State
|
|
175
|
+
'hover:bg-surface-200 dark:hover:bg-[rgba(255,255,255,0.03)] hover:border-surface-200 dark:hover:border-surface-700',
|
|
176
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
177
|
+
'focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
178
|
+
{ 'cursor-default pointer-events-none opacity-60': context.disabled },
|
|
179
|
+
|
|
180
|
+
// Interactivity
|
|
181
|
+
'cursor-pointer user-select-none',
|
|
182
|
+
],
|
|
183
|
+
}),
|
|
184
|
+
label: {
|
|
185
|
+
class: [
|
|
186
|
+
//Font
|
|
187
|
+
'leading-[normal]',
|
|
188
|
+
|
|
189
|
+
// Flexbox
|
|
190
|
+
'flex-initial',
|
|
191
|
+
|
|
192
|
+
// Size
|
|
193
|
+
'w-0',
|
|
194
|
+
],
|
|
195
|
+
},
|
|
196
|
+
},
|
|
197
|
+
container: {
|
|
198
|
+
class: [
|
|
199
|
+
'flex-auto',
|
|
200
|
+
|
|
201
|
+
// Shape
|
|
202
|
+
'rounded-md',
|
|
203
|
+
|
|
204
|
+
// Color
|
|
205
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
206
|
+
'border border-surface-200 dark:border-surface-700',
|
|
207
|
+
'outline-none',
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
header: {
|
|
211
|
+
class: [
|
|
212
|
+
'font-semibold',
|
|
213
|
+
|
|
214
|
+
// Shape
|
|
215
|
+
'border-0 rounded-t-md',
|
|
216
|
+
|
|
217
|
+
// Spacing
|
|
218
|
+
'pt-3 px-4 pb-2',
|
|
219
|
+
|
|
220
|
+
// Color
|
|
221
|
+
'text-surface-700 dark:text-white/80',
|
|
222
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
223
|
+
],
|
|
224
|
+
},
|
|
225
|
+
list: {
|
|
226
|
+
class: [
|
|
227
|
+
// Spacing
|
|
228
|
+
'list-none m-0',
|
|
229
|
+
'p-1',
|
|
230
|
+
|
|
231
|
+
// Size
|
|
232
|
+
'min-h-[12rem] max-h-[24rem]',
|
|
233
|
+
|
|
234
|
+
// Shape
|
|
235
|
+
'rounded-b-md',
|
|
236
|
+
|
|
237
|
+
// Color
|
|
238
|
+
'text-surface-700 dark:text-white/80',
|
|
239
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
240
|
+
|
|
241
|
+
// Focus & Outline
|
|
242
|
+
'outline-none',
|
|
243
|
+
|
|
244
|
+
// Misc
|
|
245
|
+
'overflow-auto',
|
|
246
|
+
],
|
|
247
|
+
},
|
|
248
|
+
item: ({ context }) => ({
|
|
249
|
+
class: [
|
|
250
|
+
// Position
|
|
251
|
+
'relative',
|
|
252
|
+
|
|
253
|
+
// Spacing
|
|
254
|
+
'py-2 px-3 m-0 my-[2px] first:mt-0 last:mb-0',
|
|
255
|
+
|
|
256
|
+
// Shape
|
|
257
|
+
'border-none',
|
|
258
|
+
'rounded-md',
|
|
259
|
+
|
|
260
|
+
// Transition
|
|
261
|
+
'transition duration-200',
|
|
262
|
+
|
|
263
|
+
// Color
|
|
264
|
+
{
|
|
265
|
+
'text-surface-700 dark:text-white/80 bg-surface-0 dark:bg-surface-900':
|
|
266
|
+
!context.active,
|
|
267
|
+
},
|
|
268
|
+
{ 'text-primary-highlight-inverse bg-primary-highlight': context.active },
|
|
269
|
+
|
|
270
|
+
// State
|
|
271
|
+
{
|
|
272
|
+
'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
|
|
273
|
+
!context.active,
|
|
274
|
+
'hover:bg-primary-highlight-hover': context.active,
|
|
275
|
+
},
|
|
276
|
+
|
|
277
|
+
// Misc
|
|
278
|
+
'cursor-pointer overflow-hidden',
|
|
279
|
+
],
|
|
280
|
+
}),
|
|
281
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
table: {
|
|
3
|
+
class: [
|
|
4
|
+
// Spacing & Position
|
|
5
|
+
'mx-auto my-0',
|
|
6
|
+
|
|
7
|
+
// Table Style
|
|
8
|
+
'border-spacing-0 border-separate',
|
|
9
|
+
],
|
|
10
|
+
},
|
|
11
|
+
cell: {
|
|
12
|
+
class: [
|
|
13
|
+
// Alignment
|
|
14
|
+
'text-center align-top',
|
|
15
|
+
|
|
16
|
+
// Spacing
|
|
17
|
+
'py-0 px-3',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
node: ({ context }) => ({
|
|
21
|
+
class: [
|
|
22
|
+
'relative inline-block',
|
|
23
|
+
|
|
24
|
+
// Spacing
|
|
25
|
+
'py-3 px-4',
|
|
26
|
+
|
|
27
|
+
// Shape
|
|
28
|
+
'border',
|
|
29
|
+
'rounded-md',
|
|
30
|
+
'border-surface-200 dark:border-surface-700',
|
|
31
|
+
// Color
|
|
32
|
+
{
|
|
33
|
+
'text-surface-600 dark:text-white/80': !context?.selected,
|
|
34
|
+
'bg-surface-0 dark:bg-surface-900': !context?.selected,
|
|
35
|
+
'text-primary-highlight-inverse': context?.selected,
|
|
36
|
+
'bg-primary-highlight': context?.selected,
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
// States
|
|
40
|
+
{
|
|
41
|
+
'hover:bg-surface-100 dark:hover:bg-surface-800':
|
|
42
|
+
context?.selectable && !context?.selected,
|
|
43
|
+
'hover:bg-primary-highlight-hover':
|
|
44
|
+
context?.selectable && context?.selected,
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
{ 'cursor-pointer': context?.selectable },
|
|
48
|
+
],
|
|
49
|
+
}),
|
|
50
|
+
linecell: {
|
|
51
|
+
class: [
|
|
52
|
+
// Alignment
|
|
53
|
+
'text-center align-top',
|
|
54
|
+
|
|
55
|
+
// Spacing
|
|
56
|
+
'py-0 px-3',
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
linedown: {
|
|
60
|
+
class: [
|
|
61
|
+
// Spacing
|
|
62
|
+
'mx-auto my-0',
|
|
63
|
+
|
|
64
|
+
// Size
|
|
65
|
+
'w-px h-[20px]',
|
|
66
|
+
|
|
67
|
+
// Color
|
|
68
|
+
'bg-surface-200 dark:bg-surface-700',
|
|
69
|
+
],
|
|
70
|
+
},
|
|
71
|
+
lineleft: ({ context }) => ({
|
|
72
|
+
class: [
|
|
73
|
+
// Alignment
|
|
74
|
+
'text-center align-top',
|
|
75
|
+
|
|
76
|
+
// Spacing
|
|
77
|
+
'py-0 px-3',
|
|
78
|
+
|
|
79
|
+
// Shape
|
|
80
|
+
'rounded-none border-r',
|
|
81
|
+
{ 'border-t': context.lineTop },
|
|
82
|
+
|
|
83
|
+
// Color
|
|
84
|
+
'border-surface-200 dark:border-surface-700',
|
|
85
|
+
],
|
|
86
|
+
}),
|
|
87
|
+
lineright: ({ context }) => ({
|
|
88
|
+
class: [
|
|
89
|
+
// Alignment
|
|
90
|
+
'text-center align-top',
|
|
91
|
+
|
|
92
|
+
// Spacing
|
|
93
|
+
'py-0 px-3',
|
|
94
|
+
|
|
95
|
+
// Shape
|
|
96
|
+
'rounded-none',
|
|
97
|
+
|
|
98
|
+
// Color
|
|
99
|
+
{
|
|
100
|
+
'border-t border-surface-200 dark:border-surface-700': context.lineTop,
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
}),
|
|
104
|
+
nodecell: {
|
|
105
|
+
class: 'text-center align-top py-0 px-3',
|
|
106
|
+
},
|
|
107
|
+
nodetoggler: {
|
|
108
|
+
class: [
|
|
109
|
+
// Position
|
|
110
|
+
'absolute bottom-[-0.75rem] left-2/4 -ml-3',
|
|
111
|
+
'z-20',
|
|
112
|
+
|
|
113
|
+
// Flexbox
|
|
114
|
+
'flex items-center justify-center',
|
|
115
|
+
|
|
116
|
+
// Size
|
|
117
|
+
'w-6 h-6',
|
|
118
|
+
|
|
119
|
+
// Shape
|
|
120
|
+
'rounded-full',
|
|
121
|
+
'border border-surface-200 dark:border-surface-700',
|
|
122
|
+
|
|
123
|
+
// Color
|
|
124
|
+
'bg-inherit text-inherit',
|
|
125
|
+
|
|
126
|
+
// Focus
|
|
127
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
128
|
+
|
|
129
|
+
// Misc
|
|
130
|
+
'cursor-pointer no-underline select-none',
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
nodetogglericon: {
|
|
134
|
+
class: [
|
|
135
|
+
// Position
|
|
136
|
+
'static inline-block',
|
|
137
|
+
|
|
138
|
+
// Size
|
|
139
|
+
'w-4 h-4',
|
|
140
|
+
],
|
|
141
|
+
},
|
|
142
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Shape
|
|
5
|
+
'rounded-md shadow-lg',
|
|
6
|
+
|
|
7
|
+
// Position
|
|
8
|
+
'absolute left-0 top-0 mt-2',
|
|
9
|
+
'z-40 transform origin-center',
|
|
10
|
+
|
|
11
|
+
// Color
|
|
12
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
13
|
+
'text-surface-700 dark:text-surface-0/80',
|
|
14
|
+
|
|
15
|
+
// Before: Arrow
|
|
16
|
+
'before:absolute before:w-0 before:-top-3 before:h-0 before:border-transparent before:border-solid before:ml-[calc(var(--overlayArrowLeft,0)+1.25rem)] before:border-x-[10px] before:border-b-[10px] before:border-t-0 before:border-b-surface-200 dark:before:border-b-surface-700',
|
|
17
|
+
'after:absolute after:w-0 after:-top-[0.54rem] after:h-0 after:border-transparent after:border-solid after:ml-[calc(var(--overlayArrowLeft,0)+1.3rem)] after:border-x-[9px] after:border-b-[8px] after:border-t-0 after:border-b-surface-0 dark:after:border-b-surface-900',
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
content: {
|
|
21
|
+
class: [
|
|
22
|
+
'p-5 items-center flex',
|
|
23
|
+
'rounded-lg',
|
|
24
|
+
'border border-surface-200 dark:border-surface-700',
|
|
25
|
+
],
|
|
26
|
+
},
|
|
27
|
+
transition: {
|
|
28
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
29
|
+
enterActiveClass:
|
|
30
|
+
'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
31
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
32
|
+
leaveToClass: 'opacity-0',
|
|
33
|
+
},
|
|
34
|
+
}
|