@fy-/fws-vue 0.3.0 → 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 (179) hide show
  1. package/package.json +1 -11
  2. package/presets/Lara/accordion/index.js +0 -86
  3. package/presets/Lara/autocomplete/index.js +0 -284
  4. package/presets/Lara/avatar/index.js +0 -46
  5. package/presets/Lara/badge/index.js +0 -44
  6. package/presets/Lara/badgedirective/index.js +0 -49
  7. package/presets/Lara/blockui/index.js +0 -8
  8. package/presets/Lara/breadcrumb/index.js +0 -64
  9. package/presets/Lara/button/index.js +0 -470
  10. package/presets/Lara/calendar/index.js +0 -683
  11. package/presets/Lara/card/index.js +0 -37
  12. package/presets/Lara/carousel/index.js +0 -152
  13. package/presets/Lara/cascadeselect/index.js +0 -228
  14. package/presets/Lara/checkbox/index.js +0 -106
  15. package/presets/Lara/chip/index.js +0 -45
  16. package/presets/Lara/chips/index.js +0 -118
  17. package/presets/Lara/colorpicker/index.js +0 -129
  18. package/presets/Lara/confirmpopup/index.js +0 -107
  19. package/presets/Lara/contextmenu/index.js +0 -130
  20. package/presets/Lara/datatable/index.js +0 -1289
  21. package/presets/Lara/dataview/index.js +0 -40
  22. package/presets/Lara/deferred/index.js +0 -3
  23. package/presets/Lara/dialog/index.js +0 -249
  24. package/presets/Lara/divider/index.js +0 -72
  25. package/presets/Lara/dock/index.js +0 -97
  26. package/presets/Lara/dropdown/index.js +0 -300
  27. package/presets/Lara/fieldset/index.js +0 -98
  28. package/presets/Lara/fileupload/index.js +0 -173
  29. package/presets/Lara/floatlabel/index.js +0 -26
  30. package/presets/Lara/galleria/index.js +0 -351
  31. package/presets/Lara/global.js +0 -90
  32. package/presets/Lara/iconfield/index.js +0 -22
  33. package/presets/Lara/image/index.js +0 -206
  34. package/presets/Lara/index.js +0 -181
  35. package/presets/Lara/inlinemessage/index.js +0 -36
  36. package/presets/Lara/inplace/index.js +0 -27
  37. package/presets/Lara/inputgroup/index.js +0 -5
  38. package/presets/Lara/inputgroupaddon/index.js +0 -28
  39. package/presets/Lara/inputmask/index.js +0 -37
  40. package/presets/Lara/inputnumber/index.js +0 -253
  41. package/presets/Lara/inputotp/index.js +0 -72
  42. package/presets/Lara/inputswitch/index.js +0 -93
  43. package/presets/Lara/inputtext/index.js +0 -61
  44. package/presets/Lara/knob/index.js +0 -47
  45. package/presets/Lara/listbox/index.js +0 -170
  46. package/presets/Lara/megamenu/index.js +0 -207
  47. package/presets/Lara/menu/index.js +0 -98
  48. package/presets/Lara/menubar/index.js +0 -181
  49. package/presets/Lara/message/index.js +0 -87
  50. package/presets/Lara/metergroup/index.js +0 -110
  51. package/presets/Lara/multiselect/index.js +0 -589
  52. package/presets/Lara/orderlist/index.js +0 -266
  53. package/presets/Lara/organizationchart/index.js +0 -142
  54. package/presets/Lara/overlaypanel/index.js +0 -41
  55. package/presets/Lara/paginator/index.js +0 -590
  56. package/presets/Lara/panel/index.js +0 -93
  57. package/presets/Lara/panelmenu/index.js +0 -139
  58. package/presets/Lara/password/index.js +0 -140
  59. package/presets/Lara/picklist/index.js +0 -659
  60. package/presets/Lara/progressbar/index.js +0 -61
  61. package/presets/Lara/progressspinner/index.js +0 -51
  62. package/presets/Lara/radiobutton/index.js +0 -116
  63. package/presets/Lara/rating/index.js +0 -95
  64. package/presets/Lara/ripple/index.js +0 -6
  65. package/presets/Lara/scrollpanel/index.js +0 -77
  66. package/presets/Lara/scrolltop/index.js +0 -45
  67. package/presets/Lara/selectbutton/index.js +0 -60
  68. package/presets/Lara/sidebar/index.js +0 -163
  69. package/presets/Lara/skeleton/index.js +0 -19
  70. package/presets/Lara/slider/index.js +0 -149
  71. package/presets/Lara/speeddial/index.js +0 -535
  72. package/presets/Lara/splitbutton/index.js +0 -1081
  73. package/presets/Lara/splitter/index.js +0 -64
  74. package/presets/Lara/stepper/index.js +0 -183
  75. package/presets/Lara/steps/index.js +0 -115
  76. package/presets/Lara/tabmenu/index.js +0 -82
  77. package/presets/Lara/tabview/index.js +0 -166
  78. package/presets/Lara/tag/index.js +0 -37
  79. package/presets/Lara/terminal/index.js +0 -60
  80. package/presets/Lara/textarea/index.js +0 -39
  81. package/presets/Lara/tieredmenu/index.js +0 -125
  82. package/presets/Lara/timeline/index.js +0 -107
  83. package/presets/Lara/toast/index.js +0 -113
  84. package/presets/Lara/togglebutton/index.js +0 -100
  85. package/presets/Lara/toolbar/index.js +0 -28
  86. package/presets/Lara/tooltip/index.js +0 -73
  87. package/presets/Lara/tree/index.js +0 -281
  88. package/presets/Lara/treeselect/index.js +0 -387
  89. package/presets/Lara/treetable/index.js +0 -509
  90. package/presets/Lara/tristatecheckbox/index.js +0 -112
  91. package/presets/Wind/accordion/index.js +0 -75
  92. package/presets/Wind/autocomplete/index.js +0 -294
  93. package/presets/Wind/avatar/index.js +0 -48
  94. package/presets/Wind/badge/index.js +0 -43
  95. package/presets/Wind/badgedirective/index.js +0 -50
  96. package/presets/Wind/blockui/index.js +0 -8
  97. package/presets/Wind/breadcrumb/index.js +0 -45
  98. package/presets/Wind/button/index.js +0 -474
  99. package/presets/Wind/calendar/index.js +0 -659
  100. package/presets/Wind/card/index.js +0 -40
  101. package/presets/Wind/carousel/index.js +0 -152
  102. package/presets/Wind/cascadeselect/index.js +0 -225
  103. package/presets/Wind/checkbox/index.js +0 -112
  104. package/presets/Wind/chip/index.js +0 -45
  105. package/presets/Wind/chips/index.js +0 -120
  106. package/presets/Wind/colorpicker/index.js +0 -129
  107. package/presets/Wind/confirmpopup/index.js +0 -123
  108. package/presets/Wind/contextmenu/index.js +0 -128
  109. package/presets/Wind/datatable/index.js +0 -1330
  110. package/presets/Wind/dataview/index.js +0 -40
  111. package/presets/Wind/deferred/index.js +0 -3
  112. package/presets/Wind/dialog/index.js +0 -251
  113. package/presets/Wind/divider/index.js +0 -72
  114. package/presets/Wind/dock/index.js +0 -97
  115. package/presets/Wind/dropdown/index.js +0 -287
  116. package/presets/Wind/fieldset/index.js +0 -99
  117. package/presets/Wind/fileupload/index.js +0 -173
  118. package/presets/Wind/floatlabel/index.js +0 -26
  119. package/presets/Wind/galleria/index.js +0 -351
  120. package/presets/Wind/global.js +0 -77
  121. package/presets/Wind/iconfield/index.js +0 -22
  122. package/presets/Wind/image/index.js +0 -206
  123. package/presets/Wind/index.js +0 -181
  124. package/presets/Wind/inlinemessage/index.js +0 -29
  125. package/presets/Wind/inplace/index.js +0 -30
  126. package/presets/Wind/inputgroup/index.js +0 -5
  127. package/presets/Wind/inputgroupaddon/index.js +0 -28
  128. package/presets/Wind/inputmask/index.js +0 -34
  129. package/presets/Wind/inputnumber/index.js +0 -244
  130. package/presets/Wind/inputotp/index.js +0 -72
  131. package/presets/Wind/inputswitch/index.js +0 -106
  132. package/presets/Wind/inputtext/index.js +0 -61
  133. package/presets/Wind/knob/index.js +0 -47
  134. package/presets/Wind/listbox/index.js +0 -159
  135. package/presets/Wind/megamenu/index.js +0 -218
  136. package/presets/Wind/menu/index.js +0 -111
  137. package/presets/Wind/menubar/index.js +0 -188
  138. package/presets/Wind/message/index.js +0 -87
  139. package/presets/Wind/metergroup/index.js +0 -110
  140. package/presets/Wind/multiselect/index.js +0 -619
  141. package/presets/Wind/orderlist/index.js +0 -275
  142. package/presets/Wind/organizationchart/index.js +0 -143
  143. package/presets/Wind/overlaypanel/index.js +0 -42
  144. package/presets/Wind/paginator/index.js +0 -596
  145. package/presets/Wind/panel/index.js +0 -95
  146. package/presets/Wind/panelmenu/index.js +0 -136
  147. package/presets/Wind/password/index.js +0 -141
  148. package/presets/Wind/picklist/index.js +0 -684
  149. package/presets/Wind/progressbar/index.js +0 -68
  150. package/presets/Wind/progressspinner/index.js +0 -51
  151. package/presets/Wind/radiobutton/index.js +0 -92
  152. package/presets/Wind/rating/index.js +0 -86
  153. package/presets/Wind/ripple/index.js +0 -6
  154. package/presets/Wind/scrollpanel/index.js +0 -77
  155. package/presets/Wind/scrolltop/index.js +0 -45
  156. package/presets/Wind/selectbutton/index.js +0 -58
  157. package/presets/Wind/sidebar/index.js +0 -165
  158. package/presets/Wind/skeleton/index.js +0 -19
  159. package/presets/Wind/slider/index.js +0 -135
  160. package/presets/Wind/speeddial/index.js +0 -536
  161. package/presets/Wind/splitbutton/index.js +0 -1078
  162. package/presets/Wind/splitter/index.js +0 -64
  163. package/presets/Wind/stepper/index.js +0 -180
  164. package/presets/Wind/steps/index.js +0 -132
  165. package/presets/Wind/tabmenu/index.js +0 -84
  166. package/presets/Wind/tabview/index.js +0 -168
  167. package/presets/Wind/tag/index.js +0 -37
  168. package/presets/Wind/terminal/index.js +0 -60
  169. package/presets/Wind/textarea/index.js +0 -40
  170. package/presets/Wind/tieredmenu/index.js +0 -121
  171. package/presets/Wind/timeline/index.js +0 -107
  172. package/presets/Wind/toast/index.js +0 -111
  173. package/presets/Wind/togglebutton/index.js +0 -91
  174. package/presets/Wind/toolbar/index.js +0 -30
  175. package/presets/Wind/tooltip/index.js +0 -43
  176. package/presets/Wind/tree/index.js +0 -300
  177. package/presets/Wind/treeselect/index.js +0 -404
  178. package/presets/Wind/treetable/index.js +0 -505
  179. package/presets/Wind/tristatecheckbox/index.js +0 -118
@@ -1,181 +0,0 @@
1
- import global from "./global.js";
2
- import autocomplete from "./autocomplete/index.js";
3
- import calendar from "./calendar/index.js";
4
- import cascadeselect from "./cascadeselect/index.js";
5
- import checkbox from "./checkbox/index.js";
6
- import chips from "./chips/index.js";
7
- import colorpicker from "./colorpicker/index.js";
8
- import dropdown from "./dropdown/index.js";
9
- import floatlabel from "./floatlabel/index.js";
10
- import iconfield from "./iconfield/index.js";
11
- import inputgroup from "./inputgroup/index.js";
12
- import inputotp from "./inputotp/index.js";
13
- import inputgroupaddon from "./inputgroupaddon/index.js";
14
- import inputmask from "./inputmask/index.js";
15
- import inputnumber from "./inputnumber/index.js";
16
- import inputswitch from "./inputswitch/index.js";
17
- import inputtext from "./inputtext/index.js";
18
- import knob from "./knob/index.js";
19
- import listbox from "./listbox/index.js";
20
- import multiselect from "./multiselect/index.js";
21
- import password from "./password/index.js";
22
- import radiobutton from "./radiobutton/index.js";
23
- import rating from "./rating/index.js";
24
- import selectbutton from "./selectbutton/index.js";
25
- import slider from "./slider/index.js";
26
- import textarea from "./textarea/index.js";
27
- import togglebutton from "./togglebutton/index.js";
28
- import treeselect from "./treeselect/index.js";
29
- import tristatecheckbox from "./tristatecheckbox/index.js";
30
- import button from "./button/index.js";
31
- import speeddial from "./speeddial/index.js";
32
- import splitbutton from "./splitbutton/index.js";
33
- import datatable from "./datatable/index.js";
34
- import dataview from "./dataview/index.js";
35
- import orderlist from "./orderlist/index.js";
36
- import organizationchart from "./organizationchart/index.js";
37
- import paginator from "./paginator/index.js";
38
- import picklist from "./picklist/index.js";
39
- import tree from "./tree/index.js";
40
- import treetable from "./treetable/index.js";
41
- import timeline from "./timeline/index.js";
42
- import accordion from "./accordion/index.js";
43
- import card from "./card/index.js";
44
- import deferred from "./deferred/index.js";
45
- import divider from "./divider/index.js";
46
- import fieldset from "./fieldset/index.js";
47
- import panel from "./panel/index.js";
48
- import scrollpanel from "./scrollpanel/index.js";
49
- import splitter from "./splitter/index.js";
50
- import stepper from "./stepper/index.js";
51
- import tabview from "./tabview/index.js";
52
- import toolbar from "./toolbar/index.js";
53
- import confirmpopup from "./confirmpopup/index.js";
54
- import dialog from "./dialog/index.js";
55
- import overlaypanel from "./overlaypanel/index.js";
56
- import sidebar from "./sidebar/index.js";
57
- import tooltip from "./tooltip/index.js";
58
- import fileupload from "./fileupload/index.js";
59
- import breadcrumb from "./breadcrumb/index.js";
60
- import contextmenu from "./contextmenu/index.js";
61
- import dock from "./dock/index.js";
62
- import menu from "./menu/index.js";
63
- import menubar from "./menubar/index.js";
64
- import megamenu from "./megamenu/index.js";
65
- import panelmenu from "./panelmenu/index.js";
66
- import steps from "./steps/index.js";
67
- import tabmenu from "./tabmenu/index.js";
68
- import tieredmenu from "./tieredmenu/index.js";
69
- import message from "./message/index.js";
70
- import inlinemessage from "./inlinemessage/index.js";
71
- import toast from "./toast/index.js";
72
- import carousel from "./carousel/index.js";
73
- import galleria from "./galleria/index.js";
74
- import image from "./image/index.js";
75
- import avatar from "./avatar/index.js";
76
- import badge from "./badge/index.js";
77
- import badgedirective from "./badgedirective/index.js";
78
- import blockui from "./blockui/index.js";
79
- import chip from "./chip/index.js";
80
- import inplace from "./inplace/index.js";
81
- import metergroup from "./metergroup/index.js";
82
- import scrolltop from "./scrolltop/index.js";
83
- import skeleton from "./skeleton/index.js";
84
- import progressbar from "./progressbar/index.js";
85
- import progressspinner from "./progressspinner/index.js";
86
- import ripple from "./ripple/index.js";
87
- import tag from "./tag/index.js";
88
- import terminal from "./terminal/index.js";
89
-
90
- export default {
91
- global,
92
- directives: {
93
- tooltip,
94
- badgedirective,
95
- ripple,
96
- },
97
- autocomplete,
98
- calendar,
99
- cascadeselect,
100
- checkbox,
101
- chips,
102
- colorpicker,
103
- dropdown,
104
- floatlabel,
105
- iconfield,
106
- inputgroup,
107
- inputotp,
108
- inputgroupaddon,
109
- inputmask,
110
- inputnumber,
111
- inputswitch,
112
- inputtext,
113
- knob,
114
- listbox,
115
- multiselect,
116
- password,
117
- radiobutton,
118
- rating,
119
- selectbutton,
120
- slider,
121
- textarea,
122
- togglebutton,
123
- treeselect,
124
- tristatecheckbox,
125
- button,
126
- speeddial,
127
- splitbutton,
128
- datatable,
129
- dataview,
130
- orderlist,
131
- organizationchart,
132
- paginator,
133
- picklist,
134
- tree,
135
- treetable,
136
- timeline,
137
- accordion,
138
- card,
139
- deferred,
140
- divider,
141
- fieldset,
142
- panel,
143
- scrollpanel,
144
- splitter,
145
- stepper,
146
- tabview,
147
- toolbar,
148
- confirmpopup,
149
- dialog,
150
- overlaypanel,
151
- sidebar,
152
- fileupload,
153
- breadcrumb,
154
- contextmenu,
155
- dock,
156
- menu,
157
- menubar,
158
- megamenu,
159
- panelmenu,
160
- steps,
161
- tabmenu,
162
- tieredmenu,
163
- message,
164
- inlinemessage,
165
- toast,
166
- carousel,
167
- galleria,
168
- image,
169
- avatar,
170
- badge,
171
- blockui,
172
- chip,
173
- inplace,
174
- metergroup,
175
- scrolltop,
176
- skeleton,
177
- progressbar,
178
- progressspinner,
179
- tag,
180
- terminal,
181
- };
@@ -1,29 +0,0 @@
1
- export default {
2
- root: ({ props }) => ({
3
- class: [
4
- "inline-flex items-center justify-center align-top gap-2",
5
- "py-2 px-3 m-0 rounded-md",
6
- "ring-1 ring-inset ring-surface-200 dark:ring-surface-700 ring-offset-0",
7
- {
8
- "text-blue-500 dark:text-blue-300": props.severity == "info",
9
- "text-green-500 dark:text-green-300": props.severity == "success",
10
- "text-orange-500 dark:text-orange-300": props.severity == "warn",
11
- "text-red-500 dark:text-red-300": props.severity == "error",
12
- },
13
- ],
14
- }),
15
- icon: {
16
- class: [
17
- // Sizing and Spacing
18
- "w-4 h-4",
19
- "shrink-0",
20
- ],
21
- },
22
- text: {
23
- class: [
24
- // Font and Text
25
- "text-sm leading-none",
26
- "font-medium",
27
- ],
28
- },
29
- };
@@ -1,30 +0,0 @@
1
- export default {
2
- display: {
3
- class: [
4
- // Display
5
- "inline",
6
-
7
- // Spacing
8
- "px-2.5 py-1.5",
9
-
10
- // Size
11
- "text-sm",
12
-
13
- // Shape
14
- "rounded-md",
15
-
16
- // Colors
17
- "text-surface-700 dark:text-white/80",
18
-
19
- // States
20
- "hover:bg-surface-100 hover:text-surface-700 dark:hover:bg-surface-700/80 dark:hover:text-white/80",
21
-
22
- // Transitions
23
- "transition",
24
- "duration-200",
25
-
26
- // Misc
27
- "cursor-pointer",
28
- ],
29
- },
30
- };
@@ -1,5 +0,0 @@
1
- export default {
2
- root: {
3
- class: ["flex items-stretch", "w-full"],
4
- },
5
- };
@@ -1,28 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Flex
5
- "flex items-center justify-center",
6
-
7
- // Shape
8
- "first:rounded-l-md",
9
- "last:rounded-r-md",
10
- "border-y",
11
-
12
- "last:border-r",
13
- "border-l",
14
- "border-r-0",
15
-
16
- // Space
17
- "p-1.5",
18
-
19
- // Size
20
- "min-w-[3rem]",
21
-
22
- // Color
23
- "bg-surface-50 dark:bg-surface-800",
24
- "text-surface-600 dark:text-surface-400",
25
- "border-surface-300 dark:border-surface-600",
26
- ],
27
- },
28
- };
@@ -1,34 +0,0 @@
1
- export default {
2
- root: ({ context, props }) => ({
3
- class: [
4
- // Font
5
- "font-sans leading-6",
6
-
7
- // Spacing
8
- "m-0 py-1.5 px-3 sm:text-sm",
9
-
10
- // Colors
11
- "text-surface-900 dark:text-surface-0",
12
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
13
- "bg-surface-0 dark:bg-surface-900",
14
- "ring-1 ring-inset ring-offset-0",
15
- "shadow-sm",
16
- { "ring-surface-300 dark:ring-surface-700": !props.invalid },
17
-
18
- // Invalid State
19
- { "ring-red-500 dark:ring-red-400": props.invalid },
20
-
21
- // Shape
22
- "rounded-md",
23
- "appearance-none",
24
-
25
- // Interactions
26
- {
27
- "outline-none focus:ring-primary-500 dark:focus:ring-primary-400":
28
- !context.disabled,
29
- "opacity-60 select-none pointer-events-none cursor-default":
30
- context.disabled,
31
- },
32
- ],
33
- }),
34
- };
@@ -1,244 +0,0 @@
1
- export default {
2
- root: ({ props, parent }) => ({
3
- class: [
4
- // Flex
5
- "inline-flex",
6
- { "flex-col": props.showButtons && props.buttonLayout == "vertical" },
7
- { "flex-1 w-[1%]": parent.instance.$name == "InputGroup" },
8
-
9
- //Sizing
10
- { "!w-16": props.showButtons && props.buttonLayout == "vertical" },
11
-
12
- // Shape
13
- {
14
- "first:rounded-l-md rounded-none last:rounded-r-md":
15
- parent.instance.$name == "InputGroup" && !props.showButtons,
16
- },
17
- {
18
- "border-0 border-y border-l last:border-r border-surface-300 dark:border-surface-600":
19
- parent.instance.$name == "InputGroup" && !props.showButtons,
20
- },
21
-
22
- {
23
- "ring-1 ring-surface-300 dark:ring-surface-700 ring-offset-0":
24
- parent.instance.$name !== "InputGroup",
25
- },
26
- "shadow-sm",
27
- "rounded-md",
28
- ],
29
- }),
30
- input: {
31
- root: ({ parent, context }) => ({
32
- class: [
33
- // Display
34
- "flex flex-auto",
35
-
36
- //Text
37
- "sm:text-sm",
38
- {
39
- "text-center":
40
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
41
- },
42
-
43
- // Spacing
44
- "m-0",
45
- "py-1.5 px-3",
46
-
47
- // Shape
48
- "rounded-md",
49
- { "rounded-tr-none rounded-br-none": parent.props.showButtons },
50
- {
51
- "rounded-tl-none rounded-bl-none":
52
- parent.props.showButtons &&
53
- parent.props.buttonLayout == "horizontal",
54
- },
55
- {
56
- "rounded-none":
57
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
58
- },
59
-
60
- // Colors
61
- "text-surface-900 dark:text-surface-0",
62
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
63
- "bg-surface-0 dark:bg-surface-900",
64
- {
65
- "border-r":
66
- parent.props.showButtons && parent.props.buttonLayout == "stacked",
67
- },
68
- {
69
- "border-x":
70
- parent.props.showButtons &&
71
- parent.props.buttonLayout == "horizontal",
72
- },
73
- {
74
- "border-y":
75
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
76
- },
77
-
78
- { "border-surface-300 dark:border-surface-700": !parent.props.invalid },
79
-
80
- // Invalid State
81
- { "border border-red-500 dark:border-red-400": parent.props.invalid },
82
-
83
- // States
84
- "outline-none focus:ring-primary-600 dark:focus:ring-primary-500",
85
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-600 dark:focus:ring-primary-500",
86
-
87
- // Filled State *for FloatLabel
88
- { filled: parent.instance?.$name == "FloatLabel" && context.filled },
89
-
90
- //Position
91
- {
92
- "order-2":
93
- parent.props.buttonLayout == "horizontal" ||
94
- parent.props.buttonLayout == "vertical",
95
- },
96
- ],
97
- }),
98
- },
99
-
100
- buttongroup: {
101
- class: ["flex", "flex-col"],
102
- },
103
-
104
- incrementbutton: {
105
- root: ({ parent }) => ({
106
- class: [
107
- // Display
108
- "flex flex-auto",
109
-
110
- // Alignment
111
- "items-center",
112
- "justify-center",
113
- "text-center align-bottom",
114
-
115
- //Position
116
- "relative",
117
- {
118
- "order-3":
119
- parent.props.showButtons &&
120
- parent.props.buttonLayout == "horizontal",
121
- },
122
- {
123
- "order-1":
124
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
125
- },
126
-
127
- //Color
128
- "text-surface-600 dark:text-surface-400",
129
- "bg-surface-0 dark:bg-surface-800",
130
-
131
- // Sizing
132
- "w-[3rem]",
133
- {
134
- "px-2.5 py-1.5":
135
- parent.props.showButtons && parent.props.buttonLayout !== "stacked",
136
- },
137
- {
138
- "p-0":
139
- parent.props.showButtons && parent.props.buttonLayout == "stacked",
140
- },
141
- {
142
- "w-full":
143
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
144
- },
145
-
146
- // Shape
147
- "rounded-md",
148
- {
149
- "rounded-tl-none rounded-br-none rounded-bl-none":
150
- parent.props.showButtons && parent.props.buttonLayout == "stacked",
151
- },
152
- {
153
- "rounded-bl-none rounded-tl-none":
154
- parent.props.showButtons &&
155
- parent.props.buttonLayout == "horizontal",
156
- },
157
- {
158
- "rounded-bl-none rounded-br-none":
159
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
160
- },
161
-
162
- //States
163
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-600 focus:dark:ring-primary-500",
164
- "hover:bg-surface-50 dark:hover:bg-surface-700",
165
-
166
- //Misc
167
- "cursor-pointer overflow-hidden select-none",
168
- ],
169
- }),
170
- label: {
171
- class: "h-0 w-0",
172
- },
173
- },
174
- decrementbutton: {
175
- root: ({ parent }) => ({
176
- class: [
177
- // Display
178
- "flex flex-auto",
179
-
180
- // Alignment
181
- "items-center",
182
- "justify-center",
183
- "text-center align-bottom",
184
-
185
- //Position
186
- "relative",
187
- {
188
- "order-1":
189
- parent.props.showButtons &&
190
- parent.props.buttonLayout == "horizontal",
191
- },
192
- {
193
- "order-3":
194
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
195
- },
196
-
197
- //Color
198
- "text-surface-600 dark:text-surface-400",
199
- "bg-surface-0 dark:bg-surface-800",
200
-
201
- // Sizing
202
- "w-[3rem]",
203
- {
204
- "px-2.5 py-1.5":
205
- parent.props.showButtons && parent.props.buttonLayout !== "stacked",
206
- },
207
- {
208
- "p-0":
209
- parent.props.showButtons && parent.props.buttonLayout == "stacked",
210
- },
211
- {
212
- "w-full":
213
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
214
- },
215
-
216
- // Shape
217
- "rounded-md",
218
- {
219
- "rounded-tr-none rounded-tl-none rounded-bl-none":
220
- parent.props.showButtons && parent.props.buttonLayout == "stacked",
221
- },
222
- {
223
- "rounded-tr-none rounded-br-none ":
224
- parent.props.showButtons &&
225
- parent.props.buttonLayout == "horizontal",
226
- },
227
- {
228
- "rounded-tr-none rounded-tl-none ":
229
- parent.props.showButtons && parent.props.buttonLayout == "vertical",
230
- },
231
-
232
- //States
233
- "focus:outline-none focus:outline-offset-0 focus:ring-2 focus:ring-inset focus:ring-primary-600 focus:dark:ring-primary-500",
234
- "hover:bg-surface-50 dark:hover:bg-surface-700",
235
-
236
- //Misc
237
- "cursor-pointer overflow-hidden select-none",
238
- ],
239
- }),
240
- label: {
241
- class: "h-0 w-0",
242
- },
243
- },
244
- };
@@ -1,72 +0,0 @@
1
- export default {
2
- root: {
3
- class: [
4
- // Alignment
5
- "flex items-center",
6
- "gap-2",
7
- ],
8
- },
9
- input: {
10
- root: ({ props, context, parent }) => ({
11
- class: [
12
- // Font
13
- "font-sans leading-6",
14
-
15
- // Flex & Alignment
16
- { "flex-1 w-[1%]": parent.instance.$name == "InputGroup" },
17
- "text-center",
18
-
19
- // Spacing
20
- "m-0",
21
- {
22
- "py-1.5 px-3 sm:text-sm": props.size == null,
23
- },
24
-
25
- // Size
26
- "w-8",
27
-
28
- // Colors
29
- "text-surface-900 dark:text-surface-0",
30
- "placeholder:text-surface-400 dark:placeholder:text-surface-500",
31
- "bg-surface-0 dark:bg-surface-900",
32
- "shadow-sm",
33
- {
34
- "ring-1 ring-inset ring-offset-0":
35
- parent.instance.$name !== "InputGroup",
36
- },
37
-
38
- { "ring-surface-300 dark:ring-surface-700": !props.invalid },
39
-
40
- // Invalid State
41
- { "ring-red-500 dark:ring-red-400": props.invalid },
42
-
43
- // Shape
44
- { "rounded-md": parent.instance.$name !== "InputGroup" },
45
- {
46
- "first:rounded-l-md rounded-none last:rounded-r-md":
47
- parent.instance.$name == "InputGroup",
48
- },
49
- {
50
- "border-0 border-y border-l last:border-r border-surface-300 dark:border-surface-600":
51
- parent.instance.$name == "InputGroup",
52
- },
53
- {
54
- "first:ml-0 ml-[-1px]":
55
- parent.instance.$name == "InputGroup" && !props.showButtons,
56
- },
57
- "appearance-none",
58
-
59
- // Interactions
60
- {
61
- "outline-none focus:ring-primary-500 dark:focus:ring-primary-400":
62
- !context.disabled,
63
- "opacity-60 select-none pointer-events-none cursor-default":
64
- context.disabled,
65
- },
66
-
67
- // Filled State *for FloatLabel
68
- { filled: parent.instance?.$name == "FloatLabel" && context.filled },
69
- ],
70
- }),
71
- },
72
- };