@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.
Files changed (181) hide show
  1. package/dist/component-lib.js +6960 -0
  2. package/dist/component-lib.umd.cjs +98 -0
  3. package/dist/style.css +1 -0
  4. package/dist/vite.svg +16 -0
  5. package/package.json +93 -84
  6. package/src/assets/fonts/GT-Walsheim-Bold.woff +0 -0
  7. package/src/assets/fonts/GT-Walsheim-Bold.woff2 +0 -0
  8. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff +0 -0
  9. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
  10. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff +0 -0
  11. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
  12. package/src/assets/fonts/GT-Walsheim-Medium.woff +0 -0
  13. package/src/assets/fonts/GT-Walsheim-Medium.woff2 +0 -0
  14. package/src/assets/fonts/GT-Walsheim-Regular.woff +0 -0
  15. package/src/assets/fonts/GT-Walsheim-Regular.woff2 +0 -0
  16. package/src/assets/fonts/fonts.scss +60 -0
  17. package/src/assets/fonts/notosanssc-bold-webfont.woff +0 -0
  18. package/src/assets/fonts/notosanssc-bold-webfont.woff2 +0 -0
  19. package/src/assets/fonts/notosanssc-regular-webfont.woff +0 -0
  20. package/src/assets/fonts/notosanssc-regular-webfont.woff2 +0 -0
  21. package/src/assets/main.css +18 -114
  22. package/src/assets/theme.css +5 -1
  23. package/src/components/{types → Accordion}/Accordion.ts +8 -6
  24. package/src/components/Accordion/Accordion.vue +66 -0
  25. package/src/components/Accordion/AccordionItem.ts +25 -0
  26. package/src/components/Accordion/AccordionItem.vue +104 -0
  27. package/src/components/{AccordionItem.vue → Accordion/AccordionListItem.vue} +22 -14
  28. package/src/components/Accordion/AccordionTileItem.vue +75 -0
  29. package/src/components/CTA/CTA.ts +22 -0
  30. package/src/components/CTA/CTA.vue +65 -0
  31. package/src/components/CarouselModule/CarouselModule.ts +20 -0
  32. package/src/components/{CarouselModule.vue → CarouselModule/CarouselModule.vue} +25 -7
  33. package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +12 -0
  34. package/src/components/{ContainerCollectionModule.vue → ContainerCollectionModule/ContainerCollectionModule.vue} +12 -3
  35. package/src/components/ContainerModule/ContainerModule.ts +69 -0
  36. package/src/components/{ContainerModule.vue → ContainerModule/ContainerModule.vue} +33 -36
  37. package/src/components/ContentModule/ContentModule.ts +31 -0
  38. package/src/components/ContentModule/ContentModule.vue +65 -0
  39. package/src/components/{types → FooterNavigation}/FooterNavigation.ts +3 -2
  40. package/src/components/{FooterNavigation.vue → FooterNavigation/FooterNavigation.vue} +4 -2
  41. package/src/components/Image/Image.vue +17 -0
  42. package/src/components/{types → LogoCollectionModule}/LogoCollectionModule.ts +3 -3
  43. package/src/components/{LogoCollectionModule.vue → LogoCollectionModule/LogoCollectionModule.vue} +13 -3
  44. package/src/components/{types → NavigationElement}/NavigationElement.ts +6 -3
  45. package/src/components/{NavigationElement.vue → NavigationElement/NavigationElement.vue} +18 -9
  46. package/src/components/{types → PrimaryNavigation}/PrimaryNavigation.ts +2 -2
  47. package/src/components/{PrimaryNavigation.vue → PrimaryNavigation/PrimaryNavigation.vue} +7 -4
  48. package/src/components/{types → SplitModule}/SplitModule.ts +6 -5
  49. package/src/components/SplitModule/SplitModule.vue +57 -0
  50. package/src/components/TestimonialModule/TestimonialModule.ts +22 -0
  51. package/src/components/TestimonialModule/TestimonialModule.vue +51 -0
  52. package/src/components/TileCollectionModule/TileCollectionModule.ts +18 -0
  53. package/src/components/TileCollectionModule/TileCollectionModule.vue +58 -0
  54. package/src/components/TileContent/TileContent.ts +60 -0
  55. package/src/components/{TileContent.vue → TileContent/TileContent.vue} +25 -14
  56. package/src/components/TileContent/TileContentIconTile.vue +83 -0
  57. package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +121 -0
  58. package/src/components/TileContent/TileContentImageTile.vue +80 -0
  59. package/src/components/TileContent/TileContentTextTile.vue +63 -0
  60. package/src/components/TileContent/TileContentVideoTile.vue +81 -0
  61. package/src/components/{types → Video}/Video.ts +1 -1
  62. package/src/components/{Video.vue → Video/Video.vue} +1 -1
  63. package/src/config/defaultPassthrough.ts +261 -0
  64. package/src/assets/usercard.jpg +0 -0
  65. package/src/assets/vue.svg +0 -1
  66. package/src/components/Accordion.vue +0 -33
  67. package/src/components/CTA.vue +0 -39
  68. package/src/components/ContentAndImage.vue +0 -34
  69. package/src/components/ContentMediaModule.vue +0 -50
  70. package/src/components/ContentModule.vue +0 -51
  71. package/src/components/IconChevron.vue +0 -107
  72. package/src/components/Image.vue +0 -15
  73. package/src/components/LogoContainerModule.vue +0 -30
  74. package/src/components/SplitModule.vue +0 -42
  75. package/src/components/Testimonial.vue +0 -48
  76. package/src/components/TestimonialModule.vue +0 -48
  77. package/src/components/TileCollection.vue +0 -37
  78. package/src/components/TileCollectionModule.vue +0 -45
  79. package/src/components/types/AccordionItem.ts +0 -19
  80. package/src/components/types/CTA.ts +0 -13
  81. package/src/components/types/CarouselModule.ts +0 -21
  82. package/src/components/types/ContainerCollectionModule.ts +0 -12
  83. package/src/components/types/ContainerModule.ts +0 -35
  84. package/src/components/types/ContentAndImage.ts +0 -14
  85. package/src/components/types/ContentMediaModule.ts +0 -14
  86. package/src/components/types/ContentModule.ts +0 -21
  87. package/src/components/types/LogoContainerModule.ts +0 -12
  88. package/src/components/types/Testimonial.ts +0 -17
  89. package/src/components/types/TileCollection.ts +0 -14
  90. package/src/components/types/TileContent.ts +0 -34
  91. package/src/components/types/index.ts +0 -10
  92. package/src/presets/aura/accordion/index.js +0 -81
  93. package/src/presets/aura/autocomplete/index.js +0 -280
  94. package/src/presets/aura/avatar/index.js +0 -46
  95. package/src/presets/aura/badge/index.js +0 -43
  96. package/src/presets/aura/badgedirective/index.js +0 -49
  97. package/src/presets/aura/blockui/index.js +0 -8
  98. package/src/presets/aura/breadcrumb/index.js +0 -63
  99. package/src/presets/aura/button/index.js +0 -511
  100. package/src/presets/aura/calendar/index.js +0 -702
  101. package/src/presets/aura/card/index.js +0 -53
  102. package/src/presets/aura/carousel/index.js +0 -160
  103. package/src/presets/aura/cascadeselect/index.js +0 -220
  104. package/src/presets/aura/checkbox/index.js +0 -107
  105. package/src/presets/aura/chip/index.js +0 -45
  106. package/src/presets/aura/chips/index.js +0 -126
  107. package/src/presets/aura/colorpicker/index.js +0 -132
  108. package/src/presets/aura/confirmpopup/index.js +0 -111
  109. package/src/presets/aura/contextmenu/index.js +0 -132
  110. package/src/presets/aura/datatable/index.js +0 -1290
  111. package/src/presets/aura/dataview/index.js +0 -40
  112. package/src/presets/aura/deferred/index.js +0 -3
  113. package/src/presets/aura/dialog/index.js +0 -250
  114. package/src/presets/aura/divider/index.js +0 -72
  115. package/src/presets/aura/dock/index.js +0 -97
  116. package/src/presets/aura/dropdown/index.js +0 -297
  117. package/src/presets/aura/fieldset/index.js +0 -95
  118. package/src/presets/aura/fileupload/index.js +0 -175
  119. package/src/presets/aura/floatlabel/index.js +0 -26
  120. package/src/presets/aura/galleria/index.js +0 -353
  121. package/src/presets/aura/global.js +0 -90
  122. package/src/presets/aura/iconfield/index.js +0 -22
  123. package/src/presets/aura/image/index.js +0 -206
  124. package/src/presets/aura/index.js +0 -181
  125. package/src/presets/aura/inlinemessage/index.js +0 -46
  126. package/src/presets/aura/inplace/index.js +0 -27
  127. package/src/presets/aura/inputgroup/index.js +0 -5
  128. package/src/presets/aura/inputgroupaddon/index.js +0 -28
  129. package/src/presets/aura/inputmask/index.js +0 -47
  130. package/src/presets/aura/inputnumber/index.js +0 -293
  131. package/src/presets/aura/inputotp/index.js +0 -69
  132. package/src/presets/aura/inputswitch/index.js +0 -94
  133. package/src/presets/aura/inputtext/index.js +0 -63
  134. package/src/presets/aura/knob/index.js +0 -47
  135. package/src/presets/aura/listbox/index.js +0 -158
  136. package/src/presets/aura/megamenu/index.js +0 -206
  137. package/src/presets/aura/menu/index.js +0 -122
  138. package/src/presets/aura/menubar/index.js +0 -184
  139. package/src/presets/aura/message/index.js +0 -112
  140. package/src/presets/aura/metergroup/index.js +0 -110
  141. package/src/presets/aura/multiselect/index.js +0 -579
  142. package/src/presets/aura/orderlist/index.js +0 -281
  143. package/src/presets/aura/organizationchart/index.js +0 -142
  144. package/src/presets/aura/overlaypanel/index.js +0 -34
  145. package/src/presets/aura/paginator/index.js +0 -566
  146. package/src/presets/aura/panel/index.js +0 -102
  147. package/src/presets/aura/panelmenu/index.js +0 -130
  148. package/src/presets/aura/password/index.js +0 -143
  149. package/src/presets/aura/picklist/index.js +0 -718
  150. package/src/presets/aura/progressbar/index.js +0 -64
  151. package/src/presets/aura/progressspinner/index.js +0 -51
  152. package/src/presets/aura/radiobutton/index.js +0 -121
  153. package/src/presets/aura/rating/index.js +0 -95
  154. package/src/presets/aura/ripple/index.js +0 -6
  155. package/src/presets/aura/scrollpanel/index.js +0 -77
  156. package/src/presets/aura/scrolltop/index.js +0 -45
  157. package/src/presets/aura/selectbutton/index.js +0 -66
  158. package/src/presets/aura/sidebar/index.js +0 -160
  159. package/src/presets/aura/skeleton/index.js +0 -19
  160. package/src/presets/aura/slider/index.js +0 -144
  161. package/src/presets/aura/speeddial/index.js +0 -579
  162. package/src/presets/aura/splitbutton/index.js +0 -1185
  163. package/src/presets/aura/splitter/index.js +0 -71
  164. package/src/presets/aura/stepper/index.js +0 -183
  165. package/src/presets/aura/steps/index.js +0 -117
  166. package/src/presets/aura/tabmenu/index.js +0 -75
  167. package/src/presets/aura/tabview/index.js +0 -162
  168. package/src/presets/aura/tag/index.js +0 -44
  169. package/src/presets/aura/terminal/index.js +0 -60
  170. package/src/presets/aura/textarea/index.js +0 -49
  171. package/src/presets/aura/tieredmenu/index.js +0 -125
  172. package/src/presets/aura/timeline/index.js +0 -114
  173. package/src/presets/aura/toast/index.js +0 -151
  174. package/src/presets/aura/togglebutton/index.js +0 -98
  175. package/src/presets/aura/toolbar/index.js +0 -28
  176. package/src/presets/aura/tooltip/index.js +0 -73
  177. package/src/presets/aura/tree/index.js +0 -294
  178. package/src/presets/aura/treeselect/index.js +0 -404
  179. package/src/presets/aura/treetable/index.js +0 -513
  180. package/src/presets/aura/tristatecheckbox/index.js +0 -121
  181. /package/src/components/{types → Image}/Image.ts +0 -0
@@ -1,280 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Flex
7
- 'inline-flex',
8
-
9
- // Size
10
- { 'w-full': props.multiple },
11
-
12
- // Color
13
- 'text-surface-900 dark:text-surface-0',
14
-
15
- //States
16
- {
17
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
18
- props.disabled,
19
- },
20
- ],
21
- }),
22
- container: ({ props, state }) => ({
23
- class: [
24
- // Font
25
- 'leading-none',
26
-
27
- // Flex
28
- 'flex items-center flex-wrap',
29
- 'gap-2',
30
-
31
- // Spacing
32
- 'm-0 list-none',
33
- 'p-1',
34
-
35
- // Size
36
- 'w-full',
37
-
38
- // Shape
39
- 'appearance-none rounded-md',
40
-
41
- // Color
42
- 'text-surface-700 dark:text-white/80',
43
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
44
- { 'bg-surface-0 dark:bg-surface-950': !props.disabled },
45
- 'border',
46
- { 'border-surface-300 dark:border-surface-700': !props.invalid },
47
-
48
- // Invalid State
49
- 'invalid:focus:ring-red-200',
50
- 'invalid:hover:border-red-500',
51
- { 'border-red-500 dark:border-red-400': props.invalid },
52
-
53
- // States
54
- {
55
- 'hover:border-surface-400 dark:hover:border-surface-700':
56
- !props.invalid,
57
- },
58
- {
59
- 'outline-none outline-offset-0 z-10 ring-1 ring-primary-500 dark:ring-primary-400':
60
- state.focused,
61
- },
62
-
63
- // Transition
64
- 'transition duration-200 ease-in-out',
65
-
66
- // Misc
67
- 'cursor-text overflow-hidden',
68
- ],
69
- }),
70
- inputtoken: {
71
- class: ['py-1 px-0 ml-2', 'inline-flex flex-auto'],
72
- },
73
- input: ({ props, parent }) => ({
74
- class: [
75
- // Font
76
- 'text-base leading-none',
77
-
78
- // Shape
79
- 'appearance-none rounded-md',
80
- { 'rounded-tr-none rounded-br-none': props.dropdown },
81
- { 'outline-none shadow-none rounded-none': props.multiple },
82
-
83
- // Size
84
- { 'w-full': props.multiple },
85
-
86
- // Spacing
87
- 'm-0',
88
- { 'py-2 px-3': !props.multiple, 'p-0': props.multiple },
89
-
90
- // Colors
91
- 'text-surface-700 dark:text-white/80',
92
- 'border',
93
- {
94
- 'bg-surface-0 dark:bg-surface-950': !props.multiple,
95
- ' border-surface-300 dark:border-surface-700':
96
- !props.multiple && !props.invalid,
97
- 'border-0 bg-transparent': props.multiple,
98
- },
99
-
100
- // Invalid State
101
- { 'border-red-500 dark:border-red-400': props.invalid },
102
-
103
- // States
104
- {
105
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10':
106
- !props.multiple,
107
- },
108
-
109
- // Filled State *for FloatLabel
110
- {
111
- filled:
112
- parent.instance?.$name == 'FloatLabel' && props.modelValue !== '',
113
- },
114
-
115
- // Transition
116
- 'transition-colors duration-200',
117
- ],
118
- }),
119
- token: {
120
- class: [
121
- // Flex
122
- 'inline-flex items-center',
123
-
124
- // Spacings
125
- 'py-1 px-3 m-0',
126
-
127
- // Shape
128
- 'rounded',
129
-
130
- // Colors
131
- 'bg-surface-100 dark:bg-surface-700',
132
- 'text-surface-700 dark:text-white',
133
-
134
- // Misc
135
- 'cursor-default',
136
- ],
137
- },
138
- removeTokenIcon: {
139
- class: [
140
- // Spacing
141
- 'ml-[0.375rem]',
142
-
143
- // Size
144
- 'w-4 h-4',
145
-
146
- // Misc
147
- 'cursor-pointer',
148
- ],
149
- },
150
- dropdownbutton: {
151
- root: {
152
- class: [
153
- 'relative',
154
-
155
- // Alignments
156
- 'items-center inline-flex justify-center text-center align-bottom',
157
-
158
- // Shape
159
- 'rounded-r-md',
160
-
161
- // Size
162
- 'py-2 leading-none',
163
- 'w-10',
164
-
165
- // Colors
166
- 'text-primary-inverse',
167
- 'bg-primary',
168
- 'border border-primary',
169
-
170
- // States
171
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 ',
172
- 'hover:bg-primary-hover hover:border-primary-hover',
173
- 'focus:ring-primary-500 dark:focus:ring-primary-400',
174
- ],
175
- },
176
- },
177
- loadingicon: {
178
- class: [
179
- 'text-surface-500 dark:text-surface-0/70',
180
- 'absolute top-[50%] right-[0.5rem] -mt-2 animate-spin',
181
- ],
182
- },
183
- panel: {
184
- class: [
185
- // Colors
186
- 'bg-surface-0 dark:bg-surface-900',
187
- 'text-surface-700 dark:text-white/80',
188
-
189
- // Shape
190
- 'border border-surface-300 dark:border-surface-700',
191
- 'rounded-md',
192
- 'shadow-md',
193
-
194
- // Size
195
- 'overflow-auto',
196
- ],
197
- },
198
- list: {
199
- class: 'p-1 list-none m-0',
200
- },
201
- item: ({ context }) => ({
202
- class: [
203
- 'relative',
204
-
205
- // Font
206
- 'leading-none',
207
-
208
- // Spacing
209
- 'm-0 px-3 py-2',
210
- 'first:mt-0 mt-[2px]',
211
-
212
- // Shape
213
- 'border-0 rounded',
214
-
215
- // Colors
216
- {
217
- 'text-surface-700 dark:text-white/80':
218
- !context.focused && !context.selected,
219
- 'bg-surface-200 dark:bg-surface-600/60':
220
- context.focused && !context.selected,
221
- 'text-surface-700 dark:text-white/80':
222
- context.focused && !context.selected,
223
-
224
- 'text-primary-highlight-inverse': context.selected,
225
- 'bg-primary-highlight': context.selected,
226
- },
227
-
228
- //States
229
- {
230
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
231
- !context.focused && !context.selected,
232
- },
233
- { 'hover:bg-primary-highlight-hover': context.selected },
234
- {
235
- 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-[rgba(255,255,255,0.03)]':
236
- context.focused && !context.selected,
237
- },
238
-
239
- // Transition
240
- 'transition-shadow duration-200',
241
-
242
- // Misc
243
- 'cursor-pointer overflow-hidden whitespace-nowrap',
244
- ],
245
- }),
246
- itemgroup: {
247
- class: [
248
- 'font-semibold',
249
-
250
- // Spacing
251
- 'm-0 py-2 px-3',
252
-
253
- // Colors
254
- 'text-surface-400 dark:text-surface-500',
255
-
256
- // Misc
257
- 'cursor-auto',
258
- ],
259
- },
260
- emptymessage: {
261
- class: [
262
- // Font
263
- 'leading-none',
264
-
265
- // Spacing
266
- 'py-2 px-3',
267
-
268
- // Color
269
- 'text-surface-800 dark:text-white/80',
270
- 'bg-transparent',
271
- ],
272
- },
273
- transition: {
274
- enterFromClass: 'opacity-0 scale-y-[0.8]',
275
- enterActiveClass:
276
- 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
277
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
278
- leaveToClass: 'opacity-0',
279
- },
280
- }
@@ -1,46 +0,0 @@
1
- export default {
2
- root: ({ props, parent }) => ({
3
- class: [
4
- // Font
5
- {
6
- 'text-xl': props.size == 'large',
7
- 'text-2xl': props.size == 'xlarge',
8
- },
9
-
10
- // Alignments
11
- 'inline-flex items-center justify-center',
12
- 'relative',
13
-
14
- // Sizes
15
- {
16
- 'h-8 w-8': props.size == null || props.size == 'normal',
17
- 'w-12 h-12': props.size == 'large',
18
- 'w-16 h-16': props.size == 'xlarge',
19
- },
20
- { '-ml-4': parent.instance.$style?.name == 'avatargroup' },
21
-
22
- // Shapes
23
- {
24
- 'rounded-lg': props.shape == 'square',
25
- 'rounded-full': props.shape == 'circle',
26
- },
27
- { 'border-2': parent.instance.$style?.name == 'avatargroup' },
28
-
29
- // Colors
30
- 'bg-surface-300 dark:bg-surface-700',
31
- {
32
- 'border-white dark:border-surface-800':
33
- parent.instance.$style?.name == 'avatargroup',
34
- },
35
- ],
36
- }),
37
- image: ({ props }) => ({
38
- class: [
39
- 'h-full w-full',
40
- {
41
- 'rounded-lg': props.shape == 'square',
42
- 'rounded-full': props.shape == 'circle',
43
- },
44
- ],
45
- }),
46
- }
@@ -1,43 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Font
5
- 'font-bold',
6
-
7
- {
8
- 'text-xs leading-[1.5rem]': props.size == null,
9
- 'text-lg leading-[2.25rem]': props.size == 'large',
10
- 'text-2xl leading-[3rem]': props.size == 'xlarge',
11
- },
12
-
13
- // Alignment
14
- 'text-center inline-block',
15
-
16
- // Size
17
- 'p-0 px-1',
18
- {
19
- 'min-w-[1.5rem] h-[1.5rem]': props.size == null,
20
- 'min-w-[2.25rem] h-[2.25rem]': props.size == 'large',
21
- 'min-w-[3rem] h-[3rem]': props.size == 'xlarge',
22
- },
23
-
24
- // Shape
25
- {
26
- 'rounded-full': props.value.length == 1,
27
- 'rounded-[0.71rem]': props.value.length !== 1,
28
- },
29
-
30
- // Color
31
- 'text-primary-inverse',
32
- {
33
- 'bg-primary': props.severity == null || props.severity == 'primary',
34
- 'bg-surface-500 dark:bg-surface-400': props.severity == 'secondary',
35
- 'bg-green-500 dark:bg-green-400': props.severity == 'success',
36
- 'bg-blue-500 dark:bg-blue-400': props.severity == 'info',
37
- 'bg-orange-500 dark:bg-orange-400': props.severity == 'warning',
38
- 'bg-purple-500 dark:bg-purple-400': props.severity == 'help',
39
- 'bg-red-500 dark:bg-red-400': props.severity == 'danger',
40
- },
41
- ],
42
- }),
43
- }
@@ -1,49 +0,0 @@
1
- export default {
2
- root: ({ context }) => ({
3
- class: [
4
- // Font
5
- 'font-bold',
6
- 'text-xs leading-5',
7
-
8
- // Alignment
9
- 'flex items-center justify-center',
10
- 'text-center',
11
-
12
- // Position
13
- 'absolute top-0 right-0 transform translate-x-1/2 -translate-y-1/2 origin-top-right',
14
-
15
- // Size
16
- 'm-0',
17
- {
18
- 'p-0': context.nogutter || context.dot,
19
- 'px-2': !context.nogutter && !context.dot,
20
- 'min-w-[0.5rem] w-2 h-2': context.dot,
21
- 'min-w-[1.5rem] h-6': !context.dot,
22
- },
23
-
24
- // Shape
25
- {
26
- 'rounded-full': context.nogutter || context.dot,
27
- 'rounded-[10px]': !context.nogutter && !context.dot,
28
- },
29
-
30
- // Color
31
- 'text-primary-inverse',
32
- {
33
- 'bg-primary':
34
- !context.info &&
35
- !context.success &&
36
- !context.warning &&
37
- !context.danger &&
38
- !context.help &&
39
- !context.secondary,
40
- 'bg-surface-500 dark:bg-surface-400': context.secondary,
41
- 'bg-green-500 dark:bg-green-400': context.success,
42
- 'bg-blue-500 dark:bg-blue-400': context.info,
43
- 'bg-orange-500 dark:bg-orange-400': context.warning,
44
- 'bg-purple-500 dark:bg-purple-400': context.help,
45
- 'bg-red-500 dark:bg-red-400': context.danger,
46
- },
47
- ],
48
- }),
49
- }
@@ -1,8 +0,0 @@
1
- export default {
2
- root: {
3
- class: 'relative',
4
- },
5
- mask: {
6
- class: 'bg-black/40',
7
- },
8
- }
@@ -1,63 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Shape
5
- 'rounded-md',
6
-
7
- // Spacing
8
- 'p-4',
9
-
10
- // Color
11
- 'bg-surface-0 dark:bg-surface-900',
12
-
13
- // Misc
14
- 'overflow-x-auto',
15
- ],
16
- },
17
- menu: {
18
- class: [
19
- // Flex & Alignment
20
- 'flex items-center flex-nowrap',
21
-
22
- // Spacing
23
- 'm-0 p-0 list-none leading-none',
24
- ],
25
- },
26
- action: {
27
- class: [
28
- // Flex & Alignment
29
- 'flex items-center',
30
-
31
- // Shape
32
- 'rounded-md',
33
-
34
- // Color
35
- 'text-surface-600 dark:text-white/70',
36
-
37
- // States
38
- 'focus-visible:outline-none focus-visible:outline-offset-0',
39
- 'focus-visible:ring-1 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400',
40
-
41
- // Transitions
42
- 'transition-shadow duration-200',
43
-
44
- // Misc
45
- 'text-decoration-none',
46
- ],
47
- },
48
- icon: {
49
- class: 'text-surface-600 dark:text-white/70',
50
- },
51
- separator: {
52
- class: [
53
- // Flex & Alignment
54
- 'flex items-center',
55
-
56
- // Spacing
57
- 'mx-2',
58
-
59
- // Color
60
- 'text-surface-600 dark:text-white/70',
61
- ],
62
- },
63
- }