@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,94 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'inline-block relative',
5
- 'w-10 h-6',
6
- 'rounded-2xl',
7
- {
8
- 'opacity-60 select-none pointer-events-none cursor-default':
9
- props.disabled,
10
- },
11
- ],
12
- }),
13
- slider: ({ props }) => ({
14
- class: [
15
- // Position
16
- 'absolute top-0 left-0 right-0 bottom-0',
17
- {
18
- 'before:transform before:translate-x-4':
19
- props.modelValue == props.trueValue,
20
- },
21
-
22
- // Shape
23
- 'rounded-2xl',
24
-
25
- // Before:
26
- 'before:absolute before:top-1/2 before:left-1',
27
- 'before:-mt-2',
28
- 'before:h-4 before:w-4',
29
- 'before:rounded-full',
30
- 'before:duration-200',
31
- 'before:bg-surface-0 before:dark:bg-surface-500',
32
-
33
- // Colors
34
- {
35
- 'bg-surface-300 dark:bg-surface-800':
36
- !(props.modelValue == props.trueValue) && !props.invalid,
37
- 'bg-primary': props.modelValue == props.trueValue && !props.invalid,
38
- 'before:dark:bg-surface-950': props.modelValue == props.trueValue,
39
- },
40
-
41
- // Invalid State
42
- { 'bg-red-400 dark:bg-red-300': props.invalid },
43
- { 'peer-hover:bg-red-500 dark:peer-hover:bg-red-200': props.invalid },
44
-
45
- // States
46
- {
47
- 'peer-hover:bg-surface-400 dark:peer-hover:bg-surface-700':
48
- !(props.modelValue == props.trueValue) &&
49
- !props.disabled &&
50
- !props.invalid,
51
- },
52
- {
53
- 'peer-hover:bg-primary-hover':
54
- props.modelValue == props.trueValue &&
55
- !props.disabled &&
56
- !props.invalid,
57
- },
58
- 'peer-focus-visible:ring-1 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400',
59
-
60
- // Transition
61
- 'transition-colors duration-200',
62
-
63
- // Misc
64
- 'cursor-pointer',
65
- ],
66
- }),
67
- input: {
68
- class: [
69
- 'peer',
70
-
71
- // Size
72
- 'w-full ',
73
- 'h-full',
74
-
75
- // Position
76
- 'absolute',
77
- 'top-0 left-0',
78
- 'z-10',
79
-
80
- // Spacing
81
- 'p-0',
82
- 'm-0',
83
-
84
- // Shape
85
- 'opacity-0',
86
- 'rounded-2xl',
87
- 'outline-none',
88
-
89
- // Misc
90
- 'appearance-none',
91
- 'cursor-pointer',
92
- ],
93
- },
94
- }
@@ -1,63 +0,0 @@
1
- export default {
2
- root: ({ props, context, parent }) => ({
3
- class: [
4
- // Font
5
- 'leading-none',
6
-
7
- // Flex
8
- { 'flex-1 w-[1%]': parent.instance.$name == 'InputGroup' },
9
-
10
- // Spacing
11
- 'm-0',
12
- {
13
- 'py-3 px-3.5': props.size == 'large',
14
- 'py-1.5 px-2': props.size == 'small',
15
- 'py-2 px-3': props.size == null,
16
- },
17
-
18
- // Shape
19
- { 'rounded-md': parent.instance.$name !== 'InputGroup' },
20
- {
21
- 'first:rounded-l-md rounded-none last:rounded-r-md':
22
- parent.instance.$name == 'InputGroup',
23
- },
24
- {
25
- 'border-0 border-y border-l last:border-r':
26
- parent.instance.$name == 'InputGroup',
27
- },
28
- {
29
- 'first:ml-0 -ml-px':
30
- parent.instance.$name == 'InputGroup' && !props.showButtons,
31
- },
32
-
33
- // Colors
34
- 'text-surface-800 dark:text-white/80',
35
- 'placeholder:text-surface-400 dark:placeholder:text-surface-500',
36
- { 'bg-surface-0 dark:bg-surface-950': !context.disabled },
37
- 'border',
38
- { 'border-surface-300 dark:border-surface-700': !props.invalid },
39
-
40
- // Invalid State
41
- 'invalid:focus:ring-red-200',
42
- 'invalid:hover:border-red-500',
43
- { 'border-red-500 dark:border-red-400': props.invalid },
44
-
45
- // States
46
- {
47
- 'hover:border-surface-400 dark:hover:border-surface-600':
48
- !context.disabled && !props.invalid,
49
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10':
50
- !context.disabled,
51
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
52
- context.disabled,
53
- },
54
-
55
- // Filled State *for FloatLabel
56
- { filled: parent.instance?.$name == 'FloatLabel' && context.filled },
57
-
58
- // Misc
59
- 'appearance-none',
60
- 'transition-colors duration-200',
61
- ],
62
- }),
63
- }
@@ -1,47 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Misc
5
- {
6
- 'opacity-60 select-none pointer-events-none cursor-default':
7
- props.disabled,
8
- },
9
- ],
10
- }),
11
- range: {
12
- class: [
13
- // Stroke
14
- 'stroke-current',
15
-
16
- // Color
17
- 'stroke-surface-200 dark:stroke-surface-700',
18
-
19
- // Fill
20
- 'fill-none',
21
-
22
- // Transition
23
- 'transition duration-100 ease-in',
24
- ],
25
- },
26
- value: {
27
- class: [
28
- // Animation
29
- 'animate-dash-frame',
30
-
31
- // Color
32
- 'stroke-primary',
33
-
34
- // Fill
35
- 'fill-none',
36
- ],
37
- },
38
- label: {
39
- class: [
40
- // Text Style
41
- 'text-center text-xl',
42
-
43
- // Color
44
- 'fill-surface-600 dark:fill-surface-200',
45
- ],
46
- },
47
- }
@@ -1,158 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'rounded-md',
5
-
6
- // Colors
7
- { 'bg-surface-0 dark:bg-surface-900': !props.disabled },
8
- 'text-surface-700 dark:text-white/80',
9
- 'border',
10
- { 'border-surface-300 dark:border-surface-700': !props.invalid },
11
-
12
- // Disabled State
13
- {
14
- 'bg-surface-200 dark:bg-surface-700 select-none pointer-events-none cursor-default':
15
- props.disabled,
16
- },
17
-
18
- // Invalid State
19
- { 'border-red-500 dark:border-red-400': props.invalid },
20
- ],
21
- }),
22
- wrapper: {
23
- class: [
24
- // Overflow
25
- 'overflow-auto',
26
- ],
27
- },
28
- list: {
29
- class: 'p-1 list-none m-0 outline-none',
30
- },
31
- item: ({ context }) => ({
32
- class: [
33
- 'relative',
34
-
35
- // Font
36
- 'leading-none',
37
-
38
- // Spacing
39
- 'm-0 px-3 py-2',
40
- 'first:mt-0 mt-[2px]',
41
-
42
- // Shape
43
- 'border-0 rounded',
44
-
45
- // Colors
46
- {
47
- 'text-surface-700 dark:text-white/80':
48
- !context.focused && !context.selected,
49
- 'bg-surface-200 dark:bg-surface-600/60':
50
- context.focused && !context.selected,
51
- 'text-surface-700 dark:text-white/80':
52
- context.focused && !context.selected,
53
-
54
- 'text-primary-highlight-inverse': context.selected,
55
- 'bg-primary-highlight': context.selected,
56
- },
57
-
58
- //States
59
- {
60
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
61
- !context.focused && !context.selected,
62
- },
63
- { 'hover:bg-primary-highlight-hover': context.selected },
64
- {
65
- 'hover:text-surface-700 hover:bg-surface-100 dark:hover:text-white dark:hover:bg-[rgba(255,255,255,0.03)]':
66
- context.focused && !context.selected,
67
- },
68
-
69
- // Transition
70
- 'transition-shadow duration-200',
71
-
72
- // Misc
73
- 'cursor-pointer overflow-hidden whitespace-nowrap',
74
- ],
75
- }),
76
- itemgroup: {
77
- class: [
78
- 'font-semibold',
79
-
80
- // Spacing
81
- 'm-0 py-2 px-3',
82
-
83
- // Colors
84
- 'text-surface-400 dark:text-surface-500',
85
-
86
- // Misc
87
- 'cursor-auto',
88
- ],
89
- },
90
- emptymessage: {
91
- class: [
92
- // Font
93
- 'leading-none',
94
-
95
- // Spacing
96
- 'py-2 px-3',
97
-
98
- // Color
99
- 'text-surface-800 dark:text-white/80',
100
- 'bg-transparent',
101
- ],
102
- },
103
- header: {
104
- class: [
105
- // Spacing
106
- 'pt-2 px-2 pb-0',
107
- 'm-0',
108
-
109
- //Shape
110
- 'border-b-0',
111
- 'rounded-tl-md',
112
- 'rounded-tr-md',
113
-
114
- // Color
115
- 'text-surface-700 dark:text-white/80',
116
- 'bg-surface-0 dark:bg-surface-900',
117
- 'border-surface-300 dark:border-surface-700',
118
- ],
119
- },
120
- filtercontainer: {
121
- class: 'relative',
122
- },
123
- filterinput: {
124
- class: [
125
- // Font
126
- 'leading-[normal]',
127
-
128
- // Sizing
129
- 'py-2 pl-3 pr-7',
130
- '-mr-7',
131
- 'w-full',
132
-
133
- //Color
134
- 'text-surface-700 dark:text-white/80',
135
- 'bg-surface-0 dark:bg-surface-950',
136
- 'border-surface-200 dark:border-surface-700',
137
-
138
- // Shape
139
- 'border',
140
- 'rounded-lg',
141
- 'appearance-none',
142
-
143
- // Transitions
144
- 'transition',
145
- 'duration-200',
146
-
147
- // States
148
- 'hover:border-surface-400 dark:hover:border-surface-600',
149
- 'focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10',
150
-
151
- // Misc
152
- 'appearance-none',
153
- ],
154
- },
155
- filtericon: {
156
- class: ['absolute', 'top-1/2 right-3', '-mt-2'],
157
- },
158
- }
@@ -1,206 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Flexbox
7
- 'flex',
8
-
9
- // Shape & Size
10
- 'rounded-md',
11
-
12
- // Color
13
- 'bg-surface-0 dark:bg-surface-900',
14
- 'border border-surface-200 dark:border-surface-700',
15
- {
16
- 'p-2 items-center': props.orientation == 'horizontal',
17
- 'flex-col sm:w-48 p-1': props.orientation !== 'horizontal',
18
- },
19
- ],
20
- }),
21
- menu: ({ props }) => ({
22
- class: [
23
- // Flexbox
24
- 'sm:flex',
25
- 'items-center',
26
- 'flex-wrap',
27
- 'flex-col sm:flex-row',
28
- { hidden: !props?.mobileActive, flex: props?.mobileActive },
29
-
30
- // Position
31
- 'absolute sm:relative',
32
- 'top-full left-0',
33
- 'sm:top-auto sm:left-auto',
34
-
35
- // Size
36
- 'w-full sm:w-auto',
37
-
38
- // Spacing
39
- 'm-0',
40
- 'p-1 sm:py-0 sm:p-0',
41
- 'list-none',
42
-
43
- // Shape
44
- 'shadow-md sm:shadow-none',
45
- 'border-0',
46
-
47
- // Color
48
- 'bg-surface-0 dark:bg-surface-900 sm:bg-transparent dark:sm:bg-transparent',
49
-
50
- // Misc
51
- 'outline-none',
52
- ],
53
- }),
54
- menuitem: ({ props }) => ({
55
- class: [
56
- 'sm:relative static my-[2px] [&:first-child]:mt-0',
57
- {
58
- 'sm:w-auto w-full': props.horizontal,
59
- 'w-full': !props.horizontal,
60
- },
61
- ],
62
- }),
63
- content: ({ context }) => ({
64
- class: [
65
- 'rounded-[4px]',
66
-
67
- // Colors
68
- {
69
- 'text-surface-500 dark:text-white/70':
70
- !context.focused && !context.active,
71
- 'text-surface-500 dark:text-white/70 bg-surface-200':
72
- context.focused && !context.active,
73
- 'text-primary-highlight-inverse bg-primary-highlight':
74
- (context.focused && context.active) ||
75
- context.active ||
76
- (!context.focused && context.active),
77
- },
78
-
79
- // Hover States
80
- {
81
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
82
- !context.active,
83
- 'hover:bg-primary-highlight-hover text-primary-highlight-inverse':
84
- context.active,
85
- },
86
-
87
- // Transitions
88
- 'transition-all',
89
- 'duration-200',
90
- ],
91
- }),
92
- action: {
93
- class: [
94
- 'relative',
95
-
96
- // Flexbox
97
- 'flex',
98
- 'items-center',
99
-
100
- // Spacing
101
- 'py-2',
102
- 'px-3',
103
-
104
- // Size
105
- 'leading-none',
106
-
107
- // Misc
108
- 'select-none',
109
- 'cursor-pointer',
110
- 'no-underline ',
111
- 'overflow-hidden',
112
- ],
113
- },
114
- icon: {
115
- class: 'mr-2',
116
- },
117
- submenuicon: ({ props }) => ({
118
- class: [
119
- {
120
- 'ml-auto sm:ml-2': props.horizontal,
121
- 'ml-auto': !props.horizontal,
122
- },
123
- ],
124
- }),
125
- panel: ({ props }) => ({
126
- class: [
127
- // Size
128
- 'w-auto',
129
-
130
- // Spacing
131
- 'm-0',
132
-
133
- // Shape
134
- 'shadow-none sm:shadow-md',
135
-
136
- 'rounded-md',
137
-
138
- // Color
139
- 'bg-surface-0 dark:bg-surface-900',
140
-
141
- // Position
142
- 'static sm:absolute',
143
- 'z-10',
144
- {
145
- 'sm:left-full top-0': !props.horizontal,
146
- },
147
- ],
148
- }),
149
- grid: {
150
- class: 'flex flex-wrap sm:flex-nowrap',
151
- },
152
- column: {
153
- class: 'w-full sm:w-1/2',
154
- },
155
- submenu: {
156
- class: ['m-0 list-none', 'p-1 px-2 w-full sm:min-w-[14rem]'],
157
- },
158
- submenuheader: {
159
- class: [
160
- 'font-semibold',
161
-
162
- // Spacing
163
- 'py-2 px-3',
164
- 'm-0',
165
-
166
- // Color
167
- 'text-surface-400 dark:text-surface-500',
168
- 'bg-surface-0 dark:bg-surface-900',
169
- ],
170
- },
171
- separator: {
172
- class: 'border-t border-surface-200 dark:border-surface-600 my-1',
173
- },
174
- menubutton: {
175
- class: [
176
- // Flexbox
177
- 'flex sm:hidden',
178
- 'items-center justify-center',
179
-
180
- // Size
181
- 'w-7',
182
- 'h-7',
183
-
184
- // Shape
185
- 'rounded-full',
186
- // Color
187
- 'text-surface-500 dark:text-white/80',
188
-
189
- // States
190
- 'hover:text-surface-600 dark:hover:text-white/60',
191
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]',
192
- 'focus:outline-none focus:outline-offset-0',
193
- 'focus:ring-1 focus:ring-primary-500 dark:focus:ring-primary-400',
194
-
195
- // Transitions
196
- 'transition duration-200 ease-in-out',
197
-
198
- // Misc
199
- 'cursor-pointer',
200
- 'no-underline',
201
- ],
202
- },
203
- end: {
204
- class: 'ml-auto self-center',
205
- },
206
- }
@@ -1,122 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Sizing and Shape
5
- 'min-w-[12.5rem]',
6
- 'rounded-md',
7
-
8
- // Spacing
9
- 'p-1',
10
-
11
- // Colors
12
- 'bg-surface-0 dark:bg-surface-900',
13
- 'text-surface-700 dark:text-white/80',
14
- 'border border-surface-200 dark:border-surface-700',
15
- ],
16
- },
17
- menu: {
18
- class: [
19
- // Spacings and Shape
20
- 'list-none',
21
- 'm-0',
22
- 'p-0',
23
- 'outline-none',
24
- ],
25
- },
26
- menuitem: {
27
- class: 'relative my-[2px] [&:first-child]:mt-0',
28
- },
29
- content: ({ context }) => ({
30
- class: [
31
- //Shape
32
- 'rounded-[4px]',
33
-
34
- // Colors
35
- 'text-surface-700 dark:text-white/80',
36
- {
37
- 'text-surface-500 dark:text-white/70':
38
- !context.focused && !context.active,
39
- 'text-surface-500 dark:text-white/70 bg-surface-200':
40
- context.focused && !context.active,
41
- 'text-primary-highlight-inverse bg-primary-highlight':
42
- (context.focused && context.active) ||
43
- context.active ||
44
- (!context.focused && context.active),
45
- },
46
-
47
- // Transitions
48
- 'transition-shadow',
49
- 'duration-200',
50
-
51
- // States
52
- {
53
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]':
54
- !context.active,
55
- 'hover:bg-primary-highlight-hover text-primary-highlight-inverse':
56
- context.active,
57
- },
58
-
59
- // Disabled
60
- { 'opacity-60 pointer-events-none cursor-default': context.disabled },
61
- ],
62
- }),
63
- action: {
64
- class: [
65
- 'relative',
66
- // Flexbox
67
-
68
- 'flex',
69
- 'items-center',
70
-
71
- // Spacing
72
- 'py-2',
73
- 'px-3',
74
-
75
- // Color
76
- 'text-surface-700 dark:text-white/80',
77
-
78
- // Misc
79
- 'no-underline',
80
- 'overflow-hidden',
81
- 'cursor-pointer',
82
- 'select-none',
83
- ],
84
- },
85
- icon: {
86
- class: [
87
- // Spacing
88
- 'mr-2',
89
-
90
- // Color
91
- 'text-surface-600 dark:text-white/70',
92
- ],
93
- },
94
- label: {
95
- class: ['leading-[normal]'],
96
- },
97
- submenuheader: {
98
- class: [
99
- // Font
100
- 'font-bold',
101
-
102
- // Spacing
103
- 'm-0',
104
- 'py-2 px-3',
105
-
106
- // Shape
107
- 'rounded-tl-none',
108
- 'rounded-tr-none',
109
-
110
- // Colors
111
- 'bg-surface-0 dark:bg-surface-900',
112
- 'text-surface-400 dark:text-surface-600',
113
- ],
114
- },
115
- transition: {
116
- enterFromClass: 'opacity-0 scale-y-[0.8]',
117
- enterActiveClass:
118
- 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
119
- leaveActiveClass: 'transition-opacity duration-100 ease-linear',
120
- leaveToClass: 'opacity-0',
121
- },
122
- }