@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.
- package/LICENSE +1 -0
- package/docs/components/Header2.md +16 -0
- package/docs/components/TreeView.md +0 -0
- package/package.json +22 -5
- package/src/App.vue +9 -1
- package/src/components/Ahref.vue +175 -9
- package/src/components/Alert.vue +181 -75
- package/src/components/Article.vue +393 -0
- package/src/components/Block.vue +31 -0
- package/src/components/Box.vue +34 -0
- package/src/components/Button.vue +208 -129
- package/src/components/Carousel.vue +194 -124
- package/src/components/Chart.vue +485 -0
- package/src/components/ChartBar.vue +193 -0
- package/src/components/Checkbox.vue +95 -55
- package/src/components/CodeEditor.vue +61 -0
- package/src/components/ColorPicker.vue +158 -0
- package/src/components/ColorPicker2.vue +164 -0
- package/src/components/Confirm.vue +178 -0
- package/src/components/ContextMenu.vue +164 -76
- package/src/components/ConversationBuilder.vue +161 -0
- package/src/components/CopyToClipboard.vue +6 -31
- package/src/components/Countdown.vue +104 -53
- package/src/components/DGrid.vue +21 -0
- package/src/components/DGridItem.vue +263 -0
- package/src/components/DataList.vue +92 -0
- package/src/components/Datepicker.vue +65 -41
- package/src/components/DayTimeRange.vue +125 -0
- package/src/components/Dropdown.vue +32 -9
- package/src/components/ErrorText.vue +30 -9
- package/src/components/FBLogin.vue +194 -0
- package/src/components/Flex.vue +70 -0
- package/src/components/GSignIn.vue +166 -0
- package/src/components/Gmaps.vue +35 -11
- package/src/components/Grid.vue +24 -20
- package/src/components/HTMLEditor.vue +258 -79
- package/src/components/IconMenu.vue +95 -0
- package/src/components/IconMenu2.vue +89 -0
- package/src/components/IconPlus.vue +89 -0
- package/src/components/Image.vue +161 -59
- package/src/components/Image360.vue +2 -2
- package/src/components/ImagePreview.vue +23 -11
- package/src/components/ImportModal.vue +27 -14
- package/src/components/Link.vue +39 -0
- package/src/components/List.vue +1177 -0
- package/src/components/ListItem.vue +32 -21
- package/src/components/ListPage1.vue +88 -17
- package/src/components/ListPage1Filter.vue +2 -2
- package/src/components/ListView.vue +962 -0
- package/src/components/ListViewBarSummary.vue +81 -0
- package/src/components/ListViewLineSummary.vue +75 -0
- package/src/components/ListViewLiveBarSummary.vue +52 -0
- package/src/components/ListViewMapSummary.vue +56 -0
- package/src/components/ListViewSettings.vue +514 -0
- package/src/components/ListViewTableSummary.vue +77 -0
- package/src/components/LogViewerItem.vue +116 -0
- package/src/components/Modal.vue +274 -122
- package/src/components/MultilineText.vue +177 -0
- package/src/components/OTPField.vue +5 -6
- package/src/components/ObjectTree.vue +105 -0
- package/src/components/PageBuilder.vue +449 -0
- package/src/components/Paragraph.vue +41 -0
- package/src/components/PresetSelectorFilterItem.vue +178 -0
- package/src/components/Radio.vue +62 -87
- package/src/components/SearchButton.vue +1 -1
- package/src/components/Slider.vue +107 -75
- package/src/components/Svg.vue +33 -0
- package/src/components/Switch.vue +15 -5
- package/src/components/TabView.vue +0 -1
- package/src/components/Table.vue +56 -0
- package/src/components/TableViewHead.vue +2 -2
- package/src/components/Tabs.vue +68 -11
- package/src/components/Test.vue +23 -0
- package/src/components/Testimonial.vue +86 -0
- package/src/components/Text.vue +49 -0
- package/src/components/TextBlock.vue +50 -0
- package/src/components/TextWithTag.vue +225 -0
- package/src/components/Textarea.vue +22 -16
- package/src/components/Textbox.vue +83 -62
- package/src/components/Thumbnail.vue +27 -0
- package/src/components/Timepicker.vue +15 -8
- package/src/components/Toast.vue +60 -38
- package/src/components/TreeView.vue +101 -0
- package/src/components/TreeViewItem.vue +424 -0
- package/src/components/TreeViewItem1.vue +282 -0
- package/src/components/VirtualGrid.vue +284 -0
- package/src/components/VirtualScroll.vue +88 -21
- package/src/components/VirtualTable.vue +277 -71
- package/src/components/YoutubeVideo.vue +196 -0
- package/src/configs/icons-fa.json +12 -0
- package/src/events/event.js +2 -0
- package/src/index.js +477 -53
- package/src/main.js +0 -9
- package/src/middleware/http/trim-string.js +20 -0
- package/src/mixin/component.js +222 -0
- package/src/mixin/website.js +121 -0
- package/src/stores/components.js +36 -0
- package/src/themes/default/index.js +178 -34
- package/src/utils/helpers.js +378 -7
- package/src/utils/helpers.mjs +274 -16
- package/src/utils/importer.js +60 -26
- package/src/utils/listpage1.js +403 -267
- package/src/utils/listview.js +1287 -0
- package/src/utils/preset-selector.js +1055 -0
- package/src/utils/preset-selector.mjs +185 -0
- package/src/utils/selection.js +15 -36
- package/src/utils/web.js +50 -0
- package/src/utils/wss.js +294 -0
- package/src/utils/wss.mjs +280 -0
- package/src/widgets/AhrefSetting.vue +94 -0
- package/src/widgets/ArticleSetting.vue +469 -0
- package/src/widgets/BackgroundSetting.vue +132 -0
- package/src/widgets/BlockSetting.vue +49 -0
- package/src/widgets/BorderSetting.vue +201 -0
- package/src/widgets/BoxSetting.vue +53 -0
- package/src/widgets/ButtonSetting.vue +114 -0
- package/src/widgets/CarouselSetting.vue +193 -0
- package/src/widgets/ColumnSelector.vue +80 -0
- package/src/widgets/ComponentPropertyLabel.vue +35 -0
- package/src/widgets/ComponentPropertySelector.vue +115 -0
- package/src/widgets/ComponentSetting.vue +2220 -0
- package/src/widgets/ComponentSetting2.vue +1018 -0
- package/src/widgets/ComponentSetting3.vue +231 -0
- package/src/widgets/ContactForm.vue +193 -0
- package/src/widgets/ContactFormSetting.vue +384 -0
- package/src/widgets/CountdownSetting.vue +76 -0
- package/src/widgets/DataListSetting.vue +102 -0
- package/src/widgets/EffectSetting.vue +94 -0
- package/src/widgets/EmbeddedVideo.vue +60 -0
- package/src/widgets/EmbeddedVideoSetting.vue +48 -0
- package/src/widgets/FAQ.vue +85 -0
- package/src/widgets/FAQSetting.vue +88 -0
- package/src/widgets/FeatureList.vue +128 -0
- package/src/widgets/FeatureListSetting.vue +223 -0
- package/src/widgets/FiltersSetting.vue +88 -0
- package/src/widgets/FlexSetting.vue +197 -0
- package/src/widgets/GridSetting.vue +290 -0
- package/src/widgets/Header.vue +15 -0
- package/src/widgets/Header1.vue +41 -0
- package/src/widgets/Header1Setting.vue +75 -0
- package/src/widgets/Header2.vue +102 -0
- package/src/widgets/Header2Setting.vue +277 -0
- package/src/widgets/HeaderSetting.vue +104 -0
- package/src/widgets/IconList.vue +51 -0
- package/src/widgets/IconListSetting.vue +184 -0
- package/src/widgets/ImageSetting.vue +146 -0
- package/src/widgets/LayoutSetting.vue +251 -0
- package/src/widgets/LinkSetting.vue +186 -0
- package/src/widgets/LogViewer.vue +85 -0
- package/src/widgets/MarginPaddingSetting.vue +58 -0
- package/src/widgets/MarginSetting.vue +142 -0
- package/src/widgets/MenuEditor.vue +256 -0
- package/src/widgets/MobileMenu.vue +182 -0
- package/src/widgets/ModalSetting.vue +96 -0
- package/src/widgets/MultiValueSetting.vue +121 -0
- package/src/widgets/MultiValueSetting2.vue +114 -0
- package/src/widgets/PaddingSetting.vue +142 -0
- package/src/widgets/ParagraphSetting.vue +86 -0
- package/src/widgets/PresetBar.vue +880 -0
- package/src/widgets/PresetBarPivotColumnEdit.vue +197 -0
- package/src/widgets/PresetSelector.vue +673 -0
- package/src/widgets/Review.vue +131 -0
- package/src/widgets/ReviewSetting.vue +201 -0
- package/src/widgets/Share.vue +165 -0
- package/src/widgets/ShareSetting.vue +92 -0
- package/src/widgets/SizingSetting.vue +306 -0
- package/src/widgets/SpacingSetting.vue +77 -0
- package/src/widgets/StyleSetting.vue +328 -0
- package/src/widgets/StyleSetting2.vue +90 -0
- package/src/widgets/SvgSetting.vue +133 -0
- package/src/widgets/TableSetting.vue +172 -0
- package/src/widgets/TestimonialSetting.vue +152 -0
- package/src/widgets/TextBlockSetting.vue +78 -0
- package/src/widgets/ThumbnailSetting.vue +49 -0
- package/src/widgets/TransitionSetting.vue +64 -0
- package/src/widgets/TypographySetting.vue +334 -0
- package/src/widgets/UserActionBuilder/UserActionItem.vue +165 -0
- package/src/widgets/UserActionBuilder/UserActionOutput.vue +126 -0
- package/src/widgets/UserActionBuilder.vue +457 -0
- package/src/widgets/WebComponentSelector.vue +201 -0
- package/src/widgets/WebDatasourceSelector.vue +153 -0
- package/src/widgets/WebLayoutSelector.vue +376 -0
- package/src/widgets/WebPageBuilder.vue +1849 -0
- package/src/widgets/WebPageBuilder2.vue +1091 -0
- package/src/widgets/WebPageBuilder3.vue +411 -0
- package/src/widgets/WebPageBuilder4/ActionSetting.vue +158 -0
- package/src/widgets/WebPageBuilder4/BackgroundColorSetting.vue +54 -0
- package/src/widgets/WebPageBuilder4/BackgroundPositionSetting.vue +75 -0
- package/src/widgets/WebPageBuilder4/BackgroundRepeatSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4/BackgroundSizeSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4/BlurSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4/BorderColorSetting.vue +64 -0
- package/src/widgets/WebPageBuilder4/BorderRadiusSetting.vue +75 -0
- package/src/widgets/WebPageBuilder4/BorderSizeSetting.vue +69 -0
- package/src/widgets/WebPageBuilder4/BorderStyleSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4/BoxShadowSetting.vue +73 -0
- package/src/widgets/WebPageBuilder4/ButtonSetting.vue +73 -0
- package/src/widgets/WebPageBuilder4/CarouselSetting.vue +122 -0
- package/src/widgets/WebPageBuilder4/ColorSetting.vue +63 -0
- package/src/widgets/WebPageBuilder4/DataSetting.vue +92 -0
- package/src/widgets/WebPageBuilder4/DisplaySetting.vue +76 -0
- package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +71 -0
- package/src/widgets/WebPageBuilder4/FlexDirectionSetting.vue +70 -0
- package/src/widgets/WebPageBuilder4/FlexJustifySetting.vue +74 -0
- package/src/widgets/WebPageBuilder4/FlexPropertySetting.vue +71 -0
- package/src/widgets/WebPageBuilder4/FlexSetting.vue +105 -0
- package/src/widgets/WebPageBuilder4/FlexWrapSetting.vue +69 -0
- package/src/widgets/WebPageBuilder4/FontSizeSetting.vue +76 -0
- package/src/widgets/WebPageBuilder4/GapSetting.vue +75 -0
- package/src/widgets/WebPageBuilder4/GrayscaleSetting.vue +68 -0
- package/src/widgets/WebPageBuilder4/GridSetting.vue +166 -0
- package/src/widgets/WebPageBuilder4/HeightSetting.vue +95 -0
- package/src/widgets/WebPageBuilder4/ImageSetting.vue +102 -0
- package/src/widgets/WebPageBuilder4/LinkSetting.vue +68 -0
- package/src/widgets/WebPageBuilder4/MarginSetting.vue +70 -0
- package/src/widgets/WebPageBuilder4/MaxHeightSetting.vue +82 -0
- package/src/widgets/WebPageBuilder4/MaxWidthSetting.vue +90 -0
- package/src/widgets/WebPageBuilder4/MinHeightSetting.vue +81 -0
- package/src/widgets/WebPageBuilder4/MinWidthSetting.vue +101 -0
- package/src/widgets/WebPageBuilder4/MobileMenuSetting.vue +106 -0
- package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +155 -0
- package/src/widgets/WebPageBuilder4/OpacitySetting.vue +77 -0
- package/src/widgets/WebPageBuilder4/OverflowSetting.vue +81 -0
- package/src/widgets/WebPageBuilder4/PaddingSetting.vue +53 -0
- package/src/widgets/WebPageBuilder4/PositionSetting.vue +191 -0
- package/src/widgets/WebPageBuilder4/PropertySetting.vue +183 -0
- package/src/widgets/WebPageBuilder4/Setting.vue +73 -0
- package/src/widgets/WebPageBuilder4/StyleSetting.vue +77 -0
- package/src/widgets/WebPageBuilder4/SvgSetting.vue +207 -0
- package/src/widgets/WebPageBuilder4/TextSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4/TextTransformSetting.vue +70 -0
- package/src/widgets/WebPageBuilder4/TreeView.vue +43 -0
- package/src/widgets/WebPageBuilder4/TreeViewItem.vue +329 -0
- package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +147 -0
- package/src/widgets/WebPageBuilder4/WebPageDataEdit.vue +121 -0
- package/src/widgets/WebPageBuilder4/WebPagePropertySelector.vue +172 -0
- package/src/widgets/WebPageBuilder4/WidthSetting.vue +105 -0
- package/src/widgets/WebPageBuilder4/ZIndexSetting.vue +72 -0
- package/src/widgets/WebPageBuilder4.vue +1084 -0
- package/src/widgets/WebPagePreview.vue +295 -0
- package/src/widgets/WebPageSelector.vue +173 -0
- package/src/widgets/WebTemplateCreator.vue +156 -0
- package/src/widgets/YoutubeVideoSetting.vue +65 -0
- package/tailwind.config.js +513 -0
- package/test.json +22 -0
- package/public/images/mixd-logo2.png +0 -0
- package/src/components/ButtonGroup.vue +0 -101
- package/src/components/DynamicTemplate.vue +0 -44
- package/src/components/GridColumn.vue +0 -31
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
27
|
-
|
|
28
|
-
default:
|
|
35
|
+
state: {
|
|
36
|
+
type: [ String, Number ], // -1:disabled, 1:normal, 2:loading, default: normal,
|
|
37
|
+
default: 1
|
|
29
38
|
},
|
|
30
39
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
-
|
|
61
|
+
compClass(){
|
|
46
62
|
|
|
47
63
|
return [
|
|
48
64
|
this.$style.button,
|
|
49
|
-
this.$style['
|
|
50
|
-
this.$style
|
|
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.
|
|
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
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
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
|
-
|
|
177
|
+
@apply flex items-center justify-center
|
|
104
178
|
}
|
|
105
|
-
.button
|
|
106
|
-
|
|
179
|
+
.button-disabled{
|
|
180
|
+
@apply text-opacity-50;
|
|
107
181
|
}
|
|
108
|
-
|
|
109
|
-
|
|
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
|
-
.
|
|
117
|
-
|
|
118
|
-
|
|
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
|
-
.
|
|
121
|
-
|
|
122
|
-
@apply bg-primary-600 border-primary-600;
|
|
191
|
+
.button-primary:focus{
|
|
192
|
+
border-color: rgb(var(--primary-600));
|
|
123
193
|
}
|
|
124
|
-
.
|
|
125
|
-
|
|
126
|
-
@apply top-[1px] left-[1px] relative;
|
|
194
|
+
.button-primary:hover{
|
|
195
|
+
@apply bg-primary-600;
|
|
127
196
|
}
|
|
128
|
-
.
|
|
129
|
-
.
|
|
130
|
-
|
|
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
|
-
.
|
|
133
|
-
|
|
134
|
-
@apply text-white fill-white;
|
|
202
|
+
.button-primary *{
|
|
203
|
+
@apply text-white fill-white;
|
|
135
204
|
}
|
|
136
|
-
.
|
|
137
|
-
|
|
138
|
-
@apply fill-transparent
|
|
205
|
+
.button-primary.loading *{
|
|
206
|
+
@apply fill-transparent
|
|
139
207
|
}
|
|
140
|
-
.
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
stroke-opacity: 25%;
|
|
208
|
+
.button-primary .svgBg{
|
|
209
|
+
stroke: #fff;
|
|
210
|
+
stroke-opacity: 25%;
|
|
144
211
|
}
|
|
145
|
-
.
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
fill-opacity: 75%;
|
|
212
|
+
.button-primary .svgHg{
|
|
213
|
+
fill: #fff;
|
|
214
|
+
fill-opacity: 75%;
|
|
149
215
|
}
|
|
150
216
|
|
|
151
|
-
.
|
|
152
|
-
|
|
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
|
-
.
|
|
158
|
-
@apply top-[1px] left-[1px] active:relative;
|
|
220
|
+
.button-outline:hover{
|
|
159
221
|
}
|
|
160
|
-
.
|
|
161
|
-
|
|
162
|
-
|
|
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
|
-
.
|
|
165
|
-
|
|
227
|
+
.button-outline *{
|
|
228
|
+
@apply text-primary-500 fill-primary-500;
|
|
166
229
|
}
|
|
167
|
-
.
|
|
168
|
-
|
|
230
|
+
.button-outline.loading *{
|
|
231
|
+
@apply fill-transparent
|
|
169
232
|
}
|
|
170
|
-
.
|
|
171
|
-
|
|
172
|
-
|
|
233
|
+
.button-outline .svgBg{
|
|
234
|
+
stroke: rgb(var(--primary-600));
|
|
235
|
+
stroke-opacity: 50%;
|
|
173
236
|
}
|
|
174
|
-
.
|
|
175
|
-
|
|
176
|
-
|
|
237
|
+
.button-outline .svgHg{
|
|
238
|
+
fill: rgb(var(--primary-500));
|
|
239
|
+
fill-opacity: 100%;
|
|
177
240
|
}
|
|
178
241
|
|
|
179
|
-
.
|
|
180
|
-
|
|
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
|
-
.
|
|
183
|
-
|
|
246
|
+
.button-secondary:hover{
|
|
247
|
+
@apply bg-secondary-600 border-secondary-600;
|
|
184
248
|
}
|
|
185
|
-
.
|
|
186
|
-
|
|
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
|
-
.
|
|
189
|
-
|
|
253
|
+
.button-secondary *{
|
|
254
|
+
@apply text-text-500 fill-white;
|
|
190
255
|
}
|
|
191
|
-
.
|
|
192
|
-
|
|
256
|
+
.button-secondary.loading *{
|
|
257
|
+
@apply fill-transparent
|
|
193
258
|
}
|
|
194
|
-
.
|
|
195
|
-
|
|
259
|
+
.button-secondary .svgBg{
|
|
260
|
+
stroke: rgb(var(--text-400));
|
|
261
|
+
stroke-opacity: 25%;
|
|
196
262
|
}
|
|
197
|
-
.
|
|
198
|
-
|
|
199
|
-
|
|
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
|
-
.
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
.
|
|
207
|
-
|
|
293
|
+
.button-minimal{
|
|
294
|
+
@apply border-[2px] border-transparent;
|
|
208
295
|
}
|
|
209
|
-
.
|
|
296
|
+
.button-minimal:hover{
|
|
210
297
|
}
|
|
211
|
-
.
|
|
212
|
-
|
|
213
|
-
|
|
298
|
+
.button-minimal .svgBg{
|
|
299
|
+
stroke: rgb(var(--text-500));
|
|
300
|
+
stroke-opacity: 25%;
|
|
214
301
|
}
|
|
215
|
-
.
|
|
216
|
-
|
|
217
|
-
|
|
302
|
+
.button-minimal .svgHg{
|
|
303
|
+
fill: rgb(var(--text));
|
|
304
|
+
fill-opacity: 75%;
|
|
218
305
|
}
|
|
219
306
|
|
|
220
307
|
.loadingPane{
|
|
221
|
-
|
|
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
|
-
|
|
314
|
+
@apply opacity-0
|
|
225
315
|
}
|
|
226
316
|
.loading:hover{
|
|
227
317
|
}
|
|
228
318
|
.loading:active{
|
|
229
|
-
|
|
319
|
+
@apply top-0 left-0;
|
|
230
320
|
}
|
|
231
321
|
.loading>*{
|
|
232
|
-
|
|
322
|
+
opacity: 0;
|
|
233
323
|
}
|
|
234
324
|
.loading .loadingPane{
|
|
235
|
-
|
|
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
|
-
|
|
329
|
+
@apply animate-spin h-5 w-5;
|
|
251
330
|
}
|
|
252
331
|
|
|
253
|
-
</style>
|
|
332
|
+
</style>
|