@cooperco/cooper-component-library 0.0.10 → 0.1.0

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 (178) hide show
  1. package/dist/component-lib.js +6947 -0
  2. package/dist/component-lib.umd.cjs +98 -0
  3. package/package.json +29 -20
  4. package/src/assets/fonts/GT-Walsheim-Bold.woff +0 -0
  5. package/src/assets/fonts/GT-Walsheim-Bold.woff2 +0 -0
  6. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff +0 -0
  7. package/src/assets/fonts/GT-Walsheim-LC-Bold.woff2 +0 -0
  8. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff +0 -0
  9. package/src/assets/fonts/GT-Walsheim-LC-Regular.woff2 +0 -0
  10. package/src/assets/fonts/GT-Walsheim-Medium.woff +0 -0
  11. package/src/assets/fonts/GT-Walsheim-Medium.woff2 +0 -0
  12. package/src/assets/fonts/GT-Walsheim-Regular.woff +0 -0
  13. package/src/assets/fonts/GT-Walsheim-Regular.woff2 +0 -0
  14. package/src/assets/fonts/fonts.scss +60 -0
  15. package/src/assets/fonts/notosanssc-bold-webfont.woff +0 -0
  16. package/src/assets/fonts/notosanssc-bold-webfont.woff2 +0 -0
  17. package/src/assets/fonts/notosanssc-regular-webfont.woff +0 -0
  18. package/src/assets/fonts/notosanssc-regular-webfont.woff2 +0 -0
  19. package/src/assets/main.css +18 -114
  20. package/src/assets/theme.css +5 -1
  21. package/src/components/{types → Accordion}/Accordion.ts +8 -6
  22. package/src/components/Accordion/Accordion.vue +66 -0
  23. package/src/components/Accordion/AccordionItem.ts +25 -0
  24. package/src/components/Accordion/AccordionItem.vue +104 -0
  25. package/src/components/{AccordionItem.vue → Accordion/AccordionListItem.vue} +22 -14
  26. package/src/components/Accordion/AccordionTileItem.vue +75 -0
  27. package/src/components/CTA/CTA.ts +22 -0
  28. package/src/components/CTA/CTA.vue +65 -0
  29. package/src/components/CarouselModule/CarouselModule.ts +20 -0
  30. package/src/components/{CarouselModule.vue → CarouselModule/CarouselModule.vue} +25 -7
  31. package/src/components/ContainerCollectionModule/ContainerCollectionModule.ts +12 -0
  32. package/src/components/{ContainerCollectionModule.vue → ContainerCollectionModule/ContainerCollectionModule.vue} +12 -3
  33. package/src/components/ContainerModule/ContainerModule.ts +69 -0
  34. package/src/components/{ContainerModule.vue → ContainerModule/ContainerModule.vue} +33 -36
  35. package/src/components/ContentModule/ContentModule.ts +31 -0
  36. package/src/components/ContentModule/ContentModule.vue +65 -0
  37. package/src/components/{types → FooterNavigation}/FooterNavigation.ts +3 -2
  38. package/src/components/{FooterNavigation.vue → FooterNavigation/FooterNavigation.vue} +4 -2
  39. package/src/components/Image/Image.vue +17 -0
  40. package/src/components/{types → LogoCollectionModule}/LogoCollectionModule.ts +3 -3
  41. package/src/components/{LogoCollectionModule.vue → LogoCollectionModule/LogoCollectionModule.vue} +13 -3
  42. package/src/components/{types → NavigationElement}/NavigationElement.ts +6 -3
  43. package/src/components/{NavigationElement.vue → NavigationElement/NavigationElement.vue} +18 -9
  44. package/src/components/{types → PrimaryNavigation}/PrimaryNavigation.ts +2 -2
  45. package/src/components/{PrimaryNavigation.vue → PrimaryNavigation/PrimaryNavigation.vue} +7 -4
  46. package/src/components/{types → SplitModule}/SplitModule.ts +6 -5
  47. package/src/components/SplitModule/SplitModule.vue +57 -0
  48. package/src/components/TestimonialModule/TestimonialModule.ts +22 -0
  49. package/src/components/TestimonialModule/TestimonialModule.vue +51 -0
  50. package/src/components/TileCollectionModule/TileCollectionModule.ts +18 -0
  51. package/src/components/TileCollectionModule/TileCollectionModule.vue +58 -0
  52. package/src/components/TileContent/TileContent.ts +60 -0
  53. package/src/components/{TileContent.vue → TileContent/TileContent.vue} +25 -14
  54. package/src/components/TileContent/TileContentIconTile.vue +83 -0
  55. package/src/components/TileContent/TileContentImageStackedAnimatedTile.vue +121 -0
  56. package/src/components/TileContent/TileContentImageTile.vue +80 -0
  57. package/src/components/TileContent/TileContentTextTile.vue +63 -0
  58. package/src/components/TileContent/TileContentVideoTile.vue +81 -0
  59. package/src/components/{types → Video}/Video.ts +1 -1
  60. package/src/components/{Video.vue → Video/Video.vue} +1 -1
  61. package/src/assets/usercard.jpg +0 -0
  62. package/src/assets/vue.svg +0 -1
  63. package/src/components/Accordion.vue +0 -33
  64. package/src/components/CTA.vue +0 -39
  65. package/src/components/ContentAndImage.vue +0 -34
  66. package/src/components/ContentMediaModule.vue +0 -50
  67. package/src/components/ContentModule.vue +0 -51
  68. package/src/components/IconChevron.vue +0 -107
  69. package/src/components/Image.vue +0 -15
  70. package/src/components/LogoContainerModule.vue +0 -30
  71. package/src/components/SplitModule.vue +0 -42
  72. package/src/components/Testimonial.vue +0 -48
  73. package/src/components/TestimonialModule.vue +0 -48
  74. package/src/components/TileCollection.vue +0 -37
  75. package/src/components/TileCollectionModule.vue +0 -45
  76. package/src/components/types/AccordionItem.ts +0 -19
  77. package/src/components/types/CTA.ts +0 -13
  78. package/src/components/types/CarouselModule.ts +0 -21
  79. package/src/components/types/ContainerCollectionModule.ts +0 -12
  80. package/src/components/types/ContainerModule.ts +0 -35
  81. package/src/components/types/ContentAndImage.ts +0 -14
  82. package/src/components/types/ContentMediaModule.ts +0 -14
  83. package/src/components/types/ContentModule.ts +0 -21
  84. package/src/components/types/LogoContainerModule.ts +0 -12
  85. package/src/components/types/Testimonial.ts +0 -17
  86. package/src/components/types/TileCollection.ts +0 -14
  87. package/src/components/types/TileContent.ts +0 -34
  88. package/src/components/types/index.ts +0 -10
  89. package/src/presets/aura/accordion/index.js +0 -81
  90. package/src/presets/aura/autocomplete/index.js +0 -280
  91. package/src/presets/aura/avatar/index.js +0 -46
  92. package/src/presets/aura/badge/index.js +0 -43
  93. package/src/presets/aura/badgedirective/index.js +0 -49
  94. package/src/presets/aura/blockui/index.js +0 -8
  95. package/src/presets/aura/breadcrumb/index.js +0 -63
  96. package/src/presets/aura/button/index.js +0 -511
  97. package/src/presets/aura/calendar/index.js +0 -702
  98. package/src/presets/aura/card/index.js +0 -53
  99. package/src/presets/aura/carousel/index.js +0 -160
  100. package/src/presets/aura/cascadeselect/index.js +0 -220
  101. package/src/presets/aura/checkbox/index.js +0 -107
  102. package/src/presets/aura/chip/index.js +0 -45
  103. package/src/presets/aura/chips/index.js +0 -126
  104. package/src/presets/aura/colorpicker/index.js +0 -132
  105. package/src/presets/aura/confirmpopup/index.js +0 -111
  106. package/src/presets/aura/contextmenu/index.js +0 -132
  107. package/src/presets/aura/datatable/index.js +0 -1290
  108. package/src/presets/aura/dataview/index.js +0 -40
  109. package/src/presets/aura/deferred/index.js +0 -3
  110. package/src/presets/aura/dialog/index.js +0 -250
  111. package/src/presets/aura/divider/index.js +0 -72
  112. package/src/presets/aura/dock/index.js +0 -97
  113. package/src/presets/aura/dropdown/index.js +0 -297
  114. package/src/presets/aura/fieldset/index.js +0 -95
  115. package/src/presets/aura/fileupload/index.js +0 -175
  116. package/src/presets/aura/floatlabel/index.js +0 -26
  117. package/src/presets/aura/galleria/index.js +0 -353
  118. package/src/presets/aura/global.js +0 -90
  119. package/src/presets/aura/iconfield/index.js +0 -22
  120. package/src/presets/aura/image/index.js +0 -206
  121. package/src/presets/aura/index.js +0 -181
  122. package/src/presets/aura/inlinemessage/index.js +0 -46
  123. package/src/presets/aura/inplace/index.js +0 -27
  124. package/src/presets/aura/inputgroup/index.js +0 -5
  125. package/src/presets/aura/inputgroupaddon/index.js +0 -28
  126. package/src/presets/aura/inputmask/index.js +0 -47
  127. package/src/presets/aura/inputnumber/index.js +0 -293
  128. package/src/presets/aura/inputotp/index.js +0 -69
  129. package/src/presets/aura/inputswitch/index.js +0 -94
  130. package/src/presets/aura/inputtext/index.js +0 -63
  131. package/src/presets/aura/knob/index.js +0 -47
  132. package/src/presets/aura/listbox/index.js +0 -158
  133. package/src/presets/aura/megamenu/index.js +0 -206
  134. package/src/presets/aura/menu/index.js +0 -122
  135. package/src/presets/aura/menubar/index.js +0 -184
  136. package/src/presets/aura/message/index.js +0 -112
  137. package/src/presets/aura/metergroup/index.js +0 -110
  138. package/src/presets/aura/multiselect/index.js +0 -579
  139. package/src/presets/aura/orderlist/index.js +0 -281
  140. package/src/presets/aura/organizationchart/index.js +0 -142
  141. package/src/presets/aura/overlaypanel/index.js +0 -34
  142. package/src/presets/aura/paginator/index.js +0 -566
  143. package/src/presets/aura/panel/index.js +0 -102
  144. package/src/presets/aura/panelmenu/index.js +0 -130
  145. package/src/presets/aura/password/index.js +0 -143
  146. package/src/presets/aura/picklist/index.js +0 -718
  147. package/src/presets/aura/progressbar/index.js +0 -64
  148. package/src/presets/aura/progressspinner/index.js +0 -51
  149. package/src/presets/aura/radiobutton/index.js +0 -121
  150. package/src/presets/aura/rating/index.js +0 -95
  151. package/src/presets/aura/ripple/index.js +0 -6
  152. package/src/presets/aura/scrollpanel/index.js +0 -77
  153. package/src/presets/aura/scrolltop/index.js +0 -45
  154. package/src/presets/aura/selectbutton/index.js +0 -66
  155. package/src/presets/aura/sidebar/index.js +0 -160
  156. package/src/presets/aura/skeleton/index.js +0 -19
  157. package/src/presets/aura/slider/index.js +0 -144
  158. package/src/presets/aura/speeddial/index.js +0 -579
  159. package/src/presets/aura/splitbutton/index.js +0 -1185
  160. package/src/presets/aura/splitter/index.js +0 -71
  161. package/src/presets/aura/stepper/index.js +0 -183
  162. package/src/presets/aura/steps/index.js +0 -117
  163. package/src/presets/aura/tabmenu/index.js +0 -75
  164. package/src/presets/aura/tabview/index.js +0 -162
  165. package/src/presets/aura/tag/index.js +0 -44
  166. package/src/presets/aura/terminal/index.js +0 -60
  167. package/src/presets/aura/textarea/index.js +0 -49
  168. package/src/presets/aura/tieredmenu/index.js +0 -125
  169. package/src/presets/aura/timeline/index.js +0 -114
  170. package/src/presets/aura/toast/index.js +0 -151
  171. package/src/presets/aura/togglebutton/index.js +0 -98
  172. package/src/presets/aura/toolbar/index.js +0 -28
  173. package/src/presets/aura/tooltip/index.js +0 -73
  174. package/src/presets/aura/tree/index.js +0 -294
  175. package/src/presets/aura/treeselect/index.js +0 -404
  176. package/src/presets/aura/treetable/index.js +0 -513
  177. package/src/presets/aura/tristatecheckbox/index.js +0 -121
  178. /package/src/components/{types → Image}/Image.ts +0 -0
@@ -1,64 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Position and Overflow
5
- 'overflow-hidden',
6
- 'relative',
7
-
8
- // Shape and Size
9
- 'border-0',
10
- 'h-5',
11
- 'rounded-md',
12
-
13
- // Colors
14
- 'bg-surface-100 dark:bg-surface-800',
15
- ],
16
- },
17
- value: ({ props }) => ({
18
- class: [
19
- // Flexbox & Overflow & Position
20
- {
21
- 'absolute flex items-center justify-center overflow-hidden':
22
- props.mode !== 'indeterminate',
23
- },
24
-
25
- // Colors
26
- 'bg-primary',
27
-
28
- // Spacing & Sizing
29
- 'm-0',
30
- { 'h-full w-0': props.mode !== 'indeterminate' },
31
-
32
- // Shape
33
- 'border-0',
34
-
35
- // Transitions
36
- {
37
- 'transition-width duration-1000 ease-in-out':
38
- props.mode !== 'indeterminate',
39
- 'progressbar-value-animate': props.mode == 'indeterminate',
40
- },
41
-
42
- // Before & After (indeterminate)
43
- {
44
- 'before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ':
45
- props.mode == 'indeterminate',
46
- 'after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000':
47
- props.mode == 'indeterminate',
48
- },
49
- ],
50
- }),
51
- label: {
52
- class: [
53
- //Font
54
- 'text-xs font-semibold',
55
-
56
- // Flexbox
57
- 'inline-flex',
58
-
59
- // Font and Text
60
- 'text-white dark:text-surface-900',
61
- 'leading-5',
62
- ],
63
- },
64
- }
@@ -1,51 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Position
5
- 'relative',
6
- 'mx-auto',
7
-
8
- // Sizing
9
- 'w-28',
10
- 'h-28',
11
-
12
- // Flexbox
13
- 'inline-block',
14
-
15
- // Pseudo-Elements
16
- 'before:block',
17
- 'before:pt-full',
18
- ],
19
- },
20
- spinner: {
21
- class: [
22
- // Position
23
- 'absolute',
24
- 'top-0',
25
- 'bottom-0',
26
- 'left-0',
27
- 'right-0',
28
- 'm-auto',
29
-
30
- // Sizing
31
- 'w-full',
32
- 'h-full',
33
-
34
- // Transformations
35
- 'transform',
36
- 'origin-center',
37
-
38
- // Animations
39
- 'animate-spin',
40
- ],
41
- },
42
- circle: {
43
- class: [
44
- // Colors
45
- 'text-red-500',
46
-
47
- // Misc
48
- 'progress-spinner-circle',
49
- ],
50
- },
51
- }
@@ -1,121 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- 'relative',
5
-
6
- // Flexbox & Alignment
7
- 'inline-flex',
8
- 'align-bottom',
9
-
10
- // Size
11
- 'w-5 h-5',
12
-
13
- // Misc
14
- 'cursor-pointer',
15
- 'select-none',
16
- ],
17
- },
18
- box: ({ props }) => ({
19
- class: [
20
- // Flexbox
21
- 'flex justify-center items-center',
22
-
23
- // Size
24
- 'w-5 h-5',
25
-
26
- // Shape
27
- 'border',
28
- 'rounded-full',
29
-
30
- // Transition
31
- 'transition duration-200 ease-in-out',
32
-
33
- // Colors
34
- { 'bg-surface-0 dark:bg-surface-950': !props.disabled },
35
- {
36
- 'text-surface-700 dark:text-white/80':
37
- props.value !== props.modelValue && props.value !== undefined,
38
- 'border-surface-300 dark:border-surface-700':
39
- props.value !== props.modelValue &&
40
- props.value !== undefined &&
41
- !props.invalid,
42
- 'border-primary':
43
- props.value == props.modelValue &&
44
- props.value !== undefined &&
45
- !props.disabled,
46
- },
47
- // Invalid State
48
- { 'border-red-500 dark:border-red-400': props.invalid },
49
-
50
- // States
51
- {
52
- 'peer-hover:border-surface-400 dark:peer-hover:border-surface-400':
53
- !props.disabled && !props.invalid && props.value !== props.modelValue,
54
- 'peer-hover:border-primary-hover':
55
- !props.disabled &&
56
- props.value == props.modelValue &&
57
- props.value !== undefined,
58
- 'peer-hover:[&>*:first-child]:bg-primary-600 dark:peer-hover:[&>*:first-child]:bg-primary-300':
59
- !props.disabled &&
60
- props.value == props.modelValue &&
61
- props.value !== undefined,
62
- 'peer-focus-visible:ring-1 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400':
63
- !props.disabled,
64
- 'bg-surface-200 [&>*:first-child]:bg-surface-600 dark:bg-surface-700 dark:[&>*:first-child]:bg-surface-400 border-surface-300 dark:border-surface-700 select-none pointer-events-none cursor-default':
65
- props.disabled,
66
- },
67
- ],
68
- }),
69
- input: {
70
- class: [
71
- 'peer',
72
-
73
- // Size
74
- 'w-full ',
75
- 'h-full',
76
-
77
- // Position
78
- 'absolute',
79
- 'top-0 left-0',
80
- 'z-10',
81
-
82
- // Spacing
83
- 'p-0',
84
- 'm-0',
85
-
86
- // Shape
87
- 'opacity-0',
88
- 'rounded-md',
89
- 'outline-none',
90
- 'border-1 border-surface-200 dark:border-surface-700',
91
-
92
- // Misc
93
- 'appearance-none',
94
- 'cursor-pointer',
95
- ],
96
- },
97
- icon: ({ props }) => ({
98
- class: [
99
- 'block',
100
-
101
- // Shape
102
- 'rounded-full',
103
-
104
- // Size
105
- 'w-3 h-3',
106
-
107
- // Conditions
108
- {
109
- 'bg-surface-0 dark:bg-surface-900': props.value !== props.modelValue,
110
- 'bg-primary': props.value == props.modelValue,
111
- 'backface-hidden invisible scale-[0.1]':
112
- props.value !== props.modelValue,
113
- 'transform visible translate-z-0 scale-[1,1]':
114
- props.value == props.modelValue,
115
- },
116
-
117
- // Transition
118
- 'transition duration-200',
119
- ],
120
- }),
121
- }
@@ -1,95 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'relative',
5
-
6
- // Flex & Alignment
7
- 'flex items-center',
8
- 'gap-1',
9
-
10
- // Misc
11
- {
12
- 'opacity-60 select-none pointer-events-none cursor-default':
13
- props.disabled,
14
- },
15
- ],
16
- }),
17
- cancelitem: ({ context }) => ({
18
- class: [
19
- // Flex & Alignment
20
- 'inline-flex items-center',
21
-
22
- //State
23
- {
24
- 'outline-none ring-1 ring-primary-500/50 dark:ring-primary-500':
25
- context.focused,
26
- },
27
-
28
- // Misc
29
- 'cursor-pointer',
30
- ],
31
- }),
32
- cancelicon: {
33
- class: [
34
- // Size
35
- 'w-4 h-4',
36
-
37
- // Color
38
- 'text-red-500 dark:text-red-400',
39
-
40
- // State
41
- 'hover:text-red-600 dark:hover:text-red-300',
42
-
43
- // Transition
44
- 'transition duration-200 ease-in',
45
- ],
46
- },
47
- item: ({ props, context }) => ({
48
- class: [
49
- // Flex & Alignment
50
- 'inline-flex items-center',
51
-
52
- // State
53
- {
54
- 'outline-none ring-1 ring-primary-500/50 dark:ring-primary-500':
55
- context.focused,
56
- },
57
-
58
- // Misc
59
- {
60
- 'cursor-pointer': !props.readonly,
61
- 'cursor-default': props.readonly,
62
- },
63
- ],
64
- }),
65
- officon: ({ props }) => ({
66
- class: [
67
- // Size
68
- 'w-4 h-4',
69
-
70
- // Color
71
- 'text-surface-700 dark:text-surface-0/80',
72
-
73
- // State
74
- { 'hover:text-primary-500 dark:hover:text-primary-400': !props.readonly },
75
-
76
- // Transition
77
- 'transition duration-200 ease-in',
78
- ],
79
- }),
80
- onicon: ({ props }) => ({
81
- class: [
82
- // Size
83
- 'w-4 h-4',
84
-
85
- // Color
86
- 'text-primary',
87
-
88
- // State
89
- { 'hover:text-primary-600 dark:hover:text-primary-300': !props.readonly },
90
-
91
- // Transition
92
- 'transition duration-200 ease-in',
93
- ],
94
- }),
95
- }
@@ -1,6 +0,0 @@
1
- export default {
2
- root: {
3
- class: ['block absolute bg-surface-0/50 rounded-full pointer-events-none'],
4
- style: 'transform: scale(0)',
5
- },
6
- }
@@ -1,77 +0,0 @@
1
- export default {
2
- wrapper: {
3
- class: [
4
- // Size & Position
5
- 'h-full w-full',
6
-
7
- // Layering
8
- 'z-[1]',
9
-
10
- // Spacing
11
- 'overflow-hidden',
12
-
13
- // Misc
14
- 'relative float-left',
15
- ],
16
- },
17
- content: {
18
- class: [
19
- // Size & Spacing
20
- 'h-[calc(100%+18px)] w-[calc(100%+18px)] pr-[18px] pb-[18px] pl-0 pt-0',
21
-
22
- // Overflow & Scrollbar
23
- 'overflow-scroll scrollbar-none',
24
-
25
- // Box Model
26
- 'box-border',
27
-
28
- // Position
29
- 'relative',
30
-
31
- // Webkit Specific
32
- '[&::-webkit-scrollbar]:hidden',
33
- ],
34
- },
35
- barX: {
36
- class: [
37
- // Size & Position
38
- 'h-[9px] bottom-0',
39
-
40
- // Appearance
41
- 'bg-surface-50 dark:bg-surface-700 rounded',
42
-
43
- // Interactivity
44
- 'cursor-pointer',
45
-
46
- // Visibility & Layering
47
- 'invisible z-20',
48
-
49
- // Transition
50
- 'transition duration-[250ms] ease-linear',
51
-
52
- // Misc
53
- 'relative',
54
- ],
55
- },
56
- barY: {
57
- class: [
58
- // Size & Position
59
- 'w-[9px] top-0',
60
-
61
- // Appearance
62
- 'bg-surface-50 dark:bg-surface-700 rounded',
63
-
64
- // Interactivity
65
- 'cursor-pointer',
66
-
67
- // Visibility & Layering
68
- 'z-20',
69
-
70
- // Transition
71
- 'transition duration-[250ms] ease-linear',
72
-
73
- // Misc
74
- 'relative',
75
- ],
76
- },
77
- }
@@ -1,45 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Flex & Alignment
5
- 'flex items-center justify-center',
6
-
7
- // Positioning
8
- {
9
- sticky: props.target === 'parent',
10
- fixed: props.target === 'window',
11
- },
12
- 'bottom-[20px] right-[20px]',
13
- 'ml-auto',
14
-
15
- // Shape & Size
16
- {
17
- 'rounded-md h-8 w-8': props.target === 'parent',
18
- 'h-12 w-12 rounded-full shadow-md': props.target === 'window',
19
- },
20
-
21
- // Color
22
-
23
- {
24
- 'text-white dark:text-surface-900': props.target === 'parent',
25
- 'text-surface-0': props.target === 'window',
26
- 'bg-primary': props.target === 'parent',
27
- 'bg-surface-600 dark:bg-surface-700 hover:bg-surface-700 dark:hover:bg-surface-600':
28
- props.target === 'window',
29
- },
30
-
31
- // States
32
- {
33
- 'hover:bg-primary-hover': props.target === 'parent',
34
- 'hover:bg-surface-600 dark:hover:bg-surface-300':
35
- props.target === 'window',
36
- },
37
- ],
38
- }),
39
- transition: {
40
- enterFromClass: 'opacity-0',
41
- enterActiveClass: 'transition-opacity duration-150',
42
- leaveActiveClass: 'transition-opacity duration-150',
43
- leaveToClass: 'opacity-0',
44
- },
45
- }
@@ -1,66 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- {
5
- 'opacity-60 select-none pointer-events-none cursor-default':
6
- props.disabled,
7
- },
8
- ],
9
- }),
10
- button: ({ context, props }) => ({
11
- class: [
12
- 'relative',
13
- // Font
14
- 'leading-none',
15
-
16
- // Flex Alignment
17
- 'inline-flex items-center align-bottom text-center',
18
-
19
- // Spacing
20
- 'px-4 py-2',
21
-
22
- // Shape
23
- 'first:rounded-l-md first:rounded-tr-none first:rounded-br-none',
24
- 'last:rounded-tl-none last:rounded-bl-none last:rounded-r-md',
25
-
26
- // Before
27
- 'before:absolute before:left-1 before:top-1 before:w-[calc(100%-0.5rem)] before:h-[calc(100%-0.5rem)] before:rounded-[4px] before:z-0',
28
- '[&>*]:z-10',
29
-
30
- // Color
31
- 'bg-surface-100 dark:bg-surface-950',
32
- {
33
- 'text-surface-600 dark:text-white/60 before:bg-transparent':
34
- !context.active,
35
- 'text-surface-800 dark:text-white/80 before:bg-surface-0 dark:before:bg-surface-800':
36
- context.active,
37
- },
38
-
39
- // Invalid State
40
- {
41
- 'border first:border-r-0 last:border-l-0 border-red-500 dark:border-red-400':
42
- props.invalid,
43
- },
44
-
45
- // States
46
- 'focus-visible:outline-none focus-visible:outline-offset-0 focus-visible:ring-1 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400 focus:z-10',
47
- {
48
- 'hover:text-surface-800 dark:hover:text-white/80':
49
- !context.active && !props.invalid,
50
- },
51
- {
52
- 'opacity-60 select-none pointer-events-none cursor-default':
53
- context.disabled,
54
- },
55
-
56
- // Transition
57
- 'transition duration-200',
58
-
59
- // Misc
60
- 'cursor-pointer select-none overflow-hidden',
61
- ],
62
- }),
63
- label: {
64
- class: 'font-medium leading-[normal] text-center w-full z-10 relative',
65
- },
66
- }
@@ -1,160 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Flexbox
5
- 'flex flex-col',
6
-
7
- // Position
8
- 'relative',
9
- {
10
- '!transition-none !transform-none !w-screen !h-screen !max-h-full !top-0 !left-0':
11
- props.position == 'full',
12
- },
13
-
14
- // Size
15
- {
16
- 'h-full w-80': props.position == 'left' || props.position == 'right',
17
- 'h-auto w-full': props.position == 'top' || props.position == 'bottom',
18
- },
19
-
20
- // Shape
21
- 'border-0 dark:border',
22
- 'shadow-lg',
23
-
24
- // Colors
25
- 'bg-surface-0 dark:bg-surface-900',
26
- 'text-surface-700 dark:text-white/80',
27
- 'dark:border-surface-700',
28
-
29
- // Transitions
30
- 'transition-transform',
31
- 'duration-300',
32
-
33
- // Misc
34
- 'pointer-events-auto',
35
- ],
36
- }),
37
- header: {
38
- class: [
39
- // Flexbox and Alignment
40
- 'flex items-center justify-between',
41
- 'shrink-0',
42
-
43
- // Spacing
44
- 'p-[1.125rem]',
45
-
46
- // Colors
47
- 'bg-surface-0 dark:bg-surface-900',
48
- 'text-surface-700 dark:text-surface-0/80',
49
- ],
50
- },
51
- title: {
52
- class: ['font-semibold text-xl'],
53
- },
54
- icons: {
55
- class: ['flex items-center'],
56
- },
57
- closeButton: {
58
- class: [
59
- 'relative',
60
-
61
- // Flexbox and Alignment
62
- 'flex items-center justify-center',
63
-
64
- // Size and Spacing
65
- 'mr-2',
66
- 'last:mr-0',
67
- 'w-7 h-7',
68
-
69
- // Shape
70
- 'border-0',
71
- 'rounded-full',
72
-
73
- // Colors
74
- 'text-surface-500',
75
- 'bg-transparent',
76
-
77
- // Transitions
78
- 'transition duration-200 ease-in-out',
79
-
80
- // States
81
- 'hover:text-surface-700 dark:hover:text-white/80',
82
- 'hover:bg-surface-100 dark:hover:bg-[rgba(255,255,255,0.03)]',
83
- 'focus:outline-none focus:outline-offset-0 focus:ring-1',
84
- 'focus:ring-primary-500 dark:focus:ring-primary-400',
85
-
86
- // Misc
87
- 'overflow-hidden',
88
- ],
89
- },
90
- closeButtonIcon: {
91
- class: [
92
- // Display
93
- 'inline-block',
94
-
95
- // Size
96
- 'w-4',
97
- 'h-4',
98
- ],
99
- },
100
- content: {
101
- class: [
102
- // Spacing and Size
103
- 'p-[1.125rem]',
104
- 'pt-0',
105
- 'h-full',
106
- 'w-full',
107
-
108
- // Growth and Overflow
109
- 'grow',
110
- 'overflow-y-auto',
111
- ],
112
- },
113
- mask: ({ props }) => ({
114
- class: [
115
- // Transitions
116
- 'transition-all',
117
- 'duration-300',
118
- { 'p-5': !props.position == 'full' },
119
-
120
- // Background and Effects
121
- { 'has-[.mask-active]:bg-transparent bg-black/40': props.modal },
122
- ],
123
- }),
124
- transition: ({ props }) => {
125
- return props.position === 'top'
126
- ? {
127
- enterFromClass:
128
- 'translate-x-0 -translate-y-full translate-z-0 mask-active',
129
- leaveToClass:
130
- 'translate-x-0 -translate-y-full translate-z-0 mask-active',
131
- }
132
- : props.position === 'bottom'
133
- ? {
134
- enterFromClass:
135
- 'translate-x-0 translate-y-full translate-z-0 mask-active',
136
- leaveToClass:
137
- 'translate-x-0 translate-y-full translate-z-0 mask-active',
138
- }
139
- : props.position === 'left'
140
- ? {
141
- enterFromClass:
142
- '-translate-x-full translate-y-0 translate-z-0 mask-active',
143
- leaveToClass:
144
- '-translate-x-full translate-y-0 translate-z-0 mask-active',
145
- }
146
- : props.position === 'right'
147
- ? {
148
- enterFromClass:
149
- 'translate-x-full translate-y-0 translate-z-0 mask-active',
150
- leaveToClass:
151
- 'translate-x-full translate-y-0 translate-z-0 mask-active',
152
- }
153
- : {
154
- enterFromClass: 'opacity-0 mask-active',
155
- enterActiveClass: 'transition-opacity duration-400 ease-in',
156
- leaveActiveClass: 'transition-opacity duration-400 ease-in',
157
- leaveToClass: 'opacity-0 mask-active',
158
- }
159
- },
160
- }
@@ -1,19 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- 'overflow-hidden',
5
- {
6
- 'animate-pulse': props.animation !== 'none',
7
- },
8
-
9
- // Round
10
- {
11
- 'rounded-full': props.shape === 'circle',
12
- 'rounded-md': props.shape !== 'circle',
13
- },
14
-
15
- // Colors
16
- 'bg-surface-200 dark:bg-surface-700',
17
- ],
18
- }),
19
- }