@ironsource/shared-ui 1.4.3 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_1_lang.css +1 -0
- package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterDropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/GroupOption.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IconButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Label.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Option.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Popover.vue_vue_type_style_index_0_lang.css +1 -1
- package/README.md +1 -1
- package/ScrollButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_1_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Typography.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/commonCssVariables.scss +623 -0
- package/components/ThemeWrapper/ThemeStrore.d.ts +4 -0
- package/components/ThemeWrapper/ThemeWrapper.vue.d.ts +15 -0
- package/components/appTrigger/AppTrigger.vue.js +4 -4
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +4 -3
- package/components/autocompleteDropdown/AutocompleteInput.vue.js +2 -2
- package/components/autocompleteDropdown/GroupOption.vue.js +2 -2
- package/components/button/common/ButtonBase.vue.d.ts +48 -0
- package/components/button/{ButtonBase.vue.js → common/ButtonBase.vue.js} +7 -7
- package/components/button/{Button.vue.d.ts → common/ButtonSuper.vue.d.ts} +3 -3
- package/components/button/{ButtonBase.vue.d.ts → v3/Button.vue.d.ts} +20 -4
- package/components/button/v3/Button.vue.js +102 -0
- package/components/button/{IconButton.vue.js → v3/IconButton.vue.js} +7 -7
- package/components/button/{ScrollButton.vue.js → v3/ScrollButton.vue.js} +6 -6
- package/components/button/v3/index.d.ts +79 -0
- package/components/button/v4/ButtonV4.vue.d.ts +57 -0
- package/components/button/v4/ButtonV4.vue.js +99 -0
- package/components/button/{index.d.ts → v4/index.d.ts} +33 -76
- package/components/button/v4/index.vue.js +6 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/index.d.ts +9 -9
- package/components/chip/{Chip.vue.js → v3/Chip.vue.js} +5 -5
- package/components/chip/v4/ChipV4.vue.d.ts +48 -0
- package/components/chip/v4/ChipV4.vue.js +76 -0
- package/components/chip/v4/index.d.ts +63 -0
- package/components/chip/v4/index.vue.js +6 -0
- package/components/dateRange/CalendarMonth.vue.js +3 -3
- package/components/dateRange/DateRange.vue.js +4 -4
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +8 -7
- package/components/dialog/index.d.ts +11 -11
- package/components/dropdown/common/Dropdown.common.d.ts +36 -0
- package/components/dropdown/common/Dropdown.common.vue.js +456 -0
- package/components/dropdown/{Label.vue.js → common/Label.vue.js} +5 -5
- package/components/dropdown/{Option.vue.js → common/Option.vue.js} +7 -7
- package/components/dropdown/{SearchInput.vue.js → common/SearchInput.vue.js} +8 -7
- package/components/dropdown/{Dropdown.vue.d.ts → v3/Dropdown.vue.d.ts} +15 -5
- package/components/dropdown/v3/Dropdown.vue.js +391 -0
- package/components/dropdown/{index.d.ts → v3/index.d.ts} +42 -20
- package/components/dropdown/v3/index.vue.js +12 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +223 -0
- package/components/dropdown/v4/DropdownV4.vue.js +408 -0
- package/components/dropdown/v4/index.d.ts +433 -0
- package/components/dropdown/v4/index.vue.js +6 -0
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +4 -4
- package/components/emptyState/index.d.ts +11 -11
- package/components/filterDropdown/AddFilterButton.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue.js +5 -4
- package/components/filtersPanel/Filter.d.ts +1 -1
- package/components/filtersPanel/FilterSearchInput.vue.js +6 -6
- package/components/floatingToolbar/FloatingToolbar.vue.js +6 -5
- package/components/includeExclude/IncludeExclude.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExclude.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +2 -2
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +4 -4
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +1 -1
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +4 -4
- package/components/includeExclude/index.d.ts +22 -22
- package/components/input/Input.vue.d.ts +2 -2
- package/components/input/Input.vue.js +4 -4
- package/components/input/index.d.ts +16 -16
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +5 -5
- package/components/search/common/Search.common.d.ts +9 -0
- package/components/search/common/Search.common.vue.js +52 -0
- package/components/search/{Search.vue.js → v3/Search.vue.js} +19 -46
- package/components/search/{index.d.ts → v3/index.d.ts} +3 -3
- package/components/search/v4/SearchV4.vue.d.ts +51 -0
- package/components/search/v4/SearchV4.vue.js +70 -0
- package/components/search/v4/index.d.ts +72 -0
- package/components/search/v4/index.vue.js +6 -0
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +6 -5
- package/components/switch/{Switch.vue.js → v3/Switch.vue.js} +5 -5
- package/components/switch/v4/SwitchV4.vue.d.ts +37 -0
- package/components/switch/v4/SwitchV4.vue.js +87 -0
- package/components/switch/v4/index.d.ts +46 -0
- package/components/switch/v4/index.vue.js +6 -0
- package/components/table/Table.vue.js +3 -3
- package/components/table-cells/Editable.vue.js +1 -1
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/typography/index.d.ts +9 -9
- package/components/typography/v4/Typography.vue.d.ts +34 -0
- package/components/typography/v4/Typography.vue.js +68 -0
- package/components/typography/v4/index.d.ts +23 -0
- package/components/typography/v4/index.vue.js +6 -0
- package/design-foundation.stories/border-radius/BorderRadiusData.d.ts +5 -0
- package/design-foundation.stories/border-radius/BorderRadiusWrapper.vue.d.ts +4 -0
- package/design-foundation.stories/border-radius/index.d.ts +1 -0
- package/design-foundation.stories/colors/ColorsData.d.ts +114 -0
- package/design-foundation.stories/colors/ColorsStoryWrapper.vue.d.ts +3 -0
- package/design-foundation.stories/colors/index.d.ts +1 -0
- package/design-foundation.stories/elevations/ElevationStoryWrapper.vue.d.ts +4 -0
- package/design-foundation.stories/elevations/ElevationsData.d.ts +10 -0
- package/design-foundation.stories/elevations/index.d.ts +1 -0
- package/design-foundation.stories/typography/TypographyData.d.ts +7 -0
- package/design-foundation.stories/typography/TypographyStoryWrapper.vue.d.ts +3 -0
- package/design-foundation.stories/typography/index.d.ts +1 -0
- package/index.d.ts +1532 -5
- package/index.vue.js +28 -16
- package/package.json +39 -14
- package/styleguide.scss +77 -78
- package/styles/v4/border-radius.css +8 -0
- package/styles/v4/colors.css +100 -0
- package/styles/v4/elevations.css +10 -0
- package/styles/v4/fonts.css +1 -0
- package/styles/v4/fonts.css.map +1 -0
- package/styles/v4/fonts.scss +258 -0
- package/components/button/Button.vue.js +0 -65
- package/components/dropdown/Dropdown.vue.js +0 -785
- package/components/dropdown/index.vue.js +0 -12
- /package/components/button/{IconButton.vue.d.ts → v3/IconButton.vue.d.ts} +0 -0
- /package/components/button/{ScrollButton.vue.d.ts → v3/ScrollButton.vue.d.ts} +0 -0
- /package/components/button/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/chip/{Chip.vue.d.ts → v3/Chip.vue.d.ts} +0 -0
- /package/components/chip/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/chip/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/dropdown/{DropdownContext.d.ts → common/DropdownContext.d.ts} +0 -0
- /package/components/dropdown/{DropdownContext.vue.js → common/DropdownContext.vue.js} +0 -0
- /package/components/dropdown/{Label.vue.d.ts → common/Label.vue.d.ts} +0 -0
- /package/components/dropdown/{Option.vue.d.ts → common/Option.vue.d.ts} +0 -0
- /package/components/dropdown/{SearchInput.vue.d.ts → common/SearchInput.vue.d.ts} +0 -0
- /package/components/search/{Search.vue.d.ts → v3/Search.vue.d.ts} +0 -0
- /package/components/search/{index.vue.js → v3/index.vue.js} +0 -0
- /package/components/switch/{Switch.vue.d.ts → v3/Switch.vue.d.ts} +0 -0
- /package/components/switch/{index.d.ts → v3/index.d.ts} +0 -0
- /package/components/switch/{index.vue.js → v3/index.vue.js} +0 -0
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Style v4 Typography
|
|
3
|
+
* -----------------------------------------------------------------------------
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');
|
|
7
|
+
|
|
8
|
+
// font-family
|
|
9
|
+
$inter: 'Inter', sans-serif;
|
|
10
|
+
|
|
11
|
+
%font-bold {
|
|
12
|
+
font-family: $inter;
|
|
13
|
+
font-weight: 700;
|
|
14
|
+
}
|
|
15
|
+
%font-semibold {
|
|
16
|
+
font-family: $inter;
|
|
17
|
+
font-weight: 600;
|
|
18
|
+
}
|
|
19
|
+
%font-medium {
|
|
20
|
+
font-family: $inter;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
}
|
|
23
|
+
%font-regular {
|
|
24
|
+
font-family: $inter;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
// region heading
|
|
29
|
+
%font-title {
|
|
30
|
+
font-size: 2.5rem;
|
|
31
|
+
line-height: 3rem;
|
|
32
|
+
letter-spacing: -0.055rem;
|
|
33
|
+
@extend %font-semibold;
|
|
34
|
+
}
|
|
35
|
+
%font-heading-1 {
|
|
36
|
+
font-size: 1.5rem;
|
|
37
|
+
line-height: 1.75rem;
|
|
38
|
+
letter-spacing: -0.0285rem;
|
|
39
|
+
@extend %font-semibold;
|
|
40
|
+
}
|
|
41
|
+
%font-heading-2 {
|
|
42
|
+
font-size: 1.125rem;
|
|
43
|
+
line-height: 1.75rem;
|
|
44
|
+
letter-spacing: -0.01575rem;
|
|
45
|
+
@extend %font-semibold;
|
|
46
|
+
}
|
|
47
|
+
%font-heading-3 {
|
|
48
|
+
font-size: 1rem;
|
|
49
|
+
line-height: 1.5rem;
|
|
50
|
+
letter-spacing: -0.011rem;
|
|
51
|
+
@extend %font-semibold;
|
|
52
|
+
}
|
|
53
|
+
%font-heading-4 {
|
|
54
|
+
font-size: 0.875rem;
|
|
55
|
+
line-height: 1rem;
|
|
56
|
+
letter-spacing: unset;
|
|
57
|
+
@extend %font-semibold;
|
|
58
|
+
}
|
|
59
|
+
%font-heading-5 {
|
|
60
|
+
font-size: 0.8125rem;
|
|
61
|
+
line-height: 16px;
|
|
62
|
+
letter-spacing: unset;
|
|
63
|
+
@extend %font-semibold;
|
|
64
|
+
}
|
|
65
|
+
%font-heading-6 {
|
|
66
|
+
font-size: 0.75rem;
|
|
67
|
+
line-height: 0.75rem;
|
|
68
|
+
letter-spacing: 0;
|
|
69
|
+
@extend %font-semibold;
|
|
70
|
+
}
|
|
71
|
+
// endregion
|
|
72
|
+
|
|
73
|
+
// region body
|
|
74
|
+
%font-body-1 {
|
|
75
|
+
font-size: 0.875rem;
|
|
76
|
+
line-height: 1.25rem;
|
|
77
|
+
letter-spacing: -0.00525rem;
|
|
78
|
+
@extend %font-regular;
|
|
79
|
+
}
|
|
80
|
+
%font-body-2 {
|
|
81
|
+
font-size: 0.8125rem;
|
|
82
|
+
line-height: 1.25rem;
|
|
83
|
+
letter-spacing: -0.00244rem;
|
|
84
|
+
@extend %font-regular;
|
|
85
|
+
}
|
|
86
|
+
// endregion
|
|
87
|
+
|
|
88
|
+
// region subtitle
|
|
89
|
+
%font-subtitle-1 {
|
|
90
|
+
font-size: 0.875rem;
|
|
91
|
+
line-height: 1.25rem;
|
|
92
|
+
letter-spacing: -0.00525rem;
|
|
93
|
+
@extend %font-medium;
|
|
94
|
+
}
|
|
95
|
+
%font-subtitle-2 {
|
|
96
|
+
font-size: 0.8125rem;
|
|
97
|
+
line-height: 1.25rem;
|
|
98
|
+
letter-spacing: -0.00244rem;
|
|
99
|
+
@extend %font-medium;
|
|
100
|
+
}
|
|
101
|
+
// endregion
|
|
102
|
+
|
|
103
|
+
// region chart
|
|
104
|
+
%font-chart-1 {
|
|
105
|
+
font-size: 1.5rem;
|
|
106
|
+
line-height: 1.5rem;
|
|
107
|
+
letter-spacing: -0.015rem;
|
|
108
|
+
@extend %font-bold;
|
|
109
|
+
}
|
|
110
|
+
%font-chart-2 {
|
|
111
|
+
font-size: 1.25rem;
|
|
112
|
+
line-height: 1.25rem;
|
|
113
|
+
letter-spacing: -0.0125rem;
|
|
114
|
+
@extend %font-bold;
|
|
115
|
+
}
|
|
116
|
+
// endregion
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
// region other
|
|
120
|
+
%font-button {
|
|
121
|
+
font-size: 0.875rem;
|
|
122
|
+
line-height: 1.25rem;
|
|
123
|
+
letter-spacing: 0.00875rem;
|
|
124
|
+
@extend %font-semibold;
|
|
125
|
+
}
|
|
126
|
+
%font-overline {
|
|
127
|
+
font-size: 0.75rem;
|
|
128
|
+
line-height: 1rem;
|
|
129
|
+
letter-spacing: 0.045rem;
|
|
130
|
+
text-transform: uppercase;
|
|
131
|
+
@extend %font-medium;
|
|
132
|
+
}
|
|
133
|
+
%font-caption {
|
|
134
|
+
font-size: 0.75rem;
|
|
135
|
+
line-height: 1rem;
|
|
136
|
+
@extend %font-regular;
|
|
137
|
+
}
|
|
138
|
+
%font-table-label {
|
|
139
|
+
font-size: 0.8125rem;
|
|
140
|
+
line-height: 1.25rem;
|
|
141
|
+
letter-spacing: 0.00813rem;
|
|
142
|
+
@extend %font-semibold;
|
|
143
|
+
}
|
|
144
|
+
%font-input-label {
|
|
145
|
+
font-size: 0.8125rem;
|
|
146
|
+
line-height: 1rem;
|
|
147
|
+
letter-spacing: 0.00813rem;
|
|
148
|
+
@extend %font-medium;
|
|
149
|
+
}
|
|
150
|
+
%font-tab-label1 {
|
|
151
|
+
font-size: 0.875rem;
|
|
152
|
+
line-height: 1rem;
|
|
153
|
+
@extend %font-medium;
|
|
154
|
+
}
|
|
155
|
+
%font-tab-label2 {
|
|
156
|
+
font-size: 0.875rem;
|
|
157
|
+
line-height: 1rem;
|
|
158
|
+
@extend %font-bold;
|
|
159
|
+
}
|
|
160
|
+
%font-chip-label {
|
|
161
|
+
font-size: 0.75rem;
|
|
162
|
+
line-height: 1rem;
|
|
163
|
+
@extend %font-semibold;
|
|
164
|
+
}
|
|
165
|
+
// endregion
|
|
166
|
+
|
|
167
|
+
h1,
|
|
168
|
+
h2,
|
|
169
|
+
h3,
|
|
170
|
+
h4,
|
|
171
|
+
h5,
|
|
172
|
+
h6 {
|
|
173
|
+
margin: 0;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.font-title {
|
|
177
|
+
@extend %font-title;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.font-heading-1 {
|
|
181
|
+
@extend %font-heading-1;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.font-heading-2 {
|
|
185
|
+
@extend %font-heading-2;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.font-heading-3 {
|
|
189
|
+
@extend %font-heading-3;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.font-heading-4 {
|
|
193
|
+
@extend %font-heading-4;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
.font-heading-5 {
|
|
197
|
+
@extend %font-heading-5;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
.font-heading-6 {
|
|
201
|
+
@extend %font-heading-6;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
.font-body-1 {
|
|
205
|
+
@extend %font-body-1;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.font-body-2 {
|
|
209
|
+
@extend %font-body-2;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.font-subtitle-1 {
|
|
213
|
+
@extend %font-subtitle-1;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.font-subtitle-2 {
|
|
217
|
+
@extend %font-subtitle-2;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
.font-chart-1 {
|
|
221
|
+
@extend %font-chart-1;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.font-chart-2 {
|
|
225
|
+
@extend %font-chart-2;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
.font-button {
|
|
229
|
+
@extend %font-button;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.font-overline {
|
|
233
|
+
@extend %font-overline;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
.font-caption {
|
|
237
|
+
@extend %font-caption;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.font-table-label {
|
|
241
|
+
@extend %font-table-label;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
.font-input-label {
|
|
245
|
+
@extend %font-input-label;
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.font-tab-label1 {
|
|
249
|
+
@extend %font-tab-label1;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
.font-tab-label2 {
|
|
253
|
+
@extend %font-tab-label2;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
.font-chip-label {
|
|
257
|
+
@extend %font-chip-label;
|
|
258
|
+
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { defineComponent, computed, openBlock, createBlock, mergeProps, createSlots, withCtx, createElementVNode, normalizeClass, unref, createCommentVNode, renderSlot } from 'vue';
|
|
2
|
-
import Icon from '../icon/Icon.vue.js';
|
|
3
|
-
import ButtonBase from './ButtonBase.vue.js';
|
|
4
|
-
import { iconSizeMap } from './consts.vue.js';
|
|
5
|
-
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
|
-
|
|
7
|
-
import "../../Button.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
9
|
-
__name: "Button",
|
|
10
|
-
props: {
|
|
11
|
-
leftIconName: { default: null },
|
|
12
|
-
rightIconName: { default: null },
|
|
13
|
-
size: { default: "md" },
|
|
14
|
-
testId: { default: "" }
|
|
15
|
-
},
|
|
16
|
-
setup(__props) {
|
|
17
|
-
const props = __props;
|
|
18
|
-
const computedIconWidth = computed(() => `${iconSizeMap[props.size]}px`);
|
|
19
|
-
return (_ctx, _cache) => {
|
|
20
|
-
return openBlock(), createBlock(ButtonBase, mergeProps({
|
|
21
|
-
class: [
|
|
22
|
-
__props.size,
|
|
23
|
-
{
|
|
24
|
-
"with-left-icon": !!__props.leftIconName,
|
|
25
|
-
"with-right-icon": !!__props.rightIconName
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
size: __props.size,
|
|
29
|
-
"data-testid": props.testId
|
|
30
|
-
}, _ctx.$attrs), createSlots({
|
|
31
|
-
default: withCtx(() => [
|
|
32
|
-
createElementVNode("div", {
|
|
33
|
-
class: normalizeClass({
|
|
34
|
-
flex: __props.leftIconName || __props.rightIconName
|
|
35
|
-
})
|
|
36
|
-
}, [
|
|
37
|
-
__props.leftIconName ? (openBlock(), createBlock(unref(Icon), {
|
|
38
|
-
key: 0,
|
|
39
|
-
name: __props.leftIconName,
|
|
40
|
-
"font-size": unref(computedIconWidth)
|
|
41
|
-
}, null, 8, ["name", "font-size"])) : createCommentVNode("", true),
|
|
42
|
-
renderSlot(_ctx.$slots, "default", {}, void 0, true),
|
|
43
|
-
__props.rightIconName ? (openBlock(), createBlock(unref(Icon), {
|
|
44
|
-
key: 1,
|
|
45
|
-
name: __props.rightIconName,
|
|
46
|
-
"font-size": unref(computedIconWidth)
|
|
47
|
-
}, null, 8, ["name", "font-size"])) : createCommentVNode("", true)
|
|
48
|
-
], 2)
|
|
49
|
-
]),
|
|
50
|
-
_: 2
|
|
51
|
-
}, [
|
|
52
|
-
_ctx.$slots.loader ? {
|
|
53
|
-
name: "loader",
|
|
54
|
-
fn: withCtx(() => [
|
|
55
|
-
renderSlot(_ctx.$slots, "loader", {}, void 0, true)
|
|
56
|
-
]),
|
|
57
|
-
key: "0"
|
|
58
|
-
} : void 0
|
|
59
|
-
]), 1040, ["class", "size", "data-testid"]);
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
var Button = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-195cffac"]]);
|
|
64
|
-
|
|
65
|
-
export { Button as default };
|