@alifd/chat 0.1.10 → 0.1.12-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/es/button/index.d.ts +1 -9
- package/es/calendar/index.d.ts +23 -0
- package/es/calendar/index.js +33 -0
- package/es/calendar/style.d.ts +2 -0
- package/es/calendar/style.js +2 -0
- package/es/calendar/types.d.ts +123 -0
- package/es/calendar/types.js +1 -0
- package/es/card/index.d.ts +1 -5
- package/es/card/view/card.d.ts +1 -4
- package/es/date-picker/index.d.ts +24 -0
- package/es/date-picker/index.js +33 -0
- package/es/date-picker/style.d.ts +3 -0
- package/es/date-picker/style.js +3 -0
- package/es/date-picker/types.d.ts +123 -0
- package/es/date-picker/types.js +1 -0
- package/es/feedback/index.d.ts +1 -6
- package/es/feedback/index.js +1 -1
- package/es/feedback/view/good.js +1 -1
- package/es/float-button/index.d.ts +4 -26
- package/es/float-button/view/backtop.d.ts +1 -9
- package/es/float-button/view/drawer.d.ts +1 -4
- package/es/float-button/view/float-button.d.ts +1 -9
- package/es/float-button/view/inner-drawer.d.ts +1 -4
- package/es/index.d.ts +5 -0
- package/es/index.js +6 -1
- package/es/input/index.d.ts +24 -0
- package/es/input/index.js +33 -0
- package/es/input/style.d.ts +2 -0
- package/es/input/style.js +2 -0
- package/es/input/types.d.ts +518 -0
- package/es/input/types.js +1 -0
- package/es/person-picker/index.d.ts +24 -0
- package/es/person-picker/index.js +66 -0
- package/es/person-picker/style.d.ts +2 -0
- package/es/person-picker/style.js +2 -0
- package/es/person-picker/types.d.ts +20 -0
- package/es/person-picker/types.js +1 -0
- package/es/tab/index.d.ts +1 -8
- package/es/tag/index.d.ts +1 -9
- package/es/text/index.d.ts +1 -7
- package/es/time-picker/index.d.ts +23 -0
- package/es/time-picker/index.js +79 -0
- package/es/time-picker/style.d.ts +2 -0
- package/es/time-picker/style.js +2 -0
- package/es/time-picker/types.d.ts +20 -0
- package/es/time-picker/types.js +1 -0
- package/es/utils/dingtalk.d.ts +4 -0
- package/es/utils/dingtalk.js +53 -0
- package/lib/button/index.d.ts +1 -9
- package/lib/calendar/index.d.ts +23 -0
- package/lib/calendar/index.js +35 -0
- package/{es/button → lib/calendar}/main.scss +1 -1
- package/lib/calendar/style.d.ts +2 -0
- package/lib/calendar/style.js +4 -0
- package/lib/calendar/types.d.ts +123 -0
- package/lib/calendar/types.js +2 -0
- package/lib/card/index.d.ts +1 -5
- package/lib/card/view/card.d.ts +1 -4
- package/lib/core/variables.scss +2 -0
- package/lib/date-picker/index.d.ts +24 -0
- package/lib/date-picker/index.js +35 -0
- package/lib/date-picker/main.scss +6 -0
- package/lib/date-picker/style.d.ts +3 -0
- package/lib/date-picker/style.js +5 -0
- package/lib/date-picker/types.d.ts +123 -0
- package/lib/date-picker/types.js +2 -0
- package/lib/feedback/index.d.ts +1 -6
- package/lib/feedback/index.js +1 -1
- package/lib/feedback/main.scss +6 -3
- package/lib/feedback/view/good.js +1 -1
- package/lib/float-button/index.d.ts +4 -26
- package/lib/float-button/view/backtop.d.ts +1 -9
- package/lib/float-button/view/drawer.d.ts +1 -4
- package/lib/float-button/view/float-button.d.ts +1 -9
- package/lib/float-button/view/inner-drawer.d.ts +1 -4
- package/lib/index.d.ts +4 -0
- package/lib/index.js +10 -2
- package/lib/input/index.d.ts +24 -0
- package/lib/input/index.js +35 -0
- package/lib/input/main.scss +5 -0
- package/lib/input/style.d.ts +2 -0
- package/lib/input/style.js +4 -0
- package/lib/input/types.d.ts +518 -0
- package/lib/input/types.js +2 -0
- package/lib/tab/index.d.ts +1 -8
- package/lib/tag/index.d.ts +1 -9
- package/lib/text/index.d.ts +1 -7
- package/lib/time-picker/index.d.ts +23 -0
- package/lib/time-picker/index.js +81 -0
- package/lib/time-picker/main.scss +6 -0
- package/lib/time-picker/style.d.ts +2 -0
- package/lib/time-picker/style.js +4 -0
- package/lib/time-picker/types.d.ts +20 -0
- package/lib/time-picker/types.js +2 -0
- package/lib/utils/dingtalk.d.ts +4 -0
- package/lib/utils/dingtalk.js +60 -0
- package/package.json +39 -1
- package/es/card/main.scss +0 -141
- package/es/core/variables.scss +0 -33
- package/es/feedback/main.scss +0 -42
- package/es/float-button/main.scss +0 -97
- package/es/tab/main.scss +0 -10
- package/es/tag/main.scss +0 -9
- package/es/text/main.scss +0 -19
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
type HTMLAttributesWeak = Omit<React.ButtonHTMLAttributes<HTMLElement>, 'type' | 'onClick'>;
|
|
3
|
+
/**
|
|
4
|
+
* @api TimePicker
|
|
5
|
+
*/
|
|
6
|
+
export interface TimePickerProps extends HTMLAttributesWeak {
|
|
7
|
+
/**
|
|
8
|
+
* 采用模式
|
|
9
|
+
* @en mode of time-picker
|
|
10
|
+
* @defaultValue 'normal'
|
|
11
|
+
*/
|
|
12
|
+
mode?: 'normal' | 'dingtalk';
|
|
13
|
+
/**
|
|
14
|
+
* 时间选择器其他属性
|
|
15
|
+
* @en key of time-picker
|
|
16
|
+
* @defaultValue 'medium'
|
|
17
|
+
*/
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
}
|
|
20
|
+
export {};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addZeroInWorkNo = exports.quitApp = exports.userPicker = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
require("@ali/dingtalk-jsapi/entry/union");
|
|
6
|
+
const quit_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/navigation/quit"));
|
|
7
|
+
const close_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/navigation/close"));
|
|
8
|
+
const complexPicker_1 = tslib_1.__importDefault(require("@ali/dingtalk-jsapi/api/biz/contact/complexPicker"));
|
|
9
|
+
const dingtalk_jsapi_1 = require("@ali/dingtalk-jsapi");
|
|
10
|
+
function userPicker({ pickedUsers, onSuccess }) {
|
|
11
|
+
(0, complexPicker_1.default)({
|
|
12
|
+
title: '请选择人员', // 标题
|
|
13
|
+
corpId: 'dingd8e1123006514592', // 企业的corpId
|
|
14
|
+
multiple: true, // 是否多选
|
|
15
|
+
limitTips: '超出了', // 超过限定人数返回提示
|
|
16
|
+
maxUsers: 1000, // 最大可选人数
|
|
17
|
+
pickedUsers, // 已选用户
|
|
18
|
+
pickedDepartments: [], // 已选部门
|
|
19
|
+
disabledUsers: [], // 不可选用户
|
|
20
|
+
disabledDepartments: [], // 不可选部门
|
|
21
|
+
requiredUsers: [], // 必选用户(不可取消选中状态)
|
|
22
|
+
requiredDepartments: [], // 必选部门(不可取消选中状态)
|
|
23
|
+
appId: 158, // 微应用Id,企业内部应用查看AgentId
|
|
24
|
+
permissionType: 'GLOBAL', // 可添加权限校验,选人权限,目前只有GLOBAL这个参数
|
|
25
|
+
responseUserOnly: true, // 返回人,或者返回人和部门
|
|
26
|
+
startWithDepartmentId: 0, // 仅支持0和-1
|
|
27
|
+
showRootOrg: true,
|
|
28
|
+
onSuccess,
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
exports.userPicker = userPicker;
|
|
32
|
+
function quitApp() {
|
|
33
|
+
try {
|
|
34
|
+
if (dingtalk_jsapi_1.env.platform === 'pc') {
|
|
35
|
+
(0, quit_1.default)({});
|
|
36
|
+
}
|
|
37
|
+
else if (dingtalk_jsapi_1.env.platform === 'android' || dingtalk_jsapi_1.env.platform === 'ios') {
|
|
38
|
+
(0, close_1.default)({});
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
window.close && window.close();
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
catch (err) {
|
|
45
|
+
console.log('quitApp error:', err);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.quitApp = quitApp;
|
|
49
|
+
function addZeroInWorkNo(workNo) {
|
|
50
|
+
if (!workNo) {
|
|
51
|
+
return '';
|
|
52
|
+
}
|
|
53
|
+
const workNoLength = workNo.length;
|
|
54
|
+
if (workNoLength.length >= 6) {
|
|
55
|
+
return workNo;
|
|
56
|
+
}
|
|
57
|
+
const str = `0000000${workNo}`;
|
|
58
|
+
return str.slice(str.length - 6, str.length);
|
|
59
|
+
}
|
|
60
|
+
exports.addZeroInWorkNo = addZeroInWorkNo;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alifd/chat",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12-beta.0",
|
|
4
4
|
"description": "A configurable component library for chat built on React.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -118,6 +118,42 @@
|
|
|
118
118
|
"import": "./es/text/style.js",
|
|
119
119
|
"require": "./lib/text/style.js"
|
|
120
120
|
},
|
|
121
|
+
"./input": {
|
|
122
|
+
"import": "./es/input/index.js",
|
|
123
|
+
"require": "./lib/input/index.js"
|
|
124
|
+
},
|
|
125
|
+
"./input/style": {
|
|
126
|
+
"import": "./es/input/style.js",
|
|
127
|
+
"require": "./lib/input/style.js"
|
|
128
|
+
},
|
|
129
|
+
"./input/style.js": {
|
|
130
|
+
"import": "./es/input/style.js",
|
|
131
|
+
"require": "./lib/input/style.js"
|
|
132
|
+
},
|
|
133
|
+
"./date-picker": {
|
|
134
|
+
"import": "./es/date-picker/index.js",
|
|
135
|
+
"require": "./lib/date-picker/index.js"
|
|
136
|
+
},
|
|
137
|
+
"./date-picker/style": {
|
|
138
|
+
"import": "./es/date-picker/style.js",
|
|
139
|
+
"require": "./lib/date-picker/style.js"
|
|
140
|
+
},
|
|
141
|
+
"./date-picker/style.js": {
|
|
142
|
+
"import": "./es/date-picker/style.js",
|
|
143
|
+
"require": "./lib/date-picker/style.js"
|
|
144
|
+
},
|
|
145
|
+
"./time-picker": {
|
|
146
|
+
"import": "./es/time-picker/index.js",
|
|
147
|
+
"require": "./lib/time-picker/index.js"
|
|
148
|
+
},
|
|
149
|
+
"./time-picker/style": {
|
|
150
|
+
"import": "./es/time-picker/style.js",
|
|
151
|
+
"require": "./lib/time-picker/style.js"
|
|
152
|
+
},
|
|
153
|
+
"./time-picker/style.js": {
|
|
154
|
+
"import": "./es/time-picker/style.js",
|
|
155
|
+
"require": "./lib/time-picker/style.js"
|
|
156
|
+
},
|
|
121
157
|
"./utils": {
|
|
122
158
|
"import": "./es/utils/index.js",
|
|
123
159
|
"require": "./lib/utils/index.js"
|
|
@@ -189,6 +225,8 @@
|
|
|
189
225
|
"react-dom": ">=16.0.0"
|
|
190
226
|
},
|
|
191
227
|
"dependencies": {
|
|
228
|
+
"@ali/dingtalk-jsapi": "^3.0.33",
|
|
229
|
+
"dingtalk-jsapi": "^3.0.33",
|
|
192
230
|
"hoist-non-react-statics": "^3.3.2",
|
|
193
231
|
"tslib": "^2.6.2"
|
|
194
232
|
},
|
package/es/card/main.scss
DELETED
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
@import '../core/variables.scss';
|
|
2
|
-
|
|
3
|
-
@mixin size($shadow, $corner, $padding, $fontSize, $headFontSize) {
|
|
4
|
-
$verPadding: $padding * 0.5;
|
|
5
|
-
box-shadow: $shadow;
|
|
6
|
-
border-radius: $corner;
|
|
7
|
-
font-size: $fontSize;
|
|
8
|
-
overflow: hidden;
|
|
9
|
-
|
|
10
|
-
.#{$prefix}card {
|
|
11
|
-
&-header {
|
|
12
|
-
font-size: $headFontSize;
|
|
13
|
-
&-title {
|
|
14
|
-
padding: $verPadding $padding;
|
|
15
|
-
}
|
|
16
|
-
&-extras {
|
|
17
|
-
padding: $verPadding $padding $verPadding 0;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
&-content {
|
|
21
|
-
padding: 0 $padding;
|
|
22
|
-
|
|
23
|
-
&--gap-top {
|
|
24
|
-
margin-top: $verPadding;
|
|
25
|
-
}
|
|
26
|
-
&--gap-bottom {
|
|
27
|
-
margin-bottom: $verPadding;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
&-footer {
|
|
31
|
-
padding: $verPadding $padding;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.#{$prefix}card {
|
|
37
|
-
color: $color-text1-3;
|
|
38
|
-
|
|
39
|
-
&-inner {
|
|
40
|
-
display: flex;
|
|
41
|
-
flex-direction: column;
|
|
42
|
-
background-color: #fff;
|
|
43
|
-
@include size(
|
|
44
|
-
$shadow-2,
|
|
45
|
-
$size-base * 3,
|
|
46
|
-
$size-base * 4,
|
|
47
|
-
$font-size-body-1,
|
|
48
|
-
$font-size-subhead
|
|
49
|
-
);
|
|
50
|
-
}
|
|
51
|
-
&-header {
|
|
52
|
-
flex: none;
|
|
53
|
-
display: flex;
|
|
54
|
-
|
|
55
|
-
&-title {
|
|
56
|
-
font-weight: 500;
|
|
57
|
-
flex: 1;
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
text-overflow: ellipsis;
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
word-break: break-all;
|
|
62
|
-
}
|
|
63
|
-
&-extras {
|
|
64
|
-
flex: none;
|
|
65
|
-
}
|
|
66
|
-
&--line {
|
|
67
|
-
border-bottom: 1px solid $color-line1-0;
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
&-footer {
|
|
71
|
-
flex: none;
|
|
72
|
-
|
|
73
|
-
&--line {
|
|
74
|
-
border-top: 1px solid $color-line1-0;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
&--medium {
|
|
79
|
-
.#{$prefix}card-inner {
|
|
80
|
-
@include size(
|
|
81
|
-
$shadow-2,
|
|
82
|
-
$size-base * 3,
|
|
83
|
-
$size-base * 4,
|
|
84
|
-
$font-size-body-1,
|
|
85
|
-
$font-size-subhead
|
|
86
|
-
);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&.#{$prefix}card--no-padding {
|
|
90
|
-
.#{$prefix}card {
|
|
91
|
-
&-header,
|
|
92
|
-
&-content,
|
|
93
|
-
&-footer {
|
|
94
|
-
padding: 0;
|
|
95
|
-
margin: 0;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
@keyframes fade-in {
|
|
101
|
-
0% {
|
|
102
|
-
opacity: 0;
|
|
103
|
-
}
|
|
104
|
-
100% {
|
|
105
|
-
opacity: 1;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
&-collapsable {
|
|
110
|
-
&-inner {
|
|
111
|
-
}
|
|
112
|
-
&-inner--popup {
|
|
113
|
-
position: absolute;
|
|
114
|
-
left: 0;
|
|
115
|
-
top: 0;
|
|
116
|
-
width: 100%;
|
|
117
|
-
height: auto;
|
|
118
|
-
z-index: 999;
|
|
119
|
-
opacity: 0;
|
|
120
|
-
animation-timing-function: ease-out;
|
|
121
|
-
animation-duration: 0.3s;
|
|
122
|
-
animation-name: fade-in;
|
|
123
|
-
animation-iteration-count: 1;
|
|
124
|
-
animation-fill-mode: forwards;
|
|
125
|
-
}
|
|
126
|
-
&--visible {
|
|
127
|
-
position: relative;
|
|
128
|
-
.#{$prefix}card-collapsable-inner {
|
|
129
|
-
transition: opacity 0.5s ease-in;
|
|
130
|
-
opacity: 0;
|
|
131
|
-
pointer-events: none;
|
|
132
|
-
|
|
133
|
-
&--popup {
|
|
134
|
-
transition: none;
|
|
135
|
-
opacity: 1;
|
|
136
|
-
pointer-events: all;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
package/es/core/variables.scss
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
$prefix: 'ct-' !default;
|
|
2
|
-
|
|
3
|
-
$color-brand1-6: var(--color-brand1-6, #5584ff) !default;
|
|
4
|
-
$size-base: 4px !default;
|
|
5
|
-
$shadow-1: 1px 1px 4px 0px rgba(0, 0, 0, 0.16) !default;
|
|
6
|
-
$shadow-2: 2px 4px 16px 0px rgba(0, 0, 0, 0.12) !default;
|
|
7
|
-
|
|
8
|
-
$font-size-headline: var(--font-size-headline, 24px) !default;
|
|
9
|
-
$font-size-title: var(--font-size-title, 20px) !default;
|
|
10
|
-
$font-size-subhead: var(--font-size-subhead, 16px) !default;
|
|
11
|
-
$font-size-body-2: var(--font-size-body-2, 14px) !default;
|
|
12
|
-
$font-size-body-1: var(--font-size-body-1, 14px) !default;
|
|
13
|
-
$font-size-caption: var(--font-size-caption, 12px) !default;
|
|
14
|
-
|
|
15
|
-
/// 禁用
|
|
16
|
-
$color-text1-1: var(--color-text1-1, #cccccc) !default;
|
|
17
|
-
/// 水印/提示
|
|
18
|
-
$color-text1-2: var(--color-text1-2, #999999) !default;
|
|
19
|
-
/// 正文/标题
|
|
20
|
-
$color-text1-3: var(--color-text1-3, #666666) !default;
|
|
21
|
-
/// 正文/标题
|
|
22
|
-
$color-text1-4: var(--color-text1-4, #333333) !default;
|
|
23
|
-
|
|
24
|
-
/// 很浅
|
|
25
|
-
$color-line1-0: var(--color-line1-0, #f1f3f6) !default;
|
|
26
|
-
/// 浅
|
|
27
|
-
$color-line1-1: var(--color-line1-1, #e6e7eb) !default;
|
|
28
|
-
/// 常规
|
|
29
|
-
$color-line1-2: var(--color-line1-2, #dcdee3) !default;
|
|
30
|
-
/// 深
|
|
31
|
-
$color-line1-3: var(--color-line1-3, #c4c6cf) !default;
|
|
32
|
-
/// 重
|
|
33
|
-
$color-line1-4: var(--color-line1-4, #a0a2ad) !default;
|
package/es/feedback/main.scss
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@import '../core/variables.scss';
|
|
2
|
-
|
|
3
|
-
.#{$prefix}feedback {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
|
|
6
|
-
&-inner {
|
|
7
|
-
padding: 0 4px;
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: row;
|
|
10
|
-
}
|
|
11
|
-
&-item {
|
|
12
|
-
background-color: transparent;
|
|
13
|
-
outline: 0;
|
|
14
|
-
border: 0;
|
|
15
|
-
display: inline-flex;
|
|
16
|
-
justify-content: center;
|
|
17
|
-
align-items: center;
|
|
18
|
-
padding: 0 4px;
|
|
19
|
-
cursor: pointer;
|
|
20
|
-
color: inherit;
|
|
21
|
-
font-size: inherit;
|
|
22
|
-
transition:
|
|
23
|
-
color 0.15s,
|
|
24
|
-
opacity 0.15s;
|
|
25
|
-
|
|
26
|
-
&--active {
|
|
27
|
-
color: $color-brand1-6;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&:hover {
|
|
31
|
-
opacity: 0.8;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
&-icon {
|
|
35
|
-
line-height: 1;
|
|
36
|
-
|
|
37
|
-
&--bad {
|
|
38
|
-
transform: rotate(180deg);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
@import '../core/variables.scss';
|
|
2
|
-
|
|
3
|
-
.#{$prefix}float-button {
|
|
4
|
-
position: fixed;
|
|
5
|
-
z-index: 1001;
|
|
6
|
-
|
|
7
|
-
&-backtop {
|
|
8
|
-
transition:
|
|
9
|
-
opacity 0.2s,
|
|
10
|
-
transform 0.2s;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
|
|
13
|
-
&--hidden {
|
|
14
|
-
opacity: 0;
|
|
15
|
-
transform: scale(0);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&-inner-drawer {
|
|
20
|
-
flex: 1;
|
|
21
|
-
overflow: hidden;
|
|
22
|
-
box-shadow: $shadow-2;
|
|
23
|
-
border-radius: $size-base * 2;
|
|
24
|
-
|
|
25
|
-
&-outer {
|
|
26
|
-
display: flex;
|
|
27
|
-
}
|
|
28
|
-
&-inner-start {
|
|
29
|
-
flex: 1;
|
|
30
|
-
}
|
|
31
|
-
&-inner-end {
|
|
32
|
-
flex: none;
|
|
33
|
-
transition:
|
|
34
|
-
width 0.3s,
|
|
35
|
-
opacity 0.3s;
|
|
36
|
-
display: flex;
|
|
37
|
-
width: 0;
|
|
38
|
-
opacity: 0;
|
|
39
|
-
}
|
|
40
|
-
&-inner {
|
|
41
|
-
width: 100%;
|
|
42
|
-
height: 100%;
|
|
43
|
-
display: flex;
|
|
44
|
-
flex-direction: column;
|
|
45
|
-
position: relative;
|
|
46
|
-
|
|
47
|
-
&--has-title {
|
|
48
|
-
.#{$prefix}float-button-inner-drawer {
|
|
49
|
-
&-header {
|
|
50
|
-
margin: $size-base * 2 $size-base * 3;
|
|
51
|
-
}
|
|
52
|
-
&-body {
|
|
53
|
-
margin-top: 0;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
&--has-close {
|
|
58
|
-
.#{$prefix}float-button-inner-drawer {
|
|
59
|
-
&-header-title {
|
|
60
|
-
margin-right: $size-base * 2;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
&-header {
|
|
66
|
-
flex: none;
|
|
67
|
-
&-title {
|
|
68
|
-
font-size: $font-size-subhead;
|
|
69
|
-
line-height: 1.5;
|
|
70
|
-
}
|
|
71
|
-
&-close {
|
|
72
|
-
position: absolute;
|
|
73
|
-
right: $size-base * 2;
|
|
74
|
-
top: $size-base * 2;
|
|
75
|
-
color: $color-text1-2;
|
|
76
|
-
cursor: pointer;
|
|
77
|
-
transition: color 0.15s;
|
|
78
|
-
outline: 0;
|
|
79
|
-
border: 0;
|
|
80
|
-
padding: 0;
|
|
81
|
-
align-self: flex-start;
|
|
82
|
-
background-color: transparent;
|
|
83
|
-
|
|
84
|
-
&:hover {
|
|
85
|
-
color: $color-text1-4;
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
&-body {
|
|
90
|
-
flex: 1;
|
|
91
|
-
margin: $size-base * 2 $size-base * 3;
|
|
92
|
-
}
|
|
93
|
-
&-footer {
|
|
94
|
-
flex: none;
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
package/es/tab/main.scss
DELETED
package/es/tag/main.scss
DELETED
package/es/text/main.scss
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
@import '../core/variables.scss';
|
|
2
|
-
|
|
3
|
-
.#{$prefix}text {
|
|
4
|
-
display: inline-block;
|
|
5
|
-
|
|
6
|
-
&-inner {
|
|
7
|
-
}
|
|
8
|
-
&-trigger {
|
|
9
|
-
line-height: 1;
|
|
10
|
-
|
|
11
|
-
& &-btn {
|
|
12
|
-
font-size: inherit;
|
|
13
|
-
line-height: inherit;
|
|
14
|
-
height: auto;
|
|
15
|
-
vertical-align: baseline;
|
|
16
|
-
margin-left: 12px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|