@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,53 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
//Flex
|
|
5
|
+
'flex flex-col',
|
|
6
|
+
|
|
7
|
+
//Shape
|
|
8
|
+
'rounded-[12px]',
|
|
9
|
+
'shadow-md',
|
|
10
|
+
|
|
11
|
+
//Color
|
|
12
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
13
|
+
'text-surface-700 dark:text-surface-0',
|
|
14
|
+
],
|
|
15
|
+
},
|
|
16
|
+
body: {
|
|
17
|
+
class: [
|
|
18
|
+
//Flex
|
|
19
|
+
'flex flex-col',
|
|
20
|
+
'gap-4',
|
|
21
|
+
|
|
22
|
+
'p-6',
|
|
23
|
+
],
|
|
24
|
+
},
|
|
25
|
+
caption: {
|
|
26
|
+
class: [
|
|
27
|
+
//Flex
|
|
28
|
+
'flex flex-col',
|
|
29
|
+
'gap-2',
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
title: {
|
|
33
|
+
class: 'text-xl font-semibold mb-0',
|
|
34
|
+
},
|
|
35
|
+
subtitle: {
|
|
36
|
+
class: [
|
|
37
|
+
//Font
|
|
38
|
+
'font-normal',
|
|
39
|
+
|
|
40
|
+
//Spacing
|
|
41
|
+
'mb-0',
|
|
42
|
+
|
|
43
|
+
//Color
|
|
44
|
+
'text-surface-600 dark:text-surface-0/60',
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
content: {
|
|
48
|
+
class: 'p-0',
|
|
49
|
+
},
|
|
50
|
+
footer: {
|
|
51
|
+
class: 'p-0',
|
|
52
|
+
},
|
|
53
|
+
}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
'flex flex-col',
|
|
6
|
+
],
|
|
7
|
+
},
|
|
8
|
+
content: {
|
|
9
|
+
class: [
|
|
10
|
+
// Flexbox & Overflow
|
|
11
|
+
'flex flex-col overflow-auto',
|
|
12
|
+
],
|
|
13
|
+
},
|
|
14
|
+
container: ({ props }) => ({
|
|
15
|
+
class: [
|
|
16
|
+
// Flexbox
|
|
17
|
+
'flex',
|
|
18
|
+
|
|
19
|
+
// Orientation
|
|
20
|
+
{
|
|
21
|
+
'flex-row': props.orientation !== 'vertical',
|
|
22
|
+
'flex-col': props.orientation == 'vertical',
|
|
23
|
+
},
|
|
24
|
+
],
|
|
25
|
+
}),
|
|
26
|
+
previousbutton: {
|
|
27
|
+
class: [
|
|
28
|
+
// Flexbox & Alignment
|
|
29
|
+
'flex justify-center items-center self-center',
|
|
30
|
+
|
|
31
|
+
// Sizing & Overflow
|
|
32
|
+
'overflow-hidden w-8 h-8',
|
|
33
|
+
|
|
34
|
+
// Spacing
|
|
35
|
+
'mx-2',
|
|
36
|
+
|
|
37
|
+
// Shape
|
|
38
|
+
'rounded-full',
|
|
39
|
+
|
|
40
|
+
// Border & Background
|
|
41
|
+
'border-0 bg-transparent',
|
|
42
|
+
|
|
43
|
+
// Color
|
|
44
|
+
'text-surface-600',
|
|
45
|
+
|
|
46
|
+
// States
|
|
47
|
+
'hover:bg-surface-50 dark:hover:bg-surface-800',
|
|
48
|
+
'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400',
|
|
49
|
+
|
|
50
|
+
// Transitions
|
|
51
|
+
'transition duration-200 ease-in-out',
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
nextbutton: {
|
|
55
|
+
class: [
|
|
56
|
+
// Flexbox & Alignment
|
|
57
|
+
'flex justify-center items-center self-center',
|
|
58
|
+
|
|
59
|
+
// Sizing & Overflow
|
|
60
|
+
'overflow-hidden w-8 h-8',
|
|
61
|
+
|
|
62
|
+
// Spacing
|
|
63
|
+
'mx-2',
|
|
64
|
+
|
|
65
|
+
// Shape
|
|
66
|
+
'rounded-full',
|
|
67
|
+
|
|
68
|
+
// Border & Background
|
|
69
|
+
'border-0 bg-transparent',
|
|
70
|
+
|
|
71
|
+
// Color
|
|
72
|
+
'text-surface-600',
|
|
73
|
+
|
|
74
|
+
// States
|
|
75
|
+
'hover:bg-surface-50 dark:hover:bg-surface-800',
|
|
76
|
+
'focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400',
|
|
77
|
+
|
|
78
|
+
// Transitions
|
|
79
|
+
'transition duration-200 ease-in-out',
|
|
80
|
+
],
|
|
81
|
+
},
|
|
82
|
+
itemscontent: {
|
|
83
|
+
class: [
|
|
84
|
+
// Overflow & Width
|
|
85
|
+
'overflow-hidden w-full',
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
itemscontainer: ({ props }) => ({
|
|
89
|
+
class: [
|
|
90
|
+
// Flexbox
|
|
91
|
+
'flex',
|
|
92
|
+
|
|
93
|
+
// Orientation & Sizing
|
|
94
|
+
{
|
|
95
|
+
'flex-row': props.orientation !== 'vertical',
|
|
96
|
+
'flex-col h-full': props.orientation == 'vertical',
|
|
97
|
+
},
|
|
98
|
+
],
|
|
99
|
+
}),
|
|
100
|
+
item: ({ props }) => ({
|
|
101
|
+
class: [
|
|
102
|
+
// Flexbox
|
|
103
|
+
'flex shrink-0 grow ',
|
|
104
|
+
|
|
105
|
+
// Size
|
|
106
|
+
{
|
|
107
|
+
'w-full sm:w-[50%] md:w-[33.333333333333336%]':
|
|
108
|
+
props.orientation !== 'vertical',
|
|
109
|
+
|
|
110
|
+
'w-full h-full': props.orientation == 'vertical',
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
}),
|
|
114
|
+
itemcloned: ({ props }) => ({
|
|
115
|
+
class: [
|
|
116
|
+
// Flexbox
|
|
117
|
+
'flex shrink-0 grow',
|
|
118
|
+
'unvisible',
|
|
119
|
+
|
|
120
|
+
// Size
|
|
121
|
+
{
|
|
122
|
+
'w-full sm:w-[50%] md:w-[33.333333333333336%]':
|
|
123
|
+
props.orientation !== 'vertical',
|
|
124
|
+
|
|
125
|
+
'w-full h-full': props.orientation == 'vertical',
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
}),
|
|
129
|
+
indicators: {
|
|
130
|
+
class: [
|
|
131
|
+
// Flexbox & Alignment
|
|
132
|
+
'flex flex-row justify-center flex-wrap',
|
|
133
|
+
],
|
|
134
|
+
},
|
|
135
|
+
indicator: {
|
|
136
|
+
class: [
|
|
137
|
+
// Spacing
|
|
138
|
+
'mr-2 mb-2',
|
|
139
|
+
],
|
|
140
|
+
},
|
|
141
|
+
indicatorbutton: ({ context }) => ({
|
|
142
|
+
class: [
|
|
143
|
+
// Sizing & Shape
|
|
144
|
+
'w-8 h-2 rounded-md',
|
|
145
|
+
|
|
146
|
+
// Transitions
|
|
147
|
+
'transition duration-200',
|
|
148
|
+
|
|
149
|
+
// Focus Styles
|
|
150
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
|
|
151
|
+
|
|
152
|
+
// Color & Background
|
|
153
|
+
{
|
|
154
|
+
'bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600':
|
|
155
|
+
!context.highlighted,
|
|
156
|
+
'bg-primary hover:bg-primary-hover': context.highlighted,
|
|
157
|
+
},
|
|
158
|
+
],
|
|
159
|
+
}),
|
|
160
|
+
}
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, state }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
// Display and Position
|
|
5
|
+
'inline-flex',
|
|
6
|
+
'relative',
|
|
7
|
+
|
|
8
|
+
// Shape
|
|
9
|
+
'rounded-md',
|
|
10
|
+
|
|
11
|
+
// Color and Background
|
|
12
|
+
{ 'bg-surface-0 dark:bg-surface-950': !props.disabled },
|
|
13
|
+
'border',
|
|
14
|
+
{ 'border-surface-300 dark:border-surface-600': !props.invalid },
|
|
15
|
+
|
|
16
|
+
// Invalid State
|
|
17
|
+
'invalid:focus:ring-red-200',
|
|
18
|
+
'invalid:hover:border-red-500',
|
|
19
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
20
|
+
|
|
21
|
+
// Transitions
|
|
22
|
+
'transition-all',
|
|
23
|
+
'duration-200',
|
|
24
|
+
|
|
25
|
+
// States
|
|
26
|
+
{
|
|
27
|
+
'hover:border-surface-400 dark:hover:border-surface-600':
|
|
28
|
+
!props.invalid,
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
'outline-none outline-offset-0 ring-1 ring-primary-500 dark:ring-primary-400':
|
|
32
|
+
state.focused,
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
// Misc
|
|
36
|
+
'cursor-pointer',
|
|
37
|
+
'select-none',
|
|
38
|
+
{
|
|
39
|
+
'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
|
|
40
|
+
props.disabled,
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
}),
|
|
44
|
+
label: ({ props }) => ({
|
|
45
|
+
class: [
|
|
46
|
+
// Font
|
|
47
|
+
'leading-none',
|
|
48
|
+
|
|
49
|
+
// Flex & Alignment
|
|
50
|
+
'flex flex-auto',
|
|
51
|
+
|
|
52
|
+
// Sizing and Spacing
|
|
53
|
+
'w-[1%]',
|
|
54
|
+
'py-2 px-3',
|
|
55
|
+
|
|
56
|
+
//Shape
|
|
57
|
+
'rounded-none',
|
|
58
|
+
|
|
59
|
+
// Color and Background
|
|
60
|
+
'bg-transparent',
|
|
61
|
+
'border-0',
|
|
62
|
+
{
|
|
63
|
+
'text-surface-800 dark:text-white/80': props.modelValue,
|
|
64
|
+
'text-surface-400 dark:text-surface-500': !props.modelValue,
|
|
65
|
+
},
|
|
66
|
+
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
67
|
+
|
|
68
|
+
// Transitions
|
|
69
|
+
'transition',
|
|
70
|
+
'duration-200',
|
|
71
|
+
|
|
72
|
+
// States
|
|
73
|
+
'focus:outline-none focus:shadow-none',
|
|
74
|
+
|
|
75
|
+
// Misc
|
|
76
|
+
'relative',
|
|
77
|
+
'cursor-pointer',
|
|
78
|
+
'overflow-hidden overflow-ellipsis',
|
|
79
|
+
'whitespace-nowrap',
|
|
80
|
+
'appearance-none',
|
|
81
|
+
],
|
|
82
|
+
}),
|
|
83
|
+
dropdownbutton: {
|
|
84
|
+
class: [
|
|
85
|
+
// Flexbox
|
|
86
|
+
'flex items-center justify-center',
|
|
87
|
+
'shrink-0',
|
|
88
|
+
|
|
89
|
+
// Color and Background
|
|
90
|
+
'bg-transparent',
|
|
91
|
+
'text-surface-500',
|
|
92
|
+
|
|
93
|
+
// Size
|
|
94
|
+
'w-12',
|
|
95
|
+
|
|
96
|
+
// Shape
|
|
97
|
+
'rounded-r-md',
|
|
98
|
+
],
|
|
99
|
+
},
|
|
100
|
+
panel: {
|
|
101
|
+
class: [
|
|
102
|
+
// Colors
|
|
103
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
104
|
+
'text-surface-700 dark:text-white/80',
|
|
105
|
+
|
|
106
|
+
// Shape
|
|
107
|
+
'border border-surface-300 dark:border-surface-700',
|
|
108
|
+
'rounded-md',
|
|
109
|
+
'shadow-md',
|
|
110
|
+
],
|
|
111
|
+
},
|
|
112
|
+
wrapper: {
|
|
113
|
+
class: [
|
|
114
|
+
// Sizing
|
|
115
|
+
'max-h-[200px]',
|
|
116
|
+
|
|
117
|
+
// Misc
|
|
118
|
+
'overflow-auto',
|
|
119
|
+
],
|
|
120
|
+
},
|
|
121
|
+
list: {
|
|
122
|
+
class: 'p-1 list-none m-0',
|
|
123
|
+
},
|
|
124
|
+
item: ({ context }) => ({
|
|
125
|
+
class: [
|
|
126
|
+
//Shape
|
|
127
|
+
'rounded-[4px]',
|
|
128
|
+
|
|
129
|
+
// Spacing
|
|
130
|
+
'first:mt-0 mt-[2px]',
|
|
131
|
+
|
|
132
|
+
// Colors
|
|
133
|
+
{
|
|
134
|
+
'text-surface-500 dark:text-white/70':
|
|
135
|
+
!context.focused && !context.active,
|
|
136
|
+
'text-surface-500 dark:text-white/70 bg-surface-200':
|
|
137
|
+
context.focused && !context.active,
|
|
138
|
+
'text-primary-highlight-inverse bg-primary-highlight':
|
|
139
|
+
(context.focused && context.active) ||
|
|
140
|
+
context.active ||
|
|
141
|
+
(!context.focused && context.active),
|
|
142
|
+
},
|
|
143
|
+
|
|
144
|
+
// Transitions
|
|
145
|
+
'transition-shadow',
|
|
146
|
+
'duration-200',
|
|
147
|
+
|
|
148
|
+
// States
|
|
149
|
+
{
|
|
150
|
+
'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
|
|
151
|
+
!context.active,
|
|
152
|
+
'hover:bg-primary-highlight-hover text-primary-highlight-inverse':
|
|
153
|
+
context.active,
|
|
154
|
+
},
|
|
155
|
+
|
|
156
|
+
// Disabled
|
|
157
|
+
{ 'opacity-60 pointer-events-none cursor-default': context.disabled },
|
|
158
|
+
],
|
|
159
|
+
}),
|
|
160
|
+
content: {
|
|
161
|
+
class: [
|
|
162
|
+
'relative',
|
|
163
|
+
'leading-[normal]',
|
|
164
|
+
|
|
165
|
+
// Flexbox
|
|
166
|
+
'flex',
|
|
167
|
+
'items-center',
|
|
168
|
+
|
|
169
|
+
// Spacing
|
|
170
|
+
'py-2',
|
|
171
|
+
'px-3',
|
|
172
|
+
|
|
173
|
+
// Color
|
|
174
|
+
'text-surface-700 dark:text-white/80',
|
|
175
|
+
|
|
176
|
+
// Misc
|
|
177
|
+
'no-underline',
|
|
178
|
+
'overflow-hidden',
|
|
179
|
+
'cursor-pointer',
|
|
180
|
+
'select-none',
|
|
181
|
+
],
|
|
182
|
+
},
|
|
183
|
+
groupicon: {
|
|
184
|
+
class: [
|
|
185
|
+
// Alignment
|
|
186
|
+
'ml-auto',
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
sublist: {
|
|
190
|
+
class: [
|
|
191
|
+
// Spacing
|
|
192
|
+
'p-1',
|
|
193
|
+
'm-0',
|
|
194
|
+
'list-none',
|
|
195
|
+
'min-w-[12.5rem]',
|
|
196
|
+
|
|
197
|
+
// Shape
|
|
198
|
+
'shadow-none sm:shadow-md',
|
|
199
|
+
'rounded-md',
|
|
200
|
+
'border border-surface-200 dark:border-surface-700',
|
|
201
|
+
|
|
202
|
+
// Position
|
|
203
|
+
'static sm:absolute',
|
|
204
|
+
'z-10',
|
|
205
|
+
|
|
206
|
+
// Color
|
|
207
|
+
'bg-surface-0 dark:bg-surface-900',
|
|
208
|
+
],
|
|
209
|
+
},
|
|
210
|
+
separator: {
|
|
211
|
+
class: 'border-t border-surface-200 dark:border-surface-600 my-1',
|
|
212
|
+
},
|
|
213
|
+
transition: {
|
|
214
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
215
|
+
enterActiveClass:
|
|
216
|
+
'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
217
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
218
|
+
leaveToClass: 'opacity-0',
|
|
219
|
+
},
|
|
220
|
+
}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
|
|
6
|
+
// Alignment
|
|
7
|
+
'inline-flex',
|
|
8
|
+
'align-bottom',
|
|
9
|
+
|
|
10
|
+
// Size
|
|
11
|
+
'w-5',
|
|
12
|
+
'h-5',
|
|
13
|
+
|
|
14
|
+
// Misc
|
|
15
|
+
'cursor-pointer',
|
|
16
|
+
'select-none',
|
|
17
|
+
],
|
|
18
|
+
},
|
|
19
|
+
box: ({ props, context }) => ({
|
|
20
|
+
class: [
|
|
21
|
+
// Alignment
|
|
22
|
+
'flex',
|
|
23
|
+
'items-center',
|
|
24
|
+
'justify-center',
|
|
25
|
+
|
|
26
|
+
// Size
|
|
27
|
+
'w-5',
|
|
28
|
+
'h-5',
|
|
29
|
+
|
|
30
|
+
// Shape
|
|
31
|
+
'rounded',
|
|
32
|
+
'border',
|
|
33
|
+
|
|
34
|
+
// Colors
|
|
35
|
+
{
|
|
36
|
+
'border-surface-300 dark:border-surface-700':
|
|
37
|
+
!context.checked && !props.invalid,
|
|
38
|
+
'bg-surface-0 dark:bg-surface-950':
|
|
39
|
+
!context.checked && !props.invalid && !props.disabled,
|
|
40
|
+
'border-primary bg-primary': context.checked,
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
// Invalid State
|
|
44
|
+
'invalid:focus:ring-red-200',
|
|
45
|
+
'invalid:hover:border-red-500',
|
|
46
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
47
|
+
|
|
48
|
+
// States
|
|
49
|
+
{
|
|
50
|
+
'peer-hover:border-surface-400 dark:peer-hover:border-surface-600':
|
|
51
|
+
!props.disabled && !context.checked && !props.invalid,
|
|
52
|
+
'peer-hover:bg-primary-hover peer-hover:border-primary-hover':
|
|
53
|
+
!props.disabled && context.checked,
|
|
54
|
+
'peer-focus-visible:z-10 peer-focus-visible:outline-none peer-focus-visible:outline-offset-0 peer-focus-visible:ring-1 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400':
|
|
55
|
+
!props.disabled,
|
|
56
|
+
'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
|
|
57
|
+
props.disabled,
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
// Transitions
|
|
61
|
+
'transition-colors',
|
|
62
|
+
'duration-200',
|
|
63
|
+
],
|
|
64
|
+
}),
|
|
65
|
+
input: {
|
|
66
|
+
class: [
|
|
67
|
+
'peer',
|
|
68
|
+
|
|
69
|
+
// Size
|
|
70
|
+
'w-full ',
|
|
71
|
+
'h-full',
|
|
72
|
+
|
|
73
|
+
// Position
|
|
74
|
+
'absolute',
|
|
75
|
+
'top-0 left-0',
|
|
76
|
+
'z-10',
|
|
77
|
+
|
|
78
|
+
// Spacing
|
|
79
|
+
'p-0',
|
|
80
|
+
'm-0',
|
|
81
|
+
|
|
82
|
+
// Shape
|
|
83
|
+
'opacity-0',
|
|
84
|
+
'rounded',
|
|
85
|
+
'outline-none',
|
|
86
|
+
'border border-surface-300 dark:border-surface-700',
|
|
87
|
+
|
|
88
|
+
// Misc
|
|
89
|
+
'appearance-none',
|
|
90
|
+
'cursor-pointer',
|
|
91
|
+
],
|
|
92
|
+
},
|
|
93
|
+
icon: {
|
|
94
|
+
class: [
|
|
95
|
+
// Size
|
|
96
|
+
'w-[0.875rem]',
|
|
97
|
+
'h-[0.875rem]',
|
|
98
|
+
|
|
99
|
+
// Colors
|
|
100
|
+
'text-white dark:text-surface-950',
|
|
101
|
+
|
|
102
|
+
// Transitions
|
|
103
|
+
'transition-all',
|
|
104
|
+
'duration-200',
|
|
105
|
+
],
|
|
106
|
+
},
|
|
107
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: {
|
|
3
|
+
class: [
|
|
4
|
+
// Flexbox
|
|
5
|
+
'inline-flex items-center',
|
|
6
|
+
|
|
7
|
+
// Spacing
|
|
8
|
+
'px-3 py-1',
|
|
9
|
+
|
|
10
|
+
// Shape
|
|
11
|
+
'rounded-[1.14rem]',
|
|
12
|
+
|
|
13
|
+
// Colors
|
|
14
|
+
'text-surface-700 dark:text-white',
|
|
15
|
+
'bg-surface-100 dark:bg-surface-700',
|
|
16
|
+
],
|
|
17
|
+
},
|
|
18
|
+
label: {
|
|
19
|
+
class: 'leading-6 m-0',
|
|
20
|
+
},
|
|
21
|
+
icon: {
|
|
22
|
+
class: 'leading-6 mr-2',
|
|
23
|
+
},
|
|
24
|
+
image: {
|
|
25
|
+
class: ['w-8 h-8 -ml-2 mr-2', 'rounded-full'],
|
|
26
|
+
},
|
|
27
|
+
removeIcon: {
|
|
28
|
+
class: [
|
|
29
|
+
// Shape
|
|
30
|
+
'rounded-md leading-6',
|
|
31
|
+
|
|
32
|
+
// Spacing
|
|
33
|
+
'ml-[0.375rem]',
|
|
34
|
+
|
|
35
|
+
// Size
|
|
36
|
+
'w-4 h-4',
|
|
37
|
+
|
|
38
|
+
// Transition
|
|
39
|
+
'transition duration-200 ease-in-out',
|
|
40
|
+
|
|
41
|
+
// Misc
|
|
42
|
+
'cursor-pointer',
|
|
43
|
+
],
|
|
44
|
+
},
|
|
45
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props, parent }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'flex',
|
|
5
|
+
{
|
|
6
|
+
'first:rounded-l-md rounded-none last:rounded-r-md':
|
|
7
|
+
parent.instance.$name == 'InputGroup',
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
|
|
11
|
+
props.disabled,
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
}),
|
|
15
|
+
container: ({ state, props, parent }) => ({
|
|
16
|
+
class: [
|
|
17
|
+
// Font
|
|
18
|
+
'leading-none',
|
|
19
|
+
|
|
20
|
+
// Flex
|
|
21
|
+
'flex items-center flex-wrap',
|
|
22
|
+
'gap-2',
|
|
23
|
+
|
|
24
|
+
// Spacing
|
|
25
|
+
'm-0 list-none',
|
|
26
|
+
'p-1',
|
|
27
|
+
|
|
28
|
+
// Size
|
|
29
|
+
'w-full',
|
|
30
|
+
|
|
31
|
+
// Shape
|
|
32
|
+
'appearance-none rounded-md',
|
|
33
|
+
|
|
34
|
+
// Color
|
|
35
|
+
'text-surface-700 dark:text-white/80',
|
|
36
|
+
'placeholder:text-surface-400 dark:placeholder:text-surface-500',
|
|
37
|
+
{ 'bg-surface-0 dark:bg-surface-950': !props.disabled },
|
|
38
|
+
'border',
|
|
39
|
+
{ 'border-surface-300 dark:border-surface-700': !props.invalid },
|
|
40
|
+
|
|
41
|
+
// Invalid State
|
|
42
|
+
'invalid:focus:ring-red-200',
|
|
43
|
+
'invalid:hover:border-red-500',
|
|
44
|
+
{ 'border-red-500 dark:border-red-400': props.invalid },
|
|
45
|
+
|
|
46
|
+
// States
|
|
47
|
+
{
|
|
48
|
+
'hover:border-surface-400 dark:hover:border-surface-700':
|
|
49
|
+
!props.invalid,
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
'outline-none outline-offset-0 z-10 ring-1 ring-primary-500 dark:ring-primary-400':
|
|
53
|
+
state.focused,
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
// Filled State *for FloatLabel
|
|
57
|
+
{
|
|
58
|
+
filled:
|
|
59
|
+
parent.instance?.$name == 'FloatLabel' &&
|
|
60
|
+
props.modelValue !== null &&
|
|
61
|
+
props.modelValue?.length !== 0,
|
|
62
|
+
},
|
|
63
|
+
|
|
64
|
+
// Transition
|
|
65
|
+
'transition duration-200 ease-in-out',
|
|
66
|
+
|
|
67
|
+
// Misc
|
|
68
|
+
'cursor-text overflow-hidden',
|
|
69
|
+
],
|
|
70
|
+
}),
|
|
71
|
+
inputtoken: {
|
|
72
|
+
class: ['py-1 px-0 ml-2', 'inline-flex flex-auto'],
|
|
73
|
+
},
|
|
74
|
+
input: {
|
|
75
|
+
class: [
|
|
76
|
+
// Font
|
|
77
|
+
'text-base leading-[normal]',
|
|
78
|
+
|
|
79
|
+
// Size
|
|
80
|
+
'w-full',
|
|
81
|
+
|
|
82
|
+
// Spacing
|
|
83
|
+
'p-0 m-0',
|
|
84
|
+
|
|
85
|
+
// Shape
|
|
86
|
+
'appearance-none rounded-none',
|
|
87
|
+
'border-0 outline-none',
|
|
88
|
+
'shadow-none',
|
|
89
|
+
|
|
90
|
+
// Color
|
|
91
|
+
'text-surface-700 dark:text-white/80',
|
|
92
|
+
'bg-transparent',
|
|
93
|
+
],
|
|
94
|
+
},
|
|
95
|
+
token: {
|
|
96
|
+
class: [
|
|
97
|
+
// Flex
|
|
98
|
+
'inline-flex items-center',
|
|
99
|
+
|
|
100
|
+
// Spacings
|
|
101
|
+
'py-1 px-3 m-0',
|
|
102
|
+
|
|
103
|
+
// Shape
|
|
104
|
+
'rounded',
|
|
105
|
+
|
|
106
|
+
// Colors
|
|
107
|
+
'bg-surface-100 dark:bg-surface-700',
|
|
108
|
+
'text-surface-700 dark:text-white',
|
|
109
|
+
|
|
110
|
+
// Misc
|
|
111
|
+
'cursor-default',
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
removeTokenIcon: {
|
|
115
|
+
class: [
|
|
116
|
+
// Spacing
|
|
117
|
+
'ml-[0.375rem]',
|
|
118
|
+
|
|
119
|
+
// Size
|
|
120
|
+
'w-4 h-4',
|
|
121
|
+
|
|
122
|
+
// Misc
|
|
123
|
+
'cursor-pointer',
|
|
124
|
+
],
|
|
125
|
+
},
|
|
126
|
+
}
|