@douyinfe/semi-foundation 2.61.0 → 2.62.0-beta.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/button/button.scss +5 -0
- package/button/constants.ts +1 -1
- package/cascader/constants.ts +1 -1
- package/cascader/foundation.ts +8 -0
- package/codeHighlight/codeHighlight.scss +203 -0
- package/codeHighlight/constants.ts +15 -0
- package/codeHighlight/index.ts +45 -0
- package/codeHighlight/variables.scss +0 -0
- package/lib/cjs/anchor/constants.js +3 -5
- package/lib/cjs/anchor/foundation.js +1 -1
- package/lib/cjs/anchor/linkFoundation.js +1 -1
- package/lib/cjs/autoComplete/constants.js +3 -5
- package/lib/cjs/autoComplete/foundation.js +2 -4
- package/lib/cjs/autoComplete/optionFoundation.js +1 -1
- package/lib/cjs/avatar/constants.js +3 -5
- package/lib/cjs/avatar/foundation.js +1 -1
- package/lib/cjs/backtop/constants.js +2 -4
- package/lib/cjs/backtop/foundation.js +1 -1
- package/lib/cjs/badge/constants.js +3 -6
- package/lib/cjs/banner/constants.js +3 -5
- package/lib/cjs/banner/foundation.js +1 -1
- package/lib/cjs/base/constants.js +2 -3
- package/lib/cjs/base/env.js +1 -2
- package/lib/cjs/base/foundation.js +2 -3
- package/lib/cjs/base/index.js +3 -4
- package/lib/cjs/breadcrumb/constants.js +3 -5
- package/lib/cjs/breadcrumb/foundation.js +1 -1
- package/lib/cjs/breadcrumb/itemFoundation.js +1 -1
- package/lib/cjs/button/button.css +4 -0
- package/lib/cjs/button/button.scss +5 -0
- package/lib/cjs/button/constants.d.ts +1 -1
- package/lib/cjs/button/constants.js +4 -7
- package/lib/cjs/calendar/constants.js +3 -5
- package/lib/cjs/calendar/foundation.js +1 -1
- package/lib/cjs/card/constants.js +3 -5
- package/lib/cjs/carousel/constants.js +4 -7
- package/lib/cjs/carousel/foundation.js +2 -3
- package/lib/cjs/cascader/constants.js +4 -8
- package/lib/cjs/cascader/foundation.d.ts +1 -0
- package/lib/cjs/cascader/foundation.js +8 -3
- package/lib/cjs/cascader/util.js +1 -1
- package/lib/cjs/checkbox/checkboxFoundation.js +2 -3
- package/lib/cjs/checkbox/checkboxGroupFoundation.js +2 -3
- package/lib/cjs/checkbox/constants.js +4 -8
- package/lib/cjs/codeHighlight/codeHighlight.css +160 -0
- package/lib/cjs/codeHighlight/codeHighlight.scss +203 -0
- package/lib/cjs/codeHighlight/constants.d.ts +6 -0
- package/lib/cjs/codeHighlight/constants.js +12 -0
- package/lib/cjs/codeHighlight/index.d.ts +16 -0
- package/lib/cjs/codeHighlight/index.js +30 -0
- package/lib/cjs/codeHighlight/variables.scss +0 -0
- package/lib/cjs/collapse/constants.js +3 -5
- package/lib/cjs/collapse/foundation.js +1 -2
- package/lib/cjs/collapsible/constants.js +2 -3
- package/lib/cjs/collapsible/foundation.js +2 -3
- package/lib/cjs/datePicker/_utils/getDayOfWeek.js +1 -2
- package/lib/cjs/datePicker/_utils/getDefaultFormatToken.js +1 -2
- package/lib/cjs/datePicker/_utils/getDefaultPickerDate.js +1 -1
- package/lib/cjs/datePicker/_utils/getFullDateOffset.js +2 -3
- package/lib/cjs/datePicker/_utils/getMonthTable.js +1 -2
- package/lib/cjs/datePicker/_utils/getMonthsInYear.js +1 -2
- package/lib/cjs/datePicker/_utils/getYears.js +1 -2
- package/lib/cjs/datePicker/_utils/index.js +1 -1
- package/lib/cjs/datePicker/_utils/isAfter.js +1 -1
- package/lib/cjs/datePicker/_utils/isBefore.js +1 -1
- package/lib/cjs/datePicker/_utils/isBetween.js +1 -1
- package/lib/cjs/datePicker/_utils/isSameDay.js +1 -1
- package/lib/cjs/datePicker/_utils/isTimestamp.js +1 -1
- package/lib/cjs/datePicker/_utils/isUnixTimestamp.js +1 -1
- package/lib/cjs/datePicker/_utils/isWithinInterval.js +1 -1
- package/lib/cjs/datePicker/constants.js +4 -7
- package/lib/cjs/datePicker/foundation.js +1 -1
- package/lib/cjs/datePicker/inputFoundation.js +1 -1
- package/lib/cjs/datePicker/monthFoundation.js +1 -1
- package/lib/cjs/datePicker/monthsGridFoundation.js +1 -1
- package/lib/cjs/datePicker/yearAndMonthFoundation.js +1 -1
- package/lib/cjs/descriptions/constants.js +3 -6
- package/lib/cjs/descriptions/foundation.js +1 -1
- package/lib/cjs/divider/constants.js +3 -5
- package/lib/cjs/dropdown/constants.js +4 -7
- package/lib/cjs/dropdown/foundation.js +1 -1
- package/lib/cjs/dropdown/menuFoundation.js +1 -2
- package/lib/cjs/empty/constants.js +3 -5
- package/lib/cjs/form/constants.js +3 -6
- package/lib/cjs/form/foundation.js +3 -4
- package/lib/cjs/form/utils.js +1 -1
- package/lib/cjs/grid/constants.js +2 -3
- package/lib/cjs/highlight/constants.js +2 -3
- package/lib/cjs/icons/constants.js +3 -6
- package/lib/cjs/image/constants.js +3 -5
- package/lib/cjs/image/imageFoundation.js +1 -1
- package/lib/cjs/image/previewFooterFoundation.js +1 -1
- package/lib/cjs/image/previewFoundation.js +1 -1
- package/lib/cjs/image/previewImageFoundation.js +1 -1
- package/lib/cjs/image/previewInnerFoundation.d.ts +1 -1
- package/lib/cjs/image/previewInnerFoundation.js +1 -1
- package/lib/cjs/input/constants.js +3 -6
- package/lib/cjs/input/foundation.js +2 -4
- package/lib/cjs/input/textareaFoundation.js +1 -1
- package/lib/cjs/input/util/getSizingData.js +2 -3
- package/lib/cjs/inputNumber/constants.js +3 -6
- package/lib/cjs/inputNumber/foundation.js +2 -5
- package/lib/cjs/layout/constants.js +3 -5
- package/lib/cjs/list/constants.js +3 -5
- package/lib/cjs/lottie/constants.d.ts +6 -0
- package/lib/cjs/lottie/constants.js +12 -0
- package/lib/cjs/lottie/foundation.d.ts +25 -0
- package/lib/cjs/lottie/foundation.js +36 -0
- package/lib/cjs/markdownRender/constants.d.ts +5 -0
- package/lib/cjs/markdownRender/constants.js +11 -0
- package/lib/cjs/markdownRender/foundation.d.ts +20 -0
- package/lib/cjs/markdownRender/foundation.js +64 -0
- package/lib/cjs/markdownRender/markdownRender.css +46 -0
- package/lib/cjs/markdownRender/markdownRender.scss +63 -0
- package/lib/cjs/markdownRender/variables.scss +24 -0
- package/lib/cjs/modal/constants.js +3 -5
- package/lib/cjs/modal/modalContentFoundation.js +1 -1
- package/lib/cjs/modal/modalFoundation.js +1 -1
- package/lib/cjs/navigation/NavItem.js +1 -2
- package/lib/cjs/navigation/constants.js +4 -7
- package/lib/cjs/navigation/foundation.js +1 -1
- package/lib/cjs/navigation/itemFoundation.js +1 -1
- package/lib/cjs/navigation/subNavFoundation.js +1 -2
- package/lib/cjs/notification/constants.js +4 -7
- package/lib/cjs/notification/notificationFoundation.js +1 -2
- package/lib/cjs/notification/notificationListFoundation.js +1 -3
- package/lib/cjs/overflowList/constants.js +4 -7
- package/lib/cjs/overflowList/foundation.js +2 -3
- package/lib/cjs/pagination/constants.js +4 -7
- package/lib/cjs/pagination/foundation.js +2 -4
- package/lib/cjs/pincode/constants.d.ts +6 -0
- package/lib/cjs/pincode/constants.js +12 -0
- package/lib/cjs/pincode/foundation.d.ts +33 -0
- package/lib/cjs/pincode/foundation.js +122 -0
- package/lib/cjs/pincode/pincode.css +31 -0
- package/lib/cjs/pincode/pincode.scss +41 -0
- package/lib/cjs/pincode/variables.scss +7 -0
- package/lib/cjs/popconfirm/constants.js +4 -7
- package/lib/cjs/popconfirm/popconfirmFoundation.js +1 -1
- package/lib/cjs/popover/constants.js +4 -7
- package/lib/cjs/progress/constants.js +2 -4
- package/lib/cjs/radio/constants.js +4 -8
- package/lib/cjs/radio/radioFoundation.js +1 -1
- package/lib/cjs/radio/radioGroupFoundation.js +1 -1
- package/lib/cjs/radio/radioInnerFoundation.js +1 -1
- package/lib/cjs/rating/constants.js +3 -5
- package/lib/cjs/rating/foundation.js +1 -1
- package/lib/cjs/scrollList/constants.js +4 -7
- package/lib/cjs/scrollList/foundation.js +1 -1
- package/lib/cjs/scrollList/itemFoundation.js +1 -1
- package/lib/cjs/scrollList/scrollTo.js +1 -2
- package/lib/cjs/select/constants.js +4 -7
- package/lib/cjs/select/foundation.js +10 -9
- package/lib/cjs/select/optionFoundation.js +1 -1
- package/lib/cjs/sideSheet/constants.js +3 -5
- package/lib/cjs/sideSheet/sideSheetFoundation.js +1 -1
- package/lib/cjs/skeleton/constants.js +2 -4
- package/lib/cjs/slider/constants.js +3 -5
- package/lib/cjs/slider/foundation.js +1 -1
- package/lib/cjs/space/constants.js +3 -5
- package/lib/cjs/spin/constants.js +3 -6
- package/lib/cjs/spin/foundation.js +2 -3
- package/lib/cjs/steps/constants.js +2 -3
- package/lib/cjs/switch/constants.js +3 -5
- package/lib/cjs/switch/foundation.js +1 -1
- package/lib/cjs/table/bodyFoundation.js +1 -1
- package/lib/cjs/table/cellFoundation.js +1 -1
- package/lib/cjs/table/constants.js +4 -7
- package/lib/cjs/table/foundation.js +2 -3
- package/lib/cjs/table/tableRowFoundation.js +1 -1
- package/lib/cjs/table/tableSelectionCellFoundation.js +1 -1
- package/lib/cjs/table/utils.js +1 -1
- package/lib/cjs/tabs/constants.js +4 -7
- package/lib/cjs/tabs/foundation.js +2 -3
- package/lib/cjs/tag/constants.js +3 -5
- package/lib/cjs/tagInput/constants.js +3 -5
- package/lib/cjs/tagInput/foundation.js +2 -3
- package/lib/cjs/tagInput/utils/getSplitedArray.js +2 -3
- package/lib/cjs/timePicker/ComboxFoundation.js +2 -3
- package/lib/cjs/timePicker/constants.js +3 -6
- package/lib/cjs/timePicker/foundation.js +2 -3
- package/lib/cjs/timePicker/inputFoundation.js +2 -3
- package/lib/cjs/timePicker/utils/index.js +1 -1
- package/lib/cjs/timeline/constants.js +3 -5
- package/lib/cjs/toast/constants.js +4 -7
- package/lib/cjs/toast/toastFoundation.js +1 -2
- package/lib/cjs/toast/toastListFoundation.js +1 -2
- package/lib/cjs/tooltip/constants.js +4 -7
- package/lib/cjs/tooltip/foundation.js +1 -6
- package/lib/cjs/transfer/constants.js +3 -6
- package/lib/cjs/transfer/foundation.js +1 -1
- package/lib/cjs/transfer/transferUtils.js +1 -1
- package/lib/cjs/tree/constants.js +3 -6
- package/lib/cjs/tree/foundation.js +1 -1
- package/lib/cjs/tree/treeUtil.js +1 -1
- package/lib/cjs/treeSelect/constants.js +3 -6
- package/lib/cjs/treeSelect/foundation.d.ts +1 -0
- package/lib/cjs/treeSelect/foundation.js +8 -1
- package/lib/cjs/typography/constants.js +3 -5
- package/lib/cjs/upload/constants.js +4 -7
- package/lib/cjs/upload/fileCardFoundation.js +2 -3
- package/lib/cjs/upload/foundation.js +2 -3
- package/lib/cjs/upload/utils.js +2 -4
- package/lib/cjs/utils/Event.js +1 -1
- package/lib/cjs/utils/FocusHandle.js +2 -4
- package/lib/cjs/utils/Logger.js +1 -2
- package/lib/cjs/utils/Store.js +1 -2
- package/lib/cjs/utils/a11y.js +1 -1
- package/lib/cjs/utils/classnames.js +1 -1
- package/lib/cjs/utils/date-fns-extra.js +1 -2
- package/lib/cjs/utils/dom.js +1 -1
- package/lib/cjs/utils/getHighlight.js +1 -1
- package/lib/cjs/utils/getMotionObjFromProps.js +1 -1
- package/lib/cjs/utils/isBothNaN.js +1 -2
- package/lib/cjs/utils/isEnterPress.js +2 -3
- package/lib/cjs/utils/isEscPress.js +2 -3
- package/lib/cjs/utils/isPromise.js +1 -1
- package/lib/cjs/utils/keyCode.js +4 -8
- package/lib/cjs/utils/log.js +2 -3
- package/lib/cjs/utils/object.js +1 -1
- package/lib/cjs/utils/set.js +1 -1
- package/lib/cjs/utils/touchPolyfill.js +2 -3
- package/lib/es/autoComplete/foundation.js +0 -1
- package/lib/es/button/button.css +4 -0
- package/lib/es/button/button.scss +5 -0
- package/lib/es/button/constants.d.ts +1 -1
- package/lib/es/button/constants.js +1 -1
- package/lib/es/cascader/foundation.d.ts +1 -0
- package/lib/es/cascader/foundation.js +7 -2
- package/lib/es/codeHighlight/codeHighlight.css +160 -0
- package/lib/es/codeHighlight/codeHighlight.scss +203 -0
- package/lib/es/codeHighlight/constants.d.ts +6 -0
- package/lib/es/codeHighlight/constants.js +7 -0
- package/lib/es/codeHighlight/index.d.ts +16 -0
- package/lib/es/codeHighlight/index.js +23 -0
- package/lib/es/codeHighlight/variables.scss +0 -0
- package/lib/es/collapse/foundation.js +0 -1
- package/lib/es/dropdown/menuFoundation.js +0 -1
- package/lib/es/form/foundation.js +0 -1
- package/lib/es/image/previewInnerFoundation.d.ts +1 -1
- package/lib/es/input/foundation.js +0 -1
- package/lib/es/inputNumber/foundation.js +0 -2
- package/lib/es/lottie/constants.d.ts +6 -0
- package/lib/es/lottie/constants.js +7 -0
- package/lib/es/lottie/foundation.d.ts +25 -0
- package/lib/es/lottie/foundation.js +29 -0
- package/lib/es/markdownRender/constants.d.ts +5 -0
- package/lib/es/markdownRender/constants.js +6 -0
- package/lib/es/markdownRender/foundation.d.ts +20 -0
- package/lib/es/markdownRender/foundation.js +57 -0
- package/lib/es/markdownRender/markdownRender.css +46 -0
- package/lib/es/markdownRender/markdownRender.scss +63 -0
- package/lib/es/markdownRender/variables.scss +24 -0
- package/lib/es/navigation/constants.js +0 -1
- package/lib/es/navigation/subNavFoundation.js +0 -1
- package/lib/es/notification/constants.js +0 -1
- package/lib/es/notification/notificationFoundation.js +0 -1
- package/lib/es/notification/notificationListFoundation.js +0 -2
- package/lib/es/pagination/foundation.js +0 -1
- package/lib/es/pincode/constants.d.ts +6 -0
- package/lib/es/pincode/constants.js +7 -0
- package/lib/es/pincode/foundation.d.ts +33 -0
- package/lib/es/pincode/foundation.js +115 -0
- package/lib/es/pincode/pincode.css +31 -0
- package/lib/es/pincode/pincode.scss +41 -0
- package/lib/es/pincode/variables.scss +7 -0
- package/lib/es/select/foundation.js +7 -6
- package/lib/es/tabs/foundation.js +0 -1
- package/lib/es/toast/constants.js +0 -1
- package/lib/es/toast/toastFoundation.js +0 -1
- package/lib/es/toast/toastListFoundation.js +0 -1
- package/lib/es/tooltip/foundation.js +0 -5
- package/lib/es/treeSelect/foundation.d.ts +1 -0
- package/lib/es/treeSelect/foundation.js +7 -0
- package/lib/es/utils/FocusHandle.js +0 -1
- package/lottie/constants.ts +17 -0
- package/lottie/foundation.ts +60 -0
- package/markdownRender/constants.ts +11 -0
- package/markdownRender/foundation.ts +69 -0
- package/markdownRender/markdownRender.scss +63 -0
- package/markdownRender/variables.scss +24 -0
- package/package.json +9 -3
- package/pincode/constants.ts +13 -0
- package/pincode/foundation.ts +126 -0
- package/pincode/pincode.scss +41 -0
- package/pincode/variables.scss +7 -0
- package/select/foundation.ts +7 -4
- package/treeSelect/constants.ts +1 -1
- package/treeSelect/foundation.ts +8 -0
package/button/button.scss
CHANGED
|
@@ -387,6 +387,11 @@ $module: #{$prefix}-button;
|
|
|
387
387
|
border-top-right-radius: $radius-button_group;
|
|
388
388
|
border-bottom-right-radius: $radius-button_group;
|
|
389
389
|
}
|
|
390
|
+
|
|
391
|
+
&-outline:not(:last-child) {
|
|
392
|
+
border-right-color: transparent;
|
|
393
|
+
margin-right: -1 * $width-button_outline-border;
|
|
394
|
+
}
|
|
390
395
|
}
|
|
391
396
|
|
|
392
397
|
&-line {
|
package/button/constants.ts
CHANGED
|
@@ -9,7 +9,7 @@ const strings = {
|
|
|
9
9
|
iconPositions: ['left', 'right'],
|
|
10
10
|
htmlTypes: ['button', 'reset', 'submit'],
|
|
11
11
|
btnTypes: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
12
|
-
themes: ['solid', 'borderless', 'light'],
|
|
12
|
+
themes: ['solid', 'borderless', 'light', 'outline'],
|
|
13
13
|
DEFAULT_ICON_SIZE: 'default',
|
|
14
14
|
DEFAULT_ICON_POSITION: 'left',
|
|
15
15
|
} as const;
|
package/cascader/constants.ts
CHANGED
package/cascader/foundation.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from './util';
|
|
21
21
|
import { strings } from './constants';
|
|
22
22
|
import isEnterPress from '../utils/isEnterPress';
|
|
23
|
+
import { ESC_KEY } from '../utils/keyCode';
|
|
23
24
|
|
|
24
25
|
export interface BasicData {
|
|
25
26
|
data: BasicCascaderData;
|
|
@@ -257,6 +258,13 @@ export default class CascaderFoundation extends BaseFoundation<CascaderAdapter,
|
|
|
257
258
|
}
|
|
258
259
|
}
|
|
259
260
|
|
|
261
|
+
handleKeyDown = (e: any) => {
|
|
262
|
+
if (e.key === ESC_KEY) {
|
|
263
|
+
const isOpen = this.getState('isOpen');
|
|
264
|
+
isOpen && this.close(e);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
260
268
|
destroy() {
|
|
261
269
|
this._adapter.unregisterClickOutsideHandler();
|
|
262
270
|
}
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
@import './variables.scss';
|
|
2
|
+
|
|
3
|
+
$module: #{$prefix}-codeHighlight;
|
|
4
|
+
|
|
5
|
+
.#{$module}{
|
|
6
|
+
&-defaultTheme{
|
|
7
|
+
/**
|
|
8
|
+
* prism.js default theme for JavaScript, CSS and HTML
|
|
9
|
+
* Based on dabblet (http://dabblet.com)
|
|
10
|
+
* @author Lea Verou
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
pre[class*="language-"],
|
|
14
|
+
code[class*="language-"]{
|
|
15
|
+
color: var(--semi-color-text-0);
|
|
16
|
+
font-size: 13px;
|
|
17
|
+
text-shadow: none;
|
|
18
|
+
// font-family: 'Inconsolata', Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
|
|
19
|
+
font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
|
|
20
|
+
direction: ltr;
|
|
21
|
+
text-align: left;
|
|
22
|
+
white-space: pre;
|
|
23
|
+
word-spacing: normal;
|
|
24
|
+
word-break: normal;
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
-moz-tab-size: 4;
|
|
27
|
+
-o-tab-size: 4;
|
|
28
|
+
tab-size: 4;
|
|
29
|
+
|
|
30
|
+
-moz-hyphens: none;
|
|
31
|
+
hyphens: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
pre[class*="language-"]::selection,
|
|
35
|
+
code[class*="language-"]::selection,
|
|
36
|
+
pre[class*="language-"]::mozselection,
|
|
37
|
+
code[class*="language-"]::mozselection {
|
|
38
|
+
text-shadow: none;
|
|
39
|
+
background: #b3d4fc;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
pre[class*="language-"]{
|
|
44
|
+
padding: 1em;
|
|
45
|
+
margin: .5em 0;
|
|
46
|
+
overflow: auto;
|
|
47
|
+
background: var(--semi-color-tertiary-light-default);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:not(pre)>code[class*="language-"] {
|
|
51
|
+
// padding: .1em .3em;
|
|
52
|
+
display: block;
|
|
53
|
+
border-radius: .3em;
|
|
54
|
+
color: #895fe2;
|
|
55
|
+
background: #f9f7f9;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
pre{
|
|
59
|
+
.namespace {
|
|
60
|
+
opacity: .7;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.token.comment,
|
|
64
|
+
.token.prolog,
|
|
65
|
+
.token.doctype,
|
|
66
|
+
.token.cdata {
|
|
67
|
+
color: #6b7075;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.token.punctuation {
|
|
71
|
+
color: rgba(var(--semi-grey-8), 1),
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.token.property,
|
|
75
|
+
.token.tag,
|
|
76
|
+
.token.boolean,
|
|
77
|
+
.token.number,
|
|
78
|
+
.token.constant,
|
|
79
|
+
.token.symbol,
|
|
80
|
+
.token.deleted {
|
|
81
|
+
color: rgba(var(--semi-purple-6), 1);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.token.selector,
|
|
85
|
+
.token.attr-name,
|
|
86
|
+
.token.string,
|
|
87
|
+
.token.char,
|
|
88
|
+
.token.builtin,
|
|
89
|
+
.token.inserted {
|
|
90
|
+
color: rgba(var(--semi-green-6), 1);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.token.operator,
|
|
94
|
+
.token.entity,
|
|
95
|
+
.token.url,
|
|
96
|
+
.language-css .token.string,
|
|
97
|
+
.style .token.string {
|
|
98
|
+
color: rgba(var(--semi-grey-8), 1),
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.token.atrule,
|
|
102
|
+
.token.attr-value,
|
|
103
|
+
.token.keyword {
|
|
104
|
+
color: rgba(var(--semi-purple-6), 1);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.token.function {
|
|
108
|
+
color: rgba(var(--semi-violet-6), 1);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.token.regex,
|
|
112
|
+
.token.important,
|
|
113
|
+
.token.variable {
|
|
114
|
+
color: #d0955f;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.token.important,
|
|
118
|
+
.token.bold {
|
|
119
|
+
font-weight: bold;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.token.italic {
|
|
123
|
+
font-style: italic;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.token.entity {
|
|
127
|
+
cursor: help;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
pre[data-line] {
|
|
133
|
+
position: relative;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
pre[class*="language-"]>code[class*="language-"] {
|
|
137
|
+
position: relative;
|
|
138
|
+
z-index: 1;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.line-highlight {
|
|
142
|
+
position: absolute;
|
|
143
|
+
left: 0;
|
|
144
|
+
right: 0;
|
|
145
|
+
padding: inherit 0;
|
|
146
|
+
margin-top: 1em;
|
|
147
|
+
background: #ebf4ff;
|
|
148
|
+
box-shadow: inset 5px 0 0 #0064d2;
|
|
149
|
+
z-index: 0;
|
|
150
|
+
pointer-events: none;
|
|
151
|
+
line-height: inherit;
|
|
152
|
+
white-space: pre;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
//---- line number ----
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
pre[class*="language-"].line-numbers {
|
|
160
|
+
position: relative;
|
|
161
|
+
padding-left: 3.8em;
|
|
162
|
+
counter-reset: linenumber;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
pre[class*="language-"].line-numbers > code {
|
|
166
|
+
position: relative;
|
|
167
|
+
white-space: inherit;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.line-numbers .line-numbers-rows {
|
|
171
|
+
position: absolute;
|
|
172
|
+
pointer-events: none;
|
|
173
|
+
top: 0;
|
|
174
|
+
font-size: 100%;
|
|
175
|
+
left: -3.8em;
|
|
176
|
+
width: 3em; /* works for line-numbers below 1000 lines */
|
|
177
|
+
letter-spacing: -1px;
|
|
178
|
+
border-right: 1px solid #999;
|
|
179
|
+
|
|
180
|
+
-webkit-user-select: none;
|
|
181
|
+
-moz-user-select: none;
|
|
182
|
+
-ms-user-select: none;
|
|
183
|
+
user-select: none;
|
|
184
|
+
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.line-numbers-rows > span {
|
|
188
|
+
display: block;
|
|
189
|
+
counter-increment: linenumber;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.line-numbers-rows > span:before {
|
|
193
|
+
content: counter(linenumber);
|
|
194
|
+
color: #999;
|
|
195
|
+
display: block;
|
|
196
|
+
padding-right: 0.8em;
|
|
197
|
+
text-align: right;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import BaseFoundation, { DefaultAdapter } from '../base/foundation';
|
|
2
|
+
import Prism from 'prismjs';
|
|
3
|
+
import cls from "classnames";
|
|
4
|
+
import "prismjs/plugins/line-numbers/prism-line-numbers.min.js";
|
|
5
|
+
|
|
6
|
+
Prism.manual = true;
|
|
7
|
+
|
|
8
|
+
export interface CodeHighlightBaseProps {
|
|
9
|
+
code: string;
|
|
10
|
+
language: string;
|
|
11
|
+
lineNumber: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface CodeHighlightBaseState {
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export interface CodeHighlightAdapter<P = Record<string, any>, S = Record<string, any>> extends DefaultAdapter<P, S> {
|
|
19
|
+
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
class CodeHighlightFoundation<P = Record<string, any>, S = Record<string, any>> extends BaseFoundation<CodeHighlightAdapter<P, S>, P, S> {
|
|
24
|
+
constructor(adapter: CodeHighlightAdapter<P, S>) {
|
|
25
|
+
super({ ...adapter });
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
highlightCode = (ele: HTMLElement, language: string) => {
|
|
30
|
+
let className = ele.className;
|
|
31
|
+
const languageClassName = `language-${language}`;
|
|
32
|
+
if (!className.includes(languageClassName)) {
|
|
33
|
+
className = cls(className, languageClassName);
|
|
34
|
+
}
|
|
35
|
+
if (this.getProp("lineNumber")) {
|
|
36
|
+
className = cls(className, "line-numbers");
|
|
37
|
+
}
|
|
38
|
+
ele.className = className;
|
|
39
|
+
Prism.highlightElement(ele, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
export default CodeHighlightFoundation;
|
|
File without changes
|
|
@@ -5,15 +5,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-anchor`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
SIZE: ['small', 'default'],
|
|
14
13
|
SLIDE_COLOR: ['primary', 'tertiary', 'muted'],
|
|
15
14
|
MAX_WIDTH: '200px',
|
|
16
15
|
MAX_HEIGHT: '750px',
|
|
17
16
|
POSITION_SET: ['top', 'topLeft', 'topRight', 'left', 'leftTop', 'leftBottom', 'right', 'rightTop', 'rightBottom', 'bottom', 'bottomLeft', 'bottomRight', 'leftTopOver', 'rightTopOver']
|
|
18
|
-
};
|
|
19
|
-
exports.strings = strings;
|
|
17
|
+
};
|
|
@@ -9,7 +9,7 @@ var _isArray2 = _interopRequireDefault(require("lodash/isArray"));
|
|
|
9
9
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
10
10
|
var _scrollIntoViewIfNeeded = _interopRequireDefault(require("scroll-into-view-if-needed"));
|
|
11
11
|
var _constants = require("./constants");
|
|
12
|
-
function _interopRequireDefault(
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
13
|
const prefixCls = _constants.cssClasses.PREFIX;
|
|
14
14
|
class AnchorFoundation extends _foundation.default {
|
|
15
15
|
constructor(adapter) {
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class LinkFoundation extends _foundation.default {
|
|
10
10
|
constructor(adapter) {
|
|
11
11
|
super(Object.assign({}, adapter));
|
|
@@ -6,16 +6,14 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../tooltip/constants");
|
|
8
8
|
var _constants2 = require("../base/constants");
|
|
9
|
-
const cssClasses = {
|
|
9
|
+
const cssClasses = exports.cssClasses = {
|
|
10
10
|
PREFIX: `${_constants2.BASE_CLASS_PREFIX}-autocomplete`,
|
|
11
11
|
PREFIX_OPTION: `${_constants2.BASE_CLASS_PREFIX}-autoComplete-option`,
|
|
12
12
|
PREFIX_GROUP: `${_constants2.BASE_CLASS_PREFIX}-autoComplete-group`
|
|
13
13
|
};
|
|
14
|
-
exports.
|
|
15
|
-
const strings = {
|
|
14
|
+
const strings = exports.strings = {
|
|
16
15
|
SIZE: ['small', 'large', 'default'],
|
|
17
16
|
POSITION: _constants.strings.POSITION_SET,
|
|
18
17
|
OPTIONS: ['children', 'value'],
|
|
19
18
|
STATUS: _constants2.VALIDATE_STATUS
|
|
20
|
-
};
|
|
21
|
-
exports.strings = strings;
|
|
19
|
+
};
|
|
@@ -11,7 +11,7 @@ var _isString2 = _interopRequireDefault(require("lodash/isString"));
|
|
|
11
11
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
12
12
|
var _warning = _interopRequireDefault(require("../utils/warning"));
|
|
13
13
|
var _keyCode = _interopRequireDefault(require("../utils/keyCode"));
|
|
14
|
-
function _interopRequireDefault(
|
|
14
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
15
|
class AutoCompleteFoundation extends _foundation.default {
|
|
16
16
|
constructor(adapter) {
|
|
17
17
|
super(Object.assign({}, adapter));
|
|
@@ -48,7 +48,6 @@ class AutoCompleteFoundation extends _foundation.default {
|
|
|
48
48
|
this._adapter.unregisterClickOutsideHandler();
|
|
49
49
|
// this.unBindKeyBoardEvent();
|
|
50
50
|
}
|
|
51
|
-
|
|
52
51
|
_setDropdownWidth() {
|
|
53
52
|
const {
|
|
54
53
|
style,
|
|
@@ -402,5 +401,4 @@ class AutoCompleteFoundation extends _foundation.default {
|
|
|
402
401
|
this._adapter.notifyBlur(e);
|
|
403
402
|
}
|
|
404
403
|
}
|
|
405
|
-
var _default = AutoCompleteFoundation;
|
|
406
|
-
exports.default = _default;
|
|
404
|
+
var _default = exports.default = AutoCompleteFoundation;
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class OptionFoundation extends _foundation.default {
|
|
10
10
|
constructor(adapter) {
|
|
11
11
|
super(Object.assign({}, adapter));
|
|
@@ -5,14 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-avatar`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
SHAPE: ['circle', 'square'],
|
|
14
13
|
SIZE: ['extra-extra-small', 'extra-small', 'small', 'default', 'medium', 'large', 'extra-large'],
|
|
15
14
|
COLOR: ['grey', 'red', 'pink', 'purple', 'violet', 'indigo', 'blue', 'light-blue', 'cyan', 'teal', 'green', 'light-green', 'lime', 'yellow', 'amber', 'orange', 'white'],
|
|
16
15
|
OVERLAP_FROM: ['start', 'end']
|
|
17
|
-
};
|
|
18
|
-
exports.strings = strings;
|
|
16
|
+
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
8
|
var _warning = _interopRequireDefault(require("../utils/warning"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class AvatarFoundation extends _foundation.default {
|
|
11
11
|
constructor(adapter) {
|
|
12
12
|
super(Object.assign({}, adapter));
|
|
@@ -5,9 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-backtop`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {};
|
|
13
|
-
exports.strings = strings;
|
|
11
|
+
const strings = exports.strings = {};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
8
|
var _semiAnimation = require("@douyinfe/semi-animation");
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class BackTopFoundation extends _foundation.default {
|
|
11
11
|
constructor(adapter) {
|
|
12
12
|
super(Object.assign({}, adapter));
|
|
@@ -5,15 +5,12 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-badge`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
TYPE_SET: ['success', 'primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
14
13
|
THEME_SET: ['solid', 'light', 'inverted'],
|
|
15
14
|
POS_SET: ['leftTop', 'leftBottom', 'rightTop', 'rightBottom']
|
|
16
15
|
};
|
|
17
|
-
exports.
|
|
18
|
-
const numbers = {};
|
|
19
|
-
exports.numbers = numbers;
|
|
16
|
+
const numbers = exports.numbers = {};
|
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-banner`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
TYPE: ['info', 'success', 'danger', 'warning']
|
|
14
|
-
};
|
|
15
|
-
exports.strings = strings;
|
|
13
|
+
};
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class BannerFoundation extends _foundation.default {
|
|
10
10
|
constructor(adapter) {
|
|
11
11
|
super(Object.assign(Object.assign({}, BannerFoundation.defaultAdapter), adapter));
|
|
@@ -11,6 +11,5 @@ Object.defineProperty(exports, "BASE_CLASS_PREFIX", {
|
|
|
11
11
|
});
|
|
12
12
|
exports.VALIDATE_STATUS = void 0;
|
|
13
13
|
var _env = require("./env");
|
|
14
|
-
const VALIDATE_STATUS = ['default', 'error', 'warning', 'success'];
|
|
15
|
-
// const VALIDATE_STATUS = ['default', 'error', 'warning', 'success', 'validating'] as const;
|
|
16
|
-
exports.VALIDATE_STATUS = VALIDATE_STATUS;
|
|
14
|
+
const VALIDATE_STATUS = exports.VALIDATE_STATUS = ['default', 'error', 'warning', 'success'];
|
|
15
|
+
// const VALIDATE_STATUS = ['default', 'error', 'warning', 'success', 'validating'] as const;
|
package/lib/cjs/base/env.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _noop2 = _interopRequireDefault(require("lodash/noop"));
|
|
8
8
|
var _log = _interopRequireDefault(require("../utils/log"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
/**
|
|
11
11
|
* The Semi Foundation / Adapter architecture split was inspired by Material Component For Web. (https://github.com/material-components/material-components-web)
|
|
12
12
|
* We re-implemented our own code based on the principle and added more functions we need according to actual needs.
|
|
@@ -119,5 +119,4 @@ class BaseFoundation {
|
|
|
119
119
|
this._adapter.persistEvent(e);
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
var _default = BaseFoundation;
|
|
123
|
-
exports.default = _default;
|
|
122
|
+
var _default = exports.default = BaseFoundation;
|
package/lib/cjs/base/index.js
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("./foundation"));
|
|
8
|
-
function _interopRequireDefault(
|
|
9
|
-
var _default = {
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
var _default = exports.default = {
|
|
10
10
|
BaseFoundation: _foundation.default
|
|
11
|
-
};
|
|
12
|
-
exports.default = _default;
|
|
11
|
+
};
|
|
@@ -5,11 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-breadcrumb`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
MORE_TYPE: ['default', 'popover']
|
|
14
|
-
};
|
|
15
|
-
exports.strings = strings;
|
|
13
|
+
};
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
8
|
var _isEnterPress = _interopRequireDefault(require("../utils/isEnterPress"));
|
|
9
|
-
function _interopRequireDefault(
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
class BreadcrumbFoundation extends _foundation.default {
|
|
11
11
|
constructor(adapter) {
|
|
12
12
|
super(Object.assign({}, adapter));
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _foundation = _interopRequireDefault(require("../base/foundation"));
|
|
8
|
-
function _interopRequireDefault(
|
|
8
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
9
|
class BreadcrumbItemFoundation extends _foundation.default {
|
|
10
10
|
constructor(adapter) {
|
|
11
11
|
super(Object.assign({}, adapter));
|
|
@@ -308,6 +308,10 @@
|
|
|
308
308
|
border-top-right-radius: var(--semi-border-radius-small);
|
|
309
309
|
border-bottom-right-radius: var(--semi-border-radius-small);
|
|
310
310
|
}
|
|
311
|
+
.semi-button-group > .semi-button-outline:not(:last-child) {
|
|
312
|
+
border-right-color: transparent;
|
|
313
|
+
margin-right: -1px;
|
|
314
|
+
}
|
|
311
315
|
.semi-button-group-line {
|
|
312
316
|
display: inline-flex;
|
|
313
317
|
align-items: center;
|
|
@@ -387,6 +387,11 @@ $module: #{$prefix}-button;
|
|
|
387
387
|
border-top-right-radius: $radius-button_group;
|
|
388
388
|
border-bottom-right-radius: $radius-button_group;
|
|
389
389
|
}
|
|
390
|
+
|
|
391
|
+
&-outline:not(:last-child) {
|
|
392
|
+
border-right-color: transparent;
|
|
393
|
+
margin-right: -1 * $width-button_outline-border;
|
|
394
|
+
}
|
|
390
395
|
}
|
|
391
396
|
|
|
392
397
|
&-line {
|
|
@@ -6,7 +6,7 @@ declare const strings: {
|
|
|
6
6
|
readonly iconPositions: readonly ["left", "right"];
|
|
7
7
|
readonly htmlTypes: readonly ["button", "reset", "submit"];
|
|
8
8
|
readonly btnTypes: readonly ["primary", "secondary", "tertiary", "warning", "danger"];
|
|
9
|
-
readonly themes: readonly ["solid", "borderless", "light"];
|
|
9
|
+
readonly themes: readonly ["solid", "borderless", "light", "outline"];
|
|
10
10
|
readonly DEFAULT_ICON_SIZE: "default";
|
|
11
11
|
readonly DEFAULT_ICON_POSITION: "left";
|
|
12
12
|
};
|
|
@@ -5,19 +5,16 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.strings = exports.numbers = exports.cssClasses = void 0;
|
|
7
7
|
var _constants = require("../base/constants");
|
|
8
|
-
const cssClasses = {
|
|
8
|
+
const cssClasses = exports.cssClasses = {
|
|
9
9
|
PREFIX: `${_constants.BASE_CLASS_PREFIX}-button`
|
|
10
10
|
};
|
|
11
|
-
exports.
|
|
12
|
-
const strings = {
|
|
11
|
+
const strings = exports.strings = {
|
|
13
12
|
sizes: ['default', 'small', 'large'],
|
|
14
13
|
iconPositions: ['left', 'right'],
|
|
15
14
|
htmlTypes: ['button', 'reset', 'submit'],
|
|
16
15
|
btnTypes: ['primary', 'secondary', 'tertiary', 'warning', 'danger'],
|
|
17
|
-
themes: ['solid', 'borderless', 'light'],
|
|
16
|
+
themes: ['solid', 'borderless', 'light', 'outline'],
|
|
18
17
|
DEFAULT_ICON_SIZE: 'default',
|
|
19
18
|
DEFAULT_ICON_POSITION: 'left'
|
|
20
19
|
};
|
|
21
|
-
exports.
|
|
22
|
-
const numbers = {};
|
|
23
|
-
exports.numbers = numbers;
|
|
20
|
+
const numbers = exports.numbers = {};
|