@timus-networks/theme 2.2.2 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/module.json +1 -1
- package/dist/module.mjs +9 -2
- package/dist/runtime/components/development/example.button.vue.d.ts +302 -0
- package/dist/runtime/components/development/example.dialog.vue +4 -5
- package/dist/runtime/components/development/example.message.vue +1 -1
- package/dist/runtime/components/development/example.popover.vue +3 -3
- package/dist/runtime/components/development/example.table.vue +1 -1
- package/dist/runtime/components/production/timus-breadcrumb.vue.d.ts +0 -302
- package/dist/runtime/public/scss/_buttons.scss +159 -0
- package/dist/runtime/public/scss/_colors.scss +188 -0
- package/dist/runtime/public/scss/_containers.scss +7 -0
- package/dist/runtime/public/scss/_fonts.scss +85 -0
- package/dist/runtime/public/scss/_icons.scss +124 -0
- package/dist/runtime/public/scss/_inputs.scss +62 -0
- package/dist/runtime/public/scss/_layers.scss +9 -0
- package/dist/runtime/public/scss/_logo.scss +53 -0
- package/dist/runtime/public/scss/_selectbox.scss +4 -0
- package/dist/runtime/public/scss/_variables.scss +16 -0
- package/dist/runtime/public/scss/element-plus/affix.css +78 -78
- package/dist/runtime/public/scss/element-plus/affix.scss +7 -0
- package/dist/runtime/public/scss/element-plus/alert.css +78 -78
- package/dist/runtime/public/scss/element-plus/alert.scss +168 -0
- package/dist/runtime/public/scss/element-plus/anchor-link.css +78 -78
- package/dist/runtime/public/scss/element-plus/anchor-link.scss +41 -0
- package/dist/runtime/public/scss/element-plus/anchor.css +78 -78
- package/dist/runtime/public/scss/element-plus/anchor.scss +93 -0
- package/dist/runtime/public/scss/element-plus/aside.css +78 -78
- package/dist/runtime/public/scss/element-plus/aside.scss +8 -0
- package/dist/runtime/public/scss/element-plus/autocomplete.css +78 -78
- package/dist/runtime/public/scss/element-plus/autocomplete.scss +85 -0
- package/dist/runtime/public/scss/element-plus/avatar.css +82 -78
- package/dist/runtime/public/scss/element-plus/avatar.scss +56 -0
- package/dist/runtime/public/scss/element-plus/backtop.css +78 -78
- package/dist/runtime/public/scss/element-plus/backtop.scss +29 -0
- package/dist/runtime/public/scss/element-plus/badge.css +78 -78
- package/dist/runtime/public/scss/element-plus/badge.scss +54 -0
- package/dist/runtime/public/scss/element-plus/base.css +78 -78
- package/dist/runtime/public/scss/element-plus/base.scss +3 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/breadcrumb.css +78 -78
- package/dist/runtime/public/scss/element-plus/breadcrumb.scss +75 -0
- package/dist/runtime/public/scss/element-plus/button-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/button-group.scss +111 -0
- package/dist/runtime/public/scss/element-plus/button.css +78 -83
- package/dist/runtime/public/scss/element-plus/button.scss +352 -0
- package/dist/runtime/public/scss/element-plus/calendar.css +78 -78
- package/dist/runtime/public/scss/element-plus/calendar.scss +80 -0
- package/dist/runtime/public/scss/element-plus/card.css +78 -78
- package/dist/runtime/public/scss/element-plus/card.scss +54 -0
- package/dist/runtime/public/scss/element-plus/carousel-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/carousel-item.scss +58 -0
- package/dist/runtime/public/scss/element-plus/carousel.css +78 -78
- package/dist/runtime/public/scss/element-plus/carousel.scss +183 -0
- package/dist/runtime/public/scss/element-plus/cascader-panel.css +78 -78
- package/dist/runtime/public/scss/element-plus/cascader-panel.scss +138 -0
- package/dist/runtime/public/scss/element-plus/cascader.css +78 -78
- package/dist/runtime/public/scss/element-plus/cascader.scss +218 -0
- package/dist/runtime/public/scss/element-plus/check-tag.css +78 -78
- package/dist/runtime/public/scss/element-plus/check-tag.scss +38 -0
- package/dist/runtime/public/scss/element-plus/checkbox-button.css +78 -83
- package/dist/runtime/public/scss/element-plus/checkbox-button.scss +141 -0
- package/dist/runtime/public/scss/element-plus/checkbox-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/checkbox-group.scss +8 -0
- package/dist/runtime/public/scss/element-plus/checkbox.css +78 -78
- package/dist/runtime/public/scss/element-plus/checkbox.scss +294 -0
- package/dist/runtime/public/scss/element-plus/col.css +78 -78
- package/dist/runtime/public/scss/element-plus/col.scss +48 -0
- package/dist/runtime/public/scss/element-plus/collapse-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/collapse-transition.scss +0 -0
- package/dist/runtime/public/scss/element-plus/collapse.css +78 -78
- package/dist/runtime/public/scss/element-plus/collapse.scss +70 -0
- package/dist/runtime/public/scss/element-plus/color/index.scss +17 -0
- package/dist/runtime/public/scss/element-plus/color-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/color-picker.scss +365 -0
- package/dist/runtime/public/scss/element-plus/common/popup.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/popup.scss +47 -0
- package/dist/runtime/public/scss/element-plus/common/transition.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/transition.scss +124 -0
- package/dist/runtime/public/scss/element-plus/common/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/common/var.scss +1646 -0
- package/dist/runtime/public/scss/element-plus/config-provider.scss +0 -0
- package/dist/runtime/public/scss/element-plus/container.css +78 -78
- package/dist/runtime/public/scss/element-plus/container.scss +14 -0
- package/dist/runtime/public/scss/element-plus/dark/css-vars.css +78 -78
- package/dist/runtime/public/scss/element-plus/dark/css-vars.scss +39 -0
- package/dist/runtime/public/scss/element-plus/dark/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/dark/var.scss +221 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-picker.scss +109 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-range-picker.scss +117 -0
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/date-table.scss +158 -0
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/month-table.scss +112 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/picker-panel.scss +168 -0
- package/dist/runtime/public/scss/element-plus/date-picker/picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/picker.scss +192 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-picker.scss +98 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-range-picker.scss +40 -0
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/time-spinner.scss +110 -0
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker/year-table.scss +108 -0
- package/dist/runtime/public/scss/element-plus/date-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/date-picker.scss +9 -0
- package/dist/runtime/public/scss/element-plus/descriptions-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/descriptions-item.scss +69 -0
- package/dist/runtime/public/scss/element-plus/descriptions.css +78 -78
- package/dist/runtime/public/scss/element-plus/descriptions.scss +166 -0
- package/dist/runtime/public/scss/element-plus/dialog.css +81 -81
- package/dist/runtime/public/scss/element-plus/dialog.scss +190 -0
- package/dist/runtime/public/scss/element-plus/display.css +78 -78
- package/dist/runtime/public/scss/element-plus/display.scss +12 -0
- package/dist/runtime/public/scss/element-plus/divider.css +78 -78
- package/dist/runtime/public/scss/element-plus/divider.scss +48 -0
- package/dist/runtime/public/scss/element-plus/drawer.css +78 -78
- package/dist/runtime/public/scss/element-plus/drawer.scss +155 -0
- package/dist/runtime/public/scss/element-plus/dropdown-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown-menu.scss +0 -0
- package/dist/runtime/public/scss/element-plus/dropdown.css +78 -78
- package/dist/runtime/public/scss/element-plus/dropdown.scss +212 -0
- package/dist/runtime/public/scss/element-plus/empty.css +78 -78
- package/dist/runtime/public/scss/element-plus/empty.scss +49 -0
- package/dist/runtime/public/scss/element-plus/footer.css +78 -78
- package/dist/runtime/public/scss/element-plus/footer.scss +12 -0
- package/dist/runtime/public/scss/element-plus/form-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/form.css +78 -78
- package/dist/runtime/public/scss/element-plus/form.scss +296 -0
- package/dist/runtime/public/scss/element-plus/header.css +78 -78
- package/dist/runtime/public/scss/element-plus/header.scss +12 -0
- package/dist/runtime/public/scss/element-plus/icon.css +78 -78
- package/dist/runtime/public/scss/element-plus/icon.scss +45 -0
- package/dist/runtime/public/scss/element-plus/image-viewer.css +78 -78
- package/dist/runtime/public/scss/element-plus/image-viewer.scss +139 -0
- package/dist/runtime/public/scss/element-plus/image.css +78 -78
- package/dist/runtime/public/scss/element-plus/image.scss +49 -0
- package/dist/runtime/public/scss/element-plus/index.css +185 -164
- package/dist/runtime/public/scss/element-plus/index.scss +110 -0
- package/dist/runtime/public/scss/element-plus/infinite-scroll.scss +0 -0
- package/dist/runtime/public/scss/element-plus/input-number.css +78 -78
- package/dist/runtime/public/scss/element-plus/input-number.scss +184 -0
- package/dist/runtime/public/scss/element-plus/input.css +78 -78
- package/dist/runtime/public/scss/element-plus/input.scss +530 -0
- package/dist/runtime/public/scss/element-plus/link.css +106 -120
- package/dist/runtime/public/scss/element-plus/link.scss +89 -0
- package/dist/runtime/public/scss/element-plus/loading.css +78 -78
- package/dist/runtime/public/scss/element-plus/loading.scss +102 -0
- package/dist/runtime/public/scss/element-plus/main.css +78 -78
- package/dist/runtime/public/scss/element-plus/main.scss +14 -0
- package/dist/runtime/public/scss/element-plus/mention.css +78 -78
- package/dist/runtime/public/scss/element-plus/mention.scss +84 -0
- package/dist/runtime/public/scss/element-plus/menu-item-group.scss +0 -0
- package/dist/runtime/public/scss/element-plus/menu-item.scss +0 -0
- package/dist/runtime/public/scss/element-plus/menu.css +78 -78
- package/dist/runtime/public/scss/element-plus/menu.scss +332 -0
- package/dist/runtime/public/scss/element-plus/message-box.css +105 -86
- package/dist/runtime/public/scss/element-plus/message-box.scss +229 -0
- package/dist/runtime/public/scss/element-plus/message.css +81 -81
- package/dist/runtime/public/scss/element-plus/message.scss +159 -0
- package/dist/runtime/public/scss/element-plus/mixins/_button.scss +181 -0
- package/dist/runtime/public/scss/element-plus/mixins/_col.scss +33 -0
- package/dist/runtime/public/scss/element-plus/mixins/_var.scss +58 -0
- package/dist/runtime/public/scss/element-plus/mixins/config.scss +5 -0
- package/dist/runtime/public/scss/element-plus/mixins/function.scss +84 -0
- package/dist/runtime/public/scss/element-plus/mixins/mixins.css +78 -78
- package/dist/runtime/public/scss/element-plus/mixins/mixins.scss +227 -0
- package/dist/runtime/public/scss/element-plus/mixins/utils.scss +39 -0
- package/dist/runtime/public/scss/element-plus/notification.css +80 -80
- package/dist/runtime/public/scss/element-plus/notification.scss +104 -0
- package/dist/runtime/public/scss/element-plus/option-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/option-group.scss +38 -0
- package/dist/runtime/public/scss/element-plus/option.css +78 -78
- package/dist/runtime/public/scss/element-plus/option.scss +75 -0
- package/dist/runtime/public/scss/element-plus/overlay.css +79 -79
- package/dist/runtime/public/scss/element-plus/overlay.scss +20 -0
- package/dist/runtime/public/scss/element-plus/page-header.css +78 -78
- package/dist/runtime/public/scss/element-plus/page-header.scss +60 -0
- package/dist/runtime/public/scss/element-plus/pagination.css +78 -78
- package/dist/runtime/public/scss/element-plus/pagination.scss +249 -0
- package/dist/runtime/public/scss/element-plus/popconfirm.css +78 -78
- package/dist/runtime/public/scss/element-plus/popconfirm.scss +16 -0
- package/dist/runtime/public/scss/element-plus/popover.css +99 -79
- package/dist/runtime/public/scss/element-plus/popover.scss +75 -0
- package/dist/runtime/public/scss/element-plus/popper.css +78 -78
- package/dist/runtime/public/scss/element-plus/popper.scss +107 -0
- package/dist/runtime/public/scss/element-plus/progress.css +78 -78
- package/dist/runtime/public/scss/element-plus/progress.scss +179 -0
- package/dist/runtime/public/scss/element-plus/radio-button.css +78 -79
- package/dist/runtime/public/scss/element-plus/radio-button.scss +138 -0
- package/dist/runtime/public/scss/element-plus/radio-group.css +78 -78
- package/dist/runtime/public/scss/element-plus/radio-group.scss +9 -0
- package/dist/runtime/public/scss/element-plus/radio.css +78 -78
- package/dist/runtime/public/scss/element-plus/radio.scss +240 -0
- package/dist/runtime/public/scss/element-plus/rate.css +78 -78
- package/dist/runtime/public/scss/element-plus/rate.scss +108 -0
- package/dist/runtime/public/scss/element-plus/reset.css +78 -78
- package/dist/runtime/public/scss/element-plus/reset.scss +97 -0
- package/dist/runtime/public/scss/element-plus/result.css +78 -78
- package/dist/runtime/public/scss/element-plus/result.scss +57 -0
- package/dist/runtime/public/scss/element-plus/row.css +78 -78
- package/dist/runtime/public/scss/element-plus/row.scss +35 -0
- package/dist/runtime/public/scss/element-plus/scrollbar.css +78 -78
- package/dist/runtime/public/scss/element-plus/scrollbar.scss +85 -0
- package/dist/runtime/public/scss/element-plus/segmented.css +78 -78
- package/dist/runtime/public/scss/element-plus/segmented.scss +160 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/select-dropdown-v2.scss +1 -0
- package/dist/runtime/public/scss/element-plus/select-dropdown.css +78 -78
- package/dist/runtime/public/scss/element-plus/select-dropdown.scss +57 -0
- package/dist/runtime/public/scss/element-plus/select-v2.css +79 -79
- package/dist/runtime/public/scss/element-plus/select-v2.scss +4 -0
- package/dist/runtime/public/scss/element-plus/select.css +79 -79
- package/dist/runtime/public/scss/element-plus/select.scss +277 -0
- package/dist/runtime/public/scss/element-plus/skeleton-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/skeleton-item.scss +83 -0
- package/dist/runtime/public/scss/element-plus/skeleton.css +78 -78
- package/dist/runtime/public/scss/element-plus/skeleton.scss +39 -0
- package/dist/runtime/public/scss/element-plus/slider.css +78 -78
- package/dist/runtime/public/scss/element-plus/slider.scss +212 -0
- package/dist/runtime/public/scss/element-plus/space.css +78 -78
- package/dist/runtime/public/scss/element-plus/space.scss +20 -0
- package/dist/runtime/public/scss/element-plus/spinner.css +78 -78
- package/dist/runtime/public/scss/element-plus/spinner.scss +43 -0
- package/dist/runtime/public/scss/element-plus/statistic.css +78 -78
- package/dist/runtime/public/scss/element-plus/statistic.scss +35 -0
- package/dist/runtime/public/scss/element-plus/step.css +78 -78
- package/dist/runtime/public/scss/element-plus/step.scss +316 -0
- package/dist/runtime/public/scss/element-plus/steps.css +78 -78
- package/dist/runtime/public/scss/element-plus/steps.scss +21 -0
- package/dist/runtime/public/scss/element-plus/sub-menu.scss +0 -0
- package/dist/runtime/public/scss/element-plus/switch.css +78 -78
- package/dist/runtime/public/scss/element-plus/switch.scss +309 -0
- package/dist/runtime/public/scss/element-plus/tab-pane.scss +0 -0
- package/dist/runtime/public/scss/element-plus/table-column.css +78 -78
- package/dist/runtime/public/scss/element-plus/table-column.scss +98 -0
- package/dist/runtime/public/scss/element-plus/table-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/table-v2.scss +234 -0
- package/dist/runtime/public/scss/element-plus/table.css +84 -81
- package/dist/runtime/public/scss/element-plus/table.scss +732 -0
- package/dist/runtime/public/scss/element-plus/tabs.css +78 -78
- package/dist/runtime/public/scss/element-plus/tabs.scss +653 -0
- package/dist/runtime/public/scss/element-plus/tag.css +87 -87
- package/dist/runtime/public/scss/element-plus/tag.scss +162 -0
- package/dist/runtime/public/scss/element-plus/text.css +78 -78
- package/dist/runtime/public/scss/element-plus/text.scss +58 -0
- package/dist/runtime/public/scss/element-plus/time-picker.css +78 -78
- package/dist/runtime/public/scss/element-plus/time-picker.scss +5 -0
- package/dist/runtime/public/scss/element-plus/time-select.css +78 -78
- package/dist/runtime/public/scss/element-plus/time-select.scss +37 -0
- package/dist/runtime/public/scss/element-plus/timeline-item.css +78 -78
- package/dist/runtime/public/scss/element-plus/timeline-item.scss +84 -0
- package/dist/runtime/public/scss/element-plus/timeline.css +78 -78
- package/dist/runtime/public/scss/element-plus/timeline.scss +46 -0
- package/dist/runtime/public/scss/element-plus/tooltip-v2.css +78 -78
- package/dist/runtime/public/scss/element-plus/tooltip-v2.scss +86 -0
- package/dist/runtime/public/scss/element-plus/tooltip.scss +0 -0
- package/dist/runtime/public/scss/element-plus/tour.css +80 -80
- package/dist/runtime/public/scss/element-plus/tour.scss +170 -0
- package/dist/runtime/public/scss/element-plus/transfer.css +78 -78
- package/dist/runtime/public/scss/element-plus/transfer.scss +204 -0
- package/dist/runtime/public/scss/element-plus/tree-select.css +78 -78
- package/dist/runtime/public/scss/element-plus/tree-select.scss +38 -0
- package/dist/runtime/public/scss/element-plus/tree.css +78 -78
- package/dist/runtime/public/scss/element-plus/tree.scss +132 -0
- package/dist/runtime/public/scss/element-plus/upload.css +78 -78
- package/dist/runtime/public/scss/element-plus/upload.scss +652 -0
- package/dist/runtime/public/scss/element-plus/var.css +78 -78
- package/dist/runtime/public/scss/element-plus/var.scss +84 -0
- package/dist/runtime/public/scss/element-plus/virtual-list.css +78 -78
- package/dist/runtime/public/scss/element-plus/virtual-list.scss +40 -0
- package/dist/runtime/public/scss/theme.css +78 -78
- package/dist/runtime/public/scss/theme.scss +72 -0
- package/package.json +9 -2
|
@@ -36,305 +36,3 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
36
36
|
paths: unknown[];
|
|
37
37
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
38
38
|
export default _default;
|
|
39
|
-
declare module 'vue' {
|
|
40
|
-
interface GlobalComponents {
|
|
41
|
-
}
|
|
42
|
-
interface GlobalDirectives {
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
declare global {
|
|
46
|
-
const __VLS_intrinsicElements: __VLS_IntrinsicElements;
|
|
47
|
-
const __VLS_directiveBindingRestFields: {
|
|
48
|
-
instance: null;
|
|
49
|
-
oldValue: null;
|
|
50
|
-
modifiers: any;
|
|
51
|
-
dir: any;
|
|
52
|
-
};
|
|
53
|
-
const __VLS_unref: typeof import('vue').unref;
|
|
54
|
-
const __VLS_nativeElements: {
|
|
55
|
-
a: HTMLAnchorElement;
|
|
56
|
-
abbr: HTMLElement;
|
|
57
|
-
address: HTMLElement;
|
|
58
|
-
area: HTMLAreaElement;
|
|
59
|
-
article: HTMLElement;
|
|
60
|
-
aside: HTMLElement;
|
|
61
|
-
audio: HTMLAudioElement;
|
|
62
|
-
b: HTMLElement;
|
|
63
|
-
base: HTMLBaseElement;
|
|
64
|
-
bdi: HTMLElement;
|
|
65
|
-
bdo: HTMLElement;
|
|
66
|
-
blockquote: HTMLQuoteElement;
|
|
67
|
-
body: HTMLBodyElement;
|
|
68
|
-
br: HTMLBRElement;
|
|
69
|
-
button: HTMLButtonElement;
|
|
70
|
-
canvas: HTMLCanvasElement;
|
|
71
|
-
caption: HTMLTableCaptionElement;
|
|
72
|
-
cite: HTMLElement;
|
|
73
|
-
code: HTMLElement;
|
|
74
|
-
col: HTMLTableColElement;
|
|
75
|
-
colgroup: HTMLTableColElement;
|
|
76
|
-
data: HTMLDataElement;
|
|
77
|
-
datalist: HTMLDataListElement;
|
|
78
|
-
dd: HTMLElement;
|
|
79
|
-
del: HTMLModElement;
|
|
80
|
-
details: HTMLDetailsElement;
|
|
81
|
-
dfn: HTMLElement;
|
|
82
|
-
dialog: HTMLDialogElement;
|
|
83
|
-
div: HTMLDivElement;
|
|
84
|
-
dl: HTMLDListElement;
|
|
85
|
-
dt: HTMLElement;
|
|
86
|
-
em: HTMLElement;
|
|
87
|
-
embed: HTMLEmbedElement;
|
|
88
|
-
fieldset: HTMLFieldSetElement;
|
|
89
|
-
figcaption: HTMLElement;
|
|
90
|
-
figure: HTMLElement;
|
|
91
|
-
footer: HTMLElement;
|
|
92
|
-
form: HTMLFormElement;
|
|
93
|
-
h1: HTMLHeadingElement;
|
|
94
|
-
h2: HTMLHeadingElement;
|
|
95
|
-
h3: HTMLHeadingElement;
|
|
96
|
-
h4: HTMLHeadingElement;
|
|
97
|
-
h5: HTMLHeadingElement;
|
|
98
|
-
h6: HTMLHeadingElement;
|
|
99
|
-
head: HTMLHeadElement;
|
|
100
|
-
header: HTMLElement;
|
|
101
|
-
hgroup: HTMLElement;
|
|
102
|
-
hr: HTMLHRElement;
|
|
103
|
-
html: HTMLHtmlElement;
|
|
104
|
-
i: HTMLElement;
|
|
105
|
-
iframe: HTMLIFrameElement;
|
|
106
|
-
img: HTMLImageElement;
|
|
107
|
-
input: HTMLInputElement;
|
|
108
|
-
ins: HTMLModElement;
|
|
109
|
-
kbd: HTMLElement;
|
|
110
|
-
label: HTMLLabelElement;
|
|
111
|
-
legend: HTMLLegendElement;
|
|
112
|
-
li: HTMLLIElement;
|
|
113
|
-
link: HTMLLinkElement;
|
|
114
|
-
main: HTMLElement;
|
|
115
|
-
map: HTMLMapElement;
|
|
116
|
-
mark: HTMLElement;
|
|
117
|
-
menu: HTMLMenuElement;
|
|
118
|
-
meta: HTMLMetaElement;
|
|
119
|
-
meter: HTMLMeterElement;
|
|
120
|
-
nav: HTMLElement;
|
|
121
|
-
noscript: HTMLElement;
|
|
122
|
-
object: HTMLObjectElement;
|
|
123
|
-
ol: HTMLOListElement;
|
|
124
|
-
optgroup: HTMLOptGroupElement;
|
|
125
|
-
option: HTMLOptionElement;
|
|
126
|
-
output: HTMLOutputElement;
|
|
127
|
-
p: HTMLParagraphElement;
|
|
128
|
-
picture: HTMLPictureElement;
|
|
129
|
-
pre: HTMLPreElement;
|
|
130
|
-
progress: HTMLProgressElement;
|
|
131
|
-
q: HTMLQuoteElement;
|
|
132
|
-
rp: HTMLElement;
|
|
133
|
-
rt: HTMLElement;
|
|
134
|
-
ruby: HTMLElement;
|
|
135
|
-
s: HTMLElement;
|
|
136
|
-
samp: HTMLElement;
|
|
137
|
-
script: HTMLScriptElement;
|
|
138
|
-
search: HTMLElement;
|
|
139
|
-
section: HTMLElement;
|
|
140
|
-
select: HTMLSelectElement;
|
|
141
|
-
slot: HTMLSlotElement;
|
|
142
|
-
small: HTMLElement;
|
|
143
|
-
source: HTMLSourceElement;
|
|
144
|
-
span: HTMLSpanElement;
|
|
145
|
-
strong: HTMLElement;
|
|
146
|
-
style: HTMLStyleElement;
|
|
147
|
-
sub: HTMLElement;
|
|
148
|
-
summary: HTMLElement;
|
|
149
|
-
sup: HTMLElement;
|
|
150
|
-
table: HTMLTableElement;
|
|
151
|
-
tbody: HTMLTableSectionElement;
|
|
152
|
-
td: HTMLTableCellElement;
|
|
153
|
-
template: HTMLTemplateElement;
|
|
154
|
-
textarea: HTMLTextAreaElement;
|
|
155
|
-
tfoot: HTMLTableSectionElement;
|
|
156
|
-
th: HTMLTableCellElement;
|
|
157
|
-
thead: HTMLTableSectionElement;
|
|
158
|
-
time: HTMLTimeElement;
|
|
159
|
-
title: HTMLTitleElement;
|
|
160
|
-
tr: HTMLTableRowElement;
|
|
161
|
-
track: HTMLTrackElement;
|
|
162
|
-
u: HTMLElement;
|
|
163
|
-
ul: HTMLUListElement;
|
|
164
|
-
var: HTMLElement;
|
|
165
|
-
video: HTMLVideoElement;
|
|
166
|
-
wbr: HTMLElement;
|
|
167
|
-
animate: SVGAnimateElement;
|
|
168
|
-
animateMotion: SVGAnimateMotionElement;
|
|
169
|
-
animateTransform: SVGAnimateTransformElement;
|
|
170
|
-
circle: SVGCircleElement;
|
|
171
|
-
clipPath: SVGClipPathElement;
|
|
172
|
-
defs: SVGDefsElement;
|
|
173
|
-
desc: SVGDescElement;
|
|
174
|
-
ellipse: SVGEllipseElement;
|
|
175
|
-
feBlend: SVGFEBlendElement;
|
|
176
|
-
feColorMatrix: SVGFEColorMatrixElement;
|
|
177
|
-
feComponentTransfer: SVGFEComponentTransferElement;
|
|
178
|
-
feComposite: SVGFECompositeElement;
|
|
179
|
-
feConvolveMatrix: SVGFEConvolveMatrixElement;
|
|
180
|
-
feDiffuseLighting: SVGFEDiffuseLightingElement;
|
|
181
|
-
feDisplacementMap: SVGFEDisplacementMapElement;
|
|
182
|
-
feDistantLight: SVGFEDistantLightElement;
|
|
183
|
-
feDropShadow: SVGFEDropShadowElement;
|
|
184
|
-
feFlood: SVGFEFloodElement;
|
|
185
|
-
feFuncA: SVGFEFuncAElement;
|
|
186
|
-
feFuncB: SVGFEFuncBElement;
|
|
187
|
-
feFuncG: SVGFEFuncGElement;
|
|
188
|
-
feFuncR: SVGFEFuncRElement;
|
|
189
|
-
feGaussianBlur: SVGFEGaussianBlurElement;
|
|
190
|
-
feImage: SVGFEImageElement;
|
|
191
|
-
feMerge: SVGFEMergeElement;
|
|
192
|
-
feMergeNode: SVGFEMergeNodeElement;
|
|
193
|
-
feMorphology: SVGFEMorphologyElement;
|
|
194
|
-
feOffset: SVGFEOffsetElement;
|
|
195
|
-
fePointLight: SVGFEPointLightElement;
|
|
196
|
-
feSpecularLighting: SVGFESpecularLightingElement;
|
|
197
|
-
feSpotLight: SVGFESpotLightElement;
|
|
198
|
-
feTile: SVGFETileElement;
|
|
199
|
-
feTurbulence: SVGFETurbulenceElement;
|
|
200
|
-
filter: SVGFilterElement;
|
|
201
|
-
foreignObject: SVGForeignObjectElement;
|
|
202
|
-
g: SVGGElement;
|
|
203
|
-
image: SVGImageElement;
|
|
204
|
-
line: SVGLineElement;
|
|
205
|
-
linearGradient: SVGLinearGradientElement;
|
|
206
|
-
marker: SVGMarkerElement;
|
|
207
|
-
mask: SVGMaskElement;
|
|
208
|
-
metadata: SVGMetadataElement;
|
|
209
|
-
mpath: SVGMPathElement;
|
|
210
|
-
path: SVGPathElement;
|
|
211
|
-
pattern: SVGPatternElement;
|
|
212
|
-
polygon: SVGPolygonElement;
|
|
213
|
-
polyline: SVGPolylineElement;
|
|
214
|
-
radialGradient: SVGRadialGradientElement;
|
|
215
|
-
rect: SVGRectElement;
|
|
216
|
-
set: SVGSetElement;
|
|
217
|
-
stop: SVGStopElement;
|
|
218
|
-
svg: SVGSVGElement;
|
|
219
|
-
switch: SVGSwitchElement;
|
|
220
|
-
symbol: SVGSymbolElement;
|
|
221
|
-
text: SVGTextElement;
|
|
222
|
-
textPath: SVGTextPathElement;
|
|
223
|
-
tspan: SVGTSpanElement;
|
|
224
|
-
use: SVGUseElement;
|
|
225
|
-
view: SVGViewElement;
|
|
226
|
-
};
|
|
227
|
-
type __VLS_IntrinsicElements = import('vue/jsx-runtime').JSX.IntrinsicElements;
|
|
228
|
-
type __VLS_Element = import('vue/jsx-runtime').JSX.Element;
|
|
229
|
-
type __VLS_GlobalComponents = import('vue').GlobalComponents & Pick<typeof import('vue'), 'Transition' | 'TransitionGroup' | 'KeepAlive' | 'Suspense' | 'Teleport'>;
|
|
230
|
-
type __VLS_GlobalDirectives = import('vue').GlobalDirectives;
|
|
231
|
-
type __VLS_IsAny<T> = 0 extends 1 & T ? true : false;
|
|
232
|
-
type __VLS_PickNotAny<A, B> = __VLS_IsAny<A> extends true ? B : A;
|
|
233
|
-
type __VLS_unknownDirective = (arg1: unknown, arg2: unknown, arg3: unknown, arg4: unknown) => void;
|
|
234
|
-
type __VLS_WithComponent<N0 extends string, LocalComponents, N1 extends string, N2 extends string, N3 extends string> = N1 extends keyof LocalComponents ? N1 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
235
|
-
[K in N0]: LocalComponents[N1];
|
|
236
|
-
} : N2 extends keyof LocalComponents ? N2 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
237
|
-
[K in N0]: LocalComponents[N2];
|
|
238
|
-
} : N3 extends keyof LocalComponents ? N3 extends N0 ? Pick<LocalComponents, N0 extends keyof LocalComponents ? N0 : never> : {
|
|
239
|
-
[K in N0]: LocalComponents[N3];
|
|
240
|
-
} : N1 extends keyof __VLS_GlobalComponents ? N1 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
241
|
-
[K in N0]: __VLS_GlobalComponents[N1];
|
|
242
|
-
} : N2 extends keyof __VLS_GlobalComponents ? N2 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
243
|
-
[K in N0]: __VLS_GlobalComponents[N2];
|
|
244
|
-
} : N3 extends keyof __VLS_GlobalComponents ? N3 extends N0 ? Pick<__VLS_GlobalComponents, N0 extends keyof __VLS_GlobalComponents ? N0 : never> : {
|
|
245
|
-
[K in N0]: __VLS_GlobalComponents[N3];
|
|
246
|
-
} : {
|
|
247
|
-
[K in N0]: unknown;
|
|
248
|
-
};
|
|
249
|
-
type __VLS_FunctionalComponentProps<T, K> = '__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
250
|
-
__ctx?: {
|
|
251
|
-
props?: infer P;
|
|
252
|
-
};
|
|
253
|
-
} ? NonNullable<P> : never : T extends (props: infer P, ...args: any) => any ? P : {};
|
|
254
|
-
type __VLS_IsFunction<T, K> = K extends keyof T ? __VLS_IsAny<T[K]> extends false ? unknown extends T[K] ? false : true : false : false;
|
|
255
|
-
type __VLS_UnionToIntersection<U> = (U extends unknown ? (arg: U) => unknown : never) extends ((arg: infer P) => unknown) ? P : never;
|
|
256
|
-
type __VLS_OverloadUnionInner<T, U = unknown> = U & T extends (...args: infer A) => infer R ? U extends T ? never : __VLS_OverloadUnionInner<T, Pick<T, keyof T> & U & ((...args: A) => R)> | ((...args: A) => R) : never;
|
|
257
|
-
type __VLS_OverloadUnion<T> = Exclude<__VLS_OverloadUnionInner<(() => never) & T>, T extends () => never ? never : () => never>;
|
|
258
|
-
type __VLS_ConstructorOverloads<T> = __VLS_OverloadUnion<T> extends infer F ? F extends (event: infer E, ...args: infer A) => any ? {
|
|
259
|
-
[K in E & string]: (...args: A) => void;
|
|
260
|
-
} : never : never;
|
|
261
|
-
type __VLS_NormalizeEmits<T> = __VLS_PrettifyGlobal<__VLS_UnionToIntersection<__VLS_ConstructorOverloads<T> & {
|
|
262
|
-
[K in keyof T]: T[K] extends any[] ? {
|
|
263
|
-
(...args: T[K]): void;
|
|
264
|
-
} : never;
|
|
265
|
-
}>>;
|
|
266
|
-
type __VLS_PrettifyGlobal<T> = {
|
|
267
|
-
[K in keyof T]: T[K];
|
|
268
|
-
} & {};
|
|
269
|
-
function __VLS_getVForSourceType(source: number): [number, number, number][];
|
|
270
|
-
function __VLS_getVForSourceType(source: string): [string, number, number][];
|
|
271
|
-
function __VLS_getVForSourceType<T extends any[]>(source: T): [
|
|
272
|
-
item: T[number],
|
|
273
|
-
key: number,
|
|
274
|
-
index: number
|
|
275
|
-
][];
|
|
276
|
-
function __VLS_getVForSourceType<T extends {
|
|
277
|
-
[Symbol.iterator](): Iterator<any>;
|
|
278
|
-
}>(source: T): [
|
|
279
|
-
item: T extends {
|
|
280
|
-
[Symbol.iterator](): Iterator<infer T1>;
|
|
281
|
-
} ? T1 : never,
|
|
282
|
-
key: number,
|
|
283
|
-
index: undefined
|
|
284
|
-
][];
|
|
285
|
-
function __VLS_getVForSourceType<T extends number | {
|
|
286
|
-
[Symbol.iterator](): Iterator<any>;
|
|
287
|
-
}>(source: T): [
|
|
288
|
-
item: number | (Exclude<T, number> extends {
|
|
289
|
-
[Symbol.iterator](): Iterator<infer T1>;
|
|
290
|
-
} ? T1 : never),
|
|
291
|
-
key: number,
|
|
292
|
-
index: undefined
|
|
293
|
-
][];
|
|
294
|
-
function __VLS_getVForSourceType<T>(source: T): [
|
|
295
|
-
item: T[keyof T],
|
|
296
|
-
key: keyof T,
|
|
297
|
-
index: number
|
|
298
|
-
][];
|
|
299
|
-
function __VLS_getSlotParams<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>;
|
|
300
|
-
function __VLS_getSlotParam<T>(slot: T): Parameters<__VLS_PickNotAny<NonNullable<T>, (...args: any[]) => any>>[0];
|
|
301
|
-
function __VLS_directiveAsFunction<T extends import('vue').Directive>(dir: T): T extends (...args: any) => any ? T | __VLS_unknownDirective : NonNullable<(T & Record<string, __VLS_unknownDirective>)['created' | 'beforeMount' | 'mounted' | 'beforeUpdate' | 'updated' | 'beforeUnmount' | 'unmounted']>;
|
|
302
|
-
function __VLS_withScope<T, K>(ctx: T, scope: K): ctx is T & K;
|
|
303
|
-
function __VLS_makeOptional<T>(t: T): {
|
|
304
|
-
[K in keyof T]?: T[K];
|
|
305
|
-
};
|
|
306
|
-
function __VLS_nonNullable<T>(t: T): T extends null | undefined ? never : T;
|
|
307
|
-
function __VLS_asFunctionalComponent<T, K = T extends new (...args: any) => any ? InstanceType<T> : unknown>(t: T, instance?: K): T extends new (...args: any) => any ? (props: (K extends {
|
|
308
|
-
$props: infer Props;
|
|
309
|
-
} ? Props : any) & Record<string, unknown>, ctx?: any) => __VLS_Element & {
|
|
310
|
-
__ctx?: {
|
|
311
|
-
attrs?: any;
|
|
312
|
-
slots?: K extends {
|
|
313
|
-
$slots: infer Slots;
|
|
314
|
-
} ? Slots : any;
|
|
315
|
-
emit?: K extends {
|
|
316
|
-
$emit: infer Emit;
|
|
317
|
-
} ? Emit : any;
|
|
318
|
-
} & {
|
|
319
|
-
props?: (K extends {
|
|
320
|
-
$props: infer Props;
|
|
321
|
-
} ? Props : any) & Record<string, unknown>;
|
|
322
|
-
expose?(exposed: K): void;
|
|
323
|
-
};
|
|
324
|
-
} : T extends () => any ? (props: {}, ctx?: any) => ReturnType<T> : T extends (...args: any) => any ? T : (_: {} & Record<string, unknown>, ctx?: any) => {
|
|
325
|
-
__ctx?: {
|
|
326
|
-
attrs?: any;
|
|
327
|
-
expose?: any;
|
|
328
|
-
slots?: any;
|
|
329
|
-
emit?: any;
|
|
330
|
-
props?: {} & Record<string, unknown>;
|
|
331
|
-
};
|
|
332
|
-
};
|
|
333
|
-
function __VLS_elementAsFunction<T>(tag: T, endTag?: T): (_: T & Record<string, unknown>) => void;
|
|
334
|
-
function __VLS_functionalComponentArgsRest<T extends (...args: any) => any>(t: T): 2 extends Parameters<T>['length'] ? [any] : [];
|
|
335
|
-
function __VLS_pickFunctionalComponentCtx<T, K>(comp: T, compInstance: K): NonNullable<__VLS_PickNotAny<'__ctx' extends keyof __VLS_PickNotAny<K, {}> ? K extends {
|
|
336
|
-
__ctx?: infer Ctx;
|
|
337
|
-
} ? Ctx : never : any, T extends (props: any, ctx: infer Ctx) => any ? Ctx : any>>;
|
|
338
|
-
function __VLS_normalizeSlot<S>(s: S): S extends () => infer R ? (props: {}) => R : S;
|
|
339
|
-
function __VLS_tryAsConstant<const T>(t: T): T;
|
|
340
|
-
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
$btn-config: (
|
|
2
|
+
'xs': (
|
|
3
|
+
min-width: 24px,
|
|
4
|
+
min-height: 24px,
|
|
5
|
+
padding: 0 4px,
|
|
6
|
+
font-size: 10px,
|
|
7
|
+
line-height: 10px,
|
|
8
|
+
border-radius: 3px,
|
|
9
|
+
),
|
|
10
|
+
'sm': (
|
|
11
|
+
min-width: 32px,
|
|
12
|
+
min-height: 32px,
|
|
13
|
+
padding: 0 6px,
|
|
14
|
+
font-size: 12px,
|
|
15
|
+
line-height: 16px,
|
|
16
|
+
border-radius: 3px,
|
|
17
|
+
),
|
|
18
|
+
'md': (
|
|
19
|
+
min-width: 36px,
|
|
20
|
+
min-height: 36px,
|
|
21
|
+
padding: 0 8px,
|
|
22
|
+
font-size: 14px,
|
|
23
|
+
line-height: 18px,
|
|
24
|
+
border-radius: 3px,
|
|
25
|
+
),
|
|
26
|
+
'lg': (
|
|
27
|
+
min-width: 40px,
|
|
28
|
+
min-height: 40px,
|
|
29
|
+
padding: 0 12px,
|
|
30
|
+
font-size: 14px,
|
|
31
|
+
line-height: 20px,
|
|
32
|
+
border-radius: 4px,
|
|
33
|
+
),
|
|
34
|
+
'xl': (
|
|
35
|
+
min-width: 48px,
|
|
36
|
+
min-height: 48px,
|
|
37
|
+
padding: 0 16px,
|
|
38
|
+
font-size: 14px,
|
|
39
|
+
line-height: 22px,
|
|
40
|
+
border-radius: 6px,
|
|
41
|
+
),
|
|
42
|
+
);
|
|
43
|
+
$btn-font-color: white;
|
|
44
|
+
$btn-bg: 500;
|
|
45
|
+
$btn-border: 200;
|
|
46
|
+
$btn-hover-bg: 600;
|
|
47
|
+
$btn-active-bg: 700;
|
|
48
|
+
|
|
49
|
+
// #### Generate Size Classes
|
|
50
|
+
.btn {
|
|
51
|
+
// border-color: var(--button-border-color);
|
|
52
|
+
// background-color: var(--button-background-color);
|
|
53
|
+
text-overflow: ellipsis;
|
|
54
|
+
white-space: nowrap;
|
|
55
|
+
@each $size, $value in $btn-config {
|
|
56
|
+
&-#{$size} {
|
|
57
|
+
@extend %icon-#{$size};
|
|
58
|
+
@each $prop-name, $prop-value in $value {
|
|
59
|
+
--button-#{$size}-#{$prop-name}: #{$prop-value};
|
|
60
|
+
#{$prop-name}: var(--button-#{$size}-#{$prop-name});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
// #### Generate Color Classes
|
|
67
|
+
|
|
68
|
+
@each $name, $item in $theme {
|
|
69
|
+
$name: '#{$name}';
|
|
70
|
+
|
|
71
|
+
.btn-#{$name} {
|
|
72
|
+
$light: if($name==light, var(--#{secondary}-#{600}), var(--button-font-color)); // var(--button-font-color); //
|
|
73
|
+
|
|
74
|
+
--button-background-color: var(--#{$name}-#{500}); // #{map.get($item, #{$btn-bg})};
|
|
75
|
+
--button-border-color: var(--#{$name}-#{500});
|
|
76
|
+
--button-hover-color: var(--button-hover-font-color);
|
|
77
|
+
--button-hover-background-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-hover-bg})};
|
|
78
|
+
--button-hover-border-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-hover-bg})};
|
|
79
|
+
--button-active-color: var(--button-active-font-color);
|
|
80
|
+
--button-active-background-color: rgba(var(--#{$name}-#{600}-rgb), 0.95); // #{map.get($item, #{$btn-active-bg})};
|
|
81
|
+
--button-active-border-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-active-bg})};
|
|
82
|
+
background-color: var(--button-background-color);
|
|
83
|
+
border-color: var(--button-border-color);
|
|
84
|
+
color: #{$light};
|
|
85
|
+
|
|
86
|
+
&:disabled {
|
|
87
|
+
&:not(.btn-ghost, .btn-outline) {
|
|
88
|
+
background-color: var(--button-border-color);
|
|
89
|
+
border-color: var(--button-border-color);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
&-outline, &-ghost {
|
|
94
|
+
--button-background-color: var(--#{$name}-#{500}); // #{map.get($item, #{$btn-bg})};
|
|
95
|
+
--button-border-color: var(--#{$name}-#{500});
|
|
96
|
+
--button-hover-color: var(--button-hover-font-color);
|
|
97
|
+
--button-hover-background-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-hover-bg})};
|
|
98
|
+
--button-hover-border-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-hover-bg})};
|
|
99
|
+
--button-active-color: var(--button-active-font-color);
|
|
100
|
+
--button-active-background-color: rgba(var(--#{$name}-#{600}-rgb), 0.95); // #{map.get($item, #{$btn-active-bg})};
|
|
101
|
+
--button-active-border-color: var(--#{$name}-#{600}); // #{map.get($item, #{$btn-active-bg})};
|
|
102
|
+
border-color: var(--button-border-color);
|
|
103
|
+
color: var(--button-background-color);
|
|
104
|
+
|
|
105
|
+
&:disabled {
|
|
106
|
+
// color: #{$light};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
&:hover {
|
|
110
|
+
background-color: var(--button-hover-background-color);
|
|
111
|
+
border-color: var(--button-hover-background-color);
|
|
112
|
+
color: if($name==light, var(--#{light}-#{900}), var(--button-font-color)); // var(--button-font-color);
|
|
113
|
+
// background-color: transparent;
|
|
114
|
+
@if ($name==light) {
|
|
115
|
+
background-color: var(--#{light}-#{200});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
&:focus {
|
|
120
|
+
// background-color: transparent;
|
|
121
|
+
// color: var(--light-500);
|
|
122
|
+
@if ($name==light) {
|
|
123
|
+
background-color: var(--#{light}-#{200});
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
&:active {
|
|
128
|
+
border-color: var(--button-active-background-color);
|
|
129
|
+
color: var(--button-font-color);
|
|
130
|
+
@if ($name==light) {
|
|
131
|
+
background-color: var(--#{light}-#{300});
|
|
132
|
+
} @else {
|
|
133
|
+
background-color: var(--button-active-background-color);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
&:focus {
|
|
139
|
+
// @extend :focus-visible;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
&-outline {
|
|
143
|
+
background-color: transparent;
|
|
144
|
+
border-style: solid;
|
|
145
|
+
border-width: 1px;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&-ghost {
|
|
149
|
+
background-color: transparent;
|
|
150
|
+
border-color: transparent !important;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// @each $key,$value in $item {
|
|
155
|
+
// .#{$name}-#{$key} {
|
|
156
|
+
// background-color: #{$value};
|
|
157
|
+
// }
|
|
158
|
+
// }
|
|
159
|
+
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
|
|
3
|
+
$default-color: 5;
|
|
4
|
+
$prefix: '';
|
|
5
|
+
$theme-colors: (
|
|
6
|
+
'cta': purple,
|
|
7
|
+
'success': green,
|
|
8
|
+
'warning': yellow,
|
|
9
|
+
'danger': red,
|
|
10
|
+
);
|
|
11
|
+
|
|
12
|
+
$theme: (
|
|
13
|
+
light: (
|
|
14
|
+
'1': rgba(255, 255, 255, 1%),
|
|
15
|
+
'2': rgba(255, 255, 255, 1%),
|
|
16
|
+
'3': rgba(255, 255, 255, 1%),
|
|
17
|
+
'4': rgba(255, 255, 255, 1%),
|
|
18
|
+
'5': rgba(255, 255, 255, 1%),
|
|
19
|
+
'6': rgba(255, 255, 255, 1%),
|
|
20
|
+
'7': rgba(255, 255, 255, 1%),
|
|
21
|
+
'8': rgba(255, 255, 255, 1%),
|
|
22
|
+
'9': rgba(255, 255, 255, 1%),
|
|
23
|
+
),
|
|
24
|
+
default: (
|
|
25
|
+
'1': #ddd7f7,
|
|
26
|
+
'2': #bcafef,
|
|
27
|
+
'3': #9a87e6,
|
|
28
|
+
'4': #795fde,
|
|
29
|
+
'5': #5737d6,
|
|
30
|
+
'6': #462cab,
|
|
31
|
+
'7': #342180,
|
|
32
|
+
'8': #231656,
|
|
33
|
+
'9': #110b2b,
|
|
34
|
+
),
|
|
35
|
+
primary: (
|
|
36
|
+
'1': #ddd7f7,
|
|
37
|
+
'2': #bcafef,
|
|
38
|
+
'3': #9a87e6,
|
|
39
|
+
'4': #795fde,
|
|
40
|
+
'5': #5737d6,
|
|
41
|
+
'6': #462cab,
|
|
42
|
+
'7': #342180,
|
|
43
|
+
'8': #231656,
|
|
44
|
+
'9': #110b2b,
|
|
45
|
+
),
|
|
46
|
+
secondary: (
|
|
47
|
+
'1': #e9fdf7,
|
|
48
|
+
'2': #d4fbee,
|
|
49
|
+
'3': #bef8e6,
|
|
50
|
+
'4': #a9f6dd,
|
|
51
|
+
'5': #93f4d5,
|
|
52
|
+
'6': #77d4b7,
|
|
53
|
+
'7': #5cb599,
|
|
54
|
+
'8': #40957a,
|
|
55
|
+
'9': #25765c,
|
|
56
|
+
),
|
|
57
|
+
neutral: (
|
|
58
|
+
'1': #eeedef,
|
|
59
|
+
'2': #dcdbe0,
|
|
60
|
+
'3': #cbcad0,
|
|
61
|
+
'4': #b9b8c1,
|
|
62
|
+
'5': #a8a6b1,
|
|
63
|
+
'6': #8b8993,
|
|
64
|
+
'7': #6e6c74,
|
|
65
|
+
'8': #515056,
|
|
66
|
+
'9': #343337,
|
|
67
|
+
),
|
|
68
|
+
info: (
|
|
69
|
+
'1': #e3f1fb,
|
|
70
|
+
'2': #c0e5f7,
|
|
71
|
+
'3': #88d1f1,
|
|
72
|
+
'4': #3cb5e6,
|
|
73
|
+
'5': #21a1d6,
|
|
74
|
+
'6': #1382b6,
|
|
75
|
+
'7': #116793,
|
|
76
|
+
'8': #12587a,
|
|
77
|
+
'9': #144a66,
|
|
78
|
+
),
|
|
79
|
+
danger: (
|
|
80
|
+
'1': #f9dede,
|
|
81
|
+
'2': #f4bcbd,
|
|
82
|
+
'3': #ee9b9d,
|
|
83
|
+
'4': #e9797c,
|
|
84
|
+
'5': #e3585b,
|
|
85
|
+
'6': #b94749,
|
|
86
|
+
'7': #8f3638,
|
|
87
|
+
'8': #642526,
|
|
88
|
+
'9': #3a1415,
|
|
89
|
+
),
|
|
90
|
+
error: (
|
|
91
|
+
'1': #f9dede,
|
|
92
|
+
'2': #f4bcbd,
|
|
93
|
+
'3': #ee9b9d,
|
|
94
|
+
'4': #e9797c,
|
|
95
|
+
'5': #e3585b,
|
|
96
|
+
'6': #b94749,
|
|
97
|
+
'7': #8f3638,
|
|
98
|
+
'8': #642526,
|
|
99
|
+
'9': #3a1415,
|
|
100
|
+
),
|
|
101
|
+
success: (
|
|
102
|
+
'1': #dbf1e2,
|
|
103
|
+
'2': #b7e2c6,
|
|
104
|
+
'3': #94d4a9,
|
|
105
|
+
'4': #70c58d,
|
|
106
|
+
'5': #4cb770,
|
|
107
|
+
'6': #3d925a,
|
|
108
|
+
'7': #2e6e43,
|
|
109
|
+
'8': #1e492d,
|
|
110
|
+
'9': #0f2516,
|
|
111
|
+
),
|
|
112
|
+
warning: (
|
|
113
|
+
'1': #faf3dc,
|
|
114
|
+
'2': #f6e8ba,
|
|
115
|
+
'3': #f1dc97,
|
|
116
|
+
'4': #edd175,
|
|
117
|
+
'5': #e8c552,
|
|
118
|
+
'6': #bda042,
|
|
119
|
+
'7': #927b32,
|
|
120
|
+
'8': #665722,
|
|
121
|
+
'9': #3b3212,
|
|
122
|
+
),
|
|
123
|
+
);
|
|
124
|
+
|
|
125
|
+
@function to-rgb($value) {
|
|
126
|
+
@return red($value), green($value), blue($value);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
@each $color, $item in $theme {
|
|
130
|
+
// add to theme colors
|
|
131
|
+
$color-list: (
|
|
132
|
+
$color: map.get($item, #{$default-color}),
|
|
133
|
+
);
|
|
134
|
+
$theme-colors: map.merge($theme-colors, $color-list);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// set variable
|
|
138
|
+
:root {
|
|
139
|
+
--bs-white-rgb: 255, 255, 255;
|
|
140
|
+
--bs-black-rgb: 0, 0, 0;
|
|
141
|
+
--bs-bg-opacity: 1;
|
|
142
|
+
--el-color-white: white;
|
|
143
|
+
--el-color-black: black;
|
|
144
|
+
@each $color, $item in $theme {
|
|
145
|
+
@each $key, $value in $item {
|
|
146
|
+
& {
|
|
147
|
+
// --#{$prefix}#{"#{$color}"}-#{$key}: #{$value};
|
|
148
|
+
--el-color-#{"#{$color}"}-light-#{$key}: #{$value};
|
|
149
|
+
@if $key== '5' {
|
|
150
|
+
--el-color-#{"#{$color}"}: #{$value};
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.#{$prefix}#{'#{$color}'}-#{$key} {
|
|
155
|
+
// color: #{$value};
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.#{$prefix}bg-#{'#{$color}'}-#{$key} {
|
|
159
|
+
// background-color: #{$value};
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
// .#{$name}-#{$key} {
|
|
163
|
+
// background-color: #{$value};
|
|
164
|
+
// }
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// Color Shade and Tint Generator
|
|
170
|
+
// :root {
|
|
171
|
+
// @mixin variations($name, $color) {
|
|
172
|
+
// $percentages: (80%, 60%, 40%, 20%, 0, -20%, -40%, -60%, -80%);
|
|
173
|
+
// @each $percentage in $percentages {
|
|
174
|
+
// $i: list.index($percentages, $percentage);
|
|
175
|
+
// $variation: $color;
|
|
176
|
+
// @if $percentage > 0 {
|
|
177
|
+
// $variation: color.mix(white, $color, $percentage);
|
|
178
|
+
// }
|
|
179
|
+
// @else if $percentage < 0 {
|
|
180
|
+
// $variation: color.mix(black, $color, $percentage * -1);
|
|
181
|
+
// }
|
|
182
|
+
// --bs-#{$name}-#{$i * 1}: #{$variation};
|
|
183
|
+
// }
|
|
184
|
+
// }
|
|
185
|
+
// @each $name, $value in $colors {
|
|
186
|
+
// @include variations($name, $value);
|
|
187
|
+
// }
|
|
188
|
+
// }
|