@mixd-id/web-scaffold 0.1.2301231369 → 0.2.240702

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 (249) hide show
  1. package/LICENSE +1 -0
  2. package/docs/components/Header2.md +16 -0
  3. package/docs/components/TreeView.md +0 -0
  4. package/package.json +22 -5
  5. package/src/App.vue +9 -1
  6. package/src/components/Ahref.vue +175 -9
  7. package/src/components/Alert.vue +181 -75
  8. package/src/components/Article.vue +393 -0
  9. package/src/components/Block.vue +31 -0
  10. package/src/components/Box.vue +34 -0
  11. package/src/components/Button.vue +208 -129
  12. package/src/components/Carousel.vue +194 -124
  13. package/src/components/Chart.vue +485 -0
  14. package/src/components/ChartBar.vue +193 -0
  15. package/src/components/Checkbox.vue +95 -55
  16. package/src/components/CodeEditor.vue +61 -0
  17. package/src/components/ColorPicker.vue +158 -0
  18. package/src/components/ColorPicker2.vue +164 -0
  19. package/src/components/Confirm.vue +178 -0
  20. package/src/components/ContextMenu.vue +164 -76
  21. package/src/components/ConversationBuilder.vue +161 -0
  22. package/src/components/CopyToClipboard.vue +6 -31
  23. package/src/components/Countdown.vue +104 -53
  24. package/src/components/DGrid.vue +21 -0
  25. package/src/components/DGridItem.vue +263 -0
  26. package/src/components/DataList.vue +92 -0
  27. package/src/components/Datepicker.vue +65 -41
  28. package/src/components/DayTimeRange.vue +125 -0
  29. package/src/components/Dropdown.vue +32 -9
  30. package/src/components/ErrorText.vue +30 -9
  31. package/src/components/FBLogin.vue +194 -0
  32. package/src/components/Flex.vue +70 -0
  33. package/src/components/GSignIn.vue +166 -0
  34. package/src/components/Gmaps.vue +35 -11
  35. package/src/components/Grid.vue +24 -20
  36. package/src/components/HTMLEditor.vue +258 -79
  37. package/src/components/IconMenu.vue +95 -0
  38. package/src/components/IconMenu2.vue +89 -0
  39. package/src/components/IconPlus.vue +89 -0
  40. package/src/components/Image.vue +161 -59
  41. package/src/components/Image360.vue +2 -2
  42. package/src/components/ImagePreview.vue +23 -11
  43. package/src/components/ImportModal.vue +27 -14
  44. package/src/components/Link.vue +39 -0
  45. package/src/components/List.vue +1177 -0
  46. package/src/components/ListItem.vue +32 -21
  47. package/src/components/ListPage1.vue +88 -17
  48. package/src/components/ListPage1Filter.vue +2 -2
  49. package/src/components/ListView.vue +962 -0
  50. package/src/components/ListViewBarSummary.vue +81 -0
  51. package/src/components/ListViewLineSummary.vue +75 -0
  52. package/src/components/ListViewLiveBarSummary.vue +52 -0
  53. package/src/components/ListViewMapSummary.vue +56 -0
  54. package/src/components/ListViewSettings.vue +514 -0
  55. package/src/components/ListViewTableSummary.vue +77 -0
  56. package/src/components/LogViewerItem.vue +116 -0
  57. package/src/components/Modal.vue +274 -122
  58. package/src/components/MultilineText.vue +177 -0
  59. package/src/components/OTPField.vue +5 -6
  60. package/src/components/ObjectTree.vue +105 -0
  61. package/src/components/PageBuilder.vue +449 -0
  62. package/src/components/Paragraph.vue +41 -0
  63. package/src/components/PresetSelectorFilterItem.vue +178 -0
  64. package/src/components/Radio.vue +62 -87
  65. package/src/components/SearchButton.vue +1 -1
  66. package/src/components/Slider.vue +107 -75
  67. package/src/components/Svg.vue +33 -0
  68. package/src/components/Switch.vue +15 -5
  69. package/src/components/TabView.vue +0 -1
  70. package/src/components/Table.vue +56 -0
  71. package/src/components/TableViewHead.vue +2 -2
  72. package/src/components/Tabs.vue +68 -11
  73. package/src/components/Test.vue +23 -0
  74. package/src/components/Testimonial.vue +86 -0
  75. package/src/components/Text.vue +49 -0
  76. package/src/components/TextBlock.vue +50 -0
  77. package/src/components/TextWithTag.vue +225 -0
  78. package/src/components/Textarea.vue +22 -16
  79. package/src/components/Textbox.vue +83 -62
  80. package/src/components/Thumbnail.vue +27 -0
  81. package/src/components/Timepicker.vue +15 -8
  82. package/src/components/Toast.vue +60 -38
  83. package/src/components/TreeView.vue +101 -0
  84. package/src/components/TreeViewItem.vue +424 -0
  85. package/src/components/TreeViewItem1.vue +282 -0
  86. package/src/components/VirtualGrid.vue +284 -0
  87. package/src/components/VirtualScroll.vue +88 -21
  88. package/src/components/VirtualTable.vue +277 -71
  89. package/src/components/YoutubeVideo.vue +196 -0
  90. package/src/configs/icons-fa.json +12 -0
  91. package/src/events/event.js +2 -0
  92. package/src/index.js +477 -53
  93. package/src/main.js +0 -9
  94. package/src/middleware/http/trim-string.js +20 -0
  95. package/src/mixin/component.js +222 -0
  96. package/src/mixin/website.js +121 -0
  97. package/src/stores/components.js +36 -0
  98. package/src/themes/default/index.js +178 -34
  99. package/src/utils/helpers.js +378 -7
  100. package/src/utils/helpers.mjs +274 -16
  101. package/src/utils/importer.js +60 -26
  102. package/src/utils/listpage1.js +403 -267
  103. package/src/utils/listview.js +1287 -0
  104. package/src/utils/preset-selector.js +1055 -0
  105. package/src/utils/preset-selector.mjs +185 -0
  106. package/src/utils/selection.js +15 -36
  107. package/src/utils/web.js +50 -0
  108. package/src/utils/wss.js +294 -0
  109. package/src/utils/wss.mjs +280 -0
  110. package/src/widgets/AhrefSetting.vue +94 -0
  111. package/src/widgets/ArticleSetting.vue +469 -0
  112. package/src/widgets/BackgroundSetting.vue +132 -0
  113. package/src/widgets/BlockSetting.vue +49 -0
  114. package/src/widgets/BorderSetting.vue +201 -0
  115. package/src/widgets/BoxSetting.vue +53 -0
  116. package/src/widgets/ButtonSetting.vue +114 -0
  117. package/src/widgets/CarouselSetting.vue +193 -0
  118. package/src/widgets/ColumnSelector.vue +80 -0
  119. package/src/widgets/ComponentPropertyLabel.vue +35 -0
  120. package/src/widgets/ComponentPropertySelector.vue +115 -0
  121. package/src/widgets/ComponentSetting.vue +2220 -0
  122. package/src/widgets/ComponentSetting2.vue +1018 -0
  123. package/src/widgets/ComponentSetting3.vue +231 -0
  124. package/src/widgets/ContactForm.vue +193 -0
  125. package/src/widgets/ContactFormSetting.vue +384 -0
  126. package/src/widgets/CountdownSetting.vue +76 -0
  127. package/src/widgets/DataListSetting.vue +102 -0
  128. package/src/widgets/EffectSetting.vue +94 -0
  129. package/src/widgets/EmbeddedVideo.vue +60 -0
  130. package/src/widgets/EmbeddedVideoSetting.vue +48 -0
  131. package/src/widgets/FAQ.vue +85 -0
  132. package/src/widgets/FAQSetting.vue +88 -0
  133. package/src/widgets/FeatureList.vue +128 -0
  134. package/src/widgets/FeatureListSetting.vue +223 -0
  135. package/src/widgets/FiltersSetting.vue +88 -0
  136. package/src/widgets/FlexSetting.vue +197 -0
  137. package/src/widgets/GridSetting.vue +290 -0
  138. package/src/widgets/Header.vue +15 -0
  139. package/src/widgets/Header1.vue +41 -0
  140. package/src/widgets/Header1Setting.vue +75 -0
  141. package/src/widgets/Header2.vue +102 -0
  142. package/src/widgets/Header2Setting.vue +277 -0
  143. package/src/widgets/HeaderSetting.vue +104 -0
  144. package/src/widgets/IconList.vue +51 -0
  145. package/src/widgets/IconListSetting.vue +184 -0
  146. package/src/widgets/ImageSetting.vue +146 -0
  147. package/src/widgets/LayoutSetting.vue +251 -0
  148. package/src/widgets/LinkSetting.vue +186 -0
  149. package/src/widgets/LogViewer.vue +85 -0
  150. package/src/widgets/MarginPaddingSetting.vue +58 -0
  151. package/src/widgets/MarginSetting.vue +142 -0
  152. package/src/widgets/MenuEditor.vue +256 -0
  153. package/src/widgets/MobileMenu.vue +182 -0
  154. package/src/widgets/ModalSetting.vue +96 -0
  155. package/src/widgets/MultiValueSetting.vue +121 -0
  156. package/src/widgets/MultiValueSetting2.vue +114 -0
  157. package/src/widgets/PaddingSetting.vue +142 -0
  158. package/src/widgets/ParagraphSetting.vue +86 -0
  159. package/src/widgets/PresetBar.vue +880 -0
  160. package/src/widgets/PresetBarPivotColumnEdit.vue +197 -0
  161. package/src/widgets/PresetSelector.vue +673 -0
  162. package/src/widgets/Review.vue +131 -0
  163. package/src/widgets/ReviewSetting.vue +201 -0
  164. package/src/widgets/Share.vue +165 -0
  165. package/src/widgets/ShareSetting.vue +92 -0
  166. package/src/widgets/SizingSetting.vue +306 -0
  167. package/src/widgets/SpacingSetting.vue +77 -0
  168. package/src/widgets/StyleSetting.vue +328 -0
  169. package/src/widgets/StyleSetting2.vue +90 -0
  170. package/src/widgets/SvgSetting.vue +133 -0
  171. package/src/widgets/TableSetting.vue +172 -0
  172. package/src/widgets/TestimonialSetting.vue +152 -0
  173. package/src/widgets/TextBlockSetting.vue +78 -0
  174. package/src/widgets/ThumbnailSetting.vue +49 -0
  175. package/src/widgets/TransitionSetting.vue +64 -0
  176. package/src/widgets/TypographySetting.vue +334 -0
  177. package/src/widgets/UserActionBuilder/UserActionItem.vue +165 -0
  178. package/src/widgets/UserActionBuilder/UserActionOutput.vue +126 -0
  179. package/src/widgets/UserActionBuilder.vue +457 -0
  180. package/src/widgets/WebComponentSelector.vue +201 -0
  181. package/src/widgets/WebDatasourceSelector.vue +153 -0
  182. package/src/widgets/WebLayoutSelector.vue +376 -0
  183. package/src/widgets/WebPageBuilder.vue +1849 -0
  184. package/src/widgets/WebPageBuilder2.vue +1091 -0
  185. package/src/widgets/WebPageBuilder3.vue +411 -0
  186. package/src/widgets/WebPageBuilder4/ActionSetting.vue +158 -0
  187. package/src/widgets/WebPageBuilder4/BackgroundColorSetting.vue +54 -0
  188. package/src/widgets/WebPageBuilder4/BackgroundPositionSetting.vue +75 -0
  189. package/src/widgets/WebPageBuilder4/BackgroundRepeatSetting.vue +72 -0
  190. package/src/widgets/WebPageBuilder4/BackgroundSizeSetting.vue +72 -0
  191. package/src/widgets/WebPageBuilder4/BlurSetting.vue +72 -0
  192. package/src/widgets/WebPageBuilder4/BorderColorSetting.vue +64 -0
  193. package/src/widgets/WebPageBuilder4/BorderRadiusSetting.vue +75 -0
  194. package/src/widgets/WebPageBuilder4/BorderSizeSetting.vue +69 -0
  195. package/src/widgets/WebPageBuilder4/BorderStyleSetting.vue +72 -0
  196. package/src/widgets/WebPageBuilder4/BoxShadowSetting.vue +73 -0
  197. package/src/widgets/WebPageBuilder4/ButtonSetting.vue +73 -0
  198. package/src/widgets/WebPageBuilder4/CarouselSetting.vue +122 -0
  199. package/src/widgets/WebPageBuilder4/ColorSetting.vue +63 -0
  200. package/src/widgets/WebPageBuilder4/DataSetting.vue +92 -0
  201. package/src/widgets/WebPageBuilder4/DisplaySetting.vue +76 -0
  202. package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +71 -0
  203. package/src/widgets/WebPageBuilder4/FlexDirectionSetting.vue +70 -0
  204. package/src/widgets/WebPageBuilder4/FlexJustifySetting.vue +74 -0
  205. package/src/widgets/WebPageBuilder4/FlexPropertySetting.vue +71 -0
  206. package/src/widgets/WebPageBuilder4/FlexSetting.vue +105 -0
  207. package/src/widgets/WebPageBuilder4/FlexWrapSetting.vue +69 -0
  208. package/src/widgets/WebPageBuilder4/FontSizeSetting.vue +76 -0
  209. package/src/widgets/WebPageBuilder4/GapSetting.vue +75 -0
  210. package/src/widgets/WebPageBuilder4/GrayscaleSetting.vue +68 -0
  211. package/src/widgets/WebPageBuilder4/GridSetting.vue +166 -0
  212. package/src/widgets/WebPageBuilder4/HeightSetting.vue +95 -0
  213. package/src/widgets/WebPageBuilder4/ImageSetting.vue +102 -0
  214. package/src/widgets/WebPageBuilder4/LinkSetting.vue +68 -0
  215. package/src/widgets/WebPageBuilder4/MarginSetting.vue +70 -0
  216. package/src/widgets/WebPageBuilder4/MaxHeightSetting.vue +82 -0
  217. package/src/widgets/WebPageBuilder4/MaxWidthSetting.vue +90 -0
  218. package/src/widgets/WebPageBuilder4/MinHeightSetting.vue +81 -0
  219. package/src/widgets/WebPageBuilder4/MinWidthSetting.vue +101 -0
  220. package/src/widgets/WebPageBuilder4/MobileMenuSetting.vue +106 -0
  221. package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +155 -0
  222. package/src/widgets/WebPageBuilder4/OpacitySetting.vue +77 -0
  223. package/src/widgets/WebPageBuilder4/OverflowSetting.vue +81 -0
  224. package/src/widgets/WebPageBuilder4/PaddingSetting.vue +53 -0
  225. package/src/widgets/WebPageBuilder4/PositionSetting.vue +191 -0
  226. package/src/widgets/WebPageBuilder4/PropertySetting.vue +183 -0
  227. package/src/widgets/WebPageBuilder4/Setting.vue +73 -0
  228. package/src/widgets/WebPageBuilder4/StyleSetting.vue +77 -0
  229. package/src/widgets/WebPageBuilder4/SvgSetting.vue +207 -0
  230. package/src/widgets/WebPageBuilder4/TextSetting.vue +72 -0
  231. package/src/widgets/WebPageBuilder4/TextTransformSetting.vue +70 -0
  232. package/src/widgets/WebPageBuilder4/TreeView.vue +43 -0
  233. package/src/widgets/WebPageBuilder4/TreeViewItem.vue +329 -0
  234. package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +147 -0
  235. package/src/widgets/WebPageBuilder4/WebPageDataEdit.vue +121 -0
  236. package/src/widgets/WebPageBuilder4/WebPagePropertySelector.vue +172 -0
  237. package/src/widgets/WebPageBuilder4/WidthSetting.vue +105 -0
  238. package/src/widgets/WebPageBuilder4/ZIndexSetting.vue +72 -0
  239. package/src/widgets/WebPageBuilder4.vue +1084 -0
  240. package/src/widgets/WebPagePreview.vue +295 -0
  241. package/src/widgets/WebPageSelector.vue +173 -0
  242. package/src/widgets/WebTemplateCreator.vue +156 -0
  243. package/src/widgets/YoutubeVideoSetting.vue +65 -0
  244. package/tailwind.config.js +513 -0
  245. package/test.json +22 -0
  246. package/public/images/mixd-logo2.png +0 -0
  247. package/src/components/ButtonGroup.vue +0 -101
  248. package/src/components/DynamicTemplate.vue +0 -44
  249. package/src/components/GridColumn.vue +0 -31
@@ -1,8 +1,10 @@
1
1
  <template>
2
- <button :class="computedClass" :disabled="isDisabled">
3
- <div>
4
- <slot></slot>
5
- </div>
2
+ <button :class="compClass" @click="onClick" :style="computedStyle"
3
+ v-tooltip="disabledText">
4
+ <slot>
5
+ <span v-if="icon" v-html="icon"></span>
6
+ {{ text }}
7
+ </slot>
6
8
  <div v-if="isLoading" :class="$style.loadingPane">
7
9
  <svg :class="$style.spinner" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
8
10
  <circle :class="$style.svgBg" cx="12" cy="12" r="10" stroke-width="4"></circle>
@@ -14,8 +16,15 @@
14
16
 
15
17
  <script>
16
18
 
19
+ import {componentMixin} from "../mixin/component";
20
+ import {eventBus} from "../events/event";
21
+
17
22
  export default{
18
23
 
24
+ emits: [ 'click', 'disabled-click' ],
25
+
26
+ mixins: [ componentMixin ],
27
+
19
28
  props: {
20
29
 
21
30
  variant: {
@@ -23,34 +32,40 @@ export default{
23
32
  default: "primary" // primary|secondary|outline, default:primary
24
33
  },
25
34
 
26
- size: {
27
- type: [ String ],
28
- default: '' // sm|md|lg, default: md
35
+ state: {
36
+ type: [ String, Number ], // -1:disabled, 1:normal, 2:loading, default: normal,
37
+ default: 1
29
38
  },
30
39
 
31
- spacing: {
32
- type: [ String, Number ],
33
- default: '' // 0|1|2|3, default: 2
34
- },
40
+ icon: {
41
+ type: String,
42
+ default: `<svg width="14" height="14" class="fill-black" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--! Font Awesome Pro 6.0.0-alpha3 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) --><path d="M236 176c0 15.46-12.54 28-28 28S180 191.5 180 176S192.5 148 208 148S236 160.5 236 176zM500.3 500.3c-15.62 15.62-40.95 15.62-56.57 0l-119.7-119.7c-40.41 27.22-90.9 40.65-144.7 33.46c-91.55-12.23-166-87.28-177.6-178.9c-17.24-136.2 97.29-250.7 233.4-233.4c91.64 11.6 166.7 86.07 178.9 177.6c7.19 53.8-6.236 104.3-33.46 144.7l119.7 119.7C515.9 459.3 515.9 484.7 500.3 500.3zM294.1 182.2C294.1 134.5 255.6 96 207.1 96C160.4 96 121.9 134.5 121.9 182.2c0 38.35 56.29 108.5 77.87 134C201.8 318.5 204.7 320 207.1 320c3.207 0 6.26-1.459 8.303-3.791C237.8 290.7 294.1 220.5 294.1 182.2z"/></svg>`
43
+ },
35
44
 
36
- state: {
37
- type: [ String, Number ],
38
- default: 1
39
- }, // -1:disabled, 1:normal, 2:loading, default: normal
45
+ actions: Array,
46
+
47
+ text: String,
48
+
49
+ target: String,
50
+
51
+ targetType: String,
52
+
53
+ width: Array,
54
+
55
+ disabledText: String
40
56
 
41
57
  },
42
58
 
43
59
  computed:{
44
60
 
45
- computedClass(){
61
+ compClass(){
46
62
 
47
63
  return [
48
64
  this.$style.button,
49
- this.$style['variant-' + this.variant],
50
- this.$style['size-' + this.size],
51
- this.$style['spacing-' + this.spacing],
52
- parseInt(this.computedState) === 2 ? this.$style.loading : '',
65
+ this.$style['button-' + this.variant],
66
+ parseInt(this.computedState) === 2 ? this.$style.loading : ''
53
67
  ]
68
+ .filter(_ => _)
54
69
  .join(' ')
55
70
  },
56
71
 
@@ -63,7 +78,16 @@ export default{
63
78
  },
64
79
 
65
80
  computedState(){
66
- return this.state ?? this._state
81
+ return this._state ?? this.state
82
+ },
83
+
84
+ widths(){
85
+ if(!Array.isArray(this.width)) return [ '', '' ]
86
+
87
+ return [
88
+ this.width[0] ?? '',
89
+ this.width[1] ? this.width[1] : (this.width[0] ?? ''),
90
+ ]
67
91
  }
68
92
 
69
93
  },
@@ -80,12 +104,62 @@ export default{
80
104
  this.$el.focus()
81
105
  },
82
106
 
83
- setState(state){
84
- console.log('setState', state)
107
+ setState(state, percentage){
85
108
  this._state = state
86
- }
109
+ },
87
110
 
88
- }
111
+ resetState(){
112
+ this._state = null
113
+ },
114
+
115
+ onClick(){
116
+ if(!('edit-mode' in this.$route.query)){
117
+
118
+ if(this.isDisabled){
119
+ this.$emit('disabled-click')
120
+ }
121
+ else{
122
+ if(this.target){
123
+ switch(this.targetType){
124
+
125
+ case 'section':
126
+ this.scrollTo(this.target)
127
+ break
128
+
129
+ default:
130
+ if(this.target.indexOf('://') >= 0){
131
+ window.location = this.target
132
+ }
133
+ else{
134
+ this.$router.push(this.target)
135
+ }
136
+ break
137
+ }
138
+ }
139
+ else{
140
+ this.$emit('click')
141
+ }
142
+ }
143
+ }
144
+
145
+ if(this.page?.editMode !== 'design'){
146
+ this.actions?.forEach(action => {
147
+ eventBus.emit(action.target, action)
148
+ })
149
+ }
150
+ },
151
+
152
+ scrollTo(exp){
153
+ const el = document.querySelector('._' + exp.substring(0, 4))
154
+ if(el){
155
+ window.scrollTo({
156
+ top: el.offsetTop - 100,
157
+ behavior: 'smooth'
158
+ });
159
+ }
160
+ },
161
+
162
+ },
89
163
 
90
164
  }
91
165
 
@@ -94,160 +168,165 @@ export default{
94
168
  <style module>
95
169
 
96
170
  .button{
97
- @apply h-[var(--h-cp)];
98
- @apply relative flex items-center justify-center;
99
- @apply whitespace-nowrap text-ellipsis overflow-hidden;
100
- @apply rounded-lg;
171
+ @apply p-2;
172
+ @apply relative flex items-center justify-center;
173
+ @apply whitespace-nowrap text-ellipsis overflow-hidden;
174
+ @apply rounded-lg appearance-none;
101
175
  }
102
176
  .button>*:first-child{
103
- @apply flex items-center justify-center
177
+ @apply flex items-center justify-center
104
178
  }
105
- .button:disabled{
106
- @apply opacity-50;
179
+ .button-disabled{
180
+ @apply text-opacity-50;
107
181
  }
108
-
109
- .size-sm{
110
- @apply h-[var(--h-cp-sm)];
111
- }
112
- .size-lg{
113
- @apply h-[var(--h-cp-lg)];
182
+ .button:active{
183
+ @apply top-[1px] left-[1px] relative;
114
184
  }
115
185
 
116
- .variant-,
117
- .variant-primary{
118
- @apply bg-primary-500 text-white border-[2px] border-primary-500;
186
+ .button-primary{
187
+ @apply bg-primary-500 text-white rounded-lg;
188
+ box-shadow: 0 2px 1px rgba(0, 0, 0, .05);
189
+ border: solid 1px rgb(var(--primary-500));
119
190
  }
120
- .variant-:hover,
121
- .variant-primary:hover{
122
- @apply bg-primary-600 border-primary-600;
191
+ .button-primary:focus{
192
+ border-color: rgb(var(--primary-600));
123
193
  }
124
- .variant-:active,
125
- .variant-primary:active{
126
- @apply top-[1px] left-[1px] relative;
194
+ .button-primary:hover{
195
+ @apply bg-primary-600;
127
196
  }
128
- .variant-:disabled,
129
- .variant-primary:disabled{
130
- @apply top-0 left-0 cursor-not-allowed;
197
+ .button-primary-disabled,
198
+ .button-primary-disabled:hover{
199
+ @apply bg-primary-500 top-0 left-0 cursor-not-allowed text-opacity-50;
200
+ @apply top-0 left-0;
131
201
  }
132
- .variant- *,
133
- .variant-primary *{
134
- @apply text-white fill-white;
202
+ .button-primary *{
203
+ @apply text-white fill-white;
135
204
  }
136
- .variant-.loading *,
137
- .variant-primary.loading *{
138
- @apply fill-transparent
205
+ .button-primary.loading *{
206
+ @apply fill-transparent
139
207
  }
140
- .variant- .svgBg,
141
- .variant-primary .svgBg{
142
- stroke: #fff;
143
- stroke-opacity: 25%;
208
+ .button-primary .svgBg{
209
+ stroke: #fff;
210
+ stroke-opacity: 25%;
144
211
  }
145
- .variant- .svgHg,
146
- .variant-primary .svgHg{
147
- fill: #fff;
148
- fill-opacity: 75%;
212
+ .button-primary .svgHg{
213
+ fill: #fff;
214
+ fill-opacity: 75%;
149
215
  }
150
216
 
151
- .variant-outline{
152
- @apply bg-transparent text-primary-500 border-[2px] border-primary-500;
153
- }
154
- .variant-outline:hover{
155
- @apply border-primary-300 text-primary-300;
217
+ .button-outline{
218
+ @apply bg-transparent text-primary-500 border-[1px] border-primary;
156
219
  }
157
- .variant-outline:active{
158
- @apply top-[1px] left-[1px] active:relative;
220
+ .button-outline:hover{
159
221
  }
160
- .variant-outline:disabled{
161
- @apply opacity-50 top-0 left-0 cursor-not-allowed;
162
- @apply text-primary-500 border-primary-500;
222
+ .button-outline-disabled,
223
+ .button-outline-disabled:hover{
224
+ @apply top-0 left-0 cursor-not-allowed;
225
+ @apply text-text border-primary-500 text-opacity-50;
163
226
  }
164
- .variant-outline *{
165
- @apply text-primary-500 fill-primary-500;
227
+ .button-outline *{
228
+ @apply text-primary-500 fill-primary-500;
166
229
  }
167
- .variant-outline.loading *{
168
- @apply fill-transparent
230
+ .button-outline.loading *{
231
+ @apply fill-transparent
169
232
  }
170
- .variant-outline .svgBg{
171
- stroke: var(--primary);
172
- stroke-opacity: 25%;
233
+ .button-outline .svgBg{
234
+ stroke: rgb(var(--primary-600));
235
+ stroke-opacity: 50%;
173
236
  }
174
- .variant-outline .svgHg{
175
- fill: var(--primary);
176
- fill-opacity: 75%;
237
+ .button-outline .svgHg{
238
+ fill: rgb(var(--primary-500));
239
+ fill-opacity: 100%;
177
240
  }
178
241
 
179
- .variant-secondary{
180
- @apply bg-secondary text-primary rounded-md border-[2px] border-secondary;
242
+ .button-secondary{
243
+ @apply bg-secondary-500 border-secondary-500 text-primary-700 rounded-lg text-white;
244
+ border: solid 1px rgb(var(--secondary-500));
181
245
  }
182
- .variant-secondary:hover{
183
- @apply bg-secondary-600 border-secondary-600;
246
+ .button-secondary:hover{
247
+ @apply bg-secondary-600 border-secondary-600;
184
248
  }
185
- .variant-secondary:active{
186
- @apply top-[1px] left-[1px] relative;
249
+ .button-secondary-disabled,
250
+ .button-secondary-disabled:hover{
251
+ @apply bg-secondary-400 border-secondary-400 cursor-not-allowed text-opacity-50;
187
252
  }
188
- .variant-secondary:disabled{
189
- @apply bg-secondary-500 border-secondary-500 opacity-50 top-0 left-0 cursor-not-allowed;
253
+ .button-secondary *{
254
+ @apply text-text-500 fill-white;
190
255
  }
191
- .variant-secondary *{
192
- @apply text-primary fill-primary;
256
+ .button-secondary.loading *{
257
+ @apply fill-transparent
193
258
  }
194
- .variant-secondary.loading *{
195
- @apply fill-transparent
259
+ .button-secondary .svgBg{
260
+ stroke: rgb(var(--text-400));
261
+ stroke-opacity: 25%;
196
262
  }
197
- .variant-secondary .svgBg{
198
- stroke: var(--text);
199
- stroke-opacity: 25%;
263
+ .button-secondary .svgHg{
264
+ fill: rgb(var(--text-500));
265
+ fill-opacity: 75%;
266
+ }
267
+
268
+ .button-red{
269
+ @apply bg-red-500 text-white rounded-md border-[2px] border-red-500;
200
270
  }
201
- .variant-secondary .svgHg{
202
- fill: #fff;
203
- fill-opacity: 75%;
271
+ .button-red:hover{
272
+ @apply bg-red-600 border-red-600;
273
+ }
274
+ .button-red-disabled,
275
+ .button-red-disabled:hover{
276
+ @apply bg-red-500 border-red-500 top-0 left-0 cursor-not-allowed text-opacity-50;
277
+ }
278
+ .button-red *{
279
+ @apply text-white fill-white;
280
+ }
281
+ .button-red.loading *{
282
+ @apply fill-transparent
283
+ }
284
+ .button-red .svgBg{
285
+ @apply stroke-red-400;
286
+ stroke-opacity: 50%;
287
+ }
288
+ .button-red .svgHg{
289
+ @apply fill-text-500;
290
+ fill-opacity: 100%;
204
291
  }
205
292
 
206
- .variant-minimal{
207
- @apply border-[2px] border-transparent;
293
+ .button-minimal{
294
+ @apply border-[2px] border-transparent;
208
295
  }
209
- .variant-minimal:hover{
296
+ .button-minimal:hover{
210
297
  }
211
- .variant-minimal .svgBg{
212
- stroke: var(--base-500);
213
- stroke-opacity: 25%;
298
+ .button-minimal .svgBg{
299
+ stroke: rgb(var(--text-500));
300
+ stroke-opacity: 25%;
214
301
  }
215
- .variant-minimal .svgHg{
216
- fill: var(--text);
217
- fill-opacity: 75%;
302
+ .button-minimal .svgHg{
303
+ fill: rgb(var(--text));
304
+ fill-opacity: 75%;
218
305
  }
219
306
 
220
307
  .loadingPane{
221
- @apply absolute left-0 top-0 right-0 bottom-0 flex items-center justify-center pl-1;
308
+ @apply absolute left-0 top-0 right-0 bottom-0 flex items-center justify-center pl-1;
309
+ }
310
+ .loading{
311
+ color: transparent;
222
312
  }
223
313
  .loading>*:first-child{
224
- @apply opacity-0
314
+ @apply opacity-0
225
315
  }
226
316
  .loading:hover{
227
317
  }
228
318
  .loading:active{
229
- @apply top-0 left-0;
319
+ @apply top-0 left-0;
230
320
  }
231
321
  .loading>*{
232
- opacity: 0;
322
+ opacity: 0;
233
323
  }
234
324
  .loading .loadingPane{
235
- opacity: 1;
236
- }
237
-
238
- .spacing-,
239
- .spacing-2{
240
- @apply p-2
241
- }
242
- .spacing-1{
243
- @apply p-1
244
- }
245
- .spacing-3{
246
- @apply p-3
325
+ opacity: 1;
247
326
  }
248
327
 
249
328
  .spinner{
250
- @apply animate-spin h-5 w-5;
329
+ @apply animate-spin h-5 w-5;
251
330
  }
252
331
 
253
- </style>
332
+ </style>