@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.
- package/dist/component-lib.js +6960 -0
- package/dist/component-lib.umd.cjs +98 -0
- package/dist/style.css +1 -0
- package/dist/vite.svg +16 -0
- package/package.json +93 -84
- package/src/assets/fonts/GT-Walsheim-Bold.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Bold.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Bold.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Regular.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-Medium.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Medium.woff2 +0 -0
- package/src/assets/fonts/GT-Walsheim-Regular.woff +0 -0
- package/src/assets/fonts/GT-Walsheim-Regular.woff2 +0 -0
- package/src/assets/fonts/fonts.scss +60 -0
- package/src/assets/fonts/notosanssc-bold-webfont.woff +0 -0
- package/src/assets/fonts/notosanssc-bold-webfont.woff2 +0 -0
- package/src/assets/fonts/notosanssc-regular-webfont.woff +0 -0
- package/src/assets/fonts/notosanssc-regular-webfont.woff2 +0 -0
- package/src/assets/main.css +18 -114
- package/src/assets/theme.css +5 -1
- package/src/components/{types → Accordion}/Accordion.ts +8 -6
- package/src/components/Accordion/Accordion.vue +66 -0
- package/src/components/Accordion/AccordionItem.ts +25 -0
- package/src/components/Accordion/AccordionItem.vue +104 -0
- package/src/components/{AccordionItem.vue → Accordion/AccordionListItem.vue} +22 -14
- package/src/components/Accordion/AccordionTileItem.vue +75 -0
- package/src/components/CTA/CTA.ts +22 -0
- package/src/components/CTA/CTA.vue +65 -0
- package/src/components/CarouselModule/CarouselModule.ts +20 -0
- package/src/components/{CarouselModule.vue → CarouselModule/CarouselModule.vue} +25 -7
- package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +12 -0
- package/src/components/{ContainerCollectionModule.vue → ContainerCollectionModule/ContainerCollectionModule.vue} +12 -3
- package/src/components/ContainerModule/ContainerModule.ts +69 -0
- package/src/components/{ContainerModule.vue → ContainerModule/ContainerModule.vue} +33 -36
- package/src/components/ContentModule/ContentModule.ts +31 -0
- package/src/components/ContentModule/ContentModule.vue +65 -0
- package/src/components/{types → FooterNavigation}/FooterNavigation.ts +3 -2
- package/src/components/{FooterNavigation.vue → FooterNavigation/FooterNavigation.vue} +4 -2
- package/src/components/Image/Image.vue +17 -0
- package/src/components/{types → LogoCollectionModule}/LogoCollectionModule.ts +3 -3
- package/src/components/{LogoCollectionModule.vue → LogoCollectionModule/LogoCollectionModule.vue} +13 -3
- package/src/components/{types → NavigationElement}/NavigationElement.ts +6 -3
- package/src/components/{NavigationElement.vue → NavigationElement/NavigationElement.vue} +18 -9
- package/src/components/{types → PrimaryNavigation}/PrimaryNavigation.ts +2 -2
- package/src/components/{PrimaryNavigation.vue → PrimaryNavigation/PrimaryNavigation.vue} +7 -4
- package/src/components/{types → SplitModule}/SplitModule.ts +6 -5
- package/src/components/SplitModule/SplitModule.vue +57 -0
- package/src/components/TestimonialModule/TestimonialModule.ts +22 -0
- package/src/components/TestimonialModule/TestimonialModule.vue +51 -0
- package/src/components/TileCollectionModule/TileCollectionModule.ts +18 -0
- package/src/components/TileCollectionModule/TileCollectionModule.vue +58 -0
- package/src/components/TileContent/TileContent.ts +60 -0
- package/src/components/{TileContent.vue → TileContent/TileContent.vue} +25 -14
- package/src/components/TileContent/TileContentIconTile.vue +83 -0
- package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +121 -0
- package/src/components/TileContent/TileContentImageTile.vue +80 -0
- package/src/components/TileContent/TileContentTextTile.vue +63 -0
- package/src/components/TileContent/TileContentVideoTile.vue +81 -0
- package/src/components/{types → Video}/Video.ts +1 -1
- package/src/components/{Video.vue → Video/Video.vue} +1 -1
- package/src/config/defaultPassthrough.ts +261 -0
- package/src/assets/usercard.jpg +0 -0
- package/src/assets/vue.svg +0 -1
- package/src/components/Accordion.vue +0 -33
- package/src/components/CTA.vue +0 -39
- package/src/components/ContentAndImage.vue +0 -34
- package/src/components/ContentMediaModule.vue +0 -50
- package/src/components/ContentModule.vue +0 -51
- package/src/components/IconChevron.vue +0 -107
- package/src/components/Image.vue +0 -15
- package/src/components/LogoContainerModule.vue +0 -30
- package/src/components/SplitModule.vue +0 -42
- package/src/components/Testimonial.vue +0 -48
- package/src/components/TestimonialModule.vue +0 -48
- package/src/components/TileCollection.vue +0 -37
- package/src/components/TileCollectionModule.vue +0 -45
- package/src/components/types/AccordionItem.ts +0 -19
- package/src/components/types/CTA.ts +0 -13
- package/src/components/types/CarouselModule.ts +0 -21
- package/src/components/types/ContainerCollectionModule.ts +0 -12
- package/src/components/types/ContainerModule.ts +0 -35
- package/src/components/types/ContentAndImage.ts +0 -14
- package/src/components/types/ContentMediaModule.ts +0 -14
- package/src/components/types/ContentModule.ts +0 -21
- package/src/components/types/LogoContainerModule.ts +0 -12
- package/src/components/types/Testimonial.ts +0 -17
- package/src/components/types/TileCollection.ts +0 -14
- package/src/components/types/TileContent.ts +0 -34
- package/src/components/types/index.ts +0 -10
- package/src/presets/aura/accordion/index.js +0 -81
- package/src/presets/aura/autocomplete/index.js +0 -280
- package/src/presets/aura/avatar/index.js +0 -46
- package/src/presets/aura/badge/index.js +0 -43
- package/src/presets/aura/badgedirective/index.js +0 -49
- package/src/presets/aura/blockui/index.js +0 -8
- package/src/presets/aura/breadcrumb/index.js +0 -63
- package/src/presets/aura/button/index.js +0 -511
- package/src/presets/aura/calendar/index.js +0 -702
- package/src/presets/aura/card/index.js +0 -53
- package/src/presets/aura/carousel/index.js +0 -160
- package/src/presets/aura/cascadeselect/index.js +0 -220
- package/src/presets/aura/checkbox/index.js +0 -107
- package/src/presets/aura/chip/index.js +0 -45
- package/src/presets/aura/chips/index.js +0 -126
- package/src/presets/aura/colorpicker/index.js +0 -132
- package/src/presets/aura/confirmpopup/index.js +0 -111
- package/src/presets/aura/contextmenu/index.js +0 -132
- package/src/presets/aura/datatable/index.js +0 -1290
- package/src/presets/aura/dataview/index.js +0 -40
- package/src/presets/aura/deferred/index.js +0 -3
- package/src/presets/aura/dialog/index.js +0 -250
- package/src/presets/aura/divider/index.js +0 -72
- package/src/presets/aura/dock/index.js +0 -97
- package/src/presets/aura/dropdown/index.js +0 -297
- package/src/presets/aura/fieldset/index.js +0 -95
- package/src/presets/aura/fileupload/index.js +0 -175
- package/src/presets/aura/floatlabel/index.js +0 -26
- package/src/presets/aura/galleria/index.js +0 -353
- package/src/presets/aura/global.js +0 -90
- package/src/presets/aura/iconfield/index.js +0 -22
- package/src/presets/aura/image/index.js +0 -206
- package/src/presets/aura/index.js +0 -181
- package/src/presets/aura/inlinemessage/index.js +0 -46
- package/src/presets/aura/inplace/index.js +0 -27
- package/src/presets/aura/inputgroup/index.js +0 -5
- package/src/presets/aura/inputgroupaddon/index.js +0 -28
- package/src/presets/aura/inputmask/index.js +0 -47
- package/src/presets/aura/inputnumber/index.js +0 -293
- package/src/presets/aura/inputotp/index.js +0 -69
- package/src/presets/aura/inputswitch/index.js +0 -94
- package/src/presets/aura/inputtext/index.js +0 -63
- package/src/presets/aura/knob/index.js +0 -47
- package/src/presets/aura/listbox/index.js +0 -158
- package/src/presets/aura/megamenu/index.js +0 -206
- package/src/presets/aura/menu/index.js +0 -122
- package/src/presets/aura/menubar/index.js +0 -184
- package/src/presets/aura/message/index.js +0 -112
- package/src/presets/aura/metergroup/index.js +0 -110
- package/src/presets/aura/multiselect/index.js +0 -579
- package/src/presets/aura/orderlist/index.js +0 -281
- package/src/presets/aura/organizationchart/index.js +0 -142
- package/src/presets/aura/overlaypanel/index.js +0 -34
- package/src/presets/aura/paginator/index.js +0 -566
- package/src/presets/aura/panel/index.js +0 -102
- package/src/presets/aura/panelmenu/index.js +0 -130
- package/src/presets/aura/password/index.js +0 -143
- package/src/presets/aura/picklist/index.js +0 -718
- package/src/presets/aura/progressbar/index.js +0 -64
- package/src/presets/aura/progressspinner/index.js +0 -51
- package/src/presets/aura/radiobutton/index.js +0 -121
- package/src/presets/aura/rating/index.js +0 -95
- package/src/presets/aura/ripple/index.js +0 -6
- package/src/presets/aura/scrollpanel/index.js +0 -77
- package/src/presets/aura/scrolltop/index.js +0 -45
- package/src/presets/aura/selectbutton/index.js +0 -66
- package/src/presets/aura/sidebar/index.js +0 -160
- package/src/presets/aura/skeleton/index.js +0 -19
- package/src/presets/aura/slider/index.js +0 -144
- package/src/presets/aura/speeddial/index.js +0 -579
- package/src/presets/aura/splitbutton/index.js +0 -1185
- package/src/presets/aura/splitter/index.js +0 -71
- package/src/presets/aura/stepper/index.js +0 -183
- package/src/presets/aura/steps/index.js +0 -117
- package/src/presets/aura/tabmenu/index.js +0 -75
- package/src/presets/aura/tabview/index.js +0 -162
- package/src/presets/aura/tag/index.js +0 -44
- package/src/presets/aura/terminal/index.js +0 -60
- package/src/presets/aura/textarea/index.js +0 -49
- package/src/presets/aura/tieredmenu/index.js +0 -125
- package/src/presets/aura/timeline/index.js +0 -114
- package/src/presets/aura/toast/index.js +0 -151
- package/src/presets/aura/togglebutton/index.js +0 -98
- package/src/presets/aura/toolbar/index.js +0 -28
- package/src/presets/aura/tooltip/index.js +0 -73
- package/src/presets/aura/tree/index.js +0 -294
- package/src/presets/aura/treeselect/index.js +0 -404
- package/src/presets/aura/treetable/index.js +0 -513
- package/src/presets/aura/tristatecheckbox/index.js +0 -121
- /package/src/components/{types → Image}/Image.ts +0 -0
|
@@ -1,281 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,142 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
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
|
-
}
|