@fy-/fws-vue 0.2.9 → 0.3.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 (180) hide show
  1. package/components/ui/DefaultInput.vue +204 -213
  2. package/package.json +2 -12
  3. package/presets/Lara/accordion/index.js +0 -86
  4. package/presets/Lara/autocomplete/index.js +0 -284
  5. package/presets/Lara/avatar/index.js +0 -46
  6. package/presets/Lara/badge/index.js +0 -44
  7. package/presets/Lara/badgedirective/index.js +0 -49
  8. package/presets/Lara/blockui/index.js +0 -8
  9. package/presets/Lara/breadcrumb/index.js +0 -64
  10. package/presets/Lara/button/index.js +0 -470
  11. package/presets/Lara/calendar/index.js +0 -683
  12. package/presets/Lara/card/index.js +0 -37
  13. package/presets/Lara/carousel/index.js +0 -152
  14. package/presets/Lara/cascadeselect/index.js +0 -228
  15. package/presets/Lara/checkbox/index.js +0 -106
  16. package/presets/Lara/chip/index.js +0 -45
  17. package/presets/Lara/chips/index.js +0 -118
  18. package/presets/Lara/colorpicker/index.js +0 -129
  19. package/presets/Lara/confirmpopup/index.js +0 -107
  20. package/presets/Lara/contextmenu/index.js +0 -130
  21. package/presets/Lara/datatable/index.js +0 -1289
  22. package/presets/Lara/dataview/index.js +0 -40
  23. package/presets/Lara/deferred/index.js +0 -3
  24. package/presets/Lara/dialog/index.js +0 -249
  25. package/presets/Lara/divider/index.js +0 -72
  26. package/presets/Lara/dock/index.js +0 -97
  27. package/presets/Lara/dropdown/index.js +0 -300
  28. package/presets/Lara/fieldset/index.js +0 -98
  29. package/presets/Lara/fileupload/index.js +0 -173
  30. package/presets/Lara/floatlabel/index.js +0 -26
  31. package/presets/Lara/galleria/index.js +0 -351
  32. package/presets/Lara/global.js +0 -90
  33. package/presets/Lara/iconfield/index.js +0 -22
  34. package/presets/Lara/image/index.js +0 -206
  35. package/presets/Lara/index.js +0 -181
  36. package/presets/Lara/inlinemessage/index.js +0 -36
  37. package/presets/Lara/inplace/index.js +0 -27
  38. package/presets/Lara/inputgroup/index.js +0 -5
  39. package/presets/Lara/inputgroupaddon/index.js +0 -28
  40. package/presets/Lara/inputmask/index.js +0 -37
  41. package/presets/Lara/inputnumber/index.js +0 -253
  42. package/presets/Lara/inputotp/index.js +0 -72
  43. package/presets/Lara/inputswitch/index.js +0 -93
  44. package/presets/Lara/inputtext/index.js +0 -61
  45. package/presets/Lara/knob/index.js +0 -47
  46. package/presets/Lara/listbox/index.js +0 -170
  47. package/presets/Lara/megamenu/index.js +0 -207
  48. package/presets/Lara/menu/index.js +0 -98
  49. package/presets/Lara/menubar/index.js +0 -181
  50. package/presets/Lara/message/index.js +0 -87
  51. package/presets/Lara/metergroup/index.js +0 -110
  52. package/presets/Lara/multiselect/index.js +0 -589
  53. package/presets/Lara/orderlist/index.js +0 -266
  54. package/presets/Lara/organizationchart/index.js +0 -142
  55. package/presets/Lara/overlaypanel/index.js +0 -41
  56. package/presets/Lara/paginator/index.js +0 -590
  57. package/presets/Lara/panel/index.js +0 -93
  58. package/presets/Lara/panelmenu/index.js +0 -139
  59. package/presets/Lara/password/index.js +0 -140
  60. package/presets/Lara/picklist/index.js +0 -659
  61. package/presets/Lara/progressbar/index.js +0 -61
  62. package/presets/Lara/progressspinner/index.js +0 -51
  63. package/presets/Lara/radiobutton/index.js +0 -116
  64. package/presets/Lara/rating/index.js +0 -95
  65. package/presets/Lara/ripple/index.js +0 -6
  66. package/presets/Lara/scrollpanel/index.js +0 -77
  67. package/presets/Lara/scrolltop/index.js +0 -45
  68. package/presets/Lara/selectbutton/index.js +0 -60
  69. package/presets/Lara/sidebar/index.js +0 -163
  70. package/presets/Lara/skeleton/index.js +0 -19
  71. package/presets/Lara/slider/index.js +0 -149
  72. package/presets/Lara/speeddial/index.js +0 -535
  73. package/presets/Lara/splitbutton/index.js +0 -1081
  74. package/presets/Lara/splitter/index.js +0 -64
  75. package/presets/Lara/stepper/index.js +0 -183
  76. package/presets/Lara/steps/index.js +0 -115
  77. package/presets/Lara/tabmenu/index.js +0 -82
  78. package/presets/Lara/tabview/index.js +0 -166
  79. package/presets/Lara/tag/index.js +0 -37
  80. package/presets/Lara/terminal/index.js +0 -60
  81. package/presets/Lara/textarea/index.js +0 -39
  82. package/presets/Lara/tieredmenu/index.js +0 -125
  83. package/presets/Lara/timeline/index.js +0 -107
  84. package/presets/Lara/toast/index.js +0 -113
  85. package/presets/Lara/togglebutton/index.js +0 -100
  86. package/presets/Lara/toolbar/index.js +0 -28
  87. package/presets/Lara/tooltip/index.js +0 -73
  88. package/presets/Lara/tree/index.js +0 -281
  89. package/presets/Lara/treeselect/index.js +0 -387
  90. package/presets/Lara/treetable/index.js +0 -509
  91. package/presets/Lara/tristatecheckbox/index.js +0 -112
  92. package/presets/Wind/accordion/index.js +0 -75
  93. package/presets/Wind/autocomplete/index.js +0 -294
  94. package/presets/Wind/avatar/index.js +0 -48
  95. package/presets/Wind/badge/index.js +0 -43
  96. package/presets/Wind/badgedirective/index.js +0 -50
  97. package/presets/Wind/blockui/index.js +0 -8
  98. package/presets/Wind/breadcrumb/index.js +0 -45
  99. package/presets/Wind/button/index.js +0 -474
  100. package/presets/Wind/calendar/index.js +0 -659
  101. package/presets/Wind/card/index.js +0 -40
  102. package/presets/Wind/carousel/index.js +0 -152
  103. package/presets/Wind/cascadeselect/index.js +0 -225
  104. package/presets/Wind/checkbox/index.js +0 -112
  105. package/presets/Wind/chip/index.js +0 -45
  106. package/presets/Wind/chips/index.js +0 -120
  107. package/presets/Wind/colorpicker/index.js +0 -129
  108. package/presets/Wind/confirmpopup/index.js +0 -123
  109. package/presets/Wind/contextmenu/index.js +0 -128
  110. package/presets/Wind/datatable/index.js +0 -1330
  111. package/presets/Wind/dataview/index.js +0 -40
  112. package/presets/Wind/deferred/index.js +0 -3
  113. package/presets/Wind/dialog/index.js +0 -251
  114. package/presets/Wind/divider/index.js +0 -72
  115. package/presets/Wind/dock/index.js +0 -97
  116. package/presets/Wind/dropdown/index.js +0 -287
  117. package/presets/Wind/fieldset/index.js +0 -99
  118. package/presets/Wind/fileupload/index.js +0 -173
  119. package/presets/Wind/floatlabel/index.js +0 -26
  120. package/presets/Wind/galleria/index.js +0 -351
  121. package/presets/Wind/global.js +0 -77
  122. package/presets/Wind/iconfield/index.js +0 -22
  123. package/presets/Wind/image/index.js +0 -206
  124. package/presets/Wind/index.js +0 -181
  125. package/presets/Wind/inlinemessage/index.js +0 -29
  126. package/presets/Wind/inplace/index.js +0 -30
  127. package/presets/Wind/inputgroup/index.js +0 -5
  128. package/presets/Wind/inputgroupaddon/index.js +0 -28
  129. package/presets/Wind/inputmask/index.js +0 -34
  130. package/presets/Wind/inputnumber/index.js +0 -244
  131. package/presets/Wind/inputotp/index.js +0 -72
  132. package/presets/Wind/inputswitch/index.js +0 -106
  133. package/presets/Wind/inputtext/index.js +0 -61
  134. package/presets/Wind/knob/index.js +0 -47
  135. package/presets/Wind/listbox/index.js +0 -159
  136. package/presets/Wind/megamenu/index.js +0 -218
  137. package/presets/Wind/menu/index.js +0 -111
  138. package/presets/Wind/menubar/index.js +0 -188
  139. package/presets/Wind/message/index.js +0 -87
  140. package/presets/Wind/metergroup/index.js +0 -110
  141. package/presets/Wind/multiselect/index.js +0 -619
  142. package/presets/Wind/orderlist/index.js +0 -275
  143. package/presets/Wind/organizationchart/index.js +0 -143
  144. package/presets/Wind/overlaypanel/index.js +0 -42
  145. package/presets/Wind/paginator/index.js +0 -596
  146. package/presets/Wind/panel/index.js +0 -95
  147. package/presets/Wind/panelmenu/index.js +0 -136
  148. package/presets/Wind/password/index.js +0 -141
  149. package/presets/Wind/picklist/index.js +0 -684
  150. package/presets/Wind/progressbar/index.js +0 -68
  151. package/presets/Wind/progressspinner/index.js +0 -51
  152. package/presets/Wind/radiobutton/index.js +0 -92
  153. package/presets/Wind/rating/index.js +0 -86
  154. package/presets/Wind/ripple/index.js +0 -6
  155. package/presets/Wind/scrollpanel/index.js +0 -77
  156. package/presets/Wind/scrolltop/index.js +0 -45
  157. package/presets/Wind/selectbutton/index.js +0 -58
  158. package/presets/Wind/sidebar/index.js +0 -165
  159. package/presets/Wind/skeleton/index.js +0 -19
  160. package/presets/Wind/slider/index.js +0 -135
  161. package/presets/Wind/speeddial/index.js +0 -536
  162. package/presets/Wind/splitbutton/index.js +0 -1078
  163. package/presets/Wind/splitter/index.js +0 -64
  164. package/presets/Wind/stepper/index.js +0 -180
  165. package/presets/Wind/steps/index.js +0 -132
  166. package/presets/Wind/tabmenu/index.js +0 -84
  167. package/presets/Wind/tabview/index.js +0 -168
  168. package/presets/Wind/tag/index.js +0 -37
  169. package/presets/Wind/terminal/index.js +0 -60
  170. package/presets/Wind/textarea/index.js +0 -40
  171. package/presets/Wind/tieredmenu/index.js +0 -121
  172. package/presets/Wind/timeline/index.js +0 -107
  173. package/presets/Wind/toast/index.js +0 -111
  174. package/presets/Wind/togglebutton/index.js +0 -91
  175. package/presets/Wind/toolbar/index.js +0 -30
  176. package/presets/Wind/tooltip/index.js +0 -43
  177. package/presets/Wind/tree/index.js +0 -300
  178. package/presets/Wind/treeselect/index.js +0 -404
  179. package/presets/Wind/treetable/index.js +0 -505
  180. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,68 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- // Position and Overflow
5
- "relative overflow-hidden",
6
-
7
- // Shape and Size
8
- "border-0",
9
- "rounded-md",
10
- { "h-7 pt-5": props.mode !== "indeterminate" && props.showValue },
11
- {
12
- "h-2 bg-surface-100 dark:bg-surface-700 ":
13
- props.mode == "indeterminate" || !props.showValue,
14
- },
15
-
16
- // Before & After (!indeterminate)
17
- {
18
- "before:absolute before:w-full before:rounded-md before:h-2 before:top-[1.25rem] before:left-0 before:bottom-0 before:bg-surface-100 dark:before:bg-surface-700":
19
- props.mode !== "indeterminate",
20
- },
21
- ],
22
- }),
23
- value: ({ props }) => ({
24
- class: [
25
- // Flexbox & Overflow & Position
26
- {
27
- "absolute flex items-center justify-center":
28
- props.mode !== "indeterminate",
29
- },
30
-
31
- // Colors
32
- "bg-primary-500 dark:bg-primary-400",
33
-
34
- // Spacing & Sizing
35
- "m-0",
36
- { "h-2 w-0": props.mode !== "indeterminate" },
37
-
38
- // Shape
39
- "border-0 rounded-md",
40
-
41
- // Transitions
42
- {
43
- "transition-width duration-1000 ease-in-out":
44
- props.mode !== "indeterminate",
45
- "progressbar-value-animate": props.mode == "indeterminate",
46
- },
47
-
48
- // Before & After (indeterminate)
49
- {
50
- "before:absolute before:top-0 before:left-0 before:bottom-0 before:bg-inherit ":
51
- props.mode == "indeterminate",
52
- "after:absolute after:top-0 after:left-0 after:bottom-0 after:bg-inherit after:delay-1000":
53
- props.mode == "indeterminate",
54
- },
55
- ],
56
- }),
57
- label: {
58
- class: [
59
- // Flexbox
60
- "inline-flex justify-end",
61
- "absolute inset-0 mr-1 -top-[1.15rem]",
62
-
63
- // Font and Text
64
- "text-sm text-surface-600 dark:text-surface-0/60",
65
- "leading-none",
66
- ],
67
- },
68
- };
@@ -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,92 +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-4 h-4",
12
-
13
- // Misc
14
- "cursor-default",
15
- "select-none",
16
- ],
17
- },
18
- box: ({ props }) => ({
19
- class: [
20
- // Flexbox
21
- "flex justify-center items-center",
22
-
23
- // Size
24
- "w-4 h-4",
25
- "text-sm",
26
- "font-medium",
27
-
28
- // Shape
29
- "border-2",
30
- "rounded-full",
31
-
32
- // Transition
33
- "transition duration-200 ease-in-out",
34
-
35
- // Colors
36
- {
37
- "text-surface-700 dark:text-white/80":
38
- props.value !== props.modelValue && props.value !== undefined,
39
- "bg-surface-0 dark:bg-surface-900":
40
- props.value !== props.modelValue && props.value !== undefined,
41
- "border-surface-300 dark:border-surface-700":
42
- props.value !== props.modelValue &&
43
- props.value !== undefined &&
44
- !props.invalid,
45
- "border-primary-500 dark:border-primary-400":
46
- props.value == props.modelValue && props.value !== undefined,
47
- },
48
-
49
- // Invalid State
50
- { "border-red-500 dark:border-red-400": props.invalid },
51
-
52
- // States
53
- {
54
- "outline-none outline-offset-0": !props.disabled,
55
- "peer-focus-visible:ring-2 peer-focus-visible:ring-offset-2 peer-focus-visible:ring-offset-surface-0 dark:focus-visible:ring-offset-surface-800 peer-focus-visible:ring-primary-500 dark:peer-focus-visible:ring-primary-400":
56
- !props.disabled,
57
- "opacity-60 cursor-default": props.disabled,
58
- },
59
- ],
60
- }),
61
- input: {
62
- class: [
63
- "peer",
64
-
65
- // Size
66
- "w-full ",
67
- "h-full",
68
-
69
- // Position
70
- "absolute",
71
- "top-0 left-0",
72
- "z-10",
73
-
74
- // Spacing
75
- "p-0",
76
- "m-0",
77
-
78
- // Shape
79
- "opacity-0",
80
- "rounded-md",
81
- "outline-none",
82
- "border-2 border-surface-300 dark:border-surface-700",
83
-
84
- // Misc
85
- "appearance-none",
86
- "cursor-default",
87
- ],
88
- },
89
- icon: {
90
- class: "hidden",
91
- },
92
- };
@@ -1,86 +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-2 ring-primary-500 dark:ring-primary-400":
25
- context.focused,
26
- },
27
-
28
- // Misc
29
- "cursor-pointer",
30
- ],
31
- }),
32
- cancelicon: {
33
- class: [
34
- // Size
35
- "w-5 h-5",
36
-
37
- // Color
38
- "text-red-500 dark:text-red-400",
39
- ],
40
- },
41
- item: ({ props, context }) => ({
42
- class: [
43
- // Flex & Alignment
44
- "inline-flex items-center",
45
-
46
- // State
47
- {
48
- "outline-none ring-2 ring-primary-500 dark:ring-primary-400":
49
- context.focused,
50
- },
51
-
52
- // Misc
53
- {
54
- "cursor-pointer": !props.readonly,
55
- "cursor-default": props.readonly,
56
- },
57
- ],
58
- }),
59
- officon: ({ props }) => ({
60
- class: [
61
- // Size
62
- "w-5 h-5",
63
-
64
- // Color
65
- "text-surface-700 dark:text-surface-0/70",
66
-
67
- // State
68
- { "hover:text-primary-500 dark:hover:text-primary-400": !props.readonly },
69
-
70
- // Transition
71
- "transition duration-200 ease-in",
72
- ],
73
- }),
74
- onicon: ({ props }) => ({
75
- class: [
76
- // Size
77
- "w-5 h-5",
78
-
79
- // Color
80
- "text-primary-500 dark:text-primary-400",
81
-
82
- // Transition
83
- "transition duration-200 ease-in",
84
- ],
85
- }),
86
- };
@@ -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%+12px)] w-[calc(100%+12px)] pr-[12px] pb-[12px] 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-[6px] bottom-0",
39
-
40
- // Appearance
41
- "bg-surface-100 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-[6px] top-0",
60
-
61
- // Appearance
62
- "bg-surface-100 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
- "text-white dark:text-surface-900",
23
- {
24
- "bg-primary-500 dark:bg-primary-400 hover:bg-primary-600 dark:hover:bg-primary-300":
25
- props.target === "parent",
26
- "bg-surface-500 dark:bg-surface-400 hover:bg-surface-600 dark:hover:bg-surface-300":
27
- props.target === "window",
28
- },
29
-
30
- // States
31
- {
32
- "hover:bg-primary-600 dark:hover:bg-primary-300":
33
- 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,58 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "shadow-sm",
5
- {
6
- "opacity-60 select-none pointer-events-none cursor-default":
7
- props.disabled,
8
- },
9
- ],
10
- }),
11
- button: ({ context, props }) => ({
12
- class: [
13
- "relative",
14
- // Font
15
- "text-sm",
16
- "leading-none",
17
-
18
- // Flex Alignment
19
- "inline-flex items-center align-bottom text-center",
20
-
21
- // Spacing
22
- "px-2.5 py-1.5",
23
-
24
- // Shape
25
- "ring-1",
26
- { "ring-surface-200 dark:ring-surface-700": !props.invalid },
27
- "first:rounded-l-md first:rounded-tr-none first:rounded-br-none",
28
- "last:rounded-tl-none last:rounded-bl-none last:rounded-r-md ",
29
-
30
- // Color
31
- {
32
- "bg-surface-0 dark:bg-surface-900": !context.active,
33
- "text-surface-700 dark:text-white/80": !context.active,
34
- "bg-surface-100 dark:bg-surface-700": context.active,
35
- },
36
-
37
- // Invalid State
38
- { "ring-red-500 dark:ring-red-400": props.invalid },
39
-
40
- // States
41
- "focus:outline-none focus:outline-offset-0 focus:ring-primary-500 dark:focus:ring-primary-400 focus:z-10",
42
- "hover:bg-surface-200 dark:hover:bg-surface-600/80",
43
- {
44
- "opacity-60 select-none pointer-events-none cursor-default":
45
- context.disabled,
46
- },
47
-
48
- // Transition
49
- "transition duration-200",
50
-
51
- // Misc
52
- "cursor-pointer select-none overflow-hidden",
53
- ],
54
- }),
55
- label: {
56
- class: "font-semibold",
57
- },
58
- };
@@ -1,165 +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-full max-w-[28rem]":
17
- props.position == "left" || props.position == "right",
18
- "h-auto w-full": props.position == "top" || props.position == "bottom",
19
- },
20
-
21
- // Shape
22
- "border-0 dark:border",
23
- "shadow-xl",
24
-
25
- // Colors
26
- "bg-surface-0 dark:bg-surface-800",
27
- "text-surface-700 dark:text-white/80",
28
- "dark:border-surface-700",
29
-
30
- // Transitions
31
- "transition-transform",
32
- "duration-300",
33
-
34
- // Misc
35
- "pointer-events-auto",
36
- ],
37
- }),
38
- header: {
39
- class: [
40
- // Flexbox and Alignment
41
- "flex items-center justify-between",
42
- "shrink-0",
43
-
44
- // Spacing
45
- "px-6 pt-6",
46
-
47
- // Colors
48
- "bg-surface-0 dark:bg-surface-800",
49
- "text-surface-700 dark:text-surface-0/80",
50
- ],
51
- },
52
- title: {
53
- class: ["font-semibold leading-6 text-base m-0"],
54
- },
55
- icons: {
56
- class: ["flex items-center"],
57
- },
58
- closeButton: {
59
- class: [
60
- "relative",
61
-
62
- // Flexbox and Alignment
63
- "flex items-center justify-center",
64
-
65
- // Size and Spacing
66
- "mr-2",
67
- "last:mr-0",
68
- "w-6 h-6",
69
-
70
- // Shape
71
- "border-0",
72
- "rounded-full",
73
-
74
- // Colors
75
- "text-surface-500",
76
- "bg-transparent",
77
-
78
- // Transitions
79
- "transition duration-200 ease-in-out",
80
-
81
- // States
82
- "hover:text-surface-700 dark:hover:text-white/80",
83
- "hover:bg-surface-100 dark:hover:bg-surface-800/80",
84
- "focus:outline-none focus:outline-offset-0 focus:ring-1 focus:ring-inset",
85
- "focus:ring-primary-500 dark:focus:ring-primary-400",
86
-
87
- // Misc
88
- "overflow-hidden",
89
- ],
90
- },
91
- closeicon: {
92
- class: [
93
- // Display
94
- "inline-block",
95
-
96
- // Size
97
- "w-3",
98
- "h-3",
99
- ],
100
- },
101
- content: {
102
- class: [
103
- // Spacing and Size
104
- "px-6 pb-6",
105
- "mt-6",
106
- "h-full",
107
- "w-full",
108
-
109
- // Growth and Overflow
110
- "grow",
111
- "overflow-y-auto",
112
- ],
113
- },
114
- mask: ({ props }) => ({
115
- class: [
116
- // Transitions
117
- "transition",
118
- "duration-300",
119
- { "p-5": !props.position == "full" },
120
-
121
- // Background and Effects
122
- {
123
- "has-[.mask-active]:bg-transparent dark:has-[.mask-active]:bg-transparent bg-surface-500/70 dark:bg-surface-700/70":
124
- props.modal,
125
- "has-[.mask-active]:backdrop-blur-none backdrop-blur-sm": props.modal,
126
- },
127
- ],
128
- }),
129
- transition: ({ props }) => {
130
- return props.position === "top"
131
- ? {
132
- enterFromClass:
133
- "translate-x-0 -translate-y-full translate-z-0 mask-active",
134
- leaveToClass:
135
- "translate-x-0 -translate-y-full translate-z-0 mask-active",
136
- }
137
- : props.position === "bottom"
138
- ? {
139
- enterFromClass:
140
- "translate-x-0 translate-y-full translate-z-0 mask-active",
141
- leaveToClass:
142
- "translate-x-0 translate-y-full translate-z-0 mask-active",
143
- }
144
- : props.position === "left"
145
- ? {
146
- enterFromClass:
147
- "-translate-x-full translate-y-0 translate-z-0 mask-active",
148
- leaveToClass:
149
- "-translate-x-full translate-y-0 translate-z-0 mask-active",
150
- }
151
- : props.position === "right"
152
- ? {
153
- enterFromClass:
154
- "translate-x-full translate-y-0 translate-z-0 mask-active",
155
- leaveToClass:
156
- "translate-x-full translate-y-0 translate-z-0 mask-active",
157
- }
158
- : {
159
- enterFromClass: "opacity-0 mask-active",
160
- enterActiveClass: "transition-opacity duration-400 ease-in",
161
- leaveActiveClass: "transition-opacity duration-400 ease-in",
162
- leaveToClass: "opacity-0 mask-active",
163
- };
164
- },
165
- };
@@ -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
- };